FFmpeg
|
#include <semaphore.h>
#include <unistd.h>
#include <dirent.h>
#include <linux/videodev2.h>
#include "libavcodec/avcodec.h"
#include "v4l2_context.h"
Go to the source code of this file.
Data Structures | |
struct | V4L2m2mContext |
Macros | |
#define | container_of(ptr, type, member) |
#define | V4L_M2M_DEFAULT_OPTS |
Functions | |
int | ff_v4l2_m2m_codec_init (AVCodecContext *avctx) |
Probes the video nodes looking for the required codec capabilities. More... | |
int | ff_v4l2_m2m_codec_end (AVCodecContext *avctx) |
Releases all the codec resources if all AVBufferRefs have been returned to the ctx. More... | |
int | ff_v4l2_m2m_codec_reinit (V4L2m2mContext *ctx) |
Reinitializes the V4L2m2mContext when the driver cant continue processing with the capture parameters. More... | |
int | ff_v4l2_m2m_codec_full_reinit (V4L2m2mContext *ctx) |
Reinitializes the V4L2m2mContext when the driver cant continue processing with the any of the current V4L2Contexts (ie, changes in output and capture). More... | |
#define container_of | ( | ptr, | |
type, | |||
member | |||
) |
Definition at line 35 of file v4l2_m2m.h.
Referenced by buf_to_m2mctx(), and ctx_to_m2mctx().
#define V4L_M2M_DEFAULT_OPTS |
Definition at line 39 of file v4l2_m2m.h.
int ff_v4l2_m2m_codec_init | ( | AVCodecContext * | avctx | ) |
Probes the video nodes looking for the required codec capabilities.
[in] | ctx | The AVCodecContext instantiated by the encoder/decoder. |
Definition at line 344 of file v4l2_m2m.c.
Referenced by v4l2_decode_init(), and v4l2_encode_init().
int ff_v4l2_m2m_codec_end | ( | AVCodecContext * | avctx | ) |
Releases all the codec resources if all AVBufferRefs have been returned to the ctx.
Otherwise keep the driver open.
[in] | The | AVCodecContext instantiated by the encoder/decoder. |
Definition at line 314 of file v4l2_m2m.c.
Referenced by ff_v4l2_m2m_codec_full_reinit(), and v4l2_free_buffer().
int ff_v4l2_m2m_codec_reinit | ( | V4L2m2mContext * | ctx | ) |
Reinitializes the V4L2m2mContext when the driver cant continue processing with the capture parameters.
[in] | ctx | The V4L2m2mContext instantiated by the encoder/decoder. |
Definition at line 189 of file v4l2_m2m.c.
Referenced by v4l2_handle_event().
int ff_v4l2_m2m_codec_full_reinit | ( | V4L2m2mContext * | ctx | ) |
Reinitializes the V4L2m2mContext when the driver cant continue processing with the any of the current V4L2Contexts (ie, changes in output and capture).
[in] | ctx | The V4L2m2mContext instantiated by the encoder/decoder. |
Definition at line 233 of file v4l2_m2m.c.
Referenced by v4l2_handle_event().