55 while(r->
sum > val && cnt < 9) {
95 v = ((v>>1) + r->
lossy) ^ -(v&1);
115 c = data[-stride -
step];
140 for (i = 1; i <
width; i++) {
142 data[i *
step] = data[i * step -
step] + val;
145 for (j = 1; j <
height; j++) {
148 data[0] = data[-
stride] + val;
150 for (i = 1; i <
width; i++) {
161 void *
data,
int *got_frame,
165 int buf_size = avpkt->
size;
184 if (decoded >= buf_size)
186 buf += decoded; buf_size -= decoded;
190 if (decoded >= buf_size)
192 buf += decoded; buf_size -= decoded;
200 if (decoded >= buf_size)
202 buf += decoded; buf_size -= decoded;
206 if (decoded >= buf_size)
208 buf += decoded; buf_size -= decoded;
216 if (decoded >= buf_size)
218 buf += decoded; buf_size -= decoded;
222 if (decoded >= buf_size)
224 buf += decoded; buf_size -= decoded;
232 if (decoded >= buf_size)
234 buf += decoded; buf_size -= decoded;
238 if (decoded >= buf_size)
240 buf += decoded; buf_size -= decoded;
244 if (decoded >= buf_size)
246 buf += decoded; buf_size -= decoded;
This structure describes decoded (raw) audio or video data.
void(* release_buffer)(struct AVCodecContext *c, AVFrame *pic)
Called to release buffers which were allocated with get_buffer.
static av_cold int decode_end(AVCodecContext *avctx)
static int loco_predict(uint8_t *data, int stride, int step)
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
static int get_ur_golomb_jpegls(GetBitContext *gb, int k, int limit, int esc_len)
read unsigned golomb rice code (jpegls).
static int decode(MimicContext *ctx, int quality, int num_coeffs, int is_iframe)
static int loco_get_rice_param(RICEContext *r)
uint8_t * extradata
some codecs need / can use extradata like Huffman tables.
static int get_bits_count(const GetBitContext *s)
bitstream reader API header.
static int init(AVCodecParserContext *s)
void av_log_ask_for_sample(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message asking for a sample.
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. ...
#define FF_DEBUG_PICT_INFO
void av_log(void *avcl, int level, const char *fmt,...)
const char * name
Name of the codec implementation.
static int loco_get_rice(RICEContext *r)
struct LOCOContext LOCOContext
planar YUV 4:2:2, 16bpp, (1 Cr & Cb sample per 2x1 Y samples)
struct RICEContext RICEContext
static void loco_update_rice_param(RICEContext *r, int val)
static av_cold int decode_init(AVCodecContext *avctx)
int width
picture width / height.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame)
Get a buffer for a frame.
packed RGB 8:8:8, 24bpp, BGRBGR...
static int loco_decode_plane(LOCOContext *l, uint8_t *data, int width, int height, int stride, const uint8_t *buf, int buf_size, int step)
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)
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.
planar YUV 4:2:0, 12bpp, (1 Cr & Cb sample per 2x2 Y samples)
common internal api header.
int key_frame
1 -> keyframe, 0-> not
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
This structure stores compressed data.