id
stringlengths
4
63
text
stringlengths
153
8.81M
v4l2_m2m_expbuf(9)
NAME v4l2_m2m_expbuf - export a source or destination buffer, depending on the type SYNOPSIS int v4l2_m2m_expbuf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_exportbuffer *eb ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l...
v4l2_m2m_for_each_dst_buf(9)
NAME v4l2_m2m_for_each_dst_buf - iterate over a list of destination ready buffers SYNOPSIS v4l2_m2m_for_each_dst_buf (m2m_ctx , b ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx b current buffer of type struct v4l2_m2m_buffer SEE ALSO Kernel file ./includ...
v4l2_m2m_for_each_dst_buf_safe(9)
NAME v4l2_m2m_for_each_dst_buf_safe - iterate over a list of destination ready buffers safely SYNOPSIS v4l2_m2m_for_each_dst_buf_safe (m2m_ctx , b , n ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx b current buffer of type struct v4l2_m2m_buffer n ...
v4l2_m2m_for_each_src_buf(9)
NAME v4l2_m2m_for_each_src_buf - iterate over a list of source ready buffers SYNOPSIS v4l2_m2m_for_each_src_buf (m2m_ctx , b ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx b current buffer of type struct v4l2_m2m_buffer SEE ALSO Kernel file ./include/med...
v4l2_m2m_for_each_src_buf_safe(9)
NAME v4l2_m2m_for_each_src_buf_safe - iterate over a list of source ready buffers safely SYNOPSIS v4l2_m2m_for_each_src_buf_safe (m2m_ctx , b , n ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx b current buffer of type struct v4l2_m2m_buffer n ...
v4l2_m2m_get(9)
NAME v4l2_m2m_get - take a reference to the m2m_dev structure SYNOPSIS void v4l2_m2m_get (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context DESCRIPTION This is used to share the M2M device across multiple devices. This can be used to avoid scheduling two ...
v4l2_m2m_get_curr_priv(9)
NAME v4l2_m2m_get_curr_priv - return driver private data for the currently running instance or NULL if no instance is running SYNOPSIS void * v4l2_m2m_get_curr_priv (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context SEE ALSO Kernel file ./include/media/...
v4l2_m2m_get_dst_vq(9)
NAME v4l2_m2m_get_dst_vq - return vb2_queue for destination buffers SYNOPSIS struct vb2_queue * v4l2_m2m_get_dst_vq (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), str...
v4l2_m2m_get_src_vq(9)
NAME v4l2_m2m_get_src_vq - return vb2_queue for source buffers SYNOPSIS struct vb2_queue * v4l2_m2m_get_src_vq (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), struct v...
v4l2_m2m_get_vq(9)
NAME v4l2_m2m_get_vq - return vb2_queue for the given type SYNOPSIS struct vb2_queue * v4l2_m2m_get_vq (struct v4l2_m2m_ctx *m2m_ctx , enum v4l2_buf_type type ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx type type of the V4L2 buffer, as defined by enum v4l2...
v4l2_m2m_has_stopped(9)
NAME v4l2_m2m_has_stopped - return the current encoding/decoding session stopped state SYNOPSIS bool v4l2_m2m_has_stopped (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9...
v4l2_m2m_init(9)
NAME v4l2_m2m_init - initialize per-driver m2m data SYNOPSIS struct v4l2_m2m_dev * v4l2_m2m_init (const struct v4l2_m2m_ops *m2m_ops ); ARGUMENTS m2m_ops pointer to struct v4l2_m2m_ops DESCRIPTION Usually called from driver's “probe“ function. RETURN returns an opaque pointer to the internal data to handle M2M ...
v4l2_m2m_is_last_draining_src_buf(9)
NAME v4l2_m2m_is_last_draining_src_buf - return the output buffer draining state in the current encoding/decoding session SYNOPSIS bool v4l2_m2m_is_last_draining_src_buf (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_v4l2_buffer *vbuf ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_...
v4l2_m2m_job_finish(9)
NAME v4l2_m2m_job_finish - inform the framework that a job has been finished and have it clean up SYNOPSIS void v4l2_m2m_job_finish (struct v4l2_m2m_dev *m2m_dev , struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context m2m_ctx m2m context assigned t...
v4l2_m2m_last_buf(9)
NAME v4l2_m2m_last_buf - return last buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_last_buf (struct v4l2_m2m_queue_ctx *q_ctx ); ARGUMENTS q_ctx pointer to struct v4l2_m2m_queue_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), struct v4l2_m2m_q...
v4l2_m2m_last_buffer_done(9)
NAME v4l2_m2m_last_buffer_done - marks the buffer with LAST flag and DONE SYNOPSIS void v4l2_m2m_last_buffer_done (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_v4l2_buffer *vbuf ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx vbuf pointer to struct v4l2_buffer S...
v4l2_m2m_last_dst_buf(9)
NAME v4l2_m2m_last_dst_buf - return last destination buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_last_dst_buf (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2me...
v4l2_m2m_last_src_buf(9)
NAME v4l2_m2m_last_src_buf - return last source buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_last_src_buf (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h s...
v4l2_m2m_mark_stopped(9)
NAME v4l2_m2m_mark_stopped - set current encoding/decoding state as stopped SYNOPSIS void v4l2_m2m_mark_stopped (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), struct ...
v4l2_m2m_mmap(9)
NAME v4l2_m2m_mmap - source and destination queues-aware mmap multiplexer SYNOPSIS int v4l2_m2m_mmap (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct vm_area_struct *vma ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx ...
v4l2_m2m_next_buf(9)
NAME v4l2_m2m_next_buf - return next buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_next_buf (struct v4l2_m2m_queue_ctx *q_ctx ); ARGUMENTS q_ctx pointer to struct v4l2_m2m_queue_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v4l2_m2m_ops(9), struct v4l2_m2m_q...
v4l2_m2m_next_dst_buf(9)
NAME v4l2_m2m_next_dst_buf - return next destination buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_next_dst_buf (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2me...
v4l2_m2m_next_src_buf(9)
NAME v4l2_m2m_next_src_buf - return next source buffer from the list of ready buffers SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_next_src_buf (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h s...
v4l2_m2m_num_dst_bufs_ready(9)
NAME v4l2_m2m_num_dst_bufs_ready - return the number of destination buffers ready for use SYNOPSIS unsigned int v4l2_m2m_num_dst_bufs_ready (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h str...
v4l2_m2m_num_src_bufs_ready(9)
NAME v4l2_m2m_num_src_bufs_ready - return the number of source buffers ready for use SYNOPSIS unsigned int v4l2_m2m_num_src_bufs_ready (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media/v4l2-mem2mem.h struct v...
v4l2_m2m_poll(9)
NAME v4l2_m2m_poll - poll replacement, for destination buffers only SYNOPSIS __poll_t v4l2_m2m_poll (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct poll_table_struct *wait ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx ...
v4l2_m2m_prepare_buf(9)
NAME v4l2_m2m_prepare_buf - prepare a source or destination buffer, depending on the type SYNOPSIS int v4l2_m2m_prepare_buf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_buffer *buf ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by stru...
v4l2_m2m_put(9)
NAME v4l2_m2m_put - remove a reference to the m2m_dev structure SYNOPSIS void v4l2_m2m_put (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context DESCRIPTION Once the M2M device has no more references, v4l2_m2m_release will be called automatically. Users of t...
v4l2_m2m_qbuf(9)
NAME v4l2_m2m_qbuf - enqueue a source or destination buffer, depending on the type SYNOPSIS int v4l2_m2m_qbuf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_buffer *buf ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ct...
v4l2_m2m_querybuf(9)
NAME v4l2_m2m_querybuf - multi-queue-aware QUERYBUF multiplexer SYNOPSIS int v4l2_m2m_querybuf (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_buffer *buf ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx buf ...
v4l2_m2m_release(9)
NAME v4l2_m2m_release - cleans up and frees a m2m_dev structure SYNOPSIS void v4l2_m2m_release (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context DESCRIPTION Usually called from driver's “remove“ function. SEE ALSO Kernel file ./include/media/v4l2-me...
v4l2_m2m_reqbufs(9)
NAME v4l2_m2m_reqbufs - multi-queue-aware REQBUFS multiplexer SYNOPSIS int v4l2_m2m_reqbufs (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , struct v4l2_requestbuffers *reqbufs ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx ...
v4l2_m2m_resume(9)
NAME v4l2_m2m_resume - resume job running and try to run a queued job SYNOPSIS void v4l2_m2m_resume (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context DESCRIPTION Called by a driver in the resume hook. This reverts the operation of v4l2_m2m_suspend and al...
v4l2_m2m_src_buf_remove(9)
NAME v4l2_m2m_src_buf_remove - take off a source buffer from the list of ready buffers and return it SYNOPSIS struct vb2_v4l2_buffer * v4l2_m2m_src_buf_remove (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx SEE ALSO Kernel file ./include/media...
v4l2_m2m_src_buf_remove_by_buf(9)
NAME v4l2_m2m_src_buf_remove_by_buf - take off exact source buffer from the list of ready buffers SYNOPSIS void v4l2_m2m_src_buf_remove_by_buf (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_v4l2_buffer *vbuf ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx vbuf the...
v4l2_m2m_streamoff(9)
NAME v4l2_m2m_streamoff - turn off streaming for a video queue SYNOPSIS int v4l2_m2m_streamoff (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , enum v4l2_buf_type type ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx type ...
v4l2_m2m_streamon(9)
NAME v4l2_m2m_streamon - turn on streaming for a video queue SYNOPSIS int v4l2_m2m_streamon (struct file *file , struct v4l2_m2m_ctx *m2m_ctx , enum v4l2_buf_type type ); ARGUMENTS file pointer to struct file m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx type ...
v4l2_m2m_suspend(9)
NAME v4l2_m2m_suspend - stop new jobs from being run and wait for current job to finish SYNOPSIS void v4l2_m2m_suspend (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev opaque pointer to the internal data to handle M2M context DESCRIPTION Called by a driver in the suspend hook. Stop new jobs from being run, and...
v4l2_m2m_try_run(9)
NAME v4l2_m2m_try_run - select next job to perform and run it if possible SYNOPSIS void v4l2_m2m_try_run (struct v4l2_m2m_dev *m2m_dev ); ARGUMENTS m2m_dev per-device context DESCRIPTION Get next transaction (if present) from the waiting jobs list and run it. Note that this function can run on a given v4l2_m2m_...
v4l2_m2m_try_schedule(9)
NAME v4l2_m2m_try_schedule - check whether an instance is ready to be added to the pending job queue and add it if so. SYNOPSIS void v4l2_m2m_try_schedule (struct v4l2_m2m_ctx *m2m_ctx ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by struct v4l2_m2m_ctx DESCRIPTION There are three basic requir...
v4l2_m2m_update_start_streaming_state(9)
NAME v4l2_m2m_update_start_streaming_state - update the encoding/decoding session state when a start of streaming of a video queue is requested SYNOPSIS void v4l2_m2m_update_start_streaming_state (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_queue *q ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by...
v4l2_m2m_update_stop_streaming_state(9)
NAME v4l2_m2m_update_stop_streaming_state - update the encoding/decoding session state when a stop of streaming of a video queue is requested SYNOPSIS void v4l2_m2m_update_stop_streaming_state (struct v4l2_m2m_ctx *m2m_ctx , struct vb2_queue *q ); ARGUMENTS m2m_ctx m2m context assigned to the instance given by st...
v4l2_match_dv_timings(9)
NAME v4l2_match_dv_timings - do two timings match? SYNOPSIS bool v4l2_match_dv_timings (const struct v4l2_dv_timings *measured , const struct v4l2_dv_timings *standard , unsigned pclock_delta , bool match_reduced_fps ); ARGUMENTS measured the measured timings data. standard the timings according to the ...
v4l2_mc_create_media_graph(9)
NAME v4l2_mc_create_media_graph - create Media Controller links at the graph. SYNOPSIS int v4l2_mc_create_media_graph (struct media_device *mdev ); ARGUMENTS mdev pointer to the media_device struct. DESCRIPTION Add links between the entities commonly found on PC customer's hardware at the V4L2 side: camera...
v4l2_norm_to_name(9)
NAME v4l2_norm_to_name - Ancillary routine to analog TV standard name from its ID. SYNOPSIS const char * v4l2_norm_to_name (v4l2_std_id id ); ARGUMENTS id analog TV standard ID. RETURN returns a string with the name of the analog TV standard. If the standard is not found or if id points to multiple standar...
v4l2_num_edid_blocks(9)
NAME v4l2_num_edid_blocks - return the number of EDID blocks SYNOPSIS unsigned int v4l2_num_edid_blocks (const u8 *edid , unsigned int max_blocks ); ARGUMENTS edid pointer to the EDID data max_blocks maximum number of supported EDID blocks RETURN the number of EDID blocks based on the contents of the...
v4l2_phys_addr_for_input(9)
NAME v4l2_phys_addr_for_input - calculate the PA for an input SYNOPSIS u16 v4l2_phys_addr_for_input (u16 phys_addr , u8 input ); ARGUMENTS phys_addr the physical address of the parent input the number of the input port, must be between 1 and 15 DESCRIPTION This function calculates a new physical addr...
v4l2_phys_addr_validate(9)
NAME v4l2_phys_addr_validate - validate a physical address from an EDID SYNOPSIS int v4l2_phys_addr_validate (u16 phys_addr , u16 *parent , u16 *port ); ARGUMENTS phys_addr the physical address to validate parent if not NULL, then this is filled with the parents PA. port if not NULL, the...
v4l2_pipeline_link_notify(9)
NAME v4l2_pipeline_link_notify - Link management notification callback SYNOPSIS int v4l2_pipeline_link_notify (struct media_link *link , u32 flags , unsigned int notification ); ARGUMENTS link The link flags New link flags that will be applied notification The link's st...
v4l2_pipeline_pm_get(9)
NAME v4l2_pipeline_pm_get - Increase the use count of a pipeline SYNOPSIS int v4l2_pipeline_pm_get (struct media_entity *entity ); ARGUMENTS entity The root entity of a pipeline DESCRIPTION THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM ON SUB-DEVICE DRIVERS INSTEAD. Update the use coun...
v4l2_pipeline_pm_put(9)
NAME v4l2_pipeline_pm_put - Decrease the use count of a pipeline SYNOPSIS void v4l2_pipeline_pm_put (struct media_entity *entity ); ARGUMENTS entity The root entity of a pipeline DESCRIPTION THIS FUNCTION IS DEPRECATED. DO NOT USE IN NEW DRIVERS. USE RUNTIME PM ON SUB-DEVICE DRIVERS INSTEAD. Update the use c...
v4l2_print_dv_timings(9)
NAME v4l2_print_dv_timings - log the contents of a dv_timings struct SYNOPSIS void v4l2_print_dv_timings (const char *dev_prefix , const char *prefix , const struct v4l2_dv_timings *t , bool detailed ); ARGUMENTS dev_prefix device prefix for each log line. prefix additional prefix for each log line, may...
v4l2_prio_change(9)
NAME v4l2_prio_change - changes the v4l2 file handler priority SYNOPSIS int v4l2_prio_change (struct v4l2_prio_state *global , enum v4l2_priority *local , enum v4l2_priority new ); ARGUMENTS global pointer to the struct v4l2_prio_state of the device node. local pointer to the desired priority, as d...
v4l2_prio_check(9)
NAME v4l2_prio_check - Implements the priority logic for a file handler close SYNOPSIS int v4l2_prio_check (struct v4l2_prio_state *global , enum v4l2_priority local ); ARGUMENTS global pointer to the struct v4l2_prio_state of the device node. local desired priority, as defined by enum v4l2_priorit...
v4l2_prio_close(9)
NAME v4l2_prio_close - Implements the priority logic for a file handler close SYNOPSIS void v4l2_prio_close (struct v4l2_prio_state *global , enum v4l2_priority local ); ARGUMENTS global pointer to the struct v4l2_prio_state of the device node. local priority to be released, as defined by enum v4l2...
v4l2_prio_init(9)
NAME v4l2_prio_init - initializes a struct v4l2_prio_state SYNOPSIS void v4l2_prio_init (struct v4l2_prio_state *global ); ARGUMENTS global pointer to struct v4l2_prio_state SEE ALSO Kernel file ./include/media/v4l2-dev.h enum vfl_devnode_type(9), enum vfl_devnode_direction(9), enum v4l2_video_device_flag...
v4l2_prio_max(9)
NAME v4l2_prio_max - Return the maximum priority, as stored at the @global array. SYNOPSIS enum v4l2_priority v4l2_prio_max (struct v4l2_prio_state *global ); ARGUMENTS global pointer to the struct v4l2_prio_state of the device node. DESCRIPTION .. note:: This function should be used only by the V4L2 core. SEE...
v4l2_prio_open(9)
NAME v4l2_prio_open - Implements the priority logic for a file handler open SYNOPSIS void v4l2_prio_open (struct v4l2_prio_state *global , enum v4l2_priority *local ); ARGUMENTS global pointer to the struct v4l2_prio_state of the device node. local pointer to the desired priority, as defined by enu...
v4l2_query_ext_ctrl(9)
NAME v4l2_query_ext_ctrl - Helper function to implement :ref:`VIDIOC_QUERY_EXT_CTRL <vidioc_queryctrl>` ioctl SYNOPSIS int v4l2_query_ext_ctrl (struct v4l2_ctrl_handler *hdl , struct v4l2_query_ext_ctrl *qc ); ARGUMENTS hdl pointer to struct v4l2_ctrl_handler qc pointer to struct v4l2_query_e...
v4l2_query_ext_ctrl_to_v4l2_queryctrl(9)
NAME v4l2_query_ext_ctrl_to_v4l2_queryctrl - Convert a qec to qe. SYNOPSIS void v4l2_query_ext_ctrl_to_v4l2_queryctrl (struct v4l2_queryctrl *to , const struct v4l2_query_ext_ctrl *from ); ARGUMENTS to The v4l2_queryctrl to write to. from The v4l2_query_ext_ctrl to read from. DESCRIPTION This...
v4l2_queryctrl(9)
NAME v4l2_queryctrl - Helper function to implement :ref:`VIDIOC_QUERYCTRL <vidioc_queryctrl>` ioctl SYNOPSIS int v4l2_queryctrl (struct v4l2_ctrl_handler *hdl , struct v4l2_queryctrl *qc ); ARGUMENTS hdl pointer to struct v4l2_ctrl_handler qc pointer to struct v4l2_queryctrl DESCRIPTION If h...
v4l2_querymenu(9)
NAME v4l2_querymenu - Helper function to implement :ref:`VIDIOC_QUERYMENU <vidioc_queryctrl>` ioctl SYNOPSIS int v4l2_querymenu (struct v4l2_ctrl_handler *hdl , struct v4l2_querymenu *qm ); ARGUMENTS hdl pointer to struct v4l2_ctrl_handler qm pointer to struct v4l2_querymenu DESCRIPTION If h...
v4l2_rect_enclosed(9)
NAME v4l2_rect_enclosed - is r1 enclosed in r2? SYNOPSIS bool v4l2_rect_enclosed (struct v4l2_rect *r1 , struct v4l2_rect *r2 ); ARGUMENTS r1 rectangle. r2 rectangle. DESCRIPTION Returns true if r1 is enclosed in r2. SEE ALSO Kernel file ./include/media/v4l2-rect.h v4l2_rect_set_size_to...
v4l2_rect_equal(9)
NAME v4l2_rect_equal - return true if r1 equals r2 SYNOPSIS bool v4l2_rect_equal (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 ); ARGUMENTS r1 rectangle. r2 rectangle. DESCRIPTION Return true if both rectangles have the same size and position. SEE ALSO Kernel file ./include/med...
v4l2_rect_intersect(9)
NAME v4l2_rect_intersect - calculate the intersection of two rects. SYNOPSIS void v4l2_rect_intersect (struct v4l2_rect *r , const struct v4l2_rect *r1 , const struct v4l2_rect *r2 ); ARGUMENTS r intersection of r1 and r2. r1 rectangle. r2 rectangle. SEE ALSO Kernel file ...
v4l2_rect_map_inside(9)
NAME v4l2_rect_map_inside - r should be inside boundary. SYNOPSIS void v4l2_rect_map_inside (struct v4l2_rect *r , const struct v4l2_rect *boundary ); ARGUMENTS r rect that will be modified boundary rect containing the boundary for r SEE ALSO Kernel file ./include/media/v4l2-rect.h v4l2_rect_...
v4l2_rect_overlap(9)
NAME v4l2_rect_overlap - do r1 and r2 overlap? SYNOPSIS bool v4l2_rect_overlap (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 ); ARGUMENTS r1 rectangle. r2 rectangle. DESCRIPTION Returns true if r1 and r2 overlap. SEE ALSO Kernel file ./include/media/v4l2-rect.h v4l2_rect_set_...
v4l2_rect_same_position(9)
NAME v4l2_rect_same_position - return true if r1 has the same position as r2 SYNOPSIS bool v4l2_rect_same_position (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 ); ARGUMENTS r1 rectangle. r2 rectangle. DESCRIPTION Return true if both rectangles have the same position SEE ALSO Ke...
v4l2_rect_same_size(9)
NAME v4l2_rect_same_size - return true if r1 has the same size as r2 SYNOPSIS bool v4l2_rect_same_size (const struct v4l2_rect *r1 , const struct v4l2_rect *r2 ); ARGUMENTS r1 rectangle. r2 rectangle. DESCRIPTION Return true if both rectangles have the same size. SEE ALSO Kernel file ./i...
v4l2_rect_scale(9)
NAME v4l2_rect_scale - scale rect r by to/from SYNOPSIS void v4l2_rect_scale (struct v4l2_rect *r , const struct v4l2_rect *from , const struct v4l2_rect *to ); ARGUMENTS r rect to be scaled. from from rectangle. to to rectangle. DESCRIPTION This scales rectangle r horizont...
v4l2_rect_set_max_size(9)
NAME v4l2_rect_set_max_size - width and height of r should be <= max_size SYNOPSIS void v4l2_rect_set_max_size (struct v4l2_rect *r , const struct v4l2_rect *max_size ); ARGUMENTS r rect whose width and height will be modified max_size rect containing the maximum width and height SEE ALSO Kernel...
v4l2_rect_set_min_size(9)
NAME v4l2_rect_set_min_size - width and height of r should be >= min_size. SYNOPSIS void v4l2_rect_set_min_size (struct v4l2_rect *r , const struct v4l2_rect *min_size ); ARGUMENTS r rect whose width and height will be modified min_size rect containing the minimal width and height SEE ALSO Kerne...
v4l2_rect_set_size_to(9)
NAME v4l2_rect_set_size_to - copy the width/height values. SYNOPSIS void v4l2_rect_set_size_to (struct v4l2_rect *r , const struct v4l2_rect *size ); ARGUMENTS r rect whose width and height fields will be set size rect containing the width and height fields you need. SEE ALSO Kernel file ....
v4l2_s_ctrl(9)
NAME v4l2_s_ctrl - Helper function to implement :ref:`VIDIOC_S_CTRL <vidioc_g_ctrl>` ioctl SYNOPSIS int v4l2_s_ctrl (struct v4l2_fh *fh , struct v4l2_ctrl_handler *hdl , struct v4l2_control *ctrl ); ARGUMENTS fh pointer to struct v4l2_fh hdl pointer to struct v4l2_ctrl_handler ctrl ...
v4l2_s_ext_ctrls(9)
NAME v4l2_s_ext_ctrls - Helper function to implement :ref:`VIDIOC_S_EXT_CTRLS <vidioc_g_ext_ctrls>` ioctl SYNOPSIS int v4l2_s_ext_ctrls (struct v4l2_fh *fh , struct v4l2_ctrl_handler *hdl , struct video_device *vdev , struct media_device *mdev , struct v4l2_ext_controls *c ); ARGUMENTS fh pointer to struct v...
v4l2_s_parm_cap(9)
NAME v4l2_s_parm_cap - helper routine for vidioc_s_parm to fill this in by calling the set_frame_interval op of the given subdev. It only works for V4L2_BUF_TYPE_VIDEO_CAPTURE(_MPLANE), hence the _cap in the function name. SYNOPSIS int v4l2_s_parm_cap (struct video_device *vdev , struct v4l2_subdev *sd , struct v4l2_s...
v4l2_set_edid_phys_addr(9)
NAME v4l2_set_edid_phys_addr - find and set the physical address SYNOPSIS void v4l2_set_edid_phys_addr (u8 *edid , unsigned int size , u16 phys_addr ); ARGUMENTS edid pointer to the EDID data size size in bytes of the EDID data phys_addr the new physical address DESCRIPTION This func...
v4l2_set_subdev_hostdata(9)
NAME v4l2_set_subdev_hostdata - Sets V4L2 dev private host data SYNOPSIS void v4l2_set_subdev_hostdata (struct v4l2_subdev *sd , void *p ); ARGUMENTS sd pointer to struct v4l2_subdev p pointer to the private data to be stored. SEE ALSO Kernel file ./include/media/v4l2-subdev.h struct v...
v4l2_set_subdevdata(9)
NAME v4l2_set_subdevdata - Sets V4L2 dev private device data SYNOPSIS void v4l2_set_subdevdata (struct v4l2_subdev *sd , void *p ); ARGUMENTS sd pointer to struct v4l2_subdev p pointer to the private device data to be stored. SEE ALSO Kernel file ./include/media/v4l2-subdev.h struct v4...
v4l2_spi_new_subdev(9)
NAME v4l2_spi_new_subdev - Load an spi module and return an initialized &struct v4l2_subdev. SYNOPSIS struct v4l2_subdev * v4l2_spi_new_subdev (struct v4l2_device *v4l2_dev , struct spi_controller *ctlr , struct spi_board_info *info ); ARGUMENTS v4l2_dev pointer to struct v4l2_device. ctlr pointer t...
v4l2_spi_subdev_init(9)
NAME v4l2_spi_subdev_init - Initialize a v4l2_subdev with data from an spi_device struct. SYNOPSIS void v4l2_spi_subdev_init (struct v4l2_subdev *sd , struct spi_device *spi , const struct v4l2_subdev_ops *ops ); ARGUMENTS sd pointer to struct v4l2_subdev spi pointer to struct spi_device. ...
v4l2_spi_subdev_unregister(9)
NAME v4l2_spi_subdev_unregister - Unregister a v4l2_subdev SYNOPSIS void v4l2_spi_subdev_unregister (struct v4l2_subdev *sd ); ARGUMENTS sd pointer to struct v4l2_subdev SEE ALSO Kernel file ./include/media/v4l2-common.h v4l2_ctrl_query_fill(9), enum v4l2_i2c_tuner_type(9), v4l2_i2c_new_subdev(9), v4l2_...
v4l2_src_change_event_subdev_subscribe(9)
NAME v4l2_src_change_event_subdev_subscribe - Variant of v4l2_event_subscribe(), meant to subscribe only events of the type %V4L2_EVENT_SOURCE_CHANGE. SYNOPSIS int v4l2_src_change_event_subdev_subscribe (struct v4l2_subdev *sd , struct v4l2_fh *fh , struct v4l2_event_subscription *sub ); ARGUMENTS sd pointer...
v4l2_src_change_event_subscribe(9)
NAME v4l2_src_change_event_subscribe - helper function that calls v4l2_event_subscribe() if the event is %V4L2_EVENT_SOURCE_CHANGE. SYNOPSIS int v4l2_src_change_event_subscribe (struct v4l2_fh *fh , const struct v4l2_event_subscription *sub ); ARGUMENTS fh pointer to struct v4l2_fh sub pointe...
v4l2_subdev_call(9)
NAME v4l2_subdev_call - call an operation of a v4l2_subdev. SYNOPSIS v4l2_subdev_call (sd , o , f , args... ); ARGUMENTS sd pointer to the struct v4l2_subdev o name of the element at struct v4l2_subdev_ops that contains f. Each element there groups a set of callbacks functions. f ...
v4l2_subdev_call_state_active(9)
NAME v4l2_subdev_call_state_active - call an operation of a v4l2_subdev which takes state as a parameter, passing the subdev its active state. SYNOPSIS v4l2_subdev_call_state_active (sd , o , f , args... ); ARGUMENTS sd pointer to the struct v4l2_subdev o name of the element at struct v4l2_...
v4l2_subdev_call_state_try(9)
NAME v4l2_subdev_call_state_try - call an operation of a v4l2_subdev which takes state as a parameter, passing the subdev a newly allocated try state. SYNOPSIS v4l2_subdev_call_state_try (sd , o , f , args... ); ARGUMENTS sd pointer to the struct v4l2_subdev o name of the element at struct ...
v4l2_subdev_cleanup(9)
NAME v4l2_subdev_cleanup - Releases the resources allocated by the subdevice SYNOPSIS void v4l2_subdev_cleanup (struct v4l2_subdev *sd ); ARGUMENTS sd The subdevice DESCRIPTION Clean up a V4L2 async sub-device. Must be called for a sub-device as part of its release if resources have been associated with it ...
v4l2_subdev_disable_streams(9)
NAME v4l2_subdev_disable_streams - Disable streams on a pad SYNOPSIS int v4l2_subdev_disable_streams (struct v4l2_subdev *sd , u32 pad , u64 streams_mask ); ARGUMENTS sd The subdevice pad The pad streams_mask Bitmask of streams to disable DESCRIPTION This function...
v4l2_subdev_enable_streams(9)
NAME v4l2_subdev_enable_streams - Enable streams on a pad SYNOPSIS int v4l2_subdev_enable_streams (struct v4l2_subdev *sd , u32 pad , u64 streams_mask ); ARGUMENTS sd The subdevice pad The pad streams_mask Bitmask of streams to enable DESCRIPTION This function ena...
v4l2_subdev_get_fmt(9)
NAME v4l2_subdev_get_fmt - Fill format based on state SYNOPSIS int v4l2_subdev_get_fmt (struct v4l2_subdev *sd , struct v4l2_subdev_state *state , struct v4l2_subdev_format *format ); ARGUMENTS sd subdevice state subdevice state format pointer to struct v4l2_subdev_format DESCRIPT...
v4l2_subdev_get_frame_interval(9)
NAME v4l2_subdev_get_frame_interval - Fill frame interval based on state SYNOPSIS int v4l2_subdev_get_frame_interval (struct v4l2_subdev *sd , struct v4l2_subdev_state *state , struct v4l2_subdev_frame_interval *fi ); ARGUMENTS sd subdevice state subdevice state fi pointer to s...
v4l2_subdev_get_fwnode_pad_1_to_1(9)
NAME v4l2_subdev_get_fwnode_pad_1_to_1 - Get pad number from a subdev fwnode endpoint, assuming 1:1 port:pad SYNOPSIS int v4l2_subdev_get_fwnode_pad_1_to_1 (struct media_entity *entity , struct fwnode_endpoint *endpoint ); ARGUMENTS entity Pointer to the subdev entity endpoint Pointer to a parsed fwno...
v4l2_subdev_get_locked_active_state(9)
NAME v4l2_subdev_get_locked_active_state - Checks that the active subdev state is locked and returns it SYNOPSIS struct v4l2_subdev_state * v4l2_subdev_get_locked_active_state (struct v4l2_subdev *sd ); ARGUMENTS sd The subdevice DESCRIPTION Returns the active state for the subdevice, or NULL if the subd...
v4l2_subdev_get_unlocked_active_state(9)
NAME v4l2_subdev_get_unlocked_active_state - Checks that the active subdev state is unlocked and returns it SYNOPSIS struct v4l2_subdev_state * v4l2_subdev_get_unlocked_active_state (struct v4l2_subdev *sd ); ARGUMENTS sd The subdevice DESCRIPTION Returns the active state for the subdevice, or NULL if the...
v4l2_subdev_has_op(9)
NAME v4l2_subdev_has_op - Checks if a subdev defines a certain operation. SYNOPSIS v4l2_subdev_has_op (sd , o , f ); ARGUMENTS sd pointer to the struct v4l2_subdev o The group of callback functions in struct v4l2_subdev_ops which f is a part of. f callback function to be c...
v4l2_subdev_has_pad_interdep(9)
NAME v4l2_subdev_has_pad_interdep - MC has_pad_interdep implementation for subdevs SYNOPSIS bool v4l2_subdev_has_pad_interdep (struct media_entity *entity , unsigned int pad0 , unsigned int pad1 ); ARGUMENTS entity pointer to struct media_entity pad0 pad number for the first pad pad1 ...
v4l2_subdev_init(9)
NAME v4l2_subdev_init - initializes the sub-device struct SYNOPSIS void v4l2_subdev_init (struct v4l2_subdev *sd , const struct v4l2_subdev_ops *ops ); ARGUMENTS sd pointer to the struct v4l2_subdev to be initialized ops pointer to struct v4l2_subdev_ops. SEE ALSO Kernel file ./include/med...
v4l2_subdev_init_finalize(9)
NAME v4l2_subdev_init_finalize - Finalizes the initialization of the subdevice SYNOPSIS v4l2_subdev_init_finalize (sd ); ARGUMENTS sd The subdev DESCRIPTION This function finalizes the initialization of the subdev, including allocation of the active state for the subdev. This function must be called by th...
v4l2_subdev_is_streaming(9)
NAME v4l2_subdev_is_streaming - Returns if the subdevice is streaming SYNOPSIS bool v4l2_subdev_is_streaming (struct v4l2_subdev *sd ); ARGUMENTS sd The subdevice DESCRIPTION v4l2_subdev_is_streaming tells if the subdevice is currently streaming. "Streaming" here means whether .s_stream or .enable_streams...