FFmpeg
4.0
|
#include <libavcodec/v4l2_context.h>
Data Fields | |
const char * | name |
context name. More... | |
enum v4l2_buf_type | type |
Type of this buffer context. More... | |
enum AVPixelFormat | av_pix_fmt |
AVPixelFormat corresponding to this buffer context. More... | |
enum AVCodecID | av_codec_id |
AVCodecID corresponding to this buffer context. More... | |
struct v4l2_format | format |
Format returned by the driver after initializing the buffer context. More... | |
int | width |
Width and height of the frames it produces (in case of a capture context, e.g. More... | |
int | height |
V4L2Buffer * | buffers |
Indexed array of V4L2Buffers. More... | |
int | num_buffers |
Readonly after init. More... | |
int | streamon |
Whether the stream has been started (VIDIOC_STREAMON has been sent). More... | |
int | done |
Either no more buffers available or an unrecoverable error was notified by the V4L2 kernel driver: once set the context has to be exited. More... | |
AVClass * | class |
int | fd |
Definition at line 36 of file v4l2_context.h.
const char* V4L2Context::name |
context name.
Definition at line 40 of file v4l2_context.h.
Referenced by ff_v4l2_buffer_buf_to_avframe(), ff_v4l2_buffer_buf_to_avpkt(), ff_v4l2_context_enqueue_frame(), ff_v4l2_context_enqueue_packet(), ff_v4l2_context_init(), ff_v4l2_context_release(), ff_v4l2_m2m_codec_end(), v4l2_dequeue_v4l2buf(), v4l2_handle_event(), v4l2_prepare_contexts(), v4l2_release_buffers(), and v4l2_resolution_changed().
enum v4l2_buf_type V4L2Context::type |
Type of this buffer context.
See V4L2_BUF_TYPE_VIDEO_* in videodev2.h Readonly after init.
Definition at line 47 of file v4l2_context.h.
Referenced by buf_to_m2mctx(), ctx_to_m2mctx(), ff_v4l2_buffer_initialize(), ff_v4l2_context_init(), ff_v4l2_context_set_status(), v4l2_dequeue_v4l2buf(), v4l2_get_coded_format(), v4l2_get_raw_format(), v4l2_getfree_v4l2buf(), v4l2_prepare_contexts(), v4l2_release_buffers(), v4l2_resolution_changed(), v4l2_save_to_context(), v4l2_set_timeperframe(), v4l2_try_raw_format(), v4l2_try_start(), and v4l2_type_supported().
enum AVPixelFormat V4L2Context::av_pix_fmt |
AVPixelFormat corresponding to this buffer context.
AV_PIX_FMT_NONE means this is an encoded stream.
Definition at line 53 of file v4l2_context.h.
Referenced by ff_v4l2_buffer_buf_to_avframe(), v4l2_decode_init(), v4l2_encode_init(), v4l2_get_raw_format(), v4l2_save_to_context(), and v4l2_try_start().
enum AVCodecID V4L2Context::av_codec_id |
AVCodecID corresponding to this buffer context.
AV_CODEC_ID_RAWVIDEO means this is a raw stream and av_pix_fmt must be set to a valid value.
Definition at line 59 of file v4l2_context.h.
Referenced by ff_v4l2_context_get_format(), v4l2_decode_init(), v4l2_encode_init(), and v4l2_get_coded_format().
struct v4l2_format V4L2Context::format |
Format returned by the driver after initializing the buffer context.
Readonly after init.
Definition at line 65 of file v4l2_context.h.
Referenced by ff_v4l2_buffer_buf_to_avframe(), ff_v4l2_buffer_initialize(), ff_v4l2_context_get_format(), ff_v4l2_context_init(), ff_v4l2_context_set_format(), v4l2_get_color_primaries(), v4l2_get_color_range(), v4l2_get_color_space(), v4l2_get_color_trc(), v4l2_handle_event(), v4l2_resolution_changed(), v4l2_save_to_context(), v4l2_try_raw_format(), and v4l2_try_start().
int V4L2Context::width |
Width and height of the frames it produces (in case of a capture context, e.g.
when decoding) or accepts (in case of an output context, e.g. when encoding).
Definition at line 71 of file v4l2_context.h.
Referenced by ff_v4l2_buffer_buf_to_avframe(), v4l2_decode_init(), v4l2_encode_init(), v4l2_handle_event(), v4l2_save_to_context(), and v4l2_try_start().
int V4L2Context::height |
Definition at line 71 of file v4l2_context.h.
Referenced by ff_v4l2_buffer_buf_to_avframe(), v4l2_decode_init(), v4l2_encode_init(), v4l2_handle_event(), v4l2_save_to_context(), and v4l2_try_start().
V4L2Buffer* V4L2Context::buffers |
Indexed array of V4L2Buffers.
Definition at line 76 of file v4l2_context.h.
Referenced by ff_v4l2_context_init(), ff_v4l2_context_release(), v4l2_dequeue_v4l2buf(), v4l2_getfree_v4l2buf(), v4l2_release_buffers(), and v4l2_try_start().
int V4L2Context::num_buffers |
Readonly after init.
Definition at line 81 of file v4l2_context.h.
Referenced by ff_v4l2_context_init(), ff_v4l2_m2m_create_context(), v4l2_dequeue_v4l2buf(), v4l2_getfree_v4l2buf(), and v4l2_release_buffers().
int V4L2Context::streamon |
Whether the stream has been started (VIDIOC_STREAMON has been sent).
Definition at line 86 of file v4l2_context.h.
Referenced by ff_v4l2_context_set_status(), v4l2_free_buffer(), v4l2_receive_packet(), and v4l2_try_start().
int V4L2Context::done |
Either no more buffers available or an unrecoverable error was notified by the V4L2 kernel driver: once set the context has to be exited.
Definition at line 92 of file v4l2_context.h.
Referenced by ff_v4l2_context_dequeue_frame(), ff_v4l2_context_dequeue_packet(), v4l2_dequeue_v4l2buf(), and v4l2_prepare_contexts().
int V4L2Context::fd |
Definition at line 26 of file v4l2enc.c.
Referenced by write_header(), write_packet(), and write_trailer().