Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003     yuv support
0004 
0005     Copyright (C) 2007  Ian Armstrong <ian@iarmst.demon.co.uk>
0006 
0007  */
0008 
0009 #ifndef IVTV_YUV_H
0010 #define IVTV_YUV_H
0011 
0012 #define IVTV_YUV_BUFFER_UV_OFFSET 0x65400   /* Offset to UV Buffer */
0013 
0014 /* Offset to filter table in firmware */
0015 #define IVTV_YUV_HORIZONTAL_FILTER_OFFSET 0x025d8
0016 #define IVTV_YUV_VERTICAL_FILTER_OFFSET 0x03358
0017 
0018 #define IVTV_YUV_UPDATE_HORIZONTAL  0x01
0019 #define IVTV_YUV_UPDATE_VERTICAL    0x02
0020 #define IVTV_YUV_UPDATE_INVALID     0x04
0021 
0022 extern const u32 yuv_offset[IVTV_YUV_BUFFERS];
0023 
0024 int ivtv_yuv_filter_check(struct ivtv *itv);
0025 void ivtv_yuv_setup_stream_frame(struct ivtv *itv);
0026 int ivtv_yuv_udma_stream_frame(struct ivtv *itv, void __user *src);
0027 void ivtv_yuv_frame_complete(struct ivtv *itv);
0028 int ivtv_yuv_prep_frame(struct ivtv *itv, struct ivtv_dma_frame *args);
0029 void ivtv_yuv_close(struct ivtv *itv);
0030 void ivtv_yuv_work_handler(struct ivtv *itv);
0031 
0032 #endif