source/dvr_dec_ioctl.h File Reference
Go to the source code of this file.
Defines | |
#define | DVR_DEC_IOC_MAGIC 'H' |
#define | DVR_DEC_SET_CHANNEL_PARAM _IOWR(DVR_DEC_IOC_MAGIC, 2, dvr_dec_channel_param) |
#define | DVR_DEC_GET_CHANNEL_PARAM _IO(DVR_DEC_IOC_MAGIC, 3) |
#define | DVR_DEC_QUEUE_GET _IOWR(DVR_DEC_IOC_MAGIC, 5, dvr_dec_queue_get) |
#define | DVR_DEC_QUEUE_PUT _IOWR(DVR_DEC_IOC_MAGIC, 6, dvr_dec_queue_get) |
#define | DVR_DEC_CONTROL _IOW(DVR_DEC_IOC_MAGIC, 7, dvr_dec_control) |
#define | DVR_DEC_QUERY_OUTPUT_BUFFER_SIZE _IOWR(DVR_DEC_IOC_MAGIC, 8, int) |
#define | DVR_DEC_CLEAR_WIN _IOW(DVR_DEC_IOC_MAGIC, 18, dvr_dec_clear_param) |
#define | DVR_DEC_CLEAR_WIN2 _IOW(DVR_DEC_IOC_MAGIC, 19, dvr_dec_clear_param) |
Define Documentation
#define DVR_DEC_IOC_MAGIC 'H' |
Definition at line 2 of file dvr_dec_ioctl.h.
#define DVR_DEC_SET_CHANNEL_PARAM _IOWR(DVR_DEC_IOC_MAGIC, 2, dvr_dec_channel_param) |
ioctl(dec_fd, DVR_DEC_SET_CHANNEL_PARAM, &ch_param)
- explanation : get channel parameter from user space ,and set parameter to device driver
- parameter :
pointer ch_param : argument from user space ioctl parameter, it means structure dvr_dec_channel_param
- Examples:
- 2ch_playback.c, and playback.c.
Definition at line 12 of file dvr_dec_ioctl.h.
#define DVR_DEC_GET_CHANNEL_PARAM _IO(DVR_DEC_IOC_MAGIC, 3) |
ioctl(dec_fd, DVR_DEC_GET_CHANNEL_PARAM, &ch_param)
- explanation : get channel parameter from user space
- parameter :
pointer ch_param : argument from user space ioctl parameter, it means structure dvr_dec_channel_param
Definition at line 21 of file dvr_dec_ioctl.h.
#define DVR_DEC_QUEUE_GET _IOWR(DVR_DEC_IOC_MAGIC, 5, dvr_dec_queue_get) |
ioctl(dec_fd, DVR_DEC_QUEUE_GET, &data)
- explanation : Get buffer to user space. It includes the buffer length, offset.
- parameter :
pointer data : argument from user space ioctl parameter, it means structure dvr_dec_queue_get
- Examples:
- 2ch_playback.c, and playback.c.
Definition at line 30 of file dvr_dec_ioctl.h.
#define DVR_DEC_QUEUE_PUT _IOWR(DVR_DEC_IOC_MAGIC, 6, dvr_dec_queue_get) |
ioctl(dec_fd, DVR_DEC_QUEUE_PUT, &data)
- explanation : get buffer from user space, and release buffer at videograph layer
- parameter :
pointer data : argument from user space ioctl parameter, it means structure dvr_dec_queue_get
- Examples:
- 2ch_playback.c, and playback.c.
Definition at line 39 of file dvr_dec_ioctl.h.
#define DVR_DEC_CONTROL _IOW(DVR_DEC_IOC_MAGIC, 7, dvr_dec_control) |
ioctl(dec_fd, DVR_DEC_CONTROL, &dec_ctrl)
- explanation : get decode contorl command from user space, and set command to videograph layer
- parameter :
pointer dec_ctrl : argument from user space ioctl parameter, it means structure dvr_dec_control
- Examples:
- 2ch_playback.c, and playback.c.
Definition at line 48 of file dvr_dec_ioctl.h.
#define DVR_DEC_QUERY_OUTPUT_BUFFER_SIZE _IOWR(DVR_DEC_IOC_MAGIC, 8, int) |
ioctl(dec_fd, DVR_DEC_QUERY_OUTPUT_BUFFER_SIZE, &dec_buf_size)
- explanation : get output buffer size for dvr decode to user space.
- parameter :
pointer dec_buf_size : argument from user space ioctl parameter, it means request buffer size.
- Examples:
- 2ch_playback.c, and playback.c.
Definition at line 57 of file dvr_dec_ioctl.h.
#define DVR_DEC_CLEAR_WIN _IOW(DVR_DEC_IOC_MAGIC, 18, dvr_dec_clear_param) |
ioctl(dec_fd, DVR_DEC_CLEAR_WIN, &dec_clear_param)
- explanation : to prevent lcd unexpected image, when stop playback, then start another playback,
use flow : ioctl(dvr_fd,DVR_COMMON_APPLY,&data); //stop current playback
................
ioctl(dec_fd,DVR_DEC_CLEAR_WIN,&data); //must after stop, and before start apply
ioctl(dvr_fd,DVR_COMMON_APPLY,&data); //start new playback - parameter :
pointer dec_clear_param : argument from user space ioctl parameter, it means structure dvr_dec_clear_param.
Definition at line 71 of file dvr_dec_ioctl.h.
#define DVR_DEC_CLEAR_WIN2 _IOW(DVR_DEC_IOC_MAGIC, 19, dvr_dec_clear_param) |
ioctl(dec_fd, DVR_DEC_CLEAR_WIN2, &dec_clear_param)
- explanation : to prevent lcd unexpected image, when update current playback
use flow : dec_ctrl.command = DEC_UPDATE;
ioctl(dec_fd, DVR_DEC_CONTROL, &dec_ctrl);
ioctl(dec_fd, DVR_DEC_CLEAR_WIN2, &data); // tell VG to clear buffer after apply
ioctl(dvr_fd, DVR_COMMON_APPLY, &data); - parameter :
pointer dec_clear_param : argument from user space ioctl parameter, it means structure dvr_dec_clear_param.
Definition at line 85 of file dvr_dec_ioctl.h.
Generated on Wed Jun 15 2011 15:51:00 for This describe GM8126 ioctl functions by 1.7.1