#include "avcodec.h"
#include "v210dec.h"
#include "libavutil/bswap.h"
#include "libavutil/internal.h"
#include "libavutil/mem.h"
Go to the source code of this file.
Defines | |
#define | READ_PIXELS(a, b, c) |
#define | V210DEC_FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
Functions | |
static void | v210_planar_unpack_c (const uint32_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width) |
static av_cold int | decode_init (AVCodecContext *avctx) |
static int | decode_frame (AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt) |
static av_cold int | decode_close (AVCodecContext *avctx) |
Variables | |
static const AVOption | v210dec_options [] |
static const AVClass | v210dec_class |
AVCodec | ff_v210_decoder |
#define READ_PIXELS | ( | a, | |||
b, | |||||
c | ) |
Value:
do { \ val = av_le2ne32(*src++); \ *a++ = val & 0x3FF; \ *b++ = (val >> 10) & 0x3FF; \ *c++ = (val >> 20) & 0x3FF; \ } while (0)
Definition at line 30 of file v210dec.c.
Referenced by decode_frame(), and v210_planar_unpack_c().
#define V210DEC_FLAGS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM |
static av_cold int decode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int decode_frame | ( | AVCodecContext * | avctx, | |
void * | data, | |||
int * | data_size, | |||
AVPacket * | avpkt | |||
) | [static] |
static av_cold int decode_init | ( | AVCodecContext * | avctx | ) | [static] |
static void v210_planar_unpack_c | ( | const uint32_t * | src, | |
uint16_t * | y, | |||
uint16_t * | u, | |||
uint16_t * | v, | |||
int | width | |||
) | [static] |
Initial value:
{ .name = "v210", .type = AVMEDIA_TYPE_VIDEO, .id = AV_CODEC_ID_V210, .priv_data_size = sizeof(V210DecContext), .init = decode_init, .close = decode_close, .decode = decode_frame, .capabilities = CODEC_CAP_DR1, .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), .priv_class = &v210dec_class, }
const AVClass v210dec_class [static] |
Initial value:
{ "V210 Decoder", av_default_item_name, v210dec_options, LIBAVUTIL_VERSION_INT, }
const AVOption v210dec_options[] [static] |
Initial value:
{ {"custom_stride", "Custom V210 stride", 0x42, FF_OPT_TYPE_INT, {.dbl = 0}, INT_MIN, INT_MAX, V210DEC_FLAGS}, {NULL} }