41 int transparent,
interlaced = 1, skip, opaque_length,
i, j, k;
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;
79 srca += avctx->
width * skip;
84 srca += avctx->
width * skip;
98 for (k = 0; k < avctx->
width >> 1; k++) {
101 a[2 * k ] = 0xFF - (transparent ? *srca++ : 0);
104 y[2 * k + 1] = *
src++;
105 a[2 * k + 1] = 0xFF - (transparent ? *srca++ : 0);
Libavcodec external API header.
static av_cold int avui_decode_init(AVCodecContext *avctx)
static int avui_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
#define u(width, name, range_min, range_max)
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.
@ AV_PICTURE_TYPE_I
Intra.
#define FF_CODEC_CAP_INIT_THREADSAFE
The codec does not modify any global variables in the init function, allowing to call the init functi...
common internal API header
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
@ 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
some codecs need / can use extradata like Huffman tables.
const char * name
Name of the codec implementation.
This structure describes decoded (raw) audio or video data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
int key_frame
1 -> keyframe, 0-> not
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
enum AVPictureType pict_type
Picture type of the frame.
This structure stores compressed data.