41     uint32_t 
flags, in_format;
 
   46         in_format = UTVF_YV12;
 
   54         in_format = UTVF_YUYV;
 
  116     utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag), 
"libavcodec");
 
  120                             CBGROSSWIDTH_WINDOWS);
 
  126                                    CBGROSSWIDTH_WINDOWS);
 
  130     utv->
codec->SetState(&flags, 
sizeof(flags));
 
  136                                 const AVFrame *pic, 
int *got_packet)
 
  140     int ret, rgb_size, i;
 
  157         for (i = 0; i < 
h; i++) {
 
  161         for (i = 0; i < h / 2; i++) {
 
  169         for (i = 0; i < 
h; i++)
 
  170             memcpy(utv->
buffer + i * (w << 1),
 
  177         for (i = 0; i < 
h; i++)
 
  178             memcpy(utv->
buffer + (h - i - 1) * w * rgb_size,
 
  214     utv->
codec->EncodeEnd();
 
  215     CCodec::DeleteInstance(utv->
codec);
 
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B 
static int utvideo_encode_frame(AVCodecContext *avctx, AVPacket *pkt, const AVFrame *pic, int *got_packet)
#define AVERROR_INVALIDDATA
Invalid data found when processing input. 
This structure describes decoded (raw) audio or video data. 
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx. 
#define AV_CODEC_CAP_AUTO_THREADS
Codec supports avctx->thread_count == 0 (auto). 
static av_cold int utvideo_encode_init(AVCodecContext *avctx)
#define AV_CODEC_CAP_INTRA_ONLY
Codec is intra only. 
#define av_assert2(cond)
assert() equivalent, that does lie in speed critical code. 
uint8_t * extradata
some codecs need / can use extradata like Huffman tables. 
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv). 
#define AV_PKT_FLAG_KEY
The packet contains a keyframe. 
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
simple assert() macros that are a bit more flexible than ISO C assert(). 
int flags
A combination of AV_PKT_FLAG values. 
int width
picture width / height. 
attribute_deprecated int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
Known FOURCCs: 'ULY0' (YCbCr 4:2:0), 'ULY2' (YCbCr 4:2:2), 'ULRG' (RGB), 'ULRA' (RGBA), 'ULH0' (YCbCr 4:2:0 BT.709), 'ULH2' (YCbCr 4:2:2 BT.709) 
packed RGB 8:8:8, 24bpp, BGRBGR... 
int thread_count
thread count is used to decide how many independent tasks should be passed to execute() ...
Libavcodec external API header. 
attribute_deprecated int prediction_method
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line. 
main external API structure. 
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A'). 
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr 
enum AVColorSpace colorspace
YUV colorspace type. 
static av_cold int utvideo_encode_close(AVCodecContext *avctx)
int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size)
Check AVPacket size and/or allocate data. 
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes. 
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples) 
common internal api header. 
#define AV_CODEC_CAP_LOSSLESS
Codec is lossless. 
#define MKTAG(a, b, c, d)
AVPixelFormat
Pixel format. 
This structure stores compressed data. 
AVCodec ff_libutvideo_encoder
#define UTVF_NFCC_BGRA_BU