30#define BITSTREAM_READER_LE
44#define CODE_VLC_BITS 14
54 int pitch,
const uint8_t *
table)
70 for (
i = 0;
i <
c * 2;
i++)
81 for (j = 1; j <
height; j++) {
92 for (
i = 0;
i <
c * 2;
i++) {
116 int pitch,
const uint8_t *
table)
126 for (j = 0; j <
height; j++) {
157 const uint8_t *buf = avpkt->
data;
158 int buf_size = avpkt->
size;
168 if (start >= buf_size) {
173 s->decode_delta = buf[18];
180 ltab = buf[0x22] & 3;
181 ctab = buf[0x22] >> 2;
188 if (
s->decode_delta) {
190 p->data[0], p->linesize[0],
196 p->data[2], p->linesize[2],
200 p->data[1], p->linesize[1],
205 p->data[0], p->linesize[0],
210 p->data[2], p->linesize[2],
214 p->data[1], p->linesize[1],
uint8_t ptrdiff_t const uint8_t ptrdiff_t int intptr_t intptr_t int int16_t * dst
const FFCodec ff_indeo2_decoder
static AVFormatContext * ctx
static av_cold void close(AVCodecParserContext *s)
Libavcodec external API header.
#define i(width, name, range_min, range_max)
#define FF_CODEC_DECODE_CB(func)
#define CODEC_LONG_NAME(str)
int ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Identical in function to ff_get_buffer(), except it reuses the existing buffer if available.
int(* init)(AVBSFContext *ctx)
bitstream reader API header.
static av_always_inline int get_vlc2(GetBitContext *s, const VLCElem *table, int bits, int max_depth)
Parse a vlc code.
static int get_bits_left(GetBitContext *gb)
static int init_get_bits8(GetBitContext *s, const uint8_t *buffer, int byte_size)
Initialize GetBitContext.
#define AV_CODEC_CAP_DR1
Codec uses get_buffer() or get_encode_buffer() for allocating buffers and supports custom allocators.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int av_frame_ref(AVFrame *dst, const AVFrame *src)
Set up a new reference to the data described by the source frame.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
static int ir2_get_code(GetBitContext *gb)
static av_cold void ir2_init_static(void)
static VLCElem ir2_vlc[1<< CODE_VLC_BITS]
static int ir2_decode_plane(Ir2Context *ctx, int width, int height, uint8_t *dst, int pitch, const uint8_t *table)
static int ir2_decode_frame(AVCodecContext *avctx, AVFrame *picture, int *got_frame, AVPacket *avpkt)
static av_cold int ir2_decode_init(AVCodecContext *avctx)
static av_cold int ir2_decode_end(AVCodecContext *avctx)
static int ir2_decode_plane_inter(Ir2Context *ctx, int width, int height, uint8_t *dst, int pitch, const uint8_t *table)
static const uint8_t ir2_tab[IR2_CODES][2]
static const uint8_t ir2_delta_table[4][256]
Macro definitions for various function/variable attributes.
static int ff_thread_once(char *control, void(*routine)(void))
@ AV_PIX_FMT_YUV410P
planar YUV 4:1:0, 9bpp, (1 Cr & Cb sample per 4x4 Y samples)
static const uint16_t table[]
main external API structure.
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int width
picture width / height.
This structure describes decoded (raw) audio or video data.
This structure stores compressed data.
#define VLC_INIT_OUTPUT_LE
#define VLC_INIT_STATIC_TABLE_FROM_LENGTHS(vlc_table, nb_bits, nb_codes, lens, lens_wrap, syms, syms_wrap, syms_size, offset, flags)