FFmpeg
Data Structures | Macros | Functions | Variables
v210dec.c File Reference
#include "avcodec.h"
#include "codec_internal.h"
#include "v210dec.h"
#include "v210dec_init.h"
#include "libavutil/bswap.h"
#include "libavutil/internal.h"
#include "libavutil/intreadwrite.h"
#include "thread.h"

Go to the source code of this file.

Data Structures

struct  ThreadData
 Used for passing data between threads. More...
 

Macros

#define V210DEC_FLAGS   AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM
 

Functions

static av_cold int decode_init (AVCodecContext *avctx)
 
static int v210_decode_slice (AVCodecContext *avctx, void *arg, int jobnr, int threadnr)
 
static int decode_frame (AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
 

Variables

static const AVOption v210dec_options []
 
static const AVClass v210dec_class
 
const FFCodec ff_v210_decoder
 

Macro Definition Documentation

◆ V210DEC_FLAGS

Definition at line 173 of file v210dec.c.

Function Documentation

◆ decode_init()

static av_cold int decode_init ( AVCodecContext avctx)
static

Definition at line 39 of file v210dec.c.

◆ v210_decode_slice()

static int v210_decode_slice ( AVCodecContext avctx,
void *  arg,
int  jobnr,
int  threadnr 
)
static

Definition at line 53 of file v210dec.c.

Referenced by decode_frame().

◆ decode_frame()

static int decode_frame ( AVCodecContext avctx,
AVFrame pic,
int got_frame,
AVPacket avpkt 
)
static

Definition at line 112 of file v210dec.c.

Variable Documentation

◆ v210dec_options

const AVOption v210dec_options[]
static
Initial value:
= {
{"custom_stride", "Custom V210 stride", 0x42, AV_OPT_TYPE_INT,
{.i64 = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS},
{NULL}
}

Definition at line 174 of file v210dec.c.

◆ v210dec_class

const AVClass v210dec_class
static
Initial value:
= {
.class_name = "V210 Decoder",
.item_name = av_default_item_name,
.option = v210dec_options,
}

Definition at line 180 of file v210dec.c.

◆ ff_v210_decoder

const FFCodec ff_v210_decoder
Initial value:
= {
.p.name = "v210",
.p.long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"),
.p.type = AVMEDIA_TYPE_VIDEO,
.priv_data_size = sizeof(V210DecContext),
.p.capabilities = AV_CODEC_CAP_DR1 |
.p.priv_class = &v210dec_class,
.caps_internal = FF_CODEC_CAP_INIT_THREADSAFE,
}

Definition at line 187 of file v210dec.c.

v210dec_options
static const AVOption v210dec_options[]
Definition: v210dec.c:174
decode_init
static av_cold int decode_init(AVCodecContext *avctx)
Definition: v210dec.c:39
decode_frame
static int decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
Definition: v210dec.c:112
init
static int init
Definition: av_tx.c:47
FF_CODEC_DECODE_CB
#define FF_CODEC_DECODE_CB(func)
Definition: codec_internal.h:254
V210DecContext
Definition: v210dec.h:26
AV_CODEC_CAP_FRAME_THREADS
#define AV_CODEC_CAP_FRAME_THREADS
Codec supports frame-level multithreading.
Definition: codec.h:113
LIBAVUTIL_VERSION_INT
#define LIBAVUTIL_VERSION_INT
Definition: version.h:85
NULL
#define NULL
Definition: coverity.c:32
av_default_item_name
const char * av_default_item_name(void *ptr)
Return the context name.
Definition: log.c:237
AV_CODEC_CAP_DR1
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
Definition: codec.h:52
NULL_IF_CONFIG_SMALL
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Definition: internal.h:117
AV_CODEC_ID_V210
@ AV_CODEC_ID_V210
Definition: codec_id.h:177
AV_CODEC_CAP_SLICE_THREADS
#define AV_CODEC_CAP_SLICE_THREADS
Codec supports slice-based (or partition-based) multithreading.
Definition: codec.h:117
v210dec_class
static const AVClass v210dec_class
Definition: v210dec.c:180
FF_CODEC_CAP_INIT_THREADSAFE
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
Definition: codec_internal.h:31
V210DEC_FLAGS
#define V210DEC_FLAGS
Definition: v210dec.c:173
AV_OPT_TYPE_INT
@ AV_OPT_TYPE_INT
Definition: opt.h:225
AVMEDIA_TYPE_VIDEO
@ AVMEDIA_TYPE_VIDEO
Definition: avutil.h:201