#include "avcodec.h"
#include "libavcodec/bytestream.h"
Go to the source code of this file.
Defines | |
#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 | v210_encoder |
#define WRITE_PIXELS | ( | a, | |||
b, | |||||
c | ) |
Value:
do { \ val = (*a++ >> 6) | \ ((*b++ & 0xFFC0) << 4); \ val|= (*c++ & 0xFFC0) << 14; \ 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] |
Initial value:
{ "v210", AVMEDIA_TYPE_VIDEO, CODEC_ID_V210, 0, encode_init, encode_frame, encode_close, .pix_fmts = (const enum PixelFormat[]){PIX_FMT_YUV422P16, PIX_FMT_NONE}, .long_name = NULL_IF_CONFIG_SMALL("Uncompressed 4:2:2 10-bit"), }