40 uint8_t *y, *
u, *v, *
a;
44 while (extradata_size >= 24) {
45 uint32_t atom_size =
AV_RB32(extradata);
46 if (!memcmp(&extradata[4],
"APRGAPRG0001", 12)) {
50 if (atom_size && atom_size <= extradata_size) {
51 extradata += atom_size;
52 extradata_size -= atom_size;
57 if (avctx->
height == 486) {
63 if (avpkt->
size < opaque_length) {
68 avpkt->
size >= opaque_length * 2 + 4;
69 srca =
src + opaque_length + 5;
95 for (k = 0; k < avctx->
width >> 1; k++) {
98 a[2 * k ] = 0xFF - (transparent ? *srca++ : 0);
101 y[2 * k + 1] = *
src++;
102 a[2 * k + 1] = 0xFF - (transparent ? *srca++ : 0);
const FFCodec ff_avui_decoder
Libavcodec external API header.
static av_cold int avui_decode_init(AVCodecContext *avctx)
static int avui_decode_frame(AVCodecContext *avctx, AVFrame *pic, int *got_frame, AVPacket *avpkt)
static void BS_FUNC skip(BSCTX *bc, unsigned int n)
Skip n bits in the buffer.
#define i(width, name, range_min, range_max)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define u(width, name, range_min, range_max)
@ AV_PIX_FMT_YUVA422P
planar YUV 4:2:2 24bpp, (1 Cr & Cb sample per 2x1 Y & A samples)
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
int bits_per_coded_sample
bits per sample/pixel from the demuxer (needed for huffyuv).
uint8_t * extradata
Out-of-band global headers that may be used by some codecs.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int linesize[AV_NUM_DATA_POINTERS]
For video, a positive or negative value, which is typically indicating the size in bytes of each pict...
This structure stores compressed data.