source/dvr_dec_api.h
Go to the documentation of this file.
00001 #ifndef __DVR_DEC_API_H__ 00002 #define __DVR_DEC_API_H__ 00003 00004 #include <linux/ioctl.h> 00005 #include "dvr_type_define.h" 00006 #include "dvr_dec_ioctl.h" 00007 00008 typedef enum dvr_dec_dest_type_tag { 00009 DEC_TYPE_TO_DISPLAY=0, 00010 DEC_TYPE_TO_BUFFER, 00011 DEC_TYPE_COUNT 00012 }dvr_dec_dest_type; 00013 00014 typedef struct DecParam_tag { 00015 /*! #DecoderOutputColorTag */ 00016 int output_type; 00017 int reserved[2]; 00018 } DecParam; 00019 00020 typedef struct dvr_dec_channel_param_tag { 00021 /*! #EncodeType_tag */ 00022 int dec_type; 00023 /*! #dvr_dec_dest_type_tag */ 00024 int dec_dest_type; 00025 int channel; 00026 int is_blocked; 00027 int is_use_scaler; 00028 /*! #DecParam_tag */ 00029 DecParam dec_param; 00030 /*! #ScalerParamtag */ 00031 ScalerParam scl_param; 00032 int reserved[8]; 00033 }dvr_dec_channel_param; 00034 00035 00036 typedef struct dvr_dec_queue_get_tag { 00037 /*! #dvr_bs_data_tag */ 00038 dvr_bs_data bs; 00039 int channel; //for debug only 00040 int reserved[1]; 00041 }dvr_dec_queue_get; 00042 00043 00044 typedef enum dvr_dec_ctrl_cmd_tag { 00045 DEC_START, 00046 DEC_STOP, 00047 DEC_UPDATE 00048 }dvr_dec_ctrl_cmd; 00049 00050 typedef struct dvr_dec_control_tag { 00051 /*! #dvr_dec_ctrl_cmd_tag */ 00052 dvr_dec_ctrl_cmd command; 00053 struct 00054 { 00055 /*! #DIM_tag */ 00056 DIM dim; 00057 /*! #RECT_tag */ 00058 RECT win; 00059 int bs_rate; //bitstream frame rate 00060 int reserved[2]; 00061 }src_param; 00062 struct 00063 { 00064 int plane_id; 00065 /*! #RECT_tag */ 00066 RECT win; 00067 int is_display; 00068 int display_rate; 00069 int reserved[2]; 00070 }dst_param; 00071 }dvr_dec_control; 00072 00073 00074 typedef struct dvr_dec_clear_param_tag 00075 { 00076 /*! #RECT_tag */ 00077 RECT win; 00078 unsigned int pattern; 00079 int reserved[2]; 00080 }dvr_dec_clear_param; 00081 00082 #endif /* __DVR_DEC_API_H__ */ 00083
Generated on Wed Jun 15 2011 15:51:00 for This describe GM8126 ioctl functions by 1.7.1