Go to the source code of this file.
Defines | |
#define | CLIP(v) av_clip(v, 4, 1019) |
#define | WRITE_PIXELS(a, b, c) |
Functions | |
static av_cold int | encode_init (AVCodecContext *avctx) |
static int | encode_frame (AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data) |
static av_cold int | encode_close (AVCodecContext *avctx) |
Variables | |
AVCodec | ff_v210_encoder |
#define WRITE_PIXELS | ( | a, | |
b, | |||
c | |||
) |
do { \ val = CLIP(*a++); \ val |= (CLIP(*b++) << 10) | \ (CLIP(*c++) << 20); \ bytestream_put_le32(&p, val); \ } while (0)
Referenced by encode_frame().
static av_cold int encode_close | ( | AVCodecContext * | avctx | ) | [static] |
static int encode_frame | ( | AVCodecContext * | avctx, |
unsigned char * | buf, | ||
int | buf_size, | ||
void * | data | ||
) | [static] |
static av_cold int encode_init | ( | AVCodecContext * | avctx | ) | [static] |
{ .name = "v210", .type = AVMEDIA_TYPE_VIDEO, .id = CODEC_ID_V210, .init = encode_init, .encode = encode_frame, .close = encode_close, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P10, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), }