Searched refs:acoder (Results 1 – 5 of 5) sorted by relevance
/third_party/ffmpeg/libavcodec/ |
D | mss12.c | 159 static av_always_inline int decode_pixel(ArithCoder *acoder, PixContext *pctx, in decode_pixel() argument 164 if (acoder->overread > MAX_OVERREAD) in decode_pixel() 166 val = acoder->get_model_sym(acoder, &pctx->cache_model); in decode_pixel() 186 pix = acoder->get_model_sym(acoder, &pctx->full_model); in decode_pixel() 201 static int decode_pixel_in_context(ArithCoder *acoder, PixContext *pctx, in decode_pixel_in_context() argument 286 pix = acoder->get_model_sym(acoder, in decode_pixel_in_context() 291 return decode_pixel(acoder, pctx, ref_pix, nlen, 1); in decode_pixel_in_context() 294 static int decode_region(ArithCoder *acoder, uint8_t *dst, uint8_t *rgb_dst, in decode_region() argument 308 p = decode_pixel(acoder, pctx, NULL, 0, 0); in decode_region() 310 p = decode_pixel_in_context(acoder, pctx, dst + i, stride, in decode_region() [all …]
|
D | mss1.c | 123 static int decode_pal(MSS12Context *ctx, ArithCoder *acoder) in decode_pal() argument 131 ncol = arith_get_number(acoder, ctx->free_colours + 1); in decode_pal() 133 r = arith_get_bits(acoder, 8); in decode_pal() 134 g = arith_get_bits(acoder, 8); in decode_pal() 135 b = arith_get_bits(acoder, 8); in decode_pal() 148 ArithCoder acoder; in mss1_decode_frame() local 155 arith_init(&acoder, &gb); in mss1_decode_frame() 162 c->keyframe = !arith_get_bit(&acoder); in mss1_decode_frame() 166 pal_changed = decode_pal(c, &acoder); in mss1_decode_frame() 175 c->corrupted = ff_mss12_decode_rect(&ctx->sc, &acoder, 0, 0, in mss1_decode_frame()
|
D | mss2.c | 483 ArithCoder acoder; in mss2_decode_frame() local 537 arith2_init(&acoder, &gB); in mss2_decode_frame() 539 implicit_rect = !arith2_get_bit(&acoder); in mss2_decode_frame() 541 while (arith2_get_bit(&acoder)) { in mss2_decode_frame() 546 r->x = arith2_get_number(&acoder, avctx->width); in mss2_decode_frame() 548 r->x = arith2_get_number(&acoder, avctx->width - in mss2_decode_frame() 551 r->y = arith2_get_number(&acoder, avctx->height); in mss2_decode_frame() 552 r->w = arith2_get_number(&acoder, avctx->width - r->x) + 1; in mss2_decode_frame() 553 r->h = arith2_get_number(&acoder, avctx->height - r->y) + 1; in mss2_decode_frame() 571 if (!implicit_rect && arith2_get_bit(&acoder)) { in mss2_decode_frame() [all …]
|
D | mss3.c | 690 RangeCoder *acoder = &c->coder; in mss3_decode_frame() local 754 rac_init(acoder, buf + HEADER_SIZE, buf_size - HEADER_SIZE); in mss3_decode_frame() 766 btype = decode_block_type(acoder, c->btype + i); in mss3_decode_frame() 769 decode_fill_block(acoder, c->fill_coder + i, in mss3_decode_frame() 774 decode_image_block(acoder, c->image_coder + i, in mss3_decode_frame() 779 decode_dct_block(acoder, c->dct_coder + i, in mss3_decode_frame() 785 decode_haar_block(acoder, c->haar_coder + i, in mss3_decode_frame() 791 if (c->got_error || acoder->got_error) { in mss3_decode_frame()
|
D | mss12.h | 96 int ff_mss12_decode_rect(SliceContext *ctx, ArithCoder *acoder,
|