Lines Matching defs:ret

257     int len = 0, sym, code = 0, ret;
303 ret = init_vlc(&r->vlc, 8, alphabet_size,
306 if (ret < 0) {
308 return ret;
337 int i, symbol, max_symbol, prev_code_len, ret;
345 ret = huff_reader_build_canonical(&code_len_hc, code_length_code_lengths,
347 if (ret < 0)
348 return ret;
352 ret = AVERROR(ENOMEM);
362 ret = AVERROR_INVALIDDATA;
407 ret = AVERROR_INVALIDDATA;
415 ret = huff_reader_build_canonical(hc, code_lengths, alphabet_size);
420 return ret;
435 int ret, block_bits, blocks_w, blocks_h, x, y, max;
439 ret = decode_entropy_coded_image(s, IMAGE_ROLE_ENTROPY, blocks_w, blocks_h);
440 if (ret < 0)
441 return ret;
464 int block_bits, blocks_w, blocks_h, ret;
468 ret = decode_entropy_coded_image(s, IMAGE_ROLE_PREDICTOR, blocks_w,
470 if (ret < 0)
471 return ret;
480 int block_bits, blocks_w, blocks_h, ret;
484 ret = decode_entropy_coded_image(s, IMAGE_ROLE_COLOR_TRANSFORM, blocks_w,
486 if (ret < 0)
487 return ret;
497 int width_bits, index_size, ret, x;
511 ret = decode_entropy_coded_image(s, IMAGE_ROLE_COLOR_INDEXING,
513 if (ret < 0)
514 return ret;
557 int i, j, ret, x, y, width;
573 ret = ff_thread_get_buffer(s->avctx, img->frame, 0);
575 ret = av_frame_get_buffer(img->frame, 1);
576 if (ret < 0)
577 return ret;
596 ret = decode_entropy_image(s);
597 if (ret < 0)
598 return ret;
617 ret = read_huffman_code_normal(s, &hg[j], alphabet_size);
618 if (ret < 0)
619 return ret;
1091 int w, h, ret, i, used;
1098 ret = init_get_bits8(&s->gb, data_start, data_size);
1099 if (ret < 0)
1100 return ret;
1113 ret = ff_set_dimensions(avctx, s->width, s->height);
1114 if (ret < 0)
1115 return ret;
1139 ret = AVERROR_INVALIDDATA;
1146 ret = parse_transform_predictor(s);
1149 ret = parse_transform_color(s);
1152 ret = parse_transform_color_indexing(s);
1155 if (ret < 0)
1163 ret = decode_entropy_coded_image(s, IMAGE_ROLE_ARGB, w, h);
1164 if (ret < 0)
1171 ret = apply_predictor_transform(s);
1174 ret = apply_color_transform(s);
1177 ret = apply_subtract_green_transform(s);
1180 ret = apply_color_indexing_transform(s);
1183 if (ret < 0)
1190 ret = data_size;
1196 return ret;
1247 int x, y, ret;
1264 ret = vp8_lossless_decode_frame(avctx, s->alpha_frame, &alpha_got_frame,
1266 if (ret < 0) {
1268 return ret;
1300 int ret;
1319 ret = ff_vp8_decode_frame(avctx, p, got_frame, s->pkt);
1320 if (ret < 0)
1321 return ret;
1329 ret = vp8_lossy_decode_alpha(avctx, p, s->alpha_data,
1331 if (ret < 0)
1332 return ret;
1334 return ret;
1342 int ret;
1390 ret = vp8_lossy_decode_frame(avctx, p, got_frame,
1393 if (ret < 0)
1394 return ret;
1400 ret = vp8_lossless_decode_frame(avctx, p, got_frame,
1403 if (ret < 0)
1404 return ret;
1418 ret = av_image_check_size(s->width, s->height, 0, avctx);
1419 if (ret < 0)
1420 return ret;