36 0, 1, 2, 3, 4, 5, 6, 7,
37 8, 9, 12, 15, 20, 25, 34, 46,
38 64, 82, 94, 103, 108, 113, 116, 119,
39 120, 121, 122, 123, 124, 125, 126, 127};
42 void *
data,
int *data_size,
45 const uint8_t *buf = avpkt->
data;
46 int buf_size = avpkt->
size;
53 int y0, y1, y2, y3 = 0, c0 = 0,
c1 = 0;
72 if (avctx->
width % 4) {
82 for (i = 0; i < avctx->
height; i++) {
86 for (j = 0; j < avctx->
width; j += 4) {
90 val = ((val >> 16) & 0xFFFF) | ((val & 0xFFFF) << 16);
93 y0 = (val & 0x1F) << 2;
97 y1 = y0 + xl_table[val & 0x1F];
99 y2 = y1 + xl_table[val & 0x1F];
101 y3 = y2 + xl_table[val & 0x1F];
104 c0 = (val & 0x1F) << 2;
106 c0 += xl_table[val & 0x1F];
109 c1 = (val & 0x1F) << 2;
111 c1 += xl_table[val & 0x1F];
122 buf += avctx->
width + 4;
int(* get_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called at the beginning of each frame to get a buffer for it.
enum PixelFormat pix_fmt
Pixel format, see PIX_FMT_xxx.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPacket *avpkt)
planar YUV 4:1:1, 12bpp, (1 Cr & Cb sample per 4x1 Y samples)
static const int xl_table[32]
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
struct VideoXLContext VideoXLContext
static int init(AVCodecParserContext *s)
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
int reference
is this picture used as reference The values for this are the same as the MpegEncContext.picture_structure variable, that is 1->top field, 2->bottom field, 3->frame/both fields.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
enum AVPictureType pict_type
Picture type of the frame, see ?_TYPE below.
static av_cold int decode_init(AVCodecContext *avctx)
int width
picture width / height.
struct AVFrame AVFrame
Audio Video Frame.
int linesize[AV_NUM_DATA_POINTERS]
Size, in bytes, of the data for each picture/channel plane.
main external API structure.
static void close(AVCodecParserContext *s)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
static av_cold int decode_end(AVCodecContext *avctx)
int key_frame
1 -> keyframe, 0-> not