source/dvr_dec_ioctl.h
Go to the documentation of this file.
00001 00002 #define DVR_DEC_IOC_MAGIC 'H' 00003 00004 /** 00005 * \b ioctl(dec_fd, DVR_DEC_SET_CHANNEL_PARAM, &ch_param) 00006 * 00007 * \arg explanation : get channel parameter from user space ,and set parameter to device driver 00008 * \arg parameter : 00009 * \n \b \e pointer \b \e ch_param : argument from user space ioctl parameter, it means structure dvr_dec_channel_param 00010 * 00011 */ 00012 #define DVR_DEC_SET_CHANNEL_PARAM _IOWR(DVR_DEC_IOC_MAGIC, 2, dvr_dec_channel_param) 00013 00014 /** 00015 * \b ioctl(dec_fd, DVR_DEC_GET_CHANNEL_PARAM, &ch_param) 00016 * 00017 * \arg explanation : get channel parameter from user space 00018 * \arg parameter : 00019 * \n \b \e pointer \b \e ch_param : argument from user space ioctl parameter, it means structure dvr_dec_channel_param 00020 */ 00021 #define DVR_DEC_GET_CHANNEL_PARAM _IO(DVR_DEC_IOC_MAGIC, 3) 00022 00023 /** 00024 * \b ioctl(dec_fd, DVR_DEC_QUEUE_GET, &data) 00025 * 00026 * \arg explanation : Get buffer to user space. It includes the buffer length, offset. 00027 * \arg parameter : 00028 * \n \b \e pointer \b \e data : argument from user space ioctl parameter, it means structure dvr_dec_queue_get 00029 */ 00030 #define DVR_DEC_QUEUE_GET _IOWR(DVR_DEC_IOC_MAGIC, 5, dvr_dec_queue_get) 00031 00032 /** 00033 * \b ioctl(dec_fd, DVR_DEC_QUEUE_PUT, &data) 00034 * 00035 * \arg explanation : get buffer from user space, and release buffer at videograph layer 00036 * \arg parameter : 00037 * \n \b \e pointer \b \e data : argument from user space ioctl parameter, it means structure dvr_dec_queue_get 00038 */ 00039 #define DVR_DEC_QUEUE_PUT _IOWR(DVR_DEC_IOC_MAGIC, 6, dvr_dec_queue_get) 00040 00041 /** 00042 * \b ioctl(dec_fd, DVR_DEC_CONTROL, &dec_ctrl) 00043 * 00044 * \arg explanation : get decode contorl command from user space, and set command to videograph layer 00045 * \arg parameter : 00046 * \n \b \e pointer \b \e dec_ctrl : argument from user space ioctl parameter, it means structure dvr_dec_control 00047 */ 00048 #define DVR_DEC_CONTROL _IOW(DVR_DEC_IOC_MAGIC, 7, dvr_dec_control) 00049 00050 /** 00051 * \b ioctl(dec_fd, DVR_DEC_QUERY_OUTPUT_BUFFER_SIZE, &dec_buf_size) 00052 * 00053 * \arg explanation : get output buffer size for dvr decode to user space. 00054 * \arg parameter : 00055 * \n \b \e pointer \b \e dec_buf_size : argument from user space ioctl parameter, it means request buffer size. 00056 */ 00057 #define DVR_DEC_QUERY_OUTPUT_BUFFER_SIZE _IOWR(DVR_DEC_IOC_MAGIC, 8, int) 00058 00059 /** 00060 * \b ioctl(dec_fd, DVR_DEC_CLEAR_WIN, &dec_clear_param) 00061 * 00062 * \arg explanation : to prevent lcd unexpected image, when stop playback, then start another playback, 00063 * \n use flow : ioctl(dvr_fd,DVR_COMMON_APPLY,&data); //stop current playback 00064 * \n ................ 00065 * \n ioctl(dec_fd,DVR_DEC_CLEAR_WIN,&data); //must after stop, and before start apply 00066 * \n ioctl(dvr_fd,DVR_COMMON_APPLY,&data); //start new playback 00067 * \arg parameter : 00068 * \n \b \e pointer \b \e dec_clear_param : argument from user space ioctl parameter, it means structure dvr_dec_clear_param. 00069 * 00070 */ 00071 #define DVR_DEC_CLEAR_WIN _IOW(DVR_DEC_IOC_MAGIC, 18, dvr_dec_clear_param) 00072 00073 /** 00074 * \b ioctl(dec_fd, DVR_DEC_CLEAR_WIN2, &dec_clear_param) 00075 * 00076 * \arg explanation : to prevent lcd unexpected image, when update current playback 00077 * \n use flow : dec_ctrl.command = DEC_UPDATE; 00078 * \n ioctl(dec_fd, DVR_DEC_CONTROL, &dec_ctrl); 00079 * \n ioctl(dec_fd, DVR_DEC_CLEAR_WIN2, &data); // tell VG to clear buffer after apply 00080 * \n ioctl(dvr_fd, DVR_COMMON_APPLY, &data); 00081 * \arg parameter : 00082 * \n \b \e pointer \b \e dec_clear_param : argument from user space ioctl parameter, it means structure dvr_dec_clear_param. 00083 * 00084 */ 00085 #define DVR_DEC_CLEAR_WIN2 _IOW(DVR_DEC_IOC_MAGIC, 19, dvr_dec_clear_param)
Generated on Wed Jun 15 2011 15:51:00 for This describe GM8126 ioctl functions by 1.7.1