56 case MKTAG(
'U',
'L',
'H',
'0'):
61 case MKTAG(
'U',
'L',
'H',
'2'):
67 case MKTAG(
'U',
'L',
'Y',
'0'):
71 case MKTAG(
'U',
'L',
'Y',
'2'):
75 case MKTAG(
'U',
'L',
'R',
'G'):
79 case MKTAG(
'U',
'L',
'R',
'A'):
85 "Not a Ut Video FOURCC: %X\n", avctx->
codec_tag);
114 utv->
codec = CCodec::CreateInstance(UNFCC(avctx->
codec_tag),
"libavcodec");
121 if (begin_ret != 0) {
123 "Could not initialize decoder: %d\n", begin_ret);
148 pic->linesize[0] = w;
149 pic->linesize[1] = pic->linesize[2] = w / 2;
150 pic->data[0] = utv->
buffer;
151 pic->data[2] = utv->
buffer + (w * h);
152 pic->data[1] = pic->data[2] + (w * h / 4);
155 pic->linesize[0] = w * 2;
156 pic->data[0] = utv->
buffer;
181 utv->
codec->DecodeEnd();
182 CCodec::DeleteInstance(utv->
codec);
This structure describes decoded (raw) audio or video data.
AVFrame * avcodec_alloc_frame(void)
Allocate an AVFrame and set its fields to default values.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
void av_freep(void *ptr)
Free a memory block which has been allocated with av_malloc(z)() or av_realloc() and set the pointer ...
if((e=av_dict_get(options,"", NULL, AV_DICT_IGNORE_SUFFIX)))
packed RGB 8:8:8, 24bpp, BGRBGR...
bitstream reader API header.
int interlaced_frame
The content of the picture is interlaced.
#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. ...
Libavcodec external API header.
int width
picture width / height.
void * av_malloc(size_t size) av_malloc_attrib 1(1)
Allocate a block of size bytes with alignment suitable for all memory accesses (including vectors if ...
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)
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
packed YUV 4:2:2, 16bpp, Y0 Cb Y1 Cr
main external API structure.
unsigned int codec_tag
fourcc (LSB first, so "ABCD" -> ('D'<<24) + ('C'<<16) + ('B'<<8) + 'A').
static av_cold int utvideo_decode_close(AVCodecContext *avctx)
#define MKTAG(a, b, c, d)
enum AVColorSpace colorspace
YUV colorspace type.
AVFrame * coded_frame
the picture in the bitstream
int top_field_first
If the content is interlaced, is top field displayed first.
int avpicture_get_size(enum AVPixelFormat pix_fmt, int width, int height)
Calculate the size in bytes that a picture of the given width and height would occupy if stored in th...
also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B
static av_cold int utvideo_decode_init(AVCodecContext *avctx)
AVCodec ff_libutvideo_decoder
static int utvideo_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
This structure stores compressed data.
#define UTVF_NFCC_BGRA_BU