size 89 doc/examples/avio_list_dir.c entry->size, size 39 doc/examples/avio_reading.c size_t size; ///< size left in the buffer size 45 doc/examples/avio_reading.c buf_size = FFMIN(buf_size, bd->size); size 49 doc/examples/avio_reading.c printf("ptr:%p size:%zu\n", bd->ptr, bd->size); size 54 doc/examples/avio_reading.c bd->size -= buf_size; size 84 doc/examples/avio_reading.c bd.size = buffer_size; size 179 doc/examples/decode_audio.c ret = av_parser_parse2(parser, c, &pkt->data, &pkt->size, size 189 doc/examples/decode_audio.c if (pkt->size) size 204 doc/examples/decode_audio.c pkt->size = 0; size 162 doc/examples/decode_video.c ret = av_parser_parse2(parser, c, &pkt->data, &pkt->size, size 171 doc/examples/decode_video.c if (pkt->size) size 309 doc/examples/demuxing_decoding.c pkt.size = 0; size 118 doc/examples/encode_audio.c fwrite(pkt->data, 1, pkt->size, output); size 63 doc/examples/encode_video.c printf("Write packet %3"PRId64" (size=%5d)\n", pkt->pts, pkt->size); size 64 doc/examples/encode_video.c fwrite(pkt->data, 1, pkt->size, outfile); size 61 doc/examples/extract_mvs.c for (i = 0; i < sd->size / sizeof(*mvs); i++) { size 82 doc/examples/hw_decode.c int size; size 118 doc/examples/hw_decode.c size = av_image_get_buffer_size(tmp_frame->format, tmp_frame->width, size 120 doc/examples/hw_decode.c buffer = av_malloc(size); size 126 doc/examples/hw_decode.c ret = av_image_copy_to_buffer(buffer, size, size 135 doc/examples/hw_decode.c if ((ret = fwrite(buffer, 1, size, output_file)) < 0) { size 241 doc/examples/hw_decode.c packet.size = 0; size 249 doc/examples/qsvdec.c pkt.size = 0; size 255 doc/examples/transcode_aac.c packet->size = 0; size 419 doc/examples/transcoding.c enc_pkt.size = 0; size 508 doc/examples/transcoding.c AVPacket packet = { .data = NULL, .size = 0 }; size 81 doc/examples/vaapi_encode.c enc_pkt.size = 0; size 93 doc/examples/vaapi_encode.c ret = fwrite(enc_pkt.data, enc_pkt.size, 1, fout); size 104 doc/examples/vaapi_encode.c int size, err; size 118 doc/examples/vaapi_encode.c size = width * height; size 177 doc/examples/vaapi_encode.c if ((err = fread((uint8_t*)(sw_frame->data[0]), size, 1, fin)) <= 0) size 179 doc/examples/vaapi_encode.c if ((err = fread((uint8_t*)(sw_frame->data[1]), size/2, 1, fin)) <= 0) size 119 doc/examples/vaapi_transcode.c enc_pkt.size = 0; size 289 doc/examples/vaapi_transcode.c dec_pkt.size = 0; size 2181 fftools/cmdutils.c void *grow_array(void *array, int elem_size, int *size, int new_size) size 2187 fftools/cmdutils.c if (*size < new_size) { size 2193 fftools/cmdutils.c memset(tmp + *size*elem_size, 0, (new_size-*size) * elem_size); size 2194 fftools/cmdutils.c *size = new_size; size 618 fftools/cmdutils.h void *grow_array(void *array, int elem_size, int *size, int new_size); size 814 fftools/ffmpeg.c ost->data_size += pkt->size; size 825 fftools/ffmpeg.c pkt->size size 908 fftools/ffmpeg.c pkt.size = 0; size 919 fftools/ffmpeg.c av_assert0(pkt.size || !pkt.data); size 1026 fftools/ffmpeg.c pkt.size = subtitle_out_size; size 1193 fftools/ffmpeg.c pkt.size = 0; size 1310 fftools/ffmpeg.c frame_size = pkt.size; size 1819 fftools/ffmpeg.c FFMIN(buf_script.len, buf_script.size - 1)); size 1917 fftools/ffmpeg.c pkt.size = 0; size 1950 fftools/ffmpeg.c pkt_size = pkt.size; size 1991 fftools/ffmpeg.c opkt.size = 0; size 2039 fftools/ffmpeg.c int duration = av_get_audio_frame_duration(ist->dec_ctx, pkt->size); size 2333 fftools/ffmpeg.c if (!eof && pkt && pkt->size == 0) size 2466 fftools/ffmpeg.c if (!pkt->size) size 2573 fftools/ffmpeg.c avpkt.size = 0; size 3089 fftools/ffmpeg.c dst_data = av_stream_new_side_data(ost->st, sd_src->type, sd_src->size); size 3092 fftools/ffmpeg.c memcpy(dst_data, sd_src->data, sd_src->size); size 3182 fftools/ffmpeg.c int n = 1, i, size, index = 0; size 3188 fftools/ffmpeg.c size = n; size 3189 fftools/ffmpeg.c pts = av_malloc_array(size, sizeof(*pts)); size 3207 fftools/ffmpeg.c if (avf->nb_chapters > INT_MAX - size || size 3208 fftools/ffmpeg.c !(pts = av_realloc_f(pts, size += avf->nb_chapters - 1, size 3219 fftools/ffmpeg.c av_assert1(index < size); size 3227 fftools/ffmpeg.c av_assert1(index < size); size 3235 fftools/ffmpeg.c av_assert0(index == size); size 3236 fftools/ffmpeg.c qsort(pts, size, sizeof(*pts), compare_int64); size 3237 fftools/ffmpeg.c ost->forced_kf_count = size; size 3515 fftools/ffmpeg.c dst_data = av_stream_new_side_data(ost->st, sd_src->type, sd_src->size); size 3518 fftools/ffmpeg.c memcpy(dst_data, sd_src->data, sd_src->size); size 3534 fftools/ffmpeg.c uint8_t *dst = av_stream_new_side_data(ost->st, sd->type, sd->size); size 3537 fftools/ffmpeg.c memcpy(dst, sd->data, sd->size); size 4310 fftools/ffmpeg.c ist->data_size += pkt.size; size 4382 fftools/ffmpeg.c dst_data = av_packet_new_side_data(&pkt, src_sd->type, src_sd->size); size 4386 fftools/ffmpeg.c memcpy(dst_data, src_sd->data, src_sd->size); size 122 fftools/ffplay.c int size; size 174 fftools/ffplay.c int size; size 450 fftools/ffplay.c q->size += pkt1->pkt.size + sizeof(*pkt1); size 476 fftools/ffplay.c pkt->size = 0; size 512 fftools/ffplay.c q->size = 0; size 563 fftools/ffplay.c q->size -= pkt1->pkt.size + sizeof(*pkt1); size 753 fftools/ffplay.c while (f->size >= f->max_size && size 769 fftools/ffplay.c while (f->size - f->rindex_shown <= 0 && size 786 fftools/ffplay.c f->size++; size 801 fftools/ffplay.c f->size--; size 809 fftools/ffplay.c return f->size - f->rindex_shown; size 1708 fftools/ffplay.c aqsize = is->audioq.size; size 1710 fftools/ffplay.c vqsize = is->videoq.size; size 1712 fftools/ffplay.c sqsize = is->subtitleq.size; size 2279 fftools/ffplay.c int size, len; size 2281 fftools/ffplay.c size = samples_size / sizeof(short); size 2282 fftools/ffplay.c while (size > 0) { size 2284 fftools/ffplay.c if (len > size) size 2285 fftools/ffplay.c len = size; size 2291 fftools/ffplay.c size -= len; size 2571 fftools/ffplay.c return spec.size; size 3000 fftools/ffplay.c (is->audioq.size + is->videoq.size + is->subtitleq.size > MAX_QUEUE_SIZE size 3428 fftools/ffplay.c uint64_t size = avio_size(cur_stream->ic->pb); size 3429 fftools/ffplay.c stream_seek(cur_stream, size*x/cur_stream->width, 0, 1); size 813 fftools/ffprobe.c uint8_t *data, int size) size 820 fftools/ffprobe.c while (size) { size 822 fftools/ffprobe.c l = FFMIN(size, 16); size 834 fftools/ffprobe.c size -= l; size 841 fftools/ffprobe.c uint8_t *data, int size) size 848 fftools/ffprobe.c av_hash_update(hash, data, size); size 856 fftools/ffprobe.c uint8_t *data, int size, const char *format, size 864 fftools/ffprobe.c while (size) { size 866 fftools/ffprobe.c l = FFMIN(size, columns); size 872 fftools/ffprobe.c size --; size 1879 fftools/ffprobe.c if (sd->type == AV_PKT_DATA_DISPLAYMATRIX && sd->size >= 9*4) { size 1904 fftools/ffprobe.c } else if (sd->type == AV_PKT_DATA_SKIP_SAMPLES && sd->size == 10) { size 2073 fftools/ffprobe.c print_val("size", pkt->size, unit_byte_str); size 2080 fftools/ffprobe.c int size; size 2083 fftools/ffprobe.c side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size); size 2084 fftools/ffprobe.c if (side_metadata && size && do_show_packet_tags) { size 2086 fftools/ffprobe.c if (av_packet_unpack_dictionary(side_metadata, size, &dict) >= 0) size 2097 fftools/ffprobe.c writer_print_data(w, "data", pkt->data, pkt->size); size 2098 fftools/ffprobe.c writer_print_data_hash(w, "data_hash", pkt->data, pkt->size); size 2215 fftools/ffprobe.c if (sd->type == AV_FRAME_DATA_DISPLAYMATRIX && sd->size >= 9*4) { size 2218 fftools/ffprobe.c } else if (sd->type == AV_FRAME_DATA_GOP_TIMECODE && sd->size >= 8) { size 2222 fftools/ffprobe.c } else if (sd->type == AV_FRAME_DATA_S12M_TIMECODE && sd->size == 16) { size 2261 fftools/ffprobe.c print_int("size", sd->size); size 2811 fftools/ffprobe.c int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1; size 2825 fftools/ffprobe.c if (size >= 0) print_val ("size", size, unit_byte_str); size 54 libavcodec/012v.c && avpkt->size % avctx->height == 0 size 55 libavcodec/012v.c && avpkt->size / avctx->height * 3 >= width * 8) size 56 libavcodec/012v.c stride = avpkt->size / avctx->height; size 58 libavcodec/012v.c if (avpkt->size < avctx->height * stride) { size 60 libavcodec/012v.c avpkt->size, avctx->height * stride); size 144 libavcodec/012v.c return avpkt->size; size 130 libavcodec/4xm.c unsigned int size; size 838 libavcodec/4xm.c int buf_size = avpkt->size; size 883 libavcodec/4xm.c if (f->cfrm[i].size == 0) size 893 libavcodec/4xm.c if (data_size > UINT_MAX - cfrm->size - AV_INPUT_BUFFER_PADDING_SIZE) size 897 libavcodec/4xm.c cfrm->size + data_size + AV_INPUT_BUFFER_PADDING_SIZE); size 904 libavcodec/4xm.c memcpy(cfrm->data + cfrm->size, buf + 20, data_size); size 905 libavcodec/4xm.c cfrm->size += data_size; size 907 libavcodec/4xm.c if (cfrm->size >= whole_size) { size 909 libavcodec/4xm.c frame_size = cfrm->size; size 918 libavcodec/4xm.c cfrm->size = cfrm->id = 0; size 60 libavcodec/8bps.c int buf_size = avpkt->size; size 125 libavcodec/8bps.c int size; size 128 libavcodec/8bps.c &size); size 129 libavcodec/8bps.c if (pal && size == AVPALETTE_SIZE) { size 133 libavcodec/8bps.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 97 libavcodec/8svx.c int chan_size = avpkt->size / avctx->channels - hdr_size; size 99 libavcodec/8svx.c if (avpkt->size % avctx->channels) { size 102 libavcodec/8svx.c if (avpkt->size < (hdr_size + 1) * avctx->channels) { size 134 libavcodec/8svx.c return avpkt->size; size 390 libavcodec/a64multienc.c av_assert0(pkt->size >= req_size); size 391 libavcodec/a64multienc.c pkt->size = req_size; size 52 libavcodec/aac_adtstoasc_bsf.c if (bsfc->par_in->extradata && pkt->size >= 2 && (AV_RB16(pkt->data) >> 4) != 0xfff) size 55 libavcodec/aac_adtstoasc_bsf.c if (pkt->size < AV_AAC_ADTS_HEADER_SIZE) size 73 libavcodec/aac_adtstoasc_bsf.c pkt->size -= AV_AAC_ADTS_HEADER_SIZE + 2 * !hdr.crc_absent; size 74 libavcodec/aac_adtstoasc_bsf.c if (pkt->size <= 0) size 84 libavcodec/aac_adtstoasc_bsf.c init_get_bits(&gb, pkt->data, pkt->size * 8); size 96 libavcodec/aac_adtstoasc_bsf.c pkt->size -= get_bits_count(&gb)/8; size 35 libavcodec/aac_parser.c int size; size 45 libavcodec/aac_parser.c if ((size = ff_adts_header_parse(&bits, &hdr)) < 0) size 53 libavcodec/aac_parser.c return size; size 81 libavcodec/aaccoder.c int w, swb, cb, start, size; size 99 libavcodec/aaccoder.c size = sce->ics.swb_sizes[swb]; size 124 libavcodec/aaccoder.c &s->scoefs[start + w*128], size, size 63 libavcodec/aaccoder_trellis.h int w, swb, cb, start, size; size 81 libavcodec/aaccoder_trellis.h size = sce->ics.swb_sizes[swb]; size 127 libavcodec/aaccoder_trellis.h &s->scoefs[start + w*128], size, size 486 libavcodec/aacdec.c if ((err = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 495 libavcodec/aacdec.c if (muxlength > avpkt->size) size 499 libavcodec/aacdec.c return (err < 0) ? err : avpkt->size; size 504 libavcodec/aacdec.c return avpkt->size; size 1099 libavcodec/aacdec_template.c #define AAC_INIT_VLC_STATIC(num, size) \ size 1105 libavcodec/aacdec_template.c size); size 2493 libavcodec/aacdec_template.c int bottom, top, order, start, end, size, inc; size 2515 libavcodec/aacdec_template.c if ((size = end - start) <= 0) size 2527 libavcodec/aacdec_template.c for (m = 0; m < size; m++, start += inc) size 2532 libavcodec/aacdec_template.c for (m = 0; m < size; m++, start += inc) { size 2988 libavcodec/aacdec_template.c int size; size 2993 libavcodec/aacdec_template.c size = ff_adts_header_parse(gb, &hdr_info); size 2994 libavcodec/aacdec_template.c if (size > 0) { size 3045 libavcodec/aacdec_template.c return size; size 3336 libavcodec/aacdec_template.c int buf_size = avpkt->size; size 686 libavcodec/aacenc.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 895 libavcodec/aacenc.c avpkt->size = put_bits_count(&s->pb) >> 3; size 61 libavcodec/aacenc.h void (*quantize_and_encode_band)(struct AACEncContext *s, PutBitContext *pb, const float *in, float *out, int size, size 413 libavcodec/aacenc.h void (*abs_pow34)(float *out, const float *in, const int size); size 415 libavcodec/aacenc.h int size, int is_signed, int maxval, const float Q34, size 44 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, size 63 libavcodec/aacenc_quantization.h for (i = 0; i < size; i++) size 70 libavcodec/aacenc_quantization.h for (i = 0; i < size; i += dim) size 77 libavcodec/aacenc_quantization.h s->abs_pow34(s->scoefs, in, size); size 80 libavcodec/aacenc_quantization.h s->quant_bands(s->qcoefs, in, scaled, size, !BT_UNSIGNED, aac_cb_maxval[cb], Q34, ROUNDING); size 86 libavcodec/aacenc_quantization.h for (i = 0; i < size; i += dim) { size 164 libavcodec/aacenc_quantization.h int size, int scale_idx, int cb, size 175 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, \ size 179 libavcodec/aacenc_quantization.h s, pb, in, quant, scaled, size, scale_idx, \ size 198 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, size 222 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, size 244 libavcodec/aacenc_quantization.h s, pb, in, quant, scaled, size, scale_idx, cb, \ size 247 libavcodec/aacenc_quantization.h s, pb, in, quant, scaled, size, scale_idx, cb, \ size 251 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, size 255 libavcodec/aacenc_quantization.h return quantize_and_encode_band_cost(s, NULL, in, NULL, scaled, size, scale_idx, size 260 libavcodec/aacenc_quantization.h const float *scaled, int size, int scale_idx, size 265 libavcodec/aacenc_quantization.h quantize_and_encode_band_cost(s, NULL, in, NULL, scaled, size, scale_idx, size 274 libavcodec/aacenc_quantization.h const float *in, float *out, int size, int scale_idx, size 277 libavcodec/aacenc_quantization.h quantize_and_encode_band_cost(s, pb, in, out, NULL, size, scale_idx, cb, lambda, size 32 libavcodec/aacenc_quantization_misc.h const float *scaled, int size, int scale_idx, size 40 libavcodec/aacenc_quantization_misc.h entry->rd = quantize_band_cost(s, in, scaled, size, scale_idx, size 106 libavcodec/aacenc_tns.c int w, filt, m, i, top, order, bottom, start, end, size, inc; size 124 libavcodec/aacenc_tns.c if ((size = end - start) <= 0) size 135 libavcodec/aacenc_tns.c for (m = 0; m < size; m++, start += inc) { size 40 libavcodec/aacenc_utils.h static inline void abs_pow34_v(float *out, const float *in, const int size) size 43 libavcodec/aacenc_utils.h for (i = 0; i < size; i++) { size 66 libavcodec/aacenc_utils.h int size, int is_signed, int maxval, const float Q34, size 70 libavcodec/aacenc_utils.h for (i = 0; i < size; i++) { size 1002 libavcodec/aacps.c #define PS_INIT_VLC_STATIC(num, size) \ size 1006 libavcodec/aacps.c size); size 326 libavcodec/aacpsy.c ctx->bitres.size = 6144 - pctx->frame_bits; size 327 libavcodec/aacpsy.c ctx->bitres.size -= ctx->bitres.size % 8; size 328 libavcodec/aacpsy.c pctx->fill_level = ctx->bitres.size; size 491 libavcodec/aacpsy.c static int calc_bit_demand(AacPsyContext *ctx, float pe, int bits, int size, size 503 libavcodec/aacpsy.c ctx->fill_level = av_clip(ctx->fill_level, 0, size); size 504 libavcodec/aacpsy.c fill_level = av_clipf((float)ctx->fill_level / size, clip_low, clip_high); size 531 libavcodec/aacpsy.c FFMAX(ctx->frame_bits + size - bits, ctx->frame_bits / 8)); size 724 libavcodec/aacpsy.c desired_bits = calc_bit_demand(pctx, pe, ctx->bitres.bits, ctx->bitres.size, wi->num_windows == 8); size 72 libavcodec/aacsbr.h #define SBR_INIT_VLC_STATIC(num, size) \ size 76 libavcodec/aacsbr.h size) size 207 libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c #define define_loop_filter(dir, wd, size, bpp) \ size 208 libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c void ff_vp9_loop_filter_##dir##_##wd##_##size##_##bpp##_neon(uint8_t *dst, ptrdiff_t stride, int E, int I, int H) size 210 libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c #define define_loop_filters(wd, size, bpp) \ size 211 libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c define_loop_filter(h, wd, size, bpp); \ size 212 libavcodec/aarch64/vp9dsp_init_16bpp_aarch64_template.c define_loop_filter(v, wd, size, bpp) size 85 libavcodec/aasc.c int buf_size = avpkt->size; size 140 libavcodec/aasc.c return avpkt->size; size 153 libavcodec/ac3_parser.c size_t size) size 165 libavcodec/ac3_parser.c err = init_get_bits8(&gb, buf, size); size 175 libavcodec/ac3_parser.c int av_ac3_parse_header(const uint8_t *buf, size_t size, size 182 libavcodec/ac3_parser.c init_get_bits8(&gb, buf, size); size 254 libavcodec/ac3_parser.c size_t size) size 259 libavcodec/ac3_parser.c int av_ac3_parse_header(const uint8_t *buf, size_t size, size 32 libavcodec/ac3_parser.h int av_ac3_parse_header(const uint8_t *buf, size_t size, size 40 libavcodec/ac3_parser_internal.h size_t size); size 1467 libavcodec/ac3dec.c int buf_size, full_buf_size = avpkt->size; size 136 libavcodec/acelp_filters.c void ff_tilt_compensation(float *mem, float tilt, float *samples, int size) size 138 libavcodec/acelp_filters.c float new_tilt_mem = samples[size - 1]; size 141 libavcodec/acelp_filters.c for (i = size - 1; i > 0; i--) size 149 libavcodec/acelp_filters.h void ff_tilt_compensation(float *mem, float tilt, float *samples, int size); size 204 libavcodec/acelp_vectors.c int size, float alpha, float *gain_mem) size 207 libavcodec/acelp_vectors.c float postfilter_energ = avpriv_scalarproduct_float_c(in, in, size); size 216 libavcodec/acelp_vectors.c for (i = 0; i < size; i++) { size 235 libavcodec/acelp_vectors.c void ff_set_fixed_vector(float *out, const AMRFixed *in, float scale, int size) size 244 libavcodec/acelp_vectors.c av_assert0(x < size); size 249 libavcodec/acelp_vectors.c } while (x < size && repeats); size 253 libavcodec/acelp_vectors.c void ff_clear_fixed_vector(float *out, const AMRFixed *in, int size) size 264 libavcodec/acelp_vectors.c } while (x < size && repeats); size 249 libavcodec/acelp_vectors.h int size, float alpha, float *gain_mem); size 277 libavcodec/acelp_vectors.h void ff_set_fixed_vector(float *out, const AMRFixed *in, float scale, int size); size 286 libavcodec/acelp_vectors.h void ff_clear_fixed_vector(float *out, const AMRFixed *in, int size); size 462 libavcodec/adpcm.c static inline int16_t adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, int8_t nibble, int size, int shift) size 466 libavcodec/adpcm.c sign = nibble & (1<<(size-1)); size 467 libavcodec/adpcm.c delta = nibble & ((1<<(size-1))-1); size 474 libavcodec/adpcm.c if (delta >= (2*size - 3) && c->step < 3) size 634 libavcodec/adpcm.c int size = buf_size*8; size 637 libavcodec/adpcm.c init_get_bits(&gb, buf, size); size 645 libavcodec/adpcm.c while (get_bits_count(&gb) <= size - 22*avctx->channels) { size 651 libavcodec/adpcm.c for (count = 0; get_bits_count(&gb) <= size - nb_bits*avctx->channels && count < 4095; count++) { size 933 libavcodec/adpcm.c int buf_size = avpkt->size; size 2035 libavcodec/adpcm.c if (avpkt->size && bytestream2_tell(&gb) == 0) { size 2042 libavcodec/adpcm.c if (avpkt->size < bytestream2_tell(&gb)) { size 2043 libavcodec/adpcm.c av_log(avctx, AV_LOG_ERROR, "Overread of %d < %d\n", avpkt->size, bytestream2_tell(&gb)); size 2044 libavcodec/adpcm.c return avpkt->size; size 724 libavcodec/adpcmenc.c avpkt->size = pkt_size; size 32 libavcodec/adts_header.c int size, rdb, ch, sr; size 54 libavcodec/adts_header.c size = get_bits(gbc, 13); /* aac_frame_length */ size 55 libavcodec/adts_header.c if (size < AV_AAC_ADTS_HEADER_SIZE) size 68 libavcodec/adts_header.c hdr->bit_rate = size * 8 * hdr->sample_rate / hdr->samples; size 70 libavcodec/adts_header.c return size; size 99 libavcodec/adxdec.c int buf_size = avpkt->size; size 104 libavcodec/adxdec.c const uint8_t *buf_end = buf + avpkt->size; size 138 libavcodec/adxdec.c return avpkt->size; size 154 libavcodec/adxdec.c buf = avpkt->data + avpkt->size; size 171 libavcodec/adxenc.c if ((hdrsize = adx_encode_header(avctx, dst, avpkt->size)) < 0) { size 69 libavcodec/agm.c int size[3]; size 311 libavcodec/agm.c static int decode_intra_plane(AGMContext *s, GetBitContext *gb, int size, size 318 libavcodec/agm.c if ((ret = init_get_bits8(gb, s->gbyte.buffer, size)) < 0) size 390 libavcodec/agm.c static int decode_inter_plane(AGMContext *s, GetBitContext *gb, int size, size 396 libavcodec/agm.c if ((ret = init_get_bits8(gb, s->gbyte.buffer, size)) < 0) size 805 libavcodec/agm.c ret = decode_intra_plane(s, gb, s->size[0], s->luma_quant_matrix, frame, 0); size 809 libavcodec/agm.c bytestream2_skip(&s->gbyte, s->size[0]); size 814 libavcodec/agm.c ret = decode_intra_plane(s, gb, s->size[1], s->chroma_quant_matrix, frame, 2); size 818 libavcodec/agm.c bytestream2_skip(&s->gbyte, s->size[1]); size 823 libavcodec/agm.c ret = decode_intra_plane(s, gb, s->size[2], s->chroma_quant_matrix, frame, 1); size 842 libavcodec/agm.c (s->size[0] + s->size[1] + s->size[2]))) < 0) size 888 libavcodec/agm.c ret = decode_inter_plane(s, gb, s->size[0], s->luma_quant_matrix, frame, prev, 0); size 892 libavcodec/agm.c bytestream2_skip(&s->gbyte, s->size[0]); size 897 libavcodec/agm.c ret = decode_inter_plane(s, gb, s->size[1], s->chroma_quant_matrix, frame, prev, 2); size 901 libavcodec/agm.c bytestream2_skip(&s->gbyte, s->size[1]); size 906 libavcodec/agm.c ret = decode_inter_plane(s, gb, s->size[2], s->chroma_quant_matrix, frame, prev, 1); size 1042 libavcodec/agm.c static int decode_huffman2(AVCodecContext *avctx, int header, int size) size 1106 libavcodec/agm.c if (!avpkt->size) size 1109 libavcodec/agm.c bytestream2_init(gbyte, avpkt->data, avpkt->size); size 1116 libavcodec/agm.c if (avpkt->size < s->bitstream_size + 8) size 1135 libavcodec/agm.c ret = decode_huffman2(avctx, header, (avpkt->size - s->bitstream_size) - 8); size 1174 libavcodec/agm.c s->size[i] = bytestream2_get_le32(gbyte); size 1179 libavcodec/agm.c compressed_size = avpkt->size; size 1182 libavcodec/agm.c if (s->size[0] < 0 || s->size[1] < 0 || s->size[2] < 0 || size 1183 libavcodec/agm.c skip + s->size[0] + s->size[1] + s->size[2] > compressed_size) { size 1229 libavcodec/agm.c return avpkt->size; size 159 libavcodec/aic.c static int aic_decode_header(AICContext *ctx, const uint8_t *src, int size) size 175 libavcodec/aic.c if (frame_size > size) { size 177 libavcodec/aic.c frame_size, size); size 387 libavcodec/aic.c int buf_size = avpkt->size; size 439 libavcodec/aic.c return avpkt->size; size 423 libavcodec/alac.c if ((ret = init_get_bits8(&alac->gb, avpkt->data, avpkt->size)) < 0) size 460 libavcodec/alac.c if (avpkt->size * 8 - get_bits_count(&alac->gb) > 8) { size 462 libavcodec/alac.c avpkt->size * 8 - get_bits_count(&alac->gb)); size 470 libavcodec/alac.c return avpkt->size; size 468 libavcodec/alacenc.c init_put_bits(pb, avpkt->data, avpkt->size); size 649 libavcodec/alacenc.c avpkt->size = out_bytes; size 40 libavcodec/aliaspixdec.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 43 libavcodec/aliaspixdec.c av_log(avctx, AV_LOG_ERROR, "Header too small %d.\n", avpkt->size); size 121 libavcodec/aliaspixdec.c return avpkt->size; size 1789 libavcodec/alsdec.c int buffer_size = avpkt->size; size 452 libavcodec/amfenc.c int64_t size = buffer->pVtbl->GetSize(buffer); size 454 libavcodec/amfenc.c if ((ret = av_new_packet(pkt, size)) < 0) { size 457 libavcodec/amfenc.c memcpy(pkt->data, buffer->pVtbl->GetNative(buffer), size); size 51 libavcodec/amr.h static inline void ff_amr_bit_reorder(uint16_t *out, int size, size 57 libavcodec/amr.h memset(out, 0, size); size 955 libavcodec/amrnbdec.c int buf_size = avpkt->size; size 993 libavcodec/amrwbdec.c static void lpc_weighting(float *out, const float *lpc, float gamma, int size) size 998 libavcodec/amrwbdec.c for (i = 0; i < size; i++) { size 1101 libavcodec/amrwbdec.c int buf_size = avpkt->size; size 115 libavcodec/anm.c const int buf_size = avpkt->size; size 362 libavcodec/ansi.c int buf_size = avpkt->size; size 1453 libavcodec/apedec.c if (!avpkt->size) { size 1457 libavcodec/apedec.c if (avpkt->size < 8) { size 1461 libavcodec/apedec.c buf_size = avpkt->size & ~3; size 1462 libavcodec/apedec.c if (buf_size != avpkt->size) { size 1516 libavcodec/apedec.c return avpkt->size; size 1606 libavcodec/apedec.c return !s->samples ? avpkt->size : 0; size 115 libavcodec/aptx.h #define RSHIFT_SIZE(size) \ size 117 libavcodec/aptx.h static int##size##_t rshift##size(int##size##_t value, int shift) \ size 119 libavcodec/aptx.h int##size##_t rounding = (int##size##_t)1 << (shift - 1); \ size 120 libavcodec/aptx.h int##size##_t mask = ((int##size##_t)1 << (shift + 1)) - 1; \ size 124 libavcodec/aptx.h static int##size##_t rshift##size##_clip24(int##size##_t value, int shift) \ size 126 libavcodec/aptx.h return av_clip_intp2(rshift##size(value, shift), 23); \ size 142 libavcodec/aptxdec.c if (avpkt->size < s->block_size) { size 150 libavcodec/aptxdec.c frame->nb_samples = 4 * avpkt->size / s->block_size; size 127 libavcodec/arbc.c if (avpkt->size < 10) size 130 libavcodec/arbc.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 134 libavcodec/arbc.c return avpkt->size; size 183 libavcodec/arbc.c return avpkt->size; size 24 libavcodec/arm/startcode.h int ff_startcode_find_candidate_armv6(const uint8_t *buf, int size); size 191 libavcodec/arm/vp9dsp_init_16bpp_arm_template.c #define define_loop_filter(dir, wd, size, bpp) \ size 192 libavcodec/arm/vp9dsp_init_16bpp_arm_template.c void ff_vp9_loop_filter_##dir##_##wd##_##size##_##bpp##_neon(uint8_t *dst, ptrdiff_t stride, int E, int I, int H) size 194 libavcodec/arm/vp9dsp_init_16bpp_arm_template.c #define define_loop_filters(wd, size, bpp) \ size 195 libavcodec/arm/vp9dsp_init_16bpp_arm_template.c define_loop_filter(h, wd, size, bpp); \ size 196 libavcodec/arm/vp9dsp_init_16bpp_arm_template.c define_loop_filter(v, wd, size, bpp) size 187 libavcodec/arm/vp9dsp_init_arm.c #define define_loop_filter(dir, wd, size) \ size 188 libavcodec/arm/vp9dsp_init_arm.c void ff_vp9_loop_filter_##dir##_##wd##_##size##_neon(uint8_t *dst, ptrdiff_t stride, int E, int I, int H) size 190 libavcodec/arm/vp9dsp_init_arm.c #define define_loop_filters(wd, size) \ size 191 libavcodec/arm/vp9dsp_init_arm.c define_loop_filter(h, wd, size); \ size 192 libavcodec/arm/vp9dsp_init_arm.c define_loop_filter(v, wd, size) size 148 libavcodec/ass.c void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, size 151 libavcodec/ass.c const char *p_end = p + size; size 137 libavcodec/ass.h void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, size 44 libavcodec/ass_split.c int size; size 64 libavcodec/ass_split.c .size = sizeof(ASSStyle), size 96 libavcodec/ass_split.c .size = sizeof(ASSStyle), size 123 libavcodec/ass_split.c .size = sizeof(ASSDialog), size 210 libavcodec/ass_split.c uint8_t *tmp = av_realloc_array(*section_ptr, (*count+1), section->size); size 214 libavcodec/ass_split.c tmp += *count * section->size; size 215 libavcodec/ass_split.c memset(tmp, 0, section->size); size 401 libavcodec/ass_split.c for (i=0; i<*count; i++, ptr += section->size) size 517 libavcodec/ass_split.c int len, size = -1, an = -1, alpha = -1; size 541 libavcodec/ass_split.c sscanf(buf, "\\fs%u%1[\\}]%n", &size, sep, &len) > 1) { size 543 libavcodec/ass_split.c callbacks->font_size(priv, size); size 165 libavcodec/ass_split.h void (*font_size)(void *priv, int size); size 46 libavcodec/assdec.c if (avpkt->size <= 0) size 47 libavcodec/assdec.c return avpkt->size; size 61 libavcodec/assdec.c return avpkt->size; size 209 libavcodec/asvdec.c int buf_size = avpkt->size; size 219 libavcodec/asvenc.c int size, ret; size 268 libavcodec/asvenc.c init_put_bits(&a->pb, pkt->data, pkt->size); size 298 libavcodec/asvenc.c size = put_bits_count(&a->pb) / 32; size 302 libavcodec/asvenc.c (uint32_t *) pkt->data, size); size 305 libavcodec/asvenc.c for (i = 0; i < 4 * size; i++) size 309 libavcodec/asvenc.c pkt->size = size * 4; size 277 libavcodec/atrac1.c int buf_size = avpkt->size; size 757 libavcodec/atrac3.c int size, float **out_samples) size 763 libavcodec/atrac3.c init_get_bits(&q->gb, databuf, size * 8); size 795 libavcodec/atrac3.c int buf_size = avpkt->size; size 840 libavcodec/atrac3.c ret = al_decode_frame(avctx, avpkt->data, avpkt->size, size 849 libavcodec/atrac3.c return avpkt->size; size 341 libavcodec/atrac3plusdec.c if ((ret = init_get_bits8(&ctx->gb, avpkt->data, avpkt->size)) < 0) size 386 libavcodec/atrac3plusdec.c return avctx->codec_id == AV_CODEC_ID_ATRAC3P ? FFMIN(avctx->block_align, avpkt->size) : avpkt->size; size 786 libavcodec/atrac9dec.c const int frames = FFMIN(avpkt->size / s->avg_frame_size, s->frame_count); size 793 libavcodec/atrac9dec.c init_get_bits8(&gb, avpkt->data, avpkt->size); size 933 libavcodec/atrac9dec.c init_vlc(&s->sf_vlc[0][i], 9, hf->size, hf->bits, 1, 1, hf->codes, size 941 libavcodec/atrac9dec.c int nums = hf->size; size 946 libavcodec/atrac9dec.c ff_init_vlc_sparse(&s->sf_vlc[1][i], 9, hf->size, hf->bits, 1, 1, size 955 libavcodec/atrac9dec.c init_vlc(&s->coeff_vlc[i][j][k], 9, hf->size, hf->bits, 1, 1, size 475 libavcodec/atrac9tab.h const int size; size 130 libavcodec/audiotoolboxdec.c static AudioChannelLayout *ffat_convert_layout(AudioChannelLayout *layout, UInt32* size) size 138 libavcodec/audiotoolboxdec.c sizeof(UInt32), &layout->mChannelBitmap, size); size 141 libavcodec/audiotoolboxdec.c sizeof(AudioChannelLayoutTag), &tag, size); size 142 libavcodec/audiotoolboxdec.c new_layout = av_malloc(*size); size 149 libavcodec/audiotoolboxdec.c sizeof(UInt32), &layout->mChannelBitmap, size, new_layout); size 152 libavcodec/audiotoolboxdec.c sizeof(AudioChannelLayoutTag), &tag, size, new_layout); size 162 libavcodec/audiotoolboxdec.c UInt32 size = sizeof(format); size 165 libavcodec/audiotoolboxdec.c &size, &format)) { size 175 libavcodec/audiotoolboxdec.c &size, &format)) { size 180 libavcodec/audiotoolboxdec.c size, &format); size 184 libavcodec/audiotoolboxdec.c &size, NULL) && size) { size 185 libavcodec/audiotoolboxdec.c AudioChannelLayout *layout = av_malloc(size); size 191 libavcodec/audiotoolboxdec.c &size, layout); size 192 libavcodec/audiotoolboxdec.c if (!(layout = ffat_convert_layout(layout, &size))) size 218 libavcodec/audiotoolboxdec.c static void put_descr(PutByteContext *pb, int tag, unsigned int size) size 223 libavcodec/audiotoolboxdec.c bytestream2_put_byte(pb, (size >> (7 * i)) | 0x80); size 224 libavcodec/audiotoolboxdec.c bytestream2_put_byte(pb, size & 0x7F); size 336 libavcodec/audiotoolboxdec.c } else if (pkt && pkt->size >= 4 && size 350 libavcodec/audiotoolboxdec.c } else if (pkt && pkt->size >= 7 && size 355 libavcodec/audiotoolboxdec.c init_get_bits(&gbc, pkt->data, pkt->size); size 442 libavcodec/audiotoolboxdec.c data->mBuffers[0].mDataByteSize = at->in_pkt.size; size 448 libavcodec/audiotoolboxdec.c at->pkt_desc.mDataByteSize = at->in_pkt.size; size 479 libavcodec/audiotoolboxdec.c int pkt_size = avpkt->size; size 519 libavcodec/audiotoolboxdec.c if (avpkt->size) { size 91 libavcodec/audiotoolboxenc.c UInt32 size = sizeof(unsigned); size 97 libavcodec/audiotoolboxenc.c &size, &at->pkt_size); size 102 libavcodec/audiotoolboxenc.c size = sizeof(prime_info); size 106 libavcodec/audiotoolboxenc.c &size, &prime_info)) { size 110 libavcodec/audiotoolboxenc.c size = sizeof(out_format); size 113 libavcodec/audiotoolboxenc.c &size, &out_format)) { size 338 libavcodec/audiotoolboxenc.c UInt32 size; size 341 libavcodec/audiotoolboxenc.c &size, NULL); size 342 libavcodec/audiotoolboxenc.c if (!status && size) { size 346 libavcodec/audiotoolboxenc.c AudioValueRange *ranges = av_malloc(size); size 351 libavcodec/audiotoolboxenc.c &size, ranges); size 352 libavcodec/audiotoolboxenc.c count = size / sizeof(AudioValueRange); size 554 libavcodec/audiotoolboxenc.c avpkt->size = out_buffers.mBuffers[0].mDataByteSize; size 53 libavcodec/aura.c if (pkt->size != 48 + avctx->height * avctx->width) { size 55 libavcodec/aura.c pkt->size, 48 + avctx->height * avctx->width); size 97 libavcodec/aura.c return pkt->size; size 92 libavcodec/av1_frame_split_bsf.c int cur_frame_type = -1, size = 0; size 97 libavcodec/av1_frame_split_bsf.c size += unit->data_size; size 163 libavcodec/av1_frame_split_bsf.c out->size = size; size 167 libavcodec/av1_frame_split_bsf.c s->buffer_pkt->data += size; size 168 libavcodec/av1_frame_split_bsf.c s->buffer_pkt->size -= size; size 45 libavcodec/av1_parse.c obu->size = obu_size; size 51 libavcodec/av1_parse.c obu->type, obu->temporal_id, obu->spatial_id, obu->size); size 89 libavcodec/av1_parse.c obu->size_bits = get_obu_bit_length(obu->data, obu->size, obu->type); size 32 libavcodec/av1_parse.h int size; size 106 libavcodec/av1_parse.h int64_t size; size 136 libavcodec/av1_parse.h size = *obu_size + *start_pos; size 138 libavcodec/av1_parse.h if (size > buf_size) size 141 libavcodec/av1_parse.h return size; size 144 libavcodec/av1_parse.h static inline int get_obu_bit_length(const uint8_t *buf, int size, int type) size 152 libavcodec/av1_parse.h if (size > INT_MAX / 8) size 155 libavcodec/av1_parse.h return size * 8; size 158 libavcodec/av1_parse.h while (size > 0 && buf[size - 1] == 0) size 159 libavcodec/av1_parse.h size--; size 161 libavcodec/av1_parse.h if (!size) size 164 libavcodec/av1_parse.h v = buf[size - 1]; size 166 libavcodec/av1_parse.h if (size > INT_MAX / 8) size 168 libavcodec/av1_parse.h size *= 8; size 172 libavcodec/av1_parse.h size -= ff_ctz(v) + 1; size 174 libavcodec/av1_parse.h return size; size 55 libavcodec/av1_parser.c const uint8_t *data, int size) size 65 libavcodec/av1_parser.c *out_size = size; size 84 libavcodec/av1_parser.c ret = ff_cbs_read(s->cbc, td, data, size); size 198 libavcodec/av1_parser.c return size; size 1502 libavcodec/avcodec.h void (*rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb); size 1825 libavcodec/avcodec.h int (*execute)(struct AVCodecContext *c, int (*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size); size 3882 libavcodec/avcodec.h int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size); size 4040 libavcodec/avcodec.h void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size); size 4046 libavcodec/avcodec.h void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size); size 4136 libavcodec/avcodec.h AVCPBProperties *av_cpb_properties_alloc(size_t *size); size 73 libavcodec/avpacket.c static int packet_alloc(AVBufferRef **buf, int size) size 76 libavcodec/avpacket.c if (size < 0 || size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 79 libavcodec/avpacket.c ret = av_buffer_realloc(buf, size + AV_INPUT_BUFFER_PADDING_SIZE); size 83 libavcodec/avpacket.c memset((*buf)->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 88 libavcodec/avpacket.c int av_new_packet(AVPacket *pkt, int size) size 91 libavcodec/avpacket.c int ret = packet_alloc(&buf, size); size 98 libavcodec/avpacket.c pkt->size = size; size 103 libavcodec/avpacket.c void av_shrink_packet(AVPacket *pkt, int size) size 105 libavcodec/avpacket.c if (pkt->size <= size) size 107 libavcodec/avpacket.c pkt->size = size; size 108 libavcodec/avpacket.c memset(pkt->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 114 libavcodec/avpacket.c av_assert0((unsigned)pkt->size <= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); size 116 libavcodec/avpacket.c INT_MAX - (pkt->size + AV_INPUT_BUFFER_PADDING_SIZE)) size 119 libavcodec/avpacket.c new_size = pkt->size + grow_by + AV_INPUT_BUFFER_PADDING_SIZE; size 132 libavcodec/avpacket.c if (new_size + data_offset > pkt->buf->size || size 145 libavcodec/avpacket.c if (pkt->size > 0) size 146 libavcodec/avpacket.c memcpy(pkt->buf->data, pkt->data, pkt->size); size 149 libavcodec/avpacket.c pkt->size += grow_by; size 150 libavcodec/avpacket.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 155 libavcodec/avpacket.c int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size) size 157 libavcodec/avpacket.c if (size >= INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 160 libavcodec/avpacket.c pkt->buf = av_buffer_create(data, size + AV_INPUT_BUFFER_PADDING_SIZE, size 166 libavcodec/avpacket.c pkt->size = size; size 173 libavcodec/avpacket.c #define ALLOC_MALLOC(data, size) data = av_malloc(size) size 174 libavcodec/avpacket.c #define ALLOC_BUF(data, size) \ size 176 libavcodec/avpacket.c av_buffer_realloc(&pkt->buf, size); \ size 180 libavcodec/avpacket.c #define DUP_DATA(dst, src, size, padding, ALLOC) \ size 184 libavcodec/avpacket.c if ((unsigned)(size) > \ size 185 libavcodec/avpacket.c (unsigned)(size) + AV_INPUT_BUFFER_PADDING_SIZE) \ size 187 libavcodec/avpacket.c ALLOC(data, size + AV_INPUT_BUFFER_PADDING_SIZE); \ size 189 libavcodec/avpacket.c ALLOC(data, size); \ size 193 libavcodec/avpacket.c memcpy(data, src, size); \ size 195 libavcodec/avpacket.c memset((uint8_t *)data + size, 0, \ size 213 libavcodec/avpacket.c DUP_DATA(pkt->data, src->data, pkt->size, 1, ALLOC_BUF); size 241 libavcodec/avpacket.c src->side_data[i].size, 1, ALLOC_MALLOC); size 242 libavcodec/avpacket.c pkt->side_data[i].size = src->side_data[i].size; size 290 libavcodec/avpacket.c pkt->size = 0; size 299 libavcodec/avpacket.c uint8_t *data, size_t size) size 310 libavcodec/avpacket.c sd->size = size; size 324 libavcodec/avpacket.c pkt->side_data[elems].size = size; size 333 libavcodec/avpacket.c int size) size 338 libavcodec/avpacket.c if ((unsigned)size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 340 libavcodec/avpacket.c data = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); size 344 libavcodec/avpacket.c ret = av_packet_add_side_data(pkt, type, data, size); size 354 libavcodec/avpacket.c int *size) size 360 libavcodec/avpacket.c if (size) size 361 libavcodec/avpacket.c *size = pkt->side_data[i].size; size 365 libavcodec/avpacket.c if (size) size 366 libavcodec/avpacket.c *size = 0; size 416 libavcodec/avpacket.c uint64_t size= pkt->size + 8LL + AV_INPUT_BUFFER_PADDING_SIZE; size 419 libavcodec/avpacket.c size += old.side_data[i].size + 5LL; size 421 libavcodec/avpacket.c if (size > INT_MAX) size 423 libavcodec/avpacket.c buf = av_buffer_alloc(size); size 428 libavcodec/avpacket.c pkt->size = size - AV_INPUT_BUFFER_PADDING_SIZE; size 429 libavcodec/avpacket.c bytestream_put_buffer(&p, old.data, old.size); size 431 libavcodec/avpacket.c bytestream_put_buffer(&p, old.side_data[i].data, old.side_data[i].size); size 432 libavcodec/avpacket.c bytestream_put_be32(&p, old.side_data[i].size); size 436 libavcodec/avpacket.c av_assert0(p-pkt->data == pkt->size); size 447 libavcodec/avpacket.c if (!pkt->side_data_elems && pkt->size >12 && AV_RB64(pkt->data + pkt->size - 8) == FF_MERGE_MARKER){ size 449 libavcodec/avpacket.c unsigned int size; size 452 libavcodec/avpacket.c p = pkt->data + pkt->size - 8 - 5; size 454 libavcodec/avpacket.c size = AV_RB32(p); size 455 libavcodec/avpacket.c if (size>INT_MAX - 5 || p - pkt->data < size) size 459 libavcodec/avpacket.c if (p - pkt->data < size + 5) size 461 libavcodec/avpacket.c p-= size+5; size 471 libavcodec/avpacket.c p= pkt->data + pkt->size - 8 - 5; size 473 libavcodec/avpacket.c size= AV_RB32(p); size 474 libavcodec/avpacket.c av_assert0(size<=INT_MAX - 5 && p - pkt->data >= size); size 475 libavcodec/avpacket.c pkt->side_data[i].data = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); size 476 libavcodec/avpacket.c pkt->side_data[i].size = size; size 480 libavcodec/avpacket.c memcpy(pkt->side_data[i].data, p-size, size); size 481 libavcodec/avpacket.c pkt->size -= size + 5; size 484 libavcodec/avpacket.c p-= size+5; size 486 libavcodec/avpacket.c pkt->size -= 8; size 494 libavcodec/avpacket.c uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size) size 498 libavcodec/avpacket.c *size = 0; size 506 libavcodec/avpacket.c const size_t new_size = *size + keylen + 1 + valuelen + 1; size 515 libavcodec/avpacket.c memcpy(data + *size, t->key, keylen + 1); size 516 libavcodec/avpacket.c memcpy(data + *size + keylen + 1, t->value, valuelen + 1); size 518 libavcodec/avpacket.c *size = new_size; size 525 libavcodec/avpacket.c *size = 0; size 529 libavcodec/avpacket.c int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict) size 534 libavcodec/avpacket.c if (!dict || !data || !size) size 536 libavcodec/avpacket.c end = data + size; size 537 libavcodec/avpacket.c if (size && end[-1]) size 556 libavcodec/avpacket.c int size) size 562 libavcodec/avpacket.c if (size > pkt->side_data[i].size) size 564 libavcodec/avpacket.c pkt->side_data[i].size = size; size 591 libavcodec/avpacket.c int size = src->side_data[i].size; size 593 libavcodec/avpacket.c uint8_t *dst_data = av_packet_new_side_data(dst, type, size); size 599 libavcodec/avpacket.c memcpy(dst_data, src_data, size); size 611 libavcodec/avpacket.c pkt->size = 0; size 625 libavcodec/avpacket.c ret = packet_alloc(&dst->buf, src->size); size 628 libavcodec/avpacket.c av_assert1(!src->size || src->data); size 629 libavcodec/avpacket.c if (src->size) size 630 libavcodec/avpacket.c memcpy(dst->buf->data, src->data, src->size); size 642 libavcodec/avpacket.c dst->size = src->size; size 668 libavcodec/avpacket.c src->size = 0; size 678 libavcodec/avpacket.c ret = packet_alloc(&pkt->buf, pkt->size); size 681 libavcodec/avpacket.c av_assert1(!pkt->size || pkt->data); size 682 libavcodec/avpacket.c if (pkt->size) size 683 libavcodec/avpacket.c memcpy(pkt->buf->data, pkt->data, pkt->size); size 698 libavcodec/avpacket.c ret = packet_alloc(&buf, pkt->size); size 701 libavcodec/avpacket.c av_assert1(!pkt->size || pkt->data); size 702 libavcodec/avpacket.c if (pkt->size) size 703 libavcodec/avpacket.c memcpy(buf->data, pkt->data, pkt->size); size 106 libavcodec/avrndec.c int buf_size = avpkt->size; size 50 libavcodec/avs.c const uint8_t *buf_end = avpkt->data + avpkt->size; size 51 libavcodec/avs.c int buf_size = avpkt->size; size 63 libavcodec/avuidec.c if (avpkt->size < opaque_length) { size 68 libavcodec/avuidec.c avpkt->size >= opaque_length * 2 + 4; size 119 libavcodec/avuidec.c return avpkt->size; size 55 libavcodec/avuienc.c int i, j, skip, ret, size, interlaced; size 64 libavcodec/avuienc.c size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced; size 65 libavcodec/avuienc.c if ((ret = ff_alloc_packet2(avctx, pkt, size, size)) < 0) size 89 libavcodec/bethsoftvideo.c avpkt->side_data[0].size); size 94 libavcodec/bethsoftvideo.c bytestream2_init(&vid->g, avpkt->data, avpkt->size); size 151 libavcodec/bethsoftvideo.c return avpkt->size; size 55 libavcodec/bfi.c int buf_size = avpkt->size; size 217 libavcodec/bink.c static void merge(GetBitContext *gb, uint8_t *dst, uint8_t *src, int size) size 219 libavcodec/bink.c uint8_t *src2 = src + size; size 220 libavcodec/bink.c int size2 = size; size 225 libavcodec/bink.c size--; size 230 libavcodec/bink.c } while (size && size2); size 232 libavcodec/bink.c while (size--) size 272 libavcodec/bink.c int size = 1 << i; size 273 libavcodec/bink.c for (t = 0; t < 16; t += size << 1) size 274 libavcodec/bink.c merge(gb, out + t, in + t, size); size 1258 libavcodec/bink.c int bits_count = pkt->size << 3; size 1307 libavcodec/bink.c return pkt->size; size 306 libavcodec/binkaudio.c if (s->pkt->size < 4) { size 312 libavcodec/binkaudio.c ret = init_get_bits8(gb, s->pkt->data, s->pkt->size); size 146 libavcodec/bintext.c int buf_size = avpkt->size; size 62 libavcodec/bitpacked.c uint64_t packet_size = (uint64_t)avpkt->size * 8; size 124 libavcodec/bitpacked.c int buf_size = avpkt->size; size 91 libavcodec/bitstream.c #define GET_DATA(v, table, i, wrap, size) \ size 94 libavcodec/bitstream.c switch(size) { \ size 110 libavcodec/bitstream.c static int alloc_table(VLC *vlc, int size, int use_static) size 114 libavcodec/bitstream.c vlc->table_size += size; size 135 libavcodec/bitstream_filter.c pkt.size = buf_size; size 150 libavcodec/bitstream_filter.c *poutbuf = av_malloc(pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); size 156 libavcodec/bitstream_filter.c *poutbuf_size = pkt.size; size 157 libavcodec/bitstream_filter.c memcpy(*poutbuf, pkt.data, pkt.size); size 35 libavcodec/bmp.c int buf_size = avpkt->size; size 46 libavcodec/bmvaudio.c int buf_size = avpkt->size; size 211 libavcodec/bmvvideo.c if (pkt->size < blobs * 65 + 2) { size 219 libavcodec/bmvvideo.c if (c->stream - pkt->data + command_size > pkt->size) { size 226 libavcodec/bmvvideo.c if (c->stream - pkt->data > pkt->size - 768) { size 234 libavcodec/bmvvideo.c if (c->stream - pkt->data > pkt->size - 2) { size 248 libavcodec/bmvvideo.c if (decode_bmv_frame(c->stream, pkt->size - (c->stream - pkt->data), c->frame, scr_off)) { size 268 libavcodec/bmvvideo.c return pkt->size; size 148 libavcodec/brenderpix.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 285 libavcodec/brenderpix.c return avpkt->size; size 165 libavcodec/bytestream.h unsigned int size) size 167 libavcodec/bytestream.h g->buffer += FFMIN(g->buffer_end - g->buffer, size); size 171 libavcodec/bytestream.h unsigned int size) size 173 libavcodec/bytestream.h g->buffer += size; size 177 libavcodec/bytestream.h unsigned int size) size 182 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 183 libavcodec/bytestream.h if (size2 != size) size 265 libavcodec/bytestream.h unsigned int size) size 267 libavcodec/bytestream.h int size2 = FFMIN(g->buffer_end - g->buffer, size); size 275 libavcodec/bytestream.h unsigned int size) size 277 libavcodec/bytestream.h memcpy(dst, g->buffer, size); size 278 libavcodec/bytestream.h g->buffer += size; size 279 libavcodec/bytestream.h return size; size 284 libavcodec/bytestream.h unsigned int size) size 289 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 290 libavcodec/bytestream.h if (size2 != size) size 299 libavcodec/bytestream.h unsigned int size) size 301 libavcodec/bytestream.h memcpy(p->buffer, src, size); size 302 libavcodec/bytestream.h p->buffer += size; size 303 libavcodec/bytestream.h return size; size 308 libavcodec/bytestream.h unsigned int size) size 313 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 314 libavcodec/bytestream.h if (size2 != size) size 322 libavcodec/bytestream.h unsigned int size) size 324 libavcodec/bytestream.h memset(p->buffer, c, size); size 325 libavcodec/bytestream.h p->buffer += size; size 335 libavcodec/bytestream.h unsigned int size) size 337 libavcodec/bytestream.h memcpy(p->buffer, g->buffer, size); size 338 libavcodec/bytestream.h p->buffer += size; size 339 libavcodec/bytestream.h g->buffer += size; size 340 libavcodec/bytestream.h return size; size 345 libavcodec/bytestream.h unsigned int size) size 351 libavcodec/bytestream.h size = FFMIN(g->buffer_end - g->buffer, size); size 352 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 353 libavcodec/bytestream.h if (size2 != size) size 361 libavcodec/bytestream.h unsigned int size) size 363 libavcodec/bytestream.h memcpy(dst, *b, size); size 364 libavcodec/bytestream.h (*b) += size; size 365 libavcodec/bytestream.h return size; size 370 libavcodec/bytestream.h unsigned int size) size 372 libavcodec/bytestream.h memcpy(*b, src, size); size 373 libavcodec/bytestream.h (*b) += size; size 128 libavcodec/c93.c int buf_size = avpkt->size; size 31 libavcodec/canopus.c const uint8_t *src, size_t size) size 36 libavcodec/canopus.c bytestream2_init(&gbc, src, size); size 48 libavcodec/canopus.c if (size == 0x18) size 30 libavcodec/canopus.h const uint8_t *src, size_t size); size 576 libavcodec/cavs.c enum cavs_mv_pred mode, enum cavs_block size, int ref) size 625 libavcodec/cavs.c set_mvs(mvP, size); size 250 libavcodec/cavs.h static inline void set_mvs(cavs_vector *mv, enum cavs_block size) { size 251 libavcodec/cavs.h switch(size) { size 271 libavcodec/cavs.h enum cavs_mv_pred mode, enum cavs_block size, int ref); size 484 libavcodec/cavsdec.c enum cavs_block size) size 493 libavcodec/cavsdec.c set_mvs(dst, size); size 1231 libavcodec/cavsdec.c int buf_size = avpkt->size; size 205 libavcodec/cbs.c const uint8_t *data, size_t size) size 210 libavcodec/cbs.c av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 215 libavcodec/cbs.c frag->data_size = size; size 217 libavcodec/cbs.c memcpy(frag->data, data, size); size 218 libavcodec/cbs.c memset(frag->data + size, 0, size 254 libavcodec/cbs.c frag->data_size = pkt->size; size 257 libavcodec/cbs.c err = cbs_fill_fragment_data(ctx, frag, pkt->data, pkt->size); size 271 libavcodec/cbs.c const uint8_t *data, size_t size) size 275 libavcodec/cbs.c err = cbs_fill_fragment_data(ctx, frag, data, size); size 420 libavcodec/cbs.c pkt->size = frag->data_size; size 646 libavcodec/cbs.c size_t size, size 651 libavcodec/cbs.c unit->content = av_mallocz(size); size 655 libavcodec/cbs.c unit->content_ref = av_buffer_create(unit->content, size, size 667 libavcodec/cbs.c size_t size) size 671 libavcodec/cbs.c unit->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 676 libavcodec/cbs.c unit->data_size = size; size 678 libavcodec/cbs.c memset(unit->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 286 libavcodec/cbs.h const uint8_t *data, size_t size); size 350 libavcodec/cbs.h size_t size, size 360 libavcodec/cbs.h size_t size); size 528 libavcodec/cbs_av1.c size_t size = 0; size 531 libavcodec/cbs_av1.c size = i; size 533 libavcodec/cbs_av1.c return size; size 748 libavcodec/cbs_av1.c size_t size; size 757 libavcodec/cbs_av1.c size = frag->data_size; size 759 libavcodec/cbs_av1.c if (INT_MAX / 8 < size) { size 761 libavcodec/cbs_av1.c "too large (%"SIZE_SPECIFIER" bytes).\n", size); size 766 libavcodec/cbs_av1.c while (size > 0) { size 770 libavcodec/cbs_av1.c init_get_bits(&gbc, data, 8 * size); size 779 libavcodec/cbs_av1.c "too short (%"SIZE_SPECIFIER" bytes).\n", size); size 787 libavcodec/cbs_av1.c obu_size = size - 1 - header.obu_extension_flag; size 790 libavcodec/cbs_av1.c av_assert0(pos % 8 == 0 && pos / 8 <= size); size 794 libavcodec/cbs_av1.c if (size < obu_length) { size 797 libavcodec/cbs_av1.c obu_length, size); size 808 libavcodec/cbs_av1.c size -= obu_length; size 1232 libavcodec/cbs_av1.c size_t size, pos; size 1235 libavcodec/cbs_av1.c size = 0; size 1237 libavcodec/cbs_av1.c size += frag->units[i].data_size; size 1239 libavcodec/cbs_av1.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 1243 libavcodec/cbs_av1.c memset(frag->data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 1251 libavcodec/cbs_av1.c av_assert0(pos == size); size 1252 libavcodec/cbs_av1.c frag->data_size = size; size 351 libavcodec/cbs_h2645.c #define allocate(name, size) do { \ size 352 libavcodec/cbs_h2645.c name ## _ref = av_buffer_allocz(size + \ size 423 libavcodec/cbs_h2645.c #define allocate(name, size) do { \ size 578 libavcodec/cbs_h2645.c size_t size = nal->size; size 584 libavcodec/cbs_h2645.c while (size > 0 && nal->data[size - 1] == 0) size 585 libavcodec/cbs_h2645.c --size; size 586 libavcodec/cbs_h2645.c if (size == 0) { size 595 libavcodec/cbs_h2645.c (uint8_t*)nal->data, size, ref); size 618 libavcodec/cbs_h2645.c size_t size, start, end; size 644 libavcodec/cbs_h2645.c size = bytestream2_get_be16(&gbc); size 645 libavcodec/cbs_h2645.c if (bytestream2_get_bytes_left(&gbc) < size) size 647 libavcodec/cbs_h2645.c bytestream2_skip(&gbc, size); size 668 libavcodec/cbs_h2645.c size = bytestream2_get_be16(&gbc); size 669 libavcodec/cbs_h2645.c if (bytestream2_get_bytes_left(&gbc) < size) size 671 libavcodec/cbs_h2645.c bytestream2_skip(&gbc, size); size 693 libavcodec/cbs_h2645.c size_t size, start, end; size 722 libavcodec/cbs_h2645.c size = bytestream2_get_be16(&gbc); size 723 libavcodec/cbs_h2645.c if (bytestream2_get_bytes_left(&gbc) < size) size 725 libavcodec/cbs_h2645.c bytestream2_skip(&gbc, size); size 398 libavcodec/cbs_jpeg.c size_t size, dp, sp; size 401 libavcodec/cbs_jpeg.c size = 4; // SOI + EOI. size 404 libavcodec/cbs_jpeg.c size += 2 + unit->data_size; size 408 libavcodec/cbs_jpeg.c ++size; size 413 libavcodec/cbs_jpeg.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 452 libavcodec/cbs_jpeg.c av_assert0(dp == size); size 454 libavcodec/cbs_jpeg.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 456 libavcodec/cbs_jpeg.c frag->data_size = size; size 390 libavcodec/cbs_mpeg2.c size_t size, dp; size 393 libavcodec/cbs_mpeg2.c size = 0; size 395 libavcodec/cbs_mpeg2.c size += 3 + frag->units[i].data_size; size 397 libavcodec/cbs_mpeg2.c frag->data_ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 414 libavcodec/cbs_mpeg2.c av_assert0(dp == size); size 416 libavcodec/cbs_mpeg2.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 418 libavcodec/cbs_mpeg2.c frag->data_size = size; size 579 libavcodec/cbs_vp9.c size_t size, max, pos; size 603 libavcodec/cbs_vp9.c size = 2; size 605 libavcodec/cbs_vp9.c size += size_len + frag->units[i].data_size; size 609 libavcodec/cbs_vp9.c ref = av_buffer_alloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 613 libavcodec/cbs_vp9.c memset(data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 617 libavcodec/cbs_vp9.c av_assert0(size - pos > frag->units[i].data_size); size 622 libavcodec/cbs_vp9.c av_assert0(size - pos == 2 + frag->nb_units * size_len); size 624 libavcodec/cbs_vp9.c init_put_bits(&pbc, data + pos, size - pos); size 639 libavcodec/cbs_vp9.c frag->data_size = size; size 756 libavcodec/ccaption_dec.c int len = avpkt->size; size 268 libavcodec/cdgraphics.c int buf_size = avpkt->size; size 284 libavcodec/cdgraphics.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 365 libavcodec/cdgraphics.c return avpkt->size; size 45 libavcodec/cdtoons.c uint32_t size; size 99 libavcodec/cdtoons.c int raw, size, step; size 107 libavcodec/cdtoons.c size = (int)(val & 0x7F) + 1; size 110 libavcodec/cdtoons.c if (to_skip >= size) { size 111 libavcodec/cdtoons.c to_skip -= size; size 113 libavcodec/cdtoons.c step = size; size 122 libavcodec/cdtoons.c size -= to_skip; size 131 libavcodec/cdtoons.c if (x + size >= width - skip) size 132 libavcodec/cdtoons.c size = width - skip - x; size 136 libavcodec/cdtoons.c if (next_line - data < size) size 138 libavcodec/cdtoons.c memcpy(dest + x, data, size); size 139 libavcodec/cdtoons.c data += size; size 144 libavcodec/cdtoons.c memset(dest + x, color, size); size 146 libavcodec/cdtoons.c x += size; size 158 libavcodec/cdtoons.c const uint8_t *eod = avpkt->data + avpkt->size; size 159 libavcodec/cdtoons.c const int buf_size = avpkt->size; size 199 libavcodec/cdtoons.c uint32_t size; size 218 libavcodec/cdtoons.c size = bytestream_get_be32(&buf); size 219 libavcodec/cdtoons.c if (size < 14) { size 221 libavcodec/cdtoons.c "Sprite only has %d bytes of data.\n", size); size 224 libavcodec/cdtoons.c size -= 14; size 225 libavcodec/cdtoons.c c->sprites[sprite_id].size = size; size 231 libavcodec/cdtoons.c if (size > buf_size || buf + size > eod) size 234 libavcodec/cdtoons.c av_fast_padded_malloc(&c->sprites[sprite_id].data, &c->sprites[sprite_id].alloc_size, size); size 240 libavcodec/cdtoons.c bytestream_get_buffer(&buf, c->sprites[sprite_id].data, size); size 245 libavcodec/cdtoons.c uint32_t tag, size; size 251 libavcodec/cdtoons.c size = bytestream_get_be32(&buf); size 288 libavcodec/cdtoons.c if (size < 8 || size - 8 > eod - buf) { size 289 libavcodec/cdtoons.c av_log(avctx, AV_LOG_WARNING, "Ran out of data for ignored entry (size %X, %d left).\n", size, (int)(eod - buf)); size 292 libavcodec/cdtoons.c buf += (size - 8); size 339 libavcodec/cdtoons.c if (c->sprites[sprite_id].size < 14) { size 348 libavcodec/cdtoons.c c->sprites[sprite_id].size - 14, size 366 libavcodec/cdtoons.c if (c->sprites[palette_id].size != 256 * 2 * 3) { size 369 libavcodec/cdtoons.c palette_id, c->sprites[palette_id].size); size 244 libavcodec/cdxl.c int ret, w, h, encoding, aligned_width, buf_size = pkt->size; size 396 libavcodec/cfhd.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 1033 libavcodec/cfhd.c return avpkt->size; size 33 libavcodec/chomp_bsf.c while (pkt->size > 0 && !pkt->data[pkt->size - 1]) size 34 libavcodec/chomp_bsf.c pkt->size--; size 64 libavcodec/cinepak.c int size; size 77 libavcodec/cinepak.c int chunk_id, int size, const uint8_t *data) size 79 libavcodec/cinepak.c const uint8_t *eod = (data + size); size 133 libavcodec/cinepak.c int chunk_id, int size, const uint8_t *data) size 135 libavcodec/cinepak.c const uint8_t *eod = (data + size); size 267 libavcodec/cinepak.c cvid_strip *strip, const uint8_t *data, int size) size 269 libavcodec/cinepak.c const uint8_t *eod = (data + size); size 326 libavcodec/cinepak.c if (s->size < encoded_buf_size * (int64_t)(100 - s->avctx->discard_damaged_percentage) / 100) size 335 libavcodec/cinepak.c if (encoded_buf_size != s->size && (s->size % encoded_buf_size) != 0) { size 342 libavcodec/cinepak.c if (s->size >= 16 && size 356 libavcodec/cinepak.c if (s->size < 10 + s->sega_film_skip_bytes + num_strips * 12) size 371 libavcodec/cinepak.c const uint8_t *eod = (s->data + s->size); size 455 libavcodec/cinepak.c int ret = 0, buf_size = avpkt->size; size 460 libavcodec/cinepak.c s->size = buf_size; size 462 libavcodec/cinepak.c if (s->size < 10) size 480 libavcodec/cinepak.c int size; size 481 libavcodec/cinepak.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 482 libavcodec/cinepak.c if (pal && size == AVPALETTE_SIZE) { size 486 libavcodec/cinepak.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 399 libavcodec/cinepakenc.c static int encode_codebook(CinepakEncContext *s, int *codebook, int size, size 411 libavcodec/cinepakenc.c entry_size * size + size 412 libavcodec/cinepakenc.c (incremental_codebook_replacement_mode ? (size + 31) / 32 * 4 : 0)); size 422 libavcodec/cinepakenc.c for (x = 0; x < size; x++) { size 439 libavcodec/cinepakenc.c for (x = 0; x < size; x++) size 722 libavcodec/cinepakenc.c int size = v1mode ? info->v1_size : info->v4_size; size 777 libavcodec/cinepakenc.c if (i < size) size 778 libavcodec/cinepakenc.c size = i; size 780 libavcodec/cinepakenc.c avpriv_init_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->randctx); size 781 libavcodec/cinepakenc.c avpriv_do_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->randctx); size 825 libavcodec/cinepakenc.c av_assert0(i >= size); // training set is no smaller than the codebook size 827 libavcodec/cinepakenc.c return size; size 1006 libavcodec/cinepakenc.c int num_strips, strip, i, y, nexty, size, temp_size, best_size; size 1070 libavcodec/cinepakenc.c size = 0; size 1104 libavcodec/cinepakenc.c s->frame_buf + size + CVID_HEADER_SIZE, size 1109 libavcodec/cinepakenc.c size += temp_size; size 1114 libavcodec/cinepakenc.c best_size = size + write_cvid_header(s, s->frame_buf, num_strips, size, isakeyframe); size 1163 libavcodec/cinepakenc.c pkt->size = ret; size 223 libavcodec/clearvideo.c int plane, int x, int y, int dx, int dy, int size) size 233 libavcodec/clearvideo.c x + size > avctx->coded_width >> shift || size 234 libavcodec/clearvideo.c y + size > avctx->coded_height >> shift || size 235 libavcodec/clearvideo.c sx + size > avctx->coded_width >> shift || size 236 libavcodec/clearvideo.c sy + size > avctx->coded_height >> shift) size 246 libavcodec/clearvideo.c for (i = 0; i < size; i++) { size 250 libavcodec/clearvideo.c memcpy(dptr, sptr, size); size 259 libavcodec/clearvideo.c int plane, int x, int y, int dx, int dy, int size, int bias) size 273 libavcodec/clearvideo.c x + size > avctx->coded_width >> shift || size 274 libavcodec/clearvideo.c y + size > avctx->coded_height >> shift || size 275 libavcodec/clearvideo.c sx + size > avctx->coded_width >> shift || size 276 libavcodec/clearvideo.c sy + size > avctx->coded_height >> shift) size 279 libavcodec/clearvideo.c for (j = 0; j < size; j++) { size 283 libavcodec/clearvideo.c for (i = 0; i < size; i++) { size 416 libavcodec/clearvideo.c int plane, int x, int y, int dx, int dy, int size, int bias) size 421 libavcodec/clearvideo.c ret = copy_block(avctx, dst, src, plane, x, y, dx, dy, size); size 423 libavcodec/clearvideo.c ret = copyadd_block(avctx, dst, src, plane, x, y, dx, dy, size, bias); size 430 libavcodec/clearvideo.c int plane, int x, int y, int size, size 440 libavcodec/clearvideo.c ret = tile_do_block(avctx, dst, src, plane, x, y, mv.x, mv.y, size, tile->bias); size 442 libavcodec/clearvideo.c int i, hsize = size >> 1; size 468 libavcodec/clearvideo.c int size = comp == 0 ? tile_size : tile_size >> 1; size 472 libavcodec/clearvideo.c int right = size - (w & (size - 1)); size 473 libavcodec/clearvideo.c int bottom = size - (h & (size - 1)); size 475 libavcodec/clearvideo.c if ((right == size) && (bottom == size)) { size 478 libavcodec/clearvideo.c if (right != size) { size 487 libavcodec/clearvideo.c if (bottom != size) { size 503 libavcodec/clearvideo.c int buf_size = avpkt->size; size 584 libavcodec/clearvideo.c int16_t size = plane == 0 ? 1 << c->tile_shift : 1 << (c->tile_shift - 1); size 588 libavcodec/clearvideo.c ret = copy_block(avctx, c->pic, c->prev, plane, x, y, mx, my, size); size 595 libavcodec/clearvideo.c int size = 1 << c->tile_shift; size 603 libavcodec/clearvideo.c ret = restore_tree(avctx, c->pic, c->prev, 0, x, y, size, tile, mv); size 608 libavcodec/clearvideo.c size = 1 << (c->tile_shift - 1); size 617 libavcodec/clearvideo.c ret = restore_tree(avctx, c->pic, c->prev, 1, x, y, size, tile, cmv); size 624 libavcodec/clearvideo.c ret = restore_tree(avctx, c->pic, c->prev, 2, x, y, size, tile, cmv); size 36 libavcodec/cljrdec.c int buf_size = avpkt->size; size 62 libavcodec/cljrenc.c init_put_bits(&pb, pkt->data, pkt->size); size 92 libavcodec/cljrenc.c pkt->size = put_bits_count(&pb) / 8; size 383 libavcodec/cllc.c if (avpkt->size < 4 + 4) { size 384 libavcodec/cllc.c av_log(avctx, AV_LOG_ERROR, "Frame is too small %d.\n", avpkt->size); size 392 libavcodec/cllc.c if (info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt->size) { size 404 libavcodec/cllc.c data_size = (avpkt->size - info_offset) & ~1; size 483 libavcodec/cllc.c return avpkt->size; size 108 libavcodec/cngdec.c int buf_size = avpkt->size; size 114 libavcodec/cngdec.c if (avpkt->size) { size 118 libavcodec/cngdec.c for (i = 0; i < FFMIN(avpkt->size - 1, p->order); i++) { size 100 libavcodec/cngenc.c av_assert1(avpkt->size == 1 + p->order); size 75 libavcodec/cook.c int size; size 921 libavcodec/cook.c int sub_packet_size = p->size; size 965 libavcodec/cook.c int buf_size = avpkt->size; size 984 libavcodec/cook.c q->subpacket[0].size = avctx->block_align; size 987 libavcodec/cook.c q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i]; size 988 libavcodec/cook.c q->subpacket[0].size -= q->subpacket[i].size + 1; size 989 libavcodec/cook.c if (q->subpacket[0].size < 0) { size 998 libavcodec/cook.c q->subpacket[i].bits_per_subpacket = (q->subpacket[i].size * 8) >> size 1003 libavcodec/cook.c i, q->subpacket[i].size, q->subpacket[i].joint_stereo, offset, size 1008 libavcodec/cook.c offset += q->subpacket[i].size; size 1011 libavcodec/cook.c i, q->subpacket[i].size * 8, get_bits_count(&q->gb)); size 66 libavcodec/cpia.c if ( avpkt->size < FRAME_HEADER_SIZE + avctx->height * 3 size 92 libavcodec/cpia.c src_size = avpkt->size - FRAME_HEADER_SIZE; size 189 libavcodec/cpia.c return avpkt->size; size 665 libavcodec/crystalhd.c if (avpkt && avpkt->size) { size 684 libavcodec/crystalhd.c bc_ret = DtsProcInput(dev, avpkt->data, avpkt->size, pts, 0); size 725 libavcodec/crystalhd.c while (pkt.size > DtsTxFreeSize(dev)) { size 71 libavcodec/cscd.c int buf_size = avpkt->size; size 392 libavcodec/cuviddec.c if (is_flush && avpkt && avpkt->size) size 395 libavcodec/cuviddec.c if (cuvid_is_buffer_full(avctx) && avpkt && avpkt->size) size 405 libavcodec/cuviddec.c if (avpkt && avpkt->size) { size 406 libavcodec/cuviddec.c cupkt.payload_size = avpkt->size; size 64 libavcodec/cyuv.c int buf_size = avpkt->size; size 149 libavcodec/dca.c int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size) size 154 libavcodec/dca.c ret = init_get_bits8(&gb, buf, size); size 218 libavcodec/dca.h int avpriv_dca_parse_core_frame_header(DCACoreFrameHeader *h, const uint8_t *buf, int size); size 73 libavcodec/dca_core.c static void get_array(GetBitContext *s, int32_t *array, int size, int n) size 77 libavcodec/dca_core.c for (i = 0; i < size; i++) size 776 libavcodec/dca_core.c unsigned int size = s->subband_size; size 785 libavcodec/dca_core.c if (size != s->subband_size) { size 1284 libavcodec/dca_core.c unsigned int size = s->x96_subband_size; size 1293 libavcodec/dca_core.c if (size != s->x96_subband_size) { size 1706 libavcodec/dca_core.c int size, dist; size 1725 libavcodec/dca_core.c size = (w2 >> 22) + 1; size 1727 libavcodec/dca_core.c if (size >= 96 size 1728 libavcodec/dca_core.c && (size == dist || size - 1 == dist) size 1750 libavcodec/dca_core.c size = (w2 >> 20) + 1; size 1752 libavcodec/dca_core.c if (size >= 96 && size == dist) { size 1775 libavcodec/dca_core.c size = (w2 >> 26) + 1; size 1777 libavcodec/dca_core.c if (size >= 11 && size <= dist && size 1779 libavcodec/dca_core.c (sync_pos + 1) * 4, size - 4)) { size 1798 libavcodec/dca_core.c int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size) size 1805 libavcodec/dca_core.c if ((ret = init_get_bits8(&s->gb, data, size)) < 0) size 1819 libavcodec/dca_core.c if (s->frame_size > size) size 1820 libavcodec/dca_core.c s->frame_size = size; size 250 libavcodec/dca_core.h int ff_dca_core_parse(DCACoreDecoder *s, uint8_t *data, int size); size 36 libavcodec/dca_core_bsf.c bytestream2_init(&gb, pkt->data, pkt->size); size 46 libavcodec/dca_core_bsf.c if (core_size > 0 && core_size <= pkt->size) { size 47 libavcodec/dca_core_bsf.c pkt->size = core_size; size 325 libavcodec/dca_exss.c int size = asset->asset_size; size 329 libavcodec/dca_exss.c if (asset->core_size > size) size 332 libavcodec/dca_exss.c size -= asset->core_size; size 337 libavcodec/dca_exss.c if (asset->xbr_size > size) size 340 libavcodec/dca_exss.c size -= asset->xbr_size; size 345 libavcodec/dca_exss.c if (asset->xxch_size > size) size 348 libavcodec/dca_exss.c size -= asset->xxch_size; size 353 libavcodec/dca_exss.c if (asset->x96_size > size) size 356 libavcodec/dca_exss.c size -= asset->x96_size; size 361 libavcodec/dca_exss.c if (asset->lbr_size > size) size 364 libavcodec/dca_exss.c size -= asset->lbr_size; size 369 libavcodec/dca_exss.c if (asset->xll_size > size) size 372 libavcodec/dca_exss.c size -= asset->xll_size; size 378 libavcodec/dca_exss.c int ff_dca_exss_parse(DCAExssParser *s, const uint8_t *data, int size) size 382 libavcodec/dca_exss.c if ((ret = init_get_bits8(&s->gb, data, size)) < 0) size 410 libavcodec/dca_exss.c if (s->exss_size > size) { size 90 libavcodec/dca_exss.h int ff_dca_exss_parse(DCAExssParser *s, const uint8_t *data, int size); size 36 libavcodec/dca_parser.c int size; size 71 libavcodec/dca_parser.c int start_found, size, i; size 77 libavcodec/dca_parser.c size = pc1->size; size 82 libavcodec/dca_parser.c size++; size 90 libavcodec/dca_parser.c pc1->startpos = IS_EXSS_MARKER(state) ? size - 4 : size - 6; size 98 libavcodec/dca_parser.c size = 0; size 108 libavcodec/dca_parser.c size++; size 114 libavcodec/dca_parser.c if (size == 2) { size 120 libavcodec/dca_parser.c if (size == 2) { size 126 libavcodec/dca_parser.c if (size == 4) { size 132 libavcodec/dca_parser.c if (size == 4) { size 138 libavcodec/dca_parser.c if (size == 6) { size 150 libavcodec/dca_parser.c pc1->framesize <= size + 2) { size 151 libavcodec/dca_parser.c pc1->framesize = size + 2; size 157 libavcodec/dca_parser.c if (size == pc1->framesize + 4) { size 164 libavcodec/dca_parser.c if (pc1->framesize > size) size 172 libavcodec/dca_parser.c pc1->size = 0; size 180 libavcodec/dca_parser.c pc1->size = size; size 45 libavcodec/dca_xll.c static void get_array(GetBitContext *gb, int32_t *array, int size, int n) size 49 libavcodec/dca_xll.c for (i = 0; i < size; i++) size 53 libavcodec/dca_xll.c static void get_linear_array(GetBitContext *gb, int32_t *array, int size, int n) size 58 libavcodec/dca_xll.c memset(array, 0, sizeof(*array) * size); size 59 libavcodec/dca_xll.c else for (i = 0; i < size; i++) size 63 libavcodec/dca_xll.c static void get_rice_array(GetBitContext *gb, int32_t *array, int size, int k) size 67 libavcodec/dca_xll.c for (i = 0; i < size; i++) size 974 libavcodec/dca_xll.c int size = 0; size 976 libavcodec/dca_xll.c size = get_bits_long(&s->gb, s->seg_size_nbits); size 977 libavcodec/dca_xll.c if (size < 0 || size >= s->frame_size) { size 978 libavcodec/dca_xll.c av_log(s->avctx, AV_LOG_ERROR, "Invalid NAVI segment size (%d bytes)\n", size); size 981 libavcodec/dca_xll.c size++; size 983 libavcodec/dca_xll.c *navi_ptr++ = size; size 1041 libavcodec/dca_xll.c static int parse_frame(DCAXllDecoder *s, uint8_t *data, int size, DCAExssAsset *asset) size 1045 libavcodec/dca_xll.c if ((ret = init_get_bits8(&s->gb, data, size)) < 0) size 1068 libavcodec/dca_xll.c static int copy_to_pbr(DCAXllDecoder *s, uint8_t *data, int size, int delay) size 1070 libavcodec/dca_xll.c if (size > DCA_XLL_PBR_BUFFER_MAX) size 1076 libavcodec/dca_xll.c memcpy(s->pbr_buffer, data, size); size 1077 libavcodec/dca_xll.c s->pbr_length = size; size 1082 libavcodec/dca_xll.c static int parse_frame_no_pbr(DCAXllDecoder *s, uint8_t *data, int size, DCAExssAsset *asset) size 1084 libavcodec/dca_xll.c int ret = parse_frame(s, data, size, asset); size 1088 libavcodec/dca_xll.c if (ret == AVERROR(EAGAIN) && asset->xll_sync_present && asset->xll_sync_offset < size) { size 1091 libavcodec/dca_xll.c size -= asset->xll_sync_offset; size 1097 libavcodec/dca_xll.c if ((ret = copy_to_pbr(s, data, size, asset->xll_delay_nframes)) < 0) size 1103 libavcodec/dca_xll.c ret = parse_frame(s, data, size, asset); size 1109 libavcodec/dca_xll.c if (s->frame_size > size) size 1113 libavcodec/dca_xll.c if (s->frame_size < size) size 1114 libavcodec/dca_xll.c if ((ret = copy_to_pbr(s, data + s->frame_size, size - s->frame_size, 0)) < 0) size 1120 libavcodec/dca_xll.c static int parse_frame_pbr(DCAXllDecoder *s, uint8_t *data, int size, DCAExssAsset *asset) size 1124 libavcodec/dca_xll.c if (size > DCA_XLL_PBR_BUFFER_MAX - s->pbr_length) { size 1129 libavcodec/dca_xll.c memcpy(s->pbr_buffer + s->pbr_length, data, size); size 1130 libavcodec/dca_xll.c s->pbr_length += size; size 150 libavcodec/dcadec.c int input_size = avpkt->size; size 293 libavcodec/dcadec.c return avpkt->size; size 1201 libavcodec/dcaenc.c init_put_bits(&c->pb, avpkt->data, avpkt->size); size 1216 libavcodec/dcaenc.c avpkt->size = put_bits_count(&c->pb) >> 3; size 122 libavcodec/dds.c int size, bpp, r, g, b, a; size 134 libavcodec/dds.c size = bytestream2_get_le32(gbc); size 135 libavcodec/dds.c if (size != 32) { size 136 libavcodec/dds.c av_log(avctx, AV_LOG_ERROR, "Invalid pixel format header %d.\n", size); size 619 libavcodec/dds.c bytestream2_init(gbc, avpkt->data, avpkt->size); size 665 libavcodec/dds.c int size = (avctx->coded_height / TEXTURE_BLOCK_H) * size 670 libavcodec/dds.c if (bytestream2_get_bytes_left(gbc) < size) { size 673 libavcodec/dds.c bytestream2_get_bytes_left(gbc), size); size 748 libavcodec/dds.c return avpkt->size; size 69 libavcodec/decode.c int size = 0, ret; size 74 libavcodec/decode.c data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); size 85 libavcodec/decode.c if (size < 4) size 89 libavcodec/decode.c size -= 4; size 92 libavcodec/decode.c if (size < 4) size 101 libavcodec/decode.c size -= 4; size 104 libavcodec/decode.c if (size < 8) size 107 libavcodec/decode.c size -= 8; size 110 libavcodec/decode.c if (size < 4) size 119 libavcodec/decode.c size -= 4; size 122 libavcodec/decode.c if (size < 8) size 126 libavcodec/decode.c size -= 8; size 153 libavcodec/decode.c avci->last_pkt_props->size = pkt->size; // HACK: Needed for ff_decode_frame_props(). size 177 libavcodec/decode.c int size = planes * sizeof(*frame->extended_data); size 179 libavcodec/decode.c if (!size) { size 184 libavcodec/decode.c frame->extended_data = av_malloc(size); size 190 libavcodec/decode.c size); size 261 libavcodec/decode.c avci->compat_decode_consumed += pkt->size; size 475 libavcodec/decode.c ret >= 0 && ret != pkt->size && !(avctx->codec->capabilities & AV_CODEC_CAP_SUBFRAMES)) { size 484 libavcodec/decode.c ret = pkt->size; size 513 libavcodec/decode.c if (ret >= pkt->size || ret < 0) { size 519 libavcodec/decode.c pkt->size -= consumed; size 520 libavcodec/decode.c avci->last_pkt_props->size -= consumed; // See extract_packet_props() comment. size 564 libavcodec/decode.c av_assert0((frame->private_ref && frame->private_ref->size == sizeof(FrameDecodeData)) || size 597 libavcodec/decode.c if (avpkt && !avpkt->size && avpkt->data) size 733 libavcodec/decode.c if (avci->draining_done && pkt && pkt->size != 0) { size 741 libavcodec/decode.c avci->compat_decode_partial_size != pkt->size) { size 788 libavcodec/decode.c if (avci->draining || (!avctx->codec->bsfs && avci->compat_decode_consumed < pkt->size)) size 796 libavcodec/decode.c ret = pkt->size; size 798 libavcodec/decode.c ret = FFMIN(avci->compat_decode_consumed, pkt->size); size 801 libavcodec/decode.c avci->compat_decode_partial_size = (ret >= 0) ? pkt->size - ret : 0; size 839 libavcodec/decode.c if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_PRE_DECODER || inpkt->size == 0) size 847 libavcodec/decode.c inl = inpkt->size; size 860 libavcodec/decode.c outpkt->size = tmp.size; size 862 libavcodec/decode.c outl = outpkt->size; size 866 libavcodec/decode.c outl >= outpkt->size || inl != 0) { size 873 libavcodec/decode.c outpkt->size -= outl; size 874 libavcodec/decode.c memset(outpkt->data + outpkt->size, 0, outl); size 984 libavcodec/decode.c if (!avpkt->data && avpkt->size) { size 998 libavcodec/decode.c if ((avctx->codec->capabilities & AV_CODEC_CAP_DELAY) || avpkt->size) { size 1476 libavcodec/decode.c int size[4] = { 0 }; size 1505 libavcodec/decode.c size[i] = data[i + 1] - data[i]; size 1506 libavcodec/decode.c size[i] = tmpsize - (data[i] - data[0]); size 1510 libavcodec/decode.c if (size[i]) { size 1511 libavcodec/decode.c pool->pools[i] = av_buffer_pool_init(size[i] + 16 + STRIDE_ALIGN - 1, size 1675 libavcodec/decode.c int size; size 1681 libavcodec/decode.c AV_PKT_DATA_STRINGS_METADATA, &size); size 1682 libavcodec/decode.c return av_packet_unpack_dictionary(side_metadata, size, frame_md); size 1713 libavcodec/decode.c frame->pkt_size = pkt->size; size 1716 libavcodec/decode.c int size; size 1717 libavcodec/decode.c uint8_t *packet_sd = av_packet_get_side_data(pkt, sd[i].packet, &size); size 1721 libavcodec/decode.c size); size 1725 libavcodec/decode.c memcpy(frame_sd->data, packet_sd, size); size 58 libavcodec/dfa.c const int size = width * height; size 60 libavcodec/dfa.c if (bytestream2_get_buffer(gb, frame, size) != size) size 356 libavcodec/dfa.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 405 libavcodec/dfa.c return avpkt->size; size 69 libavcodec/diracdec.c #define CALC_PADDING(size, depth) \ size 70 libavcodec/diracdec.c (((size + (1 << depth) - 1) >> depth) << depth) size 1481 libavcodec/diracdec.c static void propagate_block_data(DiracBlock *block, int stride, int size) size 1486 libavcodec/diracdec.c for (x = 1; x < size; x++) size 1489 libavcodec/diracdec.c for (y = 1; y < size; y++) { size 1491 libavcodec/diracdec.c for (x = 0; x < size; x++) size 2119 libavcodec/diracdec.c static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int size) size 2128 libavcodec/diracdec.c if (size < DATA_UNIT_HEADER_SIZE) size 2133 libavcodec/diracdec.c init_get_bits(&s->gb, &buf[13], 8*(size - DATA_UNIT_HEADER_SIZE)); size 2140 libavcodec/diracdec.c ret = av_dirac_parse_sequence_header(&dsh, buf + DATA_UNIT_HEADER_SIZE, size - DATA_UNIT_HEADER_SIZE, avctx); size 2266 libavcodec/diracdec.c int buf_size = pkt->size; size 608 libavcodec/dnxhddec.c int buf_size = avpkt->size; size 701 libavcodec/dnxhddec.c return avpkt->size; size 1177 libavcodec/dnxhdenc.c static void radix_count(const RCCMPEntry *data, int size, size 1182 libavcodec/dnxhdenc.c for (i = 0; i < size; i++) { size 1191 libavcodec/dnxhdenc.c int offset = size; size 1199 libavcodec/dnxhdenc.c int size, int buckets[NBUCKETS], int pass) size 1203 libavcodec/dnxhdenc.c for (i = 0; i < size; i++) { size 1210 libavcodec/dnxhdenc.c static void radix_sort(RCCMPEntry *data, RCCMPEntry *tmp, int size) size 1213 libavcodec/dnxhdenc.c radix_count(data, size, buckets); size 1214 libavcodec/dnxhdenc.c radix_sort_pass(tmp, data, size, buckets[0], 0); size 1215 libavcodec/dnxhdenc.c radix_sort_pass(data, tmp, size, buckets[1], 1); size 1217 libavcodec/dnxhdenc.c radix_sort_pass(tmp, data, size, buckets[2], 2); size 1218 libavcodec/dnxhdenc.c radix_sort_pass(data, tmp, size, buckets[3], 3); size 599 libavcodec/dolby_e.c if (avpkt->size < 3) size 616 libavcodec/dolby_e.c s->input_size = avpkt->size / s->word_bytes - 1; size 662 libavcodec/dolby_e.c return avpkt->size; size 212 libavcodec/dpcm.c int buf_size = avpkt->size; size 409 libavcodec/dpcm.c return avpkt->size; size 125 libavcodec/dpx.c int buf_size = avpkt->size; size 141 libavcodec/dpx.c if (avpkt->size <= 1634) { size 161 libavcodec/dpx.c if (avpkt->size <= offset) { size 292 libavcodec/dpx.c if (need_align*avctx->height + (int64_t)offset > avpkt->size) { size 294 libavcodec/dpx.c if (stride*avctx->height + (int64_t)offset > avpkt->size) { size 180 libavcodec/dpxenc.c int size, ret, need_align, len; size 185 libavcodec/dpxenc.c size = avctx->height * avctx->width * 4; size 189 libavcodec/dpxenc.c size = FFALIGN(len, 4); size 190 libavcodec/dpxenc.c need_align = size - len; size 191 libavcodec/dpxenc.c size *= avctx->height; size 195 libavcodec/dpxenc.c size = FFALIGN(len, 4); size 196 libavcodec/dpxenc.c need_align = size - len; size 197 libavcodec/dpxenc.c size *= avctx->height; size 199 libavcodec/dpxenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size + HEADER_SIZE, 0)) < 0) size 239 libavcodec/dpxenc.c size = (len + need_align) * avctx->height; size 247 libavcodec/dpxenc.c size = av_image_copy_to_buffer(buf + HEADER_SIZE, pkt->size - HEADER_SIZE, size 252 libavcodec/dpxenc.c if (size < 0) size 253 libavcodec/dpxenc.c return size; size 269 libavcodec/dpxenc.c size += HEADER_SIZE; size 271 libavcodec/dpxenc.c write32(buf + 16, size); /* file size */ size 104 libavcodec/dsddec.c frame->nb_samples = avpkt->size / avctx->channels; size 95 libavcodec/dsicinaudio.c const uint8_t *buf_end = buf + avpkt->size; size 100 libavcodec/dsicinaudio.c frame->nb_samples = avpkt->size - cin->initial_decode_frame; size 121 libavcodec/dsicinaudio.c return avpkt->size; size 88 libavcodec/dsicinvideo.c int size) size 90 libavcodec/dsicinvideo.c while (size--) size 202 libavcodec/dsicinvideo.c int buf_size = avpkt->size; size 493 libavcodec/dss_sp.c static void dss_sp_scale_vector(int32_t *vec, int bits, int size) size 498 libavcodec/dss_sp.c for (i = 0; i < size; i++) size 501 libavcodec/dss_sp.c for (i = 0; i < size; i++) size 573 libavcodec/dss_sp.c static int dss_sp_get_normalize_bits(int32_t *vector_buf, int16_t size) size 580 libavcodec/dss_sp.c for (i = 0; i < size; i++) size 588 libavcodec/dss_sp.c static int dss_sp_vector_sum(DssSpContext *p, int size) size 591 libavcodec/dss_sp.c for (i = 0; i < size; i++) size 597 libavcodec/dss_sp.c int32_t *dst, int size) size 604 libavcodec/dss_sp.c if (size > 0) { size 605 libavcodec/dss_sp.c vsum_1 = dss_sp_vector_sum(p, size); size 611 libavcodec/dss_sp.c normalize_bits = dss_sp_get_normalize_bits(p->vector_buf, size); size 613 libavcodec/dss_sp.c dss_sp_scale_vector(p->vector_buf, normalize_bits - 3, size); size 630 libavcodec/dss_sp.c if (size > 1) { size 631 libavcodec/dss_sp.c for (i = size - 1; i > 0; i--) { size 641 libavcodec/dss_sp.c dss_sp_scale_vector(p->vector_buf, -normalize_bits, size); size 645 libavcodec/dss_sp.c if (size > 0) size 646 libavcodec/dss_sp.c vsum_2 = dss_sp_vector_sum(p, size); size 657 libavcodec/dss_sp.c for (i = 1; i < size; i++) { size 662 libavcodec/dss_sp.c p->noise_state = noise[size - 1]; size 663 libavcodec/dss_sp.c for (i = 0; i < size; i++) { size 698 libavcodec/dss_sp.c static void dss_sp_32to16bit(int16_t *dst, int32_t *src, int size) size 702 libavcodec/dss_sp.c for (i = 0; i < size; i++) size 749 libavcodec/dss_sp.c int buf_size = avpkt->size; size 255 libavcodec/dstdec.c if (avpkt->size <= 1) size 264 libavcodec/dstdec.c if ((ret = init_get_bits8(gb, avpkt->data, avpkt->size)) < 0) size 271 libavcodec/dstdec.c memcpy(frame->data[0], avpkt->data + 1, FFMIN(avpkt->size - 1, frame->nb_samples * channels)); size 378 libavcodec/dstdec.c return avpkt->size; size 53 libavcodec/dump_extradata_bsf.c (in->size < ctx->par_in->extradata_size || size 55 libavcodec/dump_extradata_bsf.c if (in->size >= INT_MAX - ctx->par_in->extradata_size) { size 60 libavcodec/dump_extradata_bsf.c ret = av_new_packet(out, in->size + ctx->par_in->extradata_size); size 71 libavcodec/dump_extradata_bsf.c memcpy(out->data + ctx->par_in->extradata_size, in->data, in->size); size 109 libavcodec/dv.h int size = d->n_difchan * d->difseg_size * 27; size 111 libavcodec/dv.h size -= 3 * 27; size 113 libavcodec/dv.h size -= 4 * 27; size 114 libavcodec/dv.h return size; size 30 libavcodec/dv_tablegen.c "{0x%"PRIx32", %"PRIu32"}", data[i].vlc, data[i].size) size 42 libavcodec/dv_tablegen.h uint32_t size; size 62 libavcodec/dv_tablegen.h if (dv_vlc_map[ff_dv_vlc_run[i]][ff_dv_vlc_level[i]].size != 0) size 67 libavcodec/dv_tablegen.h dv_vlc_map[ff_dv_vlc_run[i]][ff_dv_vlc_level[i]].size = size 73 libavcodec/dv_tablegen.h if (dv_vlc_map[i][j].size == 0) { size 76 libavcodec/dv_tablegen.h dv_vlc_map[0][j].size); size 77 libavcodec/dv_tablegen.h dv_vlc_map[i][j].size = dv_vlc_map[i - 1][0].size + size 78 libavcodec/dv_tablegen.h dv_vlc_map[0][j].size; size 83 libavcodec/dv_tablegen.h if (dv_vlc_map[i][j].size == 0) { size 86 libavcodec/dv_tablegen.h dv_vlc_map[0][j].size); size 87 libavcodec/dv_tablegen.h dv_vlc_map[i][j].size = dv_vlc_map[i - 1][0].size + size 88 libavcodec/dv_tablegen.h dv_vlc_map[0][j].size; size 91 libavcodec/dv_tablegen.h dv_vlc_map[i][((uint16_t) (-j)) & 0x1ff].size = dv_vlc_map[i][j].size; size 99 libavcodec/dvaudiodec.c if (pkt->size < s->block_size) size 1617 libavcodec/dvbsubdec.c int buf_size = avpkt->size; size 550 libavcodec/dvdec.c int buf_size = avpkt->size; size 230 libavcodec/dvdsubdec.c uint32_t size; size 246 libavcodec/dvdsubdec.c size = READ_OFFSET(buf + (big_offsets ? 2 : 0)); size 250 libavcodec/dvdsubdec.c if (cmd_pos > size) { size 574 libavcodec/dvdsubdec.c int buf_size = avpkt->size; size 99 libavcodec/dvenc.c int size; size 102 libavcodec/dvenc.c size = dv_vlc_map[run][level].size; size 106 libavcodec/dvenc.c size = dv_vlc_map[0][level].size; size 109 libavcodec/dvenc.c size = 16; size 113 libavcodec/dvenc.c (0x1f80 | (run - 1))) << size; size 114 libavcodec/dvenc.c size += (run < 16) ? dv_vlc_map[run - 1][0].size : 13; size 118 libavcodec/dvenc.c return size; size 123 libavcodec/dvenc.c int size; size 126 libavcodec/dvenc.c size = dv_vlc_map[run][level].size; size 128 libavcodec/dvenc.c size = (level < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][level].size : 16; size 130 libavcodec/dvenc.c size += (run < 16) ? dv_vlc_map[run - 1][0].size : 13; size 132 libavcodec/dvenc.c return size; size 138 libavcodec/dvenc.c return dv_vlc_map[run][l].size; size 143 libavcodec/dvenc.c return dv_vlc_map[run][l].size; size 172 libavcodec/dvenc.c int size = bi->partial_bit_count; size 179 libavcodec/dvenc.c for (; size > (bits_left = put_bits_left(pb)); pb++) { size 181 libavcodec/dvenc.c size -= bits_left; size 182 libavcodec/dvenc.c put_bits(pb, bits_left, vlc >> size); size 183 libavcodec/dvenc.c vlc = av_mod_uintp2(vlc, size); size 186 libavcodec/dvenc.c bi->partial_bit_count = size; size 193 libavcodec/dvenc.c put_bits(pb, size, vlc); size 202 libavcodec/dvenc.c size = dv_rl2vlc(bi->cur_ac - prev - 1, bi->mb[bi->cur_ac], size 205 libavcodec/dvenc.c size = 4; size 609 libavcodec/dvenc.c int size[5]; size 630 libavcodec/dvenc.c size[i] = 0; size 633 libavcodec/dvenc.c size[i] += size_cache[8*i+j][qlevels[i]]; size 638 libavcodec/dvenc.c if (size[0]+size[1]+size[2]+size[3]+size[4] > vs_total_ac_bits_hd) { size 639 libavcodec/dvenc.c int largest = size[0] % 5; /* 'random' number */ size 661 libavcodec/dvenc.c size[i] = 0; size 672 libavcodec/dvenc.c size[i] += size_cache[8*i+j][qlevels[i]]; size 675 libavcodec/dvenc.c } while (vs_total_ac_bits_hd < size[0] + size[1] + size[2] + size[3] + size[4] && qlevels_done < 5); size 679 libavcodec/dvenc.c size[0]+size[1]+size[2]+size[3]+size[4] < vs_total_ac_bits_hd) { size 681 libavcodec/dvenc.c int largest = size[0] % 5; /* 'random' number */ size 712 libavcodec/dvenc.c size[i] = 0; size 721 libavcodec/dvenc.c size[i] += size_cache[8*i+j][qlevels[i]]; size 725 libavcodec/dvenc.c if (vs_total_ac_bits_hd < size[0] + size[1] + size[2] + size[3] + size[4]) { size 738 libavcodec/dvenc.c size[i] = 0; size 741 libavcodec/dvenc.c size[i] += dv100_actual_quantize(b, qlevels[i]); size 748 libavcodec/dvenc.c int size[5]; size 752 libavcodec/dvenc.c size[0] = size 753 libavcodec/dvenc.c size[1] = size 754 libavcodec/dvenc.c size[2] = size 755 libavcodec/dvenc.c size[3] = size 756 libavcodec/dvenc.c size[4] = 1 << 24; size 764 libavcodec/dvenc.c size[i] = 0; size 793 libavcodec/dvenc.c size[i] += b->bit_size[a]; size 796 libavcodec/dvenc.c if (vs_total_ac_bits >= size[0] + size[1] + size[2] + size[3] + size[4]) size 801 libavcodec/dvenc.c for (a = 2; a == 2 || vs_total_ac_bits < size[0]; a += a) { size 803 libavcodec/dvenc.c size[0] = 5 * 6 * 4; // EOB size 810 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); size 980 libavcodec/dvenc.c int size = pbs[j].size_in_bits >> 3; size 983 libavcodec/dvenc.c if (pos > size) { size 988 libavcodec/dvenc.c memset(pbs[j].buf + pos, 0xff, size - pos); size 221 libavcodec/dxa.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 325 libavcodec/dxa.c return avpkt->size; size 568 libavcodec/dxtory.c if (avpkt->size < 16) { size 575 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 579 libavcodec/dxtory.c ret = dxtory_decode_v2_rgb(avctx, pic, src + 16, avpkt->size - 16); size 582 libavcodec/dxtory.c ret = dxtory_decode_v1_420(avctx, pic, src + 16, avpkt->size - 16); size 585 libavcodec/dxtory.c ret = dxtory_decode_v2_420(avctx, pic, src + 16, avpkt->size - 16); size 588 libavcodec/dxtory.c ret = dxtory_decode_v1_410(avctx, pic, src + 16, avpkt->size - 16); size 591 libavcodec/dxtory.c ret = dxtory_decode_v2_410(avctx, pic, src + 16, avpkt->size - 16); size 594 libavcodec/dxtory.c ret = dxtory_decode_v1_444(avctx, pic, src + 16, avpkt->size - 16); size 597 libavcodec/dxtory.c ret = dxtory_decode_v2_444(avctx, pic, src + 16, avpkt->size - 16); size 600 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 604 libavcodec/dxtory.c ret = dxtory_decode_v2_565(avctx, pic, src + 16, avpkt->size - 16, 1); size 608 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 613 libavcodec/dxtory.c ret = dxtory_decode_v2_565(avctx, pic, src + 16, avpkt->size - 16, 0); size 627 libavcodec/dxtory.c return avpkt->size; size 1051 libavcodec/dxv.c int size = 0, old_type = 0; size 1054 libavcodec/dxv.c bytestream2_init(gbc, avpkt->data, avpkt->size); size 1120 libavcodec/dxv.c size = tag & 0x00FFFFFF; size 1167 libavcodec/dxv.c size = bytestream2_get_le32(gbc); size 1173 libavcodec/dxv.c if (size != bytestream2_get_bytes_left(gbc)) { size 1176 libavcodec/dxv.c size, bytestream2_get_bytes_left(gbc)); size 1228 libavcodec/dxv.c return avpkt->size; size 794 libavcodec/dxva2.c unsigned type, const void *data, unsigned size, size 819 libavcodec/dxva2.c if (size <= dxva_size) { size 820 libavcodec/dxva2.c memcpy(dxva_data, data, size); size 827 libavcodec/dxva2.c dsc11->DataSize = size; size 836 libavcodec/dxva2.c dsc2->DataSize = size; size 198 libavcodec/dxva2_h264.c unsigned position, unsigned size) size 202 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = size; size 217 libavcodec/dxva2_h264.c const DXVA_PicParams_H264 *pp, unsigned position, unsigned size) size 226 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = size; size 344 libavcodec/dxva2_h264.c unsigned position, size; size 357 libavcodec/dxva2_h264.c size = slice->SliceBytesInBuffer; size 358 libavcodec/dxva2_h264.c if (start_code_size + size > end - current) { size 364 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = start_code_size + size; size 378 libavcodec/dxva2_h264.c memcpy(current, &ctx_pic->bitstream[position], size); size 379 libavcodec/dxva2_h264.c current += size; size 443 libavcodec/dxva2_h264.c av_unused uint32_t size) size 467 libavcodec/dxva2_h264.c uint32_t size) size 481 libavcodec/dxva2_h264.c ctx_pic->bitstream_size += size; size 486 libavcodec/dxva2_h264.c position, size); size 489 libavcodec/dxva2_h264.c &ctx_pic->pp, position, size); size 229 libavcodec/dxva2_hevc.c unsigned position, unsigned size) size 233 libavcodec/dxva2_hevc.c slice->SliceBytesInBuffer = size; size 283 libavcodec/dxva2_hevc.c unsigned position, size; size 288 libavcodec/dxva2_hevc.c size = slice->SliceBytesInBuffer; size 289 libavcodec/dxva2_hevc.c if (start_code_size + size > end - current) { size 295 libavcodec/dxva2_hevc.c slice->SliceBytesInBuffer = start_code_size + size; size 300 libavcodec/dxva2_hevc.c memcpy(current, &ctx_pic->bitstream[position], size); size 301 libavcodec/dxva2_hevc.c current += size; size 358 libavcodec/dxva2_hevc.c av_unused uint32_t size) size 382 libavcodec/dxva2_hevc.c uint32_t size) size 394 libavcodec/dxva2_hevc.c ctx_pic->bitstream_size += size; size 397 libavcodec/dxva2_hevc.c fill_slice_short(&ctx_pic->slice_short[ctx_pic->slice_count], position, size); size 144 libavcodec/dxva2_internal.h unsigned type, const void *data, unsigned size, size 127 libavcodec/dxva2_mpeg2.c const uint8_t *buffer, unsigned size) size 135 libavcodec/dxva2_mpeg2.c slice->dwSliceBitsInBuffer = 8 * size; size 143 libavcodec/dxva2_mpeg2.c init_get_bits(&gb, &buffer[4], 8 * (size - 4)); size 193 libavcodec/dxva2_mpeg2.c unsigned size = slice->dwSliceBitsInBuffer / 8; size 194 libavcodec/dxva2_mpeg2.c if (size > end - current) { size 207 libavcodec/dxva2_mpeg2.c memcpy(current, &ctx_pic->bitstream[position], size); size 208 libavcodec/dxva2_mpeg2.c current += size; size 255 libavcodec/dxva2_mpeg2.c av_unused uint32_t size) size 276 libavcodec/dxva2_mpeg2.c const uint8_t *buffer, uint32_t size) size 290 libavcodec/dxva2_mpeg2.c ctx_pic->bitstream_size += size; size 294 libavcodec/dxva2_mpeg2.c buffer, size); size 163 libavcodec/dxva2_vc1.c unsigned position, unsigned size) size 171 libavcodec/dxva2_vc1.c slice->dwSliceBitsInBuffer = 8 * size; size 227 libavcodec/dxva2_vc1.c unsigned position, size; size 230 libavcodec/dxva2_vc1.c size = slice->dwSliceBitsInBuffer / 8; size 231 libavcodec/dxva2_vc1.c if (start_code_size + size > end - current) { size 256 libavcodec/dxva2_vc1.c memcpy(current, &ctx_pic->bitstream[position], size); size 257 libavcodec/dxva2_vc1.c current += size; size 311 libavcodec/dxva2_vc1.c av_unused uint32_t size) size 331 libavcodec/dxva2_vc1.c uint32_t size) size 345 libavcodec/dxva2_vc1.c size >= 4 && IS_MARKER(AV_RB32(buffer))) { size 347 libavcodec/dxva2_vc1.c size -= 4; size 352 libavcodec/dxva2_vc1.c ctx_pic->bitstream_size += size; size 355 libavcodec/dxva2_vc1.c fill_slice(avctx, &ctx_pic->slice[ctx_pic->slice_count++], position, size); size 156 libavcodec/dxva2_vp9.c unsigned position, unsigned size) size 160 libavcodec/dxva2_vp9.c slice->SliceBytesInBuffer = size; size 254 libavcodec/dxva2_vp9.c av_unused uint32_t size) size 275 libavcodec/dxva2_vp9.c uint32_t size) size 283 libavcodec/dxva2_vp9.c ctx_pic->bitstream_size += size; size 286 libavcodec/dxva2_vp9.c fill_slice_short(&ctx_pic->slice, position, size); size 35 libavcodec/eac3_core_bsf.c ret = init_get_bits8(&gbc, pkt->data, pkt->size); size 47 libavcodec/eac3_core_bsf.c pkt->size = FFMIN(hdr.frame_size, pkt->size); size 48 libavcodec/eac3_core_bsf.c } else if (hdr.frame_type == EAC3_FRAME_TYPE_DEPENDENT && pkt->size > hdr.frame_size) { size 51 libavcodec/eac3_core_bsf.c ret = init_get_bits8(&gbc, pkt->data + hdr.frame_size, pkt->size - hdr.frame_size); size 63 libavcodec/eac3_core_bsf.c pkt->size -= hdr.frame_size; size 66 libavcodec/eac3_core_bsf.c pkt->size = 0; size 69 libavcodec/eac3_core_bsf.c pkt->size = 0; size 179 libavcodec/eacmv.c int buf_size = avpkt->size; size 189 libavcodec/eacmv.c unsigned size = AV_RL32(buf + 4); size 193 libavcodec/eacmv.c if (size > buf_end - buf - EA_PREAMBLE_SIZE) size 195 libavcodec/eacmv.c buf += size; size 252 libavcodec/eamad.c int buf_size = avpkt->size; size 205 libavcodec/eatgq.c int buf_size = avpkt->size; size 244 libavcodec/eatgq.c return avpkt->size; size 77 libavcodec/eatgv.c int size, size1, size2, offset, run; size 87 libavcodec/eatgv.c size = AV_RB24(src); size 90 libavcodec/eatgv.c while (size > 0 && src < src_end) { size 124 libavcodec/eatgv.c size -= size1; size 134 libavcodec/eatgv.c size -= size2; size 269 libavcodec/eatgv.c int buf_size = avpkt->size; size 128 libavcodec/eatqi.c int buf_size = avpkt->size; size 32 libavcodec/encode.c int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size) size 34 libavcodec/encode.c if (avpkt->size < 0) { size 35 libavcodec/encode.c av_log(avctx, AV_LOG_ERROR, "Invalid negative user packet size %d\n", avpkt->size); size 38 libavcodec/encode.c if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { size 40 libavcodec/encode.c size, INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE); size 44 libavcodec/encode.c if (avctx && 2*min_size < size) { // FIXME The factor needs to be finetuned size 46 libavcodec/encode.c if (!avpkt->data || avpkt->size < size) { size 47 libavcodec/encode.c av_fast_padded_malloc(&avctx->internal->byte_buffer, &avctx->internal->byte_buffer_size, size); size 49 libavcodec/encode.c avpkt->size = avctx->internal->byte_buffer_size; size 56 libavcodec/encode.c if (avpkt->size < size) { size 57 libavcodec/encode.c av_log(avctx, AV_LOG_ERROR, "User packet is too small (%d < %"PRId64")\n", avpkt->size, size); size 63 libavcodec/encode.c avpkt->size = size; size 66 libavcodec/encode.c int ret = av_new_packet(avpkt, size); size 68 libavcodec/encode.c av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %"PRId64"\n", size); size 159 libavcodec/encode.c if (sd && sd->size >= sizeof(enum AVAudioServiceType)) size 210 libavcodec/encode.c avpkt->size = 0; size 216 libavcodec/encode.c if (user_pkt.size >= avpkt->size) { size 217 libavcodec/encode.c memcpy(user_pkt.data, avpkt->data, avpkt->size); size 219 libavcodec/encode.c av_log(avctx, AV_LOG_ERROR, "Provided packet is too small, needs to be %d\n", avpkt->size); size 220 libavcodec/encode.c avpkt->size = user_pkt.size; size 234 libavcodec/encode.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE); size 311 libavcodec/encode.c if (user_pkt.size >= avpkt->size) { size 312 libavcodec/encode.c memcpy(user_pkt.data, avpkt->data, avpkt->size); size 314 libavcodec/encode.c av_log(avctx, AV_LOG_ERROR, "Provided packet is too small, needs to be %d\n", avpkt->size); size 315 libavcodec/encode.c avpkt->size = user_pkt.size; size 329 libavcodec/encode.c avpkt->size = 0; size 332 libavcodec/encode.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + AV_INPUT_BUFFER_PADDING_SIZE); size 908 libavcodec/error_resilience.c int size = s->b8_stride * 2 * s->mb_height; size 957 libavcodec/error_resilience.c s->motion_val_buf[i] = av_buffer_allocz((size + 4) * 2 * sizeof(uint16_t)); size 39 libavcodec/escape124.c unsigned size; size 86 libavcodec/escape124.c unsigned size) size 91 libavcodec/escape124.c if (size >= INT_MAX / 34 || get_bits_left(gb) < size * 34) size 94 libavcodec/escape124.c if (size >= INT_MAX / sizeof(MacroBlock)) size 96 libavcodec/escape124.c cb.blocks = av_malloc(size ? size * sizeof(MacroBlock) : 1); size 101 libavcodec/escape124.c cb.size = size; size 102 libavcodec/escape124.c for (i = 0; i < size; i++) { size 165 libavcodec/escape124.c if (block_index >= s->codebooks[*codebook_index].size) size 202 libavcodec/escape124.c int buf_size = avpkt->size; size 219 libavcodec/escape124.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 195 libavcodec/escape130.c int buf_size = avpkt->size; size 221 libavcodec/escape130.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 748 libavcodec/evrcdec.c int buf_size = avpkt->size; size 913 libavcodec/evrcdec.c return avpkt->size; size 144 libavcodec/exif.c int avpriv_exif_decode_ifd(void *logctx, const uint8_t *buf, int size, size 149 libavcodec/exif.c bytestream2_init(&gb, buf, size); size 167 libavcodec/exif.h int avpriv_exif_decode_ifd(void *logctx, const uint8_t *buf, int size, size 1665 libavcodec/exr.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 1792 libavcodec/exr.c s->buf_size = avpkt->size; size 1819 libavcodec/exr.c return avpkt->size; size 27 libavcodec/exrdsp.c static void reorder_pixels_scalar(uint8_t *dst, const uint8_t *src, ptrdiff_t size) size 30 libavcodec/exrdsp.c int half_size = size / 2; size 41 libavcodec/exrdsp.c static void predictor_scalar(uint8_t *src, ptrdiff_t size) size 45 libavcodec/exrdsp.c for (i = 1; i < size; i++) size 26 libavcodec/exrdsp.h void (*reorder_pixels)(uint8_t *dst, const uint8_t *src, ptrdiff_t size); size 27 libavcodec/exrdsp.h void (*predictor)(uint8_t *src, ptrdiff_t size); size 40 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size); size 62 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size) size 73 libavcodec/extract_extradata_bsf.c ret = ff_av1_packet_split(&s->av1_pkt, pkt->data, pkt->size, ctx); size 109 libavcodec/extract_extradata_bsf.c *size = extradata_size; size 129 libavcodec/extract_extradata_bsf.c pkt->size = filtered_size; size 137 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size) size 161 libavcodec/extract_extradata_bsf.c ret = ff_h2645_packet_split(&s->h2645_pkt, pkt->data, pkt->size, size 204 libavcodec/extract_extradata_bsf.c *size = extradata_size; size 226 libavcodec/extract_extradata_bsf.c pkt->size = filtered_size; size 234 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size) size 237 libavcodec/extract_extradata_bsf.c const uint8_t *ptr = pkt->data, *end = pkt->data + pkt->size; size 258 libavcodec/extract_extradata_bsf.c *size = extradata_size; size 262 libavcodec/extract_extradata_bsf.c pkt->size -= extradata_size; size 270 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size) size 276 libavcodec/extract_extradata_bsf.c for (i = 0; i < pkt->size; i++) { size 282 libavcodec/extract_extradata_bsf.c *size = i - 3; size 283 libavcodec/extract_extradata_bsf.c *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); size 287 libavcodec/extract_extradata_bsf.c memcpy(*data, pkt->data, *size); size 288 libavcodec/extract_extradata_bsf.c memset(*data + *size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 291 libavcodec/extract_extradata_bsf.c pkt->data += *size; size 292 libavcodec/extract_extradata_bsf.c pkt->size -= *size; size 302 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size) size 305 libavcodec/extract_extradata_bsf.c const uint8_t *ptr = pkt->data, *end = pkt->data + pkt->size; size 312 libavcodec/extract_extradata_bsf.c *size = ptr - 4 - pkt->data; size 313 libavcodec/extract_extradata_bsf.c *data = av_malloc(*size + AV_INPUT_BUFFER_PADDING_SIZE); size 317 libavcodec/extract_extradata_bsf.c memcpy(*data, pkt->data, *size); size 318 libavcodec/extract_extradata_bsf.c memset(*data + *size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 321 libavcodec/extract_extradata_bsf.c pkt->data += *size; size 322 libavcodec/extract_extradata_bsf.c pkt->size -= *size; size 334 libavcodec/extract_extradata_bsf.c uint8_t **data, int *size); size 351 libavcodec/faxcompr.c static void put_line(uint8_t *dst, int size, int width, const int *runs) size 356 libavcodec/faxcompr.c init_put_bits(&pb, dst, size); size 122 libavcodec/fft.h #define COSTABLE(size) \ size 123 libavcodec/fft.h COSTABLE_CONST DECLARE_ALIGNED(32, FFTSample, FFT_NAME(ff_cos_##size))[size/2] size 317 libavcodec/fft_init_table.c void ff_fft_lut_init(uint16_t *table, int off, int size, int *index) size 319 libavcodec/fft_init_table.c if (size < 16) { size 324 libavcodec/fft_init_table.c ff_fft_lut_init(table, off, size>>1, index); size 325 libavcodec/fft_init_table.c ff_fft_lut_init(table, off+(size>>1), size>>2, index); size 326 libavcodec/fft_init_table.c ff_fft_lut_init(table, off+3*(size>>2), size>>2, index); size 64 libavcodec/fft_table.h void ff_fft_lut_init(uint16_t *table, int off, int size, int *index); size 81 libavcodec/fft_template.c #define INIT_FF_COS_TABS_FUNC(index, size) \ size 82 libavcodec/fft_template.c static av_cold void init_ff_cos_tabs_ ## size (void)\ size 748 libavcodec/ffv1dec.c int size = AV_RB24(p-trailer); size 749 libavcodec/ffv1dec.c if (size + trailer > p - c->bytestream_start) size 751 libavcodec/ffv1dec.c p -= size + trailer; size 835 libavcodec/ffv1dec.c int buf_size = avpkt->size; size 1188 libavcodec/ffv1enc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1220 libavcodec/ffv1enc.c uint8_t *start = pkt->data + pkt->size * (int64_t)i / f->slice_count; size 1221 libavcodec/ffv1enc.c int len = pkt->size / f->slice_count; size 1245 libavcodec/ffv1enc.c av_assert0(bytes < pkt->size / f->slice_count); size 1271 libavcodec/ffv1enc.c pkt->size = buf_p - pkt->data; size 434 libavcodec/ffwavesynth.c if (packet->size != 12) size 457 libavcodec/ffwavesynth.c return packet->size; size 206 libavcodec/fic.c int size, uint8_t *alpha) size 210 libavcodec/fic.c for (i = 0; i < size; i++) size 285 libavcodec/fic.c if (avpkt->size < FIC_HEADER_SIZE + 4) { size 314 libavcodec/fic.c if (tsize > avpkt->size - FIC_HEADER_SIZE) { size 317 libavcodec/fic.c tsize, avpkt->size - FIC_HEADER_SIZE); size 346 libavcodec/fic.c if (!skip_cursor && avpkt->size < CURSOR_OFFSET + sizeof(ctx->cursor_buf)) { size 357 libavcodec/fic.c msize = avpkt->size - nslices * 4 - tsize - FIC_HEADER_SIZE; size 440 libavcodec/fic.c return avpkt->size; size 110 libavcodec/fitsdec.c size_t size; size 144 libavcodec/fitsdec.c size = abs(header->bitpix) >> 3; size 146 libavcodec/fitsdec.c if (size == 0 || header->naxisn[i] > SIZE_MAX / size) { size 150 libavcodec/fitsdec.c size *= header->naxisn[i]; size 153 libavcodec/fitsdec.c if (end - ptr8 < size) size 201 libavcodec/fitsdec.c end = ptr8 + avpkt->size; size 308 libavcodec/fitsdec.c return avpkt->size; size 109 libavcodec/fitsenc.c pkt->size = bytestream - bytestream_start; size 144 libavcodec/flac.h int *last, int *type, int *size) size 151 libavcodec/flac.h if (size) size 152 libavcodec/flac.h *size = bytestream_get_be24(&block_header); size 171 libavcodec/flac_parser.c int size = 0; size 180 libavcodec/flac_parser.c size = 0; size 183 libavcodec/flac_parser.c size++; size 199 libavcodec/flac_parser.c size++; size 201 libavcodec/flac_parser.c return size; size 207 libavcodec/flac_parser.c int size = 0, mod_offset = (buf_size - 1) % 4, i, j; size 213 libavcodec/flac_parser.c size = FFMAX(size, ret); size 223 libavcodec/flac_parser.c size = FFMAX(size, ret); size 228 libavcodec/flac_parser.c return size; size 234 libavcodec/flac_parser.c int search_end, size = 0, read_len, temp; size 242 libavcodec/flac_parser.c size = find_headers_search(fpc, buf, read_len, search_start); size 258 libavcodec/flac_parser.c size = FFMAX(size, temp); size 264 libavcodec/flac_parser.c size = FFMAX(size, temp); size 269 libavcodec/flac_parser.c if (!size && fpc->headers) size 271 libavcodec/flac_parser.c size++; size 272 libavcodec/flac_parser.c return size; size 564 libavcodec/flacdec.c int buf_size = avpkt->size; size 1315 libavcodec/flacenc.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 1441 libavcodec/flacenc.c avpkt->size = out_bytes; size 48 libavcodec/flashsv.c int size; size 141 libavcodec/flashsv.c static int flashsv2_prime(FlashSVContext *s, uint8_t *src, int size) size 154 libavcodec/flashsv.c s->zstream.avail_in = size; size 198 libavcodec/flashsv.c s->blocks[blk_idx].size); size 219 libavcodec/flashsv.c s->blocks[blk_idx].size = block_size; size 253 libavcodec/flashsv.c int size; size 260 libavcodec/flashsv.c size = deflateBound(&zstream, tmpblock_size); size 263 libavcodec/flashsv.c return size; size 269 libavcodec/flashsv.c int buf_size = avpkt->size; size 359 libavcodec/flashsv.c if ((err = av_reallocp(&s->keyframedata, avpkt->size)) < 0) size 361 libavcodec/flashsv.c memcpy(s->keyframedata, avpkt->data, avpkt->size); size 387 libavcodec/flashsv.c int size = get_bits(&gb, 16); size 395 libavcodec/flashsv.c if (8 * size > get_bits_left(&gb)) { size 400 libavcodec/flashsv.c if (s->ver == 2 && size) { size 415 libavcodec/flashsv.c if (size < 3) { size 435 libavcodec/flashsv.c size -= 2; size 446 libavcodec/flashsv.c if (size < 3) { size 450 libavcodec/flashsv.c size -= 2; size 459 libavcodec/flashsv.c size--; // account for flags byte size 474 libavcodec/flashsv.c if (size) { size 475 libavcodec/flashsv.c if (flashsv_decode_block(avctx, avpkt, &gb, size, size 888 libavcodec/flashsv2enc.c res = write_bitstream(s, p->data[0], p->linesize[0], pkt->data, pkt->size, keyframe); size 897 libavcodec/flashsv2enc.c pkt->size = res; size 244 libavcodec/flashsvenc.c pkt->size = encode_bitstream(s, p, pkt->data, pkt->size, opt_w * 16, opt_h * 16, size 1074 libavcodec/flicvideo.c int buf_size = avpkt->size; size 36 libavcodec/fmvc.c int size; size 405 libavcodec/fmvc.c if (avpkt->size < 8) size 411 libavcodec/fmvc.c bytestream2_init(gb, avpkt->data, avpkt->size); size 419 libavcodec/fmvc.c unsigned type, size; size 423 libavcodec/fmvc.c size = bytestream2_get_le16(gb); size 424 libavcodec/fmvc.c if (size > bytestream2_get_bytes_left(gb)) size 462 libavcodec/fmvc.c unsigned size, offset; size 469 libavcodec/fmvc.c size = bytestream2_get_le16(gb); size 470 libavcodec/fmvc.c if (size > bytestream2_get_bytes_left(gb)) size 483 libavcodec/fmvc.c if (s->blocks[offset].size * 4 != bytestream2_tell_p(pb) - start) size 526 libavcodec/fmvc.c return avpkt->size; size 586 libavcodec/fmvc.c s->blocks[block].size = BLOCK_WIDTH * h; size 590 libavcodec/fmvc.c s->blocks[block].size = BLOCK_HEIGHT * w; size 594 libavcodec/fmvc.c s->blocks[block].size = BLOCK_WIDTH * BLOCK_HEIGHT; size 599 libavcodec/fmvc.c s->blocks[block].size = w * h; size 97 libavcodec/frame_thread_encoder.c pkt->size = 0; size 87 libavcodec/fraps.c int h, const uint8_t *src, int size, int Uoff, size 97 libavcodec/fraps.c size -= 1024; size 106 libavcodec/fraps.c (const uint32_t *) src, size >> 2); size 108 libavcodec/fraps.c if ((ret = init_get_bits8(&gb, s->tmpbuf, size)) < 0) size 138 libavcodec/fraps.c int buf_size = avpkt->size; size 51 libavcodec/frwu.c const uint8_t *buf_end = buf + avpkt->size; size 53 libavcodec/frwu.c if (avpkt->size < avctx->width * 2 * avctx->height + 4 + 2*8) { size 102 libavcodec/frwu.c return avpkt->size; size 1397 libavcodec/g2meet.c int buf_size = avpkt->size; size 98 libavcodec/g722dec.c frame->nb_samples = avpkt->size * 2; size 103 libavcodec/g722dec.c ret = init_get_bits8(&gb, avpkt->data, avpkt->size); size 107 libavcodec/g722dec.c for (j = 0; j < avpkt->size; j++) { size 139 libavcodec/g722dec.c return avpkt->size; size 861 libavcodec/g723_1dec.c int buf_size = avpkt->size; size 293 libavcodec/g723_1enc.c #define get_index(num, offset, size) \ size 300 libavcodec/g723_1enc.c for (j = 0; j < size; j++){ \ size 304 libavcodec/g723_1enc.c error = ff_g723_1_dot_product(lsp + (offset), temp, size) << 1; \ size 305 libavcodec/g723_1enc.c error -= ff_g723_1_dot_product(lsp_band##num[i], temp, size); \ size 1005 libavcodec/g723_1enc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 1190 libavcodec/g723_1enc.c avpkt->size = pack_bitstream(p, avpkt); size 358 libavcodec/g726.c init_put_bits(&pb, avpkt->data, avpkt->size); size 373 libavcodec/g726.c avpkt->size = out_size; size 470 libavcodec/g726.c int buf_size = avpkt->size; size 406 libavcodec/g729dec.c int buf_size = avpkt->size; size 470 libavcodec/gdv.c bytestream2_init(gb, avpkt->data, avpkt->size); size 554 libavcodec/gdv.c return ret < 0 ? ret : avpkt->size; size 373 libavcodec/gif.c int size = FFMIN(255, len); size 374 libavcodec/gif.c bytestream_put_byte(bytestream, size); size 375 libavcodec/gif.c if (end - *bytestream < size) size 377 libavcodec/gif.c bytestream_put_buffer(bytestream, ptr, size); size 378 libavcodec/gif.c ptr += size; size 379 libavcodec/gif.c len -= size; size 420 libavcodec/gif.c end = pkt->data + pkt->size; size 449 libavcodec/gif.c pkt->size = outbuf_ptr - pkt->data; size 472 libavcodec/gifdec.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 483 libavcodec/gifdec.c if (avpkt->size >= 6) { size 72 libavcodec/gsmdec.c int buf_size = avpkt->size; size 589 libavcodec/h261dec.c int buf_size = avpkt->size; size 425 libavcodec/h263dec.c int buf_size = avpkt->size; size 89 libavcodec/h2645_parse.c nal->size = size 141 libavcodec/h2645_parse.c nal->size = di; size 265 libavcodec/h2645_parse.c int size = nal->size; size 268 libavcodec/h2645_parse.c while (skip_trailing_zeros && size > 0 && nal->data[size - 1] == 0) size 269 libavcodec/h2645_parse.c size--; size 271 libavcodec/h2645_parse.c if (!size) size 274 libavcodec/h2645_parse.c v = nal->data[size - 1]; size 276 libavcodec/h2645_parse.c if (size > INT_MAX / 8) size 278 libavcodec/h2645_parse.c size *= 8; size 283 libavcodec/h2645_parse.c size -= ff_ctz(v) + 1; size 285 libavcodec/h2645_parse.c return size; size 345 libavcodec/h2645_parse.c static void alloc_rbsp_buffer(H2645RBSP *rbsp, unsigned int size, int use_ref) size 347 libavcodec/h2645_parse.c int min_size = size; size 349 libavcodec/h2645_parse.c if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 351 libavcodec/h2645_parse.c size += AV_INPUT_BUFFER_PADDING_SIZE; size 353 libavcodec/h2645_parse.c if (rbsp->rbsp_buffer_alloc_size >= size && size 360 libavcodec/h2645_parse.c size = FFMIN(size + size / 16 + 32, INT_MAX); size 367 libavcodec/h2645_parse.c rbsp->rbsp_buffer = av_mallocz(size); size 370 libavcodec/h2645_parse.c rbsp->rbsp_buffer_alloc_size = size; size 373 libavcodec/h2645_parse.c rbsp->rbsp_buffer_ref = av_buffer_create(rbsp->rbsp_buffer, size, size 507 libavcodec/h2645_parse.c if (ret <= 0 || nal->size <= 0 || nal->size_bits <= 0) { size 35 libavcodec/h2645_parse.h int size; size 544 libavcodec/h264_metadata_bsf.c int size; size 547 libavcodec/h264_metadata_bsf.c data = av_packet_get_side_data(pkt, AV_PKT_DATA_DISPLAYMATRIX, &size); size 548 libavcodec/h264_metadata_bsf.c if (data && size >= 9 * sizeof(int32_t)) { size 191 libavcodec/h264_mp4toannexb_bsf.c buf_end = in->data + in->size; size 284 libavcodec/h264_mp4toannexb_bsf.c av_assert1(out_size == opkt->size); size 364 libavcodec/h264_parse.c static int decode_extradata_ps(const uint8_t *data, int size, H264ParamSets *ps, size 370 libavcodec/h264_parse.c ret = ff_h2645_packet_split(&pkt, data, size, logctx, is_avc, 2, AV_CODEC_ID_H264, 1, 0); size 462 libavcodec/h264_parse.c int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, size 468 libavcodec/h264_parse.c if (!data || size <= 0) size 477 libavcodec/h264_parse.c if (size < 7) { size 478 libavcodec/h264_parse.c av_log(logctx, AV_LOG_ERROR, "avcC %d too short\n", size); size 487 libavcodec/h264_parse.c if (nalsize > size - (p - data)) size 501 libavcodec/h264_parse.c if (nalsize > size - (p - data)) size 515 libavcodec/h264_parse.c ret = decode_extradata_ps(data, size, ps, 0, logctx); size 519 libavcodec/h264_parse.c return size; size 84 libavcodec/h264_parse.h int ff_h264_decode_extradata(const uint8_t *data, int size, H264ParamSets *ps, size 317 libavcodec/h264_parser.c ret = init_get_bits8(&nal.gb, nal.data, nal.size); size 252 libavcodec/h264_ps.c static int decode_scaling_list(GetBitContext *gb, uint8_t *factors, int size, size 257 libavcodec/h264_ps.c const uint8_t *scan = size == 16 ? ff_zigzag_scan : ff_zigzag_direct; size 259 libavcodec/h264_ps.c memcpy(factors, fallback_list, size * sizeof(uint8_t)); size 261 libavcodec/h264_ps.c for (i = 0; i < size; i++) { size 271 libavcodec/h264_ps.c memcpy(factors, jvt_list, size * sizeof(uint8_t)); size 631 libavcodec/h264_ps.c !memcmp(ps->sps_list[sps_id]->data, sps_buf->data, sps_buf->size)) { size 129 libavcodec/h264_sei.c int size = (size_bits + 7) / 8; size 135 libavcodec/h264_sei.c if (size > sizeof(h->payload)) { size 139 libavcodec/h264_sei.c memcpy(h->payload, gb->buffer + index / 8, size); size 147 libavcodec/h264_sei.c static int decode_registered_user_data_afd(H264SEIAFD *h, GetBitContext *gb, int size) size 151 libavcodec/h264_sei.c if (size-- < 1) size 158 libavcodec/h264_sei.c if (size-- < 1) size 170 libavcodec/h264_sei.c int size) size 176 libavcodec/h264_sei.c if (size < 3) size 188 libavcodec/h264_sei.c size -= 2; size 190 libavcodec/h264_sei.c if (cc_count && size >= cc_count * 3) { size 191 libavcodec/h264_sei.c int old_size = h->buf_ref ? h->buf_ref->size : 0; size 216 libavcodec/h264_sei.c for (i = 0; i < size - 1; i++) size 224 libavcodec/h264_sei.c void *logctx, int size) size 229 libavcodec/h264_sei.c if (size < 7) size 231 libavcodec/h264_sei.c size -= 7; size 236 libavcodec/h264_sei.c size--; size 246 libavcodec/h264_sei.c return decode_registered_user_data_afd(&h->afd, gb, size); size 249 libavcodec/h264_sei.c logctx, size); size 251 libavcodec/h264_sei.c skip_bits(gb, size * 8); size 259 libavcodec/h264_sei.c void *logctx, int size) size 264 libavcodec/h264_sei.c if (size < 16 || size >= INT_MAX - 1) size 267 libavcodec/h264_sei.c user_data = av_malloc(size + 1); size 271 libavcodec/h264_sei.c for (i = 0; i < size; i++) size 426 libavcodec/h264_sei.c unsigned size = 0; size 438 libavcodec/h264_sei.c size += show_bits(gb, 8); size 441 libavcodec/h264_sei.c if (size > get_bits_left(gb) / 8) { size 443 libavcodec/h264_sei.c type, 8*size, get_bits_left(gb)); size 447 libavcodec/h264_sei.c ret = init_get_bits8(&gb_payload, gb->buffer + get_bits_count(gb) / 8, size); size 456 libavcodec/h264_sei.c ret = decode_registered_user_data(h, &gb_payload, logctx, size); size 459 libavcodec/h264_sei.c ret = decode_unregistered_user_data(&h->unregistered, &gb_payload, logctx, size); size 492 libavcodec/h264_sei.c skip_bits_long(gb, 8 * size); size 273 libavcodec/h264_slice.c #define IN_RANGE(a, b, size) (((void*)(a) >= (void*)(b)) && ((void*)(a) < (void*)((b) + (size)))) size 532 libavcodec/h264dec.c ret = init_get_bits8(&gb, nal->data + 1, nal->size - 1); size 986 libavcodec/h264dec.c int buf_size = avpkt->size; size 117 libavcodec/h264dsp.h int (*startcode_find_candidate)(const uint8_t *buf, int size); size 46 libavcodec/hapdec.c static int hap_parse_decode_instructions(HapContext *ctx, int size) size 54 libavcodec/hapdec.c while (size > 0) { size 60 libavcodec/hapdec.c size -= stream_remaining - bytestream2_get_bytes_left(gbc); size 96 libavcodec/hapdec.c size -= section_size; size 313 libavcodec/hapdec.c bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size); size 399 libavcodec/hapdec.c return avpkt->size; size 209 libavcodec/hapenc.c ret = compress_texture(avctx, pkt->data + header_length, pkt->size - header_length, frame); size 62 libavcodec/hapqa_extract_bsf.c bytestream2_init(&gbc, pkt->data, pkt->size); size 100 libavcodec/hapqa_extract_bsf.c pkt->size = target_packet_size; size 397 libavcodec/hcadec.c if (av_crc(c->crc_table, 0, avpkt->data, avpkt->size)) size 401 libavcodec/hcadec.c if ((ret = init_get_bits8(gb, avpkt->data, avpkt->size)) < 0) size 433 libavcodec/hcadec.c return avpkt->size; size 94 libavcodec/hcom.c if (pkt->size > INT16_MAX) size 97 libavcodec/hcom.c frame->nb_samples = pkt->size * 8; size 101 libavcodec/hcom.c if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) size 129 libavcodec/hcom.c return pkt->size; size 138 libavcodec/hevc_mp4toannexb_bsf.c bytestream2_init(&gb, in->data, in->size); size 170 libavcodec/hevc_mp4toannexb_bsf.c prev_size = out->size; size 80 libavcodec/hevc_parse.c int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, size 87 libavcodec/hevc_parse.c bytestream2_init(&gb, data, size); size 89 libavcodec/hevc_parse.c if (size > 3 && (data[0] || data[1] || data[2] > 1)) { size 138 libavcodec/hevc_parse.c ret = hevc_decode_nal_units(data, size, ps, sei, *is_nalff, *nal_length_size, size 32 libavcodec/hevc_parse.h int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, size 574 libavcodec/hevc_ps.c !memcmp(ps->vps_list[vps_id]->data, vps_buf->data, vps_buf->size)) { size 1294 libavcodec/hevc_ps.c !memcmp(ps->sps_list[sps_id]->data, sps_buf->data, sps_buf->size)) { size 280 libavcodec/hevc_refs.c if (s->slice_idx >= frame->rpl_buf->size / sizeof(RefPicListTab)) size 399 libavcodec/hevc_refs.c frame->frame->buf[i]->size); size 129 libavcodec/hevc_sei.c void *logctx, int size) size 157 libavcodec/hevc_sei.c size--; size 159 libavcodec/hevc_sei.c skip_bits_long(gb, 8 * size); size 165 libavcodec/hevc_sei.c int size) size 171 libavcodec/hevc_sei.c if (size < 3) size 183 libavcodec/hevc_sei.c size -= 2; size 185 libavcodec/hevc_sei.c if (cc_count && size >= cc_count * 3) { size 186 libavcodec/hevc_sei.c int old_size = s->buf_ref ? s->buf_ref->size : 0; size 209 libavcodec/hevc_sei.c for (i = 0; i < size - 1; i++) size 217 libavcodec/hevc_sei.c int size) size 222 libavcodec/hevc_sei.c if (size < 7) size 224 libavcodec/hevc_sei.c size -= 7; size 229 libavcodec/hevc_sei.c size--; size 239 libavcodec/hevc_sei.c return decode_registered_user_data_closed_caption(&s->a53_caption, gb, size); size 241 libavcodec/hevc_sei.c skip_bits_long(gb, size * 8); size 284 libavcodec/hevc_sei.c const HEVCParamSets *ps, int type, int size) size 294 libavcodec/hevc_sei.c return decode_nal_sei_pic_timing(s, gb, ps, logctx, size); size 302 libavcodec/hevc_sei.c return decode_nal_sei_user_data_registered_itu_t_t35(s, gb, size); size 307 libavcodec/hevc_sei.c skip_bits_long(gb, 8 * size); size 313 libavcodec/hevc_sei.c int type, int size) size 320 libavcodec/hevc_sei.c skip_bits_long(gb, 8 * size); size 79 libavcodec/hevcdec.c av_freep(&s->sh.size); size 864 libavcodec/hevcdec.c av_freep(&sh->size); size 867 libavcodec/hevcdec.c sh->size = av_malloc_array(sh->num_entry_point_offsets, sizeof(int)); size 868 libavcodec/hevcdec.c if (!sh->entry_point_offset || !sh->offset || !sh->size) { size 1148 libavcodec/hevcdec.c int size = 1 << log2_trafo_size_c; size 1152 libavcodec/hevcdec.c for (i = 0; i < (size * size); i++) { size 1177 libavcodec/hevcdec.c int size = 1 << log2_trafo_size_c; size 1181 libavcodec/hevcdec.c for (i = 0; i < (size * size); i++) { size 2500 libavcodec/hevcdec.c ret = init_get_bits8(&lc->gb, s->data + s->sh.offset[ctb_row - 1], s->sh.size[ctb_row - 1]); size 2503 libavcodec/hevcdec.c ff_init_cabac_decoder(&lc->cc, s->data + s->sh.offset[(ctb_row)-1], s->sh.size[ctb_row - 1]); size 2567 libavcodec/hevcdec.c int length = nal->size; size 2619 libavcodec/hevcdec.c s->sh.size[i - 1] = s->sh.entry_point_offset[i] - cmpt; size 2630 libavcodec/hevcdec.c s->sh.size[s->sh.num_entry_point_offsets - 1] = length - offset; size 3208 libavcodec/hevcdec.c if (!avpkt->size) { size 3226 libavcodec/hevcdec.c ret = decode_nal_units(s, avpkt->data, avpkt->size); size 3260 libavcodec/hevcdec.c return avpkt->size; size 3329 libavcodec/hevcdec.c av_freep(&s->sh.size); size 304 libavcodec/hevcdec.h int * size; size 45 libavcodec/hevcdsp_template.c ptrdiff_t stride, int size) size 52 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 53 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) { size 89 libavcodec/hevcdsp_template.c int size = 1 << log2_size; size 92 libavcodec/hevcdsp_template.c coeffs += size; size 93 libavcodec/hevcdsp_template.c for (y = 0; y < size - 1; y++) { size 94 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) size 95 libavcodec/hevcdsp_template.c coeffs[x] += coeffs[x - size]; size 96 libavcodec/hevcdsp_template.c coeffs += size; size 99 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 100 libavcodec/hevcdsp_template.c for (x = 1; x < size; x++) size 102 libavcodec/hevcdsp_template.c coeffs += size; size 111 libavcodec/hevcdsp_template.c int size = 1 << log2_size; size 115 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 116 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) { size 122 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 123 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) { size 77 libavcodec/hevcpred_template.c int size = (1 << log2_size); size 78 libavcodec/hevcpred_template.c int size_in_luma_h = size << hshift; size 80 libavcodec/hevcpred_template.c int size_in_luma_v = size << vshift; size 170 libavcodec/hevcpred_template.c memcpy(top, src - stride, size * sizeof(pixel)); size 172 libavcodec/hevcpred_template.c memcpy(top + size, src - stride + size, size * sizeof(pixel)); size 173 libavcodec/hevcpred_template.c EXTEND(top + size + top_right_size, POS(size + top_right_size - 1, -1), size 174 libavcodec/hevcpred_template.c size - top_right_size); size 177 libavcodec/hevcpred_template.c for (i = 0; i < size; i++) size 180 libavcodec/hevcpred_template.c for (i = size; i < size + bottom_left_size; i++) size 182 libavcodec/hevcpred_template.c EXTEND(left + size + bottom_left_size, POS(-1, size + bottom_left_size - 1), size 183 libavcodec/hevcpred_template.c size - bottom_left_size); size 188 libavcodec/hevcpred_template.c int size_max_x = x0 + ((2 * size) << hshift) < s->ps.sps->width ? size 189 libavcodec/hevcpred_template.c 2 * size : (s->ps.sps->width - x0) >> hshift; size 190 libavcodec/hevcpred_template.c int size_max_y = y0 + ((2 * size) << vshift) < s->ps.sps->height ? size 191 libavcodec/hevcpred_template.c 2 * size : (s->ps.sps->height - y0) >> vshift; size 192 libavcodec/hevcpred_template.c int j = size + (cand_bottom_left? bottom_left_size: 0) -1; size 194 libavcodec/hevcpred_template.c size_max_x = x0 + ((size) << hshift) < s->ps.sps->width ? size 195 libavcodec/hevcpred_template.c size : (s->ps.sps->width - x0) >> hshift; size 198 libavcodec/hevcpred_template.c size_max_y = y0 + (( size) << vshift) < s->ps.sps->height ? size 199 libavcodec/hevcpred_template.c size : (s->ps.sps->height - y0) >> vshift; size 230 libavcodec/hevcpred_template.c EXTEND(left, left[-1], size); size 232 libavcodec/hevcpred_template.c EXTEND(left + size, left[size - 1], size); size 254 libavcodec/hevcpred_template.c EXTEND(left + size, left[size - 1], size); size 256 libavcodec/hevcpred_template.c EXTEND(left, left[-1], 2 * size); size 260 libavcodec/hevcpred_template.c EXTEND(left, left[-1], 2 * size); size 264 libavcodec/hevcpred_template.c EXTEND(top, top[size], size); size 265 libavcodec/hevcpred_template.c left[-1] = top[size]; size 266 libavcodec/hevcpred_template.c EXTEND(left, left[-1], 2 * size); size 272 libavcodec/hevcpred_template.c EXTEND(top, left[-1], 2 * size); size 273 libavcodec/hevcpred_template.c EXTEND(left, left[-1], 2 * size); size 278 libavcodec/hevcpred_template.c EXTEND(left, left[size], size); size 283 libavcodec/hevcpred_template.c EXTEND(top, left[-1], size); size 285 libavcodec/hevcpred_template.c EXTEND(top + size, top[size - 1], size); size 291 libavcodec/hevcpred_template.c if (mode != INTRA_DC && size != 4){ size 313 libavcodec/hevcpred_template.c filtered_left[2 * size - 1] = left[2 * size - 1]; size 314 libavcodec/hevcpred_template.c filtered_top[2 * size - 1] = top[2 * size - 1]; size 315 libavcodec/hevcpred_template.c for (i = 2 * size - 2; i >= 0; i--) size 320 libavcodec/hevcpred_template.c for (i = 2 * size - 2; i >= 0; i--) size 347 libavcodec/hevcpred_template.c #define INTRA_PRED(size) \ size 348 libavcodec/hevcpred_template.c static void FUNC(intra_pred_ ## size)(HEVCContext *s, int x0, int y0, int c_idx) \ size 350 libavcodec/hevcpred_template.c FUNC(intra_pred)(s, x0, y0, size, c_idx); \ size 368 libavcodec/hevcpred_template.c int size = 1 << trafo_size; size 369 libavcodec/hevcpred_template.c for (y = 0; y < size; y++) size 370 libavcodec/hevcpred_template.c for (x = 0; x < size; x++) size 371 libavcodec/hevcpred_template.c POS(x, y) = ((size - 1 - x) * left[y] + (x + 1) * top[size] + size 372 libavcodec/hevcpred_template.c (size - 1 - y) * top[x] + (y + 1) * left[size] + size) >> (trafo_size + 1); size 375 libavcodec/hevcpred_template.c #define PRED_PLANAR(size)\ size 376 libavcodec/hevcpred_template.c static void FUNC(pred_planar_ ## size)(uint8_t *src, const uint8_t *top, \ size 379 libavcodec/hevcpred_template.c FUNC(pred_planar)(src, top, left, stride, size + 2); \ size 394 libavcodec/hevcpred_template.c int size = (1 << log2_size); size 398 libavcodec/hevcpred_template.c int dc = size; size 400 libavcodec/hevcpred_template.c for (i = 0; i < size; i++) size 407 libavcodec/hevcpred_template.c for (i = 0; i < size; i++) size 408 libavcodec/hevcpred_template.c for (j = 0; j < size; j+=4) size 411 libavcodec/hevcpred_template.c if (c_idx == 0 && size < 32) { size 413 libavcodec/hevcpred_template.c for (x = 1; x < size; x++) size 415 libavcodec/hevcpred_template.c for (y = 1; y < size; y++) size 424 libavcodec/hevcpred_template.c int mode, int size) size 442 libavcodec/hevcpred_template.c pixel *ref_tmp = ref_array + size; size 444 libavcodec/hevcpred_template.c int last = (size * angle) >> 5; size 449 libavcodec/hevcpred_template.c for (x = 0; x <= size; x += 4) size 456 libavcodec/hevcpred_template.c for (y = 0; y < size; y++) { size 460 libavcodec/hevcpred_template.c for (x = 0; x < size; x += 4) { size 471 libavcodec/hevcpred_template.c for (x = 0; x < size; x += 4) size 475 libavcodec/hevcpred_template.c if (mode == 26 && c_idx == 0 && size < 32) { size 476 libavcodec/hevcpred_template.c for (y = 0; y < size; y++) size 482 libavcodec/hevcpred_template.c for (x = 0; x <= size; x += 4) size 489 libavcodec/hevcpred_template.c for (x = 0; x < size; x++) { size 493 libavcodec/hevcpred_template.c for (y = 0; y < size; y++) { size 498 libavcodec/hevcpred_template.c for (y = 0; y < size; y++) size 502 libavcodec/hevcpred_template.c if (mode == 10 && c_idx == 0 && size < 32) { size 503 libavcodec/hevcpred_template.c for (x = 0; x < size; x += 4) { size 67 libavcodec/hnm4video.c uint32_t size) size 76 libavcodec/hnm4video.c bytestream2_init(&gb, src, size); size 78 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size) { size 149 libavcodec/hnm4video.c static int decode_interframe_v4(AVCodecContext *avctx, uint8_t *src, uint32_t size) size 157 libavcodec/hnm4video.c bytestream2_init(&gb, src, size); size 159 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size) { size 279 libavcodec/hnm4video.c uint32_t size) size 286 libavcodec/hnm4video.c bytestream2_init(&gb, src, size); size 288 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size) { size 358 libavcodec/hnm4video.c uint32_t size) size 369 libavcodec/hnm4video.c bytestream2_init(&gb, src + 8, size - 8); size 371 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size - 8) { size 407 libavcodec/hnm4video.c if (avpkt->size < 8) { size 415 libavcodec/hnm4video.c hnm_update_palette(avctx, avpkt->data, avpkt->size); size 417 libavcodec/hnm4video.c if (avpkt->size < 12) { size 424 libavcodec/hnm4video.c unpack_intraframe(avctx, avpkt->data + 12, avpkt->size - 12); size 440 libavcodec/hnm4video.c decode_interframe_v4a(avctx, avpkt->data + 8, avpkt->size - 8); size 443 libavcodec/hnm4video.c int ret = decode_interframe_v4(avctx, avpkt->data + 8, avpkt->size - 8); size 459 libavcodec/hnm4video.c return avpkt->size; size 313 libavcodec/hq_hqa.c bytestream2_init(&ctx->gbc, avpkt->data, avpkt->size); size 315 libavcodec/hq_hqa.c av_log(avctx, AV_LOG_ERROR, "Frame is too small (%d).\n", avpkt->size); size 361 libavcodec/hq_hqa.c return avpkt->size; size 415 libavcodec/hqx.c if (avpkt->size < 4 + 4) { size 416 libavcodec/hqx.c av_log(avctx, AV_LOG_ERROR, "Frame is too small %d.\n", avpkt->size); size 423 libavcodec/hqx.c if (info_offset > INT_MAX || info_offset + 8 > avpkt->size) { size 436 libavcodec/hqx.c ctx->data_size = avpkt->size - data_start; size 479 libavcodec/hqx.c (100 - avctx->discard_damaged_percentage) / 100 > 4LL * avpkt->size) size 515 libavcodec/hqx.c return avpkt->size; size 92 libavcodec/htmlsubtitles.c int size; size 232 libavcodec/htmlsubtitles.c if (cur_tag->size) { size 233 libavcodec/htmlsubtitles.c if (!last_tag->size) size 235 libavcodec/htmlsubtitles.c else if (last_tag->size != cur_tag->size) size 236 libavcodec/htmlsubtitles.c av_bprintf(dst, "{\\fs%d}", last_tag->size); size 260 libavcodec/htmlsubtitles.c if (sscanf(param, "%u", &new_tag->size) == 1) size 261 libavcodec/htmlsubtitles.c av_bprintf(dst, "{\\fs%u}", new_tag->size); size 44 libavcodec/huffman.c static void heap_sift(HeapElem *h, int root, int size) size 46 libavcodec/huffman.c while (root * 2 + 1 < size) { size 48 libavcodec/huffman.c if (child < size - 1 && h[child].val > h[child+1].val) size 65 libavcodec/huffman.c int size = 0; size 76 libavcodec/huffman.c map[size++] = i; size 80 libavcodec/huffman.c for (i=0; i < size; i++) { size 84 libavcodec/huffman.c for (i = size / 2 - 1; i >= 0; i--) size 85 libavcodec/huffman.c heap_sift(h, i, size); size 87 libavcodec/huffman.c for (next = size; next < size * 2 - 1; next++) { size 92 libavcodec/huffman.c heap_sift(h, 0, size); size 96 libavcodec/huffman.c heap_sift(h, 0, size); size 99 libavcodec/huffman.c len[2 * size - 2] = 0; size 100 libavcodec/huffman.c for (i = 2 * size - 3; i >= size; i--) size 102 libavcodec/huffman.c for (i = 0; i < size; i++) { size 106 libavcodec/huffman.c if (i==size) break; size 1192 libavcodec/huffyuvdec.c int buf_size = avpkt->size; size 183 libavcodec/huffyuvenc.c int size = 0; size 197 libavcodec/huffyuvenc.c size += store_table(s, s->len[i], buf + size); size 199 libavcodec/huffyuvenc.c return size; size 763 libavcodec/huffyuvenc.c int i, j, size = 0, ret; size 769 libavcodec/huffyuvenc.c size = store_huffman_tables(s, pkt->data); size 770 libavcodec/huffyuvenc.c if (size < 0) size 771 libavcodec/huffyuvenc.c return size; size 778 libavcodec/huffyuvenc.c init_put_bits(&s->pb, pkt->data + size, pkt->size - size); size 1000 libavcodec/huffyuvenc.c size += (put_bits_count(&s->pb) + 31) / 8; size 1003 libavcodec/huffyuvenc.c size /= 4; size 1024 libavcodec/huffyuvenc.c s->bdsp.bswap_buf((uint32_t *) pkt->data, (uint32_t *) pkt->data, size); size 1029 libavcodec/huffyuvenc.c pkt->size = size * 4; size 70 libavcodec/idcinvideo.c int size; size 189 libavcodec/idcinvideo.c if(dat_pos >= s->size) { size 215 libavcodec/idcinvideo.c int buf_size = avpkt->size; size 223 libavcodec/idcinvideo.c s->size = buf_size; size 724 libavcodec/iff.c int size = opcode + 1; size 725 libavcodec/iff.c for (i = 0; i < size; i++) { size 726 libavcodec/iff.c int length = FFMIN(size - i, width - x); size 741 libavcodec/iff.c int size = -opcode + 1; size 743 libavcodec/iff.c for (i = 0; i < size; i++) { size 1530 libavcodec/iff.c int buf_size = avpkt->size; size 1536 libavcodec/iff.c bytestream2_init(gb, avpkt->data, avpkt->size); size 232 libavcodec/iirfilter.c for (i = 0; i < size; i += 4) { \ size 245 libavcodec/iirfilter.c for (i = 0; i < size; i++) { \ size 267 libavcodec/iirfilter.c for (i = 0; i < size; i++) { \ size 280 libavcodec/iirfilter.c struct FFIIRFilterState *s, int size, size 294 libavcodec/iirfilter.c struct FFIIRFilterState *s, int size, size 64 libavcodec/iirfilter.h struct FFIIRFilterState *state, int size, size 129 libavcodec/iirfilter.h int size, const int16_t *src, ptrdiff_t sstep, int16_t *dst, ptrdiff_t dstep); size 143 libavcodec/iirfilter.h struct FFIIRFilterState *state, int size, size 334 libavcodec/ilbcdec.c int size) size 338 libavcodec/ilbcdec.c for (i = 0; i < size; i++) size 1366 libavcodec/ilbcdec.c if ((ret = init_get_bits8(&s->gb, buf, avpkt->size)) < 0) size 1442 libavcodec/ilbcdec.c return avpkt->size; size 1020 libavcodec/imc.c int buf_size = avpkt->size; size 377 libavcodec/imm4.c if (avpkt->size <= 32) size 381 libavcodec/imm4.c FFALIGN(avpkt->size, 4)); size 387 libavcodec/imm4.c (avpkt->size + 3) >> 2); size 389 libavcodec/imm4.c if ((ret = init_get_bits8(gb, s->bitstream, FFALIGN(avpkt->size, 4))) < 0) size 486 libavcodec/imm4.c return avpkt->size; size 94 libavcodec/imm5.c if (avpkt->size > 24 && avpkt->data[8] <= 1 && AV_RL32(avpkt->data + 4) + 24ULL <= avpkt->size) { size 122 libavcodec/imm5.c avpkt->size = new_size + offset; size 132 libavcodec/imm5.c avpkt->size -= 24; size 160 libavcodec/imm5.c return avpkt->size; size 46 libavcodec/imx_dump_header_bsf.c ret = av_new_packet(out, in->size + 20); size 54 libavcodec/imx_dump_header_bsf.c bytestream_put_be24(&out_buf, in->size); size 55 libavcodec/imx_dump_header_bsf.c bytestream_put_buffer(&out_buf, in->data, in->size); size 158 libavcodec/indeo2.c int buf_size = avpkt->size; size 732 libavcodec/indeo3.c #define SPLIT_CELL(size, new_size) (new_size) = ((size) > 2) ? ((((size) + 2) >> 2) << 1) : 1 size 1072 libavcodec/indeo3.c int buf_size = avpkt->size; size 212 libavcodec/internal.h int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); size 251 libavcodec/internal.h int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size, int64_t min_size); size 554 libavcodec/interplayacm.c if (!pkt->size && !s->bitstream_size) { size 559 libavcodec/interplayacm.c buf_size = FFMIN(pkt->size, s->max_framesize - s->bitstream_size); size 1203 libavcodec/interplayvideo.c int buf_size = avpkt->size; size 1328 libavcodec/interplayvideo.c int size; size 1329 libavcodec/interplayvideo.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 1330 libavcodec/interplayvideo.c if (pal && size == AVPALETTE_SIZE) { size 1334 libavcodec/interplayvideo.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 1085 libavcodec/ivi.c int buf_size = avpkt->size; size 1194 libavcodec/ivi.c pkt.size = get_bits_left(&ctx->gb) >> 3; size 774 libavcodec/ivi_dsp.c #define IVI_MC_TEMPLATE(size, suffix, OP) \ size 775 libavcodec/ivi_dsp.c static void ivi_mc_ ## size ##x## size ## suffix(int16_t *buf, \ size 785 libavcodec/ivi_dsp.c for (i = 0; i < size; i++, buf += dpitch, ref_buf += pitch) { \ size 786 libavcodec/ivi_dsp.c for (j = 0; j < size; j++) {\ size 792 libavcodec/ivi_dsp.c for (i = 0; i < size; i++, buf += dpitch, ref_buf += pitch) \ size 793 libavcodec/ivi_dsp.c for (j = 0; j < size; j++) \ size 798 libavcodec/ivi_dsp.c for (i = 0; i < size; i++, buf += dpitch, wptr += pitch, ref_buf += pitch) \ size 799 libavcodec/ivi_dsp.c for (j = 0; j < size; j++) \ size 804 libavcodec/ivi_dsp.c for (i = 0; i < size; i++, buf += dpitch, wptr += pitch, ref_buf += pitch) \ size 805 libavcodec/ivi_dsp.c for (j = 0; j < size; j++) \ size 811 libavcodec/ivi_dsp.c void ff_ivi_mc_ ## size ##x## size ## suffix(int16_t *buf, const int16_t *ref_buf, \ size 814 libavcodec/ivi_dsp.c ivi_mc_ ## size ##x## size ## suffix(buf, pitch, ref_buf, pitch, mc_type); \ size 817 libavcodec/ivi_dsp.c #define IVI_MC_AVG_TEMPLATE(size, suffix, OP) \ size 818 libavcodec/ivi_dsp.c void ff_ivi_mc_avg_ ## size ##x## size ## suffix(int16_t *buf, \ size 824 libavcodec/ivi_dsp.c int16_t tmp[size * size]; \ size 827 libavcodec/ivi_dsp.c ivi_mc_ ## size ##x## size ## _no_delta(tmp, size, ref_buf, pitch, mc_type); \ size 828 libavcodec/ivi_dsp.c ivi_mc_ ## size ##x## size ## _delta(tmp, size, ref_buf2, pitch, mc_type2); \ size 829 libavcodec/ivi_dsp.c for (i = 0; i < size; i++, buf += pitch) { \ size 830 libavcodec/ivi_dsp.c for (j = 0; j < size; j++) {\ size 831 libavcodec/ivi_dsp.c OP(buf[j], tmp[i * size + j] >> 1); \ size 337 libavcodec/j2kenc.c int i, size; size 342 libavcodec/j2kenc.c size = 4 + 3 * (codsty->nreslevels-1); size 344 libavcodec/j2kenc.c size = 5 + 6 * (codsty->nreslevels-1); size 346 libavcodec/j2kenc.c if (s->buf_end - s->buf < size + 2) size 350 libavcodec/j2kenc.c bytestream_put_be16(&s->buf, size); // LQcd size 363 libavcodec/j2kenc.c int size = 4 + strlen(LIBAVCODEC_IDENT); size 368 libavcodec/j2kenc.c if (s->buf_end - s->buf < size + 2) size 372 libavcodec/j2kenc.c bytestream_put_be16(&s->buf, size); size 995 libavcodec/j2kenc.c static void update_size(uint8_t *size, const uint8_t *end) size 997 libavcodec/j2kenc.c AV_WB32(size, end-size); size 1012 libavcodec/j2kenc.c s->buf_end = pkt->data + pkt->size; size 1128 libavcodec/j2kenc.c pkt->size = s->buf - s->buf_start; size 172 libavcodec/jacosubdec.c if (avpkt->size <= 0) size 193 libavcodec/jacosubdec.c return avpkt->size; size 719 libavcodec/jpeg2000dec.c static int get_poc(Jpeg2000DecoderContext *s, int size, Jpeg2000POC *p) size 725 libavcodec/jpeg2000dec.c if (bytestream2_get_bytes_left(&s->g) < 5 || size < 2 + elem_size) { size 735 libavcodec/jpeg2000dec.c tmp.nb_poc = (size - 2) / elem_size; size 2240 libavcodec/jpeg2000dec.c int i, size, colour_count, colour_channels, colour_depth[3]; size 2247 libavcodec/jpeg2000dec.c size = (colour_depth[0] + 7 >> 3) * colour_count + size 2255 libavcodec/jpeg2000dec.c atom2_size < size) { size 2363 libavcodec/jpeg2000dec.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 268 libavcodec/jpeglsenc.c int i, size, ret; size 288 libavcodec/jpeglsenc.c buf2 = av_malloc(pkt->size); size 292 libavcodec/jpeglsenc.c init_put_bits(&pb, pkt->data, pkt->size); size 293 libavcodec/jpeglsenc.c init_put_bits(&pb2, buf2, pkt->size); size 392 libavcodec/jpeglsenc.c size = put_bits_count(&pb2); size 395 libavcodec/jpeglsenc.c init_get_bits(&gb, buf2, size); size 396 libavcodec/jpeglsenc.c size -= 7; size 397 libavcodec/jpeglsenc.c while (get_bits_count(&gb) < size) { size 415 libavcodec/jpeglsenc.c pkt->size = put_bits_count(&pb) >> 3; size 151 libavcodec/jvdec.c const uint8_t *buf_end = buf + avpkt->size; size 154 libavcodec/jvdec.c if (avpkt->size < 6) size 162 libavcodec/jvdec.c if (video_size < 0 || video_size > avpkt->size - 5) { size 224 libavcodec/jvdec.c return avpkt->size; size 51 libavcodec/kgv1dec.c const uint8_t *buf_end = buf + avpkt->size; size 58 libavcodec/kgv1dec.c if (avpkt->size < 2) size 65 libavcodec/kgv1dec.c if (avpkt->size < 2 + w*h / 513) size 163 libavcodec/kgv1dec.c return avpkt->size; size 274 libavcodec/kmvc.c bytestream2_init(&ctx->g, avpkt->data, avpkt->size); size 365 libavcodec/kmvc.c return avpkt->size; size 540 libavcodec/lagarith.c unsigned int buf_size = avpkt->size; size 163 libavcodec/lcldec.c int buf_size = avpkt->size; size 87 libavcodec/lclenc.c c->zstream.avail_out = pkt->size; size 104 libavcodec/lclenc.c pkt->size = c->zstream.total_out; size 166 libavcodec/libaomdec.c if (aom_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL) != size 207 libavcodec/libaomdec.c return avpkt->size; size 833 libavcodec/libaomenc.c memcpy(pkt->data, cx_frame->buf, pkt->size); size 873 libavcodec/libaomenc.c return pkt->size; size 889 libavcodec/libaomenc.c int size = 0; size 894 libavcodec/libaomenc.c size = storeframe(avctx, cx_frame, pkt_out); size 895 libavcodec/libaomenc.c if (size < 0) size 896 libavcodec/libaomenc.c return size; size 906 libavcodec/libaomenc.c if (!size) { size 913 libavcodec/libaomenc.c size = storeframe(avctx, &cx_frame, pkt_out); size 914 libavcodec/libaomenc.c if (size < 0) size 915 libavcodec/libaomenc.c return size; size 973 libavcodec/libaomenc.c return size; size 296 libavcodec/libaribb24.c if (pkt->size <= 0) size 297 libavcodec/libaribb24.c return pkt->size; size 299 libavcodec/libaribb24.c arib_parse_pes(b24->parser, pkt->data, pkt->size); size 307 libavcodec/libaribb24.c return pkt->size; size 356 libavcodec/libaribb24.c return ret < 0 ? ret : pkt->size; size 117 libavcodec/libcelt_dec.c err = celt_decode(celt->dec, pkt->data, pkt->size, pcm, c->frame_size); size 127 libavcodec/libcelt_dec.c return pkt->size; size 145 libavcodec/libcodec2.c nframes = pkt->size / avctx->block_align; size 192 libavcodec/libdav1d.c if (pkt.size) { size 193 libavcodec/libdav1d.c res = dav1d_data_wrap(data, pkt.data, pkt.size, libdav1d_data_free, pkt.buf); size 318 libavcodec/libdav1d.c frame->pkt_size = p->m.size; size 181 libavcodec/libdavs2.c int buf_size = avpkt->size; size 355 libavcodec/libfdk-aacdec.c UINT valid = avpkt->size; size 357 libavcodec/libfdk-aacdec.c err = aacDecoder_Fill(s->handle, &avpkt->data, &avpkt->size, &valid); size 365 libavcodec/libfdk-aacdec.c ret = avpkt->size - valid; size 392 libavcodec/libfdk-aacdec.c ret = avpkt->size - valid; size 399 libavcodec/libfdk-aacenc.c out_buffer_size = avpkt->size; size 423 libavcodec/libfdk-aacenc.c avpkt->size = out_args.numOutBytes; size 90 libavcodec/libgsmdec.c int buf_size = avpkt->size; size 84 libavcodec/libilbc.c int buf_size = avpkt->size; size 174 libavcodec/libilbc.c avpkt->size = s->encoder.no_of_bytes; size 299 libavcodec/libmp3lame.c avpkt->size = len; size 100 libavcodec/libopencore-amr.c int buf_size = avpkt->size; size 282 libavcodec/libopencore-amr.c avpkt->size = written; size 334 libavcodec/libopencore-amr.c int buf_size = avpkt->size; size 117 libavcodec/libopenh264dec.c state = (*s->decoder)->DecodeFrameNoDelay(s->decoder, avpkt->data, avpkt->size, ptrs, &info); size 119 libavcodec/libopenh264dec.c state = (*s->decoder)->DecodeFrame2(s->decoder, avpkt->data, avpkt->size, ptrs, &info); size 128 libavcodec/libopenh264dec.c return avpkt->size; size 160 libavcodec/libopenh264dec.c return avpkt->size; size 340 libavcodec/libopenh264enc.c int i, size = 0; size 343 libavcodec/libopenh264enc.c size += fbi.sLayerInfo[0].pNalLengthInByte[i]; size 344 libavcodec/libopenh264enc.c avctx->extradata = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); size 347 libavcodec/libopenh264enc.c avctx->extradata_size = size; size 348 libavcodec/libopenh264enc.c memcpy(avctx->extradata, fbi.sLayerInfo[0].pBsBuf, size); size 368 libavcodec/libopenh264enc.c int size = 0, layer, first_layer = 0; size 404 libavcodec/libopenh264enc.c size += layer_size[layer]; size 408 libavcodec/libopenh264enc.c if ((ret = ff_alloc_packet2(avctx, avpkt, size, size))) { size 412 libavcodec/libopenh264enc.c size = 0; size 414 libavcodec/libopenh264enc.c memcpy(avpkt->data + size, fbi.sLayerInfo[layer].pBsBuf, layer_size[layer]); size 415 libavcodec/libopenh264enc.c size += layer_size[layer]; size 101 libavcodec/libopenjpegdec.c int size; size 110 libavcodec/libopenjpegdec.c if (reader->pos == reader->size) { size 113 libavcodec/libopenjpegdec.c remaining = reader->size - reader->pos; size 135 libavcodec/libopenjpegdec.c if (reader->pos == reader->size) { size 138 libavcodec/libopenjpegdec.c remaining = reader->size - reader->pos; size 150 libavcodec/libopenjpegdec.c if (nb_bytes < 0 || nb_bytes > reader->size) { size 325 libavcodec/libopenjpegdec.c int buf_size = avpkt->size; size 335 libavcodec/libopenjpegdec.c BufferReader reader = {0, avpkt->size, avpkt->data}; size 387 libavcodec/libopenjpegdec.c opj_stream_set_user_data_length(stream, avpkt->size); size 73 libavcodec/libopenjpegenc.c int remaining = packet->size - writer->pos; size 76 libavcodec/libopenjpegenc.c int max_growth = INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - packet->size; size 101 libavcodec/libopenjpegenc.c int remaining = packet->size - writer->pos; size 104 libavcodec/libopenjpegenc.c int max_growth = INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - packet->size; size 124 libavcodec/libopenjpegenc.c if (nb_bytes > packet->size) { size 126 libavcodec/libopenjpegenc.c av_grow_packet(packet, (int)nb_bytes - packet->size)) { size 165 libavcodec/libopusdec.c nb_samples = opus_multistream_decode(opus->dec, pkt->data, pkt->size, size 169 libavcodec/libopusdec.c nb_samples = opus_multistream_decode_float(opus->dec, pkt->data, pkt->size, size 197 libavcodec/libopusdec.c return pkt->size; size 485 libavcodec/libopusenc.c avpkt->data, avpkt->size); size 489 libavcodec/libopusenc.c avpkt->data, avpkt->size); size 49 libavcodec/librsvgdec.c handle = rsvg_handle_new_from_data(pkt->data, pkt->size, &error); size 114 libavcodec/libshine.c avpkt->size = len; size 129 libavcodec/libspeexdec.c int buf_size = avpkt->size; size 157 libavcodec/libspeexdec.c consumed = avpkt->size; size 299 libavcodec/libspeexenc.c ret = speex_bits_write(&s->bits, avpkt->data, avpkt->size); size 306 libavcodec/libspeexenc.c avpkt->size = ret; size 123 libavcodec/libtwolame.c avpkt->size); size 130 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 136 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 143 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 151 libavcodec/libtwolame.c ret = twolame_encode_flush(s->glopts, avpkt->data, avpkt->size); size 119 libavcodec/libvo-amrwbenc.c int size, ret; size 128 libavcodec/libvo-amrwbenc.c size = E_IF_encode(s->state, s->mode, samples, avpkt->data, s->allow_dtx); size 129 libavcodec/libvo-amrwbenc.c if (size <= 0 || size > MAX_PACKET_SIZE) { size 137 libavcodec/libvo-amrwbenc.c avpkt->size = size; size 160 libavcodec/libvorbisdec.c if(!avpkt->size){ size 172 libavcodec/libvorbisdec.c op->bytes = avpkt->size; size 195 libavcodec/libvorbisdec.c return avpkt->size; size 347 libavcodec/libvorbisenc.c duration = av_vorbis_parse_frame(s->vp, avpkt->data, avpkt->size); size 69 libavcodec/libvpxdec.c fb->size = ctx->pool_size; size 225 libavcodec/libvpxdec.c ret = decode_frame(avctx, &ctx->decoder, avpkt->data, avpkt->size); size 334 libavcodec/libvpxdec.c return avpkt->size; size 1101 libavcodec/libvpxenc.c memcpy(pkt->data, cx_frame->buf, pkt->size); size 1160 libavcodec/libvpxenc.c return pkt->size; size 1178 libavcodec/libvpxenc.c int size = 0; size 1183 libavcodec/libvpxenc.c size = storeframe(avctx, cx_frame, pkt_out); size 1184 libavcodec/libvpxenc.c if (size < 0) size 1185 libavcodec/libvpxenc.c return size; size 1197 libavcodec/libvpxenc.c if (!size) { size 1204 libavcodec/libvpxenc.c size = storeframe(avctx, &cx_frame, pkt_out); size 1205 libavcodec/libvpxenc.c if (size < 0) size 1206 libavcodec/libvpxenc.c return size; size 1269 libavcodec/libvpxenc.c return size; size 1304 libavcodec/libvpxenc.c if (!self_size || sd->size % self_size) { size 1308 libavcodec/libvpxenc.c nb_rois = sd->size / self_size; size 51 libavcodec/libwavpackenc.c s->user_size = pkt->size; size 88 libavcodec/libwavpackenc.c int ret, offset = s->pkt->size; size 91 libavcodec/libwavpackenc.c if (s->user_size - count < s->pkt->size) { size 95 libavcodec/libwavpackenc.c s->pkt->size += count; size 60 libavcodec/libwebpenc.c ret = ff_alloc_packet2(avctx, pkt, mw.size, mw.size); size 63 libavcodec/libwebpenc.c memcpy(pkt->data, mw.mem, mw.size); size 70 libavcodec/libwebpenc_animencoder.c ret = ff_alloc_packet2(avctx, pkt, assembled_data.size, assembled_data.size); size 73 libavcodec/libwebpenc_animencoder.c memcpy(pkt->data, assembled_data.bytes, assembled_data.size); size 138 libavcodec/libx264.c int i, size = x4->sei_size, ret; size 144 libavcodec/libx264.c size += nals[i].i_payload; size 146 libavcodec/libx264.c if ((ret = ff_alloc_packet2(ctx, pkt, size, 0)) < 0) size 153 libavcodec/libx264.c if (x4->sei_size > size) { size 392 libavcodec/libx264.c if (!roi_size || sd->size % roi_size != 0) { size 396 libavcodec/libx264.c nb_rois = sd->size / roi_size; size 432 libavcodec/libx265.c if (!roi_size || sd->size % roi_size != 0) { size 436 libavcodec/libx265.c nb_rois = sd->size / roi_size; size 89 libavcodec/libxavs.c int i, s, ret, size = x4->sei_size + AV_INPUT_BUFFER_MIN_SIZE; size 95 libavcodec/libxavs.c size += nals[i].i_payload; size 97 libavcodec/libxavs.c if ((ret = ff_alloc_packet2(ctx, pkt, size, 0)) < 0) size 109 libavcodec/libxavs.c s = xavs_nal_encode(p, &size, 1, nals + i); size 114 libavcodec/libxavs.c pkt->size = p - pkt->data; size 402 libavcodec/libxavs.c int nnal, s, i, size; size 417 libavcodec/libxavs.c size = xavs_nal_encode(p, &s, 1, nal + i); size 418 libavcodec/libxavs.c if (size < 0) size 420 libavcodec/libxavs.c p += size; size 227 libavcodec/libxavs2.c pkt->size = cae->packet.len; size 310 libavcodec/libxvid.c pkt->size = frame_len - vo_len; size 689 libavcodec/libxvid.c int size, got_packet, ret; size 704 libavcodec/libxvid.c size = ((avctx->width + 1) & ~1) * ((avctx->height + 1) & ~1); size 705 libavcodec/libxvid.c picture->data[0] = av_malloc(size + size / 2); size 710 libavcodec/libxvid.c picture->data[1] = picture->data[0] + size; size 711 libavcodec/libxvid.c picture->data[2] = picture->data[1] + size / 4; size 712 libavcodec/libxvid.c memset(picture->data[0], 0, size); size 713 libavcodec/libxvid.c memset(picture->data[1], 128, size / 2); size 755 libavcodec/libxvid.c xvid_enc_frame.length = pkt->size; size 861 libavcodec/libxvid.c pkt->size = xerr; size 242 libavcodec/libzvbi-teletextdec.c (ch).size > VBI_DOUBLE_SIZE || (ch).opacity == VBI_TRANSPARENT_SPACE) size 583 libavcodec/libzvbi-teletextdec.c static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size) size 586 libavcodec/libzvbi-teletextdec.c while (size >= 2 && lines < MAX_SLICES) { size 589 libavcodec/libzvbi-teletextdec.c if (data_unit_length + 2 > size) size 631 libavcodec/libzvbi-teletextdec.c size -= data_unit_length + 2; size 634 libavcodec/libzvbi-teletextdec.c if (size) size 635 libavcodec/libzvbi-teletextdec.c av_log(ctx, AV_LOG_WARNING, "%d bytes remained after slicing data\n", size); size 663 libavcodec/libzvbi-teletextdec.c if (pkt->size) { size 665 libavcodec/libzvbi-teletextdec.c const int full_pes_size = pkt->size + 45; /* PES header is 45 bytes */ size 671 libavcodec/libzvbi-teletextdec.c ctx->handler_ret = pkt->size; size 674 libavcodec/libzvbi-teletextdec.c if ((lines = slice_to_vbi_lines(ctx, pkt->data + 1, pkt->size - 1)) < 0) size 677 libavcodec/libzvbi-teletextdec.c ctx, pkt->size, lines, (double)pkt->pts/90000.0); size 250 libavcodec/ljpegenc.c init_put_bits(&pb, pkt->data, pkt->size); size 272 libavcodec/ljpegenc.c pkt->size = put_bits_ptr(&pb) - pb.buf; size 204 libavcodec/loco.c int buf_size = avpkt->size; size 276 libavcodec/loco.c return avpkt->size - buf_size; size 51 libavcodec/lsp.c void ff_set_min_dist_lsf(float *lsf, double min_spacing, int size) size 55 libavcodec/lsp.c for (i = 0; i < size; i++) size 53 libavcodec/lsp.h void ff_set_min_dist_lsf(float *lsf, double min_spacing, int size); size 40 libavcodec/lzf.c int ff_lzf_uncompress(GetByteContext *gb, uint8_t **buf, int64_t *size) size 51 libavcodec/lzf.c if (s > *size - len) { size 52 libavcodec/lzf.c *size += s + *size /2; size 53 libavcodec/lzf.c ret = av_reallocp(buf, *size); size 74 libavcodec/lzf.c if (l > *size - len) { size 75 libavcodec/lzf.c *size += l + *size / 2; size 76 libavcodec/lzf.c ret = av_reallocp(buf, *size); size 89 libavcodec/lzf.c *size = len; size 27 libavcodec/lzf.h int ff_lzf_uncompress(GetByteContext *gb, uint8_t **buf, int64_t *size); size 66 libavcodec/m101.c if (stride < min_stride || avpkt->size < stride * (uint64_t)avctx->height) { size 68 libavcodec/m101.c stride, avpkt->size); size 105 libavcodec/m101.c return avpkt->size; size 241 libavcodec/mace.c int buf_size = avpkt->size; size 38 libavcodec/magicyuv.c uint32_t size; size 233 libavcodec/magicyuv.c s->slices[i][j].size); size 363 libavcodec/magicyuv.c s->slices[i][j].size); size 528 libavcodec/magicyuv.c bytestream2_init(&gbyte, avpkt->data, avpkt->size); size 533 libavcodec/magicyuv.c if (header_size < 32 || header_size >= avpkt->size) { size 679 libavcodec/magicyuv.c if (offset >= avpkt->size - header_size) size 689 libavcodec/magicyuv.c if (next_offset <= offset || next_offset >= avpkt->size - header_size) size 692 libavcodec/magicyuv.c s->slices[i][j].size = next_offset - offset; size 697 libavcodec/magicyuv.c s->slices[i][j].size = avpkt->size - s->slices[i][j].start; size 749 libavcodec/magicyuv.c return avpkt->size; size 304 libavcodec/magicyuvenc.c int size, int max_length) size 317 libavcodec/magicyuvenc.c AV_QSORT(prob_table, size, PTable, compare_by_prob); size 329 libavcodec/magicyuvenc.c while (i < size || j + 1 < from->nitems) { size 332 libavcodec/magicyuvenc.c if (i < size && size 353 libavcodec/magicyuvenc.c min = (size - 1 < from->nitems) ? size - 1 : from->nitems; size 358 libavcodec/magicyuvenc.c for (i = 0; i < size; i++) { size 436 libavcodec/magicyuvenc.c bytestream2_init_writer(&pb, pkt->data, pkt->size); size 538 libavcodec/magicyuvenc.c pkt->size = bytestream2_tell_p(&pb); size 175 libavcodec/mdec.c int buf_size = avpkt->size; size 904 libavcodec/me_cmp.c #define VSAD_INTRA(size) \ size 905 libavcodec/me_cmp.c static int vsad_intra ## size ## _c(MpegEncContext *c, \ size 912 libavcodec/me_cmp.c for (x = 0; x < size; x += 4) { \ size 926 libavcodec/me_cmp.c #define VSAD(size) \ size 927 libavcodec/me_cmp.c static int vsad ## size ## _c(MpegEncContext *c, \ size 934 libavcodec/me_cmp.c for (x = 0; x < size; x++) \ size 946 libavcodec/me_cmp.c #define VSSE_INTRA(size) \ size 947 libavcodec/me_cmp.c static int vsse_intra ## size ## _c(MpegEncContext *c, \ size 954 libavcodec/me_cmp.c for (x = 0; x < size; x += 4) { \ size 968 libavcodec/me_cmp.c #define VSSE(size) \ size 969 libavcodec/me_cmp.c static int vsse ## size ## _c(MpegEncContext *c, uint8_t *s1, uint8_t *s2, \ size 975 libavcodec/me_cmp.c for (x = 0; x < size; x++) \ size 79 libavcodec/mediacodec_sw_buffer.c size_t size, size 134 libavcodec/mediacodec_sw_buffer.c size_t size, size 184 libavcodec/mediacodec_sw_buffer.c size_t size, size 275 libavcodec/mediacodec_sw_buffer.c size_t size, size 37 libavcodec/mediacodec_sw_buffer.h size_t size, size 44 libavcodec/mediacodec_sw_buffer.h size_t size, size 51 libavcodec/mediacodec_sw_buffer.h size_t size, size 58 libavcodec/mediacodec_sw_buffer.h size_t size, size 856 libavcodec/mediacodec_wrapper.c int ff_AMediaFormat_getBuffer(FFAMediaFormat* format, const char *name, void** data, size_t *size) size 888 libavcodec/mediacodec_wrapper.c *size = (*env)->GetDirectBufferCapacity(env, result); size 890 libavcodec/mediacodec_wrapper.c if (*data && *size) { size 892 libavcodec/mediacodec_wrapper.c *data = av_malloc(*size); size 898 libavcodec/mediacodec_wrapper.c memcpy(*data, src, *size); size 1074 libavcodec/mediacodec_wrapper.c void ff_AMediaFormat_setBuffer(FFAMediaFormat* format, const char* name, void* data, size_t size) size 1090 libavcodec/mediacodec_wrapper.c if (!data || !size) { size 1094 libavcodec/mediacodec_wrapper.c buffer_data = av_malloc(size); size 1099 libavcodec/mediacodec_wrapper.c memcpy(buffer_data, data, size); size 1101 libavcodec/mediacodec_wrapper.c buffer = (*env)->NewDirectByteBuffer(env, buffer_data, size); size 1467 libavcodec/mediacodec_wrapper.c int ff_AMediaCodec_queueInputBuffer(FFAMediaCodec* codec, size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags) size 1474 libavcodec/mediacodec_wrapper.c (*env)->CallVoidMethod(env, codec->object, codec->jfields.queue_input_buffer_id, (jint)idx, (jint)offset, (jint)size, time, flags); size 1511 libavcodec/mediacodec_wrapper.c info->size = (*env)->GetIntField(env, codec->buffer_info, codec->jfields.size_id); size 72 libavcodec/mediacodec_wrapper.h int ff_AMediaFormat_getBuffer(FFAMediaFormat* format, const char *name, void** data, size_t *size); size 79 libavcodec/mediacodec_wrapper.h void ff_AMediaFormat_setBuffer(FFAMediaFormat* format, const char* name, void* data, size_t size); size 87 libavcodec/mediacodec_wrapper.h int32_t size; size 109 libavcodec/mediacodec_wrapper.h int ff_AMediaCodec_queueInputBuffer(FFAMediaCodec* codec, size_t idx, off_t offset, size_t size, uint64_t time, uint32_t flags); size 438 libavcodec/mediacodecdec.c if (s->buffered_pkt.size > 0) { size 441 libavcodec/mediacodecdec.c s->buffered_pkt.size -= ret; size 443 libavcodec/mediacodecdec.c if (s->buffered_pkt.size <= 0) { size 448 libavcodec/mediacodecdec.c ret, s->buffered_pkt.size+ret); size 454 libavcodec/mediacodecdec.c if (s->amlogic_mpeg2_api23_workaround && s->buffered_pkt.size <= 0) { size 358 libavcodec/mediacodecdec_common.c size_t size, size 406 libavcodec/mediacodecdec_common.c ff_mediacodec_sw_buffer_copy_yuv420_planar(avctx, s, data, size, info, frame); size 411 libavcodec/mediacodecdec_common.c ff_mediacodec_sw_buffer_copy_yuv420_semi_planar(avctx, s, data, size, info, frame); size 415 libavcodec/mediacodecdec_common.c ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar(avctx, s, data, size, info, frame); size 418 libavcodec/mediacodecdec_common.c ff_mediacodec_sw_buffer_copy_yuv420_packed_semi_planar_64x32Tile2m8ka(avctx, s, data, size, info, frame); size 672 libavcodec/mediacodecdec_common.c size_t size; size 684 libavcodec/mediacodecdec_common.c if (pkt->size == 0) { size 692 libavcodec/mediacodecdec_common.c while (offset < pkt->size || (need_draining && !s->draining)) { size 708 libavcodec/mediacodecdec_common.c data = ff_AMediaCodec_getInputBuffer(codec, index, &size); size 741 libavcodec/mediacodecdec_common.c size = FFMIN(pkt->size - offset, size); size 742 libavcodec/mediacodecdec_common.c memcpy(data, pkt->data + offset, size); size 743 libavcodec/mediacodecdec_common.c offset += size; size 745 libavcodec/mediacodecdec_common.c status = ff_AMediaCodec_queueInputBuffer(codec, index, 0, size, pts, 0); size 752 libavcodec/mediacodecdec_common.c "Queued input buffer %zd size=%zd ts=%"PRIi64"\n", index, size, pts); size 766 libavcodec/mediacodecdec_common.c size_t size; size 791 libavcodec/mediacodecdec_common.c " flags=%" PRIu32 "\n", index, info.offset, info.size, size 798 libavcodec/mediacodecdec_common.c if (info.size) { size 805 libavcodec/mediacodecdec_common.c data = ff_AMediaCodec_getOutputBuffer(codec, index, &size); size 811 libavcodec/mediacodecdec_common.c if ((ret = mediacodec_wrap_sw_buffer(avctx, s, data, size, index, &info, frame)) < 0) { size 72 libavcodec/metasound.c float ratio = (float)mtab->size / isampf; size 102 libavcodec/metasound.c width = (int)(some_mult / (mtab->size / period) * mtab->ppc_shape_len); size 372 libavcodec/metasound.c tctx->frame_size = avctx->bit_rate * tctx->mtab->size size 83 libavcodec/mf_utils.c char *ff_hr_str_buf(char *buf, size_t size, HRESULT hr) size 102 libavcodec/mf_utils.c snprintf(buf, size, "%x", (unsigned)hr); size 109 libavcodec/mf_utils.c IMFSample *ff_create_memory_sample(void *fill_data, size_t size, size_t align) size 121 libavcodec/mf_utils.c hr = MFCreateAlignedMemoryBuffer(size, align - 1, &buffer); size 134 libavcodec/mf_utils.c memcpy(tmp, fill_data, size); size 136 libavcodec/mf_utils.c IMFMediaBuffer_SetCurrentLength(buffer, size); size 144 libavcodec/mf_utils.h char *ff_hr_str_buf(char *buf, size_t size, HRESULT hr); size 153 libavcodec/mf_utils.h IMFSample *ff_create_memory_sample(void *fill_data, size_t size, size_t align); size 308 libavcodec/mfenc.c int size; size 310 libavcodec/mfenc.c size = av_image_get_buffer_size(avctx->pix_fmt, avctx->width, avctx->height, 1); size 311 libavcodec/mfenc.c if (size < 0) size 314 libavcodec/mfenc.c sample = ff_create_memory_sample(NULL, size, c->in_info.cbAlignment); size 331 libavcodec/mfenc.c ret = av_image_copy_to_buffer((uint8_t *)data, size, (void *)frame->data, frame->linesize, size 333 libavcodec/mfenc.c IMFMediaBuffer_SetCurrentLength(buffer, size); size 282 libavcodec/microdvddec.c char *end = avpkt->data + avpkt->size; size 286 libavcodec/microdvddec.c if (avpkt->size <= 0) size 287 libavcodec/microdvddec.c return avpkt->size; size 319 libavcodec/microdvddec.c return avpkt->size; size 154 libavcodec/midivid.c static ptrdiff_t lzss_uncompress(MidiVidContext *s, GetByteContext *gb, uint8_t *dst, unsigned int size) size 157 libavcodec/midivid.c uint8_t *dst_end = dst + size; size 198 libavcodec/midivid.c if (avpkt->size <= 13) size 201 libavcodec/midivid.c bytestream2_init(gb, avpkt->data, avpkt->size); size 211 libavcodec/midivid.c av_fast_padded_malloc(&s->uncompressed, &s->uncompressed_size, 16LL * (avpkt->size - 12)); size 233 libavcodec/midivid.c return avpkt->size; size 357 libavcodec/mimic.c int buf_size = avpkt->size; size 140 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 154 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 156 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 236 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 250 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 252 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 351 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 365 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 367 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 454 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 468 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 470 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 572 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 586 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 588 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 689 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 703 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 707 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 802 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 934 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 942 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 949 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 962 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 984 libavcodec/mips/aaccoder_mips.c s, pb, in, out, scaled, size, scale_idx, cb, \ size 987 libavcodec/mips/aaccoder_mips.c s, pb, in, out, scaled, size, scale_idx, cb, \ size 991 libavcodec/mips/aaccoder_mips.c const float *in, float *out, int size, int scale_idx, size 994 libavcodec/mips/aaccoder_mips.c quantize_and_encode_band_cost(s, pb, in, out, NULL, size, scale_idx, cb, lambda, size 1003 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1012 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1022 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1033 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1094 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1105 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1152 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1163 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1226 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1237 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1284 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1295 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1342 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1353 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1444 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1466 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 1469 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 1473 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1477 libavcodec/mips/aaccoder_mips.c return get_band_numbits(s, NULL, in, scaled, size, scale_idx, cb, lambda, uplim, bits); size 1486 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1493 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1508 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1518 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1533 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1637 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1652 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1745 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1760 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1869 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1884 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 2008 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2023 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 2147 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2163 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 2298 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2320 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 2323 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 2327 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2331 libavcodec/mips/aaccoder_mips.c return get_band_cost(s, NULL, in, scaled, size, scale_idx, cb, lambda, uplim, bits, energy); size 337 libavcodec/mips/aacsbr_mips.c int size = m_max; size 357 libavcodec/mips/aacsbr_mips.c for (j=0; j<(size>>2); j++) { size 389 libavcodec/mips/aacsbr_mips.c for (j=0; j<(size&3); j++) { size 1335 libavcodec/mips/h264qpel_mmi.c const uint8_t *src, ptrdiff_t tmpStride, ptrdiff_t srcStride, int size) size 1337 libavcodec/mips/h264qpel_mmi.c int w = (size + 8) >> 2; size 1568 libavcodec/mips/h264qpel_mmi.c : [tmp]"r"(tmp), [size]"r"(size), size 1575 libavcodec/mips/h264qpel_mmi.c src += 4 - (size + 5) * srcStride; size 1580 libavcodec/mips/h264qpel_mmi.c int16_t *tmp, ptrdiff_t dstStride, ptrdiff_t tmpStride, int size) size 1582 libavcodec/mips/h264qpel_mmi.c int w = size >> 4; size 1588 libavcodec/mips/h264qpel_mmi.c int h = size; size 1645 libavcodec/mips/h264qpel_mmi.c tmp += 8 - size * 24; size 1646 libavcodec/mips/h264qpel_mmi.c dst += 8 - size * dstStride; size 1652 libavcodec/mips/h264qpel_mmi.c ptrdiff_t srcStride, int size) size 1654 libavcodec/mips/h264qpel_mmi.c put_h264_qpel8or16_hv1_lowpass_mmi(tmp, src, tmpStride, srcStride, size); size 1655 libavcodec/mips/h264qpel_mmi.c put_h264_qpel8or16_hv2_lowpass_mmi(dst, tmp, dstStride, tmpStride, size); size 1899 libavcodec/mips/h264qpel_mmi.c int16_t *tmp, ptrdiff_t dstStride, ptrdiff_t tmpStride, int size) size 1901 libavcodec/mips/h264qpel_mmi.c int w = size >> 4; size 1907 libavcodec/mips/h264qpel_mmi.c int h = size; size 1966 libavcodec/mips/h264qpel_mmi.c tmp += 8 - size * 24; size 1967 libavcodec/mips/h264qpel_mmi.c dst += 8 - size * dstStride; size 1973 libavcodec/mips/h264qpel_mmi.c ptrdiff_t srcStride, int size) size 1975 libavcodec/mips/h264qpel_mmi.c put_h264_qpel8or16_hv1_lowpass_mmi(tmp, src, tmpStride, srcStride, size); size 1976 libavcodec/mips/h264qpel_mmi.c avg_h264_qpel8or16_hv2_lowpass_mmi(dst, tmp, dstStride, tmpStride, size); size 72 libavcodec/mips/iirfilter_mips.c struct FFIIRFilterState *s, int size, size 79 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i++) { size 93 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i += 4) { size 182 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i++) { size 59 libavcodec/mjpeg2jpeg_bsf.c static uint8_t *append(uint8_t *buf, const uint8_t *src, int size) size 61 libavcodec/mjpeg2jpeg_bsf.c memcpy(buf, src, size); size 62 libavcodec/mjpeg2jpeg_bsf.c return buf + size; size 91 libavcodec/mjpeg2jpeg_bsf.c if (in->size < 12) { size 106 libavcodec/mjpeg2jpeg_bsf.c if (in->size < input_skip) { size 111 libavcodec/mjpeg2jpeg_bsf.c output_size = in->size - input_skip + size 121 libavcodec/mjpeg2jpeg_bsf.c output = append(output, in->data + input_skip, in->size - input_skip); size 33 libavcodec/mjpeg_parser.c int size; size 58 libavcodec/mjpeg_parser.c m->size= (state&0xFFFF)-1; size 61 libavcodec/mjpeg_parser.c if(m->size>0){ size 62 libavcodec/mjpeg_parser.c int size= FFMIN(buf_size-i, m->size); size 63 libavcodec/mjpeg_parser.c i+=size; size 64 libavcodec/mjpeg_parser.c m->size-=size; size 84 libavcodec/mjpeg_parser.c m->size= (state&0xFFFF)-1; size 85 libavcodec/mjpeg_parser.c if (m->size >= 0xF000) size 86 libavcodec/mjpeg_parser.c m->size = 0; size 89 libavcodec/mjpeg_parser.c if(m->size>0){ size 90 libavcodec/mjpeg_parser.c int size= FFMIN(buf_size-i, m->size); size 91 libavcodec/mjpeg_parser.c i+=size; size 92 libavcodec/mjpeg_parser.c m->size-=size; size 45 libavcodec/mjpega_dump_header_bsf.c ret = av_new_packet(out, in->size + 44); size 61 libavcodec/mjpega_dump_header_bsf.c bytestream_put_be32(&out_buf, in->size + 44); /* field size */ size 62 libavcodec/mjpega_dump_header_bsf.c bytestream_put_be32(&out_buf, in->size + 44); /* pad field size */ size 65 libavcodec/mjpega_dump_header_bsf.c for (i = 0; i < in->size - 1; i++) { size 77 libavcodec/mjpega_dump_header_bsf.c bytestream_put_buffer(&out_buf, in->data + 2, in->size - 2); /* skip already written SOI */ size 79 libavcodec/mjpega_dump_header_bsf.c out->size = out_buf - out->data; size 83 libavcodec/mjpega_dump_header_bsf.c if (i + 8 < in->size && AV_RL32(in->data + i + 8) == AV_RL32("mjpg")) { size 34 libavcodec/mjpegbdec.c static uint32_t read_offs(AVCodecContext *avctx, GetBitContext *gb, uint32_t size, const char *err_msg){ size 36 libavcodec/mjpegbdec.c if(offs >= size){ size 37 libavcodec/mjpegbdec.c av_log(avctx, AV_LOG_WARNING, err_msg, offs, size); size 48 libavcodec/mjpegbdec.c int buf_size = avpkt->size; size 751 libavcodec/mjpegdec.c int size = bw * bh * s->h_count[i] * s->v_count[i]; size 754 libavcodec/mjpegdec.c s->blocks[i] = av_mallocz_array(size, sizeof(**s->blocks)); size 755 libavcodec/mjpegdec.c s->last_nnz[i] = av_mallocz_array(size, sizeof(**s->last_nnz)); size 1401 libavcodec/mjpegdec.c int size = 8 >> s->avctx->lowres; size 1403 libavcodec/mjpegdec.c for (block_y=0; block_y<size; block_y++) size 1404 libavcodec/mjpegdec.c for (block_x=0; block_x<size; block_x++) size 1407 libavcodec/mjpegdec.c for (block_y=0; block_y<size; block_y++) size 1408 libavcodec/mjpegdec.c for (block_x=0; block_x<size; block_x++) size 2332 libavcodec/mjpegdec.c int buf_size = avpkt->size; size 92 libavcodec/mjpegenc_common.c int i, j, size; size 137 libavcodec/mjpegenc_common.c size = 2; size 142 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 0, s->mjpeg_ctx->bits_dc_luminance, size 144 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 1, s->mjpeg_ctx->bits_dc_chrominance, size 147 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 0, s->mjpeg_ctx->bits_ac_luminance, size 149 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 1, s->mjpeg_ctx->bits_ac_chrominance, size 152 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 0, avpriv_mjpeg_bits_dc_luminance, size 154 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 1, avpriv_mjpeg_bits_dc_chrominance, size 157 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 0, avpriv_mjpeg_bits_ac_luminance, size 159 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 1, avpriv_mjpeg_bits_ac_chrominance, size 162 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 167 libavcodec/mjpegenc_common.c int size; size 203 libavcodec/mjpegenc_common.c size = strlen(LIBAVCODEC_IDENT)+3; size 204 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 216 libavcodec/mjpegenc_common.c size = strlen("CS=ITU601")+3; size 217 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 412 libavcodec/mjpegenc_common.c int size; size 422 libavcodec/mjpegenc_common.c size = put_bits_count(pb) - start * 8; size 424 libavcodec/mjpegenc_common.c av_assert1((size&7) == 0); size 425 libavcodec/mjpegenc_common.c size >>= 3; size 428 libavcodec/mjpegenc_common.c for(i=0; i<size && i<align; i++){ size 431 libavcodec/mjpegenc_common.c for(; i<size-15; i+=16){ size 448 libavcodec/mjpegenc_common.c for(; i<size; i++){ size 457 libavcodec/mjpegenc_common.c for(i=size-1; ff_count; i--){ size 80 libavcodec/mjpegenc_huffman.c void ff_mjpegenc_huffman_compute_bits(PTable *prob_table, HuffTable *distincts, int size, int max_length) size 96 libavcodec/mjpegenc_huffman.c AV_QSORT(prob_table, size, PTable, compare_by_prob); size 108 libavcodec/mjpegenc_huffman.c while (i < size || j + 1 < from->nitems) { size 111 libavcodec/mjpegenc_huffman.c if (i < size && size 132 libavcodec/mjpegenc_huffman.c min = (size - 1 < from->nitems) ? size - 1 : from->nitems; size 75 libavcodec/mjpegenc_huffman.h int size, int max_length); size 66 libavcodec/mlp_parse.c int size = 28; size 74 libavcodec/mlp_parse.c size += 2 + extensions * 2; size 77 libavcodec/mlp_parse.c return size; size 1137 libavcodec/mlpdec.c int buf_size = avpkt->size; size 492 libavcodec/mlpenc.c unsigned int size; size 585 libavcodec/mlpenc.c size = avctx->frame_size * ctx->max_restart_interval; size 587 libavcodec/mlpenc.c ctx->lpc_sample_buffer = av_malloc_array(size, sizeof(int32_t)); size 594 libavcodec/mlpenc.c size = ctx->one_sample_buffer_size * ctx->max_restart_interval; size 596 libavcodec/mlpenc.c ctx->major_scratch_buffer = av_malloc_array(size, sizeof(int32_t)); size 603 libavcodec/mlpenc.c ctx->major_inout_buffer = av_malloc_array(size, sizeof(int32_t)); size 676 libavcodec/mlpenc.c size = sizeof(unsigned int) * ctx->max_restart_interval; size 678 libavcodec/mlpenc.c ctx->frame_size = av_malloc(size); size 682 libavcodec/mlpenc.c ctx->max_output_bits = av_malloc(size); size 686 libavcodec/mlpenc.c size = sizeof(int32_t) size 689 libavcodec/mlpenc.c ctx->lossless_check_data = av_malloc(size); size 699 libavcodec/mlpenc.c size = sizeof(ChannelParams) size 701 libavcodec/mlpenc.c ctx->channel_params = av_malloc(size); size 708 libavcodec/mlpenc.c size = sizeof(DecodingParams) size 710 libavcodec/mlpenc.c ctx->decoding_params = av_malloc(size); size 1818 libavcodec/mlpenc.c unsigned int size = ctx->number_of_samples; size 1819 libavcodec/mlpenc.c filter_state_buffer[i] = av_malloc(size*sizeof(int32_t)); size 2284 libavcodec/mlpenc.c bytes_written = write_access_unit(ctx, avpkt->data, avpkt->size, restart_frame); size 2358 libavcodec/mlpenc.c avpkt->size = bytes_written; size 123 libavcodec/mlz.c int ff_mlz_decompression(MLZ* mlz, GetBitContext* gb, int size, unsigned char *buff) { size 133 libavcodec/mlz.c while (output_chars < size) { size 156 libavcodec/mlz.c int ret = decode_string(mlz, &buff[output_chars], last_string_code, &char_code, size - output_chars); size 157 libavcodec/mlz.c if (ret < 0 || ret > size - output_chars) { size 162 libavcodec/mlz.c ret = decode_string(mlz, &buff[output_chars], char_code, &char_code, size - output_chars); size 163 libavcodec/mlz.c if (ret < 0 || ret > size - output_chars) { size 175 libavcodec/mlz.c int ret = decode_string(mlz, &buff[output_chars], string_code, &char_code, size - output_chars); size 176 libavcodec/mlz.c if (ret < 0 || ret > size - output_chars) { size 181 libavcodec/mlz.c if (output_chars <= size && !mlz->freeze_flag) { size 68 libavcodec/mlz.h int ff_mlz_decompression(MLZ* mlz, GetBitContext* gb, int size, unsigned char *buff); size 308 libavcodec/mmaldec.c interlace_type.hdr.size = sizeof(MMAL_PARAMETER_VIDEO_INTERLACE_TYPE_T); size 484 libavcodec/mmaldec.c int size = 0; size 489 libavcodec/mmaldec.c if (avpkt->size) { size 492 libavcodec/mmaldec.c size = avpkt->size; size 495 libavcodec/mmaldec.c buf = av_buffer_alloc(avpkt->size); size 497 libavcodec/mmaldec.c memcpy(buf->data, avpkt->data, avpkt->size); size 498 libavcodec/mmaldec.c size = buf->size; size 529 libavcodec/mmaldec.c buffer->length = FFMIN(size, ctx->decoder->input[0]->buffer_size); size 538 libavcodec/mmaldec.c size -= buffer->length; size 543 libavcodec/mmaldec.c if (!size) { size 568 libavcodec/mmaldec.c } while (size); size 781 libavcodec/mmaldec.c pkt.size = avctx->extradata_size; size 193 libavcodec/mmvideo.c int buf_size = avpkt->size; size 208 libavcodec/mmvideo.c case MM_TYPE_PALETTE : mm_decode_pal(s); return avpkt->size; size 229 libavcodec/mmvideo.c return avpkt->size; size 53 libavcodec/motion_est.c int size, int h); size 108 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 180 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 195 libavcodec/motion_est.c if (h << size == 16) { size 196 libavcodec/motion_est.c c->qpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride); //FIXME prototype (add h) size 197 libavcodec/motion_est.c } else if (size == 0 && h == 8) { size 211 libavcodec/motion_est.c c->hpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride, h); size 223 libavcodec/motion_est.c c->hpel_put[size+1][uvdxy](uvtemp , ref[1] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); size 224 libavcodec/motion_est.c c->hpel_put[size+1][uvdxy](uvtemp+8, ref[2] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); size 238 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 241 libavcodec/motion_est.c return cmp_direct_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL); size 243 libavcodec/motion_est.c return cmp_inline(s,x,y,0,0,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA); size 248 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 251 libavcodec/motion_est.c return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL); size 253 libavcodec/motion_est.c return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags&FLAG_QPEL, flags&FLAG_CHROMA); size 261 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 263 libavcodec/motion_est.c if(av_builtin_constant_p(flags) && av_builtin_constant_p(h) && av_builtin_constant_p(size) size 265 libavcodec/motion_est.c && flags==0 && h==16 && size==0 && subx==0 && suby==0){ size 269 libavcodec/motion_est.c return cmp_fpel_internal(s,x,y,size,h,ref_index,src_index, cmp_func, chroma_cmp_func,flags); size 271 libavcodec/motion_est.c return cmp_internal(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, flags); size 276 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 279 libavcodec/motion_est.c return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0); size 281 libavcodec/motion_est.c return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 0, flags&FLAG_CHROMA); size 286 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 289 libavcodec/motion_est.c return cmp_direct_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1); size 291 libavcodec/motion_est.c return cmp_inline(s,x,y,subx,suby,size,h,ref_index,src_index, cmp_func, chroma_cmp_func, 1, flags&FLAG_CHROMA); size 387 libavcodec/motion_est.c d = s->mecc.pix_abs[size][(x ? 1 : 0) + (y ? 2 : 0)](NULL, pix, ptr + ((x) >> 1), stride, h); \ size 395 libavcodec/motion_est.c int size, int h) size 574 libavcodec/motion_est.c const int size= 1; size 638 libavcodec/motion_est.c dmin4= c->sub_motion_search(s, &mx4, &my4, dmin4, block, block, size, h); size 742 libavcodec/motion_est.c const int size=0; size 800 libavcodec/motion_est.c dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h); size 813 libavcodec/motion_est.c s->hdsp.put_no_rnd_pixels_tab[size][dxy](c->scratchpad, ref , stride, h); size 815 libavcodec/motion_est.c s->hdsp.put_pixels_tab [size][dxy](c->scratchpad, ref , stride, h); size 817 libavcodec/motion_est.c dmin = s->mecc.mb_cmp[size](s, c->src[block][0], c->scratchpad, stride, h); size 1181 libavcodec/motion_est.c int size, int h) size 1212 libavcodec/motion_est.c s->qdsp.avg_qpel_pixels_tab[size][dxy](dest_y, ptr, stride); size 1219 libavcodec/motion_est.c s->hdsp.put_pixels_tab[size][dxy](dest_y , ptr , stride, h); size 1226 libavcodec/motion_est.c s->hdsp.avg_pixels_tab[size][dxy](dest_y , ptr , stride, h); size 1231 libavcodec/motion_est.c + s->mecc.mb_cmp[size](s, src_data[0], dest_y, stride, h); // FIXME new_pic size 98 libavcodec/motion_est.h int size, int h); size 121 libavcodec/motion_est.h int16_t (*last_mv)[2], int ref_mv_scale, int size, size 125 libavcodec/motion_est.h int ref_index, int size, int h, int add_rate); size 45 libavcodec/motion_est_template.c d= cmp_hpel(s, x, y, dx, dy, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags);\ size 53 libavcodec/motion_est_template.c int size, int h) size 67 libavcodec/motion_est_template.c cmp_sub = s->mecc.me_sub_cmp[size]; size 68 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.me_sub_cmp[size + 1]; size 77 libavcodec/motion_est_template.c dmin= cmp(s, mx, my, 0, 0, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags); size 78 libavcodec/motion_est_template.c if(mx || my || size>0) size 158 libavcodec/motion_est_template.c int size, int h) size 166 libavcodec/motion_est_template.c int src_index, int ref_index, int size, size 181 libavcodec/motion_est_template.c cmp_sub = s->mecc.mb_cmp[size]; size 182 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.mb_cmp[size + 1]; size 184 libavcodec/motion_est_template.c d= cmp(s, mx>>(qpel+1), my>>(qpel+1), mx&mask, my&mask, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags); size 186 libavcodec/motion_est_template.c if(add_rate && (mx || my || size>0)) size 193 libavcodec/motion_est_template.c int ref_index, int size, int h, int add_rate) size 195 libavcodec/motion_est_template.c return get_mb_score(s, mx, my, src_index, ref_index, size, h, add_rate); size 202 libavcodec/motion_est_template.c d= cmp_qpel(s, x, y, dx, dy, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 210 libavcodec/motion_est_template.c int size, int h) size 225 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 226 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; // FIXME: factorize size 229 libavcodec/motion_est_template.c cmp_sub = s->mecc.me_sub_cmp[size]; size 230 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.me_sub_cmp[size + 1]; size 239 libavcodec/motion_est_template.c dmin= cmp(s, mx, my, 0, 0, size, h, ref_index, src_index, cmp_sub, chroma_cmp_sub, flags); size 240 libavcodec/motion_est_template.c if(mx || my || size>0) size 305 libavcodec/motion_est_template.c tl= cmp(s, mx-1, my-1, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);//FIXME wrong if chroma me is different size 369 libavcodec/motion_est_template.c d= cmp(s, x, y, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 391 libavcodec/motion_est_template.c d= cmp(s, x, y, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 417 libavcodec/motion_est_template.c int size, int h, int flags) size 426 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 427 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 433 libavcodec/motion_est_template.c score_map[index]= cmp(s, best[0], best[1], 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags); size 458 libavcodec/motion_est_template.c int size, int h, int flags) size 467 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 468 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 500 libavcodec/motion_est_template.c int size, int h, int flags, int dia_size) size 510 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 511 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 534 libavcodec/motion_est_template.c int size, int h, int flags) size 547 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 548 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 572 libavcodec/motion_est_template.c int size, int h, int flags) size 586 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 587 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 614 libavcodec/motion_est_template.c return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 2); size 619 libavcodec/motion_est_template.c int size, int h, int flags) size 629 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 630 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 657 libavcodec/motion_est_template.c d= cmp(s, ax, ay, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 682 libavcodec/motion_est_template.c int size, int h, int flags) size 695 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 696 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 772 libavcodec/motion_est_template.c int size, int h, int flags) size 781 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 782 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 833 libavcodec/motion_est_template.c int size, int h, int flags){ size 836 libavcodec/motion_est_template.c return funny_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 838 libavcodec/motion_est_template.c return sab_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 840 libavcodec/motion_est_template.c return small_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 842 libavcodec/motion_est_template.c return full_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 844 libavcodec/motion_est_template.c return umh_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 846 libavcodec/motion_est_template.c return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, c->dia_size&0xFF); size 848 libavcodec/motion_est_template.c return l2s_dia_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 850 libavcodec/motion_est_template.c return var_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 861 libavcodec/motion_est_template.c int ref_mv_scale, int flags, int size, int h) size 882 libavcodec/motion_est_template.c cmpf = s->mecc.me_pre_cmp[size]; size 883 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_pre_cmp[size + 1]; size 886 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 887 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 893 libavcodec/motion_est_template.c dmin= cmp(s, 0, 0, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags); size 966 libavcodec/motion_est_template.c dmin= diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 979 libavcodec/motion_est_template.c int size, int h) size 983 libavcodec/motion_est_template.c if(c->flags==0 && h==16 && size==0){ size 988 libavcodec/motion_est_template.c return epzs_motion_search_internal(s, mx_ptr, my_ptr, P, src_index, ref_index, last_mv, ref_mv_scale, c->flags, size, h); size 995 libavcodec/motion_est_template.c int ref_mv_scale, const int size) size 1010 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 1011 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 1041 libavcodec/motion_est_template.c dmin= diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 33 libavcodec/motionpixels.c uint8_t size; size 130 libavcodec/motionpixels.c static int mp_get_code(MotionPixelsContext *mp, GetBitContext *gb, int size, int code) size 133 libavcodec/motionpixels.c ++size; size 134 libavcodec/motionpixels.c if (size > mp->max_codes_bits) { size 135 libavcodec/motionpixels.c av_log(mp->avctx, AV_LOG_ERROR, "invalid code size %d/%d\n", size, mp->max_codes_bits); size 139 libavcodec/motionpixels.c if (mp_get_code(mp, gb, size, code + 1) < 0) size 148 libavcodec/motionpixels.c mp->codes[mp->current_codes_count++].size = size; size 290 libavcodec/motionpixels.c int buf_size = avpkt->size; size 335 libavcodec/motionpixels.c if (init_vlc(&mp->vlc, mp->max_codes_bits, mp->codes_count, &mp->codes[0].size, sizeof(HuffCode), 1, &mp->codes[0].code, sizeof(HuffCode), 4, 0)) size 35 libavcodec/movsub_bsf.c if (in->size > 0xffff) { size 40 libavcodec/movsub_bsf.c ret = av_new_packet(out, in->size + 2); size 50 libavcodec/movsub_bsf.c AV_WB16(out->data, in->size); size 51 libavcodec/movsub_bsf.c memcpy(out->data + 2, in->data, in->size); size 73 libavcodec/movsub_bsf.c if (pkt->size < 2) { size 78 libavcodec/movsub_bsf.c pkt->size = FFMIN(pkt->size - 2, AV_RB16(pkt->data)); size 306 libavcodec/movtextdec.c if (m->tracksize + m->size_var + 2 + style_entries * 12 > avpkt->size) size 519 libavcodec/movtextdec.c if (!ptr || avpkt->size < 2) size 529 libavcodec/movtextdec.c if (avpkt->size == 2) size 538 libavcodec/movtextdec.c end = ptr + FFMIN(2 + text_length, avpkt->size); size 550 libavcodec/movtextdec.c if (text_length + 2 != avpkt->size) { size 551 libavcodec/movtextdec.c while (m->tracksize + 8 <= avpkt->size) { size 560 libavcodec/movtextdec.c if (m->tracksize + 16 > avpkt->size) size 574 libavcodec/movtextdec.c if (tsmb_size > avpkt->size - m->tracksize) size 579 libavcodec/movtextdec.c if (m->tracksize + m->size_var + box_types[i].base_size > avpkt->size) size 598 libavcodec/movtextdec.c return avpkt->size; size 50 libavcodec/movtextenc.c #define av_bprint_append_any(buf, data, size) av_bprint_append_data(buf, ((const char*)data), size) size 563 libavcodec/movtextenc.c static void mov_text_font_size_set(MovTextContext *s, int size) size 565 libavcodec/movtextenc.c size = FONTSIZE_SCALE(s, size); size 567 libavcodec/movtextenc.c s->style_attributes_temp->style_fontsize == size) { size 572 libavcodec/movtextenc.c s->style_attributes_temp->style_fontsize = size; size 575 libavcodec/movtextenc.c static void mov_text_font_size_cb(void *priv, int size) size 577 libavcodec/movtextenc.c mov_text_font_size_set((MovTextContext*)priv, size); size 44 libavcodec/mp3_header_decompress_bsf.c buf_size = in->size; size 208 libavcodec/mpc7.c buf_size = avpkt->size & ~3; size 211 libavcodec/mpc7.c avpkt->size); size 214 libavcodec/mpc7.c if (buf_size != avpkt->size) { size 307 libavcodec/mpc7.c return avpkt->size; size 312 libavcodec/mpc7.c return avpkt->size; size 81 libavcodec/mpc8.c static int mpc8_get_mask(GetBitContext *gb, int size, int t) size 85 libavcodec/mpc8.c if(t && t != size) size 86 libavcodec/mpc8.c mask = mpc8_dec_enum(gb, FFMIN(t, size - t), size); size 87 libavcodec/mpc8.c if((t << 1) > size) mask = ~mask; size 244 libavcodec/mpc8.c int buf_size = avpkt->size; size 2793 libavcodec/mpeg12dec.c int buf_size = avpkt->size; size 555 libavcodec/mpeg12enc.c if (side_data->size <= A53_MAX_CC_COUNT * 3 && side_data->size % 3 == 0) { size 566 libavcodec/mpeg12enc.c (side_data->size / 3 & A53_MAX_CC_COUNT) | 0x40); // flags, cc_count size 569 libavcodec/mpeg12enc.c for (i = 0; i < side_data->size; i++) size 576 libavcodec/mpeg12enc.c "and must be a multiple of 3\n", side_data->size); size 68 libavcodec/mpeg4_unpack_bframes_bsf.c scan_buffer(pkt->data, pkt->size, &pos_p, &nb_vop, &pos_vop2); size 84 libavcodec/mpeg4_unpack_bframes_bsf.c s->b_frame_ref->size = pkt->size - pos_vop2; size 97 libavcodec/mpeg4_unpack_bframes_bsf.c tmp->size = pkt->size; size 102 libavcodec/mpeg4_unpack_bframes_bsf.c pkt->size = s->b_frame_ref->size; size 107 libavcodec/mpeg4_unpack_bframes_bsf.c if (s->b_frame_ref->size <= MAX_NVOP_SIZE) { size 114 libavcodec/mpeg4_unpack_bframes_bsf.c pkt->size = pos_vop2; size 178 libavcodec/mpeg4audio.c int size, int sync_extension, void *logctx) size 183 libavcodec/mpeg4audio.c if (size <= 0) size 186 libavcodec/mpeg4audio.c ret = init_get_bits8(&gb, buf, size); size 85 libavcodec/mpeg4audio.h int size, int sync_extension, void *logctx); size 1127 libavcodec/mpeg4videoenc.c int size, v, l; size 1129 libavcodec/mpeg4videoenc.c size = 0; size 1133 libavcodec/mpeg4videoenc.c size++; size 1137 libavcodec/mpeg4videoenc.c l = (-level) ^ ((1 << size) - 1); size 1142 libavcodec/mpeg4videoenc.c uni_code = ff_mpeg4_DCtab_lum[size][0]; size 1143 libavcodec/mpeg4videoenc.c uni_len = ff_mpeg4_DCtab_lum[size][1]; size 1145 libavcodec/mpeg4videoenc.c if (size > 0) { size 1146 libavcodec/mpeg4videoenc.c uni_code <<= size; size 1148 libavcodec/mpeg4videoenc.c uni_len += size; size 1149 libavcodec/mpeg4videoenc.c if (size > 8) { size 1159 libavcodec/mpeg4videoenc.c uni_code = ff_mpeg4_DCtab_chrom[size][0]; size 1160 libavcodec/mpeg4videoenc.c uni_len = ff_mpeg4_DCtab_chrom[size][1]; size 1162 libavcodec/mpeg4videoenc.c if (size > 0) { size 1163 libavcodec/mpeg4videoenc.c uni_code <<= size; size 1165 libavcodec/mpeg4videoenc.c uni_len += size; size 1166 libavcodec/mpeg4videoenc.c if (size > 8) { size 1327 libavcodec/mpeg4videoenc.c int size = end - start; size 1328 libavcodec/mpeg4videoenc.c int pb_size = (((intptr_t)start + size / 3) & (~3)) - (intptr_t)start; size 1329 libavcodec/mpeg4videoenc.c int tex_size = (size - 2 * pb_size) & (~3); size 1666 libavcodec/mpegaudiodec_template.c int buf_size = avpkt->size; size 1725 libavcodec/mpegaudiodec_template.c if (buf_size == avpkt->size || ret != AVERROR_INVALIDDATA) size 1750 libavcodec/mpegaudiodec_template.c int buf_size = avpkt->size; size 1935 libavcodec/mpegaudiodec_template.c int buf_size = avpkt->size; size 769 libavcodec/mpegaudioenc_template.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 776 libavcodec/mpegaudioenc_template.c avpkt->size = put_bits_count(&s->pb) / 8; size 1450 libavcodec/mpegvideo.c av_assert0(ref->size >= offset + s->mb_stride * ((f->height+15)/16)); size 1451 libavcodec/mpegvideo.c ref->size -= offset; size 1346 libavcodec/mpegvideo_enc.c int size = 0; size 1357 libavcodec/mpegvideo_enc.c size += pkt.size; size 1363 libavcodec/mpegvideo_enc.c return size; size 1856 libavcodec/mpegvideo_enc.c uint8_t *start = pkt->data + (size_t)(((int64_t) pkt->size) * start_y / h); size 1857 libavcodec/mpegvideo_enc.c uint8_t *end = pkt->data + (size_t)(((int64_t) pkt->size) * end_y / h); size 1872 libavcodec/mpegvideo_enc.c pkt->size = avctx->internal->byte_buffer_size; size 2075 libavcodec/mpegvideo_enc.c pkt->size = s->frame_bits / 8; size 2076 libavcodec/mpegvideo_enc.c *got_packet = !!pkt->size; size 75 libavcodec/mpl2dec.c if (ptr && avpkt->size > 0 && *ptr && !mpl2_event_to_ass(&buf, ptr)) size 81 libavcodec/mpl2dec.c return avpkt->size; size 137 libavcodec/mscc.c int buf_size = avpkt->size; size 142 libavcodec/mscc.c if (avpkt->size < 3) size 155 libavcodec/mscc.c int size; size 156 libavcodec/mscc.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 158 libavcodec/mscc.c if (pal && size == AVPALETTE_SIZE) { size 163 libavcodec/mscc.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 200 libavcodec/mscc.c return avpkt->size; size 60 libavcodec/msmpeg4.c int size, v, l; size 62 libavcodec/msmpeg4.c size = 0; size 66 libavcodec/msmpeg4.c size++; size 70 libavcodec/msmpeg4.c l= (-level) ^ ((1 << size) - 1); size 75 libavcodec/msmpeg4.c uni_code= ff_mpeg4_DCtab_lum[size][0]; size 76 libavcodec/msmpeg4.c uni_len = ff_mpeg4_DCtab_lum[size][1]; size 79 libavcodec/msmpeg4.c if (size > 0) { size 80 libavcodec/msmpeg4.c uni_code<<=size; uni_code|=l; size 81 libavcodec/msmpeg4.c uni_len+=size; size 82 libavcodec/msmpeg4.c if (size > 8){ size 91 libavcodec/msmpeg4.c uni_code= ff_mpeg4_DCtab_chrom[size][0]; size 92 libavcodec/msmpeg4.c uni_len = ff_mpeg4_DCtab_chrom[size][1]; size 95 libavcodec/msmpeg4.c if (size > 0) { size 96 libavcodec/msmpeg4.c uni_code<<=size; uni_code|=l; size 97 libavcodec/msmpeg4.c uni_len+=size; size 98 libavcodec/msmpeg4.c if (size > 8){ size 81 libavcodec/msmpeg4enc.c int size=0; size 86 libavcodec/msmpeg4enc.c size+= rl->table_vlc[code][1]; size 96 libavcodec/msmpeg4enc.c size++; size 106 libavcodec/msmpeg4enc.c size+=1+1+6+8; size 109 libavcodec/msmpeg4enc.c size+= 1+1+ rl->table_vlc[code][1]; size 113 libavcodec/msmpeg4enc.c size+= 1+1+ rl->table_vlc[code][1]; size 116 libavcodec/msmpeg4enc.c size++; size 118 libavcodec/msmpeg4enc.c return size; size 168 libavcodec/msmpeg4enc.c int size=0; size 171 libavcodec/msmpeg4enc.c size++; size 178 libavcodec/msmpeg4enc.c const int last_size= size + chroma_size; size 185 libavcodec/msmpeg4enc.c size += intra_luma_count *rl_length[i ][level][run][last]; size 188 libavcodec/msmpeg4enc.c size+= intra_luma_count *rl_length[i ][level][run][last] size 193 libavcodec/msmpeg4enc.c if(last_size == size+chroma_size) break; size 196 libavcodec/msmpeg4enc.c if(size<best_size){ size 197 libavcodec/msmpeg4enc.c best_size= size; size 88 libavcodec/msrle.c int buf_size = avpkt->size; size 100 libavcodec/msrle.c int size; size 101 libavcodec/msrle.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 103 libavcodec/msrle.c if (pal && size == AVPALETTE_SIZE) { size 107 libavcodec/msrle.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 114 libavcodec/msrle.c if (avctx->height * istride == avpkt->size) { /* assume uncompressed */ size 152 libavcodec/mss1.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 188 libavcodec/mss1.c return avpkt->size; size 477 libavcodec/mss2.c int buf_size = avpkt->size; size 744 libavcodec/mss2.c return avpkt->size; size 277 libavcodec/mss3.c static void rac_init(RangeCoder *c, const uint8_t *src, int size) size 282 libavcodec/mss3.c c->src_end = src + size; size 284 libavcodec/mss3.c for (i = 0; i < FFMIN(size, 4); i++) size 688 libavcodec/mss3.c int buf_size = avpkt->size; size 512 libavcodec/mss4.c int buf_size = avpkt->size; size 40 libavcodec/msvideo1.c if ((stream_ptr + n) > s->size ) { \ size 42 libavcodec/msvideo1.c stream_ptr + n, s->size); \ size 52 libavcodec/msvideo1.c int size; size 300 libavcodec/msvideo1.c int buf_size = avpkt->size; size 305 libavcodec/msvideo1.c s->size = buf_size; size 317 libavcodec/msvideo1.c int size; size 318 libavcodec/msvideo1.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 320 libavcodec/msvideo1.c if (pal && size == AVPALETTE_SIZE) { size 324 libavcodec/msvideo1.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 250 libavcodec/msvideo1enc.c pkt->size = dst - buf; size 607 libavcodec/mv30.c if ((ret = init_get_bits8(gb, avpkt->data, avpkt->size)) < 0) size 649 libavcodec/mv30.c return avpkt->size; size 236 libavcodec/mvcdec.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 252 libavcodec/mvcdec.c return avpkt->size; size 155 libavcodec/mvha.c uint32_t type, size; size 158 libavcodec/mvha.c if (avpkt->size <= 8) size 162 libavcodec/mvha.c size = AV_RL32(avpkt->data + 4); size 164 libavcodec/mvha.c if (size < 1 || size >= avpkt->size) size 178 libavcodec/mvha.c s->zstream.avail_in = avpkt->size - 8; size 196 libavcodec/mvha.c ret = init_get_bits8(gb, avpkt->data + 8, avpkt->size - 8); size 276 libavcodec/mvha.c return avpkt->size; size 95 libavcodec/mwsc.c int buf_size = avpkt->size; size 134 libavcodec/mwsc.c return avpkt->size; size 140 libavcodec/mwsc.c int64_t size; size 145 libavcodec/mwsc.c size = 32LL * avctx->height * avctx->width; size 146 libavcodec/mwsc.c if (size >= INT32_MAX) size 148 libavcodec/mwsc.c s->decomp_size = size; size 189 libavcodec/mxpegdec.c int buf_size = avpkt->size; size 147 libavcodec/nellymoserdec.c int buf_size = avpkt->size; size 412 libavcodec/nellymoserenc.c encode_block(s, avpkt->data, avpkt->size); size 61 libavcodec/noise_bsf.c for (i = 0; i < pkt->size; i++) { size 406 libavcodec/notchlc.c if (avpkt->size <= 40) size 409 libavcodec/notchlc.c bytestream2_init(gb, avpkt->data, avpkt->size); size 454 libavcodec/notchlc.c return avpkt->size; size 90 libavcodec/nuv.c int size) size 93 libavcodec/nuv.c if (size < 2 * 64 * 4) { size 158 libavcodec/nuv.c int buf_size = avpkt->size; size 268 libavcodec/nuv.c buf_size = avpkt->size; size 239 libavcodec/nvdec.c static AVBufferRef *nvdec_decoder_frame_alloc(void *opaque, int size) size 279 libavcodec/nvdec.c static AVBufferRef *nvdec_alloc_dummy(int size) size 631 libavcodec/nvdec.c uint32_t size) size 646 libavcodec/nvdec.c ctx->bitstream_len += size; size 74 libavcodec/nvdec.h uint32_t size); size 48 libavcodec/nvdec_h264.c const uint8_t *buffer, uint32_t size) size 132 libavcodec/nvdec_h264.c uint32_t size) size 141 libavcodec/nvdec_h264.c ctx->bitstream_len + size + 3); size 153 libavcodec/nvdec_h264.c memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size); size 155 libavcodec/nvdec_h264.c ctx->bitstream_len += size + 3; size 71 libavcodec/nvdec_hevc.c const uint8_t *buffer, uint32_t size) size 271 libavcodec/nvdec_hevc.c uint32_t size) size 277 libavcodec/nvdec_hevc.c ctx->bitstream_len + size + 3); size 289 libavcodec/nvdec_hevc.c memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size); size 291 libavcodec/nvdec_hevc.c ctx->bitstream_len += size + 3; size 29 libavcodec/nvdec_mjpeg.c static int nvdec_mjpeg_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 57 libavcodec/nvdec_mjpeg.c return ff_nvdec_simple_decode_slice(avctx, buffer, size); size 60 libavcodec/nvdec_mjpeg.c static int nvdec_mjpeg_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 28 libavcodec/nvdec_mpeg12.c static int nvdec_mpeg12_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 28 libavcodec/nvdec_mpeg4.c static int nvdec_mpeg4_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 94 libavcodec/nvdec_mpeg4.c return ff_nvdec_simple_decode_slice(avctx, buffer, size); size 97 libavcodec/nvdec_mpeg4.c static int nvdec_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 28 libavcodec/nvdec_vc1.c static int nvdec_vc1_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 34 libavcodec/nvdec_vp8.c static int nvdec_vp8_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 31 libavcodec/nvdec_vp9.c static int nvdec_vp9_start_frame(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 1386 libavcodec/nvenc.c ctx->surfaces[idx].size = allocOut.size; size 76 libavcodec/nvenc.h int size; size 52 libavcodec/on2avc.c void (*wtf)(struct On2AVCContext *ctx, float *out, float *in, int size); size 528 libavcodec/on2avc.c static void wtf_40(On2AVCContext *c, float *out, float *src, int size) size 535 libavcodec/on2avc.c if (size == 512) { size 614 libavcodec/on2avc.c static void wtf_44(On2AVCContext *c, float *out, float *src, int size) size 621 libavcodec/on2avc.c if (size == 512) { size 844 libavcodec/on2avc.c int buf_size = avpkt->size; size 262 libavcodec/options.c #define alloc_and_copy_or_fail(obj, size, pad) \ size 263 libavcodec/options.c if (src->obj && size > 0) { \ size 264 libavcodec/options.c dest->obj = av_malloc(size + pad); \ size 267 libavcodec/options.c memcpy(dest->obj, src->obj, size); \ size 269 libavcodec/options.c memset(((uint8_t *) dest->obj) + size, 0, pad); \ size 461 libavcodec/opus.c int band_offset = ff_celt_freq_bands[i] << f->size; size 462 libavcodec/opus.c int band_size = ff_celt_freq_range[i] << f->size; size 487 libavcodec/opus.c int count = (ff_celt_freq_range[i] - ff_celt_freq_range[i-1]) << f->size; size 519 libavcodec/opus.c for (j = ff_celt_freq_bands[f->start_band] << f->size; j < band_offset; j++) size 523 libavcodec/opus.c norm_loc1 = effective_lowband != -1 ? norm1 + (effective_lowband << f->size) : NULL; size 524 libavcodec/opus.c norm_loc2 = effective_lowband != -1 ? norm2 + (effective_lowband << f->size) : NULL; size 528 libavcodec/opus.c f->blocks, norm_loc1, f->size, size 533 libavcodec/opus.c f->blocks, norm_loc2, f->size, size 538 libavcodec/opus.c f->blocks, norm_loc1, f->size, size 553 libavcodec/opus.c #define NORMC(bits) ((bits) << (f->channels - 1) << f->size >> 2) size 583 libavcodec/opus.c f->caps[i] = NORMC((ff_celt_static_caps[f->size][f->channels - 1][i] + 64) * ff_celt_freq_range[i]); size 588 libavcodec/opus.c int quanta = ff_celt_freq_range[i] << (f->channels - 1) << f->size; size 627 libavcodec/opus.c if (f->transient && f->size >= 2 && tbits_8ths >= ((f->size + 2) << 3)) size 652 libavcodec/opus.c int trim = f->alloc_trim - 5 - f->size; size 654 libavcodec/opus.c int duration = f->size + 3; size 664 libavcodec/opus.c if (ff_celt_freq_range[i] << f->size == 1) size 835 libavcodec/opus.c int N = ff_celt_freq_range[i] << f->size; size 853 libavcodec/opus.c temp = dof * (ff_celt_log_freq_range[i] + (f->size << 3)); size 38 libavcodec/opus_celt.c float alpha = ff_celt_alpha_coef[f->size]; size 39 libavcodec/opus_celt.c float beta = ff_celt_beta_coef[f->size]; size 40 libavcodec/opus_celt.c const uint8_t *model = ff_celt_coarse_energy_dist[f->size][0]; size 46 libavcodec/opus_celt.c model = ff_celt_coarse_energy_dist[f->size][1]; size 125 libavcodec/opus_celt.c tf_select_bit = (f->size != 0 && consumed+bits+1 <= f->framebits); size 137 libavcodec/opus_celt.c if (tf_select_bit && ff_celt_tf_select[f->size][f->transient][0][tf_changed] != size 138 libavcodec/opus_celt.c ff_celt_tf_select[f->size][f->transient][1][tf_changed]) size 142 libavcodec/opus_celt.c f->tf_change[i] = ff_celt_tf_select[f->size][f->transient][tf_select][f->tf_change[i]]; size 151 libavcodec/opus_celt.c float *dst = data + (ff_celt_freq_bands[i] << f->size); size 155 libavcodec/opus_celt.c for (j = 0; j < ff_celt_freq_range[i] << f->size; j++) size 281 libavcodec/opus_celt.c depth = (1 + f->pulses[i]) / (ff_celt_freq_range[i] << f->size); size 283 libavcodec/opus_celt.c sqrt_1 = 1.0f / sqrtf(ff_celt_freq_range[i] << f->size); size 285 libavcodec/opus_celt.c xptr = X + (ff_celt_freq_bands[i] << f->size); size 301 libavcodec/opus_celt.c if (f->size == 3) size 304 libavcodec/opus_celt.c for (k = 0; k < 1 << f->size; k++) { size 309 libavcodec/opus_celt.c xptr[(j << f->size) + k] = (celt_rng(f) & 0x8000) ? r : -r; size 316 libavcodec/opus_celt.c celt_renormalize_vector(xptr, ff_celt_freq_range[i] << f->size, 1.0f); size 348 libavcodec/opus_celt.c f->size = av_log2(frame_size / CELT_SHORT_BLOCKSIZE); size 349 libavcodec/opus_celt.c if (f->size > CELT_MAX_LOG_BLOCKS || size 350 libavcodec/opus_celt.c frame_size != CELT_SHORT_BLOCKSIZE * (1 << f->size)) { size 382 libavcodec/opus_celt.c if (f->size != 0 && consumed+3 <= f->framebits) size 385 libavcodec/opus_celt.c f->blocks = f->transient ? 1 << f->size : 1; size 388 libavcodec/opus_celt.c imdct = f->imdct[f->transient ? 0 : f->size]; size 104 libavcodec/opus_celt.h enum CeltBlockSize size; size 182 libavcodec/opus_rc.c uint32_t ff_opus_rc_dec_uint(OpusRangeCoder *rc, uint32_t size) size 186 libavcodec/opus_rc.c bits = opus_ilog(size - 1); size 187 libavcodec/opus_rc.c total = (bits > 8) ? ((size - 1) >> (bits - 8)) + 1 : size; size 196 libavcodec/opus_rc.c return FFMIN(k, size - 1); size 204 libavcodec/opus_rc.c void ff_opus_rc_enc_uint(OpusRangeCoder *rc, uint32_t val, uint32_t size) size 206 libavcodec/opus_rc.c const int ps = FFMAX(opus_ilog(size - 1) - 8, 0); size 207 libavcodec/opus_rc.c opus_rc_enc_update(rc, val >> ps, (val >> ps) + 1, ((size - 1) >> ps) + 1, 0); size 338 libavcodec/opus_rc.c int ff_opus_rc_dec_init(OpusRangeCoder *rc, const uint8_t *data, int size) size 340 libavcodec/opus_rc.c int ret = init_get_bits8(&rc->gb, data, size); size 360 libavcodec/opus_rc.c void ff_opus_rc_enc_end(OpusRangeCoder *rc, uint8_t *dst, int size) size 386 libavcodec/opus_rc.c rc->waste = size*8 - (rc->rb.bytes*8 + rc->rb.cachelen) - rng_bytes*8; size 394 libavcodec/opus_rc.c rb_dst = dst + FFMAX(size - rc->rb.bytes, 0); size 97 libavcodec/opus_rc.h uint32_t ff_opus_rc_dec_uint(OpusRangeCoder *rc, uint32_t size); size 98 libavcodec/opus_rc.h void ff_opus_rc_enc_uint(OpusRangeCoder *rc, uint32_t val, uint32_t size); size 106 libavcodec/opus_rc.h int ff_opus_rc_dec_init(OpusRangeCoder *rc, const uint8_t *data, int size); size 109 libavcodec/opus_rc.h void ff_opus_rc_enc_end(OpusRangeCoder *rc, uint8_t *dst, int size); size 153 libavcodec/opusdec.c static int opus_decode_redundancy(OpusStreamContext *s, const uint8_t *data, int size) size 155 libavcodec/opusdec.c int ret = ff_opus_rc_dec_init(&s->redundancy_rc, data, size); size 158 libavcodec/opusdec.c ff_opus_rc_dec_raw_init(&s->redundancy_rc, data + size, size); size 173 libavcodec/opusdec.c static int opus_decode_frame(OpusStreamContext *s, const uint8_t *data, int size) size 181 libavcodec/opusdec.c ret = ff_opus_rc_dec_init(&s->rc, data, size); size 215 libavcodec/opusdec.c if (s->packet.mode == OPUS_MODE_HYBRID && consumed + 37 <= size * 8) size 217 libavcodec/opusdec.c else if (s->packet.mode == OPUS_MODE_SILK && consumed + 17 <= size * 8) size 226 libavcodec/opusdec.c redundancy_size = size - (consumed + 7) / 8; size 227 libavcodec/opusdec.c size -= redundancy_size; size 228 libavcodec/opusdec.c if (size < 0) { size 234 libavcodec/opusdec.c ret = opus_decode_redundancy(s, data + size, redundancy_size); size 268 libavcodec/opusdec.c ff_opus_rc_dec_raw_init(&s->rc, data + size, size); size 306 libavcodec/opusdec.c ret = opus_decode_redundancy(s, data + size, redundancy_size); size 388 libavcodec/opusdec.c int size = s->packet.frame_size[i]; size 389 libavcodec/opusdec.c int samples = opus_decode_frame(s, buf + s->packet.frame_offset[i], size); size 420 libavcodec/opusdec.c int buf_size = avpkt->size; size 565 libavcodec/opusdec.c return avpkt->size; size 73 libavcodec/opusenc.c static int opus_gen_toc(OpusEncContext *s, uint8_t *toc, int *size, int *fsize_needed) size 112 libavcodec/opusenc.c *size = 1 + extended_toc; size 208 libavcodec/opusenc.c int blk_len = OPUS_BLOCK_SIZE(f->size), wlen = OPUS_BLOCK_SIZE(f->size + 1); size 226 libavcodec/opusenc.c s->mdct[f->size]->mdct(s->mdct[f->size], b->coeffs, win, 1); size 234 libavcodec/opusenc.c int band_offset = ff_celt_freq_bands[i] << f->size; size 235 libavcodec/opusenc.c int band_size = ff_celt_freq_range[i] << f->size; size 260 libavcodec/opusenc.c tf_select_needed = ((f->size && (opus_rc_tell(rc) + bits + 1) <= f->framebits)); size 272 libavcodec/opusenc.c if (tf_select_needed && ff_celt_tf_select[f->size][f->transient][0][tf_changed] != size 273 libavcodec/opusenc.c ff_celt_tf_select[f->size][f->transient][1][tf_changed]) { size 279 libavcodec/opusenc.c f->tf_change[i] = ff_celt_tf_select[f->size][f->transient][tf_select][f->tf_change[i]]; size 323 libavcodec/opusenc.c const uint8_t *pmod = ff_celt_coarse_energy_dist[f->size][intra]; size 335 libavcodec/opusenc.c alpha = ff_celt_alpha_coef[f->size]; size 336 libavcodec/opusenc.c beta = ff_celt_beta_coef[f->size]; size 458 libavcodec/opusenc.c if (f->size && opus_rc_tell(rc) + 3 <= f->framebits) size 511 libavcodec/opusenc.c avpkt->size = offset; size 33 libavcodec/opusenc_psy.c const int band_size = ff_celt_freq_range[band] << f->size; size 37 libavcodec/opusenc_psy.c float *X_orig = f->block[0].coeffs + (ff_celt_freq_bands[band] << f->size); size 39 libavcodec/opusenc_psy.c float *Y_orig = f->block[1].coeffs + (ff_celt_freq_bands[band] << f->size); size 54 libavcodec/opusenc_psy.c f->size, norm1, 0, 1.0f, lowband_scratch, cm[0]); size 57 libavcodec/opusenc_psy.c f->size, norm2, 0, 1.0f, lowband_scratch, cm[1]); size 59 libavcodec/opusenc_psy.c pvq->quant_band(pvq, f, rc, band, X, Y, band_size, b, f->blocks, NULL, f->size, size 263 libavcodec/opusenc_psy.c f->size = s->p.framesize; size 265 libavcodec/opusenc_psy.c for (i = 0; i < (1 << f->size); i++) size 266 libavcodec/opusenc_psy.c silence &= s->steps[index*(1 << f->size) + i]->silence; size 431 libavcodec/opusenc_psy.c int c = ff_celt_tf_select[f->size][f->transient][cway][i]; size 438 libavcodec/opusenc_psy.c for (j = 0; j < (1 << f->size); j++) { size 300 libavcodec/packet.h int size; size 356 libavcodec/packet.h int size; size 468 libavcodec/packet.h int av_new_packet(AVPacket *pkt, int size); size 476 libavcodec/packet.h void av_shrink_packet(AVPacket *pkt, int size); size 499 libavcodec/packet.h int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size); size 549 libavcodec/packet.h int size); size 565 libavcodec/packet.h uint8_t *data, size_t size); size 576 libavcodec/packet.h int size); size 587 libavcodec/packet.h int *size); size 606 libavcodec/packet.h uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size); size 615 libavcodec/packet.h int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict); size 51 libavcodec/pafaudio.c frames = pkt->size / PAF_SOUND_FRAME_SIZE; size 71 libavcodec/pafaudio.c return pkt->size; size 279 libavcodec/pafvideo.c if (pkt->size < 2) size 282 libavcodec/pafvideo.c bytestream2_init(&c->gb, pkt->data, pkt->size); size 409 libavcodec/pafvideo.c return pkt->size; size 99 libavcodec/pamenc.c bytestream_end = pkt->data + pkt->size; size 124 libavcodec/pamenc.c pkt->size = bytestream - bytestream_start; size 207 libavcodec/parser.c int size = buf_size + avctx->extradata_size; size 209 libavcodec/parser.c *poutbuf_size = size; size 210 libavcodec/parser.c *poutbuf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 131 libavcodec/pcm-bluray.c int buf_size = avpkt->size; size 239 libavcodec/pcm-dvd.c int buf_size = avpkt->size; size 283 libavcodec/pcm-dvd.c return avpkt->size; size 302 libavcodec/pcm-dvd.c return avpkt->size; size 130 libavcodec/pcm-dvdenc.c bytestream2_init_writer(&pb, avpkt->data + 3, avpkt->size - 3); size 166 libavcodec/pcm-dvdenc.c avpkt->size = pkt_size; size 306 libavcodec/pcm.c #define DECODE(size, endian, src, dst, n, shift, offset) \ size 308 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ size 309 libavcodec/pcm.c AV_WN ## size ## A(dst, (uint ## size ## _t)(v - offset) << shift); \ size 310 libavcodec/pcm.c dst += size / 8; \ size 313 libavcodec/pcm.c #define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) \ size 319 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ size 320 libavcodec/pcm.c AV_WN ## size ## A(dst, (uint ## size ##_t)(v - offset) << shift); \ size 321 libavcodec/pcm.c dst += size / 8; \ size 329 libavcodec/pcm.c int buf_size = avpkt->size; size 91 libavcodec/pcm_rechunk_bsf.c pkt->size -= drain_data; size 118 libavcodec/pcm_rechunk_bsf.c if (s->in_pkt->size) { size 119 libavcodec/pcm_rechunk_bsf.c if (s->out_pkt->size || s->in_pkt->size < data_size) { size 120 libavcodec/pcm_rechunk_bsf.c int drain = FFMIN(s->in_pkt->size, data_size - s->out_pkt->size); size 121 libavcodec/pcm_rechunk_bsf.c if (!s->out_pkt->size) { size 130 libavcodec/pcm_rechunk_bsf.c s->out_pkt->size = 0; size 132 libavcodec/pcm_rechunk_bsf.c memcpy(s->out_pkt->data + s->out_pkt->size, s->in_pkt->data, drain); size 133 libavcodec/pcm_rechunk_bsf.c s->out_pkt->size += drain; size 135 libavcodec/pcm_rechunk_bsf.c if (!s->in_pkt->size) size 137 libavcodec/pcm_rechunk_bsf.c if (s->out_pkt->size == data_size) { size 141 libavcodec/pcm_rechunk_bsf.c } else if (s->in_pkt->size > data_size) { size 145 libavcodec/pcm_rechunk_bsf.c pkt->size = data_size; size 149 libavcodec/pcm_rechunk_bsf.c av_assert0(s->in_pkt->size == data_size); size 156 libavcodec/pcm_rechunk_bsf.c if (ret == AVERROR_EOF && s->out_pkt->size) { size 158 libavcodec/pcm_rechunk_bsf.c memset(s->out_pkt->data + s->out_pkt->size, 0, data_size - s->out_pkt->size); size 159 libavcodec/pcm_rechunk_bsf.c s->out_pkt->size = data_size; size 161 libavcodec/pcm_rechunk_bsf.c nb_samples = s->out_pkt->size / s->sample_size; size 83 libavcodec/pcx.c if (avpkt->size < PCX_HEADER_SIZE) { size 88 libavcodec/pcx.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 173 libavcodec/pcx.c int palstart = avpkt->size - 769; size 175 libavcodec/pcx.c if (avpkt->size < 769) { size 178 libavcodec/pcx.c AVERROR_INVALIDDATA : avpkt->size; size 196 libavcodec/pcx.c AVERROR_INVALIDDATA : avpkt->size; size 151 libavcodec/pcxenc.c buf_end = pkt->data + pkt->size; size 200 libavcodec/pcxenc.c pkt->size = buf - pkt->data; size 621 libavcodec/pgssubdec.c int buf_size = avpkt->size; size 132 libavcodec/pictordec.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 281 libavcodec/pictordec.c return avpkt->size; size 44 libavcodec/pixlet.c unsigned size; size 107 libavcodec/pixlet.c ctx->band[plane][0].size = (w >> NB_LEVELS) * (h >> NB_LEVELS); size 114 libavcodec/pixlet.c ctx->band[plane][i + 1].size = (w >> scale) * (h >> scale); size 124 libavcodec/pixlet.c static int read_low_coeffs(AVCodecContext *avctx, int16_t *dst, int size, size 133 libavcodec/pixlet.c while (i < size) { size 160 libavcodec/pixlet.c if (state * 4ULL > 0xFF || i >= size) size 179 libavcodec/pixlet.c if (rlen > size - i) size 200 libavcodec/pixlet.c int size, int c, int a, int d, size 223 libavcodec/pixlet.c while (i < size) { size 267 libavcodec/pixlet.c if ((uint64_t)state > 0xFF / 4 || i >= size) size 294 libavcodec/pixlet.c if (rlen > 0xFFFF || i + rlen > size) size 329 libavcodec/pixlet.c unsigned size = ctx->band[plane][i + 1].size; size 342 libavcodec/pixlet.c ret = read_high_coeffs(avctx, ptr + bytestream2_tell(&ctx->gb), dest, size, size 377 libavcodec/pixlet.c static void filterfn(int16_t *dest, int16_t *tmp, unsigned size, int64_t scale) size 383 libavcodec/pixlet.c hsize = size >> 1; size 387 libavcodec/pixlet.c memcpy(low, dest, size); size 388 libavcodec/pixlet.c memcpy(high, dest + hsize, size); size 596 libavcodec/pixlet.c bytestream2_init(&ctx->gb, avpkt->data, avpkt->size); size 39 libavcodec/png.c void *ff_png_zalloc(void *opaque, unsigned int items, unsigned int size) size 41 libavcodec/png.c return av_mallocz_array(items, size); size 53 libavcodec/png.h void *ff_png_zalloc(void *opaque, unsigned int items, unsigned int size); size 224 libavcodec/pngdec.c for (; i <= size - bpp; i += bpp) { \ size 248 libavcodec/pngdec.c for (; i < size; i++) { \ size 254 libavcodec/pngdec.c uint8_t *src, uint8_t *last, int size, int bpp) size 260 libavcodec/pngdec.c memcpy(dst, src, size); size 267 libavcodec/pngdec.c for (; i < size; i += bpp) { size 278 libavcodec/pngdec.c dsp->add_bytes_l2(dst, src, last, size); size 293 libavcodec/pngdec.c if (bpp > 2 && size > 4) { size 296 libavcodec/pngdec.c int w = (bpp & 3) ? size - 3 : size; size 299 libavcodec/pngdec.c dsp->add_paeth_prediction(dst + i, src + i, last + i, size - i, bpp); size 303 libavcodec/pngdec.c ff_add_png_paeth_prediction(dst + i, src + i, last + i, size - i, bpp); size 311 libavcodec/pngdec.c static void deloco_ ## NAME(TYPE *dst, int size, int alpha) \ size 314 libavcodec/pngdec.c for (i = 0; i < size; i += 3 + alpha) { \ size 1477 libavcodec/pngdec.c int buf_size = avpkt->size; size 1566 libavcodec/pngdec.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 1598 libavcodec/pngdec.c if (avpkt->size < 2) size 1601 libavcodec/pngdec.c bytestream2_init(gb, avpkt->data, avpkt->size); size 1618 libavcodec/pngdec.c uint32_t csize, size; size 1645 libavcodec/pngdec.c size = bytestream2_get_le32(gb); size 1659 libavcodec/pngdec.c offset += size; size 1660 libavcodec/pngdec.c left = size; size 1716 libavcodec/pngdec.c return avpkt->size; size 149 libavcodec/pngenc.c static void sub_left_prediction(PNGEncContext *c, uint8_t *dst, const uint8_t *src, int bpp, int size) size 157 libavcodec/pngenc.c size -= bpp; size 158 libavcodec/pngenc.c unaligned_w = FFMIN(32 - bpp, size); size 161 libavcodec/pngenc.c size -= unaligned_w; size 162 libavcodec/pngenc.c c->llvidencdsp.diff_bytes(dst, src1, src2, size); size 166 libavcodec/pngenc.c uint8_t *src, uint8_t *top, int size, int bpp) size 172 libavcodec/pngenc.c memcpy(dst, src, size); size 175 libavcodec/pngenc.c sub_left_prediction(c, dst, src, bpp, size); size 178 libavcodec/pngenc.c c->llvidencdsp.diff_bytes(dst, src, top, size); size 183 libavcodec/pngenc.c for (; i < size; i++) size 189 libavcodec/pngenc.c sub_png_paeth_prediction(dst + i, src + i, top + i, size - i, bpp); size 195 libavcodec/pngenc.c uint8_t *src, uint8_t *top, int size, int bpp) size 204 libavcodec/pngenc.c uint8_t *buf1 = dst, *buf2 = dst + size + 16; size 206 libavcodec/pngenc.c png_filter_row(s, buf1 + 1, pred, src, top, size, bpp); size 209 libavcodec/pngenc.c for (i = 0; i <= size; i++) size 218 libavcodec/pngenc.c png_filter_row(s, dst + 1, pred, src, top, size, bpp); size 271 libavcodec/pngenc.c static int png_write_row(AVCodecContext *avctx, const uint8_t *data, int size) size 276 libavcodec/pngenc.c s->zstream.avail_in = size; size 547 libavcodec/pngenc.c s->bytestream_end = pkt->data + pkt->size; size 562 libavcodec/pngenc.c pkt->size = s->bytestream - s->bytestream_start; size 895 libavcodec/pngenc.c pkt->size = s->last_frame_packet_size; size 43 libavcodec/pnmdec.c int buf_size = avpkt->size; size 33 libavcodec/pnmenc.c int size = av_image_get_buffer_size(avctx->pix_fmt, size 36 libavcodec/pnmenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size + 200, 0)) < 0) size 41 libavcodec/pnmenc.c bytestream_end = pkt->data + pkt->size; size 115 libavcodec/pnmenc.c pkt->size = bytestream - bytestream_start; size 269 libavcodec/ppc/h264dsp.c static av_always_inline void h264_idct_dc_add_internal(uint8_t *dst, int16_t *block, int stride, int size) size 283 libavcodec/ppc/h264dsp.c if (size == 4) size 294 libavcodec/ppc/h264dsp.c for (i = 0; i < size; i += 4) { size 34 libavcodec/ppc/svq1enc_altivec.c intptr_t size) size 36 libavcodec/ppc/svq1enc_altivec.c int i, size16 = size >> 4; size 66 libavcodec/ppc/svq1enc_altivec.c size %= 16; size 67 libavcodec/ppc/svq1enc_altivec.c for (i = 0; i < size; i++) size 59 libavcodec/prores_metadata_bsf.c buf_size = pkt->size; size 758 libavcodec/proresdec2.c int buf_size = avpkt->size; size 807 libavcodec/proresdec2.c return avpkt->size; size 779 libavcodec/proresenc_anatoliy.c pkt->size - compress_frame_size, 0, is_top_field_first);/* encode progressive or first field */ size 787 libavcodec/proresenc_anatoliy.c pkt->size - compress_frame_size, 1, !is_top_field_first); size 796 libavcodec/proresenc_anatoliy.c pkt->size = compress_frame_size; size 1151 libavcodec/proresenc_kostya.c pkt->size = frame_size; size 40 libavcodec/prosumer.c unsigned size; size 48 libavcodec/prosumer.c static int decompress(GetByteContext *gb, int size, PutByteContext *pb, const uint32_t *lut) size 153 libavcodec/prosumer.c if (avpkt->size <= 32) size 156 libavcodec/prosumer.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 157 libavcodec/prosumer.c bytestream2_init_writer(&s->pb, s->decbuffer, s->size); size 161 libavcodec/prosumer.c if (bytestream2_get_bytes_left_p(&s->pb) > s->size * (int64_t)avctx->discard_damaged_percentage / 100) size 164 libavcodec/prosumer.c av_assert0(s->size >= bytestream2_get_bytes_left_p(&s->pb)); size 202 libavcodec/prosumer.c return avpkt->size; size 343 libavcodec/prosumer.c s->size = avctx->height * s->stride; size 348 libavcodec/prosumer.c s->decbuffer = av_malloc(s->size); size 310 libavcodec/psd.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 545 libavcodec/psd.c return avpkt->size; size 103 libavcodec/psymodel.h int size; ///< size of the bitresevoir in bits size 399 libavcodec/pthread_frame.c if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) size 514 libavcodec/pthread_frame.c if (avpkt->size) { size 515 libavcodec/pthread_frame.c err = avpkt->size; size 552 libavcodec/pthread_frame.c } while (!avpkt->size && !*got_picture_ptr && err >= 0 && finished != fctx->next_finished); size 562 libavcodec/pthread_frame.c err = avpkt->size; size 31 libavcodec/ptx.c const uint8_t *buf_end = avpkt->data + avpkt->size; size 82 libavcodec/ptx.c return avpkt->size; size 358 libavcodec/put_bits.h static inline void set_put_bits_buffer_size(PutBitContext *s, int size) size 360 libavcodec/put_bits.h av_assert0(size <= INT_MAX/8 - 32); size 361 libavcodec/put_bits.h s->buf_end = s->buf + size; size 362 libavcodec/put_bits.h s->size_in_bits = 8*size; size 690 libavcodec/qcelpdec.c int buf_size = avpkt->size; size 51 libavcodec/qdm2.c #define QDM2_LIST_ADD(list, size, packet) \ size 53 libavcodec/qdm2.c if (size > 0) { \ size 54 libavcodec/qdm2.c list[size - 1].next = &list[size]; \ size 56 libavcodec/qdm2.c list[size].packet = packet; \ size 57 libavcodec/qdm2.c list[size].next = NULL; \ size 58 libavcodec/qdm2.c size++; \ size 85 libavcodec/qdm2.c unsigned int size; ///< subpacket size size 268 libavcodec/qdm2.c sub_packet->size = 0; size 271 libavcodec/qdm2.c sub_packet->size = get_bits(gb, 8); size 274 libavcodec/qdm2.c sub_packet->size <<= 8; size 275 libavcodec/qdm2.c sub_packet->size |= get_bits(gb, 8); size 287 libavcodec/qdm2.c sub_packet->type, sub_packet->size, get_bits_count(gb) / 8); size 982 libavcodec/qdm2.c init_get_bits(&gb, node->packet->data, node->packet->size * 8); size 1024 libavcodec/qdm2.c init_get_bits(&gb, node->packet->data, node->packet->size * 8); size 1044 libavcodec/qdm2.c length = node->packet->size * 8; size 1073 libavcodec/qdm2.c length = node->packet->size * 8; size 1146 libavcodec/qdm2.c init_get_bits(&gb, header.data, header.size * 8); size 1182 libavcodec/qdm2.c init_get_bits(&gb, header.data, header.size * 8); size 1185 libavcodec/qdm2.c if (next_index >= header.size) size 1192 libavcodec/qdm2.c next_index = packet->size + get_bits_count(&gb) / 8; size 1193 libavcodec/qdm2.c sub_packet_size = ((packet->size > 0xff) ? 1 : 0) + packet->size + 2; size 1201 libavcodec/qdm2.c packet->size += packet_bytes - sub_packet_size; size 1389 libavcodec/qdm2.c init_get_bits(&gb, packet->data, packet->size * 8); size 1621 libavcodec/qdm2.c int tmp_val, tmp, size; size 1681 libavcodec/qdm2.c size = bytestream2_get_be32(&gb); size 1683 libavcodec/qdm2.c if (size > bytestream2_get_bytes_left(&gb)) { size 1685 libavcodec/qdm2.c bytestream2_get_bytes_left(&gb), size); size 1689 libavcodec/qdm2.c av_log(avctx, AV_LOG_DEBUG, "size: %d\n", size); size 1850 libavcodec/qdm2.c int buf_size = avpkt->size; size 256 libavcodec/qdmc.c int ret, fft_size, fft_order, size, g, j, x; size 282 libavcodec/qdmc.c size = bytestream2_get_be32u(&b); size 283 libavcodec/qdmc.c if (size > bytestream2_get_bytes_left(&b)) { size 285 libavcodec/qdmc.c bytestream2_get_bytes_left(&b), size); size 756 libavcodec/qdmc.c if (avpkt->size < s->checksum_size) size 81 libavcodec/qdrw.c int size, left, code, pix; size 87 libavcodec/qdrw.c size = left = bytestream2_get_be16(gbc); size 89 libavcodec/qdrw.c size = left = bytestream2_get_byte(gbc); size 90 libavcodec/qdrw.c if (bytestream2_get_bytes_left(gbc) < size) size 136 libavcodec/qdrw.c int size, left, code, pix; size 141 libavcodec/qdrw.c size = left = bytestream2_get_be16(gbc); size 142 libavcodec/qdrw.c if (bytestream2_get_bytes_left(gbc) < size) size 180 libavcodec/qdrw.c int size, left, code, pix; size 185 libavcodec/qdrw.c size = left = bytestream2_get_be16(gbc); size 186 libavcodec/qdrw.c if (bytestream2_get_bytes_left(gbc) < size) size 224 libavcodec/qdrw.c int size, left, code, pix; size 229 libavcodec/qdrw.c size = left = bytestream2_get_be16(gbc); size 230 libavcodec/qdrw.c if (bytestream2_get_bytes_left(gbc) < size) size 300 libavcodec/qdrw.c bytestream2_init(&gbc, avpkt->data, avpkt->size); size 509 libavcodec/qdrw.c return avpkt->size; size 277 libavcodec/qpeg.c if (avpkt->size < 0x86) { size 282 libavcodec/qpeg.c bytestream2_init(&a->buffer, avpkt->data, avpkt->size); size 317 libavcodec/qpeg.c return avpkt->size; size 263 libavcodec/qsvdec.c if (avpkt->size) { size 265 libavcodec/qsvdec.c bs.DataLength = avpkt->size; size 411 libavcodec/qsvdec.c if (avpkt->size) { size 413 libavcodec/qsvdec.c bs.DataLength = avpkt->size; size 433 libavcodec/qsvdec.c ret = MFXVideoDECODE_DecodeFrameAsync(q->session, avpkt->size ? &bs : NULL, size 452 libavcodec/qsvdec.c bs.DataOffset = avpkt->size; size 480 libavcodec/qsvdec.c (!avpkt->size && av_fifo_size(q->async_fifo))) { size 576 libavcodec/qsvdec.c if (!pkt->size) size 127 libavcodec/qsvdec_h2645.c if (avpkt->size) { size 146 libavcodec/qsvdec_h2645.c if (s->buffer_pkt.size <= 0) { size 149 libavcodec/qsvdec_h2645.c return avpkt->size ? avpkt->size : ff_qsv_process_data(avctx, &s->qsv, frame, got_frame, avpkt); size 167 libavcodec/qsvdec_h2645.c s->buffer_pkt.size -= ret; size 171 libavcodec/qsvdec_h2645.c return avpkt->size; size 125 libavcodec/qsvdec_other.c if (avpkt->size) { size 143 libavcodec/qsvdec_other.c if (s->input_ref.size <= 0) { size 146 libavcodec/qsvdec_other.c return avpkt->size ? avpkt->size : ff_qsv_process_data(avctx, &s->qsv, frame, got_frame, avpkt); size 165 libavcodec/qsvdec_other.c s->input_ref.size -= ret; size 169 libavcodec/qsvdec_other.c return avpkt->size; size 1439 libavcodec/qsvenc.c bs->MaxLength = new_pkt.size; size 1551 libavcodec/qsvenc.c new_pkt.size = bs->DataLength; size 1590 libavcodec/qsvenc.c if (pkt->size < new_pkt.size) { size 1592 libavcodec/qsvenc.c pkt->size, new_pkt.size); size 1597 libavcodec/qsvenc.c memcpy(pkt->data, new_pkt.data, new_pkt.size); size 1598 libavcodec/qsvenc.c pkt->size = new_pkt.size; size 84 libavcodec/qsvenc_hevc.c ret = init_get_bits8(&gb, sps_nal.data, sps_nal.size); size 456 libavcodec/qtrle.c int ret, size; size 458 libavcodec/qtrle.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 461 libavcodec/qtrle.c if (avpkt->size < 8) { size 467 libavcodec/qtrle.c size = bytestream2_get_be32(&s->g) & 0x3FFFFFFF; size 468 libavcodec/qtrle.c if (size - avpkt->size > size * (int64_t)avctx->discard_damaged_percentage / 100) size 477 libavcodec/qtrle.c if (avpkt->size < 14) { size 542 libavcodec/qtrle.c int size; size 543 libavcodec/qtrle.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 545 libavcodec/qtrle.c if (pal && size == AVPALETTE_SIZE) { size 549 libavcodec/qtrle.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 572 libavcodec/qtrle.c return avpkt->size; size 380 libavcodec/qtrleenc.c pkt->size = encode_frame(s, pict, pkt->data); size 50 libavcodec/r210dec.c if (avpkt->size < 4 * aligned_width * avctx->height) { size 101 libavcodec/r210dec.c return avpkt->size; size 67 libavcodec/ra144dec.c int buf_size = avpkt->size; size 89 libavcodec/ra144enc.c static int quantize(int value, const int16_t *table, unsigned int size) size 91 libavcodec/ra144enc.c unsigned int low = 0, high = size - 1; size 498 libavcodec/ra144enc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 539 libavcodec/ra144enc.c avpkt->size = FRAME_SIZE; size 198 libavcodec/ra288.c int buf_size = avpkt->size; size 441 libavcodec/ralf.c if (table_bytes + 3 > avpkt->size || avpkt->size > RALF_MAX_PKT_SIZE) { size 451 libavcodec/ralf.c src_size = RALF_MAX_PKT_SIZE + avpkt->size; size 453 libavcodec/ralf.c avpkt->size - 2 - table_bytes); size 455 libavcodec/ralf.c if (avpkt->size == RALF_MAX_PKT_SIZE) { size 456 libavcodec/ralf.c memcpy(ctx->pkt, avpkt->data, avpkt->size); size 460 libavcodec/ralf.c return avpkt->size; size 463 libavcodec/ralf.c src_size = avpkt->size; size 517 libavcodec/ralf.c return avpkt->size; size 112 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 172 libavcodec/rasc.c unsigned size, unsigned uncompressed_size) size 189 libavcodec/rasc.c s->zstream.avail_in = FFMIN(size, bytestream2_get_bytes_left(gb)); size 205 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 227 libavcodec/rasc.c size - (bytestream2_tell(gb) - pos), size 314 libavcodec/rasc.c bytestream2_skip(gb, size - (bytestream2_tell(gb) - pos)); size 329 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 360 libavcodec/rasc.c ret = decode_zlib(avctx, avpkt, size, uncompressed_size); size 465 libavcodec/rasc.c bytestream2_skip(gb, size - (bytestream2_tell(gb) - pos)); size 471 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 481 libavcodec/rasc.c ret = decode_fint(avctx, avpkt, size); size 528 libavcodec/rasc.c bytestream2_skip(gb, size - (bytestream2_tell(gb) - pos)); size 534 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 559 libavcodec/rasc.c size - (bytestream2_tell(gb) - pos), size 565 libavcodec/rasc.c bytestream2_skip(gb, size - (bytestream2_tell(gb) - pos)); size 574 libavcodec/rasc.c AVPacket *avpkt, unsigned size) size 585 libavcodec/rasc.c bytestream2_skip(gb, size - (bytestream2_tell(gb) - pos)); size 677 libavcodec/rasc.c bytestream2_init(gb, avpkt->data, avpkt->size); size 680 libavcodec/rasc.c return avpkt->size; size 685 libavcodec/rasc.c unsigned type, size = 0; size 696 libavcodec/rasc.c size = bytestream2_get_le32(gb); size 697 libavcodec/rasc.c if (bytestream2_get_bytes_left(gb) < size) size 703 libavcodec/rasc.c ret = decode_fint(avctx, avpkt, size); size 706 libavcodec/rasc.c ret = decode_kfrm(avctx, avpkt, size); size 709 libavcodec/rasc.c ret = decode_dlta(avctx, avpkt, size); size 712 libavcodec/rasc.c ret = decode_move(avctx, avpkt, size); size 715 libavcodec/rasc.c ret = decode_mous(avctx, avpkt, size); size 718 libavcodec/rasc.c ret = decode_mpos(avctx, avpkt, size); size 721 libavcodec/rasc.c bytestream2_skip(gb, size); size 745 libavcodec/rasc.c return avpkt->size; size 728 libavcodec/ratecontrol.c static void update_predictor(Predictor *p, double q, double var, double size) size 730 libavcodec/ratecontrol.c double new_coeff = size * q / (var + 1); size 176 libavcodec/rawdec.c int buf_size = avpkt->size; size 198 libavcodec/rawdec.c stride = avpkt->size / avctx->height; size 200 libavcodec/rawdec.c av_log(avctx, AV_LOG_DEBUG, "PACKET SIZE: %d, STRIDE: %d\n", avpkt->size, stride); size 202 libavcodec/rawdec.c if (stride == 0 || avpkt->size < stride * avctx->height) { size 203 libavcodec/rawdec.c av_log(avctx, AV_LOG_ERROR, "Packet too small (%d)\n", avpkt->size); size 267 libavcodec/rawdec.c for (i = 0, j = 0; j < buf_size && i<avpkt->size; i++, j++) { size 277 libavcodec/rawdec.c for (i = 0, j = 0; 2 * j + 1 < buf_size && i<avpkt->size; i++, j++) { size 288 libavcodec/rawdec.c for (i = 0, j = 0; 4 * j + 3 < buf_size && i<avpkt->size; i++, j++) { size 302 libavcodec/rawdec.c for (i = 0, j = 0; 8 * j + 7 < buf_size && i<avpkt->size; i++, j++) { size 396 libavcodec/rawdec.c int pal_size = avpkt->size - vid_size; size 398 libavcodec/rawdec.c if (avpkt->size > vid_size && pal_size <= AVPALETTE_SIZE) { size 63 libavcodec/rawenc.c if ((ret = av_image_copy_to_buffer(pkt->data, pkt->size, size 68 libavcodec/realtextdec.c if (ptr && avpkt->size > 0 && !rt_event_to_ass(&buf, ptr)) size 74 libavcodec/realtextdec.c return avpkt->size; size 41 libavcodec/rectangle.h static av_always_inline void fill_rectangle(void *vp, int w, int h, int stride, uint32_t val, int size){ size 43 libavcodec/rectangle.h av_assert2(size==1 || size==2 || size==4); size 46 libavcodec/rectangle.h w *= size; size 47 libavcodec/rectangle.h stride *= size; size 52 libavcodec/rectangle.h const uint16_t v= size==4 ? val : val*0x0101; size 60 libavcodec/rectangle.h const uint32_t v= size==4 ? val : size==2 ? val*0x00010001 : val*0x01010101; size 70 libavcodec/rectangle.h const uint64_t v= size==2 ? val*0x0001000100010001ULL : val*0x0100000001ULL; size 89 libavcodec/rectangle.h const uint32_t v= size==2 ? val*0x00010001 : val; size 56 libavcodec/remove_extradata_bsf.c int i = s->parser->parser->split(s->avctx, pkt->data, pkt->size); size 58 libavcodec/remove_extradata_bsf.c pkt->size -= i; size 89 libavcodec/rkmppdec.c static int rkmpp_write_data(AVCodecContext *avctx, uint8_t *buffer, int size, int64_t pts) size 97 libavcodec/rkmppdec.c ret = mpp_packet_init(&packet, buffer, size); size 111 libavcodec/rkmppdec.c av_log(avctx, AV_LOG_DEBUG, "Buffer full writing %d bytes to decoder\n", size); size 117 libavcodec/rkmppdec.c av_log(avctx, AV_LOG_DEBUG, "Wrote %d bytes to decoder\n", size); size 276 libavcodec/rkmppdec.c if (!avpkt->size) { size 300 libavcodec/rkmppdec.c ret = rkmpp_write_data(avctx, avpkt->data, avpkt->size, avpkt->pts); size 424 libavcodec/rkmppdec.c desc->objects[0].size = mpp_buffer_get_size(buffer); size 60 libavcodec/rl2.c static void rl2_rle_decode(Rl2Context *s, const uint8_t *in, int size, size 68 libavcodec/rl2.c const uint8_t *in_end = in + size; size 186 libavcodec/rl2.c int ret, buf_size = avpkt->size; size 204 libavcodec/roqvideodec.c int buf_size = avpkt->size; size 131 libavcodec/roqvideoenc.c int x2, int y2, const int *stride1, const int *stride2, int size) size 138 libavcodec/roqvideoenc.c for (i=0; i<size; i++) size 140 libavcodec/roqvideoenc.c buf2[k] + (y2+i)*stride2[k] + x2, size); size 147 libavcodec/roqvideoenc.c int size) size 161 libavcodec/roqvideoenc.c if ((unsigned) mx > enc->width-size || (unsigned) my > enc->height-size) size 167 libavcodec/roqvideoenc.c size); size 173 libavcodec/roqvideoenc.c static inline int squared_diff_macroblock(uint8_t a[], uint8_t b[], int size) size 179 libavcodec/roqvideoenc.c sdiff += bias*eval_sse(a, b, size*size); size 180 libavcodec/roqvideoenc.c a += size*size; size 181 libavcodec/roqvideoenc.c b += size*size; size 782 libavcodec/roqvideoenc.c int size, int cbsize) size 785 libavcodec/roqvideoenc.c int c_size = size*size/4; size 793 libavcodec/roqvideoenc.c if (size == 4) { size 822 libavcodec/roqvideoenc.c if (size == 4) size 1064 libavcodec/roqvideoenc.c int size, ret; size 1077 libavcodec/roqvideoenc.c size = ((enc->width * enc->height / 64) * 138 + 7) / 8 + 256 * (6 + 4) + 8; size 1078 libavcodec/roqvideoenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size, 0)) < 0) size 1104 libavcodec/roqvideoenc.c pkt->size = enc->out_buf - pkt->data; size 265 libavcodec/rpza.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 277 libavcodec/rpza.c return avpkt->size; size 161 libavcodec/rscc.c bytestream2_init(gbc, avpkt->data, avpkt->size); size 165 libavcodec/rscc.c av_log(avctx, AV_LOG_ERROR, "Packet too small (%d)\n", avpkt->size); size 174 libavcodec/rscc.c return avpkt->size; size 345 libavcodec/rscc.c int size; size 348 libavcodec/rscc.c &size); size 349 libavcodec/rscc.c if (palette && size == AVPALETTE_SIZE) { size 353 libavcodec/rscc.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 363 libavcodec/rscc.c ret = avpkt->size; size 709 libavcodec/rv10.c int buf_size = avpkt->size; size 741 libavcodec/rv10.c int size, size2; size 747 libavcodec/rv10.c size = buf_size - offset; size 749 libavcodec/rv10.c size = get_slice_offset(avctx, slices_hdr, i + 1) - offset; size 756 libavcodec/rv10.c if (size <= 0 || size2 <= 0 || size 757 libavcodec/rv10.c offset + FFMAX(size, size2) > buf_size) size 760 libavcodec/rv10.c if ((ret = rv10_decode_packet(avctx, buf + offset, size, size2, buf_size)) < 0) size 763 libavcodec/rv10.c if (ret > 8 * size) size 791 libavcodec/rv10.c return avpkt->size; size 109 libavcodec/rv34.c static void rv34_gen_vlc(const uint8_t *bits, int size, VLC *vlc, const uint8_t *insyms, size 118 libavcodec/rv34.c for(i = 0; i < size; i++){ size 1618 libavcodec/rv34.c int buf_size = avpkt->size; size 1671 libavcodec/rv34.c return avpkt->size; size 1765 libavcodec/rv34.c int size; size 1771 libavcodec/rv34.c size = offset1 - offset; size 1784 libavcodec/rv34.c size = offset2 - offset; size 1788 libavcodec/rv34.c av_assert0 (size >= 0 && size <= buf_size - offset); size 1789 libavcodec/rv34.c last = rv34_decode_slice(r, r->si.end, buf + offset, size); size 1816 libavcodec/rv34.c return avpkt->size; size 381 libavcodec/rv40dsp.c #define RV40_WEIGHT_FUNC(size) \ size 382 libavcodec/rv40dsp.c static void rv40_weight_func_rnd_ ## size (uint8_t *dst, uint8_t *src1, uint8_t *src2, int w1, int w2, ptrdiff_t stride)\ size 386 libavcodec/rv40dsp.c for (j = 0; j < size; j++) {\ size 387 libavcodec/rv40dsp.c for (i = 0; i < size; i++)\ size 398 libavcodec/rv40dsp.c for (j = 0; j < size; j++) {\ size 399 libavcodec/rv40dsp.c for (i = 0; i < size; i++)\ size 98 libavcodec/s302m.c int buf_size = avpkt->size; size 193 libavcodec/s302m.c return avpkt->size; size 201 libavcodec/s302m.c return avpkt->size; size 141 libavcodec/samidec.c if (ptr && avpkt->size > 0) { size 151 libavcodec/samidec.c return avpkt->size; size 770 libavcodec/sanm.c uint8_t *prev2, int stride, int tbl, int size) size 783 libavcodec/sanm.c if (size == 2) { size 791 libavcodec/sanm.c size >>= 1; size 792 libavcodec/sanm.c if (process_block(ctx, dst, prev1, prev2, stride, tbl, size)) size 794 libavcodec/sanm.c if (process_block(ctx, dst + size, prev1 + size, prev2 + size, size 795 libavcodec/sanm.c stride, tbl, size)) size 797 libavcodec/sanm.c dst += size * stride; size 798 libavcodec/sanm.c prev1 += size * stride; size 799 libavcodec/sanm.c prev2 += size * stride; size 800 libavcodec/sanm.c if (process_block(ctx, dst, prev1, prev2, stride, tbl, size)) size 802 libavcodec/sanm.c if (process_block(ctx, dst + size, prev1 + size, prev2 + size, size 803 libavcodec/sanm.c stride, tbl, size)) size 812 libavcodec/sanm.c for (k = 0; k < size; k++) size 813 libavcodec/sanm.c memset(dst + k * stride, t, size); size 820 libavcodec/sanm.c pglyph = (size == 8) ? ctx->p8x8glyphs[code] : ctx->p4x4glyphs[code]; size 823 libavcodec/sanm.c for (k = 0; k < size; k++) size 824 libavcodec/sanm.c for (t = 0; t < size; t++) size 828 libavcodec/sanm.c for (k = 0; k < size; k++) size 829 libavcodec/sanm.c memcpy(dst + k * stride, prev1 + k * stride, size); size 836 libavcodec/sanm.c for (k = 0; k < size; k++) size 837 libavcodec/sanm.c memset(dst + k * stride, t, size); size 847 libavcodec/sanm.c (ctx->buf_size >> 1) - index < mx + size + (my + size - 1) * stride) { size 852 libavcodec/sanm.c for (k = 0; k < size; k++) size 853 libavcodec/sanm.c memcpy(dst + k * stride, prev2 + mx + (my + k) * stride, size); size 1396 libavcodec/sanm.c bytestream2_init(&ctx->gb, pkt->data, pkt->size); size 1402 libavcodec/sanm.c uint32_t sig, size; size 1406 libavcodec/sanm.c size = bytestream2_get_be32u(&ctx->gb); size 1409 libavcodec/sanm.c if (bytestream2_get_bytes_left(&ctx->gb) < size) { size 1410 libavcodec/sanm.c av_log(avctx, AV_LOG_ERROR, "Incorrect chunk size %"PRIu32".\n", size); size 1415 libavcodec/sanm.c if (size != PALETTE_SIZE * 3) { size 1417 libavcodec/sanm.c "Incorrect palette block size %"PRIu32".\n", size); size 1424 libavcodec/sanm.c if (size < 16) size 1430 libavcodec/sanm.c if (size == 6 || size == 4) { size 1442 libavcodec/sanm.c if (size < PALETTE_DELTA * 2 + 4) { size 1445 libavcodec/sanm.c size); size 1451 libavcodec/sanm.c if (size >= PALETTE_DELTA * 5 + 4) { size 1466 libavcodec/sanm.c bytestream2_skip(&ctx->gb, size); size 1472 libavcodec/sanm.c bytestream2_seek(&ctx->gb, pos + size, SEEK_SET); size 1473 libavcodec/sanm.c if (size & 1) size 1515 libavcodec/sanm.c return pkt->size; size 348 libavcodec/sbcdec.c frame_length = sbc_unpack_frame(avpkt->data, &sbc->frame, avpkt->size); size 137 libavcodec/sbcenc.c init_put_bits(&pb, avpkt->data + 4, avpkt->size); size 510 libavcodec/scpr.c bytestream2_init(gb, avpkt->data, avpkt->size); size 572 libavcodec/scpr.c return avpkt->size; size 623 libavcodec/scpr.c return avpkt->size; size 114 libavcodec/scpr3.c a = 256 - m->size; size 115 libavcodec/scpr3.c for (int b = 0; b < m->size; b++) { size 125 libavcodec/scpr3.c if (m->size == max) size 128 libavcodec/scpr3.c for (int c = m->size - 1; c >= index; c--) { size 135 libavcodec/scpr3.c m->size++; size 160 libavcodec/scpr3.c for (q = 0, g = 0, e = 0; q < m->size; q++) { size 255 libavcodec/scpr3.c a = 256 - m->size << (m->fshift > 0 ? m->fshift - 1 : 0); size 271 libavcodec/scpr3.c for (a = 0, b = m->size; a < b; a++) size 283 libavcodec/scpr3.c a = 256 - m->size << (0 < m->fshift ? m->fshift - 1 : 0); size 284 libavcodec/scpr3.c for (b = 0, c = m->size; b < c; b++) { size 303 libavcodec/scpr3.c for (c = m->size, d = 256 - c, e = 0; e < c; e++) size 341 libavcodec/scpr3.c n.size = c + 1; size 349 libavcodec/scpr3.c for (c = 0, e = n.size - 1; c < e; c++) { size 350 libavcodec/scpr3.c for (g = c + 1, f = n.size; g < f; g++) { size 380 libavcodec/scpr3.c int size; size 382 libavcodec/scpr3.c if (m->size >= 40 || m->size >= m->length) size 385 libavcodec/scpr3.c size = m->size; size 386 libavcodec/scpr3.c m->symbols[size] = sym; size 387 libavcodec/scpr3.c m->freqs[2 * size] = f1; size 388 libavcodec/scpr3.c m->freqs[2 * size + 1] = f2; size 389 libavcodec/scpr3.c m->cnts[size] = f1 - (f1 >> 1); size 390 libavcodec/scpr3.c m->size++; size 392 libavcodec/scpr3.c return size; size 425 libavcodec/scpr3.c for (c = 0, d = 0, e = 0, f = 0, g = 0, q = m->size; g < q; g++) { size 488 libavcodec/scpr3.c n.size = m->size + 1; size 489 libavcodec/scpr3.c b = m->size; size 502 libavcodec/scpr3.c int size, i; size 504 libavcodec/scpr3.c size = m->size; size 506 libavcodec/scpr3.c n.size = size; size 507 libavcodec/scpr3.c for (i = 0; i < n.size; i++) { size 510 libavcodec/scpr3.c AV_QSORT(n.symbols, size, uint8_t, cmpbytes); size 511 libavcodec/scpr3.c for (i = 0; i < n.size; i++) { size 528 libavcodec/scpr3.c int i, size, freqs; size 531 libavcodec/scpr3.c size = m->size; size 532 libavcodec/scpr3.c n.size = size; size 533 libavcodec/scpr3.c for (i = 0; i < size; i++) { size 536 libavcodec/scpr3.c AV_QSORT(n.symbols, size, uint8_t, cmpbytes); size 537 libavcodec/scpr3.c size = n.size; size 538 libavcodec/scpr3.c for (i = 0; i < size; i++) { size 546 libavcodec/scpr3.c a = 256 - size; size 547 libavcodec/scpr3.c for (i = 0; i < size; i++, a += freqs) size 559 libavcodec/scpr3.c uint32_t size; size 561 libavcodec/scpr3.c size = m->size; size 562 libavcodec/scpr3.c for (int i = 0; i < size; i++) { size 564 libavcodec/scpr3.c if (size <= 4) size 571 libavcodec/scpr3.c if (size >= 14) size 574 libavcodec/scpr3.c m->symbols[size] = val; size 575 libavcodec/scpr3.c m->size++; size 589 libavcodec/scpr3.c c = m->size; size 617 libavcodec/scpr3.c n.size = c; size 641 libavcodec/scpr3.c uint32_t size; size 644 libavcodec/scpr3.c n.size = m->size + 1; size 646 libavcodec/scpr3.c size = m->size; size 647 libavcodec/scpr3.c for (int i = 0; i < size; i++) size 649 libavcodec/scpr3.c n.symbols[size] = val; size 658 libavcodec/scpr3.c uint32_t size; size 660 libavcodec/scpr3.c size = m->size; size 661 libavcodec/scpr3.c for (int i = 0; i < size; i++) { size 665 libavcodec/scpr3.c if (m->size <= 32) size 673 libavcodec/scpr3.c if (size >= 64) size 676 libavcodec/scpr3.c m->symbols[size] = val; size 677 libavcodec/scpr3.c m->size++; size 695 libavcodec/scpr3.c for (c = m->size, d = (4096 - (256 - c)) / (c + 1) | 0, e = d - (d >> 1), g = 0; g < c;) { size 724 libavcodec/scpr3.c uint32_t size = m->size; size 726 libavcodec/scpr3.c for (int i = 0; i < size; i++) { size 731 libavcodec/scpr3.c if (size >= 256) size 734 libavcodec/scpr3.c m->symbols[size] = val; size 735 libavcodec/scpr3.c m->size++; size 803 libavcodec/scpr3.c a = 256 - m->size; size 804 libavcodec/scpr3.c for (int b = 0; b < m->size; b++) size 816 libavcodec/scpr3.c for (c = 0, e = 0; c < m->size && m->symbols[c] < value; c++) { size 824 libavcodec/scpr3.c for (; c < m->size; g++, c++) { size 828 libavcodec/scpr3.c n.size = m->size + 1; size 853 libavcodec/scpr3.c m->size = 1; size 875 libavcodec/scpr3.c param = m->freqs[0] + m->freqs[1] + m->freqs[2] + m->freqs[3] + 256 - m->size; size 38 libavcodec/scpr3.h uint16_t size; size 114 libavcodec/screenpresso.c if (avpkt->size < 3) { size 115 libavcodec/screenpresso.c av_log(avctx, AV_LOG_ERROR, "Packet too small (%d)\n", avpkt->size); size 143 libavcodec/screenpresso.c avpkt->data + 2, avpkt->size - 2); size 183 libavcodec/screenpresso.c return avpkt->size; size 212 libavcodec/sgidec.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 214 libavcodec/sgidec.c av_log(avctx, AV_LOG_ERROR, "buf_size too small (%d)\n", avpkt->size); size 279 libavcodec/sgidec.c return avpkt->size; size 174 libavcodec/sgienc.c bytestream2_init_writer(&pbc, pkt->data, pkt->size); size 257 libavcodec/sgienc.c pkt->size = bytestream2_tell_p(&pbc); size 48 libavcodec/sgirledec.c void rbg323_to_bgr8(uint8_t *dst, const uint8_t *src, int size) size 51 libavcodec/sgirledec.c for (i = 0; i < size; i++) size 121 libavcodec/sgirledec.c ret = decode_sgirle8(avctx, frame->data[0], avpkt->data, avpkt->size, size 131 libavcodec/sgirledec.c return avpkt->size; size 1815 libavcodec/sheervideo.c if (avpkt->size <= 20) size 2039 libavcodec/sheervideo.c if (avpkt->size < 20 + avctx->width * avctx->height / 16) { size 2056 libavcodec/sheervideo.c if ((ret = init_get_bits8(&gb, avpkt->data + 20, avpkt->size - 20)) < 0) size 2063 libavcodec/sheervideo.c return avpkt->size; size 525 libavcodec/shorten.c int buf_size = avpkt->size; size 579 libavcodec/shorten.c if (avpkt->size) { size 600 libavcodec/shorten.c return avpkt->size; size 38 libavcodec/sinewin.h #define SINETABLE(size) \ size 39 libavcodec/sinewin.h SINETABLE_CONST DECLARE_ALIGNED(32, INTFLOAT, AAC_RENAME(ff_sine_##size))[size] size 41 libavcodec/sinewin.h #define SINETABLE120960(size) \ size 42 libavcodec/sinewin.h DECLARE_ALIGNED(32, INTFLOAT, AAC_RENAME(ff_sine_##size))[size] size 34 libavcodec/sinewin_tablegen_template.c #define SINETABLE(size) \ size 35 libavcodec/sinewin_tablegen_template.c INTFLOAT AAC_RENAME(ff_sine_##size)[size] size 36 libavcodec/sinewin_tablegen_template.c #define SINETABLE120960(size) \ size 37 libavcodec/sinewin_tablegen_template.c INTFLOAT AAC_RENAME(ff_sine_##size)[size] size 536 libavcodec/sipr.c if (avpkt->size < (mode_par->bits_per_frame >> 3)) { size 539 libavcodec/sipr.c avpkt->size); size 683 libavcodec/siren.c if ((ret = init_get_bits8(gb, avpkt->data, avpkt->size)) < 0) size 745 libavcodec/siren.c return avpkt->size; size 187 libavcodec/smacker.c static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int **recodes, int *last, int size) size 197 libavcodec/smacker.c if(size >= UINT_MAX>>4){ // (((size + 3) >> 2) + 3) << 2 must not overflow size 279 libavcodec/smacker.c huff.length = ((size + 3) >> 2) + 4; size 430 libavcodec/smacker.c if (avpkt->size <= 769) size 438 libavcodec/smacker.c bytestream2_init(&gb2, avpkt->data, avpkt->size); size 454 libavcodec/smacker.c if ((ret = init_get_bits8(&gb, avpkt->data + 769, avpkt->size - 769)) < 0) size 568 libavcodec/smacker.c return avpkt->size; size 637 libavcodec/smacker.c int buf_size = avpkt->size; size 436 libavcodec/smc.c int buf_size = avpkt->size; size 443 libavcodec/smc.c if (total_blocks / 1024 > avpkt->size) size 206 libavcodec/smvjpegdec.c return avpkt->size; size 51 libavcodec/snappy.c static int snappy_literal(GetByteContext *gb, uint8_t *p, int size, int val) size 72 libavcodec/snappy.c if (size < len) size 80 libavcodec/snappy.c static int snappy_copy(uint8_t *start, uint8_t *p, int size, size 85 libavcodec/snappy.c if (off > p - start || size < len) size 97 libavcodec/snappy.c int size, int val) size 102 libavcodec/snappy.c return snappy_copy(start, p, size, off, len); size 106 libavcodec/snappy.c int size, int val) size 111 libavcodec/snappy.c return snappy_copy(start, p, size, off, len); size 115 libavcodec/snappy.c int size, int val) size 120 libavcodec/snappy.c return snappy_copy(start, p, size, off, len); size 143 libavcodec/snappy.c int ff_snappy_uncompress(GetByteContext *gb, uint8_t *buf, int64_t *size) size 152 libavcodec/snappy.c if (len > *size) size 155 libavcodec/snappy.c *size = len; size 58 libavcodec/snappy.h int ff_snappy_uncompress(GetByteContext *gb, uint8_t *buf, int64_t *size); size 796 libavcodec/snow_dwt.c int size = w >> (dec_count - level); size 797 libavcodec/snow_dwt.c int sx = (ori & 1) ? size : 0; size 801 libavcodec/snow_dwt.c for (i = 0; i < size; i++) size 802 libavcodec/snow_dwt.c for (j = 0; j < size; j++) { size 454 libavcodec/snowdec.c int buf_size = avpkt->size; size 152 libavcodec/snowenc.c int size= s->b_width * s->b_height << 2*s->block_max_depth; size 154 libavcodec/snowenc.c s->ref_mvs[i]= av_mallocz_array(size, sizeof(int16_t[2])); size 155 libavcodec/snowenc.c s->ref_scores[i]= av_mallocz_array(size, sizeof(uint32_t)); size 1582 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1773 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1803 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1915 libavcodec/snowenc.c pkt->size = ff_rac_terminate(c, 0); size 736 libavcodec/sonic.c ff_init_range_encoder(&c, avpkt->data, avpkt->size); size 848 libavcodec/sonic.c avpkt->size = ff_rac_terminate(&c, 0); size 998 libavcodec/sonic.c int buf_size = avpkt->size; size 39 libavcodec/sp5xdec.c int buf_size = avpkt->size; size 89 libavcodec/sp5xdec.c avpkt_recoded.size = j; size 94 libavcodec/sp5xdec.c return i < 0 ? i : avpkt->size; size 421 libavcodec/speedhq.c int buf_size = avpkt->size; size 61 libavcodec/srtdec.c int size, ret; size 62 libavcodec/srtdec.c const uint8_t *p = av_packet_get_side_data(avpkt, AV_PKT_DATA_SUBTITLE_POSITION, &size); size 65 libavcodec/srtdec.c if (p && size == 16) { size 72 libavcodec/srtdec.c if (avpkt->size <= 0) size 73 libavcodec/srtdec.c return avpkt->size; size 85 libavcodec/srtdec.c return avpkt->size; size 177 libavcodec/srtenc.c static void srt_font_size_cb(void *priv, int size) size 179 libavcodec/srtenc.c srt_stack_push_pop(priv, 'f', size < 0); size 180 libavcodec/srtenc.c if (size >= 0) size 181 libavcodec/srtenc.c srt_print(priv, "<font size=\"%d\">", size); size 31 libavcodec/startcode.c int ff_startcode_find_candidate_c(const uint8_t *buf, int size) size 40 libavcodec/startcode.c while (i < size && size 46 libavcodec/startcode.c while (i < size && size 53 libavcodec/startcode.c for (; i < size; i++) size 30 libavcodec/startcode.h int ff_startcode_find_candidate_c(const uint8_t *buf, int size); size 59 libavcodec/subviewerdec.c if (ptr && avpkt->size > 0 && !subviewer_event_to_ass(&buf, ptr)) size 65 libavcodec/subviewerdec.c return avpkt->size; size 33 libavcodec/sunrast.c const uint8_t *buf_end = avpkt->data + avpkt->size; size 40 libavcodec/sunrast.c if (avpkt->size < 32) size 38 libavcodec/sunrastenc.c int size; size 183 libavcodec/sunrastenc.c s->size = 32 + s->maplength + s->length * s->type; size 194 libavcodec/sunrastenc.c if ((ret = ff_alloc_packet2(avctx, avpkt, s->size, 0)) < 0) size 197 libavcodec/sunrastenc.c bytestream2_init_writer(&s->p, avpkt->data, avpkt->size); size 208 libavcodec/sunrastenc.c avpkt->size = bytestream2_tell_p(&s->p); size 617 libavcodec/svq1dec.c int buf_size = avpkt->size; size 81 libavcodec/svq1enc.c intptr_t size) size 85 libavcodec/svq1enc.c for (i = 0; i < size; i++) size 99 libavcodec/svq1enc.c int size = w * h; size 140 libavcodec/svq1enc.c best_mean = block_sum[0] + (size >> 1) >> (level + 3); size 153 libavcodec/svq1enc.c vector = codebook + stage * size * 16 + i * size; size 154 libavcodec/svq1enc.c sqr = s->ssd_int8_vs_int16(vector, block[stage], size); size 158 libavcodec/svq1enc.c int mean = diff + (size >> 1) >> (level + 3); size 168 libavcodec/svq1enc.c vector = codebook + stage * size * 16 + best_vector[stage] * size; size 169 libavcodec/svq1enc.c for (j = 0; j < size; j++) size 614 libavcodec/svq1enc.c init_put_bits(&s->pb, pkt->data, pkt->size); size 659 libavcodec/svq1enc.c pkt->size = put_bits_count(&s->pb) / 8; size 79 libavcodec/svq1enc.h intptr_t size); size 506 libavcodec/svq3.c static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode, size 510 libavcodec/svq3.c const int part_width = ((size & 5) == 4) ? 4 : 16 >> (size & 1); size 511 libavcodec/svq3.c const int part_height = 16 >> ((unsigned)(size + 1) / 3); size 1134 libavcodec/svq3.c unsigned int size; size 1190 libavcodec/svq3.c size = AV_RB32(&extradata[4]); size 1191 libavcodec/svq3.c if (size > extradata_end - extradata - 8) { size 1195 libavcodec/svq3.c init_get_bits(&gb, extradata + 8, size * 8); size 1291 libavcodec/svq3.c size - offset) != Z_OK) { size 1409 libavcodec/svq3.c int buf_size = avpkt->size; size 128 libavcodec/tak.c int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size) size 131 libavcodec/tak.c int ret = init_get_bits8(&gb, buf, size); size 151 libavcodec/tak.h int avpriv_tak_parse_streaminfo(TAKStreamInfo *s, const uint8_t *buf, int size); size 390 libavcodec/takdec.c int dshift, size, filter_quant, filter_order; size 425 libavcodec/takdec.c size = get_bits1(gb) + 6; size 436 libavcodec/takdec.c s->predictors[2] = get_sbits(gb, size) * (1 << (10 - size)); size 437 libavcodec/takdec.c s->predictors[3] = get_sbits(gb, size) * (1 << (10 - size)); size 439 libavcodec/takdec.c int tmp = size - get_bits1(gb); size 444 libavcodec/takdec.c s->predictors[i] = get_sbits(gb, x) * (1 << (10 - size)); size 685 libavcodec/takdec.c if (pkt->size < TAK_MIN_FRAME_HEADER_BYTES) size 688 libavcodec/takdec.c if ((ret = init_get_bits8(gb, pkt->data, pkt->size)) < 0) size 914 libavcodec/takdec.c return pkt->size; size 121 libavcodec/targa.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 297 libavcodec/targa.c return avpkt->size; size 42 libavcodec/targa_y216dec.c if (avpkt->size < 4 * avctx->height * aligned_width) { size 73 libavcodec/targa_y216dec.c return avpkt->size; size 180 libavcodec/targaenc.c pkt->size = out + 26 - pkt->data; size 351 libavcodec/tdsc.c jpkt.size = tile_size; size 541 libavcodec/tdsc.c ret = uncompress(ctx->deflatebuffer, &dlen, avpkt->data, avpkt->size); size 615 libavcodec/tdsc.c return avpkt->size; size 73 libavcodec/tests/avpacket.c avpkt->size = strlen(data); size 45 libavcodec/tests/motion.c static void fill_random(uint8_t *tab, int size) size 51 libavcodec/tests/motion.c for(i=0;i<size;i++) { size 55 libavcodec/textdec.c if (ptr && avpkt->size > 0 && *ptr) { size 56 libavcodec/textdec.c ff_ass_bprint_text_event(&buf, ptr, avpkt->size, text->linebreaks, text->keep_ass_markup); size 63 libavcodec/textdec.c return avpkt->size; size 237 libavcodec/tiertexseqv.c int buf_size = avpkt->size; size 335 libavcodec/tiff.c static int deinvert_buffer(TiffContext *s, const uint8_t *src, int size) size 339 libavcodec/tiff.c av_fast_padded_malloc(&s->deinvert_buf, &s->deinvert_buf_size, size); size 342 libavcodec/tiff.c for (i = 0; i < size; i++) size 391 libavcodec/tiff.c int size) size 397 libavcodec/tiff.c zstream.avail_in = size; size 412 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines, size 423 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) { size 429 libavcodec/tiff.c ret = tiff_uncompress(zbuf, &outlen, src, size); size 458 libavcodec/tiff.c int size) size 464 libavcodec/tiff.c stream.avail_in = size; size 479 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines, size 488 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) { size 494 libavcodec/tiff.c ret = tiff_uncompress_lzma(buf, &outlen, src, size); size 522 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines) size 528 libavcodec/tiff.c av_fast_padded_malloc(&s->fax_buffer, &s->fax_buffer_size, size); size 538 libavcodec/tiff.c memcpy(src2, src, size); size 540 libavcodec/tiff.c for (i = 0; i < size; i++) size 543 libavcodec/tiff.c memset(src2 + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 544 libavcodec/tiff.c ret = ff_ccitt_unpack(s->avctx, src2, size, dst, lines, stride, size 557 libavcodec/tiff.c const uint8_t *src, int size, int strip_start, int lines) size 572 libavcodec/tiff.c if (size <= 0) size 606 libavcodec/tiff.c return tiff_unpack_zlib(s, p, dst, stride, src, size, width, lines, size 617 libavcodec/tiff.c return tiff_unpack_lzma(s, p, dst, stride, src, size, width, lines, size 627 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) size 631 libavcodec/tiff.c if (size > 1 && !src[0] && (src[1]&1)) { size 634 libavcodec/tiff.c if ((ret = ff_lzw_decode_init(s->lzw, 8, src, size, FF_LZW_TIFF)) < 0) { size 663 libavcodec/tiff.c return tiff_unpack_fax(s, dst, stride, src, size, width, lines); size 666 libavcodec/tiff.c bytestream2_init(&s->gb, src, size); size 686 libavcodec/tiff.c if (src - ssrc > size) { size 696 libavcodec/tiff.c if (ssrc + size - src < width) size 733 libavcodec/tiff.c if (ssrc + size - src < 2) { size 741 libavcodec/tiff.c ssrc + size - src < code) { size 891 libavcodec/tiff.c jpkt.size = tile_byte_count; size 1033 libavcodec/tiff.c return avpkt->size; size 1783 libavcodec/tiff.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 1789 libavcodec/tiff.c } else if (off >= UINT_MAX - 14 || avpkt->size < off + 14) { size 1854 libavcodec/tiff.c if (off >= UINT_MAX - 14 || avpkt->size < off + 14) { size 1924 libavcodec/tiff.c s->stripsize = avpkt->size - s->stripoff; size 1928 libavcodec/tiff.c if (s->stripsizesoff >= (unsigned)avpkt->size) size 1931 libavcodec/tiff.c avpkt->size - s->stripsizesoff); size 1934 libavcodec/tiff.c if (s->strippos >= (unsigned)avpkt->size) size 1937 libavcodec/tiff.c avpkt->size - s->strippos); size 1974 libavcodec/tiff.c int remaining = avpkt->size; size 1999 libavcodec/tiff.c if (soff > avpkt->size || ssize > avpkt->size - soff || ssize > remaining) { size 2124 libavcodec/tiff.c return avpkt->size; size 342 libavcodec/tiffenc.c s->buf_size = pkt->size; size 516 libavcodec/tiffenc.c pkt->size = ptr - pkt->data; size 52 libavcodec/tmv.c if (avpkt->size < 2*char_rows*char_cols) { size 80 libavcodec/tmv.c return avpkt->size; size 96 libavcodec/trace_headers_bsf.c av_log(bsf, AV_LOG_INFO, "Packet: %d bytes%s.\n", pkt->size, tmp); size 52 libavcodec/truehd_core_bsf.c if (pkt->size < 4) { size 58 libavcodec/truehd_core_bsf.c if (in_size < 4 || in_size > pkt->size) { size 63 libavcodec/truehd_core_bsf.c ret = init_get_bits8(&gbc, pkt->data + 4, pkt->size - 4); size 115 libavcodec/truehd_core_bsf.c pkt->size = out_size; size 50 libavcodec/truemotion1.c int size; size 326 libavcodec/truemotion1.c if (header.header_size + 1 > s->size) { size 447 libavcodec/truemotion1.c if (s->avctx->width * s->avctx->height / 2048 + header.header_size > s->size) size 454 libavcodec/truemotion1.c s->index_stream_size = s->size - (s->index_stream - s->buf); size 878 libavcodec/truemotion1.c int ret, buf_size = avpkt->size; size 882 libavcodec/truemotion1.c s->size = buf_size; size 905 libavcodec/truemotion2.c int buf_size = avpkt->size & ~3; size 65 libavcodec/truemotion2rt.c int size = avpkt->size; size 69 libavcodec/truemotion2rt.c if (size < 1) { size 70 libavcodec/truemotion2rt.c av_log(avctx, AV_LOG_ERROR, "input packet too small (%d)\n", size); size 80 libavcodec/truemotion2rt.c if (header_size + 1 > size) { size 81 libavcodec/truemotion2rt.c av_log(avctx, AV_LOG_ERROR, "input packet too small (%d)\n", size); size 119 libavcodec/truemotion2rt.c if ((avctx->width + s->hscale - 1)/ s->hscale * avctx->height * s->delta_size > avpkt->size * 8LL * 4) size 122 libavcodec/truemotion2rt.c ret = init_get_bits8(gb, avpkt->data + ret, avpkt->size - ret); size 214 libavcodec/truemotion2rt.c return avpkt->size; size 310 libavcodec/truespeech.c int buf_size = avpkt->size; size 68 libavcodec/tscc.c int buf_size = avpkt->size; size 75 libavcodec/tscc.c int size; size 76 libavcodec/tscc.c const uint8_t *pal = av_packet_get_side_data(avpkt, AV_PKT_DATA_PALETTE, &size); size 78 libavcodec/tscc.c if (pal && size == AVPALETTE_SIZE) { size 82 libavcodec/tscc.c av_log(avctx, AV_LOG_ERROR, "Palette size %d is wrong\n", size); size 222 libavcodec/tscc2.c int buf_size = avpkt->size; size 225 libavcodec/tscc2.c uint32_t frame_type, size; size 268 libavcodec/tscc2.c size = bytestream2_get_le32(&gb); size 269 libavcodec/tscc2.c if (size > bytestream2_get_bytes_left(&gb)) { size 274 libavcodec/tscc2.c for (i = 0; i < size; i++) { size 292 libavcodec/tscc2.c size = bytestream2_peek_byte(&gb); size 293 libavcodec/tscc2.c if (size & 1) { size 294 libavcodec/tscc2.c size = bytestream2_get_byte(&gb) - 1; size 296 libavcodec/tscc2.c size = bytestream2_get_le32(&gb) >> 1; size 298 libavcodec/tscc2.c if (!size) { size 312 libavcodec/tscc2.c if (bytestream2_get_bytes_left(&gb) < size) { size 314 libavcodec/tscc2.c size, bytestream2_get_bytes_left(&gb)); size 317 libavcodec/tscc2.c ret = tscc2_decode_slice(c, i, buf + bytestream2_tell(&gb), size); size 322 libavcodec/tscc2.c bytestream2_skip(&gb, size); size 225 libavcodec/tta.c int buf_size = avpkt->size; size 238 libavcodec/tta.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 97 libavcodec/ttaenc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 190 libavcodec/ttaenc.c avpkt->size = out_bytes + 4; size 75 libavcodec/twinvq.c int size_s = mtab->size / mtab->fmode[TWINVQ_FT_SHORT].sub; size 84 libavcodec/twinvq.c static void interpolate(float *out, float v1, float v2, int size) size 87 libavcodec/twinvq.c float step = (v1 - v2) / (size + 1); size 89 libavcodec/twinvq.c for (i = 0; i < size; i++) { size 95 libavcodec/twinvq.c static inline float get_cos(int idx, int part, const float *cos_tab, int size) size 97 libavcodec/twinvq.c return part ? -cos_tab[size - idx - 1] size 118 libavcodec/twinvq.c int size, int step, int part) size 125 libavcodec/twinvq.c for (i = 0; i < size; i += step) size 128 libavcodec/twinvq.c get_cos(i, part, cos_tab, size), size 132 libavcodec/twinvq.c for (i = step; i <= size - 2 * step; i += step) { size 139 libavcodec/twinvq.c get_cos(i - step / 2, part, cos_tab, size), size 148 libavcodec/twinvq.c interpolate(out + size - 2 * step + 1, out[size - step], size 149 libavcodec/twinvq.c out[size - 2 * step], step - 1); size 154 libavcodec/twinvq.c int size, int step) size 156 libavcodec/twinvq.c eval_lpcenv_or_interp(tctx, ftype, lpc, buf, size / 2, step, 0); size 157 libavcodec/twinvq.c eval_lpcenv_or_interp(tctx, ftype, lpc + size / 2, buf, size / 2, size 160 libavcodec/twinvq.c interpolate(lpc + size / 2 - step + 1, lpc[size / 2], size 161 libavcodec/twinvq.c lpc[size / 2 - step], step); size 163 libavcodec/twinvq.c twinvq_memset_float(lpc + size - 2 * step + 1, lpc[size - 2 * step], size 307 libavcodec/twinvq.c int size = tctx->mtab->size / tctx->mtab->fmode[ftype].sub; size 314 libavcodec/twinvq.c eval_lpcenv_2parts(tctx, ftype, lsp, lpc, size, 8); size 317 libavcodec/twinvq.c eval_lpcenv_2parts(tctx, ftype, lsp, lpc, size, 2); size 332 libavcodec/twinvq.c int bsize = mtab->size / mtab->fmode[ftype].sub; size 333 libavcodec/twinvq.c int size = mtab->size; size 336 libavcodec/twinvq.c float *out = tctx->curr_frame + 2 * ch * mtab->size; size 340 libavcodec/twinvq.c mtab->size / mtab->fmode[TWINVQ_FT_LONG].sub, size 341 libavcodec/twinvq.c mtab->size / mtab->fmode[TWINVQ_FT_MEDIUM].sub, size 342 libavcodec/twinvq.c mtab->size / (mtab->fmode[TWINVQ_FT_SHORT].sub * 2), size 347 libavcodec/twinvq.c prev_buf = prev + (size - bsize) / 2; size 375 libavcodec/twinvq.c tctx->last_block_pos[ch] = (size + first_wsize) / 2; size 388 libavcodec/twinvq.c tctx->spectrum + i * mtab->size, size 389 libavcodec/twinvq.c prev_buf + 2 * i * mtab->size, size 396 libavcodec/twinvq.c size1 = mtab->size - size2; size 404 libavcodec/twinvq.c memcpy(out2, &prev_buf[2 * mtab->size], size 406 libavcodec/twinvq.c memcpy(out2 + size1, &tctx->curr_frame[2 * mtab->size], size 408 libavcodec/twinvq.c tctx->fdsp->butterflies_float(out1, out2, mtab->size); size 419 libavcodec/twinvq.c int block_size = mtab->size / sub; size 441 libavcodec/twinvq.c float *chunk = out + mtab->size * i; size 481 libavcodec/twinvq.c int buf_size = avpkt->size; size 489 libavcodec/twinvq.c frame->nb_samples = mtab->size * tctx->frames_per_packet; size 511 libavcodec/twinvq.c tctx->cur_frame * mtab->size); size 537 libavcodec/twinvq.c int size_s = mtab->size / mtab->fmode[TWINVQ_FT_SHORT].sub; size 538 libavcodec/twinvq.c int size_m = mtab->size / mtab->fmode[TWINVQ_FT_MEDIUM].sub; size 543 libavcodec/twinvq.c int bsize = tctx->mtab->size / tctx->mtab->fmode[i].sub; size 550 libavcodec/twinvq.c mtab->size, sizeof(*tctx->tmp_buf), alloc_fail); size 553 libavcodec/twinvq.c 2 * mtab->size, channels * sizeof(*tctx->spectrum), size 556 libavcodec/twinvq.c 2 * mtab->size, channels * sizeof(*tctx->curr_frame), size 559 libavcodec/twinvq.c 2 * mtab->size, channels * sizeof(*tctx->prev_frame), size 563 libavcodec/twinvq.c int m = 4 * mtab->size / mtab->fmode[i].sub; size 576 libavcodec/twinvq.c ff_init_ff_sine_windows(av_log2(mtab->size)); size 641 libavcodec/twinvq.c static void linear_perm(int16_t *out, int16_t *in, int n_blocks, int size) size 643 libavcodec/twinvq.c int block_size = size / n_blocks; size 646 libavcodec/twinvq.c for (i = 0; i < size; i++) size 653 libavcodec/twinvq.c int block_size, size; size 658 libavcodec/twinvq.c size = tctx->avctx->channels; size 661 libavcodec/twinvq.c size = tctx->avctx->channels * mtab->fmode[ftype].sub; size 662 libavcodec/twinvq.c block_size = mtab->size / mtab->fmode[ftype].sub; size 665 libavcodec/twinvq.c permutate_in_line(tmp_perm, tctx->n_div[ftype], size, size 672 libavcodec/twinvq.c linear_perm(tctx->permut[ftype], tctx->permut[ftype], size, size 673 libavcodec/twinvq.c size * block_size); size 680 libavcodec/twinvq.c int total_fr_bits = tctx->avctx->bit_rate * mtab->size / size 721 libavcodec/twinvq.c vect_size = n_ch * mtab->size; size 114 libavcodec/twinvq.h uint16_t size; ///< frame size in samples size 186 libavcodec/twinvq.h static inline void twinvq_memset_float(float *buf, float val, int size) size 188 libavcodec/twinvq.h while (size--) size 11134 libavcodec/twinvq_data.h int size; size 136 libavcodec/twinvqdec.c int size; size 144 libavcodec/twinvqdec.c size = tabs[b / 5].size; size 146 libavcodec/twinvqdec.c return x - rtab[size * av_log2(2 * (x - 1) / size) + (x - 1) % size]; size 184 libavcodec/twinvqdec.c int min_period = ROUNDED_DIV(40 * 2 * mtab->size, isampf); size 185 libavcodec/twinvqdec.c int max_period = ROUNDED_DIV(40 * 2 * mtab->size * 6, isampf); size 203 libavcodec/twinvqdec.c 400 * mtab->size); size 205 libavcodec/twinvqdec.c width = period * mtab->peak_per2wid / (400 * mtab->size); size 404 libavcodec/twinvqdec.c tctx->frame_size = avctx->bit_rate * tctx->mtab->size size 46 libavcodec/txd.c if (avpkt->size < 88) size 51 libavcodec/txd.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 151 libavcodec/txd.c return avpkt->size; size 221 libavcodec/ulti.c int buf_size = avpkt->size; size 70 libavcodec/utils.c void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size) size 75 libavcodec/utils.c *size = 0; size 78 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) size 82 libavcodec/utils.c void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size) size 87 libavcodec/utils.c *size = 0; size 90 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + AV_INPUT_BUFFER_PADDING_SIZE, 1)) size 441 libavcodec/utils.c int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) size 446 libavcodec/utils.c int r = func(c, (char *)arg + i * size); size 1796 libavcodec/utils.c int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b) size 1799 libavcodec/utils.c for (i = 0; i < size && !(tab[i][0] == a && tab[i][1] == b); i++) ; size 1978 libavcodec/utils.c AVCPBProperties *av_cpb_properties_alloc(size_t *size) size 1984 libavcodec/utils.c if (size) size 1985 libavcodec/utils.c *size = sizeof(*props); size 1996 libavcodec/utils.c size_t size; size 2003 libavcodec/utils.c props = av_cpb_properties_alloc(&size); size 2018 libavcodec/utils.c avctx->coded_side_data[avctx->nb_coded_side_data - 1].size = size; size 2210 libavcodec/utils.c *sei_size = side_data->size + 11; size 2229 libavcodec/utils.c sei_data[8] = ((side_data->size/3) & 0x1f) | 0x40; size 2232 libavcodec/utils.c memcpy(sei_data + 10, side_data->data, side_data->size); size 2234 libavcodec/utils.c sei_data[side_data->size+10] = 255; size 604 libavcodec/utvideodec.c int buf_size = avpkt->size; size 554 libavcodec/utvideoenc.c bytestream2_init_writer(&pb, dst, pkt->size); size 642 libavcodec/utvideoenc.c pkt->size = bytestream2_tell_p(&pb); size 157 libavcodec/v210dec.c if (avpkt->size < stride * avctx->height) { size 158 libavcodec/v210dec.c if ((((avctx->width + 23) / 24) * 24 * 8) / 3 * avctx->height == avpkt->size) { size 159 libavcodec/v210dec.c stride = avpkt->size / avctx->height; size 170 libavcodec/v210dec.c && avpkt->size > 64 size 172 libavcodec/v210dec.c && avpkt->size - 64 >= stride * avctx->height) size 200 libavcodec/v210dec.c return avpkt->size; size 140 libavcodec/v210enc.c if (side_data && side_data->size) { size 141 libavcodec/v210enc.c uint8_t *buf = av_packet_new_side_data(pkt, AV_PKT_DATA_A53_CC, side_data->size); size 144 libavcodec/v210enc.c memcpy(buf, side_data->data, side_data->size); size 148 libavcodec/v210enc.c if (side_data && side_data->size) { size 149 libavcodec/v210enc.c uint8_t *buf = av_packet_new_side_data(pkt, AV_PKT_DATA_AFD, side_data->size); size 152 libavcodec/v210enc.c memcpy(buf, side_data->data, side_data->size); size 49 libavcodec/v210x.c if (avpkt->size < avctx->width * avctx->height * 8 / 3) { size 54 libavcodec/v210x.c if (avpkt->size > avctx->width * avctx->height * 8 / 3) { size 120 libavcodec/v210x.c return avpkt->size; size 43 libavcodec/v308dec.c if (avpkt->size < 3 * avctx->height * avctx->width) { size 72 libavcodec/v308dec.c return avpkt->size; size 40 libavcodec/v408dec.c if (avpkt->size < 4 * avctx->height * avctx->width) { size 79 libavcodec/v408dec.c return avpkt->size; size 99 libavcodec/v410dec.c if (avpkt->size < 4 * avctx->height * avctx->width) { size 116 libavcodec/v410dec.c return avpkt->size; size 277 libavcodec/v4l2_buffers.c static int v4l2_bufref_to_buf(V4L2Buffer *out, int plane, const uint8_t* data, int size, int offset, AVBufferRef* bref) size 285 libavcodec/v4l2_buffers.c bytesused = FFMIN(size+offset, length); size 287 libavcodec/v4l2_buffers.c memcpy((uint8_t*)out->plane_info[plane].mm_addr+offset, data, FFMIN(size, length-offset)); size 384 libavcodec/v4l2_buffers.c int size, h = height; size 388 libavcodec/v4l2_buffers.c size = frame->linesize[i] * h; size 389 libavcodec/v4l2_buffers.c ret = v4l2_bufref_to_buf(out, 0, frame->data[i], size, offset, frame->buf[i]); size 392 libavcodec/v4l2_buffers.c offset += size; size 398 libavcodec/v4l2_buffers.c ret = v4l2_bufref_to_buf(out, i, frame->buf[i]->data, frame->buf[i]->size, 0, frame->buf[i]); size 462 libavcodec/v4l2_buffers.c pkt->size = V4L2_TYPE_IS_MULTIPLANAR(avbuf->buf.type) ? avbuf->buf.m.planes[0].bytesused : avbuf->buf.bytesused; size 482 libavcodec/v4l2_buffers.c ret = v4l2_bufref_to_buf(out, 0, pkt->data, pkt->size, 0, pkt->buf); size 115 libavcodec/v4l2_context.c int size; size 121 libavcodec/v4l2_context.c size = FFALIGN(height, 32) * FFALIGN(width, 32) * 3 / 2 / 2; size 122 libavcodec/v4l2_context.c return FFALIGN(size, SZ_4K); size 617 libavcodec/v4l2_context.c if (!pkt->size) { size 144 libavcodec/v4l2_m2m_dec.c if (s->buf_pkt.size) { size 165 libavcodec/v4l2_m2m_dec.c if (avpkt.size) { size 179 libavcodec/v4l2_m2m_dec.c if (!s->buf_pkt.size) size 34 libavcodec/vaapi_decode.c size_t size) size 43 libavcodec/vaapi_decode.c type, size, 1, (void*)data, &buffer); size 54 libavcodec/vaapi_decode.c "is %#x.\n", type, size, buffer); size 84 libavcodec/vaapi_decode.h size_t size); size 455 libavcodec/vaapi_encode.c av_assert0(roi_size && sd->size % roi_size == 0); size 456 libavcodec/vaapi_encode.c nb_roi = sd->size / roi_size; size 606 libavcodec/vaapi_encode.c total_size += buf->size; size 616 libavcodec/vaapi_encode.c "(status %08x).\n", buf->size, buf->status); size 618 libavcodec/vaapi_encode.c memcpy(ptr, buf->buf, buf->size); size 619 libavcodec/vaapi_encode.c ptr += buf->size; size 1168 libavcodec/vaapi_encode.c void *buffer, size_t size) size 1176 libavcodec/vaapi_encode.c ctx->global_params_size[ctx->nb_global_params] = size; size 2086 libavcodec/vaapi_encode.c int size) size 83 libavcodec/vaapi_h264.c int size; ///< Current number of reference frames in the DPB size 98 libavcodec/vaapi_h264.c if (dpb->size >= dpb->max_size) size 101 libavcodec/vaapi_h264.c for (i = 0; i < dpb->size; i++) { size 120 libavcodec/vaapi_h264.c fill_vaapi_pic(&dpb->va_pics[dpb->size++], pic, 0); size 131 libavcodec/vaapi_h264.c dpb.size = 0; size 228 libavcodec/vaapi_h264.c av_unused uint32_t size) size 330 libavcodec/vaapi_h264.c uint32_t size) size 339 libavcodec/vaapi_h264.c .slice_data_size = size, size 379 libavcodec/vaapi_h264.c buffer, size); size 119 libavcodec/vaapi_hevc.c av_unused uint32_t size) size 396 libavcodec/vaapi_hevc.c uint32_t size) size 424 libavcodec/vaapi_hevc.c .slice_data_size = size, size 487 libavcodec/vaapi_hevc.c pic->last_size = size; size 28 libavcodec/vaapi_mjpeg.c av_unused uint32_t size) size 74 libavcodec/vaapi_mjpeg.c uint32_t size) size 116 libavcodec/vaapi_mjpeg.c .slice_data_size = size, size 134 libavcodec/vaapi_mjpeg.c err = ff_vaapi_decode_make_slice_buffer(avctx, pic, &sp, sizeof(sp), buffer, size); size 42 libavcodec/vaapi_mpeg2.c static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 131 libavcodec/vaapi_mpeg2.c static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 141 libavcodec/vaapi_mpeg2.c init_get_bits(&gb, buffer, 8 * size); size 154 libavcodec/vaapi_mpeg2.c .slice_data_size = size, size 166 libavcodec/vaapi_mpeg2.c buffer, size); size 46 libavcodec/vaapi_mpeg4.c static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 153 libavcodec/vaapi_mpeg4.c static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 161 libavcodec/vaapi_mpeg4.c .slice_data_size = size, size 171 libavcodec/vaapi_mpeg4.c buffer, size); size 250 libavcodec/vaapi_vc1.c static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 392 libavcodec/vaapi_vc1.c size_t size = (s->mb_width * s->mb_height + 1) / 2; size 394 libavcodec/vaapi_vc1.c bitplane = av_mallocz(size); size 435 libavcodec/vaapi_vc1.c bitplane, size); size 464 libavcodec/vaapi_vc1.c static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 476 libavcodec/vaapi_vc1.c size -= 4; size 485 libavcodec/vaapi_vc1.c .slice_data_size = size, size 494 libavcodec/vaapi_vc1.c buffer, size); size 36 libavcodec/vaapi_vp8.c av_unused uint32_t size) size 187 libavcodec/vaapi_vp8.c uint32_t size) size 196 libavcodec/vaapi_vp8.c unsigned int data_size = size - header_size; size 39 libavcodec/vaapi_vp9.c av_unused uint32_t size) size 130 libavcodec/vaapi_vp9.c uint32_t size) size 138 libavcodec/vaapi_vp9.c .slice_data_size = size, size 162 libavcodec/vaapi_vp9.c buffer, size); size 63 libavcodec/vb.c int start, size, i; size 66 libavcodec/vb.c size = (bytestream2_get_byte(&c->stream) - 1) & 0xFF; size 67 libavcodec/vb.c if (start + size > 255) { size 71 libavcodec/vb.c if (size*3+2 > data_size) { size 75 libavcodec/vb.c for (i = start; i <= start + size; i++) size 199 libavcodec/vb.c uint32_t size; size 202 libavcodec/vb.c if (avpkt->size < 2) size 205 libavcodec/vb.c bytestream2_init(&c->stream, avpkt->data, avpkt->size); size 222 libavcodec/vb.c size = bytestream2_get_le32(&c->stream); size 223 libavcodec/vb.c if(size > bytestream2_get_bytes_left(&c->stream)+4 || size<4){ size 228 libavcodec/vb.c bytestream2_skip(&c->stream, size - 4); size 231 libavcodec/vb.c size = bytestream2_get_le32(&c->stream); size 232 libavcodec/vb.c vb_decode_palette(c, size); size 252 libavcodec/vb.c return avpkt->size; size 41 libavcodec/vble.c int size; size 61 libavcodec/vble.c for (i = 0; i < ctx->size; i++) { size 130 libavcodec/vble.c if (avpkt->size < 4 || avpkt->size - 4 > INT_MAX/8) { size 149 libavcodec/vble.c init_get_bits(&gb, src + 4, (avpkt->size - 4) * 8); size 171 libavcodec/vble.c return avpkt->size; size 193 libavcodec/vble.c ctx->size = av_image_get_buffer_size(avctx->pix_fmt, size 196 libavcodec/vble.c ctx->val = av_malloc_array(ctx->size, sizeof(*ctx->val)); size 70 libavcodec/vc1_common.h static av_always_inline int vc1_unescape_buffer(const uint8_t *src, int size, uint8_t *dst) size 74 libavcodec/vc1_common.h if (size < 4) { size 75 libavcodec/vc1_common.h for (dsize = 0; dsize < size; dsize++) size 77 libavcodec/vc1_common.h return size; size 79 libavcodec/vc1_common.h for (i = 0; i < size; i++, src++) { size 80 libavcodec/vc1_common.h if (src[0] == 3 && i >= 2 && !src[-1] && !src[-2] && i < size-1 && src[1] < 4) { size 469 libavcodec/vc1dec.c int size, buf2_size; size 486 libavcodec/vc1dec.c size = next - start - 4; size 487 libavcodec/vc1dec.c if (size <= 0) size 489 libavcodec/vc1dec.c buf2_size = vc1_unescape_buffer(start + 4, size, buf2); size 638 libavcodec/vc1dec.c int buf_size = avpkt->size, n_slices = 0, i, ret; size 681 libavcodec/vc1dec.c int size; size 686 libavcodec/vc1dec.c size = next - start - 4; size 687 libavcodec/vc1dec.c if (size <= 0) continue; size 692 libavcodec/vc1dec.c buf_size2 = vc1_unescape_buffer(start + 4, size, buf2); size 704 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); size 709 libavcodec/vc1dec.c buf_size3 = vc1_unescape_buffer(start + 4, size, size 715 libavcodec/vc1dec.c slices[n_slices].raw_size = size + 4; size 721 libavcodec/vc1dec.c buf_size2 = vc1_unescape_buffer(start + 4, size, buf2); size 733 libavcodec/vc1dec.c slices[n_slices].buf = av_mallocz(size + AV_INPUT_BUFFER_PADDING_SIZE); size 738 libavcodec/vc1dec.c buf_size3 = vc1_unescape_buffer(start + 4, size, size 744 libavcodec/vc1dec.c slices[n_slices].raw_size = size + 4; size 82 libavcodec/vc1dsp.h int (*startcode_find_candidate)(const uint8_t *buf, int size); size 925 libavcodec/vc2enc.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 997 libavcodec/vc2enc.c avpkt->size = put_bits_count(&s->pb) >> 3; size 55 libavcodec/vcr1.c const uint8_t *bytestream_end = bytestream + avpkt->size; size 58 libavcodec/vcr1.c if(avpkt->size < 32 + avctx->height + avctx->width*avctx->height*5/8){ size 59 libavcodec/vcr1.c av_log(avctx, AV_LOG_ERROR, "Insufficient input data. %d < %d\n", avpkt->size , 32 + avctx->height + avctx->width*avctx->height*5/8); size 324 libavcodec/vdpau.c av_unused uint32_t size) size 378 libavcodec/vdpau.c const uint8_t *buf, uint32_t size) size 392 libavcodec/vdpau.c buffers->bitstream_bytes = size; size 122 libavcodec/vdpau_h264.c const uint8_t *buffer, uint32_t size) size 177 libavcodec/vdpau_h264.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 183 libavcodec/vdpau_h264.c const uint8_t *buffer, uint32_t size) size 194 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 34 libavcodec/vdpau_hevc.c const uint8_t *buffer, uint32_t size) size 396 libavcodec/vdpau_hevc.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 402 libavcodec/vdpau_hevc.c const uint8_t *buffer, uint32_t size) size 412 libavcodec/vdpau_hevc.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 122 libavcodec/vdpau_internal.h const uint8_t *buffer, uint32_t size); size 33 libavcodec/vdpau_mpeg12.c const uint8_t *buffer, uint32_t size) size 80 libavcodec/vdpau_mpeg12.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 84 libavcodec/vdpau_mpeg12.c const uint8_t *buffer, uint32_t size) size 91 libavcodec/vdpau_mpeg12.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 33 libavcodec/vdpau_mpeg4.c const uint8_t *buffer, uint32_t size) size 81 libavcodec/vdpau_mpeg4.c ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 82 libavcodec/vdpau_mpeg4.c return ff_vdpau_add_buffer(pic_ctx, buffer, size); size 87 libavcodec/vdpau_mpeg4.c av_unused uint32_t size) size 33 libavcodec/vdpau_vc1.c const uint8_t *buffer, uint32_t size) size 97 libavcodec/vdpau_vc1.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 101 libavcodec/vdpau_vc1.c const uint8_t *buffer, uint32_t size) size 109 libavcodec/vdpau_vc1.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 34 libavcodec/vdpau_vp9.c const uint8_t *buffer, uint32_t size) size 161 libavcodec/vdpau_vp9.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 168 libavcodec/vdpau_vp9.c const uint8_t *buffer, uint32_t size) size 180 libavcodec/vdpau_vp9.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 66 libavcodec/videotoolbox.c uint32_t size) size 72 libavcodec/videotoolbox.c size); size 78 libavcodec/videotoolbox.c memcpy(vtctx->bitstream, buffer, size); size 79 libavcodec/videotoolbox.c vtctx->bitstream_size = size; size 113 libavcodec/videotoolbox.c size_t size = sizeof(VTHWFrame); size 121 libavcodec/videotoolbox.c data = av_mallocz(size); size 124 libavcodec/videotoolbox.c buf = av_buffer_create(data, size, videotoolbox_buffer_release, NULL, 0); size 336 libavcodec/videotoolbox.c uint32_t size) size 342 libavcodec/videotoolbox.c return videotoolbox_buffer_copy(vtctx, buffer, size); size 351 libavcodec/videotoolbox.c uint32_t size) size 361 libavcodec/videotoolbox.c if (size > 4 && memcmp(vtctx->sps, buffer + 1, 3) != 0) { size 368 libavcodec/videotoolbox.c return ff_videotoolbox_h264_decode_slice(avctx, buffer, size); size 373 libavcodec/videotoolbox.c uint32_t size) size 380 libavcodec/videotoolbox.c vtctx->bitstream_size+size+4); size 386 libavcodec/videotoolbox.c AV_WB32(vtctx->bitstream + vtctx->bitstream_size, size); size 387 libavcodec/videotoolbox.c memcpy(vtctx->bitstream + vtctx->bitstream_size + 4, buffer, size); size 389 libavcodec/videotoolbox.c vtctx->bitstream_size += size + 4; size 396 libavcodec/videotoolbox.c uint32_t size) size 403 libavcodec/videotoolbox.c return videotoolbox_common_decode_slice(avctx, buffer, size); size 563 libavcodec/videotoolbox.c int size) size 574 libavcodec/videotoolbox.c size, // blockLength size 578 libavcodec/videotoolbox.c size, // dataLength size 946 libavcodec/videotoolbox.c uint32_t size) size 953 libavcodec/videotoolbox.c uint32_t size) size 955 libavcodec/videotoolbox.c return videotoolbox_common_decode_slice(avctx, buffer, size); size 962 libavcodec/videotoolbox.c uint32_t size) size 964 libavcodec/videotoolbox.c return videotoolbox_common_decode_slice(avctx, buffer, size); size 985 libavcodec/videotoolbox.c uint32_t size) size 989 libavcodec/videotoolbox.c return videotoolbox_buffer_copy(vtctx, buffer, size); size 994 libavcodec/videotoolbox.c uint32_t size) size 182 libavcodec/videotoolboxenc.c size_t size; size 412 libavcodec/videotoolboxenc.c size_t *size) size 459 libavcodec/videotoolboxenc.c *size = total_size; size 601 libavcodec/videotoolboxenc.c size_t *size) size 625 libavcodec/videotoolboxenc.c *size = isize; size 1620 libavcodec/videotoolboxenc.c size_t remaining_sei_size = sei->size; size 1650 libavcodec/videotoolboxenc.c if (remaining_dst_size < sei->size) size 1657 libavcodec/videotoolboxenc.c sei->size, size 1846 libavcodec/videotoolboxenc.c if (sei->size == 0) size 1850 libavcodec/videotoolboxenc.c sei->size, size 1855 libavcodec/videotoolboxenc.c if ((sei->size % 255) == 0) //may result in an extra byte size 1858 libavcodec/videotoolboxenc.c return copied_size + sei->size / 255 + 1 + type / 255 + 1; size 1934 libavcodec/videotoolboxenc.c pkt->size - header_size size 1962 libavcodec/videotoolboxenc.c pkt->size = out_buf_size; size 2303 libavcodec/videotoolboxenc.c if (vtctx->a53_cc && side_data && side_data->size) { size 2308 libavcodec/videotoolboxenc.c int ret = ff_alloc_a53_sei(frame, 0, &sei->data, &sei->size); size 129 libavcodec/vima.c if (pkt->size < 13) size 132 libavcodec/vima.c if ((ret = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) size 141 libavcodec/vima.c if (samples > pkt->size * 2) size 207 libavcodec/vima.c return pkt->size; size 140 libavcodec/vmdaudio.c int buf_size = avpkt->size; size 228 libavcodec/vmdaudio.c return avpkt->size; size 54 libavcodec/vmdvideo.c int size; size 244 libavcodec/vmdvideo.c bytestream2_init(&gb, s->buf + 16, s->size - 16); size 262 libavcodec/vmdvideo.c if (!s->size) size 270 libavcodec/vmdvideo.c int size; size 276 libavcodec/vmdvideo.c size = lz_unpack(gb.buffer, bytestream2_get_bytes_left(&gb), size 278 libavcodec/vmdvideo.c if (size < 0) size 279 libavcodec/vmdvideo.c return size; size 281 libavcodec/vmdvideo.c bytestream2_init(&gb, s->unpack_buffer, size); size 434 libavcodec/vmdvideo.c int buf_size = avpkt->size; size 440 libavcodec/vmdvideo.c s->size = buf_size; size 330 libavcodec/vmnc.c int buf_size = avpkt->size; size 1771 libavcodec/vorbisdec.c int buf_size = avpkt->size; size 1136 libavcodec/vorbisenc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 1188 libavcodec/vorbisenc.c avpkt->size = put_bits_count(&pb) >> 3; size 2636 libavcodec/vp3.c int buf_size = avpkt->size; size 574 libavcodec/vp56.c int remaining_buf_size = avpkt->size; size 656 libavcodec/vp56.c return avpkt->size; size 261 libavcodec/vp6.c const uint8_t *map, unsigned size, VLC *vlc) size 263 libavcodec/vp6.c Node nodes[2*VP6_MAX_HUFF_SIZE], *tmp = &nodes[size]; size 268 libavcodec/vp6.c for (i=0; i<size-1; i++) { size 277 libavcodec/vp6.c return ff_huff_build_tree(s->avctx, vlc, size, FF_HUFFMAN_BITS, size 319 libavcodec/vp8.c int size = AV_RL24(sizes + 3 * i); size 320 libavcodec/vp8.c if (buf_size - size < 0) size 322 libavcodec/vp8.c s->coeff_partition_size[i] = size; size 324 libavcodec/vp8.c ret = ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, size); size 327 libavcodec/vp8.c buf += size; size 328 libavcodec/vp8.c buf_size -= size; size 2629 libavcodec/vp8.c ret = vp7_decode_frame_header(s, avpkt->data, avpkt->size); size 2631 libavcodec/vp8.c ret = vp8_decode_frame_header(s, avpkt->data, avpkt->size); size 2722 libavcodec/vp8.c ret = avctx->hwaccel->start_frame(avctx, avpkt->data, avpkt->size); size 2726 libavcodec/vp8.c ret = avctx->hwaccel->decode_slice(avctx, avpkt->data, avpkt->size); size 2800 libavcodec/vp8.c return avpkt->size; size 371 libavcodec/vp8dsp.c #define LOOP_FILTER(vpn, dir, size, stridea, strideb, maybe_inline) \ size 373 libavcodec/vp8dsp.c void vpn ## _ ## dir ## _loop_filter ## size ## _c(uint8_t *dst, \ size 379 libavcodec/vp8dsp.c for (i = 0; i < size; i++) \ size 390 libavcodec/vp8dsp.c void vpn ## _ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, \ size 397 libavcodec/vp8dsp.c for (i = 0; i < size; i++) \ size 136 libavcodec/vp9.c memset(f->extradata->data, 0, f->extradata->size); size 503 libavcodec/vp9.c const uint8_t *data, int size, int *ref) size 511 libavcodec/vp9.c if ((ret = init_get_bits8(&s->gb, data, size)) < 0) { size 877 libavcodec/vp9.c if (size2 > size - (data2 - data)) { size 1257 libavcodec/vp9.c const uint8_t *data, int size) size 1282 libavcodec/vp9.c tile_size = size; size 1286 libavcodec/vp9.c size -= 4; size 1288 libavcodec/vp9.c if (tile_size > size) { size 1300 libavcodec/vp9.c size -= tile_size; size 1555 libavcodec/vp9.c int size = pkt->size; size 1562 libavcodec/vp9.c if ((ret = decode_frame_header(avctx, data, size, &ref)) < 0) { size 1586 libavcodec/vp9.c return pkt->size; size 1589 libavcodec/vp9.c size -= ret; size 1634 libavcodec/vp9.c ret = avctx->hwaccel->decode_slice(avctx, pkt->data, pkt->size); size 1712 libavcodec/vp9.c tile_size = size; size 1716 libavcodec/vp9.c size -= 4; size 1718 libavcodec/vp9.c if (tile_size > size) size 1726 libavcodec/vp9.c size -= tile_size; size 1734 libavcodec/vp9.c ret = decode_tiles(avctx, data, size); size 1781 libavcodec/vp9.c return pkt->size; size 31 libavcodec/vp9_parser.c const uint8_t *data, int size) size 37 libavcodec/vp9_parser.c *out_size = size; size 39 libavcodec/vp9_parser.c if (!size || (res = init_get_bits8(&gb, data, size)) < 0) size 40 libavcodec/vp9_parser.c return size; // parsers can't return errors size 46 libavcodec/vp9_parser.c return size; size 64 libavcodec/vp9_parser.c return size; size 84 libavcodec/vp9_raw_reorder_bsf.c err = init_get_bits(&bc, frame->packet->data, 8 * frame->packet->size); size 295 libavcodec/vp9_raw_reorder_bsf.c if ((in->data[in->size - 1] & 0xe0) == 0xc0) { size 41 libavcodec/vp9_superframe_bsf.c unsigned sz = in[n]->size; size 67 libavcodec/vp9_superframe_bsf.c memcpy(ptr, in[n]->data, in[n]->size); size 68 libavcodec/vp9_superframe_bsf.c ptr += in[n]->size; size 83 libavcodec/vp9_superframe_bsf.c wloop(mag, *ptr = in[n]->size); size 86 libavcodec/vp9_superframe_bsf.c wloop(mag, AV_WL16(ptr, in[n]->size)); size 89 libavcodec/vp9_superframe_bsf.c wloop(mag, AV_WL24(ptr, in[n]->size)); size 92 libavcodec/vp9_superframe_bsf.c wloop(mag, AV_WL32(ptr, in[n]->size)); size 96 libavcodec/vp9_superframe_bsf.c av_assert0(ptr == &out->data[out->size]); size 111 libavcodec/vp9_superframe_bsf.c marker = pkt->data[pkt->size - 1]; size 116 libavcodec/vp9_superframe_bsf.c uses_superframe_syntax = pkt->size >= idx_sz && pkt->data[pkt->size - idx_sz] == marker; size 119 libavcodec/vp9_superframe_bsf.c if ((res = init_get_bits8(&gb, pkt->data, pkt->size)) < 0) size 54 libavcodec/vp9_superframe_split_bsf.c marker = in->data[in->size - 1]; size 60 libavcodec/vp9_superframe_split_bsf.c if (in->size >= idx_size && in->data[in->size - idx_size] == marker) { size 64 libavcodec/vp9_superframe_split_bsf.c bytestream2_init(&bc, in->data + in->size + 1 - idx_size, size 73 libavcodec/vp9_superframe_split_bsf.c if (frame_size < 0 || total_size > in->size - idx_size) { size 98 libavcodec/vp9_superframe_split_bsf.c out->size = s->sizes[s->next_frame]; size 100 libavcodec/vp9_superframe_split_bsf.c s->next_frame_offset += out->size; size 106 libavcodec/vp9_superframe_split_bsf.c ret = init_get_bits8(&gb, out->data, out->size); size 801 libavcodec/vp9dsp_template.c #define def_diag_downleft(size) \ size 802 libavcodec/vp9dsp_template.c static void diag_downleft_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 808 libavcodec/vp9dsp_template.c pixel v[size - 1]; \ size 811 libavcodec/vp9dsp_template.c for (i = 0; i < size - 2; i++) \ size 813 libavcodec/vp9dsp_template.c v[size - 2] = (top[size - 2] + top[size - 1] * 3 + 2) >> 2; \ size 815 libavcodec/vp9dsp_template.c for (j = 0; j < size; j++) { \ size 816 libavcodec/vp9dsp_template.c memcpy(dst + j*stride, v + j, (size - 1 - j) * sizeof(pixel)); \ size 817 libavcodec/vp9dsp_template.c memset_bpc(dst + j*stride + size - 1 - j, top[size - 1], j + 1); \ size 844 libavcodec/vp9dsp_template.c #define def_diag_downright(size) \ size 845 libavcodec/vp9dsp_template.c static void diag_downright_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 852 libavcodec/vp9dsp_template.c pixel v[size + size - 1]; \ size 855 libavcodec/vp9dsp_template.c for (i = 0; i < size - 2; i++) { \ size 857 libavcodec/vp9dsp_template.c v[size + 1 + i] = (top[i] + top[i + 1] * 2 + top[i + 2] + 2) >> 2; \ size 859 libavcodec/vp9dsp_template.c v[size - 2] = (left[size - 2] + left[size - 1] * 2 + top[-1] + 2) >> 2; \ size 860 libavcodec/vp9dsp_template.c v[size - 1] = (left[size - 1] + top[-1] * 2 + top[ 0] + 2) >> 2; \ size 861 libavcodec/vp9dsp_template.c v[size ] = (top[-1] + top[0] * 2 + top[ 1] + 2) >> 2; \ size 863 libavcodec/vp9dsp_template.c for (j = 0; j < size; j++) \ size 864 libavcodec/vp9dsp_template.c memcpy(dst + j*stride, v + size - 1 - j, size * sizeof(pixel)); \ size 893 libavcodec/vp9dsp_template.c #define def_vert_right(size) \ size 894 libavcodec/vp9dsp_template.c static void vert_right_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 901 libavcodec/vp9dsp_template.c pixel ve[size + size/2 - 1], vo[size + size/2 - 1]; \ size 904 libavcodec/vp9dsp_template.c for (i = 0; i < size/2 - 2; i++) { \ size 908 libavcodec/vp9dsp_template.c vo[size/2 - 2] = (left[size - 1] + left[size - 2] * 2 + left[size - 3] + 2) >> 2; \ size 909 libavcodec/vp9dsp_template.c ve[size/2 - 2] = (top[-1] + left[size - 1] * 2 + left[size - 2] + 2) >> 2; \ size 911 libavcodec/vp9dsp_template.c ve[size/2 - 1] = (top[-1] + top[0] + 1) >> 1; \ size 912 libavcodec/vp9dsp_template.c vo[size/2 - 1] = (left[size - 1] + top[-1] * 2 + top[0] + 2) >> 2; \ size 913 libavcodec/vp9dsp_template.c for (i = 0; i < size - 1; i++) { \ size 914 libavcodec/vp9dsp_template.c ve[size/2 + i] = (top[i] + top[i + 1] + 1) >> 1; \ size 915 libavcodec/vp9dsp_template.c vo[size/2 + i] = (top[i - 1] + top[i] * 2 + top[i + 1] + 2) >> 2; \ size 918 libavcodec/vp9dsp_template.c for (j = 0; j < size / 2; j++) { \ size 919 libavcodec/vp9dsp_template.c memcpy(dst + j*2 *stride, ve + size/2 - 1 - j, size * sizeof(pixel)); \ size 920 libavcodec/vp9dsp_template.c memcpy(dst + (j*2 + 1)*stride, vo + size/2 - 1 - j, size * sizeof(pixel)); \ size 950 libavcodec/vp9dsp_template.c #define def_hor_down(size) \ size 951 libavcodec/vp9dsp_template.c static void hor_down_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 958 libavcodec/vp9dsp_template.c pixel v[size * 3 - 2]; \ size 961 libavcodec/vp9dsp_template.c for (i = 0; i < size - 2; i++) { \ size 964 libavcodec/vp9dsp_template.c v[size*2 + i] = (top[i - 1] + top[i] * 2 + top[i + 1] + 2) >> 2; \ size 966 libavcodec/vp9dsp_template.c v[size*2 - 2] = (top[-1] + left[size - 1] + 1) >> 1; \ size 967 libavcodec/vp9dsp_template.c v[size*2 - 4] = (left[size - 1] + left[size - 2] + 1) >> 1; \ size 968 libavcodec/vp9dsp_template.c v[size*2 - 1] = (top[0] + top[-1] * 2 + left[size - 1] + 2) >> 2; \ size 969 libavcodec/vp9dsp_template.c v[size*2 - 3] = (top[-1] + left[size - 1] * 2 + left[size - 2] + 2) >> 2; \ size 971 libavcodec/vp9dsp_template.c for (j = 0; j < size; j++) \ size 972 libavcodec/vp9dsp_template.c memcpy(dst + j*stride, v + size*2 - 2 - j*2, size * sizeof(pixel)); \ size 1000 libavcodec/vp9dsp_template.c #define def_vert_left(size) \ size 1001 libavcodec/vp9dsp_template.c static void vert_left_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 1007 libavcodec/vp9dsp_template.c pixel ve[size - 1], vo[size - 1]; \ size 1010 libavcodec/vp9dsp_template.c for (i = 0; i < size - 2; i++) { \ size 1014 libavcodec/vp9dsp_template.c ve[size - 2] = (top[size - 2] + top[size - 1] + 1) >> 1; \ size 1015 libavcodec/vp9dsp_template.c vo[size - 2] = (top[size - 2] + top[size - 1] * 3 + 2) >> 2; \ size 1017 libavcodec/vp9dsp_template.c for (j = 0; j < size / 2; j++) { \ size 1018 libavcodec/vp9dsp_template.c memcpy(dst + j*2 * stride, ve + j, (size - j - 1) * sizeof(pixel)); \ size 1019 libavcodec/vp9dsp_template.c memset_bpc(dst + j*2 * stride + size - j - 1, top[size - 1], j + 1); \ size 1020 libavcodec/vp9dsp_template.c memcpy(dst + (j*2 + 1) * stride, vo + j, (size - j - 1) * sizeof(pixel)); \ size 1021 libavcodec/vp9dsp_template.c memset_bpc(dst + (j*2 + 1) * stride + size - j - 1, top[size - 1], j + 1); \ size 1046 libavcodec/vp9dsp_template.c #define def_hor_up(size) \ size 1047 libavcodec/vp9dsp_template.c static void hor_up_##size##x##size##_c(uint8_t *_dst, ptrdiff_t stride, \ size 1053 libavcodec/vp9dsp_template.c pixel v[size*2 - 2]; \ size 1056 libavcodec/vp9dsp_template.c for (i = 0; i < size - 2; i++) { \ size 1060 libavcodec/vp9dsp_template.c v[size*2 - 4] = (left[size - 2] + left[size - 1] + 1) >> 1; \ size 1061 libavcodec/vp9dsp_template.c v[size*2 - 3] = (left[size - 2] + left[size - 1] * 3 + 2) >> 2; \ size 1063 libavcodec/vp9dsp_template.c for (j = 0; j < size / 2; j++) \ size 1064 libavcodec/vp9dsp_template.c memcpy(dst + j*stride, v + j*2, size * sizeof(pixel)); \ size 1065 libavcodec/vp9dsp_template.c for (j = size / 2; j < size; j++) { \ size 1066 libavcodec/vp9dsp_template.c memcpy(dst + j*stride, v + j*2, (size*2 - 2 - j*2) * sizeof(pixel)); \ size 1067 libavcodec/vp9dsp_template.c memset_bpc(dst + j*stride + size*2 - 2 - j*2, left[size - 1], \ size 1068 libavcodec/vp9dsp_template.c 2 + j*2 - size); \ size 615 libavcodec/vqavideo.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 626 libavcodec/vqavideo.c return avpkt->size; size 51 libavcodec/vt_internal.h uint32_t size); size 54 libavcodec/vt_internal.h uint32_t size); size 892 libavcodec/wavpack.c int size = av_get_bytes_per_sample(type); size 893 libavcodec/wavpack.c memset((uint8_t*)dst_l + count*size, 0, (s->samples-count)*size); size 894 libavcodec/wavpack.c memset((uint8_t*)dst_r + count*size, 0, (s->samples-count)*size); size 958 libavcodec/wavpack.c int size = av_get_bytes_per_sample(type); size 959 libavcodec/wavpack.c memset((uint8_t*)dst + count*size, 0, (s->samples-count)*size); size 1092 libavcodec/wavpack.c int i, j, id, size, ssize, weights, t; size 1155 libavcodec/wavpack.c size = bytestream2_get_byte(&gb); size 1157 libavcodec/wavpack.c size |= (bytestream2_get_le16u(&gb)) << 8; size 1158 libavcodec/wavpack.c size <<= 1; // size is specified in words size 1159 libavcodec/wavpack.c ssize = size; size 1161 libavcodec/wavpack.c size--; size 1162 libavcodec/wavpack.c if (size < 0) { size 1164 libavcodec/wavpack.c "Got incorrect block %02X with size %i\n", id, size); size 1169 libavcodec/wavpack.c "Block size %i is out of bounds\n", size); size 1174 libavcodec/wavpack.c if (size > MAX_TERMS) { size 1180 libavcodec/wavpack.c s->terms = size; size 1193 libavcodec/wavpack.c weights = size >> s->stereo_in; size 1221 libavcodec/wavpack.c for (i = s->terms - 1; (i >= 0) && (t < size); i--) { size 1257 libavcodec/wavpack.c if (size != 6 * (s->stereo_in + 1)) { size 1260 libavcodec/wavpack.c 6 * (s->stereo_in + 1), size); size 1274 libavcodec/wavpack.c size -= 2; size 1279 libavcodec/wavpack.c size -= 2; size 1281 libavcodec/wavpack.c if (size > 0) { size 1294 libavcodec/wavpack.c if (size != 4) { size 1297 libavcodec/wavpack.c size); size 1334 libavcodec/wavpack.c if (size != 4) { size 1336 libavcodec/wavpack.c "Invalid FLOATINFO, size = %i\n", size); size 1353 libavcodec/wavpack.c if ((ret = init_get_bits8(&s->gb, gb.buffer, size)) < 0) size 1355 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 1359 libavcodec/wavpack.c if (size < 2) { size 1361 libavcodec/wavpack.c size); size 1375 libavcodec/wavpack.c bytestream2_init(&s->gbyte, gb.buffer, size-2); size 1376 libavcodec/wavpack.c bytestream2_skip(&gb, size-2); size 1380 libavcodec/wavpack.c if (size <= 4) { size 1382 libavcodec/wavpack.c size); size 1383 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 1386 libavcodec/wavpack.c if ((ret = init_get_bits8(&s->gb_extra_bits, gb.buffer, size)) < 0) size 1389 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 1393 libavcodec/wavpack.c if (size <= 1) { size 1399 libavcodec/wavpack.c switch (size - 2) { size 1413 libavcodec/wavpack.c size = bytestream2_get_byte(&gb); size 1422 libavcodec/wavpack.c size = bytestream2_get_byte(&gb); size 1432 libavcodec/wavpack.c size); size 1438 libavcodec/wavpack.c if (size != 3) { size 1445 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 1477 libavcodec/wavpack.c const int size = get_bits_left(&s->gb_extra_bits); size 1479 libavcodec/wavpack.c if (size < wanted) { size 1633 libavcodec/wavpack.c int buf_size = avpkt->size; size 1636 libavcodec/wavpack.c if (avpkt->size <= WV_HEADER_SIZE) size 1691 libavcodec/wavpack.c return avpkt->size; size 1022 libavcodec/wavpackenc.c uint32_t best_size = UINT32_MAX, size; size 1092 libavcodec/wavpackenc.c size = log2mono(s->temp_buffer[j&1][0], nb_samples, log_limit); size 1093 libavcodec/wavpackenc.c if (size != UINT32_MAX || !nterms) size 1098 libavcodec/wavpackenc.c if (size < best_size) { size 1103 libavcodec/wavpackenc.c best_size = size; size 1814 libavcodec/wavpackenc.c uint32_t best_size = UINT32_MAX, size; size 1916 libavcodec/wavpackenc.c size = log2stereo(s->temp_buffer[j&1][0], s->temp_buffer[j&1][1], size 1918 libavcodec/wavpackenc.c if (size != UINT32_MAX || !nterms) size 1923 libavcodec/wavpackenc.c if (size < best_size) { size 1929 libavcodec/wavpackenc.c best_size = size; size 2457 libavcodec/wavpackenc.c static void put_metadata_block(PutByteContext *pb, int flags, int size) size 2459 libavcodec/wavpackenc.c if (size & 1) size 2463 libavcodec/wavpackenc.c bytestream2_put_byte(pb, (size + 1) >> 1); size 2905 libavcodec/wavpackenc.c avpkt->size = buf - avpkt->data; size 58 libavcodec/wcmv.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 68 libavcodec/wcmv.c int x = 0, size; size 71 libavcodec/wcmv.c size = bytestream2_get_le24(&gb); size 73 libavcodec/wcmv.c size = bytestream2_get_le16(&gb); size 75 libavcodec/wcmv.c size = bytestream2_get_byte(&gb); size 78 libavcodec/wcmv.c if (size > avpkt->size - skip) size 82 libavcodec/wcmv.c s->zstream.avail_in = size; size 99 libavcodec/wcmv.c bytestream2_skip(&gb, size); size 123 libavcodec/wcmv.c s->zstream.avail_in = avpkt->size - skip; size 152 libavcodec/wcmv.c s->zstream.avail_in = avpkt->size - skip; size 207 libavcodec/wcmv.c return avpkt->size; size 1073 libavcodec/webp.c const int size = pal->frame->width * 4; size 1074 libavcodec/webp.c av_assert0(size <= 1024U); size 1075 libavcodec/webp.c memcpy(palette, GET_PIXEL(pal->frame, 0, 0), size); // copy palette size 1077 libavcodec/webp.c memset(palette + size, 0, 256 * 4 - size); size 1350 libavcodec/webp.c pkt.size = data_size; size 1387 libavcodec/webp.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 1503 libavcodec/webp.c avpkt->size - exif_offset); size 1566 libavcodec/webp.c return avpkt->size; size 92 libavcodec/webvttdec.c if (ptr && avpkt->size > 0 && !webvtt_event_to_ass(&buf, ptr)) size 98 libavcodec/webvttdec.c return avpkt->size; size 818 libavcodec/wmadec.c int buf_size = avpkt->size; size 397 libavcodec/wmaenc.c error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, size 404 libavcodec/wmaenc.c error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++); size 407 libavcodec/wmaenc.c avpkt->size = 0; size 422 libavcodec/wmaenc.c avpkt->size = avctx->block_align; size 1185 libavcodec/wmalosslessdec.c int buf_size = avpkt->size; size 1255 libavcodec/wmalosslessdec.c s->buf_bit_size = (avpkt->size - s->next_packet_start) << 3; size 1607 libavcodec/wmaprodec.c int buf_size = avpkt->size; size 1722 libavcodec/wmaprodec.c s->buf_bit_size = (avpkt->size - s->next_packet_start) << 3; size 507 libavcodec/wmavoice.c int size, float alpha, float *gain_mem) size 513 libavcodec/wmavoice.c for (i = 0; i < size; i++) { size 520 libavcodec/wmavoice.c for (i = 0; i < size; i++) { size 547 libavcodec/wmavoice.c const float *in, float *out, int size) size 557 libavcodec/wmavoice.c dot = avpriv_scalarproduct_float_c(in, ptr, size); size 566 libavcodec/wmavoice.c dot = avpriv_scalarproduct_float_c(best_hist_ptr, best_hist_ptr, size); size 576 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 725 libavcodec/wmavoice.c float *synth_pf, int size, size 745 libavcodec/wmavoice.c remainder = FFMIN(127 - size, size - 1); size 750 libavcodec/wmavoice.c memset(&synth_pf[size], 0, sizeof(synth_pf[0]) * (128 - size)); size 765 libavcodec/wmavoice.c lim = FFMIN(s->denoise_filter_cache_size, size); size 769 libavcodec/wmavoice.c memmove(s->denoise_filter_cache, &s->denoise_filter_cache[size], size 777 libavcodec/wmavoice.c s->denoise_filter_cache[n] += synth_pf[size + n]; size 779 libavcodec/wmavoice.c memcpy(&s->denoise_filter_cache[lim], &synth_pf[size + lim], size 807 libavcodec/wmavoice.c float *samples, int size, size 815 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE / 2); size 818 libavcodec/wmavoice.c ff_celp_lp_zero_synthesis_filterf(zero_exc_pf, lpcs, synth, size, s->lsps); size 821 libavcodec/wmavoice.c !kalman_smoothen(s, pitch, zero_exc_pf, synth_filter_in_buf, size)) size 826 libavcodec/wmavoice.c synth_filter_in, size, s->lsps); size 827 libavcodec/wmavoice.c memcpy(&synth_pf[-s->lsps], &synth_pf[size - s->lsps], size 830 libavcodec/wmavoice.c wiener_denoise(s, fcb_type, synth_pf, size, lpcs); size 832 libavcodec/wmavoice.c adaptive_gain_control(samples, synth_pf, synth, size, 0.99, size 842 libavcodec/wmavoice.c 0.93980580475, s->dcf_mem, size); size 1276 libavcodec/wmavoice.c int block_idx, int size, size 1283 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE); size 1287 libavcodec/wmavoice.c r_idx = pRNG(s->frame_cntr, block_idx, size); size 1298 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 1307 libavcodec/wmavoice.c int block_idx, int size, size 1319 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE / 2); size 1320 libavcodec/wmavoice.c memset(pulses, 0, sizeof(*pulses) * size); size 1335 libavcodec/wmavoice.c int r_idx = pRNG(s->frame_cntr, block_idx, size); size 1337 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 1364 libavcodec/wmavoice.c ff_set_fixed_vector(pulses, &fcb, 1.0, size); size 1386 libavcodec/wmavoice.c for (n = 0; n < size; n += len) { size 1388 libavcodec/wmavoice.c int abs_idx = block_idx * size + n; size 1400 libavcodec/wmavoice.c 1, size - n); size 1402 libavcodec/wmavoice.c len = size; size 1414 libavcodec/wmavoice.c idx, 8, size); size 1417 libavcodec/wmavoice.c sizeof(float) * size); size 1422 libavcodec/wmavoice.c acb_gain, fcb_gain, size); size 1441 libavcodec/wmavoice.c int block_idx, int size, size 1453 libavcodec/wmavoice.c synth_block_hardcoded(s, gb, block_idx, size, frame_desc, excitation); size 1455 libavcodec/wmavoice.c synth_block_fcb_acb(s, gb, block_idx, size, block_pitch_sh2, size 1465 libavcodec/wmavoice.c ff_celp_lp_synthesis_filterf(synth, lpcs, excitation, size, s->lsps); size 1876 libavcodec/wmavoice.c const uint8_t *data, int size, size 1889 libavcodec/wmavoice.c avpriv_copy_bits(pb, data + size - rmn_bytes, size 1909 libavcodec/wmavoice.c int size, res, pos; size 1916 libavcodec/wmavoice.c for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align); size 1917 libavcodec/wmavoice.c init_get_bits8(&s->gb, avpkt->data, size); size 1922 libavcodec/wmavoice.c if (!(size % ctx->block_align)) { // new packet header size 1923 libavcodec/wmavoice.c if (!size) { size 1937 libavcodec/wmavoice.c if (cnt + s->spillover_nbits > avpkt->size * 8) { size 1938 libavcodec/wmavoice.c s->spillover_nbits = avpkt->size * 8 - cnt; size 1940 libavcodec/wmavoice.c copy_bits(&s->pb, avpkt->data, size, gb, s->spillover_nbits); size 1964 libavcodec/wmavoice.c return size; size 1977 libavcodec/wmavoice.c copy_bits(&s->pb, avpkt->data, size, gb, s->sframe_cache_size); size 1982 libavcodec/wmavoice.c return size; size 64 libavcodec/wnv1.c int buf_size = avpkt->size; size 48 libavcodec/wrapped_avframe.c int size = sizeof(*wrapped) + AV_INPUT_BUFFER_PADDING_SIZE; size 53 libavcodec/wrapped_avframe.c data = av_mallocz(size); size 59 libavcodec/wrapped_avframe.c pkt->buf = av_buffer_create(data, size, size 72 libavcodec/wrapped_avframe.c pkt->size = sizeof(*wrapped); size 90 libavcodec/wrapped_avframe.c if (pkt->size < sizeof(AVFrame)) size 58 libavcodec/ws-snd1.c int buf_size = avpkt->size; size 96 libavcodec/ws-snd1.c int code, smp, size; size 113 libavcodec/ws-snd1.c size = ((code == 2 && (count & 0x20)) || code == 3) ? 0 : count + 1; size 114 libavcodec/ws-snd1.c if ((buf - avpkt->data) + size > buf_size) size 28 libavcodec/x86/aacencdsp_init.c void ff_abs_pow34_sse(float *out, const float *in, const int size); size 31 libavcodec/x86/aacencdsp_init.c int size, int is_signed, int maxval, const float Q34, size 318 libavcodec/x86/cavsdsp.c #define PUT_OP(a,b,temp, size) "mov" #size " " #a ", " #b " \n\t" size 319 libavcodec/x86/cavsdsp.c #define AVG_3DNOW_OP(a,b,temp, size) \ size 320 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ size 322 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" size 323 libavcodec/x86/cavsdsp.c #define AVG_MMXEXT_OP(a, b, temp, size) \ size 324 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ size 326 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" size 25 libavcodec/x86/exrdsp_init.c void ff_reorder_pixels_sse2(uint8_t *dst, const uint8_t *src, ptrdiff_t size); size 27 libavcodec/x86/exrdsp_init.c void ff_reorder_pixels_avx2(uint8_t *dst, const uint8_t *src, ptrdiff_t size); size 29 libavcodec/x86/exrdsp_init.c void ff_predictor_ssse3(uint8_t *src, ptrdiff_t size); size 31 libavcodec/x86/exrdsp_init.c void ff_predictor_avx(uint8_t *src, ptrdiff_t size); size 33 libavcodec/x86/exrdsp_init.c void ff_predictor_avx2(uint8_t *src, ptrdiff_t size); size 64 libavcodec/x86/h264_qpel.c void ff_ ## OPNAME ## _h264_qpel8or16_hv1_lowpass_op_mmxext(const uint8_t *src, int16_t *tmp, int srcStride, int size);\ size 65 libavcodec/x86/h264_qpel.c void ff_ ## OPNAME ## _h264_qpel8or16_hv1_lowpass_op_sse2(const uint8_t *src, int16_t *tmp, int srcStride, int size);\ size 67 libavcodec/x86/h264_qpel.c void ff_ ## OPNAME ## _h264_qpel8or16_hv2_lowpass_ssse3(uint8_t *dst, int16_t *tmp, int dstStride, int tmpStride, int size);\ size 74 libavcodec/x86/h264_qpel.c static av_always_inline void ff_put_h264_qpel8or16_hv1_lowpass_mmxext(int16_t *tmp, const uint8_t *src, int tmpStride, int srcStride, int size) size 76 libavcodec/x86/h264_qpel.c int w = (size + 8) >> 2; size 79 libavcodec/x86/h264_qpel.c ff_put_h264_qpel8or16_hv1_lowpass_op_mmxext(src, tmp, srcStride, size); size 105 libavcodec/x86/h264_qpel.c static av_always_inline void ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_ ## MMX(uint8_t *dst, int16_t *tmp, int dstStride, int tmpStride, int size){\ size 106 libavcodec/x86/h264_qpel.c int w = size>>4;\ size 108 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_op_mmxext(dst, tmp, dstStride, 0, size);\ size 141 libavcodec/x86/h264_qpel.c static av_always_inline void ff_ ## OPNAME ## h264_qpel8or16_hv_lowpass_ ## MMX(uint8_t *dst, int16_t *tmp, const uint8_t *src, int dstStride, int tmpStride, int srcStride, int size){\ size 142 libavcodec/x86/h264_qpel.c ff_put_h264_qpel8or16_hv1_lowpass_ ## MMX(tmp, src, tmpStride, srcStride, size);\ size 143 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_ ## MMX(dst, tmp, dstStride, tmpStride, size);\ size 203 libavcodec/x86/h264_qpel.c int size) size 205 libavcodec/x86/h264_qpel.c int w = (size+8)>>3; size 208 libavcodec/x86/h264_qpel.c ff_put_h264_qpel8or16_hv1_lowpass_op_sse2(src, tmp, srcStride, size); size 215 libavcodec/x86/h264_qpel.c static av_always_inline void ff_ ## OPNAME ## h264_qpel8or16_hv_lowpass_ ## MMX(uint8_t *dst, int16_t *tmp, const uint8_t *src, int dstStride, int tmpStride, int srcStride, int size){\ size 216 libavcodec/x86/h264_qpel.c put_h264_qpel8or16_hv1_lowpass_sse2(tmp, src, tmpStride, srcStride, size);\ size 217 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_ ## MMX(dst, tmp, dstStride, tmpStride, size);\ size 35 libavcodec/x86/rv40dsp_init.c #define DEFINE_FN(op, size, insn) \ size 36 libavcodec/x86/rv40dsp_init.c static void op##_rv40_qpel##size##_mc33_##insn(uint8_t *dst, const uint8_t *src, \ size 39 libavcodec/x86/rv40dsp_init.c ff_##op##_pixels##size##_xy2_##insn(dst, src, stride, size); \ size 28 libavcodec/x86/svq1enc_init.c intptr_t size); size 30 libavcodec/x86/svq1enc_init.c intptr_t size); size 93 libavcodec/x86/vp9dsp_init.c #define itxfm_func(typea, typeb, size, opt) \ size 94 libavcodec/x86/vp9dsp_init.c void ff_vp9_##typea##_##typeb##_##size##x##size##_add_##opt(uint8_t *dst, ptrdiff_t stride, \ size 96 libavcodec/x86/vp9dsp_init.c #define itxfm_funcs(size, opt) \ size 97 libavcodec/x86/vp9dsp_init.c itxfm_func(idct, idct, size, opt); \ size 98 libavcodec/x86/vp9dsp_init.c itxfm_func(iadst, idct, size, opt); \ size 99 libavcodec/x86/vp9dsp_init.c itxfm_func(idct, iadst, size, opt); \ size 100 libavcodec/x86/vp9dsp_init.c itxfm_func(iadst, iadst, size, opt) size 149 libavcodec/x86/vp9dsp_init.c #define ipred_func(size, type, opt) \ size 150 libavcodec/x86/vp9dsp_init.c void ff_vp9_ipred_##type##_##size##x##size##_##opt(uint8_t *dst, ptrdiff_t stride, \ size 155 libavcodec/x86/vp9dsp_init.c #define ipred_dc_funcs(size, opt) \ size 156 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc, opt); \ size 157 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc_left, opt); \ size 158 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc_top, opt) size 163 libavcodec/x86/vp9dsp_init.c #define ipred_dir_tm_funcs(size, opt) \ size 164 libavcodec/x86/vp9dsp_init.c ipred_func(size, tm, opt); \ size 165 libavcodec/x86/vp9dsp_init.c ipred_func(size, dl, opt); \ size 166 libavcodec/x86/vp9dsp_init.c ipred_func(size, dr, opt); \ size 167 libavcodec/x86/vp9dsp_init.c ipred_func(size, hd, opt); \ size 168 libavcodec/x86/vp9dsp_init.c ipred_func(size, hu, opt); \ size 169 libavcodec/x86/vp9dsp_init.c ipred_func(size, vl, opt); \ size 170 libavcodec/x86/vp9dsp_init.c ipred_func(size, vr, opt) size 180 libavcodec/x86/vp9dsp_init.c #define ipred_dir_tm_h_funcs(size, opt) \ size 181 libavcodec/x86/vp9dsp_init.c ipred_dir_tm_funcs(size, opt); \ size 182 libavcodec/x86/vp9dsp_init.c ipred_func(size, h, opt) size 190 libavcodec/x86/vp9dsp_init.c #define ipred_all_funcs(size, opt) \ size 191 libavcodec/x86/vp9dsp_init.c ipred_dc_funcs(size, opt); \ size 192 libavcodec/x86/vp9dsp_init.c ipred_dir_tm_h_funcs(size, opt) size 59 libavcodec/x86/vp9dsp_init.h #define decl_itxfm_func(typea, typeb, size, bpp, opt) \ size 60 libavcodec/x86/vp9dsp_init.h void cat(ff_vp9_##typea##_##typeb##_##size##x##size##_add_, bpp, _##opt)(uint8_t *dst, \ size 65 libavcodec/x86/vp9dsp_init.h #define decl_itxfm_funcs(size, bpp, opt) \ size 66 libavcodec/x86/vp9dsp_init.h decl_itxfm_func(idct, idct, size, bpp, opt); \ size 67 libavcodec/x86/vp9dsp_init.h decl_itxfm_func(iadst, idct, size, bpp, opt); \ size 68 libavcodec/x86/vp9dsp_init.h decl_itxfm_func(idct, iadst, size, bpp, opt); \ size 69 libavcodec/x86/vp9dsp_init.h decl_itxfm_func(iadst, iadst, size, bpp, opt) size 172 libavcodec/x86/vp9dsp_init_16bpp_template.c #define init_itx_func(idxa, idxb, typea, typeb, size, bpp, opt) \ size 174 libavcodec/x86/vp9dsp_init_16bpp_template.c cat(ff_vp9_##typea##_##typeb##_##size##x##size##_add_, bpp, _##opt); size 175 libavcodec/x86/vp9dsp_init_16bpp_template.c #define init_itx_func_one(idx, typea, typeb, size, bpp, opt) \ size 176 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, DCT_DCT, typea, typeb, size, bpp, opt); \ size 177 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, ADST_DCT, typea, typeb, size, bpp, opt); \ size 178 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, DCT_ADST, typea, typeb, size, bpp, opt); \ size 179 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, ADST_ADST, typea, typeb, size, bpp, opt) size 180 libavcodec/x86/vp9dsp_init_16bpp_template.c #define init_itx_funcs(idx, size, bpp, opt) \ size 181 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, DCT_DCT, idct, idct, size, bpp, opt); \ size 182 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, ADST_DCT, idct, iadst, size, bpp, opt); \ size 183 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, DCT_ADST, iadst, idct, size, bpp, opt); \ size 184 libavcodec/x86/vp9dsp_init_16bpp_template.c init_itx_func(idx, ADST_ADST, iadst, iadst, size, bpp, opt); \ size 59 libavcodec/xan.c int size; size 162 libavcodec/xan.c int size; size 174 libavcodec/xan.c size = opcode & 3; size 179 libavcodec/xan.c size = bytestream2_peek_byte(&ctx) >> 6; size 184 libavcodec/xan.c size = opcode & 3; size 190 libavcodec/xan.c if (dest_end - dest < size + size2 || size 191 libavcodec/xan.c dest + size - dest_org < back || size 192 libavcodec/xan.c bytestream2_get_bytes_left(&ctx) < size) size 194 libavcodec/xan.c bytestream2_get_buffer(&ctx, dest, size); size 195 libavcodec/xan.c dest += size; size 200 libavcodec/xan.c size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4; size 202 libavcodec/xan.c if (dest_end - dest < size || bytestream2_get_bytes_left(&ctx) < size) size 204 libavcodec/xan.c bytestream2_get_buffer(&ctx, dest, size); size 205 libavcodec/xan.c dest += size; size 308 libavcodec/xan.c int size = 0; size 325 libavcodec/xan.c if (s->size < 8) size 333 libavcodec/xan.c if (huffman_offset >= s->size || size 334 libavcodec/xan.c size_offset >= s->size || size 335 libavcodec/xan.c vector_offset >= s->size || size 336 libavcodec/xan.c imagedata_offset >= s->size) size 340 libavcodec/xan.c bytestream2_init(&size_segment, s->buf + size_offset, s->size - size_offset); size 341 libavcodec/xan.c bytestream2_init(&vector_segment, s->buf + vector_offset, s->size - vector_offset); size 345 libavcodec/xan.c huffman_segment, s->size - huffman_offset)) < 0) size 351 libavcodec/xan.c &imagedata_segment[1], s->size - imagedata_offset - 1); size 354 libavcodec/xan.c imagedata_size = s->size - imagedata_offset - 1; size 363 libavcodec/xan.c size = 0; size 379 libavcodec/xan.c size = opcode; size 389 libavcodec/xan.c size += (opcode - 10); size 398 libavcodec/xan.c size = bytestream2_get_byte(&size_segment); size 407 libavcodec/xan.c size = bytestream2_get_be16(&size_segment); size 416 libavcodec/xan.c size = bytestream2_get_be24(&size_segment); size 420 libavcodec/xan.c if (size > total_pixels) size 427 libavcodec/xan.c xan_wc3_copy_pixel_run(s, frame, x, y, size, 0, 0); size 430 libavcodec/xan.c if (imagedata_size < size) size 432 libavcodec/xan.c xan_wc3_output_pixel_run(s, frame, imagedata_buffer, x, y, size); size 433 libavcodec/xan.c imagedata_buffer += size; size 434 libavcodec/xan.c imagedata_size -= size; size 448 libavcodec/xan.c xan_wc3_copy_pixel_run(s, frame, x, y, size, motion_x, motion_y); size 454 libavcodec/xan.c total_pixels -= size; size 455 libavcodec/xan.c y += (x + size) / width; size 456 libavcodec/xan.c x = (x + size) % width; size 550 libavcodec/xan.c int ret, buf_size = avpkt->size; size 559 libavcodec/xan.c int size; size 562 libavcodec/xan.c size = bytestream2_get_be32(&ctx); size 563 libavcodec/xan.c if (size < 0) { size 564 libavcodec/xan.c av_log(avctx, AV_LOG_ERROR, "Invalid tag size %d\n", size); size 567 libavcodec/xan.c size = FFMIN(size, bytestream2_get_bytes_left(&ctx)); size 570 libavcodec/xan.c if (size < PALETTE_SIZE) size 595 libavcodec/xan.c if (size < 4) size 606 libavcodec/xan.c bytestream2_skip(&ctx, size); size 627 libavcodec/xan.c s->size = buf_size; size 73 libavcodec/xbmdec.c end = avpkt->data + avpkt->size; size 75 libavcodec/xbmdec.c width = parse_str_int(avpkt->data, avpkt->size, "_width"); size 76 libavcodec/xbmdec.c height = parse_str_int(avpkt->data, avpkt->size, "_height"); size 85 libavcodec/xbmdec.c next = memchr(ptr, '{', avpkt->size); size 87 libavcodec/xbmdec.c next = memchr(ptr, '(', avpkt->size); size 127 libavcodec/xbmdec.c return avpkt->size; size 30 libavcodec/xbmenc.c int i, j, ret, size, linesize; size 34 libavcodec/xbmenc.c size = avctx->height * (linesize * 7 + 2) + 110; size 35 libavcodec/xbmenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size, 0)) < 0) size 52 libavcodec/xbmenc.c pkt->size = buf - pkt->data; size 126 libavcodec/xfacedec.c for (i = 0, k = 0; i < avpkt->size && avpkt->data[i]; i++) { size 176 libavcodec/xfacedec.c return avpkt->size; size 44 libavcodec/xl.c int buf_size = avpkt->size; size 312 libavcodec/xpmdec.c int64_t size; size 318 libavcodec/xpmdec.c av_fast_padded_malloc(&x->buf, &x->buf_size, avpkt->size); size 321 libavcodec/xpmdec.c memcpy(x->buf, avpkt->data, avpkt->size); size 322 libavcodec/xpmdec.c x->buf[avpkt->size] = 0; size 325 libavcodec/xpmdec.c end = x->buf + avpkt->size; size 352 libavcodec/xpmdec.c size = 1; size 354 libavcodec/xpmdec.c size *= NB_ELEMENTS; size 356 libavcodec/xpmdec.c if (ncolors <= 0 || ncolors > size) { size 361 libavcodec/xpmdec.c size *= 4; size 363 libavcodec/xpmdec.c av_fast_padded_malloc(&x->pixels, &x->pixels_size, size); size 425 libavcodec/xpmdec.c return avpkt->size; size 52 libavcodec/xsubdec.c int buf_size = avpkt->size; size 36 libavcodec/xwddec.c int i, ret, buf_size = avpkt->size; size 134 libavcodec/xxan.c int size; size 147 libavcodec/xxan.c size = opcode & 3; size 151 libavcodec/xxan.c size = bytestream2_peek_byte(&s->gb) >> 6; size 155 libavcodec/xxan.c size = opcode & 3; size 158 libavcodec/xxan.c if (size + size2 > dest_end - dest) size 161 libavcodec/xxan.c if (dest + size + size2 > dest_end || size 162 libavcodec/xxan.c dest - orig_dest + size < back) size 164 libavcodec/xxan.c bytestream2_get_buffer(&s->gb, dest, size); size 165 libavcodec/xxan.c dest += size; size 171 libavcodec/xxan.c size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4; size 172 libavcodec/xxan.c if (dest_end - dest < size) size 174 libavcodec/xxan.c bytestream2_get_buffer(&s->gb, dest, size); size 175 libavcodec/xxan.c dest += size; size 416 libavcodec/xxan.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 437 libavcodec/xxan.c return avpkt->size; size 46 libavcodec/y41pdec.c if (avpkt->size < 3LL * avctx->height * FFALIGN(avctx->width, 8) / 2) { size 81 libavcodec/y41pdec.c return avpkt->size; size 297 libavcodec/ylc.c if (avpkt->size <= 16) size 305 libavcodec/ylc.c if (toffset < 16 || toffset >= avpkt->size) size 309 libavcodec/ylc.c if (toffset >= boffset || boffset >= avpkt->size) size 349 libavcodec/ylc.c avpkt->size - boffset + AV_INPUT_BUFFER_PADDING_SIZE); size 353 libavcodec/ylc.c memcpy(s->bitstream_bits, avpkt->data + boffset, avpkt->size - boffset); size 354 libavcodec/ylc.c memset(s->bitstream_bits + avpkt->size - boffset, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 357 libavcodec/ylc.c (avpkt->size - boffset) >> 2); size 358 libavcodec/ylc.c if ((ret = init_get_bits8(&gb, s->bitstream_bits, avpkt->size - boffset)) < 0) size 453 libavcodec/ylc.c return avpkt->size; size 202 libavcodec/yop.c if (avpkt->size < 4 + 3 * s->num_pal_colors) { size 216 libavcodec/yop.c s->src_end = avpkt->data + avpkt->size; size 239 libavcodec/yop.c if (s->srcptr - avpkt->data >= avpkt->size) { size 265 libavcodec/yop.c return avpkt->size; size 41 libavcodec/yuv4dec.c if (avpkt->size < 6 * (avctx->width + 1 >> 1) * (avctx->height + 1 >> 1)) { size 73 libavcodec/yuv4dec.c return avpkt->size; size 66 libavcodec/zerocodec.c zstream->avail_in = avpkt->size; size 100 libavcodec/zerocodec.c return avpkt->size; size 415 libavcodec/zmbv.c int buf_size = avpkt->size; size 337 libavdevice/alsa.c int size = s->reorder_buf_size; size 340 libavdevice/alsa.c av_assert0(size != 0); size 341 libavdevice/alsa.c while (size < min_size) size 342 libavdevice/alsa.c size *= 2; size 343 libavdevice/alsa.c r = av_realloc_array(s->reorder_buf, size, s->frame_size); size 347 libavdevice/alsa.c s->reorder_buf_size = size; size 103 libavdevice/alsa.h int ff_alsa_extend_reorder_buf(AlsaData *s, int size); size 134 libavdevice/alsa_dec.c pkt->size = res * s->frame_size; size 87 libavdevice/alsa_enc.c int size = pkt->size; size 90 libavdevice/alsa_enc.c size /= s->frame_size; size 93 libavdevice/alsa_enc.c s->timestamp += pkt->duration ? pkt->duration : size; size 96 libavdevice/alsa_enc.c if (size > s->reorder_buf_size) size 97 libavdevice/alsa_enc.c if (ff_alsa_extend_reorder_buf(s, size)) size 99 libavdevice/alsa_enc.c s->reorder_func(buf, s->reorder_buf, size); size 102 libavdevice/alsa_enc.c while ((res = snd_pcm_writei(s->h, buf, size)) < 0) { size 131 libavdevice/alsa_enc.c pkt.size = (*frame)->nb_samples * s->frame_size; size 840 libavdevice/android_camera.c return pkt->size; size 80 libavdevice/decklink_common.h unsigned long long size; size 493 libavdevice/decklink_dec.cpp q->size = 0; size 506 libavdevice/decklink_dec.cpp unsigned long long size; size 508 libavdevice/decklink_dec.cpp size = q->size; size 510 libavdevice/decklink_dec.cpp return size; size 547 libavdevice/decklink_dec.cpp q->size += pkt1->pkt.size + sizeof(*pkt1); size 570 libavdevice/decklink_dec.cpp q->size -= pkt1->pkt.size + sizeof(*pkt1); size 814 libavdevice/decklink_dec.cpp pkt.size = videoFrame->GetRowBytes() * size 880 libavdevice/decklink_dec.cpp txt_pkt.size = txt_buf - txt_buf0; size 888 libavdevice/decklink_dec.cpp pkt.buf = av_buffer_create(pkt.data, pkt.size, decklink_object_free, videoFrame, 0); size 904 libavdevice/decklink_dec.cpp pkt.size = audioFrame->GetSampleFrameCount() * ctx->audio_st->codecpar->channels * (ctx->audio_depth / 8); size 1262 libavdevice/decklink_dec.cpp int size; size 1263 libavdevice/decklink_dec.cpp const uint8_t *side_metadata = av_packet_get_side_data(pkt, AV_PKT_DATA_STRINGS_METADATA, &size); size 1265 libavdevice/decklink_dec.cpp if (av_packet_unpack_dictionary(side_metadata, size, &ctx->video_st->metadata) < 0) size 315 libavdevice/decklink_enc.cpp int size, ret, i; size 317 libavdevice/decklink_enc.cpp const uint8_t *data = av_packet_get_side_data(pkt, AV_PKT_DATA_A53_CC, &size); size 321 libavdevice/decklink_enc.cpp cc_count = size / 3; size 527 libavdevice/decklink_enc.cpp int sample_count = pkt->size / (ctx->channels << 1); size 330 libavdevice/dshow.c int i, n, size, r; size 334 libavdevice/dshow.c if (IAMStreamConfig_GetNumberOfCapabilities(config, &n, &size) != S_OK) size 337 libavdevice/dshow.c caps = av_malloc(size); size 1274 libavdevice/dshow.c ctx->curbufsize[pkt->stream_index] -= pkt->size; size 1289 libavdevice/dshow.c return ctx->eof ? AVERROR(EIO) : pkt->size; size 191 libavdevice/iec61883.c int size; size 193 libavdevice/iec61883.c size = avpriv_dv_get_packet(dv->dv_demux, pkt); size 194 libavdevice/iec61883.c if (size > 0) size 195 libavdevice/iec61883.c return size; size 201 libavdevice/iec61883.c size = avpriv_dv_produce_packet(dv->dv_demux, pkt, size 204 libavdevice/iec61883.c if (size < 0) size 209 libavdevice/iec61883.c if (size < 0) size 212 libavdevice/iec61883.c if (av_packet_from_data(pkt, pkt->data, pkt->size) < 0) { size 218 libavdevice/iec61883.c return size; size 224 libavdevice/iec61883.c int size; size 228 libavdevice/iec61883.c size = avpriv_mpegts_parse_packet(dv->mpeg_demux, pkt, packet->buf, size 235 libavdevice/iec61883.c if (size > 0) size 236 libavdevice/iec61883.c return size; size 422 libavdevice/iec61883.c int size; size 430 libavdevice/iec61883.c while ((size = dv->parse_queue(dv, pkt)) == -1) size 438 libavdevice/iec61883.c while ((size = dv->parse_queue(dv, pkt)) == -1) { size 445 libavdevice/iec61883.c return size; size 152 libavdevice/kmsgrab.c .size = fb->height * fb->pitch, size 194 libavdevice/kmsgrab.c pkt->size = sizeof(*frame); size 375 libavdevice/lavfi.c if ((ret = av_new_packet(&lavfi->subcc_packet, sd->size)) < 0) size 377 libavdevice/lavfi.c memcpy(lavfi->subcc_packet.data, sd->data, sd->size); size 392 libavdevice/lavfi.c int size = 0; size 394 libavdevice/lavfi.c if (lavfi->subcc_packet.size) { size 397 libavdevice/lavfi.c lavfi->subcc_packet.size = 0; size 399 libavdevice/lavfi.c return pkt->size; size 438 libavdevice/lavfi.c size = av_image_get_buffer_size(frame->format, frame->width, frame->height, 1); size 439 libavdevice/lavfi.c if ((ret = av_new_packet(pkt, size)) < 0) size 442 libavdevice/lavfi.c av_image_copy_to_buffer(pkt->data, size, (const uint8_t **)frame->data, frame->linesize, size 445 libavdevice/lavfi.c size = frame->nb_samples * av_get_bytes_per_sample(frame->format) * size 447 libavdevice/lavfi.c if ((ret = av_new_packet(pkt, size)) < 0) size 449 libavdevice/lavfi.c memcpy(pkt->data, frame->data[0], size); size 484 libavdevice/lavfi.c pkt->size = size; size 486 libavdevice/lavfi.c return size; size 47 libavdevice/libdc1394.c int size; size 156 libavdevice/libdc1394.c dc1394->size = av_image_get_buffer_size(fmt->pix_fmt, size 159 libavdevice/libdc1394.c vst->codecpar->bit_rate = av_rescale(dc1394->size * 8, size 267 libavdevice/libdc1394.c pkt->size = dc1394->frame->image_bytes; size 276 libavdevice/libdc1394.c return pkt->size; size 210 libavdevice/openal-dec.c return pkt->size; size 100 libavdevice/opengl_enc.c typedef void (APIENTRY *FF_PFNGLBUFFERDATAPROC) (GLenum target, ptrdiff_t size, const GLvoid *data, GLenum usage); size 104 libavdevice/opengl_enc.c typedef void (APIENTRY *FF_PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, uintptr_t pointer); size 80 libavdevice/oss_dec.c ret = read(s->fd, pkt->data, pkt->size); size 83 libavdevice/oss_dec.c pkt->size = 0; size 87 libavdevice/oss_dec.c pkt->size = ret; size 61 libavdevice/oss_enc.c int size= pkt->size; size 64 libavdevice/oss_enc.c while (size > 0) { size 65 libavdevice/oss_enc.c len = FFMIN(OSS_AUDIO_BLOCK_SIZE - s->buffer_ptr, size); size 79 libavdevice/oss_enc.c size -= len; size 641 libavdevice/pulse_audio_enc.c int64_t samples = pkt->size / (av_get_bytes_per_sample(st->codecpar->format) * st->codecpar->channels); size 658 libavdevice/pulse_audio_enc.c if ((ret = pa_stream_write(s->stream, pkt->data, pkt->size, NULL, 0, PA_SEEK_RELATIVE)) < 0) { size 684 libavdevice/pulse_audio_enc.c pkt.size = (*frame)->nb_samples * av_get_bytes_per_sample((*frame)->format) * (*frame)->channels; size 68 libavdevice/sndio_dec.c ret = sio_read(s->hdl, pkt->data, pkt->size); size 74 libavdevice/sndio_dec.c pkt->size = ret; size 50 libavdevice/sndio_enc.c int size = pkt->size; size 53 libavdevice/sndio_enc.c while (size > 0) { size 54 libavdevice/sndio_enc.c len = FFMIN(s->buffer_size - s->buffer_offset, size); size 57 libavdevice/sndio_enc.c size -= len; size 502 libavdevice/v4l2.c pkt->size = 0; size 568 libavdevice/v4l2.c pkt->size = buf.bytesused; size 583 libavdevice/v4l2.c pkt->buf = av_buffer_create(pkt->data, pkt->size, mmap_release_buffer, size 595 libavdevice/v4l2.c return pkt->size; size 1005 libavdevice/v4l2.c return pkt->size; size 93 libavdevice/v4l2enc.c if (write(s->fd, pkt->data, pkt->size) == -1) size 463 libavdevice/vfwcap.c ctx->curbufsize -= pkt->size; size 465 libavdevice/vfwcap.c return pkt->size; size 193 libavdevice/xcbgrab.c pkt->size = length; size 236 libavdevice/xcbgrab.c static AVBufferRef *allocate_shm_buffer(void *opaque, int size) size 244 libavdevice/xcbgrab.c id = shmget(IPC_PRIVATE, size, IPC_CREAT | 0777); size 255 libavdevice/xcbgrab.c ref = av_buffer_create(data, size, free_shm_buffer, (void *)(ptrdiff_t)segment, 0); size 305 libavdevice/xcbgrab.c pkt->size = c->frame_size; size 208 libavfilter/af_adeclick.c static void autocorrelation(const double *input, int order, int size, size 216 libavfilter/af_adeclick.c for (j = i; j < size; j++) size 269 libavfilter/af_adeclick.c static int find_index(int *index, int value, int size) size 273 libavfilter/af_adeclick.c if ((value < index[0]) || (value > index[size - 1])) size 277 libavfilter/af_adeclick.c end = size - 1; size 184 libavfilter/af_afftdn.c static void factor(double *array, int size) size 186 libavfilter/af_afftdn.c for (int i = 0; i < size - 1; i++) { size 187 libavfilter/af_afftdn.c for (int j = i + 1; j < size; j++) { size 188 libavfilter/af_afftdn.c double d = array[j + i * size] / array[i + i * size]; size 190 libavfilter/af_afftdn.c array[j + i * size] = d; size 191 libavfilter/af_afftdn.c for (int k = i + 1; k < size; k++) { size 192 libavfilter/af_afftdn.c array[j + k * size] -= d * array[i + k * size]; size 198 libavfilter/af_afftdn.c static void solve(double *matrix, double *vector, int size) size 200 libavfilter/af_afftdn.c for (int i = 0; i < size - 1; i++) { size 201 libavfilter/af_afftdn.c for (int j = i + 1; j < size; j++) { size 202 libavfilter/af_afftdn.c double d = matrix[j + i * size]; size 207 libavfilter/af_afftdn.c vector[size - 1] /= matrix[size * size - 1]; size 209 libavfilter/af_afftdn.c for (int i = size - 2; i >= 0; i--) { size 211 libavfilter/af_afftdn.c for (int j = i + 1; j < size; j++) size 212 libavfilter/af_afftdn.c d -= matrix[i + j * size] * vector[j]; size 213 libavfilter/af_afftdn.c vector[i] = d / matrix[i + i * size]; size 565 libavfilter/af_afir.c const int size = remaining >= seg->part_size ? seg->part_size : remaining; size 567 libavfilter/af_afir.c if (size < 8) { size 568 libavfilter/af_afir.c for (n = 0; n < size; n++) size 571 libavfilter/af_afir.c toffset += size; size 576 libavfilter/af_afir.c memcpy(block, time + toffset, size * sizeof(*block)); size 589 libavfilter/af_afir.c toffset += size; size 65 libavfilter/af_ashowinfo.c if (sd->size < sizeof(enum AVMatrixEncoding)) { size 88 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*di)) { size 135 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*rg)) { size 152 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*ast)) { size 173 libavfilter/af_ashowinfo.c av_log(ctx, AV_LOG_INFO, "unknown side data type: %d, size %d bytes", sd->type, sd->size); size 98 libavfilter/af_atempo.c int size; size 186 libavfilter/af_atempo.c atempo->size = 0; size 459 libavfilter/af_atempo.c atempo->size = FFMIN(atempo->size + na, atempo->ring); size 462 libavfilter/af_atempo.c atempo->size < atempo->ring ? size 463 libavfilter/af_atempo.c atempo->tail - atempo->size : size 474 libavfilter/af_atempo.c atempo->size = FFMIN(atempo->size + nb, atempo->ring); size 477 libavfilter/af_atempo.c atempo->size < atempo->ring ? size 478 libavfilter/af_atempo.c atempo->tail - atempo->size : size 529 libavfilter/af_atempo.c start = atempo->position[0] - atempo->size; size 36 libavfilter/af_axcorrelate.c int size; size 80 libavfilter/af_axcorrelate.c static float mean_sum(const float *in, int size) size 84 libavfilter/af_axcorrelate.c for (int i = 0; i < size; i++) size 90 libavfilter/af_axcorrelate.c static float square_sum(const float *x, const float *y, int size) size 94 libavfilter/af_axcorrelate.c for (int i = 0; i < size; i++) size 100 libavfilter/af_axcorrelate.c static float xcorrelate(const float *x, const float *y, float sumx, float sumy, int size) size 102 libavfilter/af_axcorrelate.c const float xm = sumx / size, ym = sumy / size; size 105 libavfilter/af_axcorrelate.c for (int i = 0; i < size; i++) { size 114 libavfilter/af_axcorrelate.c num /= size; size 115 libavfilter/af_axcorrelate.c den = sqrtf((den0 * den1) / (size * size)); size 123 libavfilter/af_axcorrelate.c const int size = s->size; size 135 libavfilter/af_axcorrelate.c sumx[0] = mean_sum(x, size); size 136 libavfilter/af_axcorrelate.c sumy[0] = mean_sum(y, size); size 141 libavfilter/af_axcorrelate.c dst[n] = xcorrelate(x + n, y + n, sumx[0], sumy[0], size); size 144 libavfilter/af_axcorrelate.c sumx[0] += x[n + size]; size 146 libavfilter/af_axcorrelate.c sumy[0] += y[n + size]; size 156 libavfilter/af_axcorrelate.c const int size = s->size; size 169 libavfilter/af_axcorrelate.c num_sum[0] = square_sum(x, y, size); size 170 libavfilter/af_axcorrelate.c den_sumx[0] = square_sum(x, x, size); size 171 libavfilter/af_axcorrelate.c den_sumy[0] = square_sum(y, y, size); size 178 libavfilter/af_axcorrelate.c num = num_sum[0] / size; size 179 libavfilter/af_axcorrelate.c den = sqrtf((den_sumx[0] * den_sumy[0]) / (size * size)); size 184 libavfilter/af_axcorrelate.c num_sum[0] += x[n + size] * y[n + size]; size 187 libavfilter/af_axcorrelate.c den_sumx[0] += x[n + size] * x[n + size]; size 190 libavfilter/af_axcorrelate.c den_sumy[0] += y[n + size] * y[n + size]; size 221 libavfilter/af_axcorrelate.c if (available > s->size) { size 222 libavfilter/af_axcorrelate.c const int out_samples = available - s->size; size 262 libavfilter/af_axcorrelate.c if (av_audio_fifo_size(s->fifo[0]) > s->size && size 263 libavfilter/af_axcorrelate.c av_audio_fifo_size(s->fifo[1]) > s->size) { size 277 libavfilter/af_axcorrelate.c if (av_audio_fifo_size(s->fifo[i]) > s->size) size 297 libavfilter/af_axcorrelate.c s->fifo[0] = av_audio_fifo_alloc(outlink->format, outlink->channels, s->size); size 298 libavfilter/af_axcorrelate.c s->fifo[1] = av_audio_fifo_alloc(outlink->format, outlink->channels, s->size); size 359 libavfilter/af_axcorrelate.c { "size", "set segment size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=256}, 2, 131072, AF }, size 50 libavfilter/af_dynaudnorm.c int size; size 166 libavfilter/af_dynaudnorm.c static cqueue *cqueue_create(int size, int max_size) size 170 libavfilter/af_dynaudnorm.c if (max_size < size) size 178 libavfilter/af_dynaudnorm.c q->size = size; size 257 libavfilter/af_dynaudnorm.c int count = (q->size - new_size + 1) / 2; size 263 libavfilter/af_dynaudnorm.c q->size = new_size; size 69 libavfilter/af_headphone.c int size; size 409 libavfilter/af_headphone.c s->n_fft = n_fft = 1 << (32 - ff_clz(ir_len + s->size)); size 665 libavfilter/af_headphone.c if ((ret = ff_inlink_consume_samples(ctx->inputs[0], s->size, s->size, &in)) > 0) { size 854 libavfilter/af_headphone.c { "size", "set frame size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=1024},1024,96000, .flags = FLAGS }, size 195 libavfilter/af_lv2.c s->seq_in[0].atom.size = sizeof(LV2_Atom_Sequence_Body); size 197 libavfilter/af_lv2.c s->seq_out->atom.size = 9624; size 36 libavfilter/atadenoise.h int w, int mid, int size, size 1266 libavfilter/avf_showspectrum.c static void clear_combine_buffer(ShowSpectrumContext *s, int size) size 1270 libavfilter/avf_showspectrum.c for (y = 0; y < size; y++) { size 43 libavfilter/convolution.h int size[4]; size 123 libavfilter/dnn/dnn_backend_native.c size_t size; size 144 libavfilter/dnn/dnn_backend_native.c size = sizeof(header_expected); size 145 libavfilter/dnn/dnn_backend_native.c buf = av_malloc(size); size 151 libavfilter/dnn/dnn_backend_native.c avio_get_str(model_file_context, size - 1, buf, size); size 152 libavfilter/dnn/dnn_backend_native.c dnn_size = size - 1; size 153 libavfilter/dnn/dnn_backend_native.c if (strncmp(buf, header_expected, size) != 0) { size 58 libavfilter/dnn/dnn_backend_tf.c long size, bytes_read; size 64 libavfilter/dnn/dnn_backend_tf.c size = avio_size(model_file_context); size 66 libavfilter/dnn/dnn_backend_tf.c graph_data = av_malloc(size); size 71 libavfilter/dnn/dnn_backend_tf.c bytes_read = avio_read(model_file_context, graph_data, size); size 73 libavfilter/dnn/dnn_backend_tf.c if (bytes_read != size){ size 80 libavfilter/dnn/dnn_backend_tf.c graph_buf->length = size; size 89 libavfilter/dnn/dnn_backend_tf.c size_t size; size 94 libavfilter/dnn/dnn_backend_tf.c size = sizeof(float); size 98 libavfilter/dnn/dnn_backend_tf.c size = 1; size 105 libavfilter/dnn/dnn_backend_tf.c input_dims[1] * input_dims[2] * input_dims[3] * size); size 259 libavfilter/dnn/dnn_backend_tf.c int32_t size; size 261 libavfilter/dnn/dnn_backend_tf.c size = params->input_num * params->output_num * params->kernel_size * params->kernel_size; size 272 libavfilter/dnn/dnn_backend_tf.c tensor = TF_AllocateTensor(TF_FLOAT, dims, dims_len, size * sizeof(float)); size 273 libavfilter/dnn/dnn_backend_tf.c memcpy(TF_TensorData(tensor), params->kernel, size * sizeof(float)); size 522 libavfilter/ebur128.c static int ebur128_calc_relative_threshold(FFEBUR128State **sts, size_t size, size 529 libavfilter/ebur128.c for (i = 0; i < size; i++) { size 545 libavfilter/ebur128.c static int ebur128_gated_loudness(FFEBUR128State ** sts, size_t size, size 553 libavfilter/ebur128.c for (i = 0; i < size; i++) size 557 libavfilter/ebur128.c if (!ebur128_calc_relative_threshold(sts, size, &relative_threshold)) { size 571 libavfilter/ebur128.c for (i = 0; i < size; i++) { size 608 libavfilter/ebur128.c int ff_ebur128_loudness_global_multiple(FFEBUR128State ** sts, size_t size, size 611 libavfilter/ebur128.c return ebur128_gated_loudness(sts, size, out); size 676 libavfilter/ebur128.c int ff_ebur128_loudness_range_multiple(FFEBUR128State ** sts, size_t size, size 688 libavfilter/ebur128.c for (i = 0; i < size; ++i) { size 699 libavfilter/ebur128.c for (i = 0; i < size; ++i) { size 210 libavfilter/ebur128.h size_t size, double *out); size 271 libavfilter/ebur128.h size_t size, double *out); size 49 libavfilter/f_loop.c int64_t size; size 62 libavfilter/f_loop.c if (!s->size) size 137 libavfilter/f_loop.c if (s->ignored_samples + frame->nb_samples > s->start && s->size > 0 && s->loop != 0) { size 138 libavfilter/f_loop.c if (s->nb_samples < s->size) { size 139 libavfilter/f_loop.c int written = FFMIN(frame->nb_samples, s->size - s->nb_samples); size 153 libavfilter/f_loop.c if (s->nb_samples == s->size && drain > 0) { size 186 libavfilter/f_loop.c if ((!s->size) || size 187 libavfilter/f_loop.c (s->nb_samples < s->size) || size 188 libavfilter/f_loop.c (s->nb_samples >= s->size && s->loop == 0)) { size 227 libavfilter/f_loop.c if (!s->eof && (s->nb_samples < s->size || !s->loop || !s->size)) { size 237 libavfilter/f_loop.c s->size = s->nb_samples; size 242 libavfilter/f_loop.c if (s->eof && (!s->loop || !s->size)) { size 247 libavfilter/f_loop.c if (!s->eof && (!s->size || size 248 libavfilter/f_loop.c (s->nb_samples < s->size) || size 249 libavfilter/f_loop.c (s->nb_samples >= s->size && s->loop == 0))) { size 251 libavfilter/f_loop.c } else if (s->loop && s->nb_samples == s->size) { size 260 libavfilter/f_loop.c { "size", "max number of samples to loop", OFFSET(size), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT32_MAX, AFLAGS }, size 302 libavfilter/f_loop.c s->frames = av_calloc(s->size, sizeof(*s->frames)); size 362 libavfilter/f_loop.c if (inlink->frame_count_out >= s->start && s->size > 0 && s->loop != 0) { size 363 libavfilter/f_loop.c if (s->nb_frames < s->size) { size 401 libavfilter/f_loop.c if (!s->eof && (s->nb_frames < s->size || !s->loop || !s->size)) { size 411 libavfilter/f_loop.c s->size = s->nb_frames; size 416 libavfilter/f_loop.c if (s->eof && (!s->loop || !s->size)) { size 421 libavfilter/f_loop.c if (!s->eof && (!s->size || size 422 libavfilter/f_loop.c (s->nb_frames < s->size) || size 423 libavfilter/f_loop.c (s->nb_frames >= s->size && s->loop == 0))) { size 425 libavfilter/f_loop.c } else if (s->loop && s->nb_frames == s->size) { size 434 libavfilter/f_loop.c { "size", "max number of frames to loop", OFFSET(size), AV_OPT_TYPE_INT64, {.i64 = 0 }, 0, INT16_MAX, VFLAGS }, size 51 libavfilter/framepool.c FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), size 119 libavfilter/framepool.c FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size), size 46 libavfilter/framepool.h FFFramePool *ff_frame_pool_video_init(AVBufferRef* (*alloc)(int size), size 64 libavfilter/framepool.h FFFramePool *ff_frame_pool_audio_init(AVBufferRef* (*alloc)(int size), size 209 libavfilter/glslang.cpp res->size = spirv.size()*sizeof(unsigned int); size 210 libavfilter/glslang.cpp res->data = av_memdup(spirv.data(), res->size); size 36 libavfilter/glslang.h size_t size; size 197 libavfilter/opencl.h #define CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, flags, size, host_ptr) do { \ size 201 libavfilter/opencl.h size, \ size 214 libavfilter/opencl.h #define CL_BLOCKING_WRITE_BUFFER(queue, buffer, size, host_ptr, event) do { \ size 220 libavfilter/opencl.h size, \ size 237 libavfilter/opencl.h #define CL_CREATE_BUFFER(ctx, buffer_name, size) CL_CREATE_BUFFER_FLAGS(ctx, buffer_name, 0, size, NULL) size 29 libavfilter/opencl/avgblur.cl int2 size = (int2)(get_global_size(0), get_global_size(1)); size 34 libavfilter/opencl/avgblur.cl for (int xx = max(0, loc.x - rad); xx < min(loc.x + rad + 1, size.x); xx++) { size 49 libavfilter/opencl/avgblur.cl int2 size = (int2)(get_global_size(0), get_global_size(1)); size 54 libavfilter/opencl/avgblur.cl for (int yy = max(0, loc.y - radv); yy < min(loc.y + radv + 1, size.y); yy++) { size 25 libavfilter/opencl/transpose.cl int2 size = get_image_dim(dst); size 29 libavfilter/opencl/transpose.cl int xin = (dir & 2) ? (size.y - 1 - y) : y; size 30 libavfilter/opencl/transpose.cl int yin = (dir & 1) ? (size.x - 1 - x) : x; size 33 libavfilter/opencl/transpose.cl if (x < size.x && y < size.y) size 183 libavfilter/signature_lookup.c uint8_t size; size 211 libavfilter/signature_lookup.c pairs[i].size = 0; size 219 libavfilter/signature_lookup.c pairs[i].size = 1; size 224 libavfilter/signature_lookup.c pairs[i].b[pairs[i].size] = s; size 225 libavfilter/signature_lookup.c pairs[i].b_pos[pairs[i].size] = j; size 226 libavfilter/signature_lookup.c pairs[i].size++; size 234 libavfilter/signature_lookup.c pairs[i].size = 0; size 241 libavfilter/signature_lookup.c for (j = 0; j < pairs[i].size; j++) { size 243 libavfilter/signature_lookup.c for (l = 0; l < pairs[k].size; l++) { size 482 libavfilter/src_movie.c if (!pkt->size) { size 516 libavfilter/src_movie.c pkt->size = 0; /* ready for next run */ size 543 libavfilter/src_movie.c movie->pkt.size = 0; size 548 libavfilter/src_movie.c ret = pkt->size; size 551 libavfilter/src_movie.c pkt->size -= ret; size 552 libavfilter/src_movie.c if (pkt->size <= 0) { size 554 libavfilter/src_movie.c pkt->size = 0; /* ready for next run */ size 566 libavfilter/vaapi_vpp.c size_t size, size 576 libavfilter/vaapi_vpp.c type, size, count, (void*)data, &buffer); size 587 libavfilter/vaapi_vpp.c "is %#x.\n", type, size, count, buffer); size 79 libavfilter/vaapi_vpp.h size_t size, size 59 libavfilter/vaf_spectrumsynth.c int size; size 181 libavfilter/vaf_spectrumsynth.c s->size = s->orientation == VERTICAL ? height / s->channels : width / s->channels; size 184 libavfilter/vaf_spectrumsynth.c for (fft_bits = 1; 1 << fft_bits < 2 * s->size; fft_bits++); size 343 libavfilter/vaf_spectrumsynth.c const int h = s->size; size 117 libavfilter/vf_addroi.c av_assert0(old_roi_size && sd->size % old_roi_size == 0); size 118 libavfilter/vf_addroi.c nb_roi = sd->size / old_roi_size + 1; size 58 libavfilter/vf_atadenoise.c int size, mid; size 77 libavfilter/vf_atadenoise.c { "s", "set how many frames to use", OFFSET(size), AV_OPT_TYPE_INT, {.i64=9}, 5, SIZE, VF }, size 128 libavfilter/vf_atadenoise.c if (!(s->size & 1)) { size 129 libavfilter/vf_atadenoise.c av_log(ctx, AV_LOG_WARNING, "size %d is invalid. Must be an odd value, setting it to %d.\n", s->size, s->size|1); size 130 libavfilter/vf_atadenoise.c s->size |= 1; size 132 libavfilter/vf_atadenoise.c s->mid = s->size / 2 + 1; size 144 libavfilter/vf_atadenoise.c int w, int mid, int size, \ size 159 libavfilter/vf_atadenoise.c for (int j = mid - 1, i = mid + 1; j >= 0 && i < size; j--, i++) { \ size 191 libavfilter/vf_atadenoise.c int w, int mid, int size, \ size 218 libavfilter/vf_atadenoise.c for (int i = mid + 1; i < size; i++) { \ size 243 libavfilter/vf_atadenoise.c const int size = s->size; size 266 libavfilter/vf_atadenoise.c for (i = 0; i < size; i++) size 270 libavfilter/vf_atadenoise.c s->dsp.filter_row(src, dst, srcf, w, mid, size, thra, thrb); size 275 libavfilter/vf_atadenoise.c for (i = 0; i < size; i++) size 325 libavfilter/vf_atadenoise.c if (s->q.available != s->size) { size 336 libavfilter/vf_atadenoise.c if (s->q.available < s->size) { size 354 libavfilter/vf_atadenoise.c for (i = 0; i < s->size; i++) { size 126 libavfilter/vf_avgblur_vulkan.c GLSLC(1, ivec2 size; ); size 130 libavfilter/vf_avgblur_vulkan.c GLSLF(1, size = imageSize(output_img[%i]); ,i); size 131 libavfilter/vf_avgblur_vulkan.c GLSLC(1, if (IS_WITHIN(pos, size)) { ); size 169 libavfilter/vf_avgblur_vulkan.c GLSLC(1, ivec2 size; ); size 173 libavfilter/vf_avgblur_vulkan.c GLSLF(1, size = imageSize(output_img[%i]); ,i); size 174 libavfilter/vf_avgblur_vulkan.c GLSLC(1, if (IS_WITHIN(pos, size)) { ); size 44 libavfilter/vf_chromaber_vulkan.c C(0, void distort_rgb(ivec2 size, ivec2 pos) ) size 46 libavfilter/vf_chromaber_vulkan.c C(1, const vec2 p = ((vec2(pos)/vec2(size)) - 0.5f)*2.0f; ) size 57 libavfilter/vf_chromaber_vulkan.c C(0, void distort_chroma(int idx, ivec2 size, ivec2 pos) ) size 59 libavfilter/vf_chromaber_vulkan.c C(1, vec2 p = ((vec2(pos)/vec2(size)) - 0.5f)*2.0f; ) size 137 libavfilter/vf_chromaber_vulkan.c GLSLC(1, ivec2 size = imageSize(output_img[0]); ); size 138 libavfilter/vf_chromaber_vulkan.c GLSLC(1, vec2 npos = vec2(pos)/vec2(size); ); size 143 libavfilter/vf_chromaber_vulkan.c GLSLF(1, size = imageSize(output_img[%i]); ,i); size 144 libavfilter/vf_chromaber_vulkan.c GLSLC(1, if (IS_WITHIN(pos, size)) { ); size 145 libavfilter/vf_chromaber_vulkan.c GLSLF(2, distort_chroma(%i, size, pos); ,i); size 147 libavfilter/vf_chromaber_vulkan.c GLSLC(2, npos = vec2(pos)/vec2(size); ); size 57 libavfilter/vf_ciescope.c int size; size 111 libavfilter/vf_ciescope.c { "size", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS }, size 112 libavfilter/vf_ciescope.c { "s", "set ciescope size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=512}, 256, 8192, FLAGS }, size 155 libavfilter/vf_ciescope.c outlink->h = outlink->w = s->size; size 1226 libavfilter/vf_ciescope.c int w = s->size; size 1227 libavfilter/vf_ciescope.c int h = s->size; size 254 libavfilter/vf_codecview.c for (i = 0; i < sd->size / sizeof(*mvs); i++) { size 412 libavfilter/vf_colorchannelmixer.c int i, j, size, *buffer = s->buffer; size 416 libavfilter/vf_colorchannelmixer.c size = 1 << depth; size 418 libavfilter/vf_colorchannelmixer.c s->buffer = buffer = av_malloc(16 * size * sizeof(*s->buffer)); size 423 libavfilter/vf_colorchannelmixer.c for (j = 0; j < 4; j++, buffer += size) size 427 libavfilter/vf_colorchannelmixer.c for (i = 0; i < size; i++) { size 496 libavfilter/vf_convolution.c const int radius = s->size[plane] / 2; size 584 libavfilter/vf_convolution.c else if (s->size[p] == 3) size 586 libavfilter/vf_convolution.c else if (s->size[p] == 5) size 588 libavfilter/vf_convolution.c else if (s->size[p] == 7) size 664 libavfilter/vf_convolution.c s->size[i] = s->matrix_length[i]; size 668 libavfilter/vf_convolution.c s->size[i] = s->matrix_length[i]; size 670 libavfilter/vf_convolution.c s->size[i] = 3; size 677 libavfilter/vf_convolution.c s->size[i] = 5; size 684 libavfilter/vf_convolution.c s->size[i] = 7; size 708 libavfilter/vf_convolution.c s->size[i] = 3; size 719 libavfilter/vf_convolution.c s->size[i] = 3; size 730 libavfilter/vf_convolution.c s->size[i] = 3; size 357 libavfilter/vf_curves.c size_t size; size 364 libavfilter/vf_curves.c ret = av_file_map(fname, &buf, &size, 0, NULL); size 369 libavfilter/vf_curves.c if (size < 2) { \ size 375 libavfilter/vf_curves.c size -= 2; \ size 405 libavfilter/vf_curves.c av_file_unmap(buf, size); size 716 libavfilter/vf_datascope.c float size; size 758 libavfilter/vf_datascope.c { "s", "set scope size", OOFFSET(size), AV_OPT_TYPE_FLOAT, {.dbl=0.8}, 0, 1, FLAGSR }, size 870 libavfilter/vf_datascope.c int cx, cy, size; size 876 libavfilter/vf_datascope.c size = hypot(inlink->w, inlink->h); size 877 libavfilter/vf_datascope.c size *= s->size; size 881 libavfilter/vf_datascope.c s->x1 = cx - size / 2.0 * cos(tilt); size 882 libavfilter/vf_datascope.c s->x2 = cx + size / 2.0 * cos(tilt); size 883 libavfilter/vf_datascope.c s->y1 = cy - size / 2.0 * sin(tilt); size 884 libavfilter/vf_datascope.c s->y2 = cy + size / 2.0 * sin(tilt); size 892 libavfilter/vf_datascope.c int size; size 933 libavfilter/vf_datascope.c size = hypot(inlink->w, inlink->h); size 935 libavfilter/vf_datascope.c s->values = av_calloc(size, sizeof(*s->values)); size 50 libavfilter/vf_deflicker.c int size; size 77 libavfilter/vf_deflicker.c { "size", "set how many frames to use", OFFSET(size), AV_OPT_TYPE_INT, {.i64=5}, 2, SIZE, FLAGS }, size 78 libavfilter/vf_deflicker.c { "s", "set how many frames to use", OFFSET(size), AV_OPT_TYPE_INT, {.i64=5}, 2, SIZE, FLAGS }, size 219 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 223 libavfilter/vf_deflicker.c *f /= s->size; size 234 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 238 libavfilter/vf_deflicker.c *f = pow(*f, 1.0f / s->size); size 249 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 253 libavfilter/vf_deflicker.c *f = s->size / *f; size 264 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 268 libavfilter/vf_deflicker.c *f /= s->size; size 280 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 284 libavfilter/vf_deflicker.c *f /= s->size; size 296 libavfilter/vf_deflicker.c for (y = 0; y < s->size; y++) { size 297 libavfilter/vf_deflicker.c *f += powf(s->luminance[y], s->size); size 300 libavfilter/vf_deflicker.c *f /= s->size; size 301 libavfilter/vf_deflicker.c *f = powf(*f, 1.0f / s->size); size 316 libavfilter/vf_deflicker.c AV_QSORT(s->sorted, s->size, float, comparef); size 318 libavfilter/vf_deflicker.c *f = s->sorted[s->size >> 1] / s->luminance[0]; size 370 libavfilter/vf_deflicker.c if (s->q.available < s->size && !s->eof) { size 412 libavfilter/vf_deflicker.c memmove(&s->luminance[0], &s->luminance[1], sizeof(*s->luminance) * (s->size - 1)); size 423 libavfilter/vf_drawtext.c double size, roundedsize; size 430 libavfilter/vf_drawtext.c size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); size 432 libavfilter/vf_drawtext.c if (!isnan(size)) { size 433 libavfilter/vf_drawtext.c roundedsize = round(size); size 479 libavfilter/vf_drawtext.c double size; size 499 libavfilter/vf_drawtext.c double size = av_expr_eval(s->fontsize_pexpr, s->var_values, &s->prng); size 501 libavfilter/vf_drawtext.c if (isnan(size)) { size 506 libavfilter/vf_drawtext.c FcPatternAddDouble(pat, FC_SIZE, size); size 529 libavfilter/vf_drawtext.c FcPatternGetDouble (best, FC_SIZE, 0, &size ) != FcResultMatch) { size 542 libavfilter/vf_drawtext.c s->default_fontsize = size + 0.5; size 215 libavfilter/vf_fftdnoiz.c int size; size 220 libavfilter/vf_fftdnoiz.c size = p->b - p->o; size 221 libavfilter/vf_fftdnoiz.c p->nox = (p->planewidth + (size - 1)) / size; size 222 libavfilter/vf_fftdnoiz.c p->noy = (p->planeheight + (size - 1)) / size; size 224 libavfilter/vf_fftdnoiz.c av_log(ctx, AV_LOG_DEBUG, "nox:%d noy:%d size:%d\n", p->nox, p->noy, size); size 259 libavfilter/vf_fftdnoiz.c const int size = block - overlap; size 271 libavfilter/vf_fftdnoiz.c const int rh = FFMIN(block, height - y * size); size 272 libavfilter/vf_fftdnoiz.c const int rw = FFMIN(block, width - x * size); size 273 libavfilter/vf_fftdnoiz.c uint8_t *src = srcp + src_linesize * y * size + x * size * bpp; size 326 libavfilter/vf_fftdnoiz.c const int size = block - overlap; size 340 libavfilter/vf_fftdnoiz.c const int rw = x == 0 ? block : FFMIN(size, width - x * size - woff); size 341 libavfilter/vf_fftdnoiz.c const int rh = y == 0 ? block : FFMIN(size, height - y * size - hoff); size 343 libavfilter/vf_fftdnoiz.c uint8_t *dst = dstp + dst_linesize * (y * size + hoff) + (x * size + woff) * bpp; size 453 libavfilter/vf_hqx.c #define HQX_FUNC(size) \ size 454 libavfilter/vf_hqx.c static int hq##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ size 456 libavfilter/vf_hqx.c hqx_filter(arg, jobnr, nb_jobs, size); \ size 148 libavfilter/vf_libopencv.c size_t size; size 151 libavfilter/vf_libopencv.c if ((ret = av_file_map(filename, &buf, &size, 0, log_ctx)) < 0) size 156 libavfilter/vf_libopencv.c for (i = 0; i < size; i++) { size 185 libavfilter/vf_libopencv.c pend = buf + size-1; size 197 libavfilter/vf_libopencv.c av_file_unmap(buf, size); size 65 libavfilter/vf_lut3d.c int size; size 250 libavfilter/vf_lut3d.c const int lut_max = prelut->size - 1; size 266 libavfilter/vf_lut3d.c if (prelut->size <= 0) size 556 libavfilter/vf_lut3d.c lut3d->prelut.size = PRELUT_SIZE; size 564 libavfilter/vf_lut3d.c lut3d->prelut.size = 0; size 580 libavfilter/vf_lut3d.c int ret, i, j, k, size, size2; size 582 libavfilter/vf_lut3d.c lut3d->lutsize = size = 33; size 583 libavfilter/vf_lut3d.c size2 = size * size; size 587 libavfilter/vf_lut3d.c size = strtol(line + 10, NULL, 0); size 592 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, 0); size 596 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 597 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 598 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 599 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[k * size2 + j * size + i]; size 621 libavfilter/vf_lut3d.c const int size = strtol(line + 12, NULL, 0); size 622 libavfilter/vf_lut3d.c const int size2 = size * size; size 624 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, 0); size 628 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 629 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 630 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 631 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[i * size2 + j * size + k]; size 673 libavfilter/vf_lut3d.c const int size = 17; size 677 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 679 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, 0); size 684 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 685 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 686 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 688 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[k * size2 + j * size + i]; size 707 libavfilter/vf_lut3d.c int ret, i, j, k, size, size2, in = -1, out = -1; size 744 libavfilter/vf_lut3d.c for (size = 1; size*size*size < in; size++); size 745 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 746 libavfilter/vf_lut3d.c size2 = size * size; size 748 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, 0); size 754 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 755 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 756 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 757 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[k * size2 + j * size + i]; size 818 libavfilter/vf_lut3d.c int inside_metadata = 0, size, size2; size 938 libavfilter/vf_lut3d.c size = size_r; size 939 libavfilter/vf_lut3d.c size2 = size * size; size 944 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, prelut); size 948 libavfilter/vf_lut3d.c for (int k = 0; k < size; k++) { size 949 libavfilter/vf_lut3d.c for (int j = 0; j < size; j++) { size 950 libavfilter/vf_lut3d.c for (int i = 0; i < size; i++) { size 951 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[i * size2 + j * size + k]; size 975 libavfilter/vf_lut3d.c lut3d->prelut.scale[c] = (1.0f / (float)(in_max[c] - in_min[c])) * (lut3d->prelut.size - 1); size 977 libavfilter/vf_lut3d.c for (int i = 0; i < lut3d->prelut.size; ++i) { size 978 libavfilter/vf_lut3d.c float mix = (float) i / (float)(lut3d->prelut.size - 1); size 1009 libavfilter/vf_lut3d.c static int set_identity_matrix(AVFilterContext *ctx, int size) size 1013 libavfilter/vf_lut3d.c const int size2 = size * size; size 1014 libavfilter/vf_lut3d.c const float c = 1. / (size - 1); size 1016 libavfilter/vf_lut3d.c ret = allocate_3dlut(ctx, size, 0); size 1020 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 1021 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 1022 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 1023 libavfilter/vf_lut3d.c struct rgbvec *vec = &lut3d->lut[k * size2 + j * size + i]; size 1384 libavfilter/vf_lut3d.c int size, level, w, h; size 1407 libavfilter/vf_lut3d.c size = level*level*level; size 1408 libavfilter/vf_lut3d.c if (size != w) { size 1412 libavfilter/vf_lut3d.c av_assert0(w == h && w == size); size 1536 libavfilter/vf_lut3d.c static void set_identity_matrix_1d(LUT1DContext *lut1d, int size) size 1538 libavfilter/vf_lut3d.c const float c = 1. / (size - 1); size 1541 libavfilter/vf_lut3d.c lut1d->lutsize = size; size 1542 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 1557 libavfilter/vf_lut3d.c int inside_metadata = 0, size; size 1600 libavfilter/vf_lut3d.c size = strtol(line, NULL, 0); size 1602 libavfilter/vf_lut3d.c if (size < 2 || size > MAX_1D_LEVEL) { size 1607 libavfilter/vf_lut3d.c lut1d->lutsize = size; size 1609 libavfilter/vf_lut3d.c for (int i = 0; i < size; i++) { size 1638 libavfilter/vf_lut3d.c const int size = strtol(line + 12, NULL, 0); size 1641 libavfilter/vf_lut3d.c if (size < 2 || size > MAX_1D_LEVEL) { size 1645 libavfilter/vf_lut3d.c lut1d->lutsize = size; size 1646 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 290 libavfilter/vf_pad.c (buf->data + buf->size) - end < req_end) size 57 libavfilter/vf_readeia608.c int size; size 112 libavfilter/vf_readeia608.c int size = inlink->w + LAG; size 124 libavfilter/vf_readeia608.c s->line = av_calloc(size, sizeof(*s->line)); size 125 libavfilter/vf_readeia608.c s->code = av_calloc(size, sizeof(*s->code)); size 253 libavfilter/vf_readeia608.c code[cnt].size = i - last; size 261 libavfilter/vf_readeia608.c code[cnt].size = LAG + len - last; size 273 libavfilter/vf_readeia608.c av_log(ctx, AV_LOG_DEBUG, " %03d", s->code[i].size); size 319 libavfilter/vf_readeia608.c w / (float)s->code[14].size < SYNC_BITSIZE_MIN || size 320 libavfilter/vf_readeia608.c w / (float)s->code[14].size > SYNC_BITSIZE_MAX) { size 325 libavfilter/vf_readeia608.c bit_size += s->code[i].size; size 330 libavfilter/vf_readeia608.c if (s->code[i].size / bit_size > CLOCK_BITSIZE_MAX || size 331 libavfilter/vf_readeia608.c s->code[i].size / bit_size < CLOCK_BITSIZE_MIN) { size 336 libavfilter/vf_readeia608.c if (s->code[15].size / bit_size < 0.45f) { size 343 libavfilter/vf_readeia608.c run = lrintf(s->code[i].size / bit_size); size 199 libavfilter/vf_scale_vulkan.c GLSLC(1, ivec2 size; ); size 208 libavfilter/vf_scale_vulkan.c GLSLF(1, size = imageSize(output_img[%i]); ,i); size 209 libavfilter/vf_scale_vulkan.c GLSLC(1, if (IS_WITHIN(pos, size)) { ); size 190 libavfilter/vf_selectivecolor.c size_t size; size 193 libavfilter/vf_selectivecolor.c ret = av_file_map(fname, &buf, &size, 0, NULL); size 198 libavfilter/vf_selectivecolor.c if (size < 2) { \ size 204 libavfilter/vf_selectivecolor.c size -= 2; \ size 234 libavfilter/vf_selectivecolor.c av_file_unmap(buf, size); size 66 libavfilter/vf_showinfo.c if (sd->size < sizeof(*spherical)) { size 104 libavfilter/vf_showinfo.c if (sd->size < sizeof(*stereo)) { size 125 libavfilter/vf_showinfo.c if (!roi_size || sd->size % roi_size != 0) { size 129 libavfilter/vf_showinfo.c nb_rois = sd->size / roi_size; size 144 libavfilter/vf_showinfo.c if (sd->size < sizeof(*mastering_display)) { size 331 libavfilter/vf_showinfo.c av_log(ctx, AV_LOG_INFO, "A/53 closed captions (%d bytes)", sd->size); size 342 libavfilter/vf_showinfo.c if (sd->size != 16) { size 380 libavfilter/vf_showinfo.c sd->type, sd->size); size 33 libavfilter/vf_showpalette.c int size; size 39 libavfilter/vf_showpalette.c { "s", "set pixel box size", OFFSET(size), AV_OPT_TYPE_INT, {.i64=30}, 1, 100, FLAGS }, size 75 libavfilter/vf_showpalette.c outlink->w = outlink->h = 16 * s->size; size 79 libavfilter/vf_showpalette.c static int disp_palette(AVFrame *out, const AVFrame *in, int size) size 88 libavfilter/vf_showpalette.c for (j = 0; j < size; j++) size 89 libavfilter/vf_showpalette.c for (i = 0; i < size; i++) size 90 libavfilter/vf_showpalette.c dst[(y*dst_linesize + x) * size + j*dst_linesize + i] = pal[y*16 + x]; size 108 libavfilter/vf_showpalette.c ret = disp_palette(out, in, s->size); size 258 libavfilter/vf_stack.c int inw, inh, size; size 292 libavfilter/vf_stack.c if (sscanf(arg3, "w%d", &size) == 1) { size 293 libavfilter/vf_stack.c if (size == i || size < 0 || size >= s->nb_inputs) size 297 libavfilter/vf_stack.c inw += ctx->inputs[size]->w; size 299 libavfilter/vf_stack.c inh += ctx->inputs[size]->w; size 300 libavfilter/vf_stack.c } else if (sscanf(arg3, "h%d", &size) == 1) { size 301 libavfilter/vf_stack.c if (size == i || size < 0 || size >= s->nb_inputs) size 305 libavfilter/vf_stack.c inw += ctx->inputs[size]->h; size 307 libavfilter/vf_stack.c inh += ctx->inputs[size]->h; size 308 libavfilter/vf_stack.c } else if (sscanf(arg3, "%d", &size) == 1) { size 309 libavfilter/vf_stack.c if (size < 0) size 313 libavfilter/vf_stack.c inw += size; size 315 libavfilter/vf_stack.c inh += size; size 450 libavfilter/vf_subtitles.c pkt.size = 0; size 246 libavfilter/vf_uspp.c pkt.size = p->outbuf_size; size 225 libavfilter/vf_vaguedenoiser.c static void symmetric_extension(float *output, const int size, const int left_ext, const int right_ext) size 228 libavfilter/vf_vaguedenoiser.c int last = NPAD - 1 + size; size 242 libavfilter/vf_vaguedenoiser.c idx = NPAD + NPAD - 1 + size; size 250 libavfilter/vf_vaguedenoiser.c static void transform_step(float *input, float *output, const int size, const int low_size, VagueDenoiserContext *s) size 254 libavfilter/vf_vaguedenoiser.c symmetric_extension(input, size, 1, 1); size 283 libavfilter/vf_vaguedenoiser.c static void invert_step(const float *input, float *output, float *temp, const int size, VagueDenoiserContext *s) size 285 libavfilter/vf_vaguedenoiser.c const int low_size = (size + 1) >> 1; size 286 libavfilter/vf_vaguedenoiser.c const int high_size = size >> 1; size 292 libavfilter/vf_vaguedenoiser.c right_ext = (size % 2 == 0) ? 2 : 1; size 295 libavfilter/vf_vaguedenoiser.c memset(output, 0, (NPAD + NPAD + size) * sizeof(float)); size 296 libavfilter/vf_vaguedenoiser.c findex = (size + 2) >> 1; size 316 libavfilter/vf_vaguedenoiser.c right_ext = (size % 2 == 0) ? 1 : 2; size 62 libavfilter/vf_vectorscope.c int size; size 275 libavfilter/vf_vectorscope.c s->intensity = s->fintensity * (s->size - 1); size 276 libavfilter/vf_vectorscope.c outlink->h = outlink->w = s->size; size 279 libavfilter/vf_vectorscope.c s->peak_memory = av_calloc(s->size, s->size); size 283 libavfilter/vf_vectorscope.c s->peak = av_calloc(s->size, sizeof(*s->peak)); size 287 libavfilter/vf_vectorscope.c for (i = 0; i < s->size; i++) size 288 libavfilter/vf_vectorscope.c s->peak[i] = s->peak_memory + s->size * i; size 297 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 318 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 439 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 440 libavfilter/vf_vectorscope.c const int mid = s->size / 2; size 1070 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 1204 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 1322 libavfilter/vf_vectorscope.c const int max = s->size - 1; size 1471 libavfilter/vf_vectorscope.c out->data[plane] += (s->size - 1) * out->linesize[plane]; size 1487 libavfilter/vf_vectorscope.c s->size = 1 << desc->comp[0].depth; size 1488 libavfilter/vf_vectorscope.c s->mult = s->size / 256; size 1490 libavfilter/vf_vectorscope.c s->tmin = s->lthreshold * (s->size - 1); size 1491 libavfilter/vf_vectorscope.c s->tmax = s->hthreshold * (s->size - 1); size 1509 libavfilter/vf_vectorscope.c if (s->size == 256) size 1516 libavfilter/vf_vectorscope.c if (s->is_yuv && s->size == 256) { size 1532 libavfilter/vf_vectorscope.c s->bg_color[3] = s->bgopacity * (s->size - 1); size 1534 libavfilter/vf_vectorscope.c s->tint[0] = .5f * (s->ftint[0] + 1.f) * (s->size - 1); size 1535 libavfilter/vf_vectorscope.c s->tint[1] = .5f * (s->ftint[1] + 1.f) * (s->size - 1); size 1549 libavfilter/vf_vectorscope.c s->bg_color[1] = s->size / 2; size 1550 libavfilter/vf_vectorscope.c s->bg_color[2] = s->size / 2; size 108 libavfilter/vf_waveform.c int size; size 121 libavfilter/vf_waveform.c void (*blend_line)(uint8_t *dst, int size, int linesize, float o1, float o2, size 707 libavfilter/vf_waveform.c uint16_t * const dst_bottom_line = dst_data + dst_linesize * (s->size - 1); size 713 libavfilter/vf_waveform.c dst_data += s->size; size 844 libavfilter/vf_waveform.c uint8_t * const dst_bottom_line = dst_data + dst_linesize * (s->size - 1); size 850 libavfilter/vf_waveform.c dst_data += s->size; size 997 libavfilter/vf_waveform.c uint16_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 999 libavfilter/vf_waveform.c uint16_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 1032 libavfilter/vf_waveform.c d0_data += s->size - 1; size 1033 libavfilter/vf_waveform.c d1_data += s->size - 1; size 1134 libavfilter/vf_waveform.c uint8_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 1136 libavfilter/vf_waveform.c uint8_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 1169 libavfilter/vf_waveform.c d0_data += s->size - 1; size 1170 libavfilter/vf_waveform.c d1_data += s->size - 1; size 1282 libavfilter/vf_waveform.c uint16_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); \ size 1284 libavfilter/vf_waveform.c uint16_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); \ size 1286 libavfilter/vf_waveform.c uint16_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); \ size 1324 libavfilter/vf_waveform.c d0_data += s->size - 1; \ size 1325 libavfilter/vf_waveform.c d1_data += s->size - 1; \ size 1326 libavfilter/vf_waveform.c d2_data += s->size - 1; \ size 1414 libavfilter/vf_waveform.c uint8_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); \ size 1416 libavfilter/vf_waveform.c uint8_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); \ size 1418 libavfilter/vf_waveform.c uint8_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); \ size 1456 libavfilter/vf_waveform.c d0_data += s->size - 1; \ size 1457 libavfilter/vf_waveform.c d1_data += s->size - 1; \ size 1458 libavfilter/vf_waveform.c d2_data += s->size - 1; \ size 1558 libavfilter/vf_waveform.c uint16_t * const dst_bottom_line = dst_data + dst_linesize * (s->size - 1); size 1582 libavfilter/vf_waveform.c dst_data += s->size - 1; size 1662 libavfilter/vf_waveform.c uint8_t * const dst_bottom_line = dst_data + dst_linesize * (s->size - 1); size 1686 libavfilter/vf_waveform.c dst_data += s->size - 1; size 1774 libavfilter/vf_waveform.c uint16_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 1776 libavfilter/vf_waveform.c uint16_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 1778 libavfilter/vf_waveform.c uint16_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); size 1808 libavfilter/vf_waveform.c d0_data += s->size - 1; size 1809 libavfilter/vf_waveform.c d1_data += s->size - 1; size 1810 libavfilter/vf_waveform.c d2_data += s->size - 1; size 1906 libavfilter/vf_waveform.c uint8_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 1908 libavfilter/vf_waveform.c uint8_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 1910 libavfilter/vf_waveform.c uint8_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); size 1940 libavfilter/vf_waveform.c d0_data += s->size - 1; size 1941 libavfilter/vf_waveform.c d1_data += s->size - 1; size 1942 libavfilter/vf_waveform.c d2_data += s->size - 1; size 2040 libavfilter/vf_waveform.c uint16_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 2042 libavfilter/vf_waveform.c uint16_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 2044 libavfilter/vf_waveform.c uint16_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); size 2074 libavfilter/vf_waveform.c d0_data += s->size - 1; size 2075 libavfilter/vf_waveform.c d1_data += s->size - 1; size 2076 libavfilter/vf_waveform.c d2_data += s->size - 1; size 2173 libavfilter/vf_waveform.c uint8_t * const d0_bottom_line = d0_data + d0_linesize * (s->size - 1); size 2175 libavfilter/vf_waveform.c uint8_t * const d1_bottom_line = d1_data + d1_linesize * (s->size - 1); size 2177 libavfilter/vf_waveform.c uint8_t * const d2_bottom_line = d2_data + d2_linesize * (s->size - 1); size 2207 libavfilter/vf_waveform.c d0_data += s->size - 1; size 2208 libavfilter/vf_waveform.c d1_data += s->size - 1; size 2209 libavfilter/vf_waveform.c d2_data += s->size - 1; size 2892 libavfilter/vf_waveform.c int x = offset_x + (s->mirror ? s->size - 1 - pos : pos); size 2902 libavfilter/vf_waveform.c int x = offset_x + (s->mirror ? s->size - 1 - pos : pos) - 10; size 2910 libavfilter/vf_waveform.c offset_x += s->size * (s->display == STACK); size 2934 libavfilter/vf_waveform.c int x = offset_x + (s->mirror ? s->size - 1 - pos : pos); size 2944 libavfilter/vf_waveform.c int x = offset_x + (s->mirror ? s->size - 1 - pos : pos) - 10; size 2952 libavfilter/vf_waveform.c offset_x += s->size * (s->display == STACK); size 2975 libavfilter/vf_waveform.c int y = offset_y + (s->mirror ? s->size - 1 - pos : pos); size 2985 libavfilter/vf_waveform.c int y = offset_y + (s->mirror ? s->size - 1 - pos : pos) - 10; size 2993 libavfilter/vf_waveform.c offset_y += s->size * (s->display == STACK); size 3017 libavfilter/vf_waveform.c int y = offset_y + (s->mirror ? s->size - 1 - pos : pos); size 3027 libavfilter/vf_waveform.c int y = offset_y + (s->mirror ? s->size - 1 - pos: pos) - 10; size 3035 libavfilter/vf_waveform.c offset_y += s->size * (s->display == STACK); size 3061 libavfilter/vf_waveform.c case AFLAT: s->size = 256 * 2; break; size 3062 libavfilter/vf_waveform.c case FLAT: s->size = 256 * 3; break; size 3063 libavfilter/vf_waveform.c default: s->size = 256; break; size 3288 libavfilter/vf_waveform.c s->size = s->size << (s->bits - 8); size 3290 libavfilter/vf_waveform.c s->tint[0] = .5f * (s->ftint[0] + 1.f) * (s->size - 1); size 3291 libavfilter/vf_waveform.c s->tint[1] = .5f * (s->ftint[1] + 1.f) * (s->size - 1); size 3316 libavfilter/vf_waveform.c int comp = 0, i, j = 0, k, p, size; size 3332 libavfilter/vf_waveform.c outlink->h = s->size * FFMAX(comp * (s->display == STACK), 1); size 3334 libavfilter/vf_waveform.c size = inlink->w; size 3336 libavfilter/vf_waveform.c outlink->w = s->size * FFMAX(comp * (s->display == STACK), 1); size 3338 libavfilter/vf_waveform.c size = inlink->h; size 3341 libavfilter/vf_waveform.c s->peak = av_malloc_array(size, 32 * sizeof(*s->peak)); size 3353 libavfilter/vf_waveform.c s->emax[plane][k] = s->peak + size * (plane * 4 + k + 0); size 3354 libavfilter/vf_waveform.c s->emin[plane][k] = s->peak + size * (plane * 4 + k + 16); size 3357 libavfilter/vf_waveform.c offset = j++ * s->size * (s->display == STACK); size 3359 libavfilter/vf_waveform.c s->eend[plane] = (offset + s->size - 1); size 3360 libavfilter/vf_waveform.c for (i = 0; i < size; i++) { size 3418 libavfilter/vf_waveform.c offset_y = s->mode ? i++ * s->size * !!s->display : 0; size 3419 libavfilter/vf_waveform.c offset_x = s->mode ? 0 : i++ * s->size * !!s->display; size 321 libavfilter/vf_xbr.c #define XBR_FUNC(size) \ size 322 libavfilter/vf_xbr.c static int xbr##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ size 324 libavfilter/vf_xbr.c xbr_filter(arg, jobnr, nb_jobs, size); \ size 484 libavfilter/vf_zscale.c size_t size; size 491 libavfilter/vf_zscale.c ret = zimg_filter_graph_get_tmp_size(*graph, &size); size 495 libavfilter/vf_zscale.c if (size > *tmp_size) { size 497 libavfilter/vf_zscale.c *tmp = av_malloc(size); size 501 libavfilter/vf_zscale.c *tmp_size = size; size 820 libavfilter/vsrc_testsrc.c int size, step, x1, x2, y1, y2; size 822 libavfilter/vsrc_testsrc.c size = av_rescale_q(s->pts, s->time_base, av_make_q(4, cycle)); size 823 libavfilter/vsrc_testsrc.c step = size / l; size 824 libavfilter/vsrc_testsrc.c size %= l; size 826 libavfilter/vsrc_testsrc.c size = l - size; size 829 libavfilter/vsrc_testsrc.c x1 = ff_draw_round_to_sub(&s->draw, 0, -1, xc - 4 - size); size 830 libavfilter/vsrc_testsrc.c x2 = ff_draw_round_to_sub(&s->draw, 0, +1, xc + 4 + size); size 831 libavfilter/vsrc_testsrc.c y1 = ff_draw_round_to_sub(&s->draw, 1, -1, yc - 4 - size); size 832 libavfilter/vsrc_testsrc.c y2 = ff_draw_round_to_sub(&s->draw, 1, +1, yc + 4 + size); size 109 libavfilter/vulkan.c req->size = FFALIGN(req->size, props.limits.minMemoryMapAlignment); size 111 libavfilter/vulkan.c alloc_info.allocationSize = req->size; size 150 libavfilter/vulkan.c int ff_vk_create_buf(AVFilterContext *avctx, FFVkBuffer *buf, size_t size, size 163 libavfilter/vulkan.c .size = size, /* Gets FFALIGNED during alloc if host visible size 240 libavfilter/vulkan.c .size = VK_WHOLE_SIZE, size 278 libavfilter/vulkan.c .size = VK_WHOLE_SIZE, size 319 libavfilter/vulkan.c int offset, int size, VkShaderStageFlagBits stage) size 333 libavfilter/vulkan.c pc->size = size; size 976 libavfilter/vulkan.c shader_create.codeSize = res->size; size 1173 libavfilter/vulkan.c size_t size, void *src) size 1177 libavfilter/vulkan.c stage, offset, size, src); size 242 libavfilter/vulkan.h int offset, int size, VkShaderStageFlagBits stage); size 320 libavfilter/vulkan.h size_t size, void *src); size 355 libavfilter/vulkan.h int ff_vk_create_buf(AVFilterContext *avctx, FFVkBuffer *buf, size_t size, size 30 libavfilter/x86/vf_atadenoise_init.c int w, int mid, int size, size 35 libavfilter/x86/vf_atadenoise_init.c int w, int mid, int size, size 37 libavformat/3dostr.c unsigned chunk, codec = 0, size, ctrl_size = -1, found_shdr = 0; size 42 libavformat/3dostr.c size = avio_rb32(s->pb); size 44 libavformat/3dostr.c if (size < 8) size 46 libavformat/3dostr.c size -= 8; size 50 libavformat/3dostr.c ctrl_size = size; size 53 libavformat/3dostr.c if (size < 56) size 75 libavformat/3dostr.c size -= 56; size 79 libavformat/3dostr.c if (size > 0x78) { size 81 libavformat/3dostr.c size -= 0x78; size 82 libavformat/3dostr.c if (avio_rl32(s->pb) == MKTAG('C','T','R','L') && size > 4) { size 84 libavformat/3dostr.c size -= 4; size 93 libavformat/3dostr.c avio_skip(s->pb, size); size 113 libavformat/3dostr.c unsigned chunk, size, found_ssmp = 0; size 124 libavformat/3dostr.c size = avio_rb32(s->pb); size 126 libavformat/3dostr.c if (!size) size 129 libavformat/3dostr.c if (size < 8) size 131 libavformat/3dostr.c size -= 8; size 135 libavformat/3dostr.c if (size <= 16) size 141 libavformat/3dostr.c size -= 16; size 142 libavformat/3dostr.c ret = av_get_packet(s->pb, pkt, size); size 145 libavformat/3dostr.c pkt->duration = size / st->codecpar->channels; size 146 libavformat/3dostr.c size = 0; size 154 libavformat/3dostr.c avio_skip(s->pb, size); size 61 libavformat/4xm.c size = avio_rl32(pb); \ size 96 libavformat/4xm.c FourxmDemuxContext *fourxm, uint8_t *buf, int size, size 101 libavformat/4xm.c if (size != vtrk_SIZE || left < size + 8) { size 130 libavformat/4xm.c FourxmDemuxContext *fourxm, uint8_t *buf, int size, size 136 libavformat/4xm.c if (size != strk_SIZE || left < size + 8) size 212 libavformat/4xm.c unsigned int size; size 228 libavformat/4xm.c header_size = size - 4; size 244 libavformat/4xm.c size = AV_RL32(&header[i + 4]); size 245 libavformat/4xm.c if (size > header_size - i - 8 && (fourcc_tag == vtrk_TAG || fourcc_tag == strk_TAG)) { size 246 libavformat/4xm.c av_log(s, AV_LOG_ERROR, "chunk larger than array %d>%d\n", size, header_size - i - 8); size 259 libavformat/4xm.c if ((ret = parse_vtrk(s, fourxm, header + i, size, size 263 libavformat/4xm.c i += 8 + size; size 265 libavformat/4xm.c if ((ret = parse_strk(s, fourxm, header + i, size, size 269 libavformat/4xm.c i += 8 + size; size 297 libavformat/4xm.c unsigned int size; size 308 libavformat/4xm.c size = AV_RL32(&header[4]); size 328 libavformat/4xm.c if (size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE - 8) size 332 libavformat/4xm.c if ((ret = av_new_packet(pkt, size + 8)) < 0) size 338 libavformat/4xm.c ret = avio_read(s->pb, &pkt->data[8], size); size 351 libavformat/4xm.c size -= 8; size 355 libavformat/4xm.c ret = av_get_packet(s->pb, pkt, size); size 364 libavformat/4xm.c audio_frame_count = size; size 375 libavformat/4xm.c avio_skip(pb, size); size 380 libavformat/4xm.c avio_skip(pb, size); size 142 libavformat/aacdec.c ret = av_append_packet(s->pb, pkt, ff_id3v2_tag_len(pkt->data) - pkt->size); size 147 libavformat/aacdec.c ffio_init_context(&ioctx, pkt->data, pkt->size, 0, NULL, NULL, NULL, NULL); size 204 libavformat/aacdec.c ret = av_append_packet(s->pb, pkt, fsize - pkt->size); size 81 libavformat/aadec.c uint32_t size; size 100 libavformat/aadec.c TOC[i].size = avio_rb32(pb); // block size size 208 libavformat/aadec.c current_size = TOC[i].size; size 67 libavformat/act.c int size; size 77 libavformat/act.c size=avio_rl32(pb); size 78 libavformat/act.c ff_get_wav_header(s, pb, st->codecpar, size, 0); size 72 libavformat/adp.c int ret, size = 1024; size 77 libavformat/adp.c ret = av_get_packet(s->pb, pkt, size); size 79 libavformat/adp.c if (ret != size) { size 37 libavformat/ads.c int align, codec, size; size 64 libavformat/ads.c size = avio_rl32(s->pb); size 66 libavformat/ads.c st->duration = (size - 0x40) / 16 / st->codecpar->channels * 28; size 48 libavformat/adtsenc.c static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) size 55 libavformat/adtsenc.c init_get_bits(&gb, buf, size * 8); size 56 libavformat/adtsenc.c off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); size 124 libavformat/adtsenc.c uint8_t *buf, int size, int pce_size) size 128 libavformat/adtsenc.c unsigned full_frame_size = (unsigned)ADTS_HEADER_SIZE + size + pce_size; size 168 libavformat/adtsenc.c if (!pkt->size) size 187 libavformat/adtsenc.c int err = adts_write_frame_header(adts, buf, pkt->size, size 197 libavformat/adtsenc.c avio_write(pb, pkt->data, pkt->size); size 54 libavformat/adxdec.c int ret, size; size 61 libavformat/adxdec.c size = BLOCK_SIZE * par->channels; size 66 libavformat/adxdec.c ret = av_get_packet(s->pb, pkt, size); size 67 libavformat/adxdec.c if (ret != size) { size 73 libavformat/adxdec.c pkt->size = size; size 75 libavformat/adxdec.c pkt->pts = (pkt->pos - c->header_size) / size; size 60 libavformat/afc.c int64_t size; size 63 libavformat/afc.c size = FFMIN(c->data_end - avio_tell(s->pb), 18 * 128); size 64 libavformat/afc.c if (size <= 0) size 67 libavformat/afc.c ret = av_get_packet(s->pb, pkt, size); size 60 libavformat/aiffdec.c int size; size 66 libavformat/aiffdec.c size = avio_rb32(pb); size 68 libavformat/aiffdec.c if (size < 0) size 69 libavformat/aiffdec.c size = 0x7fffffff; size 71 libavformat/aiffdec.c return size; size 75 libavformat/aiffdec.c static void get_meta(AVFormatContext *s, const char *key, int size) size 77 libavformat/aiffdec.c uint8_t *str = av_malloc(size+1); size 80 libavformat/aiffdec.c int res = avio_read(s->pb, str, size); size 85 libavformat/aiffdec.c size -= res; size 90 libavformat/aiffdec.c avio_skip(s->pb, size); size 94 libavformat/aiffdec.c static int get_aiff_header(AVFormatContext *s, int size, size 105 libavformat/aiffdec.c if (size & 1) size 106 libavformat/aiffdec.c size++; size 123 libavformat/aiffdec.c size -= 18; size 126 libavformat/aiffdec.c if (size < 4) { size 134 libavformat/aiffdec.c size -= 4; size 187 libavformat/aiffdec.c if (size) size 188 libavformat/aiffdec.c avio_skip(pb, size); size 208 libavformat/aiffdec.c int ret, size, filesize; size 237 libavformat/aiffdec.c size = get_tag(pb, &tag); size 239 libavformat/aiffdec.c if (size == AVERROR_EOF && offset > 0 && st->codecpar->block_align) { size 243 libavformat/aiffdec.c if (size < 0) size 244 libavformat/aiffdec.c return size; size 246 libavformat/aiffdec.c if (size >= 0x7fffffff - 8) size 249 libavformat/aiffdec.c filesize -= size + 8; size 254 libavformat/aiffdec.c st->nb_frames = get_aiff_header(s, size, version); size 262 libavformat/aiffdec.c ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC, &id3v2_extra_meta, size); size 270 libavformat/aiffdec.c if (position + size > avio_tell(pb)) size 271 libavformat/aiffdec.c avio_skip(pb, position + size - avio_tell(pb)); size 277 libavformat/aiffdec.c get_meta(s, "title" , size); size 280 libavformat/aiffdec.c get_meta(s, "author" , size); size 283 libavformat/aiffdec.c get_meta(s, "copyright", size); size 286 libavformat/aiffdec.c get_meta(s, "comment" , size); size 289 libavformat/aiffdec.c aiff->data_end = avio_tell(pb) + size; size 299 libavformat/aiffdec.c avio_skip(pb, size - 8); size 302 libavformat/aiffdec.c if ((uint64_t)size > (1<<30)) size 304 libavformat/aiffdec.c if ((ret = ff_get_extradata(s, st->codecpar, pb, size)) < 0) size 307 libavformat/aiffdec.c && size>=12*4 && !st->codecpar->block_align) { size 312 libavformat/aiffdec.c if (size >= 25) size 328 libavformat/aiffdec.c if ((ret = ff_mov_read_chan(s, pb, st, size)) < 0) size 333 libavformat/aiffdec.c aiff->data_end = avio_tell(pb) + size; size 345 libavformat/aiffdec.c avio_skip(pb, size); size 349 libavformat/aiffdec.c if (size & 1) { size 387 libavformat/aiffdec.c int res, size; size 405 libavformat/aiffdec.c size = st->codecpar->block_align; size 408 libavformat/aiffdec.c size = st->codecpar->block_align ? (MAX_SIZE / st->codecpar->block_align) * st->codecpar->block_align : MAX_SIZE; size 410 libavformat/aiffdec.c size = FFMIN(max_size, size); size 411 libavformat/aiffdec.c res = av_get_packet(s->pb, pkt, size); size 415 libavformat/aiffdec.c if (size >= st->codecpar->block_align) size 47 libavformat/aiffenc.c uint64_t pos, end, size; size 69 libavformat/aiffenc.c size = end - pos; size 73 libavformat/aiffenc.c avio_wb32(pb, size); size 76 libavformat/aiffenc.c if (size & 1) size 88 libavformat/aiffenc.c int size = strlen(tag->value); size 91 libavformat/aiffenc.c avio_wb32(pb, FFALIGN(size, 2)); size 92 libavformat/aiffenc.c avio_write(pb, tag->value, size); size 93 libavformat/aiffenc.c if (size & 1) size 210 libavformat/aiffenc.c avio_write(pb, pkt->data, pkt->size); size 42 libavformat/aixdec.c unsigned size; size 76 libavformat/aixdec.c size = avio_rb32(s->pb); size 77 libavformat/aixdec.c if (size <= 8) size 80 libavformat/aixdec.c ff_get_extradata(s, s->streams[i]->codecpar, s->pb, size - 8); size 88 libavformat/aixdec.c unsigned size, index, duration, chunk; size 96 libavformat/aixdec.c size = avio_rb32(s->pb); size 98 libavformat/aixdec.c avio_skip(s->pb, size); size 103 libavformat/aixdec.c size = avio_rb32(s->pb); size 104 libavformat/aixdec.c avio_skip(s->pb, size); size 108 libavformat/aixdec.c size = avio_rb32(s->pb); size 113 libavformat/aixdec.c if (size <= 8) size 121 libavformat/aixdec.c avio_skip(s->pb, size - 8); size 125 libavformat/aixdec.c ret = av_get_packet(s->pb, pkt, size - 8); size 518 libavformat/allformats.c static const uintptr_t size = sizeof(muxer_list)/sizeof(muxer_list[0]) - 1; size 522 libavformat/allformats.c if (i < size) { size 525 libavformat/allformats.c f = outdev_list[i - size]; size 535 libavformat/allformats.c static const uintptr_t size = sizeof(demuxer_list)/sizeof(demuxer_list[0]) - 1; size 539 libavformat/allformats.c if (i < size) { size 542 libavformat/allformats.c f = indev_list[i - size]; size 119 libavformat/amr.c int read, size = 0, toc, mode; size 132 libavformat/amr.c size = amrnb_packed_size[mode]; size 134 libavformat/amr.c size = amrwb_packed_size[mode]; size 137 libavformat/amr.c if (!size || av_new_packet(pkt, size)) size 140 libavformat/amr.c if (amr->cumulated_size < UINT64_MAX - size) { size 141 libavformat/amr.c amr->cumulated_size += size; size 150 libavformat/amr.c read = avio_read(s->pb, pkt->data + 1, size - 1); size 152 libavformat/amr.c if (read != size - 1) { size 183 libavformat/amr.c int size = amrnb_packed_size[mode]; size 184 libavformat/amr.c while (size--) { size 188 libavformat/amr.c if (size > 0) { size 190 libavformat/amr.c i += size; size 239 libavformat/amr.c int size = amrwb_packed_size[mode]; size 240 libavformat/amr.c while (size--) { size 244 libavformat/amr.c if (size > 0) { size 246 libavformat/amr.c i += size; size 34 libavformat/anm.c int size; size 148 libavformat/anm.c p->size = avio_rl16(pb); size 207 libavformat/anm.c pkt->size = av_get_packet(s->pb, pkt, record_size); size 208 libavformat/anm.c if (pkt->size < 0) size 209 libavformat/anm.c return pkt->size; size 46 libavformat/ape.c int size; size 152 libavformat/ape.c ape_ctx->frames[i].pos, ape_ctx->frames[i].size, size 311 libavformat/ape.c ape->frames[i - 1].size = ape->frames[i].pos - ape->frames[i - 1].pos; size 324 libavformat/ape.c ape->frames[ape->totalframes - 1].size = final_size; size 329 libavformat/ape.c ape->frames[i].size += ape->frames[i].skip; size 331 libavformat/ape.c ape->frames[i].size = (ape->frames[i].size + 3) & ~3; size 336 libavformat/ape.c ape->frames[i].size += 4; size 418 libavformat/ape.c if (ape->frames[ape->currentframe].size <= 0 || size 419 libavformat/ape.c ape->frames[ape->currentframe].size > INT_MAX - extra_size) { size 421 libavformat/ape.c ape->frames[ape->currentframe].size); size 426 libavformat/ape.c ret = av_new_packet(pkt, ape->frames[ape->currentframe].size + extra_size); size 432 libavformat/ape.c ret = avio_read(s->pb, pkt->data + extra_size, ape->frames[ape->currentframe].size); size 442 libavformat/ape.c pkt->size = ret + extra_size; size 41 libavformat/apetag.c int64_t size, flags; size 44 libavformat/apetag.c size = avio_rl32(pb); /* field size */ size 58 libavformat/apetag.c if (size > INT32_MAX - AV_INPUT_BUFFER_PADDING_SIZE) { size 70 libavformat/apetag.c ret = avio_get_str(pb, size, filename, sizeof(filename)); size 73 libavformat/apetag.c if (size <= ret) { size 77 libavformat/apetag.c size -= ret; size 85 libavformat/apetag.c ret = av_get_packet(s->pb, &pkt, size); size 99 libavformat/apetag.c if ((ret = ff_get_extradata(s, st->codecpar, s->pb, size)) < 0) size 104 libavformat/apetag.c value = av_malloc(size+1); size 107 libavformat/apetag.c c = avio_read(pb, value, size); size 188 libavformat/apetag.c int size, ret, count = 0; size 214 libavformat/apetag.c size = avio_get_dyn_buf(dyn_bc, &dyn_buf); size 215 libavformat/apetag.c if (size <= 0) size 217 libavformat/apetag.c size += APE_TAG_FOOTER_BYTES; size 222 libavformat/apetag.c avio_wl32(s->pb, size); size 229 libavformat/apetag.c avio_write(s->pb, dyn_buf, size - APE_TAG_FOOTER_BYTES); size 234 libavformat/apetag.c avio_wl32(s->pb, size); // size size 193 libavformat/apngdec.c int64_t size = avio_size(pb); size 195 libavformat/apngdec.c if (size < 0) { size 196 libavformat/apngdec.c ret = size; size 201 libavformat/apngdec.c } else if ((ret = ffio_ensure_seekback(pb, size - offset)) < 0) { size 321 libavformat/apngdec.c int64_t size; size 361 libavformat/apngdec.c size = 38 /* fcTL */ + 8 /* len, tag */ + len + 4 /* crc */; size 362 libavformat/apngdec.c if (size > INT_MAX) size 366 libavformat/apngdec.c (ret = av_append_packet(pb, pkt, size)) < 0) size 154 libavformat/apngenc.c existing_fcTL_chunk = apng_find_chunk(MKBETAG('f', 'c', 'T', 'L'), apng->prev_packet->data, apng->prev_packet->size); size 158 libavformat/apngenc.c avio_write(io_context, chunk_after_fcTL, apng->prev_packet->data + apng->prev_packet->size - chunk_after_fcTL); size 160 libavformat/apngenc.c avio_write(io_context, apng->prev_packet->data, apng->prev_packet->size); size 182 libavformat/apngenc.c existing_fcTL_chunk = apng_find_chunk(MKBETAG('f', 'c', 'T', 'L'), apng->prev_packet->data, apng->prev_packet->size); size 215 libavformat/apngenc.c avio_write(io_context, apng->prev_packet->data, apng->prev_packet->size); size 44 libavformat/asfdec_f.c uint16_t size; size 374 libavformat/asfdec_f.c static int asf_read_file_properties(AVFormatContext *s, int64_t size) size 398 libavformat/asfdec_f.c static int asf_read_stream_properties(AVFormatContext *s, int64_t size) size 491 libavformat/asfdec_f.c if (size >= (pos2 + 8 - pos1 + 24)) { size 505 libavformat/asfdec_f.c size - (avio_tell(pb) - pos1 + 24) >= 51) { size 560 libavformat/asfdec_f.c avio_skip(pb, size - (pos2 - pos1 + 24)); size 565 libavformat/asfdec_f.c static int asf_read_ext_stream_properties(AVFormatContext *s, int64_t size) size 606 libavformat/asfdec_f.c int size; size 608 libavformat/asfdec_f.c size = avio_rl16(pb); size 614 libavformat/asfdec_f.c p->size = size; size 615 libavformat/asfdec_f.c av_log(s, AV_LOG_DEBUG, "Payload extension %x %d\n", g[0], p->size ); size 623 libavformat/asfdec_f.c static int asf_read_content_desc(AVFormatContext *s, int64_t size) size 642 libavformat/asfdec_f.c static int asf_read_ext_content_desc(AVFormatContext *s, int64_t size) size 676 libavformat/asfdec_f.c static int asf_read_language_list(AVFormatContext *s, int64_t size) size 696 libavformat/asfdec_f.c static int asf_read_metadata(AVFormatContext *s, int64_t size) size 744 libavformat/asfdec_f.c static int asf_read_marker(AVFormatContext *s, int64_t size) size 860 libavformat/asfdec_f.c av_hex_dump_log(s, AV_LOG_DEBUG, pkt.data, pkt.size); size 1128 libavformat/asfdec_f.c int size = p->size; size 1130 libavformat/asfdec_f.c if (size == 0xFFFF) size 1131 libavformat/asfdec_f.c size = avio_rl16(pb); size 1132 libavformat/asfdec_f.c payend = avio_tell(pb) + size; size 1296 libavformat/asfdec_f.c if (asf_st->pkt.size != asf_st->packet_obj_size || size 1298 libavformat/asfdec_f.c asf_st->frag_offset + asf->packet_frag_size > asf_st->pkt.size) { size 1304 libavformat/asfdec_f.c asf_st->pkt.size, asf_st->packet_obj_size); size 1344 libavformat/asfdec_f.c s->packet_size, asf_st->pkt.size, asf->packet_frag_offset, size 1350 libavformat/asfdec_f.c if (asf->packet_frag_offset >= asf_st->pkt.size || size 1351 libavformat/asfdec_f.c asf->packet_frag_size > asf_st->pkt.size - asf->packet_frag_offset) { size 1355 libavformat/asfdec_f.c asf_st->pkt.size); size 1360 libavformat/asfdec_f.c memset(asf_st->pkt.data + asf_st->frag_offset, 0, asf_st->pkt.size - asf_st->frag_offset); size 1387 libavformat/asfdec_f.c if (asf_st->frag_offset == asf_st->pkt.size) { size 1390 libavformat/asfdec_f.c asf_st->pkt.size > 100) { size 1392 libavformat/asfdec_f.c for (i = 0; i < asf_st->pkt.size && !asf_st->pkt.data[i]; i++) size 1394 libavformat/asfdec_f.c if (i == asf_st->pkt.size) { size 1404 libavformat/asfdec_f.c if (asf_st->pkt.size != asf_st->ds_packet_size * asf_st->ds_span) { size 1407 libavformat/asfdec_f.c asf_st->pkt.size, asf_st->ds_packet_size, size 1411 libavformat/asfdec_f.c AVBufferRef *buf = av_buffer_alloc(asf_st->pkt.size + size 1416 libavformat/asfdec_f.c memset(newdata + asf_st->pkt.size, 0, size 1418 libavformat/asfdec_f.c while (offset < asf_st->pkt.size) { size 1423 libavformat/asfdec_f.c assert(offset + asf_st->ds_chunk_size <= asf_st->pkt.size); size 1424 libavformat/asfdec_f.c assert(idx + 1 <= asf_st->pkt.size / asf_st->ds_chunk_size); size 1439 libavformat/asfdec_f.c asf_st->pkt.size = 0; size 1565 libavformat/asfdec_f.c av_add_index_entry(s->streams[i], pos, pts, pkt->size, size 147 libavformat/asfdec_o.c static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t size); size 167 libavformat/asfdec_o.c static void align_position(AVIOContext *pb, int64_t offset, uint64_t size) size 169 libavformat/asfdec_o.c if (size < INT64_MAX - offset && avio_tell(pb) != offset + size) size 170 libavformat/asfdec_o.c avio_seek(pb, offset + size, SEEK_SET); size 177 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 180 libavformat/asfdec_o.c if (size > INT64_MAX) size 184 libavformat/asfdec_o.c asf->unknown_size = size; size 193 libavformat/asfdec_o.c if (size < 24) { size 194 libavformat/asfdec_o.c av_log(s, AV_LOG_ERROR, "Too small size %"PRIu64" (< 24).\n", size); size 197 libavformat/asfdec_o.c avio_skip(pb, size - 24); size 224 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 254 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 506 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 535 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 579 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 618 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 631 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 646 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 731 libavformat/asfdec_o.c uint64_t size; size 745 libavformat/asfdec_o.c size = avio_rl64(pb); size 772 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 826 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 854 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 897 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 908 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 917 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 933 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 942 libavformat/asfdec_o.c uint64_t size = asf->data_size = avio_rl64(pb); size 960 libavformat/asfdec_o.c size = avio_rl64(pb); // Total Data Packets size 961 libavformat/asfdec_o.c if (size != asf->nb_packets) size 965 libavformat/asfdec_o.c size, asf->nb_packets); size 984 libavformat/asfdec_o.c uint64_t size = avio_rl64(pb); size 996 libavformat/asfdec_o.c avio_skip(pb, size - 24); // if there's no video stream, skip index object size 1018 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 1230 libavformat/asfdec_o.c uint64_t size; size 1250 libavformat/asfdec_o.c size = asf->packet_size_internal - offset + asf->packet_offset - asf->pad_len; size 1252 libavformat/asfdec_o.c size = asf->packet_size - offset + asf->packet_offset - asf->pad_len; size 1253 libavformat/asfdec_o.c if (size > asf->packet_size) { size 1260 libavformat/asfdec_o.c if (size > asf_pkt->size_left || asf_pkt->size_left <= 0) size 1262 libavformat/asfdec_o.c if (asf_pkt->size_left > size) size 1263 libavformat/asfdec_o.c asf_pkt->size_left -= size; size 1266 libavformat/asfdec_o.c if ((ret = avio_read(pb, p, size)) < 0) size 1361 libavformat/asfdec_o.c uint64_t size; size 1369 libavformat/asfdec_o.c size = error_flags & ASF_PACKET_ERROR_CORRECTION_DATA_SIZE; size 1370 libavformat/asfdec_o.c avio_skip(pb, size); size 1619 libavformat/asfdec_o.c dts, pkt.size, 0, AVINDEX_KEYFRAME); size 1674 libavformat/asfdec_o.c static int detect_unknown_subobject(AVFormatContext *s, int64_t offset, int64_t size) size 1682 libavformat/asfdec_o.c while (avio_tell(pb) <= offset + size) { size 1711 libavformat/asfdec_o.c uint64_t size; size 1744 libavformat/asfdec_o.c size = avio_rl64(pb); size 1745 libavformat/asfdec_o.c align_position(pb, asf->offset, size); size 191 libavformat/asfenc.c uint16_t size; size 1080 libavformat/asfenc.c pkt->dts, pkt->data, pkt->size, flags); size 83 libavformat/astdec.c uint32_t type, size; size 92 libavformat/astdec.c size = avio_rb32(s->pb); size 93 libavformat/astdec.c if (!s->streams[0]->codecpar->channels || size > INT_MAX / s->streams[0]->codecpar->channels) size 96 libavformat/astdec.c size *= s->streams[0]->codecpar->channels; size 101 libavformat/astdec.c ret = av_get_packet(s->pb, pkt, size); size 106 libavformat/astdec.c avio_skip(s->pb, size); size 31 libavformat/astenc.c int64_t size; size 83 libavformat/astenc.c ast->size = avio_tell(pb); size 112 libavformat/astenc.c int size = pkt->size / par->channels; size 115 libavformat/astenc.c ast->fbs = size; size 118 libavformat/astenc.c avio_wb32(pb, size); /* Block size */ size 125 libavformat/astenc.c avio_write(pb, pkt->data, pkt->size); size 171 libavformat/astenc.c avio_seek(pb, ast->size, SEEK_SET); size 131 libavformat/async.c static int ring_generic_write(RingBuffer *ring, void *src, int size, int (*func)(void*, void*, int)) size 133 libavformat/async.c av_assert2(size <= ring_space(ring)); size 134 libavformat/async.c return av_fifo_generic_write(ring->fifo, src, size, func); size 164 libavformat/async.c static int wrapped_url_read(void *src, void *dst, int size) size 170 libavformat/async.c ret = ffurl_read(c->inner, dst, size); size 326 libavformat/async.c static int async_read_internal(URLContext *h, void *dest, int size, int read_complete, size 331 libavformat/async.c int to_read = size; size 350 libavformat/async.c ret = size - to_read; size 373 libavformat/async.c static int async_read(URLContext *h, unsigned char *buf, int size) size 375 libavformat/async.c return async_read_internal(h, buf, size, 0, NULL); size 378 libavformat/async.c static void fifo_do_not_copy_func(void* dest, void* src, int size) { size 519 libavformat/async.c static int async_test_read(URLContext *h, unsigned char *buf, int size) size 531 libavformat/async.c for (i = 0; i < size; ++i) { size 599 libavformat/async.c int64_t size; size 614 libavformat/async.c size = ffurl_size(h); size 615 libavformat/async.c printf("size: %"PRId64"\n", size); size 69 libavformat/au.c static int au_read_annotation(AVFormatContext *s, int size) size 88 libavformat/au.c while (size-- > 0) { size 139 libavformat/au.c int size, data_size = 0; size 150 libavformat/au.c size = avio_rb32(pb); /* header size */ size 162 libavformat/au.c if (size > 24) { size 164 libavformat/au.c au_read_annotation(s, size - 24); size 33 libavformat/av1.c int size, int *offset) size 35 libavformat/av1.c const uint8_t *start = buf, *end = buf + size; size 45 libavformat/av1.c off = size = 0; size 69 libavformat/av1.c size += len; size 78 libavformat/av1.c return size; size 81 libavformat/av1.c int ff_av1_filter_obus(AVIOContext *pb, const uint8_t *buf, int size) size 83 libavformat/av1.c return av1_filter_obus(pb, buf, size, NULL); size 87 libavformat/av1.c int *size, int *offset) size 93 libavformat/av1.c len = ret = av1_filter_obus(NULL, in, *size, &off); size 99 libavformat/av1.c *size = len; size 111 libavformat/av1.c ret = av1_filter_obus(&pb, in, *size, NULL); size 117 libavformat/av1.c *size = len; size 205 libavformat/av1.c static int parse_sequence_header(AV1SequenceParameters *seq_params, const uint8_t *buf, int size) size 212 libavformat/av1.c size_bits = get_obu_bit_length(buf, size, AV1_OBU_SEQUENCE_HEADER); size 334 libavformat/av1.c int ff_av1_parse_seq_header(AV1SequenceParameters *seq, const uint8_t *buf, int size) size 339 libavformat/av1.c if (size <= 0) size 342 libavformat/av1.c while (size > 0) { size 343 libavformat/av1.c int len = parse_obu_header(buf, size, &obu_size, &start_pos, size 357 libavformat/av1.c size -= len; size 364 libavformat/av1.c int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size) size 375 libavformat/av1.c if (size <= 0) size 385 libavformat/av1.c while (size > 0) { size 386 libavformat/av1.c int len = parse_obu_header(buf, size, &obu_size, &start_pos, size 416 libavformat/av1.c size -= len; size 56 libavformat/av1.h int ff_av1_filter_obus(AVIOContext *pb, const uint8_t *buf, int size); size 76 libavformat/av1.h int *size, int *offset); size 88 libavformat/av1.h int ff_av1_parse_seq_header(AV1SequenceParameters *seq, const uint8_t *buf, int size); size 100 libavformat/av1.h int ff_isom_write_av1c(AVIOContext *pb, const uint8_t *buf, int size); size 60 libavformat/av1dec.c static int read_obu(const uint8_t *buf, int size, int64_t *obu_size, int *type) size 65 libavformat/av1dec.c len = parse_obu_header(buf, size, obu_size, &start_pos, size 73 libavformat/avc.c int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size) size 76 libavformat/avc.c const uint8_t *end = p + size; size 79 libavformat/avc.c size = 0; size 89 libavformat/avc.c size += 4 + nal_end - nal_start; size 92 libavformat/avc.c return size; size 95 libavformat/avc.c int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) size 102 libavformat/avc.c ff_avc_parse_nal_units(pb, buf_in, *size); size 104 libavformat/avc.c *size = avio_close_dyn_buf(pb, buf); size 144 libavformat/avc.c uint32_t size; size 146 libavformat/avc.c size = FFMIN(AV_RB32(buf), end - buf - 4); size 152 libavformat/avc.c if (size > UINT16_MAX || nb_sps >= H264_MAX_SPS_COUNT) { size 156 libavformat/avc.c avio_wb16(sps_pb, size); size 157 libavformat/avc.c avio_write(sps_pb, buf, size); size 160 libavformat/avc.c if (size > UINT16_MAX || nb_pps >= H264_MAX_PPS_COUNT) { size 164 libavformat/avc.c avio_wb16(pps_pb, size); size 165 libavformat/avc.c avio_write(pps_pb, buf, size); size 168 libavformat/avc.c if (size > UINT16_MAX || nb_sps_ext >= 256) { size 172 libavformat/avc.c avio_wb16(sps_ext_pb, size); size 173 libavformat/avc.c avio_write(sps_ext_pb, buf, size); size 176 libavformat/avc.c buf += size; size 221 libavformat/avc.c int ff_avc_write_annexb_extradata(const uint8_t *in, uint8_t **buf, int *size) size 228 libavformat/avc.c if (*size >= 4 && (AV_RB32(in) == 0x00000001 || AV_RB24(in) == 0x000001)) size 230 libavformat/avc.c if (*size < 11 || in[0] != 1) size 234 libavformat/avc.c if (11 + sps_size > *size) size 237 libavformat/avc.c if (11 + sps_size + pps_size > *size) size 248 libavformat/avc.c *size = out_size; size 28 libavformat/avc.h int ff_avc_parse_nal_units(AVIOContext *s, const uint8_t *buf, int size); size 29 libavformat/avc.h int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size); size 32 libavformat/avc.h int ff_avc_write_annexb_extradata(const uint8_t *in, uint8_t **buf, int *size); size 414 libavformat/avformat.h int av_get_packet(AVIOContext *s, AVPacket *pkt, int size); size 431 libavformat/avformat.h int av_append_packet(AVIOContext *s, AVPacket *pkt, int size); size 808 libavformat/avformat.h int size:30; //Yeah, trying to keep the size of this small to reduce memory requirements (it is 24 vs. 32 bytes due to possible 8-byte alignment). size 2175 libavformat/avformat.h uint8_t *data, size_t size); size 2186 libavformat/avformat.h enum AVPacketSideDataType type, int size); size 2196 libavformat/avformat.h enum AVPacketSideDataType type, int *size); size 2751 libavformat/avformat.h void av_hex_dump(FILE *f, const uint8_t *buf, int size); size 2765 libavformat/avformat.h void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size); size 2846 libavformat/avformat.h int size, int distance, int flags); size 2938 libavformat/avformat.h int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size); size 119 libavformat/avidec.c #define print_tag(s, str, tag, size) \ size 121 libavformat/avidec.c avio_tell(pb), str, av_fourcc2str(tag), size) \ size 276 libavformat/avidec.c int64_t pos, size, ts; size 285 libavformat/avidec.c size = st->index_entries[0].size; size 288 libavformat/avidec.c for (j = 0; j < size; j += max) size 289 libavformat/avidec.c av_add_index_entry(st, pos + j, ts + j, FFMIN(max, size - j), 0, size 295 libavformat/avidec.c uint32_t size) size 301 libavformat/avidec.c size += (size & 1); size 303 libavformat/avidec.c if (size == UINT_MAX) size 305 libavformat/avidec.c value = av_malloc(size + 1); size 308 libavformat/avidec.c if (avio_read(pb, value, size) != size) { size 312 libavformat/avidec.c value[size] = 0; size 346 libavformat/avidec.c uint32_t size = avio_rl32(s->pb); size 350 libavformat/avidec.c uint64_t tag_end = avio_tell(s->pb) + size; size 353 libavformat/avidec.c uint16_t size = avio_rl16(s->pb); size 356 libavformat/avidec.c size = FFMIN(size, tag_end - avio_tell(s->pb)); size 357 libavformat/avidec.c size -= avio_read(s->pb, buffer, size 358 libavformat/avidec.c FFMIN(size, sizeof(buffer) - 1)); size 374 libavformat/avidec.c avio_skip(s->pb, size); size 379 libavformat/avidec.c avio_skip(s->pb, size); size 438 libavformat/avidec.c len += st->index_entries[j].size; size 454 libavformat/avidec.c len += st->index_entries[j].size; size 473 libavformat/avidec.c unsigned int size; size 504 libavformat/avidec.c size = avio_rl32(pb); size 506 libavformat/avidec.c print_tag(s, "tag", tag, size); size 510 libavformat/avidec.c list_end = avio_tell(pb) + size; size 518 libavformat/avidec.c if (size) size 519 libavformat/avidec.c avi->movi_end = avi->movi_list + size + (size & 1); size 525 libavformat/avidec.c ff_read_riff_info(s, size - 4); size 533 libavformat/avidec.c size += (size & 1); size 534 libavformat/avidec.c size -= avio_read(pb, date, FFMIN(size, sizeof(date) - 1)); size 535 libavformat/avidec.c avio_skip(pb, size); size 541 libavformat/avidec.c avio_skip(pb, size + (size & 1)); size 559 libavformat/avidec.c avio_skip(pb, size - 10 * 4); size 568 libavformat/avidec.c avio_skip(pb, size - 8); size 630 libavformat/avidec.c avio_skip(pb, size - 9 * 4); size 718 libavformat/avidec.c avio_skip(pb, size - 12 * 4); size 722 libavformat/avidec.c if (!size && (codec_type == AVMEDIA_TYPE_AUDIO || size 726 libavformat/avidec.c avio_skip(pb, size); size 731 libavformat/avidec.c size = FFMIN(size, list_end - cur_pos); size 734 libavformat/avidec.c avio_skip(pb, size); size 744 libavformat/avidec.c avio_skip(pb, size); size 757 libavformat/avidec.c if (size > 10 * 4 && size < (1 << 30) && size < avi->fsize) { size 758 libavformat/avidec.c if (esize == size-1 && (esize&1)) { size 761 libavformat/avidec.c st->codecpar->extradata_size = size - 10 * 4; size 847 libavformat/avidec.c ret = ff_get_wav_header(s, pb, st->codecpar, size, 0); size 862 libavformat/avidec.c if (size & 1) size 903 libavformat/avidec.c avio_skip(pb, size); size 909 libavformat/avidec.c avio_skip(pb, size); size 918 libavformat/avidec.c avio_skip(pb, size); size 922 libavformat/avidec.c size = FFMIN(size, list_end - cur_pos); size 925 libavformat/avidec.c if (size<(1<<30)) { size 929 libavformat/avidec.c if ((ret = ff_get_extradata(s, st->codecpar, pb, size)) < 0) size 949 libavformat/avidec.c avio_seek(pb, pos + size, SEEK_SET); size 952 libavformat/avidec.c if (stream_index < (unsigned)s->nb_streams && size > 9 * 4) { size 975 libavformat/avidec.c size -= 9 * 4; size 977 libavformat/avidec.c avio_skip(pb, size); size 981 libavformat/avidec.c ret = avi_read_tag(s, s->streams[s->nb_streams - 1], tag, size); size 987 libavformat/avidec.c if (size > 1000000) { size 992 libavformat/avidec.c av_fourcc2str(tag), size); size 1002 libavformat/avidec.c size += (size & 1); size 1003 libavformat/avidec.c avio_skip(pb, size); size 1063 libavformat/avidec.c if (pkt->size >= 7 && size 1064 libavformat/avidec.c pkt->size < INT_MAX - AVPROBE_PADDING_SIZE && size 1071 libavformat/avidec.c int size; size 1073 libavformat/avidec.c pkt->size - 7, size 1089 libavformat/avidec.c size = pb->buf_end - pb->buf_ptr; size 1090 libavformat/avidec.c pd = (AVProbeData) { .buf = av_mallocz(size + AVPROBE_PADDING_SIZE), size 1091 libavformat/avidec.c .buf_size = size }; size 1094 libavformat/avidec.c memcpy(pd.buf, pb->buf_ptr, size); size 1185 libavformat/avidec.c unsigned int size; size 1197 libavformat/avidec.c size = d[4] + (d[5] << 8) + (d[6] << 16) + (d[7] << 24); size 1201 libavformat/avidec.c d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], i, size, n); size 1202 libavformat/avidec.c if (i*(avi->io_fsize>0) + (uint64_t)size > avi->fsize || d[0] > 127) size 1211 libavformat/avidec.c avio_skip(pb, size); size 1229 libavformat/avidec.c avio_skip(pb, size); size 1272 libavformat/avidec.c if (d[2] == 'p' && d[3] == 'c' && size <= 4 * 256 + 4) { size 1299 libavformat/avidec.c ((st->discard >= AVDISCARD_DEFAULT && size == 0) /* || size 1305 libavformat/avidec.c ast->frame_offset += get_duration(ast, size); size 1306 libavformat/avidec.c avio_skip(pb, size); size 1311 libavformat/avidec.c ast->packet_size = size + 8; size 1312 libavformat/avidec.c ast->remaining = size; size 1314 libavformat/avidec.c if (size) { size 1318 libavformat/avidec.c av_add_index_entry(st, pos, ast->frame_offset, size, size 1393 libavformat/avidec.c best_ast->remaining = best_st->index_entries[i].size; size 1408 libavformat/avidec.c int size = avpriv_dv_get_packet(avi->dv_demux, pkt); size 1409 libavformat/avidec.c if (size >= 0) size 1410 libavformat/avidec.c return size; size 1425 libavformat/avidec.c int size, err; size 1432 libavformat/avidec.c size = INT_MAX; size 1435 libavformat/avidec.c size = 1024 * ast->sample_size; size 1437 libavformat/avidec.c size = ast->sample_size; size 1439 libavformat/avidec.c if (size > ast->remaining) size 1440 libavformat/avidec.c size = ast->remaining; size 1442 libavformat/avidec.c err = av_get_packet(pb, pkt, size); size 1445 libavformat/avidec.c size = err; size 1447 libavformat/avidec.c if (ast->has_pal && pkt->size < (unsigned)INT_MAX / 2) { size 1463 libavformat/avidec.c size = avpriv_dv_produce_packet(avi->dv_demux, pkt, size 1464 libavformat/avidec.c pkt->data, pkt->size, pkt->pos); size 1467 libavformat/avidec.c if (size < 0) size 1495 libavformat/avidec.c const uint8_t *ptr = pkt->data, *end = ptr + FFMIN(size, 256); size 1513 libavformat/avidec.c ast->frame_offset += get_duration(ast, pkt->size); size 1548 libavformat/avidec.c static int avi_read_idx1(AVFormatContext *s, int size) size 1562 libavformat/avidec.c nb_index_entries = size / 16; size 1701 libavformat/avidec.c unsigned int size; size 1713 libavformat/avidec.c size = avio_rl32(s->pb); size 1714 libavformat/avidec.c if (get_stream_idx(tag) == i && pos + size > st->index_entries[1].pos) size 1716 libavformat/avidec.c if (get_stream_idx(tag) == i && size == st->index_entries[0].size + 8) size 1737 libavformat/avidec.c uint32_t tag, size; size 1747 libavformat/avidec.c size = avio_rl32(pb); size 1750 libavformat/avidec.c next = avio_tell(pb) + size + (size & 1); size 1753 libavformat/avidec.c avi_read_idx1(s, size) >= 0) { size 1760 libavformat/avidec.c ff_read_riff_info(s, size - 4); size 106 libavformat/avienc.c unsigned int flags, unsigned int size) size 135 libavformat/avienc.c idx->cluster[cl][id].len = size; size 136 libavformat/avienc.c avist->max_size = FFMAX(avist->max_size, size); size 594 libavformat/avienc.c static void update_odml_entry(AVFormatContext *s, int stream_index, int64_t ix, int size) size 611 libavformat/avienc.c avio_wl32(pb, size); /* dwSize */ size 640 libavformat/avienc.c int size = AVI_MASTER_INDEX_PREFIX_SIZE + AVI_MASTER_INDEX_ENTRY_SIZE * avi->master_index_max_size; size 643 libavformat/avienc.c update_odml_entry(s, i, pos, size); size 645 libavformat/avienc.c av_assert1(avio_tell(pb) - pos == size); size 755 libavformat/avienc.c empty_packet.size = 0; size 771 libavformat/avienc.c if (par->codec_id == AV_CODEC_ID_H264 && par->codec_tag == MKTAG('H','2','6','4') && pkt->size) { size 780 libavformat/avienc.c if (!pkt->size) size 865 libavformat/avienc.c int size = pkt->size; size 893 libavformat/avienc.c avist->audio_strm_length += size; size 897 libavformat/avienc.c ret = avi_add_ientry(s, stream_index, NULL, flags, size); size 903 libavformat/avienc.c avio_wl32(pb, size); size 904 libavformat/avienc.c avio_write(pb, pkt->data, size); size 905 libavformat/avienc.c if (size & 1) size 362 libavformat/avio.c int size, int size_min, size 365 libavformat/avio.c int size)) size 375 libavformat/avio.c ret = transfer_func(h, buf + len, size - len); size 406 libavformat/avio.c int ffurl_read(URLContext *h, unsigned char *buf, int size) size 410 libavformat/avio.c return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read); size 413 libavformat/avio.c int ffurl_read_complete(URLContext *h, unsigned char *buf, int size) size 417 libavformat/avio.c return retry_transfer_wrapper(h, buf, size, size, h->prot->url_read); size 420 libavformat/avio.c int ffurl_write(URLContext *h, const unsigned char *buf, int size) size 425 libavformat/avio.c if (h->max_packet_size && size > h->max_packet_size) size 428 libavformat/avio.c return retry_transfer_wrapper(h, (unsigned char *)buf, size, size, size 612 libavformat/avio.c int64_t pos, size; size 614 libavformat/avio.c size = ffurl_seek(h, 0, AVSEEK_SIZE); size 615 libavformat/avio.c if (size < 0) { size 617 libavformat/avio.c if ((size = ffurl_seek(h, -1, SEEK_END)) < 0) size 618 libavformat/avio.c return size; size 619 libavformat/avio.c size++; size 622 libavformat/avio.c return size; size 91 libavformat/avio.h int64_t size; /**< File size in bytes, -1 if unknown. */ size 244 libavformat/avio.h unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size); size 480 libavformat/avio.h void avio_write(AVIOContext *s, const unsigned char *buf, int size); size 613 libavformat/avio.h int avio_read(AVIOContext *s, unsigned char *buf, int size); size 622 libavformat/avio.h int avio_read_partial(AVIOContext *s, unsigned char *buf, int size); size 54 libavformat/avio_internal.h int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data); size 84 libavformat/avio_internal.h int ffio_read_size(AVIOContext *s, unsigned char *buf, int size); size 107 libavformat/avio_internal.h int ffio_limit(AVIOContext *s, int size); size 213 libavformat/aviobuf.c void avio_write(AVIOContext *s, const unsigned char *buf, int size) size 217 libavformat/aviobuf.c writeout(s, buf, size); size 220 libavformat/aviobuf.c while (size > 0) { size 221 libavformat/aviobuf.c int len = FFMIN(s->buf_end - s->buf_ptr, size); size 229 libavformat/aviobuf.c size -= len; size 336 libavformat/aviobuf.c int64_t size; size 346 libavformat/aviobuf.c size = s->seek(s->opaque, 0, AVSEEK_SIZE); size 347 libavformat/aviobuf.c if (size < 0) { size 348 libavformat/aviobuf.c if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0) size 349 libavformat/aviobuf.c return size; size 350 libavformat/aviobuf.c size++; size 353 libavformat/aviobuf.c return size; size 507 libavformat/aviobuf.c static int read_packet_wrapper(AVIOContext *s, uint8_t *buf, int size) size 513 libavformat/aviobuf.c ret = s->read_packet(s->opaque, buf, size); size 625 libavformat/aviobuf.c int avio_read(AVIOContext *s, unsigned char *buf, int size) size 629 libavformat/aviobuf.c size1 = size; size 630 libavformat/aviobuf.c while (size > 0) { size 631 libavformat/aviobuf.c len = FFMIN(s->buf_end - s->buf_ptr, size); size 633 libavformat/aviobuf.c if((s->direct || size > s->buffer_size) && !s->update_checksum) { size 635 libavformat/aviobuf.c len = read_packet_wrapper(s, buf, size); size 648 libavformat/aviobuf.c size -= len; size 664 libavformat/aviobuf.c size -= len; size 667 libavformat/aviobuf.c if (size1 == size) { size 671 libavformat/aviobuf.c return size1 - size; size 674 libavformat/aviobuf.c int ffio_read_size(AVIOContext *s, unsigned char *buf, int size) size 676 libavformat/aviobuf.c int ret = avio_read(s, buf, size); size 677 libavformat/aviobuf.c if (ret != size) size 682 libavformat/aviobuf.c int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data) size 684 libavformat/aviobuf.c if (s->buf_end - s->buf_ptr >= size && !s->write_flag) { size 686 libavformat/aviobuf.c s->buf_ptr += size; size 687 libavformat/aviobuf.c return size; size 690 libavformat/aviobuf.c return avio_read(s, buf, size); size 694 libavformat/aviobuf.c int avio_read_partial(AVIOContext *s, unsigned char *buf, int size) size 698 libavformat/aviobuf.c if (size < 0) size 702 libavformat/aviobuf.c len = read_packet_wrapper(s, buf, size); size 720 libavformat/aviobuf.c if (len > size) size 721 libavformat/aviobuf.c len = size; size 1266 libavformat/aviobuf.c int pos, size, allocated_size; size 1293 libavformat/aviobuf.c d->size = 0; size 1300 libavformat/aviobuf.c if (d->pos > d->size) size 1301 libavformat/aviobuf.c d->size = d->pos; size 1327 libavformat/aviobuf.c offset += d->size; size 1378 libavformat/aviobuf.c if (!s->error && !d->size) { size 1387 libavformat/aviobuf.c return d->size; size 1398 libavformat/aviobuf.c d->pos = d->size = 0; size 1404 libavformat/aviobuf.c int size; size 1423 libavformat/aviobuf.c size = d->size; size 1428 libavformat/aviobuf.c return size - padding; size 1449 libavformat/aviobuf.c if (d->pos > d->size) size 1450 libavformat/aviobuf.c d->size = d->pos; size 1467 libavformat/aviobuf.c int size; size 1471 libavformat/aviobuf.c size = d->size; size 1476 libavformat/aviobuf.c return size; size 658 libavformat/avisynth.c pkt->size = (((int64_t)avs->vi->width * size 660 libavformat/avisynth.c if (!pkt->size) size 663 libavformat/avisynth.c if ((ret = av_new_packet(pkt, pkt->size)) < 0) size 740 libavformat/avisynth.c pkt->size = 0; size 754 libavformat/avisynth.c pkt->size = avs_bytes_per_channel_sample(avs->vi) * size 756 libavformat/avisynth.c if (!pkt->size) size 759 libavformat/avisynth.c if ((ret = av_new_packet(pkt, pkt->size)) < 0) size 93 libavformat/avs.c AvsBlockType type, int sub_type, int size, size 99 libavformat/avs.c ret = av_new_packet(pkt, size + palette_size); size 113 libavformat/avs.c pkt->data[palette_size + 2] = size & 0xFF; size 114 libavformat/avs.c pkt->data[palette_size + 3] = (size >> 8) & 0xFF; size 115 libavformat/avs.c ret = avio_read(s->pb, pkt->data + palette_size + 4, size - 4) + 4; size 116 libavformat/avs.c if (ret < size) { size 120 libavformat/avs.c pkt->size = ret + palette_size; size 131 libavformat/avs.c int ret, size; size 133 libavformat/avs.c size = avio_tell(s->pb); size 135 libavformat/avs.c size = avio_tell(s->pb) - size; size 136 libavformat/avs.c avs->remaining_audio_size -= size; size 146 libavformat/avs.c return size; size 152 libavformat/avs.c int sub_type = 0, size = 0; size 172 libavformat/avs.c size = avio_rl16(s->pb); size 173 libavformat/avs.c if (size < 4) size 175 libavformat/avs.c avs->remaining_frame_size -= size; size 179 libavformat/avs.c if (size - 4 > sizeof(palette)) size 181 libavformat/avs.c ret = avio_read(s->pb, palette, size - 4); size 182 libavformat/avs.c if (ret < size - 4) size 184 libavformat/avs.c palette_size = size; size 203 libavformat/avs.c return avs_read_video_packet(s, pkt, type, sub_type, size, size 213 libavformat/avs.c avs->remaining_audio_size = size - 4; size 214 libavformat/avs.c size = avs_read_audio_packet(s, pkt); size 215 libavformat/avs.c if (size != 0) size 216 libavformat/avs.c return size; size 220 libavformat/avs.c avio_skip(s->pb, size - 4); size 259 libavformat/bink.c bink->remain_packet_size = st->index_entries[index_entry].size; size 283 libavformat/bink.c if (pkt->size >= 4) size 105 libavformat/bintext.c #define GET_EFI2_META(name,size) \ size 107 libavformat/bintext.c if (len < 1 || len > size) \ size 109 libavformat/bintext.c if (avio_read(pb, buf, size) == size && *buf) { \ size 145 libavformat/bit.c if (pkt->size != 10) size 149 libavformat/bit.c avio_wl16(pb, 8 * pkt->size); size 151 libavformat/bit.c init_get_bits(&gb, pkt->data, 8 * pkt->size); size 152 libavformat/bit.c for (i = 0; i < 8 * pkt->size; i++) size 190 libavformat/bluray.c static int bluray_read(URLContext *h, unsigned char *buf, int size) size 199 libavformat/bluray.c len = bd_read(bd->bd, buf, size); size 37 libavformat/bmv.c int size; size 84 libavformat/bmv.c c->size = avio_rl24(s->pb); size 85 libavformat/bmv.c if (!c->size) size 87 libavformat/bmv.c if ((err = av_reallocp(&c->packet, c->size + 1)) < 0) size 90 libavformat/bmv.c if (avio_read(s->pb, c->packet + 1, c->size) != c->size) size 94 libavformat/bmv.c if (audio_size >= c->size) { size 96 libavformat/bmv.c audio_size, c->size); size 101 libavformat/bmv.c memcpy(pkt->data, c->packet + 1, pkt->size); size 107 libavformat/bmv.c return pkt->size; size 111 libavformat/bmv.c if ((err = av_new_packet(pkt, c->size + 1)) < 0) size 115 libavformat/bmv.c memcpy(pkt->data, c->packet, pkt->size); size 116 libavformat/bmv.c return pkt->size; size 93 libavformat/brstm.c uint32_t size, asize, start = 0; size 119 libavformat/brstm.c size = read16(s); size 120 libavformat/brstm.c if (size < 14) size 123 libavformat/brstm.c avio_skip(s->pb, size - 14); size 171 libavformat/brstm.c size = read32(s); size 172 libavformat/brstm.c if (size < 40) size 176 libavformat/brstm.c if (h1offset > size) size 180 libavformat/brstm.c if (toffset > size) size 259 libavformat/brstm.c if (toffset > size) size 276 libavformat/brstm.c if (size < (avio_tell(s->pb) - pos)) { size 281 libavformat/brstm.c avio_skip(s->pb, size - (avio_tell(s->pb) - pos)); size 285 libavformat/brstm.c size = read32(s); size 286 libavformat/brstm.c if (size < 8) { size 290 libavformat/brstm.c size -= 8; size 299 libavformat/brstm.c if (size < asize) { size 323 libavformat/brstm.c avio_skip(s->pb, size - asize); size 348 libavformat/brstm.c avio_skip(s->pb, size); size 362 libavformat/brstm.c uint32_t samples, size, skip = 0; size 369 libavformat/brstm.c size = b->last_block_used_bytes; size 373 libavformat/brstm.c if (samples < size * 14 / 8) { size 378 libavformat/brstm.c skip += size - adjusted_size; size 379 libavformat/brstm.c size = adjusted_size; size 382 libavformat/brstm.c size = b->block_size; size 402 libavformat/brstm.c if (size > (INT_MAX - 32 - 4) || size 403 libavformat/brstm.c (32 + 4 + size) > (INT_MAX / par->channels) || size 404 libavformat/brstm.c (32 + 4 + size) * par->channels > INT_MAX - 8) size 406 libavformat/brstm.c if ((ret = av_new_packet(pkt, 8 + (32 + 4 + size) * par->channels)) < 0) size 410 libavformat/brstm.c bytestream_put_le32(&dst, size * par->channels); size 413 libavformat/brstm.c bytestream_put_be32(&dst, size * par->channels); size 421 libavformat/brstm.c ret = avio_read(s->pb, dst, size); size 422 libavformat/brstm.c dst += size; size 424 libavformat/brstm.c if (ret != size) { size 430 libavformat/brstm.c size *= par->channels; size 431 libavformat/brstm.c ret = av_get_packet(s->pb, pkt, size); size 436 libavformat/brstm.c if (ret != size) size 157 libavformat/c93.c pkt->size = datasize + 1; size 171 libavformat/c93.c ret = avio_read(pb, pkt->data + pkt->size, datasize); size 175 libavformat/c93.c pkt->size += 768; size 51 libavformat/cache.c int size; size 99 libavformat/cache.c static int add_entry(URLContext *h, const unsigned char *buf, int size) size 117 libavformat/cache.c ret = write(c->fd, buf, size); size 131 libavformat/cache.c entry->logical_pos + entry->size != c->logical_pos || size 132 libavformat/cache.c entry->physical_pos + entry->size != pos size 142 libavformat/cache.c entry->size = ret; size 151 libavformat/cache.c entry->size += ret; size 162 libavformat/cache.c static int cache_read(URLContext *h, unsigned char *buf, int size) size 176 libavformat/cache.c if (in_block_pos < entry->size) { size 186 libavformat/cache.c r = read(c->fd, buf, FFMIN(size, entry->size - in_block_pos)); size 209 libavformat/cache.c r = ffurl_read(c->inner, buf, size); size 210 libavformat/cache.c if (r == AVERROR_EOF && size>0) { size 268 libavformat/cache.c int size = sizeof(tmp); size 270 libavformat/cache.c size = FFMIN(sizeof(tmp), pos - c->logical_pos); size 271 libavformat/cache.c ret = cache_read(h, tmp, size); size 99 libavformat/cafdec.c static int read_kuki_chunk(AVFormatContext *s, int64_t size) size 105 libavformat/cafdec.c if (size < 0 || size > INT_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 116 libavformat/cafdec.c skip = size - (avio_tell(pb) - strt); size 128 libavformat/cafdec.c if (size < ALAC_NEW_KUKI) { size 130 libavformat/cafdec.c avio_skip(pb, size); size 146 libavformat/cafdec.c if (size < ALAC_PREAMBLE + ALAC_HEADER) { size 156 libavformat/cafdec.c avio_skip(pb, size - ALAC_PREAMBLE - ALAC_HEADER); size 167 libavformat/cafdec.c avio_skip(pb, size - ALAC_NEW_KUKI); size 176 libavformat/cafdec.c avio_skip(pb, size); size 177 libavformat/cafdec.c } else if ((ret = ff_get_extradata(s, st->codecpar, pb, size)) < 0) { size 185 libavformat/cafdec.c static int read_pakt_chunk(AVFormatContext *s, int64_t size) size 210 libavformat/cafdec.c if (avio_tell(pb) - ccount > size) { size 214 libavformat/cafdec.c avio_skip(pb, ccount + size - avio_tell(pb)); size 221 libavformat/cafdec.c static void read_info_chunk(AVFormatContext *s, int64_t size) size 242 libavformat/cafdec.c int64_t size, pos; size 251 libavformat/cafdec.c size = avio_rb64(pb); size 252 libavformat/cafdec.c if (size != 32) size 270 libavformat/cafdec.c size = avio_rb64(pb); size 279 libavformat/cafdec.c caf->data_size = size < 0 ? -1 : size - 4; size 286 libavformat/cafdec.c if ((ret = ff_mov_read_chan(s, s->pb, st, size)) < 0) size 292 libavformat/cafdec.c if (read_kuki_chunk(s, size)) size 298 libavformat/cafdec.c if (read_pakt_chunk(s, size)) size 303 libavformat/cafdec.c read_info_chunk(s, size); size 309 libavformat/cafdec.c tag, av_fourcc2str(av_bswap32(tag)), size); size 311 libavformat/cafdec.c if (size < 0 && found_data) size 313 libavformat/cafdec.c if (size < 0) size 318 libavformat/cafdec.c if (size > 0) { size 319 libavformat/cafdec.c if (pos > INT64_MAX - size) size 321 libavformat/cafdec.c avio_skip(pb, FFMAX(0, pos + size - avio_tell(pb))); size 404 libavformat/cafdec.c pkt->size = res; size 213 libavformat/cafenc.c avio_write(s->pb, pkt->data, pkt->size); size 229 libavformat/cafenc.c unsigned top = pkt->size >> i * 7; size 233 libavformat/cafenc.c caf->pkt_sizes[caf->size_entries_used++] = pkt->size & 127; size 117 libavformat/chromaprint.c return chromaprint_feed(cpr->ctx, (const int16_t *)pkt->data, pkt->size / 2) ? 0 : AVERROR(EINVAL); size 126 libavformat/chromaprint.c int size, enc_size, ret = AVERROR(EINVAL); size 133 libavformat/chromaprint.c if (!chromaprint_get_raw_fingerprint(cpr->ctx, (uint32_t **)&fp, &size)) { size 140 libavformat/chromaprint.c avio_write(pb, fp, size * 4); //fp points to array of uint32_t size 144 libavformat/chromaprint.c if (!chromaprint_encode_fingerprint(fp, size, cpr->algorithm, &enc_fp, &enc_size, size 289 libavformat/cinedec.c int n, size, ret; size 299 libavformat/cinedec.c size = avio_rl32(pb); size 301 libavformat/cinedec.c ret = av_get_packet(pb, pkt, size); size 128 libavformat/codec2.c int ret, size, n, block_align, frame_size; size 138 libavformat/codec2.c size = c2->frames_per_packet * block_align; size 139 libavformat/codec2.c ret = av_get_packet(s->pb, pkt, size); size 34 libavformat/concat.c int64_t size; ///< url filesize size 63 libavformat/concat.c int64_t size, total_size = 0; size 106 libavformat/concat.c if ((size = ffurl_size(uc)) < 0) { size 114 libavformat/concat.c nodes[i].size = size; size 115 libavformat/concat.c total_size += size; size 131 libavformat/concat.c static int concat_read(URLContext *h, unsigned char *buf, int size) size 138 libavformat/concat.c while (size > 0) { size 139 libavformat/concat.c result = ffurl_read(nodes[i].uc, buf, size); size 150 libavformat/concat.c size -= result; size 167 libavformat/concat.c for (i = data->length - 1; i && pos < -nodes[i].size; i--) size 168 libavformat/concat.c pos += nodes[i].size; size 173 libavformat/concat.c pos += nodes[i].size; size 178 libavformat/concat.c for (i = 0; i != data->length - 1 && pos >= nodes[i].size; i++) size 179 libavformat/concat.c pos -= nodes[i].size; size 189 libavformat/concat.c result += nodes[--i].size; size 44 libavformat/crcenc.c crc->crcval = av_adler32_update(crc->crcval, pkt->data, pkt->size); size 183 libavformat/crypto.c static int crypto_read(URLContext *h, uint8_t *buf, int size) size 189 libavformat/crypto.c size = FFMIN(size, c->outdata); size 190 libavformat/crypto.c memcpy(buf, c->outptr, size); size 191 libavformat/crypto.c c->outptr += size; size 192 libavformat/crypto.c c->outdata -= size; size 193 libavformat/crypto.c c->position = c->position + size; size 194 libavformat/crypto.c return size; size 333 libavformat/crypto.c static int crypto_write(URLContext *h, const unsigned char *buf, int size) size 339 libavformat/crypto.c total_size = size + c->pad_len; size 365 libavformat/crypto.c memcpy(c->pad, &buf[size - pad_len], pad_len); size 367 libavformat/crypto.c memcpy(&c->pad[c->pad_len], buf, size); size 371 libavformat/crypto.c return size; size 37 libavformat/dashdec.c int64_t size; size 218 libavformat/dashdec.c int size = 0; size 229 libavformat/dashdec.c if (sscanf(ptr, "%f%c%n", &value, &type, &size) != 2) { size 250 libavformat/dashdec.c ptr += size; size 590 libavformat/dashdec.c seg->size = -1; size 595 libavformat/dashdec.c seg->size = strtoll(str_end_offset, NULL, 10) - seg->url_offset + 1; size 719 libavformat/dashdec.c int size = 0; size 744 libavformat/dashdec.c size = strlen(mpdName); size 755 libavformat/dashdec.c av_strlcpy (path, url, strlen(url) - size + 1); size 776 libavformat/dashdec.c size = strlen(root_url); size 779 libavformat/dashdec.c if (root_url[size - 1] != token) { size 780 libavformat/dashdec.c av_strlcat(root_url, "/", size + 2); size 781 libavformat/dashdec.c size += 2; size 792 libavformat/dashdec.c av_strlcpy(tmp_str, root_url, size + 1); size 937 libavformat/dashdec.c rep->init_section->size = -1; size 1009 libavformat/dashdec.c seg->size = -1; size 1634 libavformat/dashdec.c seg->size = seg_ptr->size; size 1683 libavformat/dashdec.c seg->size = -1; size 1695 libavformat/dashdec.c if (seg->size >= 0) size 1717 libavformat/dashdec.c if (seg->size >= 0) { size 1721 libavformat/dashdec.c av_dict_set_int(&opts, "end_offset", seg->url_offset + seg->size, 0); size 1733 libavformat/dashdec.c pls->cur_seg_size = seg->size; size 1756 libavformat/dashdec.c if (pls->init_section->size >= 0) size 1757 libavformat/dashdec.c sec_size = pls->init_section->size; size 2016 libavformat/dashdec.c int64_t size = -1; size 2024 libavformat/dashdec.c size = pls[0]->init_section->size; size 2026 libavformat/dashdec.c if (av_strcasecmp(pls[i]->init_section->url,url) || pls[i]->init_section->url_offset != url_offset || pls[i]->init_section->size != size) { size 344 libavformat/dashenc.c AVRational *frame_rate, char *str, int size) { size 348 libavformat/dashenc.c av_strlcatf(str, size, "vp09.%02d.%02d.%02d", size 353 libavformat/dashenc.c av_strlcpy(str, "vp9", size); size 359 libavformat/dashenc.c AVRational *frame_rate, char *str, int size) size 369 libavformat/dashenc.c set_vp9_codec_str(s, par, frame_rate, str, size); size 371 libavformat/dashenc.c av_strlcpy(str, codecs[i].str, size); size 389 libavformat/dashenc.c if (size < 5) size 399 libavformat/dashenc.c av_strlcatf(str, size, ".%02"PRIx32, oti); size 408 libavformat/dashenc.c av_strlcatf(str, size, ".%d", aot); size 433 libavformat/dashenc.c av_strlcatf(str, size, ".%02x%02x%02x", size 443 libavformat/dashenc.c av_strlcatf(str, size, ".%01u.%02u%s.%02u", size 446 libavformat/dashenc.c av_strlcatf(str, size, ".%01u.%01u%01u%01u.%02u.%02u.%02u.%01u", size 783 libavformat/dashenc.c static void format_date(char *buf, int size, int64_t time_us) size 792 libavformat/dashenc.c if (!strftime(buf, size, "%Y-%m-%dT%H:%M:%S", ptm)) { size 797 libavformat/dashenc.c snprintf(buf + len, size - len, ".%03dZ", millisec); size 2128 libavformat/dashenc.c int size; size 2130 libavformat/dashenc.c &data, &size, pkt->data, pkt->size, size 2211 libavformat/dashenc.c os->total_pkt_size += pkt->size; size 29 libavformat/data_uri.c size_t size; size 84 libavformat/data_uri.c dc->size = ret; size 87 libavformat/data_uri.c dc->size = in_size; size 100 libavformat/data_uri.c static int data_read(URLContext *h, unsigned char *buf, int size) size 104 libavformat/data_uri.c if (dc->pos >= dc->size) size 106 libavformat/data_uri.c size = FFMIN(size, dc->size - dc->pos); size 107 libavformat/data_uri.c memcpy(buf, dc->data + dc->pos, size); size 108 libavformat/data_uri.c dc->pos += size; size 109 libavformat/data_uri.c return size; size 43 libavformat/dauddec.c int ret, size; size 46 libavformat/dauddec.c size = avio_rb16(pb); size 48 libavformat/dauddec.c ret = av_get_packet(pb, pkt, size); size 34 libavformat/daudenc.c if (pkt->size > 65535) { size 36 libavformat/daudenc.c "Packet size too large for s302m. (%d > 65535)\n", pkt->size); size 39 libavformat/daudenc.c avio_wb16(s->pb, pkt->size); size 41 libavformat/daudenc.c avio_write(s->pb, pkt->data, pkt->size); size 100 libavformat/dfa.c frame_size = AV_RL32(pkt->data + pkt->size - 8); size 105 libavformat/dfa.c if (AV_RL32(pkt->data + pkt->size - 12) == MKTAG('E', 'O', 'F', 'R')) { size 338 libavformat/dhav.c int size, ret, stream_index; size 417 libavformat/dhav.c size = ret; size 418 libavformat/dhav.c ret = av_get_packet(s->pb, pkt, size); size 28 libavformat/diracdec.c unsigned size; size 32 libavformat/diracdec.c size = AV_RB32(p->buf+5); size 33 libavformat/diracdec.c if (size < 13) size 35 libavformat/diracdec.c if (size + 13LL > p->buf_size) size 37 libavformat/diracdec.c if (AV_RL32(p->buf + size) != MKTAG('B', 'B', 'C', 'D')) size 92 libavformat/dss.c unsigned int size, const char *key) size 100 libavformat/dss.c value = av_mallocz(size + 1); size 104 libavformat/dss.c ret = avio_read(s->pb, value, size); size 105 libavformat/dss.c if (ret < size) { size 257 libavformat/dss.c return pkt->size; size 267 libavformat/dss.c int size, byte, ret, offset; size 278 libavformat/dss.c size = frame_size[byte & 3]; size 280 libavformat/dss.c ctx->packet_size = size; size 281 libavformat/dss.c ctx->counter -= size; size 283 libavformat/dss.c ret = av_new_packet(pkt, size); size 291 libavformat/dss.c s->bit_rate = 8LL * size * st->codecpar->sample_rate * 512 / (506 * pkt->duration); size 296 libavformat/dss.c int size2 = ctx->counter + size; size 308 libavformat/dss.c ret = avio_read(s->pb, pkt->data + offset, size - offset); size 309 libavformat/dss.c if (ret < size - offset) { size 313 libavformat/dss.c return pkt->size; size 145 libavformat/dtshddec.c int64_t size, left; size 149 libavformat/dtshddec.c size = FFMIN(left, 1024); size 150 libavformat/dtshddec.c if (size <= 0) size 153 libavformat/dtshddec.c ret = av_get_packet(s->pb, pkt, size); size 49 libavformat/dump.c const uint8_t *buf, int size) size 53 libavformat/dump.c for (i = 0; i < size; i += 16) { size 54 libavformat/dump.c len = size - i; size 75 libavformat/dump.c void av_hex_dump(FILE *f, const uint8_t *buf, int size) size 77 libavformat/dump.c hex_dump_internal(NULL, f, 0, buf, size); size 80 libavformat/dump.c void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size) size 82 libavformat/dump.c hex_dump_internal(avcl, NULL, level, buf, size); size 104 libavformat/dump.c HEXDUMP_PRINT(" size=%d\n", pkt->size); size 106 libavformat/dump.c hex_dump_internal(avcl, f, level, pkt->data, pkt->size); size 163 libavformat/dump.c int size = sd->size; size 168 libavformat/dump.c if (!data || sd->size < 4) size 173 libavformat/dump.c size -= 4; size 176 libavformat/dump.c if (size < 4) size 180 libavformat/dump.c size -= 4; size 184 libavformat/dump.c if (size < 8) size 188 libavformat/dump.c size -= 8; size 193 libavformat/dump.c if (size < 4) size 197 libavformat/dump.c size -= 4; size 201 libavformat/dump.c if (size < 8) size 205 libavformat/dump.c size -= 4; size 208 libavformat/dump.c size -= 4; size 242 libavformat/dump.c if (sd->size < sizeof(*rg)) { size 258 libavformat/dump.c if (sd->size < sizeof(*stereo)) { size 275 libavformat/dump.c if (sd->size < sizeof(*ast)) { size 318 libavformat/dump.c if (sd->size < sizeof(*cpb)) { size 367 libavformat/dump.c if (sd->size < sizeof(*spherical)) { size 473 libavformat/dump.c "unknown side data type %d (%d bytes)", sd.type, sd.size); size 122 libavformat/dv.c int size, chan, i, j, d, of, smpls, freq, quant, half_ch; size 141 libavformat/dv.c size = (sys->audio_min_samples[freq] + smpls) * 4; /* 2ch, 2bytes */ size 177 libavformat/dv.c if (of * 2 >= size) size 197 libavformat/dv.c if (of * 2 >= size) size 219 libavformat/dv.c return size; size 266 libavformat/dv.c c->audio_pkt[i].size = 0; size 349 libavformat/dv.c int size = -1; size 353 libavformat/dv.c if (c->ast[i] && c->audio_pkt[i].size) { size 355 libavformat/dv.c c->audio_pkt[i].size = 0; size 356 libavformat/dv.c size = pkt->size; size 361 libavformat/dv.c return size; size 367 libavformat/dv.c int size, i; size 378 libavformat/dv.c size = dv_extract_audio_info(c, buf); size 381 libavformat/dv.c c->audio_pkt[i].size = size; size 393 libavformat/dv.c c->audio_pkt[2].size = c->audio_pkt[3].size = 0; size 395 libavformat/dv.c c->audio_pkt[0].size = c->audio_pkt[1].size = 0; size 396 libavformat/dv.c c->abytes += size; size 399 libavformat/dv.c c->abytes += size; size 403 libavformat/dv.c size = dv_extract_video_info(c, buf); size 407 libavformat/dv.c pkt->size = size; size 414 libavformat/dv.c return size; size 423 libavformat/dv.c int64_t size = avio_size(s->pb) - s->internal->data_offset; size 424 libavformat/dv.c int64_t max_offset = ((size - 1) / frame_size) * frame_size; size 428 libavformat/dv.c if (size >= 0 && offset > max_offset) size 446 libavformat/dv.c c->audio_pkt[0].size = c->audio_pkt[1].size = 0; size 447 libavformat/dv.c c->audio_pkt[2].size = c->audio_pkt[3].size = 0; size 555 libavformat/dv.c int size; size 558 libavformat/dv.c size = avpriv_dv_get_packet(c->dv_demux, pkt); size 560 libavformat/dv.c if (size < 0) { size 565 libavformat/dv.c size = c->dv_demux->sys->frame_size; size 566 libavformat/dv.c ret = avio_read(s->pb, c->buf, size); size 573 libavformat/dv.c size = avpriv_dv_produce_packet(c->dv_demux, pkt, c->buf, size, pos); size 576 libavformat/dv.c return size; size 183 libavformat/dvenc.c int i, j, d, of, size; size 184 libavformat/dvenc.c size = 4 * dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codecpar->sample_rate); size 192 libavformat/dvenc.c if (of*2 >= size) size 408 libavformat/dvenc.c pkt->data, pkt->size, &frame); size 99 libavformat/dxa.c uint32_t size, fsize; size 101 libavformat/dxa.c size = avio_rb32(pb); size 102 libavformat/dxa.c c->vidpos = avio_tell(pb) + size; size 156 libavformat/dxa.c uint32_t size; size 163 libavformat/dxa.c size = FFMIN(c->bytes_left, c->bpc); size 164 libavformat/dxa.c ret = av_get_packet(s->pb, pkt, size); size 166 libavformat/dxa.c if(ret != size) size 168 libavformat/dxa.c c->bytes_left -= size; size 201 libavformat/dxa.c size = AV_RB32(buf + 5); size 202 libavformat/dxa.c if(size > 0xFFFFFF){ size 204 libavformat/dxa.c size); size 207 libavformat/dxa.c ret = av_new_packet(pkt, size + DXA_EXTRA_SIZE + pal_size); size 211 libavformat/dxa.c ret = avio_read(s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size); size 212 libavformat/dxa.c if(ret != size){ size 95 libavformat/electronicarts.c uint8_t size, byte; size 99 libavformat/electronicarts.c size = avio_r8(pb); size 102 libavformat/electronicarts.c for (i = 0; i < size; i++) { size 360 libavformat/electronicarts.c uint32_t blockid, size = 0; size 370 libavformat/electronicarts.c size = avio_rl32(pb); size 372 libavformat/electronicarts.c ea->big_endian = size > av_bswap32(size); size 374 libavformat/electronicarts.c size = av_bswap32(size); size 376 libavformat/electronicarts.c if (size < 8) { size 453 libavformat/electronicarts.c avio_seek(pb, startpos + size, SEEK_SET); size 463 libavformat/electronicarts.c unsigned big_endian, size; size 480 libavformat/electronicarts.c size = AV_RL32(&p->buf[4]); size 481 libavformat/electronicarts.c big_endian = size > 0x000FFFFF; size 483 libavformat/electronicarts.c size = av_bswap32(size); size 484 libavformat/electronicarts.c if (size > 0xfffff || size < 8) size 634 libavformat/electronicarts.c if (pkt->size < 4) { size 78 libavformat/ffmetadec.c static void get_line(AVIOContext *s, uint8_t *buf, int size) size 86 libavformat/ffmetadec.c if (i < size - 1) size 92 libavformat/ffmetadec.c if (i < size - 1) size 124 libavformat/ffmetadec.c static uint8_t *unescape(const uint8_t *buf, int size) size 126 libavformat/ffmetadec.c uint8_t *ret = av_malloc(size + 1); size 133 libavformat/ffmetadec.c while (p2 < buf + size) { size 109 libavformat/file.c static int file_read(URLContext *h, unsigned char *buf, int size) size 113 libavformat/file.c size = FFMIN(size, c->blocksize); size 114 libavformat/file.c ret = read(c->fd, buf, size); size 122 libavformat/file.c static int file_write(URLContext *h, const unsigned char *buf, int size) size 126 libavformat/file.c size = FFMIN(size, c->blocksize); size 127 libavformat/file.c ret = write(c->fd, buf, size); size 329 libavformat/file.c (*next)->size = st.st_size; size 91 libavformat/filmstripdec.c pkt->size = av_get_packet(s->pb, pkt, st->codecpar->width * st->codecpar->height * 4); size 93 libavformat/filmstripdec.c if (pkt->size < 0) size 94 libavformat/filmstripdec.c return pkt->size; size 83 libavformat/fitsdec.c int64_t buf_size = 0, size = 0, t; size 110 libavformat/fitsdec.c size = 1; size 112 libavformat/fitsdec.c size = header->naxisn[0]; size 118 libavformat/fitsdec.c if(size && header->naxisn[i] > UINT64_MAX / size) size 120 libavformat/fitsdec.c size *= header->naxisn[i]; size 123 libavformat/fitsdec.c if(header->pcount > UINT64_MAX - size) size 125 libavformat/fitsdec.c size += header->pcount; size 128 libavformat/fitsdec.c if(size && t > UINT64_MAX / size) size 130 libavformat/fitsdec.c size *= t; size 132 libavformat/fitsdec.c if (!size) { size 135 libavformat/fitsdec.c if(FITS_BLOCK_SIZE - 1 > UINT64_MAX - size) size 137 libavformat/fitsdec.c size = ((size + FITS_BLOCK_SIZE - 1) / FITS_BLOCK_SIZE) * FITS_BLOCK_SIZE; size 139 libavformat/fitsdec.c *data_size = size; size 146 libavformat/fitsdec.c uint64_t size; size 159 libavformat/fitsdec.c while ((ret = is_image(s, fits, &header, &avbuf, &size)) == 0) { size 161 libavformat/fitsdec.c pos = avio_skip(s->pb, size); size 177 libavformat/fitsdec.c ret = av_new_packet(pkt, avbuf.len - 80 + size); size 190 libavformat/fitsdec.c pkt->size = avbuf.len - 80; size 192 libavformat/fitsdec.c ret = avio_read(s->pb, pkt->data + pkt->size, size); size 197 libavformat/fitsdec.c pkt->size += ret; size 174 libavformat/fitsenc.c avio_write(s->pb, pkt->data, pkt->size); size 171 libavformat/flac_picture.c st->attached_pic.size = len; size 240 libavformat/flacdec.c int size = AV_RB24(p->buf + 5); size 248 libavformat/flacdec.c size == FLAC_STREAMINFO_SIZE && size 280 libavformat/flacdec.c int size; size 288 libavformat/flacdec.c av_assert1(!pkt.size); size 292 libavformat/flacdec.c &data, &size, pkt.data, pkt.size, size 296 libavformat/flacdec.c if (size) { size 300 libavformat/flacdec.c *ppos = parser->next_frame_offset - size; size 134 libavformat/flacenc.c blocklen = 4 + 4 + mimelen + 4 + desclen + 4 + 4 + 4 + 4 + 4 + pkt->size; size 159 libavformat/flacenc.c avio_wb32(pb, pkt->size); size 160 libavformat/flacenc.c avio_write(pb, pkt->data, pkt->size); size 292 libavformat/flacenc.c if (pkt->size) size 293 libavformat/flacenc.c avio_write(s->pb, pkt->data, pkt->size); size 201 libavformat/flic.c unsigned int size; size 214 libavformat/flic.c size = AV_RL32(&preamble[0]); size 217 libavformat/flic.c if (((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) && size > FLIC_PREAMBLE_SIZE) { size 218 libavformat/flic.c if ((ret = av_new_packet(pkt, size)) < 0) size 226 libavformat/flic.c size - FLIC_PREAMBLE_SIZE); size 227 libavformat/flic.c if (ret != size - FLIC_PREAMBLE_SIZE) { size 232 libavformat/flic.c if ((ret = av_new_packet(pkt, size)) < 0) size 240 libavformat/flic.c ret = avio_read(pb, pkt->data, size); size 242 libavformat/flic.c if (ret != size) { size 250 libavformat/flic.c avio_skip(pb, size - 6); size 796 libavformat/flvdec.c static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size) size 799 libavformat/flvdec.c if (!size) size 802 libavformat/flvdec.c if ((ret = ff_get_extradata(s, st->codecpar, s->pb, size)) < 0) size 809 libavformat/flvdec.c int size) size 811 libavformat/flvdec.c if (!size) size 815 libavformat/flvdec.c flv->new_extradata[stream] = av_mallocz(size + size 819 libavformat/flvdec.c flv->new_extradata_size[stream] = size; size 820 libavformat/flvdec.c avio_read(pb, flv->new_extradata[stream], size); size 861 libavformat/flvdec.c int size = avio_rb16(pb); size 862 libavformat/flvdec.c if (!size) { size 866 libavformat/flvdec.c avio_skip(pb, size); size 937 libavformat/flvdec.c pkt->size = ret; size 993 libavformat/flvdec.c int ret, i, size, flags; size 1009 libavformat/flvdec.c size = avio_rb24(s->pb); size 1010 libavformat/flvdec.c flv->sum_flv_tag_size += size + 11; size 1013 libavformat/flvdec.c av_log(s, AV_LOG_TRACE, "type:%d, size:%d, last:%d, dts:%"PRId64" pos:%"PRId64"\n", type, size, last, dts, avio_tell(s->pb)); size 1035 libavformat/flvdec.c if (size == 0) { size 1040 libavformat/flvdec.c next = size + avio_tell(s->pb); size 1045 libavformat/flvdec.c size--; size 1049 libavformat/flvdec.c size--; size 1054 libavformat/flvdec.c if (size > 13 + 1 + 4) { // Header-type metadata stuff size 1080 libavformat/flvdec.c type, size, flags); size 1094 libavformat/flvdec.c if (!size) { size 1134 libavformat/flvdec.c av_add_index_entry(st, pos, dts, size, 0, AVINDEX_KEYFRAME); size 1150 libavformat/flvdec.c int size; size 1157 libavformat/flvdec.c size = avio_rb32(s->pb); size 1158 libavformat/flvdec.c if (size > 0 && size < fsize) { size 1161 libavformat/flvdec.c avio_seek(s->pb, fsize - 3 - size, SEEK_SET); size 1162 libavformat/flvdec.c if (size == avio_rb24(s->pb) + 11) { size 1167 libavformat/flvdec.c else if (fsize >= 8 && fsize - 8 >= size) { size 1168 libavformat/flvdec.c fsize -= size+4; size 1216 libavformat/flvdec.c size -= ret; size 1227 libavformat/flvdec.c size--; size 1229 libavformat/flvdec.c if (size < 0) { size 1254 libavformat/flvdec.c if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0) size 1259 libavformat/flvdec.c if ((ret = flv_get_extradata(s, st, size)) < 0) size 1273 libavformat/flvdec.c if (!size) { size 1278 libavformat/flvdec.c ret = av_get_packet(s->pb, pkt, size); size 885 libavformat/flvenc.c int size = pkt->size; size 890 libavformat/flvenc.c if (par->codec_type == AVMEDIA_TYPE_AUDIO && !pkt->size) { size 952 libavformat/flvenc.c av_assert0(size); size 967 libavformat/flvenc.c if ((ret = ff_avc_parse_nal_units_buf(pkt->data, &data, &size)) < 0) size 969 libavformat/flvenc.c } else if (par->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && size 989 libavformat/flvenc.c if (size + flags_size >= 1<<24) { size 991 libavformat/flvenc.c size + flags_size, 1<<24); size 996 libavformat/flvenc.c avio_wb24(pb, size + flags_size); size 1020 libavformat/flvenc.c avio_write(pb, data ? data : pkt->data, size); size 1046 libavformat/flvenc.c avio_write(pb, data ? data : pkt->data, size); size 1048 libavformat/flvenc.c avio_wb32(pb, size + flags_size + 11); // previous tag size size 1092 libavformat/flvenc.c if (pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) size 47 libavformat/framecrcenc.c uint32_t crc = av_adler32_update(0, pkt->data, pkt->size); size 51 libavformat/framecrcenc.c pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size, crc); size 61 libavformat/framecrcenc.c for (j=0; j<pkt->side_data[i].size; j++) { size 69 libavformat/framecrcenc.c pkt->side_data[i].size); size 71 libavformat/framecrcenc.c av_strlcatf(buf, sizeof(buf), ", %8d, 0x%08"PRIx32, pkt->side_data[i].size, side_data_crc); size 94 libavformat/frmdec.c for (i = 3; i + 1 <= pkt->size; i += 4) size 194 libavformat/fsb.c if (par->codec_id == AV_CODEC_ID_XMA2 && pkt->size >= 1) size 798 libavformat/ftp.c static int ftp_read(URLContext *h, unsigned char *buf, int size) size 803 libavformat/ftp.c ff_dlog(h, "ftp protocol read %d bytes\n", size); size 816 libavformat/ftp.c read = ffurl_read(s->conn_data, buf, size); size 853 libavformat/ftp.c static int ftp_write(URLContext *h, const unsigned char *buf, int size) size 859 libavformat/ftp.c ff_dlog(h, "ftp protocol write %d bytes\n", size); size 870 libavformat/ftp.c written = ffurl_write(s->conn_data, buf, size); size 993 libavformat/ftp.c next->size = strtoll(value, NULL, 10); size 56 libavformat/g723_1.c int size, byte, ret; size 60 libavformat/g723_1.c size = frame_size[byte & 3]; size 62 libavformat/g723_1.c ret = av_new_packet(pkt, size); size 70 libavformat/g723_1.c ret = avio_read(s->pb, pkt->data + 1, size - 1); size 71 libavformat/g723_1.c if (ret < size - 1) { size 75 libavformat/g723_1.c return pkt->size; size 58 libavformat/gif.c static int gif_parse_packet(AVFormatContext *s, uint8_t *data, int size) size 63 libavformat/gif.c bytestream2_init(&gb, data, size); size 109 libavformat/gif.c if (pkt->size > 0) size 110 libavformat/gif.c gif->have_end = pkt->data[pkt->size - 1] == GIF_TRAILER; size 116 libavformat/gif.c if (pkt->size < 13) size 122 libavformat/gif.c if (pkt->size < off + 2) size 130 libavformat/gif.c if (pkt->size <= off) size 145 libavformat/gif.c delay_pos = gif_parse_packet(s, pkt->data + off, pkt->size - off); size 146 libavformat/gif.c if (delay_pos > 0 && delay_pos < pkt->size - off - 2) { size 149 libavformat/gif.c avio_write(pb, pkt->data + off + delay_pos + 2, pkt->size - off - delay_pos - 2); size 151 libavformat/gif.c avio_write(pb, pkt->data + off, pkt->size - off); size 154 libavformat/gif.c int delay_pos = gif_parse_packet(s, pkt->data, pkt->size); size 156 libavformat/gif.c if (delay_pos > 0 && delay_pos < pkt->size - 2) { size 159 libavformat/gif.c avio_write(pb, pkt->data + delay_pos + 2, pkt->size - delay_pos - 2); size 161 libavformat/gif.c avio_write(pb, pkt->data, pkt->size); size 35 libavformat/gopher.c static int gopher_write(URLContext *h, const uint8_t *buf, int size) size 38 libavformat/gopher.c return ffurl_write(s->hd, buf, size); size 106 libavformat/gopher.c static int gopher_read(URLContext *h, uint8_t *buf, int size) size 109 libavformat/gopher.c int len = ffurl_read(s->hd, buf, size); size 56 libavformat/gsmdec.c int ret, size; size 58 libavformat/gsmdec.c size = GSM_BLOCK_SIZE; size 63 libavformat/gsmdec.c ret = av_get_packet(s->pb, pkt, size); size 145 libavformat/gxfenc.c int size; size 147 libavformat/gxfenc.c size = avio_tell(pb) - pos; size 148 libavformat/gxfenc.c if (size % 4) { size 149 libavformat/gxfenc.c gxf_write_padding(pb, 4 - size % 4); size 150 libavformat/gxfenc.c size = avio_tell(pb) - pos; size 154 libavformat/gxfenc.c avio_wb32(pb, size); size 185 libavformat/gxfenc.c int size, starting_line; size 208 libavformat/gxfenc.c size = snprintf(buffer, sizeof(buffer), "Ver 1\nBr %.6f\nIpg 1\nPpi %d\nBpiop %d\n" size 213 libavformat/gxfenc.c av_assert0(size < sizeof(buffer)); size 215 libavformat/gxfenc.c avio_w8(pb, size + 1); size 216 libavformat/gxfenc.c avio_write(pb, (uint8_t *)buffer, size + 1); size 217 libavformat/gxfenc.c return size + 3; size 882 libavformat/gxfenc.c static int gxf_parse_mpeg_frame(GXFStreamContext *sc, const uint8_t *buf, int size) size 886 libavformat/gxfenc.c for(i=0; i<size-4 && c!=0x100; i++){ size 894 libavformat/gxfenc.c static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) size 916 libavformat/gxfenc.c avio_wb16(pb, size / 2); size 918 libavformat/gxfenc.c int frame_type = gxf_parse_mpeg_frame(sc, pkt->data, pkt->size); size 929 libavformat/gxfenc.c avio_wb24(pb, size); size 931 libavformat/gxfenc.c avio_w8(pb, size / 4096); size 934 libavformat/gxfenc.c avio_wb32(pb, size); size 952 libavformat/gxfenc.c if (st->codecpar->codec_id == AV_CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */ size 953 libavformat/gxfenc.c padding = 4 - pkt->size % 4; size 955 libavformat/gxfenc.c padding = GXF_AUDIO_PACKET_SIZE - pkt->size; size 956 libavformat/gxfenc.c gxf_write_media_preamble(s, pkt, pkt->size + padding); size 957 libavformat/gxfenc.c avio_write(pb, pkt->data, pkt->size); size 135 libavformat/hashenc.c av_hash_update(c->hashes[c->per_stream ? pkt->stream_index : 0], pkt->data, pkt->size); size 299 libavformat/hashenc.c av_hash_update(c->hashes[0], pkt->data, pkt->size); size 302 libavformat/hashenc.c pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size); size 313 libavformat/hashenc.c for (j = 0; j < pkt->side_data[i].size; j += sizeof(uint32_t)) { size 318 libavformat/hashenc.c av_hash_update(c->hashes[0], pkt->side_data[i].data, pkt->side_data[i].size); size 319 libavformat/hashenc.c snprintf(buf, sizeof(buf) - (AV_HASH_MAX_SIZE * 2 + 1), ", %8d, ", pkt->side_data[i].size); size 89 libavformat/hdsenc.c int size = AV_RB24(&buf[1]) + 11 + 4; size 90 libavformat/hdsenc.c if (size > buf_size) size 95 libavformat/hdsenc.c os->extra_packet_sizes[os->nb_extra_packets] = size; size 96 libavformat/hdsenc.c os->extra_packets[os->nb_extra_packets] = av_malloc(size); size 99 libavformat/hdsenc.c memcpy(os->extra_packets[os->nb_extra_packets], buf, size); size 104 libavformat/hdsenc.c os->metadata_size = size - 11 - 4; size 110 libavformat/hdsenc.c buf += size; size 111 libavformat/hdsenc.c buf_size -= size; size 1000 libavformat/hevc.c int size, int filter_ps, int *ps_count) size 1006 libavformat/hevc.c ret = ff_avc_parse_nal_units(pb, buf_in, size); size 1010 libavformat/hevc.c ret = ff_avc_parse_nal_units_buf(buf_in, &start, &size); size 1016 libavformat/hevc.c end = start + size; size 1048 libavformat/hevc.c int *size, int filter_ps, int *ps_count) size 1057 libavformat/hevc.c ret = ff_hevc_annexb2mp4(pb, buf_in, *size, filter_ps, ps_count); size 1063 libavformat/hevc.c *size = avio_close_dyn_buf(pb, buf_out); size 1069 libavformat/hevc.c int size, int ps_array_completeness) size 1077 libavformat/hevc.c if (size < 6) { size 1083 libavformat/hevc.c avio_write(pb, data, size); size 1091 libavformat/hevc.c ret = ff_avc_parse_nal_units_buf(data, &start, &size); size 1096 libavformat/hevc.c end = start + size; size 52 libavformat/hevc.h int size, int filter_ps, int *ps_count); size 79 libavformat/hevc.h int *size, int filter_ps, int *ps_count); size 97 libavformat/hevc.h int size, int ps_array_completeness); size 71 libavformat/hls.c int64_t size; size 433 libavformat/hls.c sec->size = strtoll(info->byterange, NULL, 10); size 439 libavformat/hls.c sec->size = -1; size 948 libavformat/hls.c seg->size = seg_size; size 1014 libavformat/hls.c if (seg->size >= 0) size 1015 libavformat/hls.c buf_size = FFMIN(buf_size, seg->size - pls->cur_seg_offset); size 1068 libavformat/hls.c int size = pls->ctx->streams[1]->attached_pic.size; size 1069 libavformat/hls.c if (size != apic->buf->size - AV_INPUT_BUFFER_PADDING_SIZE) size 1072 libavformat/hls.c if (memcmp(apic->buf->data, pls->ctx->streams[1]->attached_pic.data, size) != 0) size 1157 libavformat/hls.c int64_t maxsize = seg->size >= 0 ? seg->size : 1024*1024; size 1231 libavformat/hls.c if (seg->size >= 0) { size 1235 libavformat/hls.c av_dict_set_int(&opts, "end_offset", seg->url_offset + seg->size, 0); size 1333 libavformat/hls.c if (seg->init_section->size >= 0) size 1334 libavformat/hls.c sec_size = seg->init_section->size; size 80 libavformat/hlsenc.c int64_t size; size 142 libavformat/hlsenc.c int64_t size; // last segment size size 902 libavformat/hlsenc.c double duration, int64_t pos, int64_t size) size 913 libavformat/hlsenc.c if (replace_int_data_in_filename(&filename, vs->avf->url, 's', pos + size) < 1) { size 1040 libavformat/hlsenc.c int64_t size) size 1051 libavformat/hlsenc.c ret = sls_flags_filename_process(s, hls, vs, en, duration, pos, size); size 1075 libavformat/hlsenc.c en->size = size; size 1205 libavformat/hlsenc.c vs->size = new_start_pos - vs->start_pos; size 1207 libavformat/hlsenc.c ret = hls_append_segment(s, hls, vs, vs->duration, vs->start_pos, vs->size); size 1527 libavformat/hlsenc.c en->size, en->pos, hls->baseurl, size 1548 libavformat/hlsenc.c en->duration, 0, en->size, en->pos, size 2356 libavformat/hlsenc.c vs->size = new_start_pos - vs->start_pos; size 2387 libavformat/hlsenc.c vs->size = range_length; size 2395 libavformat/hlsenc.c if ((hls->max_seg_size > 0 && (vs->size >= hls->max_seg_size)) || !byterange_mode) { size 2458 libavformat/hlsenc.c ret = hls_append_segment(s, hls, vs, cur_duration, vs->start_pos, vs->size); size 2488 libavformat/hlsenc.c vs->start_pos += vs->size; size 2491 libavformat/hlsenc.c if (vs->size >= hls->max_seg_size) { size 2516 libavformat/hlsenc.c vs->video_keyframe_size += pkt->size; size 2633 libavformat/hlsenc.c vs->size = range_length; size 2672 libavformat/hlsenc.c hls_append_segment(s, hls, vs, vs->duration + vs->dpp, vs->start_pos, vs->size); size 2679 libavformat/hlsenc.c vs->size = avio_tell(vs->vtt_avf->pb) - vs->start_pos; size 123 libavformat/hlsplaylist.c int byterange_mode, int64_t size, int64_t pos) size 127 libavformat/hlsplaylist.c avio_printf(out, ",BYTERANGE=\"%"PRId64"@%"PRId64"\"", size, pos); size 134 libavformat/hlsplaylist.c int round_duration, int64_t size, size 152 libavformat/hlsplaylist.c avio_printf(out, "#EXT-X-BYTERANGE:%"PRId64"@%"PRId64"\n", iframe_mode ? video_keyframe_size : size, size 54 libavformat/hlsplaylist.h int byterange_mode, int64_t size, int64_t pos); size 57 libavformat/hlsplaylist.h int round_duration, int64_t size, size 249 libavformat/hlsproto.c static int hls_read(URLContext *h, uint8_t *buf, int size) size 258 libavformat/hlsproto.c ret = ffurl_read(s->seg_hd, buf, size); size 1383 libavformat/http.c static int http_buf_read(URLContext *h, uint8_t *buf, int size) size 1423 libavformat/http.c size = FFMIN(size, s->chunksize); size 1429 libavformat/http.c if (len > size) size 1430 libavformat/http.c len = size; size 1437 libavformat/http.c len = ffurl_read(s->hd, buf, size); size 1458 libavformat/http.c static int http_buf_read_compressed(URLContext *h, uint8_t *buf, int size) size 1477 libavformat/http.c s->inflate_stream.avail_out = size; size 1485 libavformat/http.c return size - s->inflate_stream.avail_out; size 1491 libavformat/http.c static int http_read_stream(URLContext *h, uint8_t *buf, int size) size 1509 libavformat/http.c return http_buf_read_compressed(h, buf, size); size 1511 libavformat/http.c read_ret = http_buf_read(h, buf, size); size 1539 libavformat/http.c read_ret = http_buf_read(h, buf, size); size 1547 libavformat/http.c static int http_read_stream_all(URLContext *h, uint8_t *buf, int size) size 1550 libavformat/http.c while (pos < size) { size 1551 libavformat/http.c int len = http_read_stream(h, buf + pos, size - pos); size 1587 libavformat/http.c static int store_icy(URLContext *h, int size) size 1622 libavformat/http.c return FFMIN(size, remaining); size 1625 libavformat/http.c static int http_read(URLContext *h, uint8_t *buf, int size) size 1630 libavformat/http.c size = store_icy(h, size); size 1631 libavformat/http.c if (size < 0) size 1632 libavformat/http.c return size; size 1635 libavformat/http.c size = http_read_stream(h, buf, size); size 1636 libavformat/http.c if (size > 0) size 1637 libavformat/http.c s->icy_data_read += size; size 1638 libavformat/http.c return size; size 1642 libavformat/http.c static int http_write(URLContext *h, const uint8_t *buf, int size) size 1651 libavformat/http.c return ffurl_write(s->hd, buf, size); size 1656 libavformat/http.c if (size > 0) { size 1658 libavformat/http.c snprintf(temp, sizeof(temp), "%x\r\n", size); size 1661 libavformat/http.c (ret = ffurl_write(s->hd, buf, size)) < 0 || size 1665 libavformat/http.c return size; size 1935 libavformat/http.c static int http_proxy_write(URLContext *h, const uint8_t *buf, int size) size 1938 libavformat/http.c return ffurl_write(s->hd, buf, size); size 77 libavformat/httpauth.c static void choose_qop(char *qop, int size) size 84 libavformat/httpauth.c av_strlcpy(qop, "auth", size); size 177 libavformat/icecast.c static int icecast_write(URLContext *h, const uint8_t *buf, int size) size 182 libavformat/icecast.c if (!s->content_type && size >= 8) { size 201 libavformat/icecast.c return ffurl_write(s->hd, buf, size); size 36 libavformat/icodec.c int size; size 113 libavformat/icodec.c ico->images[i].size = avio_rl32(pb); size 114 libavformat/icodec.c if (ico->images[i].size <= 0) { size 115 libavformat/icodec.c av_log(s, AV_LOG_ERROR, "Invalid image size %d\n", ico->images[i].size); size 132 libavformat/icodec.c if (ico->images[i].size < 40) { size 171 libavformat/icodec.c if ((ret = av_get_packet(pb, pkt, image->size)) < 0) size 175 libavformat/icodec.c if ((ret = av_new_packet(pkt, 14 + image->size)) < 0) size 182 libavformat/icodec.c bytestream_put_le32(&buf, pkt->size); size 187 libavformat/icodec.c if ((ret = avio_read(pb, buf, image->size)) != image->size) { size 33 libavformat/icoenc.c int size; size 133 libavformat/icoenc.c image->size = pkt->size; size 135 libavformat/icoenc.c avio_write(pb, pkt->data, pkt->size); size 143 libavformat/icoenc.c image->size = pkt->size - 14 + par->height * (par->width + 7) / 8; size 147 libavformat/icoenc.c avio_write(pb, pkt->data + 26, pkt->size - 26); size 180 libavformat/icoenc.c avio_wl32(pb, ico->images[i].size); size 176 libavformat/id3v2.c static unsigned int size_to_syncsafe(unsigned int size) size 178 libavformat/id3v2.c return (((size) & (0x7f << 0)) >> 0) + size 179 libavformat/id3v2.c (((size) & (0x7f << 8)) >> 1) + size 180 libavformat/id3v2.c (((size) & (0x7f << 16)) >> 2) + size 181 libavformat/id3v2.c (((size) & (0x7f << 24)) >> 3); size 1160 libavformat/id3v2.c st->attached_pic.size = apic->buf->size - AV_INPUT_BUFFER_PADDING_SIZE; size 32 libavformat/id3v2enc.c static void id3v2_put_size(AVIOContext *pb, int size) size 34 libavformat/id3v2enc.c avio_w8(pb, size >> 21 & 0x7f); size 35 libavformat/id3v2enc.c avio_w8(pb, size >> 14 & 0x7f); size 36 libavformat/id3v2enc.c avio_w8(pb, size >> 7 & 0x7f); size 37 libavformat/id3v2enc.c avio_w8(pb, size & 0x7f); size 403 libavformat/id3v2enc.c avio_write(dyn_buf, pkt->data, pkt->size); size 222 libavformat/iff.c uint64_t size = avio_rb64(pb); size 231 libavformat/iff.c if (metadata_tag && size > 4) { size 233 libavformat/iff.c int ret = get_metadata(s, metadata_tag, FFMIN(tag_size, size - 4)); size 240 libavformat/iff.c avio_skip(pb, size - (avio_tell(pb) - orig_pos) + (size & 1)); size 256 libavformat/iff.c uint64_t size = avio_rb64(pb); size 261 libavformat/iff.c if (size < 8) size 271 libavformat/iff.c if (size < 2) size 274 libavformat/iff.c if (size < 2 + st->codecpar->channels * 4) size 294 libavformat/iff.c if (size < 4) size 306 libavformat/iff.c if (size < 4) size 313 libavformat/iff.c ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC, &id3v2_extra_meta, size); size 323 libavformat/iff.c if (size < avio_tell(pb) - orig_pos) { size 330 libavformat/iff.c if (size < 2) size 342 libavformat/iff.c avio_skip(pb, size - (avio_tell(pb) - orig_pos) + (size & 1)); size 797 libavformat/iff.c static unsigned get_anim_duration(uint8_t *buf, int size) size 801 libavformat/iff.c bytestream2_init(&gb, buf, size); size 805 libavformat/iff.c unsigned size = bytestream2_get_be32(&gb); size 808 libavformat/iff.c if (size < 40) size 813 libavformat/iff.c bytestream2_skip(&gb, size + size & 1); size 870 libavformat/iff.c pkt->duration = get_anim_duration(pkt->data, pkt->size); size 58 libavformat/ifv.c int64_t pos, size, timestamp; size 74 libavformat/ifv.c size = avio_rl32(s->pb); size 79 libavformat/ifv.c ret = av_add_index_entry(st, pos, timestamp, size, 0, 0); size 260 libavformat/ifv.c ret = av_get_packet(s->pb, pkt, e_next->size); size 65 libavformat/img2dec.c static int infer_size(int *width_ptr, int *height_ptr, int size) size 70 libavformat/img2dec.c if ((sizes[i][0] * sizes[i][1]) == size) { size 408 libavformat/img2dec.c int size[3] = { 0 }, ret[3] = { 0 }; size 444 libavformat/img2dec.c size[i] = avio_size(f[i]); size 473 libavformat/img2dec.c infer_size(&par->width, &par->height, size[0]); size 481 libavformat/img2dec.c size[0] = s->frame_size; size 483 libavformat/img2dec.c size[0] = avio_size(s1->pb); size 485 libavformat/img2dec.c size[0] = 4096; size 489 libavformat/img2dec.c res = av_new_packet(pkt, size[0] + size[1] + size[2]); size 525 libavformat/img2dec.c pkt->size = 0; size 528 libavformat/img2dec.c ret[i] = avio_read(f[i], pkt->data + pkt->size, size[i]); size 532 libavformat/img2dec.c ret[i] = avio_read(f[i], pkt->data + pkt->size, size[i]); size 538 libavformat/img2dec.c pkt->size += ret[i]; size 122 libavformat/img2enc.c avio_write(s->pb, pkt->data, pkt->size); size 208 libavformat/img2enc.c avio_write(pb[0], pkt->data, pkt->size); size 38 libavformat/ingenientdec.c int ret, size, w, h, unk1, unk2; size 43 libavformat/ingenientdec.c size = avio_rl32(s->pb); size 55 libavformat/ingenientdec.c size, w, h, unk1, unk2); size 57 libavformat/ingenientdec.c ret = av_get_packet(s->pb, pkt, size); size 37 libavformat/internal.h # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size) size 39 libavformat/internal.h # define hex_dump_debug(class, buf, size) do { if (0) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size); } while(0) size 221 libavformat/internal.h char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); size 275 libavformat/internal.h void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 387 libavformat/internal.h int64_t pos, int64_t timestamp, int size, int distance, int flags); size 590 libavformat/internal.h int ff_alloc_extradata(AVCodecParameters *par, int size); size 599 libavformat/internal.h int ff_get_extradata(AVFormatContext *s, AVCodecParameters *par, AVIOContext *pb, int size); size 608 libavformat/isom.c int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size) size 615 libavformat/isom.c if (size < 12) size 619 libavformat/isom.c size -= 4; size 623 libavformat/isom.c avio_skip(pb, size); size 628 libavformat/isom.c size -= 4; size 629 libavformat/isom.c avio_skip(pb, size); size 641 libavformat/isom.c avio_skip(pb, size); size 84 libavformat/isom.h int64_t size; /* total size (excluding the size and type fields) */ size 97 libavformat/isom.h unsigned size; size 105 libavformat/isom.h unsigned size; size 59 libavformat/iv8.c int ret, size, pts, type, flags; size 66 libavformat/iv8.c size = avio_rb16(s->pb); size 74 libavformat/iv8.c size -= 12; size 75 libavformat/iv8.c if (size < 1) size 79 libavformat/iv8.c avio_skip(s->pb, size); size 85 libavformat/iv8.c ret = av_get_packet(s->pb, pkt, size); size 92 libavformat/iv8.c ret = av_append_packet(s->pb, pkt, size); size 98 libavformat/iv8.c if (ret < size) { size 100 libavformat/iv8.c ret, size); size 73 libavformat/ivfdec.c int ret, size = avio_rl32(s->pb); size 76 libavformat/ivfdec.c ret = av_get_packet(s->pb, pkt, size); size 84 libavformat/ivfenc.c avio_wl32(pb, pkt->size); size 86 libavformat/ivfenc.c avio_write(pb, pkt->data, pkt->size); size 126 libavformat/jvdec.c e->size = avio_rl32(pb); size 129 libavformat/jvdec.c offset += e->size; size 136 libavformat/jvdec.c e->size - jvf->audio_size size 191 libavformat/jvdec.c int size = jvf->video_size + jvf->palette_size; size 192 libavformat/jvdec.c if ((ret = av_new_packet(pkt, size + JV_PREAMBLE_SIZE)) < 0) size 197 libavformat/jvdec.c ret = avio_read(pb, pkt->data + JV_PREAMBLE_SIZE, size); size 200 libavformat/jvdec.c if (ret < size) { size 205 libavformat/jvdec.c pkt->size = ret + JV_PREAMBLE_SIZE; size 213 libavformat/jvdec.c avio_skip(pb, FFMAX(e->size - jvf->audio_size - jvf->video_size size 56 libavformat/latmenc.c static int latm_decode_extradata(AVFormatContext *s, uint8_t *buf, int size) size 61 libavformat/latmenc.c if (size > MAX_EXTRADATA_SIZE) { size 65 libavformat/latmenc.c ctx->off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); size 163 libavformat/latmenc.c if(pkt->size > 2 && pkt->data[0] == 0x56 && (pkt->data[1] >> 4) == 0xe && size 164 libavformat/latmenc.c (AV_RB16(pkt->data + 1) & 0x1FFF) + 3 == pkt->size) size 184 libavformat/latmenc.c if (pkt->size > 0x1fff) size 187 libavformat/latmenc.c init_put_bits(&bs, ctx->buffer, pkt->size+1024+MAX_EXTRADATA_SIZE); size 192 libavformat/latmenc.c for (i = 0; i <= pkt->size-255; i+=255) size 195 libavformat/latmenc.c put_bits(&bs, 8, pkt->size-i); size 200 libavformat/latmenc.c if (pkt->size && (pkt->data[0] & 0xe1) == 0x81) { size 210 libavformat/latmenc.c avpriv_copy_bits(&bs, pkt->data + 1, 8*pkt->size - 8); size 212 libavformat/latmenc.c avpriv_copy_bits(&bs, pkt->data, 8*pkt->size); size 241 libavformat/latmenc.c if (pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) size 210 libavformat/libamqp.c static int amqp_proto_write(URLContext *h, const unsigned char *buf, int size) size 216 libavformat/libamqp.c amqp_bytes_t message = { size, (void *)buf }; size 236 libavformat/libamqp.c return size; size 239 libavformat/libamqp.c static int amqp_proto_read(URLContext *h, unsigned char *buf, int size) size 258 libavformat/libamqp.c if (envelope.message.body.len > size) { size 264 libavformat/libamqp.c size = FFMIN(size, envelope.message.body.len); size 266 libavformat/libamqp.c memcpy(buf, envelope.message.body.bytes, size); size 269 libavformat/libamqp.c return size; size 151 libavformat/libgme.c pkt->size = AUDIO_PKT_SIZE; size 328 libavformat/libmodplug.c pkt->size = ModPlug_Read(modplug->f, pkt->data, AUDIO_PKT_SIZE); size 329 libavformat/libmodplug.c if (pkt->size <= 0) { size 330 libavformat/libmodplug.c return pkt->size == 0 ? AVERROR_EOF : AVERROR(EIO); size 83 libavformat/libopenmpt.c int64_t size; size 90 libavformat/libopenmpt.c size = avio_size(s->pb); size 91 libavformat/libopenmpt.c if (size <= 0) size 93 libavformat/libopenmpt.c buf = av_malloc(size); size 96 libavformat/libopenmpt.c size = avio_read(s->pb, buf, size); size 97 libavformat/libopenmpt.c if (size < 0) { size 100 libavformat/libopenmpt.c return size; size 105 libavformat/libopenmpt.c openmpt->module = openmpt_module_create_from_memory2(buf, size, openmpt_logfunc, s, NULL, NULL, &error, NULL, NULL); size 116 libavformat/libopenmpt.c openmpt->module = openmpt_module_create_from_memory(buf, size, openmpt_logfunc, s, NULL); size 197 libavformat/libopenmpt.c pkt->size = 0; size 201 libavformat/libopenmpt.c pkt->size = ret * (openmpt->channels * 4); size 259 libavformat/librtmp.c static int rtmp_write(URLContext *s, const uint8_t *buf, int size) size 264 libavformat/librtmp.c int ret = RTMP_Write(r, buf, size); size 270 libavformat/librtmp.c static int rtmp_read(URLContext *s, uint8_t *buf, int size) size 275 libavformat/librtmp.c int ret = RTMP_Read(r, buf, size); size 158 libavformat/libsmbclient.c static int libsmbc_read(URLContext *h, unsigned char *buf, int size) size 163 libavformat/libsmbclient.c if ((bytes_read = smbc_read(libsmbc->fd, buf, size)) < 0) { size 172 libavformat/libsmbclient.c static int libsmbc_write(URLContext *h, const unsigned char *buf, int size) size 177 libavformat/libsmbclient.c if ((bytes_written = smbc_write(libsmbc->fd, buf, size)) < 0) { size 267 libavformat/libsmbclient.c entry->size = st.st_size; size 627 libavformat/libsrt.c static int libsrt_read(URLContext *h, uint8_t *buf, int size) size 638 libavformat/libsrt.c ret = srt_recvmsg(s->fd, buf, size); size 646 libavformat/libsrt.c static int libsrt_write(URLContext *h, const uint8_t *buf, int size) size 657 libavformat/libsrt.c ret = srt_sendmsg(s->fd, buf, size, -1, 0); size 168 libavformat/libssh.c libssh->filesize = stat->size; size 289 libavformat/libssh.c static int libssh_read(URLContext *h, unsigned char *buf, int size) size 294 libavformat/libssh.c if ((bytes_read = sftp_read(libssh->file, buf, size)) < 0) { size 301 libavformat/libssh.c static int libssh_write(URLContext *h, const unsigned char *buf, int size) size 306 libavformat/libssh.c if ((bytes_written = sftp_write(libssh->file, buf, size)) < 0) { size 360 libavformat/libssh.c entry->size = attr->size; size 143 libavformat/libzmq.c static int zmq_proto_write(URLContext *h, const unsigned char *buf, int size) size 151 libavformat/libzmq.c ret = zmq_send(s->socket, buf, size, 0); size 159 libavformat/libzmq.c static int zmq_proto_read(URLContext *h, unsigned char *buf, int size) size 167 libavformat/libzmq.c ret = zmq_recv(s->socket, buf, size, 0); size 172 libavformat/libzmq.c if (ret > size) { size 175 libavformat/libzmq.c ret = size; size 89 libavformat/lrcenc.c char *data = av_malloc(pkt->size + 1); size 96 libavformat/lrcenc.c memcpy(data, pkt->data, pkt->size); size 97 libavformat/lrcenc.c data[pkt->size] = '\0'; size 99 libavformat/lrcenc.c for(delim = data + pkt->size - 1; size 41 libavformat/lvfdec.c unsigned size, nb_streams, id; size 56 libavformat/lvfdec.c size = avio_rl32(s->pb); size 57 libavformat/lvfdec.c next_offset = avio_tell(s->pb) + size; size 106 libavformat/lvfdec.c unsigned size, flags, timestamp, id; size 113 libavformat/lvfdec.c size = avio_rl32(s->pb); size 115 libavformat/lvfdec.c if (size == 0xFFFFFFFFu) size 122 libavformat/lvfdec.c if (size < 8) size 126 libavformat/lvfdec.c ret = av_get_packet(s->pb, pkt, size - 8); size 134 libavformat/lvfdec.c ret = avio_skip(s->pb, size); size 69 libavformat/lxfdec.c static int check_checksum(const uint8_t *header, int size) size 74 libavformat/lxfdec.c for (x = 0; x < size; x += 4) size 118 libavformat/matroskadec.c int size; size 922 libavformat/matroskadec.c static int ebml_read_uint(AVIOContext *pb, int size, uint64_t *num) size 928 libavformat/matroskadec.c while (n++ < size) size 938 libavformat/matroskadec.c static int ebml_read_sint(AVIOContext *pb, int size, int64_t *num) size 942 libavformat/matroskadec.c if (size == 0) { size 948 libavformat/matroskadec.c while (n++ < size) size 959 libavformat/matroskadec.c static int ebml_read_float(AVIOContext *pb, int size, double *num) size 961 libavformat/matroskadec.c if (size == 0) size 963 libavformat/matroskadec.c else if (size == 4) size 965 libavformat/matroskadec.c else if (size == 8) size 977 libavformat/matroskadec.c static int ebml_read_ascii(AVIOContext *pb, int size, char **str) size 984 libavformat/matroskadec.c if (!(res = av_malloc(size + 1))) size 986 libavformat/matroskadec.c if ((ret = avio_read(pb, (uint8_t *) res, size)) != size) { size 990 libavformat/matroskadec.c (res)[size] = '\0'; size 1012 libavformat/matroskadec.c bin->size = length; size 1017 libavformat/matroskadec.c bin->size = 0; size 1523 libavformat/matroskadec.c int len_mask = 0x80, size = 1, n = 1, i; size 1531 libavformat/matroskadec.c while (size <= 8 && !(total & len_mask)) { size 1532 libavformat/matroskadec.c size++; size 1535 libavformat/matroskadec.c if (size > 8) size 1538 libavformat/matroskadec.c while (n < size) size 1541 libavformat/matroskadec.c if (total + 1 == 1ULL << (7 * size)){ size 1543 libavformat/matroskadec.c total = p->buf_size - 4 - size; size 1546 libavformat/matroskadec.c if (p->buf_size < 4 + size + total) size 1558 libavformat/matroskadec.c for (n = 4 + size; n <= 4 + size + total - probelen; n++) size 1599 libavformat/matroskadec.c int header_size = encodings[0].compression.settings.size; size 1979 libavformat/matroskadec.c int size = track->codec_priv.size; size 1981 libavformat/matroskadec.c if (size < 8 + FLAC_STREAMINFO_SIZE || p[4] & 0x7f) { size 1983 libavformat/matroskadec.c track->codec_priv.size = 0; size 1987 libavformat/matroskadec.c track->codec_priv.size = 8 + FLAC_STREAMINFO_SIZE; size 1989 libavformat/matroskadec.c p += track->codec_priv.size; size 1990 libavformat/matroskadec.c size -= track->codec_priv.size; size 1993 libavformat/matroskadec.c while (size >= 4) { size 1999 libavformat/matroskadec.c size -= 4; size 2000 libavformat/matroskadec.c if (block_size > size) size 2022 libavformat/matroskadec.c size -= block_size; size 2117 libavformat/matroskadec.c size_t size = 0; size 2119 libavformat/matroskadec.c AVContentLightMetadata *metadata = av_content_light_metadata_alloc(&size); size 2123 libavformat/matroskadec.c (uint8_t *)metadata, size); size 2173 libavformat/matroskadec.c track->video.projection.private.size); size 2184 libavformat/matroskadec.c if (track->video.projection.private.size == 20) { size 2197 libavformat/matroskadec.c } else if (track->video.projection.private.size != 0) { size 2208 libavformat/matroskadec.c if (track->video.projection.private.size < 4) { size 2211 libavformat/matroskadec.c } else if (track->video.projection.private.size == 12) { size 2274 libavformat/matroskadec.c track->codec_priv.size + 4 + AV_INPUT_BUFFER_PADDING_SIZE); size 2279 libavformat/matroskadec.c memmove(track->codec_priv.data + 4, track->codec_priv.data, track->codec_priv.size); size 2280 libavformat/matroskadec.c track->codec_priv.size += 4; size 2281 libavformat/matroskadec.c AV_WB32(track->codec_priv.data, track->codec_priv.size); size 2347 libavformat/matroskadec.c if (track->video.color_space.size == 4) size 2358 libavformat/matroskadec.c if (encodings[0].encryption.key_id.size > 0) { size 2361 libavformat/matroskadec.c const int b64_size = AV_BASE64_SIZE(encodings[0].encryption.key_id.size); size 2368 libavformat/matroskadec.c encodings[0].encryption.key_id.size); size 2388 libavformat/matroskadec.c } else if (track->codec_priv.size && encodings[0].scope & 2) { size 2391 libavformat/matroskadec.c &track->codec_priv.size, size 2395 libavformat/matroskadec.c track->codec_priv.size = 0; size 2404 libavformat/matroskadec.c track->codec_priv.size + AV_INPUT_BUFFER_PADDING_SIZE, size 2408 libavformat/matroskadec.c track->codec_priv.size = 0; size 2419 libavformat/matroskadec.c encodings[0].compression.settings.size); size 2442 libavformat/matroskadec.c track->codec_priv.size >= 40 && size 2454 libavformat/matroskadec.c track->codec_priv.size >= 14 && size 2458 libavformat/matroskadec.c track->codec_priv.size, size 2460 libavformat/matroskadec.c ret = ff_get_wav_header(s, &b, st->codecpar, track->codec_priv.size, 0); size 2465 libavformat/matroskadec.c extradata_offset = FFMIN(track->codec_priv.size, 18); size 2468 libavformat/matroskadec.c && (track->codec_priv.size >= 32) size 2489 libavformat/matroskadec.c (track->codec_priv.size >= 21) && size 2501 libavformat/matroskadec.c if (track->codec_priv.size >= 86) { size 2504 libavformat/matroskadec.c track->codec_priv.size, size 2538 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_AAC && !track->codec_priv.size) { size 2554 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_ALAC && track->codec_priv.size && track->codec_priv.size < INT_MAX - 12 - AV_INPUT_BUFFER_PADDING_SIZE) { size 2558 libavformat/matroskadec.c extradata_size = 12 + track->codec_priv.size; size 2567 libavformat/matroskadec.c track->codec_priv.size); size 2612 libavformat/matroskadec.c track->codec_priv.size, size 2631 libavformat/matroskadec.c track->codec_priv.size = 0; size 2649 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_FLAC && track->codec_priv.size) { size 2653 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_WAVPACK && track->codec_priv.size < 2) { size 2661 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_PRORES && track->codec_priv.size == 4) { size 2663 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_VP9 && track->codec_priv.size) { size 2666 libavformat/matroskadec.c track->codec_priv.size = 0; size 2667 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_AV1 && track->codec_priv.size) { size 2672 libavformat/matroskadec.c track->codec_priv.size -= extradata_offset; size 2703 libavformat/matroskadec.c } else if (track->codec_priv.data && track->codec_priv.size > 0) { size 2704 libavformat/matroskadec.c if (ff_alloc_extradata(st->codecpar, track->codec_priv.size)) size 2708 libavformat/matroskadec.c track->codec_priv.size); size 2902 libavformat/matroskadec.c if (matroska->date_utc.size == 8) size 2912 libavformat/matroskadec.c attachments[j].bin.data && attachments[j].bin.size > 0)) { size 2944 libavformat/matroskadec.c pkt->size = attachments[j].bin.size; size 2949 libavformat/matroskadec.c if (ff_alloc_extradata(st->codecpar, attachments[j].bin.size)) size 2952 libavformat/matroskadec.c attachments[j].bin.size); size 3024 libavformat/matroskadec.c int size, int type, AVIOContext *pb, size 3032 libavformat/matroskadec.c lace_size[0] = size; size 3036 libavformat/matroskadec.c if (size <= 0) size 3041 libavformat/matroskadec.c size -= 1; size 3052 libavformat/matroskadec.c if (size <= total) size 3058 libavformat/matroskadec.c size -= 1; size 3061 libavformat/matroskadec.c if (size < total) size 3064 libavformat/matroskadec.c lace_size[n] = size - total; size 3069 libavformat/matroskadec.c if (size % (*laces)) size 3072 libavformat/matroskadec.c lace_size[n] = size / *laces; size 3105 libavformat/matroskadec.c size -= offset; size 3106 libavformat/matroskadec.c if (size < total) size 3109 libavformat/matroskadec.c lace_size[*laces - 1] = size - total; size 3121 libavformat/matroskadec.c uint8_t *data, int size, uint64_t timecode, size 3136 libavformat/matroskadec.c if (size < cfs * h / 2) { size 3145 libavformat/matroskadec.c if (size < w) { size 3152 libavformat/matroskadec.c if (size < w) { size 3198 libavformat/matroskadec.c uint8_t **data, int *size) size 3203 libavformat/matroskadec.c int srclen = *size; size 3272 libavformat/matroskadec.c *size = dstlen; size 3282 libavformat/matroskadec.c uint8_t **data, int *size) size 3285 libavformat/matroskadec.c int dstlen = *size + 8; size 3297 libavformat/matroskadec.c *size = dstlen; size 3470 libavformat/matroskadec.c pkt->size = pkt_size; size 3535 libavformat/matroskadec.c int size, int64_t pos, uint64_t cluster_time, size 3551 libavformat/matroskadec.c ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL); size 3556 libavformat/matroskadec.c size -= n; size 3559 libavformat/matroskadec.c if (!track || size < 3) size 3577 libavformat/matroskadec.c size -= 3; size 3609 libavformat/matroskadec.c res = matroska_parse_laces(matroska, &data, size, (flags & 0x06) >> 1, size 3707 libavformat/matroskadec.c if (res >= 0 && block->bin.size > 0) { size 3709 libavformat/matroskadec.c uint8_t* additional = block->additional.size > 0 ? size 3713 libavformat/matroskadec.c block->bin.size, block->bin.pos, size 3716 libavformat/matroskadec.c block->additional.size, cluster->pos, size 299 libavformat/matroskaenc.c const void *buf, int size) size 302 libavformat/matroskaenc.c put_ebml_length(pb, size, 0); size 303 libavformat/matroskaenc.c avio_write(pb, buf, size); size 318 libavformat/matroskaenc.c static void put_ebml_void(AVIOContext *pb, int size) size 320 libavformat/matroskaenc.c av_assert0(size >= 2); size 326 libavformat/matroskaenc.c if (size < 10) { size 327 libavformat/matroskaenc.c size -= 2; size 328 libavformat/matroskaenc.c put_ebml_length(pb, size, 0); size 330 libavformat/matroskaenc.c size -= 9; size 331 libavformat/matroskaenc.c put_ebml_length(pb, size, 8); size 333 libavformat/matroskaenc.c ffio_fill(pb, 0, size); size 386 libavformat/matroskaenc.c int ret, size, skip = 0; size 388 libavformat/matroskaenc.c size = avio_get_dyn_buf(*dyn_cp, &buf); size 396 libavformat/matroskaenc.c put_ebml_length(pb, size, length_size); size 399 libavformat/matroskaenc.c AV_WL32(crc, av_crc(av_crc_get_table(AV_CRC_32_IEEE_LE), UINT32_MAX, buf + skip, size - skip) ^ UINT32_MAX); size 402 libavformat/matroskaenc.c avio_write(pb, buf + skip, size - skip); size 423 libavformat/matroskaenc.c int size = avio_get_dyn_buf(elem->bc, &buf); size 432 libavformat/matroskaenc.c put_ebml_length(pb, size, 0); size 433 libavformat/matroskaenc.c avio_write(pb, buf, size); size 440 libavformat/matroskaenc.c static void put_xiph_size(AVIOContext *pb, int size) size 442 libavformat/matroskaenc.c ffio_fill(pb, 255, size / 255); size 443 libavformat/matroskaenc.c avio_w8(pb, size % 255); size 567 libavformat/matroskaenc.c int size; size 591 libavformat/matroskaenc.c size = avio_get_dyn_buf(cuepoint, &buf); size 594 libavformat/matroskaenc.c put_ebml_binary(dyn_cp, MATROSKA_ID_POINTENTRY, buf, size); size 1921 libavformat/matroskaenc.c mkv->cur_audio_pkt.size = 0; size 1943 libavformat/matroskaenc.c int size = pkt_size + track_num_size + 3; size 1944 libavformat/matroskaenc.c size += ebml_length_size(size); size 1945 libavformat/matroskaenc.c size += 2; // EBML ID for block and block duration size 1946 libavformat/matroskaenc.c size += 9; // max size of block duration incl. length field size 1947 libavformat/matroskaenc.c return size; size 1950 libavformat/matroskaenc.c static int mkv_strip_wavpack(const uint8_t *src, uint8_t **pdst, int *size) size 1953 libavformat/matroskaenc.c int srclen = *size; size 1995 libavformat/matroskaenc.c *size = offset; size 2010 libavformat/matroskaenc.c int err = 0, offset = 0, size = pkt->size, side_data_size = 0; size 2025 libavformat/matroskaenc.c pkt->size, pkt->pts, pkt->dts, pkt->duration, avio_tell(pb), size 2030 libavformat/matroskaenc.c err = ff_avc_parse_nal_units_buf(pkt->data, &data, &size); size 2034 libavformat/matroskaenc.c err = ff_hevc_annexb2mp4_buf(pkt->data, &data, &size, 0, NULL); size 2036 libavformat/matroskaenc.c err = ff_av1_filter_obus_buf(pkt->data, &data, &size, &offset); size 2038 libavformat/matroskaenc.c err = mkv_strip_wavpack(pkt->data, &data, &size); size 2048 libavformat/matroskaenc.c if (par->codec_id == AV_CODEC_ID_PRORES && size >= 8) { size 2051 libavformat/matroskaenc.c size -= 8; size 2083 libavformat/matroskaenc.c put_ebml_length(pb, size + track->track_num_size + 3, 0); size 2087 libavformat/matroskaenc.c avio_write(pb, data + offset, size); size 2120 libavformat/matroskaenc.c int id_size, settings_size, size; size 2135 libavformat/matroskaenc.c size = id_size + 1 + settings_size + 1 + pkt->size; size 2143 libavformat/matroskaenc.c size, pkt->pts, pkt->dts, pkt->duration, avio_tell(pb), size 2147 libavformat/matroskaenc.c mkv_blockgroup_size(size, track->track_num_size)); size 2150 libavformat/matroskaenc.c put_ebml_length(pb, size + track->track_num_size + 3, 0); size 2154 libavformat/matroskaenc.c avio_printf(pb, "%.*s\n%.*s\n%.*s", id_size, id, settings_size, settings, pkt->size, pkt->data); size 2332 libavformat/matroskaenc.c mkv_blockgroup_size(pkt->size, size 2417 libavformat/matroskaenc.c if (mkv->cur_audio_pkt.size > 0) { size 2430 libavformat/matroskaenc.c if (pkt->size > 0) size 2463 libavformat/matroskaenc.c if (mkv->cur_audio_pkt.size > 0) { size 2490 libavformat/matroskaenc.c uint64_t size; size 2505 libavformat/matroskaenc.c size = avio_tell(cues); size 2506 libavformat/matroskaenc.c length_size = ebml_length_size(size); size 2507 libavformat/matroskaenc.c size += 4 + length_size; size 2508 libavformat/matroskaenc.c if (mkv->reserve_cues_space < size) { size 2512 libavformat/matroskaenc.c mkv->reserve_cues_space, size); size 2520 libavformat/matroskaenc.c if (mkv->reserve_cues_space == size + 1) { size 2527 libavformat/matroskaenc.c size++; size 2536 libavformat/matroskaenc.c if (size < mkv->reserve_cues_space) size 2537 libavformat/matroskaenc.c put_ebml_void(pb, mkv->reserve_cues_space - size); size 2743 libavformat/matroskaenc.c if (pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) size 49 libavformat/md5proto.c static int md5_write(URLContext *h, const unsigned char *buf, int size) size 52 libavformat/md5proto.c av_md5_update(c->md5, buf, size); size 53 libavformat/md5proto.c return size; size 121 libavformat/microdvddec.c int size = strlen(line + 11); size 122 libavformat/microdvddec.c ret = ff_alloc_extradata(st->codecpar, size); size 125 libavformat/microdvddec.c memcpy(st->codecpar->extradata, line + 11, size); size 53 libavformat/microdvdenc.c avio_write(avf->pb, pkt->data, pkt->size); size 31 libavformat/mlpdec.c int frames = 0, valid = 0, size = 0; size 37 libavformat/mlpdec.c if (last_buf + size == buf) { size 42 libavformat/mlpdec.c size = (AV_RB16(buf) & 0xfff) * 2; size 43 libavformat/mlpdec.c } else if (buf - last_buf == size) { size 45 libavformat/mlpdec.c size += (AV_RB16(buf) & 0xfff) * 2; size 66 libavformat/mlvdec.c unsigned int size; size 70 libavformat/mlvdec.c size = avio_rl32(pb); size 71 libavformat/mlvdec.c if (size < 52) size 76 libavformat/mlvdec.c avio_skip(pb, size - 24); size 80 libavformat/mlvdec.c static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, unsigned size) size 82 libavformat/mlvdec.c char * value = av_malloc(size + 1); size 84 libavformat/mlvdec.c avio_skip(pb, size); size 88 libavformat/mlvdec.c avio_read(pb, value, size); size 94 libavformat/mlvdec.c value[size] = 0; size 125 libavformat/mlvdec.c unsigned int size; size 127 libavformat/mlvdec.c size = avio_rl32(pb); size 129 libavformat/mlvdec.c if (size < 16) size 131 libavformat/mlvdec.c size -= 16; size 132 libavformat/mlvdec.c if (vst && type == MKTAG('R','A','W','I') && size >= 164) { size 156 libavformat/mlvdec.c size -= 164; size 157 libavformat/mlvdec.c } else if (ast && type == MKTAG('W', 'A', 'V', 'I') && size >= 16) { size 161 libavformat/mlvdec.c size -= 16; size 163 libavformat/mlvdec.c if (size > 0) size 164 libavformat/mlvdec.c read_string(avctx, pb, "info", size); size 166 libavformat/mlvdec.c } else if (type == MKTAG('I','D','N','T') && size >= 36) { size 169 libavformat/mlvdec.c size -= 36; size 170 libavformat/mlvdec.c if (size >= 32) { size 172 libavformat/mlvdec.c size -= 32; size 174 libavformat/mlvdec.c } else if (type == MKTAG('L','E','N','S') && size >= 48) { size 183 libavformat/mlvdec.c size -= 48; size 184 libavformat/mlvdec.c if (size >= 32) { size 186 libavformat/mlvdec.c size -= 32; size 188 libavformat/mlvdec.c } else if (vst && type == MKTAG('V', 'I', 'D', 'F') && size >= 4) { size 192 libavformat/mlvdec.c size -= 4; size 193 libavformat/mlvdec.c } else if (ast && type == MKTAG('A', 'U', 'D', 'F') && size >= 4) { size 197 libavformat/mlvdec.c size -= 4; size 198 libavformat/mlvdec.c } else if (vst && type == MKTAG('W','B','A','L') && size >= 28) { size 206 libavformat/mlvdec.c size -= 28; size 207 libavformat/mlvdec.c } else if (type == MKTAG('R','T','C','I') && size >= 20) { size 222 libavformat/mlvdec.c size -= 20; size 223 libavformat/mlvdec.c } else if (type == MKTAG('E','X','P','O') && size >= 16) { size 228 libavformat/mlvdec.c size -= 16; size 229 libavformat/mlvdec.c if (size >= 8) { size 231 libavformat/mlvdec.c size -= 8; size 233 libavformat/mlvdec.c } else if (type == MKTAG('S','T','Y','L') && size >= 36) { size 240 libavformat/mlvdec.c size -= 36; size 246 libavformat/mlvdec.c av_fourcc2str(type), size); size 248 libavformat/mlvdec.c avio_skip(pb, size); size 258 libavformat/mlvdec.c int size, ret; size 264 libavformat/mlvdec.c size = avio_rl32(pb); size 265 libavformat/mlvdec.c if (size < 52) size 336 libavformat/mlvdec.c avio_skip(pb, size - 52); size 398 libavformat/mlvdec.c unsigned int size, space; size 413 libavformat/mlvdec.c pb = mlv->pb[st->index_entries[index].size]; size 417 libavformat/mlvdec.c size = avio_rl32(pb); size 418 libavformat/mlvdec.c if (size < 16) size 431 libavformat/mlvdec.c if (space > UINT_MAX - 24 || size < (24 + space)) size 433 libavformat/mlvdec.c ret = av_get_packet(pb, pkt, size - (24 + space)); size 170 libavformat/mm.c pkt->size = length + MM_PREAMBLE_SIZE; size 145 libavformat/mmf.c int64_t pos, size; size 155 libavformat/mmf.c size = pos - mmf->awapos; size 163 libavformat/mmf.c gatetime = size * 500 / s->streams[0]->codecpar->sample_rate; size 198 libavformat/mmf.c int64_t size; size 207 libavformat/mmf.c for (;; avio_skip(pb, size)) { size 209 libavformat/mmf.c size = avio_rb32(pb); size 240 libavformat/mmf.c for (;; avio_skip(pb, size)) { size 242 libavformat/mmf.c size = avio_rb32(pb); size 255 libavformat/mmf.c mmf->data_end = avio_tell(pb) + size; size 280 libavformat/mmf.c int64_t left, size; size 284 libavformat/mmf.c size = FFMIN(left, MAX_SIZE); size 285 libavformat/mmf.c if (avio_feof(s->pb) || size <= 0) size 288 libavformat/mmf.c ret = av_get_packet(s->pb, pkt, size); size 29 libavformat/mms.c int ff_mms_read_header(MMSContext *mms, uint8_t *buf, const int size) size 34 libavformat/mms.c size_to_copy = FFMIN(size, remaining_size); size 44 libavformat/mms.c int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size) size 47 libavformat/mms.c read_size = FFMIN(size, mms->remaining_in_len); size 61 libavformat/mms.h int ff_mms_read_data(MMSContext *mms, uint8_t *buf, const int size); size 62 libavformat/mms.h int ff_mms_read_header(MMSContext * mms, uint8_t * buf, const int size); size 357 libavformat/mmsh.c static int mmsh_read(URLContext *h, uint8_t *buf, int size) size 365 libavformat/mmsh.c res = ff_mms_read_header(mms, buf, size); size 369 libavformat/mmsh.c res = ff_mms_read_data(mms, buf, size); size 158 libavformat/mmst.c int size = mms->write_out_ptr - mms->out_buffer; size 161 libavformat/mmst.c sizeof(mms->out_buffer) - size, 1, NULL, NULL, NULL, NULL); size 591 libavformat/mmst.c static int mms_read(URLContext *h, uint8_t *buf, int size) size 601 libavformat/mmst.c result = ff_mms_read_header(mms, buf, size); size 605 libavformat/mmst.c result = ff_mms_read_data(mms, buf, size); size 617 libavformat/mmst.c result = ff_mms_read_data(mms, buf, size); size 212 libavformat/mov.c if (pkt.size >= 8 && id != AV_CODEC_ID_BMP) { size 336 libavformat/mov.c return mov_metadata_hmmt(c, pb, atom.size); size 340 libavformat/mov.c return mov_metadata_loci(c, pb, atom.size); size 404 libavformat/mov.c if (c->itunes_metadata && atom.size > 8) { size 407 libavformat/mov.c if (tag == MKTAG('d','a','t','a') && data_size <= atom.size) { size 411 libavformat/mov.c atom.size -= 16; size 419 libavformat/mov.c atom.size -= str_size; size 420 libavformat/mov.c if (atom.size > 8) size 434 libavformat/mov.c } else if (atom.size > 4 && key && !c->itunes_metadata && !raw) { size 436 libavformat/mov.c if (str_size > atom.size) { size 444 libavformat/mov.c atom.size -= 4; size 446 libavformat/mov.c str_size = atom.size; size 455 libavformat/mov.c if (atom.size < 0 || str_size >= INT_MAX/2) size 547 libavformat/mov.c if ((atom.size -= 5) < 0) size 557 libavformat/mov.c if (atom.size < 9) size 563 libavformat/mov.c if ((atom.size -= 9+str_len) < 0) size 590 libavformat/mov.c entries > (atom.size - 1) / MIN_DATA_ENTRY_BOX_SIZE + 1 || size 603 libavformat/mov.c uint32_t size = avio_rb32(pb); size 604 libavformat/mov.c int64_t next = avio_tell(pb) + size - 4; size 606 libavformat/mov.c if (size < 12) size 612 libavformat/mov.c if (dref->type == MKTAG('a','l','i','s') && size > 150) { size 704 libavformat/mov.c dref->type, size); size 754 libavformat/mov.c title_size = atom.size - 24; size 930 libavformat/mov.c if (atom.size < 16) size 936 libavformat/mov.c ff_mov_read_chan(c->fc, pb, st, atom.size - 4); size 950 libavformat/mov.c if ((ret = ff_get_wav_header(c->fc, pb, st->codecpar, atom.size, 0)) < 0) size 982 libavformat/mov.c if (atom.size == 0) /* wrong one (MP4) */ size 1090 libavformat/mov.c static int aax_filter(uint8_t *input, int size, MOVContext *c) size 1096 libavformat/mov.c blocks = size >> 4; // trailing bytes are not encrypted! size 1121 libavformat/mov.c comp_brand_size = atom.size - 8; size 1147 libavformat/mov.c avio_skip(pb, atom.size); size 1573 libavformat/mov.c icc_profile = av_stream_new_side_data(st, AV_PKT_DATA_ICC_PROFILE, atom.size - 4); size 1576 libavformat/mov.c ret = ffio_read_size(pb, icc_profile, atom.size - 4); size 1622 libavformat/mov.c if (atom.size < 2) size 1650 libavformat/mov.c uint64_t size = (uint64_t)par->extradata_size + atom.size + 8 + AV_INPUT_BUFFER_PADDING_SIZE; size 1651 libavformat/mov.c if (size > INT_MAX || (uint64_t)atom.size > INT_MAX) size 1653 libavformat/mov.c if ((err = av_reallocp(&par->extradata, size)) < 0) { size 1657 libavformat/mov.c par->extradata_size = size - AV_INPUT_BUFFER_PADDING_SIZE; size 1665 libavformat/mov.c int64_t result = atom.size; size 1668 libavformat/mov.c AV_WB32(buf , atom.size + 8); size 1670 libavformat/mov.c err = ffio_read_size(pb, buf + 8, atom.size); size 1672 libavformat/mov.c par->extradata_size -= atom.size; size 1674 libavformat/mov.c } else if (err < atom.size) { size 1676 libavformat/mov.c par->extradata_size -= atom.size - err; size 1758 libavformat/mov.c atom.size > 11) { size 1769 libavformat/mov.c atom.size >= 24) { size 1802 libavformat/mov.c if (atom.size == 16) { size 1807 libavformat/mov.c if (length == atom.size) { size 1829 libavformat/mov.c av_log(c->fc, AV_LOG_WARNING, "aclr not decoded - unexpected size %"PRId64"\n", atom.size); size 1850 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1857 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, atom.size); size 1860 libavformat/mov.c } else if (atom.size > 8) { /* to read frma, esds atoms */ size 1861 libavformat/mov.c if (st->codecpar->codec_id == AV_CODEC_ID_ALAC && atom.size >= 24) { size 1867 libavformat/mov.c atom.size -= 8; size 1869 libavformat/mov.c && buffer >> 32 <= atom.size size 1872 libavformat/mov.c atom.size += 8; size 1883 libavformat/mov.c avio_skip(pb, atom.size - 24); size 1890 libavformat/mov.c avio_skip(pb, atom.size); size 1907 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1910 libavformat/mov.c if (atom.size >= 10) { size 1913 libavformat/mov.c unsigned size = avio_rb32(pb); size 1916 libavformat/mov.c if (type == MKTAG('f','i','e','l') && size == atom.size) size 1923 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, atom.size); size 1947 libavformat/mov.c if (atom.size >= (1<<28) || atom.size < 7) size 1955 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, atom.size - 7); size 1974 libavformat/mov.c if (atom.size <= 40) size 1978 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1982 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, atom.size - 40); size 2242 libavformat/mov.c int64_t size) size 2246 libavformat/mov.c MOVAtom fake_atom = { .size = size }; size 2304 libavformat/mov.c int64_t size) size 2309 libavformat/mov.c if ((int)size != size) size 2312 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, size); size 2315 libavformat/mov.c if (size > 16) { size 2340 libavformat/mov.c if (size > 30) { size 2343 libavformat/mov.c if (format == AV_RB32("name") && (int64_t)size >= (int64_t)len + 18) { size 2345 libavformat/mov.c if (str_size > 0 && size >= (int)str_size + 30) { size 2363 libavformat/mov.c avio_skip(pb, size); size 2449 libavformat/mov.c int64_t size) size 2468 libavformat/mov.c avio_skip(pb, size); size 2493 libavformat/mov.c int64_t size = avio_rb32(pb); /* size */ size 2496 libavformat/mov.c if (size >= 16) { size 2500 libavformat/mov.c } else if (size <= 7) { size 2502 libavformat/mov.c "invalid size %"PRId64" in stsd\n", size); size 2507 libavformat/mov.c size - (avio_tell(pb) - start_pos))) { size 2519 libavformat/mov.c "size=%"PRId64" 4CC=%s codec_type=%d\n", size, size 2533 libavformat/mov.c size - (avio_tell(pb) - start_pos)); size 2536 libavformat/mov.c size - (avio_tell(pb) - start_pos)); size 2541 libavformat/mov.c a.size = size - (avio_tell(pb) - start_pos); size 2542 libavformat/mov.c if (a.size > 8) { size 2545 libavformat/mov.c } else if (a.size > 0) size 2546 libavformat/mov.c avio_skip(pb, a.size); size 2587 libavformat/mov.c if (entries <= 0 || entries > atom.size / 8) { size 2651 libavformat/mov.c if ((uint64_t)entries * 12 + 4 > atom.size) size 2997 libavformat/mov.c entries = atom.size - 4; size 3284 libavformat/mov.c int size, int distance, int flags) size 3314 libavformat/mov.c ie->size= size; size 3699 libavformat/mov.c if (add_index_entry(st, current->pos, edit_list_dts_counter, current->size, size 3943 libavformat/mov.c e->size = sample_size; size 4041 libavformat/mov.c unsigned size, samples; size 4052 libavformat/mov.c size = sc->bytes_per_frame; size 4057 libavformat/mov.c size = (samples / sc->samples_per_frame) * sc->bytes_per_frame; size 4060 libavformat/mov.c size = samples * sc->sample_size; size 4068 libavformat/mov.c if (size > 0x3FFFFFFF) { size 4069 libavformat/mov.c av_log(mov->fc, AV_LOG_ERROR, "Sample size %u is too large\n", size); size 4075 libavformat/mov.c e->size = size; size 4080 libavformat/mov.c size, samples); size 4082 libavformat/mov.c current_offset += size; size 4359 libavformat/mov.c if (atom.size < 8) size 4399 libavformat/mov.c int64_t end = avio_tell(pb) + atom.size; size 4468 libavformat/mov.c "Unhandled or malformed custom metadata of size %"PRId64"\n", atom.size); size 4480 libavformat/mov.c while (atom.size > 8) { size 4485 libavformat/mov.c atom.size -= 4; size 4488 libavformat/mov.c atom.size += 8; size 4655 libavformat/mov.c frag->size = flags & MOV_TFHD_DEFAULT_SIZE ? size 4656 libavformat/mov.c avio_rb32(pb) : trex->size; size 4673 libavformat/mov.c num = atom.size / 4; size 4708 libavformat/mov.c trex->size = avio_rb32(pb); size 4909 libavformat/mov.c unsigned sample_size = frag->size; size 4957 libavformat/mov.c st->index_entries[index_entry_pos].size= sample_size; size 5037 libavformat/mov.c int64_t offset = avio_tell(pb) + atom.size, pts, timestamp; size 5089 libavformat/mov.c uint32_t size = avio_rb32(pb); size 5091 libavformat/mov.c if (size & 0x80000000) { size 5103 libavformat/mov.c offset += size; size 5147 libavformat/mov.c if (atom.size < 8) size 5150 libavformat/mov.c avio_skip(pb, atom.size - 4); size 5154 libavformat/mov.c atom.size -= 8; size 5156 libavformat/mov.c avio_skip(pb, atom.size); size 5183 libavformat/mov.c cmov_len = atom.size - 6 * 4; size 5204 libavformat/mov.c atom.size = moov_len; size 5230 libavformat/mov.c atom.size -= 8; size 5233 libavformat/mov.c if (atom.size != edit_count * elst_entry_size) { size 5236 libavformat/mov.c edit_count, atom.size + 8); size 5239 libavformat/mov.c edit_count = atom.size / elst_entry_size; size 5240 libavformat/mov.c if (edit_count * elst_entry_size != atom.size) { size 5241 libavformat/mov.c av_log(c->fc, AV_LOG_WARNING, "ELST atom of %"PRId64" bytes, bigger than %d entries.", atom.size, edit_count); size 5257 libavformat/mov.c for (i = 0; i < edit_count && atom.size > 0 && !pb->eof_reached; i++) { size 5263 libavformat/mov.c atom.size -= 16; size 5267 libavformat/mov.c atom.size -= 8; size 5270 libavformat/mov.c atom.size -= 4; size 5306 libavformat/mov.c if (atom.size < 4) { size 5315 libavformat/mov.c if (atom.size == 4) size 5318 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, atom.size - 4); size 5334 libavformat/mov.c if (atom.size < 5) { size 5379 libavformat/mov.c if (atom.size < 5) { size 5424 libavformat/mov.c if (atom.size < 24) { size 5460 libavformat/mov.c if (atom.size < 5) { size 5491 libavformat/mov.c if (atom.size < 4) { size 5519 libavformat/mov.c if (atom.size < 5) { size 5553 libavformat/mov.c int size, version, layout; size 5565 libavformat/mov.c if (atom.size < 8) { size 5570 libavformat/mov.c size = avio_rb32(pb); size 5571 libavformat/mov.c if (size <= 12 || size > atom.size) size 5586 libavformat/mov.c avio_skip(pb, size - 12); /* metadata_source */ size 5588 libavformat/mov.c size = avio_rb32(pb); size 5589 libavformat/mov.c if (size > atom.size) size 5598 libavformat/mov.c size = avio_rb32(pb); size 5599 libavformat/mov.c if (size > atom.size) size 5620 libavformat/mov.c size = avio_rb32(pb); size 5621 libavformat/mov.c if (size > atom.size) size 5768 libavformat/mov.c if (atom.size < sizeof(uuid) || atom.size >= FFMIN(INT_MAX, SIZE_MAX)) size 5785 libavformat/mov.c size_t len = atom.size - sizeof(uuid); size 5828 libavformat/mov.c size_t len = atom.size - sizeof(uuid); size 5852 libavformat/mov.c size_t len = atom.size - sizeof(uuid); size 5868 libavformat/mov.c if (atom.size < 8) size 5871 libavformat/mov.c ret = avio_read(pb, content, FFMIN(sizeof(content), atom.size)); size 6154 libavformat/mov.c static int mov_try_read_block(AVIOContext *pb, size_t size, uint8_t **data) size 6159 libavformat/mov.c while (offset < size) { size 6163 libavformat/mov.c unsigned int to_read = FFMIN(size, alloc_size) - offset; size 6473 libavformat/mov.c if (atom.size < 8) size 6512 libavformat/mov.c if (atom.size < 20) size 6563 libavformat/mov.c int last, type, size, ret; size 6570 libavformat/mov.c if ((uint64_t)atom.size > (1<<30) || atom.size < 42) size 6580 libavformat/mov.c flac_parse_block_header(buf, &last, &type, &size); size 6582 libavformat/mov.c if (type != FLAC_METADATA_TYPE_STREAMINFO || size != FLAC_STREAMINFO_SIZE) { size 6587 libavformat/mov.c ret = ff_get_extradata(c->fc, st->codecpar, pb, size); size 6597 libavformat/mov.c static int cenc_decrypt(MOVContext *c, MOVStreamContext *sc, AVEncryptionInfo *sample, uint8_t *input, int size) size 6624 libavformat/mov.c av_aes_ctr_crypt(sc->cenc.aes_ctr, input, input, size); size 6630 libavformat/mov.c if (sample->subsamples[i].bytes_of_clear_data + sample->subsamples[i].bytes_of_protected_data > size) { size 6637 libavformat/mov.c size -= sample->subsamples[i].bytes_of_clear_data; size 6642 libavformat/mov.c size -= sample->subsamples[i].bytes_of_protected_data; size 6645 libavformat/mov.c if (size > 0) { size 6701 libavformat/mov.c return cenc_decrypt(mov, sc, encrypted_sample, pkt->data, pkt->size); size 6703 libavformat/mov.c size_t size; size 6704 libavformat/mov.c uint8_t *side_data = av_encryption_info_add_side_data(encrypted_sample, &size); size 6707 libavformat/mov.c ret = av_packet_add_side_data(pkt, AV_PKT_DATA_ENCRYPTION_INFO, side_data, size); size 6722 libavformat/mov.c size_t size; size 6729 libavformat/mov.c if ((uint64_t)atom.size > (1<<30) || atom.size < 11) size 6739 libavformat/mov.c size = atom.size + 8; size 6741 libavformat/mov.c if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0) size 6747 libavformat/mov.c avio_read(pb, st->codecpar->extradata + 9, size - 9); size 6777 libavformat/mov.c if (atom.size < 10) size 6810 libavformat/mov.c if ((uint64_t)atom.size > (1<<30) || atom.size < 4) size 6826 libavformat/mov.c if (atom.size >= 24) { // 4 + 4 + 4 * 4 size 6967 libavformat/mov.c if (atom.size < 0) size 6968 libavformat/mov.c atom.size = INT64_MAX; size 6969 libavformat/mov.c while (total_size <= atom.size - 8 && !avio_feof(pb)) { size 6971 libavformat/mov.c a.size = atom.size; size 6973 libavformat/mov.c if (atom.size >= 8) { size 6974 libavformat/mov.c a.size = avio_rb32(pb); size 6978 libavformat/mov.c a.size >= 8 && size 7002 libavformat/mov.c if (a.size == 1 && total_size + 8 <= atom.size) { /* 64 bit extended size */ size 7003 libavformat/mov.c a.size = avio_rb64(pb) - 8; size 7008 libavformat/mov.c av_fourcc2str(a.type), av_fourcc2str(atom.type), a.size, total_size, atom.size); size 7009 libavformat/mov.c if (a.size == 0) { size 7010 libavformat/mov.c a.size = atom.size - total_size + 8; size 7012 libavformat/mov.c a.size -= 8; size 7013 libavformat/mov.c if (a.size < 0) size 7015 libavformat/mov.c a.size = FFMIN(a.size, atom.size - total_size); size 7038 libavformat/mov.c avio_skip(pb, a.size); size 7049 libavformat/mov.c start_pos + a.size == avio_size(pb))) { size 7051 libavformat/mov.c c->next_root_atom = start_pos + a.size; size 7055 libavformat/mov.c left = a.size - avio_tell(pb) + start_pos; size 7066 libavformat/mov.c total_size += a.size; size 7069 libavformat/mov.c if (total_size < atom.size && atom.size < 0x7ffff) size 7070 libavformat/mov.c avio_skip(pb, atom.size - total_size); size 7196 libavformat/mov.c if (av_get_packet(sc->pb, &pkt, sample->size) < 0) size 7226 libavformat/mov.c if (len > sample->size-2) size 7460 libavformat/mov.c uint32_t size = avio_rb32(f); size 7507 libavformat/mov.c avio_seek(f, pos + size, SEEK_SET); size 7574 libavformat/mov.c atom.size = avio_size(pb); size 7576 libavformat/mov.c atom.size = INT64_MAX; size 7884 libavformat/mov.c sample->size = FFMIN(sample->size, (mov->next_root_atom - sample->pos)); size 7903 libavformat/mov.c ret = av_get_packet(sc->pb, pkt, sample->size); size 7913 libavformat/mov.c ret = avpriv_dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size, pkt->pos); size 7934 libavformat/mov.c if (st->codecpar->codec_id == AV_CODEC_ID_MP3 && !st->need_parsing && pkt->size > 4) { size 7992 libavformat/mov.c aax_filter(pkt->data, pkt->size, mov); size 548 libavformat/mov_chan.c int64_t size) size 553 libavformat/mov_chan.c if (size < 12) size 564 libavformat/mov_chan.c if (size < 12ULL + num_descr * 20ULL) size 580 libavformat/mov_chan.c size -= 20; size 595 libavformat/mov_chan.c avio_skip(pb, size - 12); size 66 libavformat/mov_chan.h int64_t size); size 204 libavformat/movenc.c tst = track->cluster[i].size / track->cluster[i].entries; size 211 libavformat/movenc.c int sSize = track->entry ? track->cluster[0].size / track->cluster[0].entries : 0; size 220 libavformat/movenc.c avio_wb32(pb, track->cluster[i].size / size 410 libavformat/movenc.c if (avpriv_ac3_parse_header(&hdr, pkt->data, pkt->size) < 0) { size 465 libavformat/movenc.c if (pkt->size != hdr->frame_size) { size 469 libavformat/movenc.c while (cumul_size != pkt->size) { size 472 libavformat/movenc.c ret = avpriv_ac3_parse_header(&hdr, pkt->data + cumul_size, pkt->size - cumul_size); size 483 libavformat/movenc.c init_get_bits8(&gbc, pkt->data + cumul_size + ret, pkt->size - cumul_size - ret); size 505 libavformat/movenc.c ret = pkt->size; size 519 libavformat/movenc.c if ((ret = av_grow_packet(&info->pkt, pkt->size)) < 0) size 521 libavformat/movenc.c memcpy(info->pkt.data + info->pkt.size - pkt->size, pkt->data, pkt->size); size 530 libavformat/movenc.c ret = pkt->size; size 544 libavformat/movenc.c int size, i; size 553 libavformat/movenc.c size = 2 + ((34 * (info->num_ind_sub + 1) + 7) >> 3); size 554 libavformat/movenc.c buf = av_malloc(size); size 559 libavformat/movenc.c init_put_bits(&pbc, buf, size); size 579 libavformat/movenc.c size = put_bits_count(&pbc) >> 3; size 581 libavformat/movenc.c avio_wb32(pb, size + 8); size 583 libavformat/movenc.c avio_write(pb, buf, size); size 587 libavformat/movenc.c return size; size 616 libavformat/movenc.c static void put_descr(AVIOContext *pb, int tag, unsigned int size) size 621 libavformat/movenc.c avio_w8(pb, (size >> (7 * i)) | 0x80); size 622 libavformat/movenc.c avio_w8(pb, size & 0x7F); size 627 libavformat/movenc.c uint64_t size = 0; size 632 libavformat/movenc.c size += track->cluster[i].size; size 633 libavformat/movenc.c return size * 8 * track->timescale / track->track_duration; size 901 libavformat/movenc.c int size; size 903 libavformat/movenc.c size = next - start - 4; size 904 libavformat/movenc.c if (size <= 0) size 906 libavformat/movenc.c unescaped_size = vc1_unescape_buffer(start + 4, size, unescaped); size 3067 libavformat/movenc.c int entry_size, entry_count, size; size 3089 libavformat/movenc.c size = 24 + entry_count * entry_size; size 3092 libavformat/movenc.c avio_wb32(pb, size); size 3094 libavformat/movenc.c avio_wb32(pb, size - 8); size 3143 libavformat/movenc.c return size; size 3214 libavformat/movenc.c int ret, size; size 3227 libavformat/movenc.c if ((size = avio_get_dyn_buf(pb_buf, &buf)) > 0) { size 3228 libavformat/movenc.c avio_wb32(pb, size + 8); size 3230 libavformat/movenc.c avio_write(pb, buf, size); size 3423 libavformat/movenc.c int size = 16 + strlen(data); size 3424 libavformat/movenc.c avio_wb32(pb, size); /* size */ size 3429 libavformat/movenc.c return size; size 3443 libavformat/movenc.c int size = 0; size 3449 libavformat/movenc.c size = update_size(pb, pos); size 3451 libavformat/movenc.c return size; size 3494 libavformat/movenc.c int size = 0, tmpo = t ? atoi(t->value) : 0; size 3496 libavformat/movenc.c size = 26; size 3497 libavformat/movenc.c avio_wb32(pb, size); size 3499 libavformat/movenc.c avio_wb32(pb, size-8); /* size */ size 3505 libavformat/movenc.c return size; size 3566 libavformat/movenc.c int size = 0, track = t ? atoi(t->value) : 0; size 3582 libavformat/movenc.c size = 32; size 3584 libavformat/movenc.c return size; size 3593 libavformat/movenc.c int size = 24 + len; size 3602 libavformat/movenc.c avio_wb32(pb, size); size 3604 libavformat/movenc.c avio_wb32(pb, size - 8); size 3611 libavformat/movenc.c return size; size 3623 libavformat/movenc.c if (!is_cover_image(trk->st) || trk->cover_image.size <= 0) size 3631 libavformat/movenc.c avio_wb32(pb, 16 + trk->cover_image.size); size 3635 libavformat/movenc.c avio_write(pb, trk->cover_image.data, trk->cover_image.size); size 3750 libavformat/movenc.c int size = 0; size 3765 libavformat/movenc.c size = update_size(pb, pos); size 3766 libavformat/movenc.c return size; size 3780 libavformat/movenc.c int size = len + 8; size 3781 libavformat/movenc.c avio_wb32(pb, size); size 3784 libavformat/movenc.c return size; size 3859 libavformat/movenc.c int ret, size; size 3903 libavformat/movenc.c if ((size = avio_get_dyn_buf(pb_buf, &buf)) > 0) { size 3904 libavformat/movenc.c avio_wb32(pb, size + 8); size 3906 libavformat/movenc.c avio_write(pb, buf, size); size 3968 libavformat/movenc.c uint64_t chunkSize = chunk->size; size 3975 libavformat/movenc.c chunkSize + trk->cluster[i].size < (1<<20)){ size 3976 libavformat/movenc.c chunkSize += trk->cluster[i].size; size 3981 libavformat/movenc.c chunkSize = chunk->size; size 4064 libavformat/movenc.c int * fallback, size; size 4067 libavformat/movenc.c &size); size 4068 libavformat/movenc.c if (fallback != NULL && size == sizeof(int)) { size 4207 libavformat/movenc.c int size = track->par->extradata_size; size 4209 libavformat/movenc.c &size)) { size 4212 libavformat/movenc.c size); size 4320 libavformat/movenc.c track->default_size = track->entry ? track->cluster[0].size : 1; size 4352 libavformat/movenc.c if (track->cluster[i].size != track->default_size) size 4386 libavformat/movenc.c avio_wb32(pb, track->cluster[i].size); size 4422 libavformat/movenc.c int size = 8 + 16 + 4 + 1 + 16*n; size 4432 libavformat/movenc.c avio_wb32(pb, size); size 4468 libavformat/movenc.c int size) size 4487 libavformat/movenc.c info->size = size; size 4546 libavformat/movenc.c if (track->cluster[i].pos != track->cluster[i - 1].pos + track->cluster[i - 1].size) { size 4556 libavformat/movenc.c int i, size = 16 + 4 + 1 + 16 * mov->ism_lookahead; size 4563 libavformat/movenc.c avio_wb32(pb, 8 + size); size 4565 libavformat/movenc.c for (i = 0; i < size; i++) size 4638 libavformat/movenc.c if (i > 1 && track->frag_info[i].offset != track->frag_info[i - 1].offset + track->frag_info[i - 1].size) { size 4642 libavformat/movenc.c ref_size = track->frag_info[i].size; size 5045 libavformat/movenc.c for (i = 0; i < pkt->size - 4; i++) { size 5063 libavformat/movenc.c const uint8_t *start, *next, *end = pkt->data + pkt->size; size 5125 libavformat/movenc.c if (pkt->size < 8) size 5129 libavformat/movenc.c if (length < 8 || length > pkt->size) size 5434 libavformat/movenc.c int size = pkt->size, ret = 0, offset = 0; size 5472 libavformat/movenc.c while (len < size && samples_in_chunk < 100) { size 5484 libavformat/movenc.c samples_in_chunk = size / trk->sample_size; size 5514 libavformat/movenc.c trk->vos_len = size; size 5515 libavformat/movenc.c trk->vos_data = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 5520 libavformat/movenc.c memcpy(trk->vos_data, pkt->data, size); size 5521 libavformat/movenc.c memset(trk->vos_data + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 5524 libavformat/movenc.c if (par->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && size 5539 libavformat/movenc.c &size); size 5542 libavformat/movenc.c avio_write(pb, reformatted_data, size); size 5545 libavformat/movenc.c size = ff_mov_cenc_avc_parse_nal_units(&trk->cenc, pb, pkt->data, size); size 5546 libavformat/movenc.c if (size < 0) { size 5547 libavformat/movenc.c ret = size; size 5551 libavformat/movenc.c size = ff_avc_parse_nal_units(pb, pkt->data, pkt->size); size 5559 libavformat/movenc.c &size, 0, NULL); size 5562 libavformat/movenc.c avio_write(pb, reformatted_data, size); size 5564 libavformat/movenc.c size = ff_hevc_annexb2mp4(pb, pkt->data, pkt->size, 0, NULL); size 5569 libavformat/movenc.c &size, &offset); size 5572 libavformat/movenc.c avio_write(pb, reformatted_data, size); size 5574 libavformat/movenc.c size = ff_av1_filter_obus(pb, pkt->data, pkt->size); size 5578 libavformat/movenc.c size = handle_eac3(mov, pkt, trk); size 5579 libavformat/movenc.c if (size < 0) size 5580 libavformat/movenc.c return size; size 5581 libavformat/movenc.c else if (!size) size 5583 libavformat/movenc.c avio_write(pb, pkt->data, size); size 5589 libavformat/movenc.c ret = ff_mov_cenc_avc_write_nal_units(s, &trk->cenc, nal_size_length, pb, pkt->data, size); size 5591 libavformat/movenc.c ret = ff_mov_cenc_write_packet(&trk->cenc, pb, pkt->data, size); size 5598 libavformat/movenc.c avio_write(pb, pkt->data, size); size 5612 libavformat/movenc.c trk->cluster[trk->entry].pos = avio_tell(pb) - size; size 5615 libavformat/movenc.c trk->cluster[trk->entry].size = size; size 5727 libavformat/movenc.c mov->mdat_size += size; size 5732 libavformat/movenc.c : NULL, size); size 5748 libavformat/movenc.c int size = pkt->size; size 5781 libavformat/movenc.c if (!pkt->size) // Flush packet size 5786 libavformat/movenc.c if (!pkt->size) { size 5804 libavformat/movenc.c (mov->max_fragment_size && mov->mdat_size + size >= mov->max_fragment_size) || size 5835 libavformat/movenc.c end.size = sizeof(data); size 5877 libavformat/movenc.c if (!pkt->size) size 5932 libavformat/movenc.c for (i = 0; i < pkt->size; i++) size 5974 libavformat/movenc.c int size; size 6009 libavformat/movenc.c if ((size = avio_close_dyn_buf(pb, &buf)) > 0) { size 6011 libavformat/movenc.c track->par->extradata_size = size; size 6032 libavformat/movenc.c pkt.size = len + 2 + 12; size 6033 libavformat/movenc.c pkt.data = av_malloc(pkt.size); size 6063 libavformat/movenc.c AVPacket pkt = {.stream_index = index, .flags = AV_PKT_FLAG_KEY, .size = 4}; size 6086 libavformat/movenc.c pkt.data = av_malloc(pkt.size); size 6936 libavformat/movenc.c int64_t size; size 6939 libavformat/movenc.c size = mov->reserved_moov_size - (avio_tell(pb) - mov->reserved_header_pos); size 6940 libavformat/movenc.c if (size < 8){ size 6941 libavformat/movenc.c av_log(s, AV_LOG_ERROR, "reserved_moov_size is too small, needed %"PRId64" additional\n", 8-size); size 6944 libavformat/movenc.c avio_wb32(pb, size); size 6946 libavformat/movenc.c ffio_fill(pb, 0, size - 8); size 6983 libavformat/movenc.c if (pkt->size > 2 && (AV_RB16(pkt->data) & 0xfff0) == 0xfff0) size 50 libavformat/movenc.h unsigned int size; size 64 libavformat/movenc.h int size; size 71 libavformat/movenc.h int size; size 81 libavformat/movenc.h int size; size 27 libavformat/movenccenc.c static int auxiliary_info_alloc_size(MOVMuxCencContext* ctx, int size) size 31 libavformat/movenccenc.c if (ctx->auxiliary_info_size + size > ctx->auxiliary_info_alloc_size) { size 32 libavformat/movenccenc.c new_alloc_size = FFMAX(ctx->auxiliary_info_size + size, ctx->auxiliary_info_alloc_size * 2); size 44 libavformat/movenccenc.c const uint8_t *buf_in, int size) size 48 libavformat/movenccenc.c ret = auxiliary_info_alloc_size(ctx, size); size 52 libavformat/movenccenc.c memcpy(ctx->auxiliary_info + ctx->auxiliary_info_size, buf_in, size); size 53 libavformat/movenccenc.c ctx->auxiliary_info_size += size; size 90 libavformat/movenccenc.c const uint8_t *buf_in, int size) size 94 libavformat/movenccenc.c int size_left = size; size 168 libavformat/movenccenc.c const uint8_t *buf_in, int size) size 177 libavformat/movenccenc.c ret = auxiliary_info_add_subsample(ctx, 0, size); size 182 libavformat/movenccenc.c mov_cenc_write_encrypted(ctx, pb, buf_in, size); size 193 libavformat/movenccenc.c const uint8_t *buf_in, int size) size 196 libavformat/movenccenc.c const uint8_t *end = p + size; size 205 libavformat/movenccenc.c size = 0; size 220 libavformat/movenccenc.c size += 4 + nal_end - nal_start; size 229 libavformat/movenccenc.c return size; size 233 libavformat/movenccenc.c int nal_length_size, AVIOContext *pb, const uint8_t *buf_in, int size) size 244 libavformat/movenccenc.c while (size > 0) { size 246 libavformat/movenccenc.c if (size < nal_length_size + 1) { size 248 libavformat/movenccenc.c size, nal_length_size + 1); size 258 libavformat/movenccenc.c size -= nal_length_size; size 261 libavformat/movenccenc.c if (nalsize <= 0 || nalsize > size) { size 262 libavformat/movenccenc.c av_log(s, AV_LOG_ERROR, "CENC-AVC: nal size %d remaining %d\n", nalsize, size); size 268 libavformat/movenccenc.c size -= nalsize; size 63 libavformat/movenccenc.h int ff_mov_cenc_write_packet(MOVMuxCencContext* ctx, AVIOContext *pb, const uint8_t *buf_in, int size); size 68 libavformat/movenccenc.h int ff_mov_cenc_avc_parse_nal_units(MOVMuxCencContext* ctx, AVIOContext *pb, const uint8_t *buf_in, int size); size 74 libavformat/movenccenc.h AVIOContext *pb, const uint8_t *buf_in, int size); size 91 libavformat/movenchint.c queue->size = 0; size 99 libavformat/movenchint.c static void sample_queue_push(HintSampleQueue *queue, uint8_t *data, int size, size 104 libavformat/movenchint.c if (size <= 14) size 106 libavformat/movenchint.c if (!queue->samples || queue->len >= queue->size) { size 108 libavformat/movenchint.c samples = av_realloc_array(queue->samples, queue->size + 10, sizeof(HintSample)); size 111 libavformat/movenchint.c queue->size += 10; size 115 libavformat/movenchint.c queue->samples[queue->len].size = size; size 131 libavformat/movenchint.c uint8_t *ptr = av_malloc(sample->size); size 139 libavformat/movenchint.c memcpy(ptr, sample->data, sample->size); size 224 libavformat/movenchint.c if (sample->offset == 0 && sample->size > 5) size 228 libavformat/movenchint.c sample->size, pos, match_offset, match_len) == 0) { size 233 libavformat/movenchint.c if (sample->offset + 10 >= sample->size) size 238 libavformat/movenchint.c if (sample->offset < 10 && sample->size > 20) { size 241 libavformat/movenchint.c sample->offset = sample->size/2; size 250 libavformat/movenchint.c static void output_immediate(const uint8_t *data, int size, size 253 libavformat/movenchint.c while (size > 0) { size 254 libavformat/movenchint.c int len = size; size 261 libavformat/movenchint.c size -= len; size 283 libavformat/movenchint.c static void describe_payload(const uint8_t *data, int size, size 288 libavformat/movenchint.c while (size > 0) { size 290 libavformat/movenchint.c if (find_sample_match(data, size, queue, &pos, &match_sample, size 295 libavformat/movenchint.c size -= pos; size 298 libavformat/movenchint.c size -= match_len; size 300 libavformat/movenchint.c output_immediate(data, size, out, entries); size 316 libavformat/movenchint.c int size, MOVTrack *trk, int64_t *dts) size 327 libavformat/movenchint.c while (size > 4) { size 334 libavformat/movenchint.c size -= 4; size 335 libavformat/movenchint.c if (packet_len > size || packet_len <= 12) size 340 libavformat/movenchint.c size -= packet_len; size 379 libavformat/movenchint.c size -= 12; size 386 libavformat/movenchint.c size -= packet_len; size 409 libavformat/movenchint.c int size; size 422 libavformat/movenchint.c sample_queue_push(&trk->sample_queue, pkt->data, pkt->size, sample); size 429 libavformat/movenchint.c size = avio_close_dyn_buf(rtp_ctx->pb, &buf); size 434 libavformat/movenchint.c if (size <= 0) size 441 libavformat/movenchint.c count = write_hint_packets(hintbuf, buf, size, trk, &hint_pkt.dts); size 445 libavformat/movenchint.c hint_pkt.size = size = avio_close_dyn_buf(hintbuf, &buf); size 446 libavformat/mp3dec.c int ret, size; size 449 libavformat/mp3dec.c size = MP3_PACKET_SIZE; size 452 libavformat/mp3dec.c size= FFMIN(size, mp3->filesize - pos); size 454 libavformat/mp3dec.c ret = av_get_packet(s->pb, pkt, size); size 555 libavformat/mp3dec.c int64_t size = avio_size(s->pb); size 556 libavformat/mp3dec.c if (size > 0 && size > s->internal->data_offset) size 557 libavformat/mp3dec.c filesize = size - s->internal->data_offset; size 118 libavformat/mp3enc.c int32_t size; size 229 libavformat/mp3enc.c mp3->size = mpah.frame_size; size 295 libavformat/mp3enc.c mp3->size += pkt->size; size 298 libavformat/mp3enc.c mp3->bag[mp3->pos] = mp3->size; size 319 libavformat/mp3enc.c if (pkt->data && pkt->size >= 4) { size 334 libavformat/mp3enc.c "is invalid, writing it anyway.\n", pkt->size, h); size 341 libavformat/mp3enc.c if (base + 4 <= pkt->size) { size 351 libavformat/mp3enc.c if (base + 4 <= pkt->size && MKBETAG('V','B','R','I') == AV_RB32(pkt->data + base)) size 360 libavformat/mp3enc.c mp3->audio_size += pkt->size; size 362 libavformat/mp3enc.c mp3->audio_crc, pkt->data, pkt->size); size 412 libavformat/mp3enc.c AV_WB32(mp3->xing_frame + mp3->xing_offset + 12, mp3->size); size 418 libavformat/mp3enc.c int seek_point = 256LL * mp3->bag[j] / mp3->size; size 36 libavformat/mpc.c int size, skip; size 125 libavformat/mpc.c int ret, size, size2, curbits, cur = c->curframe; size 149 libavformat/mpc.c size = ((size2 + curbits + 31) & ~31) >> 3; size 152 libavformat/mpc.c c->frames[cur].size = size; size 154 libavformat/mpc.c av_add_index_entry(s->streams[0], cur, cur, size, 0, AVINDEX_KEYFRAME); size 159 libavformat/mpc.c if ((ret = av_new_packet(pkt, size + 4)) < 0) size 169 libavformat/mpc.c ret = avio_read(s->pb, pkt->data + 4, size); size 172 libavformat/mpc.c if(ret < size){ size 175 libavformat/mpc.c pkt->size = ret + 4; size 80 libavformat/mpc8.c int64_t size; size 91 libavformat/mpc8.c size = bs_get_v(&bs); size 92 libavformat/mpc8.c if (size < 2) size 94 libavformat/mpc8.c if (size >= bs_end - bs + 2) size 97 libavformat/mpc8.c if (size < 11 || size > 28) size 103 libavformat/mpc8.c bs += size - 2; size 124 libavformat/mpc8.c static void mpc8_get_chunk_header(AVIOContext *pb, int *tag, int64_t *size) size 129 libavformat/mpc8.c *size = ffio_read_varlen(pb); size 130 libavformat/mpc8.c *size -= avio_tell(pb) - pos; size 137 libavformat/mpc8.c int64_t size, pos, ppos[2]; size 148 libavformat/mpc8.c mpc8_get_chunk_header(s->pb, &tag, &size); size 153 libavformat/mpc8.c if (size > INT_MAX/10 || size<=0) { size 157 libavformat/mpc8.c if(!(buf = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE))) size 159 libavformat/mpc8.c ret = avio_read(s->pb, buf, size); size 160 libavformat/mpc8.c if (ret != size) { size 165 libavformat/mpc8.c memset(buf+size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 167 libavformat/mpc8.c init_get_bits(&gb, buf, size * 8); size 168 libavformat/mpc8.c size = gb_get_v(&gb); size 169 libavformat/mpc8.c if(size > UINT_MAX/4 || size > c->samples/1152){ size 180 libavformat/mpc8.c for(; i < size; i++){ size 193 libavformat/mpc8.c static void mpc8_handle_chunk(AVFormatContext *s, int tag, int64_t chunk_pos, int64_t size) size 200 libavformat/mpc8.c pos = avio_tell(pb) + size; size 206 libavformat/mpc8.c avio_skip(pb, size); size 216 libavformat/mpc8.c int64_t size, pos; size 226 libavformat/mpc8.c mpc8_get_chunk_header(pb, &tag, &size); size 227 libavformat/mpc8.c if (size < 0) { size 233 libavformat/mpc8.c mpc8_handle_chunk(s, tag, pos, size); size 264 libavformat/mpc8.c size -= avio_tell(pb) - pos; size 265 libavformat/mpc8.c if (size > 0) size 266 libavformat/mpc8.c avio_skip(pb, size); size 281 libavformat/mpc8.c int64_t pos, size; size 290 libavformat/mpc8.c mpc8_get_chunk_header(s->pb, &tag, &size); size 291 libavformat/mpc8.c if (size < 0) size 294 libavformat/mpc8.c if ((ret = av_get_packet(s->pb, pkt, size)) < 0) size 302 libavformat/mpc8.c mpc8_handle_chunk(s, tag, pos, size); size 230 libavformat/mpeg.c int len, size, startcode, c, flags, header_len; size 240 libavformat/mpeg.c size = MAX_SYNC_SIZE; size 241 libavformat/mpeg.c startcode = find_next_start_code(s->pb, &size, &m->header_state); size 646 libavformat/mpeg.c pkt->size); size 966 libavformat/mpeg.c if (pkt->size) // raise packet even if incomplete size 987 libavformat/mpeg.c n = avio_read(pb, pkt->data + (pkt->size - to_read), to_read); size 989 libavformat/mpeg.c pkt->size -= to_read - n; size 41 libavformat/mpegenc.c int size; size 129 libavformat/mpegenc.c int size, i, private_stream_coded, id; size 267 libavformat/mpegenc.c size = put_bits_ptr(&pb) - pb.buf; size 269 libavformat/mpegenc.c AV_WB16(buf + 4, size - 6); size 271 libavformat/mpegenc.c return size; size 621 libavformat/mpegenc.c if (pkt_desc->size == pkt_desc->unwritten_size) size 637 libavformat/mpegenc.c int size, payload_size, startcode, id, stuffing_size, i, header_len; size 655 libavformat/mpegenc.c size = put_pack_header(ctx, buf_ptr, scr); size 656 libavformat/mpegenc.c buf_ptr += size; size 665 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, id); size 666 libavformat/mpegenc.c buf_ptr += size; size 670 libavformat/mpegenc.c int PES_bytes_to_fill = s->packet_size - size - 10; size 680 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, 0); size 681 libavformat/mpegenc.c buf_ptr += size; size 682 libavformat/mpegenc.c size = buf_ptr - buffer; size 683 libavformat/mpegenc.c avio_write(ctx->pb, buffer, size); size 704 libavformat/mpegenc.c size = put_pack_header(ctx, buf_ptr, scr); size 706 libavformat/mpegenc.c buf_ptr += size; size 715 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, 0); size 716 libavformat/mpegenc.c buf_ptr += size; size 720 libavformat/mpegenc.c size = buf_ptr - buffer; size 721 libavformat/mpegenc.c avio_write(ctx->pb, buffer, size); size 723 libavformat/mpegenc.c packet_size = s->packet_size - size; size 980 libavformat/mpegenc.c if (stream->buffer_index < pkt_desc->size || size 984 libavformat/mpegenc.c i, stream->buffer_index, pkt_desc->size); size 987 libavformat/mpegenc.c stream->buffer_index -= pkt_desc->size; size 1034 libavformat/mpegenc.c && stream->predecode_packet->size > stream->buffer_index) size 1089 libavformat/mpegenc.c if (timestamp_packet->unwritten_size == timestamp_packet->size) { size 1145 libavformat/mpegenc.c int size = pkt->size; size 1190 libavformat/mpegenc.c if (size < 3) { size 1191 libavformat/mpegenc.c av_log(ctx, AV_LOG_ERROR, "Invalid packet size %d\n", size); size 1198 libavformat/mpegenc.c size -= 3; size 1202 libavformat/mpegenc.c pkt_desc->size = size; size 1207 libavformat/mpegenc.c if (av_fifo_realloc2(stream->fifo, av_fifo_size(stream->fifo) + size) < 0) size 1221 libavformat/mpegenc.c av_fifo_generic_write(stream->fifo, buf, size, NULL); size 572 libavformat/mpegts.c static int analyze(const uint8_t *buf, int size, int packet_size, size 582 libavformat/mpegts.c for (i = 0; i < size - 3; i++) { size 983 libavformat/mpegts.c pkt->size = len; size 994 libavformat/mpegts.c pkt->size = pes->data_index; size 1002 libavformat/mpegts.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 1104 libavformat/mpegts.c static AVBufferRef *buffer_pool_get(MpegTSContext *ts, int size) size 1106 libavformat/mpegts.c int index = av_log2(size + AV_INPUT_BUFFER_PADDING_SIZE); size 1436 libavformat/mpegts.c const uint8_t *buf, unsigned size, size 1440 libavformat/mpegts.c if (size > (1 << 30)) size 1443 libavformat/mpegts.c if ((ret = ffio_init_context(&d->pb, (unsigned char *)buf, size, 0, size 1634 libavformat/mpegts.c static int mp4_read_iods(AVFormatContext *s, const uint8_t *buf, unsigned size, size 1640 libavformat/mpegts.c ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count); size 1644 libavformat/mpegts.c ret = parse_mp4_descr(&d, avio_tell(&d.pb), size, MP4IODescrTag); size 1650 libavformat/mpegts.c static int mp4_read_od(AVFormatContext *s, const uint8_t *buf, unsigned size, size 1656 libavformat/mpegts.c ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count); size 1660 libavformat/mpegts.c ret = parse_mp4_descr_arr(&d, avio_tell(&d.pb), size); size 2970 libavformat/mpegts.c const int size = p->buf_size; size 2974 libavformat/mpegts.c int check_count = size / TS_FEC_PACKET_SIZE; size 3203 libavformat/mpegts.c pkt->size = -1; size 3223 libavformat/mpegts.c if (!ret && pkt->size < 0) size 1241 libavformat/mpegtsenc.c static void extend_af(uint8_t *pkt, int size) size 1245 libavformat/mpegtsenc.c pkt[4] += size; size 1556 libavformat/mpegtsenc.c if (pkt->size < 5 || AV_RB32(pkt->data) != 0x0000001 && AV_RB24(pkt->data) != 0x000001) { size 1563 libavformat/mpegtsenc.c av_log(s, AV_LOG_WARNING, "H.264 bitstream error, startcode missing, size %d", pkt->size); size 1564 libavformat/mpegtsenc.c if (pkt->size) size 1573 libavformat/mpegtsenc.c if (pkt->size < 5 || AV_RB32(pkt->data) != 0x0000001 && AV_RB24(pkt->data) != 0x000001) { size 1578 libavformat/mpegtsenc.c av_log(s, AV_LOG_WARNING, "HEVC bitstream error, startcode missing, size %d", pkt->size); size 1579 libavformat/mpegtsenc.c if (pkt->size) size 1605 libavformat/mpegtsenc.c if (pkt->size < 1) size 1622 libavformat/mpegtsenc.c if (pkt->size < 2) size 1641 libavformat/mpegtsenc.c int size = pkt->size; size 1674 libavformat/mpegtsenc.c const uint8_t *p = buf, *buf_end = p + size; size 1695 libavformat/mpegtsenc.c data = av_malloc(pkt->size + 6 + extradd); size 1699 libavformat/mpegtsenc.c memcpy(data + 6 + extradd, pkt->data, pkt->size); size 1704 libavformat/mpegtsenc.c size = pkt->size + 6 + extradd; size 1707 libavformat/mpegtsenc.c if (pkt->size < 2) { size 1721 libavformat/mpegtsenc.c pkt2.size = pkt->size; size 1734 libavformat/mpegtsenc.c size = avio_close_dyn_buf(ts_st->amux->pb, &data); size 1740 libavformat/mpegtsenc.c const uint8_t *p = buf, *buf_end = p + size; size 1761 libavformat/mpegtsenc.c data = av_malloc(pkt->size + 7 + extradd); size 1765 libavformat/mpegtsenc.c memcpy(data + 7 + extradd, pkt->data, pkt->size); size 1771 libavformat/mpegtsenc.c size = pkt->size + 7 + extradd; size 1774 libavformat/mpegtsenc.c if (pkt->size < 2) { size 1797 libavformat/mpegtsenc.c ctrl_header_size = pkt->size + 2 + pkt->size / 255 + 1; size 1814 libavformat/mpegtsenc.c n = pkt->size; size 1822 libavformat/mpegtsenc.c av_assert0(2 + pkt->size / 255 + 1 == i); size 1836 libavformat/mpegtsenc.c memcpy(data + i, pkt->data, pkt->size); size 1838 libavformat/mpegtsenc.c size = ctrl_header_size; size 1846 libavformat/mpegtsenc.c if (ts_st->payload_size && (ts_st->payload_size + size > ts->pes_payload_size || size 1857 libavformat/mpegtsenc.c if (st->codecpar->codec_type != AVMEDIA_TYPE_AUDIO || size > ts->pes_payload_size) { size 1860 libavformat/mpegtsenc.c mpegts_write_pes(s, st, buf, size, pts, dts, size 1873 libavformat/mpegtsenc.c memcpy(ts_st->payload + ts_st->payload_size, buf, size); size 1874 libavformat/mpegtsenc.c ts_st->payload_size += size; size 1956 libavformat/mpegtsenc.c if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x0000001 && size 1962 libavformat/mpegtsenc.c if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x0000001 && size 45 libavformat/mpjpeg.c pkt->size); size 46 libavformat/mpjpeg.c avio_write(s->pb, pkt->data, pkt->size); size 102 libavformat/mpjpegdec.c int* size, size 118 libavformat/mpjpegdec.c int size = 0; size 125 libavformat/mpjpegdec.c ret = (parse_multipart_header(&pb, &size, "--", NULL) >= 0) ? AVPROBE_SCORE_MAX : 0; size 172 libavformat/mpjpegdec.c int* size, size 180 libavformat/mpjpegdec.c *size = -1; size 236 libavformat/mpjpegdec.c *size = parse_content_length(value); size 237 libavformat/mpjpegdec.c if ( *size < 0 ) size 295 libavformat/mpjpegdec.c int size; size 320 libavformat/mpjpegdec.c ret = parse_multipart_header(s->pb, &size, mpjpeg->boundary, s); size 326 libavformat/mpjpegdec.c if (size > 0) { size 328 libavformat/mpjpegdec.c ret = av_get_packet(s->pb, pkt, size); size 343 libavformat/mpjpegdec.c start = pkt->data + pkt->size - len; size 348 libavformat/mpjpegdec.c pkt->size -= len; size 349 libavformat/mpjpegdec.c return pkt->size; size 359 libavformat/mpjpegdec.c ret = pkt->size > 0 ? pkt->size : AVERROR_EOF; size 45 libavformat/msf.c unsigned codec, size; size 60 libavformat/msf.c size = avio_rb32(s->pb); size 89 libavformat/msf.c st->duration = av_get_audio_frame_duration2(st->codecpar, size); size 107 libavformat/msnwc_tcp.c uint32_t size, timestamp; size 114 libavformat/msnwc_tcp.c size = avio_rl32(pb); size 119 libavformat/msnwc_tcp.c if (!size) size 122 libavformat/msnwc_tcp.c if ((ret = av_get_packet(pb, pkt, size)) < 0) size 136 libavformat/msnwc_tcp.c return HEADER_SIZE + size; size 565 libavformat/mux.c av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts), delay, pkt->size, pkt->stream_index); size 637 libavformat/mux.c av_get_audio_frame_duration(st->codec, pkt->size); size 642 libavformat/mux.c if (frame_size >= 0 && (pkt->size || st->internal->priv_pts->num != st->internal->priv_pts->den >> 1 || st->internal->priv_pts->val)) { size 728 libavformat/mux.c av_assert0(pkt->size == sizeof(*frame)); size 842 libavformat/mux.c st->interleaver_chunk_size += pkt->size; size 1119 libavformat/mux.c pkt->size, av_ts2str(pkt->dts), av_ts2str(pkt->pts)); size 1215 libavformat/mux.c pkt->size = in->size; size 1364 libavformat/mux.c pkt.size = sizeof(frame); size 57 libavformat/mvdec.c static char *var_read_string(AVIOContext *pb, int size) size 62 libavformat/mvdec.c if (size < 0 || size == INT_MAX) size 65 libavformat/mvdec.c str = av_malloc(size + 1); size 68 libavformat/mvdec.c n = avio_get_str(pb, size, str, size + 1); size 69 libavformat/mvdec.c if (n < size) size 70 libavformat/mvdec.c avio_skip(pb, size - n); size 74 libavformat/mvdec.c static int var_read_int(AVIOContext *pb, int size) size 77 libavformat/mvdec.c char *s = var_read_string(pb, size); size 85 libavformat/mvdec.c static AVRational var_read_float(AVIOContext *pb, int size) size 88 libavformat/mvdec.c char *s = var_read_string(pb, size); size 96 libavformat/mvdec.c static void var_read_metadata(AVFormatContext *avctx, const char *tag, int size) size 98 libavformat/mvdec.c char *value = var_read_string(avctx->pb, size); size 120 libavformat/mvdec.c const char *name, int size) size 125 libavformat/mvdec.c mv->nb_video_tracks = var_read_int(pb, size); size 127 libavformat/mvdec.c mv->nb_audio_tracks = var_read_int(pb, size); size 129 libavformat/mvdec.c var_read_metadata(avctx, name, size); size 132 libavformat/mvdec.c avio_skip(pb, size); // ignore size 144 libavformat/mvdec.c const char *name, int size) size 149 libavformat/mvdec.c st->nb_frames = var_read_int(pb, size); size 151 libavformat/mvdec.c mv->aformat = var_read_int(pb, size); size 153 libavformat/mvdec.c mv->acompression = var_read_int(pb, size); size 155 libavformat/mvdec.c var_read_metadata(avctx, name, size); size 157 libavformat/mvdec.c return set_channels(avctx, st, var_read_int(pb, size)); size 159 libavformat/mvdec.c st->codecpar->sample_rate = var_read_int(pb, size); size 162 libavformat/mvdec.c st->codecpar->bits_per_coded_sample = var_read_int(pb, size) * 8; size 174 libavformat/mvdec.c const char *name, int size) size 178 libavformat/mvdec.c st->nb_frames = st->duration = var_read_int(pb, size); size 180 libavformat/mvdec.c char *str = var_read_string(pb, size); size 199 libavformat/mvdec.c AVRational fps = var_read_float(pb, size); size 203 libavformat/mvdec.c st->codecpar->height = var_read_int(pb, size); size 205 libavformat/mvdec.c st->sample_aspect_ratio = var_read_float(pb, size); size 210 libavformat/mvdec.c st->codecpar->width = var_read_int(pb, size); size 212 libavformat/mvdec.c if (var_read_int(pb, size) == 1101) { size 219 libavformat/mvdec.c var_read_metadata(avctx, name, size); size 221 libavformat/mvdec.c avio_skip(pb, size); // ignore size 230 libavformat/mvdec.c const char *name, int size)) size 241 libavformat/mvdec.c int size; size 248 libavformat/mvdec.c size = avio_rb32(pb); size 249 libavformat/mvdec.c if (size < 0) { size 250 libavformat/mvdec.c av_log(avctx, AV_LOG_ERROR, "entry size %d is invalid\n", size); size 253 libavformat/mvdec.c if (parse(avctx, st, name, size) < 0) { size 255 libavformat/mvdec.c avio_skip(pb, size); size 267 libavformat/mvdec.c uint32_t size = avio_rb32(pb); size 269 libavformat/mvdec.c av_add_index_entry(st, pos, timestamp, size, 0, AVINDEX_KEYFRAME); size 271 libavformat/mvdec.c timestamp += size / (st->codecpar->channels * 2LL); size 446 libavformat/mvdec.c ret = av_get_packet(pb, pkt, index->size); size 296 libavformat/mxfdec.c typedef int MXFMetadataReadFunc(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset); size 372 libavformat/mxfdec.c uint64_t size = avio_r8(pb); size 373 libavformat/mxfdec.c if (size & 0x80) { /* long form */ size 374 libavformat/mxfdec.c int bytes_num = size & 0x7f; size 378 libavformat/mxfdec.c size = 0; size 380 libavformat/mxfdec.c size = size << 8 | avio_r8(pb); size 382 libavformat/mxfdec.c if (size > INT64_MAX) size 384 libavformat/mxfdec.c return size; size 387 libavformat/mxfdec.c static int mxf_read_sync(AVIOContext *pb, const uint8_t *key, unsigned size) size 390 libavformat/mxfdec.c for (i = 0; i < size && !avio_feof(pb); i++) { size 397 libavformat/mxfdec.c return i == size; size 566 libavformat/mxfdec.c int64_t size; size 581 libavformat/mxfdec.c size = klv_decode_ber_length(pb); size 582 libavformat/mxfdec.c if (size < 0) size 583 libavformat/mxfdec.c return size; size 584 libavformat/mxfdec.c avio_skip(pb, size); size 604 libavformat/mxfdec.c size = klv_decode_ber_length(pb); size 605 libavformat/mxfdec.c if (size < 32 || size - 32 < orig_size) size 613 libavformat/mxfdec.c size -= 32; size 614 libavformat/mxfdec.c size = av_get_packet(pb, pkt, size); size 615 libavformat/mxfdec.c if (size < 0) size 616 libavformat/mxfdec.c return size; size 617 libavformat/mxfdec.c else if (size < plaintext_size) size 619 libavformat/mxfdec.c size -= plaintext_size; size 622 libavformat/mxfdec.c &pkt->data[plaintext_size], size >> 4, ivec, 1); size 629 libavformat/mxfdec.c static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 655 libavformat/mxfdec.c static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 686 libavformat/mxfdec.c partition->pack_length = avio_tell(pb) - klv_offset + size; size 838 libavformat/mxfdec.c static int mxf_read_cryptographic_context(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 841 libavformat/mxfdec.c if (size != 16) size 861 libavformat/mxfdec.c static inline int mxf_read_utf16_string(AVIOContext *pb, int size, char** str, int be) size 866 libavformat/mxfdec.c if (size < 0 || size > INT_MAX/2) size 869 libavformat/mxfdec.c buf_size = size + size / 2 + 1; size 876 libavformat/mxfdec.c ret = avio_get_str16be(pb, size, *str, buf_size); size 878 libavformat/mxfdec.c ret = avio_get_str16le(pb, size, *str, buf_size); size 889 libavformat/mxfdec.c static int mxf_read_utf16 ## type ##_string(AVIOContext *pb, int size, char** str) \ size 891 libavformat/mxfdec.c return mxf_read_utf16_string(pb, size, str, big_endian); \ size 897 libavformat/mxfdec.c static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 913 libavformat/mxfdec.c static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 935 libavformat/mxfdec.c static int mxf_read_timecode_component(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 952 libavformat/mxfdec.c static int mxf_read_pulldown_component(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 963 libavformat/mxfdec.c static int mxf_read_track(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 974 libavformat/mxfdec.c mxf_read_utf16be_string(pb, size, &track->name); size 987 libavformat/mxfdec.c static int mxf_read_sequence(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1007 libavformat/mxfdec.c static int mxf_read_essence_group(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1021 libavformat/mxfdec.c static int mxf_read_package(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1037 libavformat/mxfdec.c return mxf_read_utf16be_string(pb, size, &package->name); size 1045 libavformat/mxfdec.c static int mxf_read_essence_container_data(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1094 libavformat/mxfdec.c static int mxf_read_index_table_segment(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1151 libavformat/mxfdec.c static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1238 libavformat/mxfdec.c descriptor->extradata = av_malloc(size); size 1241 libavformat/mxfdec.c descriptor->extradata_size = size; size 1242 libavformat/mxfdec.c avio_read(pb, descriptor->extradata, size); size 1255 libavformat/mxfdec.c static int mxf_read_indirect_value(void *arg, AVIOContext *pb, int size) size 1260 libavformat/mxfdec.c if (size <= 17) size 1266 libavformat/mxfdec.c return mxf_read_utf16le_string(pb, size - 17, &tagged_value->value); size 1268 libavformat/mxfdec.c return mxf_read_utf16be_string(pb, size - 17, &tagged_value->value); size 1273 libavformat/mxfdec.c static int mxf_read_tagged_value(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 1278 libavformat/mxfdec.c return mxf_read_utf16be_string(pb, size, &tagged_value->name); size 1280 libavformat/mxfdec.c return mxf_read_indirect_value(tagged_value, pb, size); size 2603 libavformat/mxfdec.c if ((ret = mxf_read_utf16be_string(pb, size, &str)) < 0) \ size 2621 libavformat/mxfdec.c static int mxf_read_identification_metadata(void *arg, AVIOContext *pb, int tag, int size, UID _uid, int64_t klv_offset) size 2658 libavformat/mxfdec.c static int mxf_read_preface_metadata(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 2739 libavformat/mxfdec.c int size = avio_rb16(pb); /* KLV specified by 0x53 */ size 2740 libavformat/mxfdec.c uint64_t next = avio_tell(pb) + size; size 2743 libavformat/mxfdec.c av_log(mxf->fc, AV_LOG_TRACE, "local tag %#04x size %d\n", tag, size); size 2744 libavformat/mxfdec.c if (!size) { /* ignore empty tag, needed for some files with empty UMID tag */ size 2761 libavformat/mxfdec.c } else if ((ret = read_child(ctx, pb, tag, size, uid, -1)) < 0) { size 3393 libavformat/mxfdec.c track->sample_count += pkt->size / (par->channels * (int64_t)bits_per_sample / 8); size 3484 libavformat/mxfdec.c int64_t size; size 3492 libavformat/mxfdec.c size = FFMIN(max_data_size, MXF_MAX_CHUNK_SIZE); size 3494 libavformat/mxfdec.c if ((size = next_ofs - pos) <= 0) { size 3495 libavformat/mxfdec.c av_log(s, AV_LOG_ERROR, "bad size: %"PRId64"\n", size); size 3500 libavformat/mxfdec.c if (size > max_data_size) size 3501 libavformat/mxfdec.c size = max_data_size; size 3506 libavformat/mxfdec.c klv.length = size; size 457 libavformat/mxfenc.c int size = klv_ber_length(len); size 458 libavformat/mxfenc.c if (size == 1) { size 464 libavformat/mxfenc.c size --; size 466 libavformat/mxfenc.c avio_w8(pb, 0x80 + size); size 467 libavformat/mxfenc.c while(size) { size 468 libavformat/mxfenc.c size--; size 469 libavformat/mxfenc.c avio_w8(pb, len >> 8 * size & 0xff); size 544 libavformat/mxfenc.c static void mxf_write_local_tag(AVIOContext *pb, int size, int tag) size 547 libavformat/mxfenc.c avio_wb16(pb, size); size 651 libavformat/mxfenc.c uint64_t size = 0; size 656 libavformat/mxfenc.c size++; size 658 libavformat/mxfenc.c size += 2; size 663 libavformat/mxfenc.c size += 1; size 664 libavformat/mxfenc.c return size; size 672 libavformat/mxfenc.c uint64_t size; size 677 libavformat/mxfenc.c size = mxf_utf16len(utf8_str); size 678 libavformat/mxfenc.c if (size >= UINT16_MAX/2) { size 679 libavformat/mxfenc.c av_log(NULL, AV_LOG_ERROR, "utf16 local tag size %"PRIx64" invalid (too large), ignoring\n", size); size 683 libavformat/mxfenc.c return 4 + size * 2; size 691 libavformat/mxfenc.c uint64_t size = mxf_utf16len(value); size 693 libavformat/mxfenc.c if (size >= UINT16_MAX/2) { size 694 libavformat/mxfenc.c av_log(NULL, AV_LOG_ERROR, "utf16 local tag size %"PRIx64" invalid (too large), ignoring\n", size); size 698 libavformat/mxfenc.c mxf_write_local_tag(pb, size*2, tag); size 1265 libavformat/mxfenc.c int size = cur_pos - pos; size 1267 libavformat/mxfenc.c klv_encode_ber4_length(pb, size); size 1661 libavformat/mxfenc.c static unsigned klv_fill_size(uint64_t size) size 1663 libavformat/mxfenc.c unsigned pad = KAG_SIZE - (size & (KAG_SIZE-1)); size 1965 libavformat/mxfenc.c sc->frame_size = pkt->size; size 2005 libavformat/mxfenc.c if (pkt->size < 43) size 2045 libavformat/mxfenc.c sc->frame_size = pkt->size; size 2087 libavformat/mxfenc.c if (pkt->size < 120000) size 2132 libavformat/mxfenc.c sc->frame_size = pkt->size; size 2177 libavformat/mxfenc.c const uint8_t *buf_end = pkt->data + pkt->size; size 2250 libavformat/mxfenc.c frame_size = pkt->size + extra_size; size 2260 libavformat/mxfenc.c sc->frame_size = pkt->size; size 2323 libavformat/mxfenc.c for(i = 0; i < pkt->size - 4; i++) { size 2330 libavformat/mxfenc.c } else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext size 2711 libavformat/mxfenc.c int frame_size = pkt->size / st->codecpar->block_align; size 2713 libavformat/mxfenc.c uint8_t *end = pkt->data + pkt->size; size 2783 libavformat/mxfenc.c avio_write(pb, pkt->data, pkt->size); size 2784 libavformat/mxfenc.c mxf->body_offset += pkt->size; size 2856 libavformat/mxfenc.c if (pkt->size != sc->frame_size && st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) { size 2858 libavformat/mxfenc.c st->index, pkt->size, sc->frame_size); size 2917 libavformat/mxfenc.c klv_encode_ber4_length(pb, pkt->size); // write length size 2918 libavformat/mxfenc.c avio_write(pb, pkt->data, pkt->size); size 2919 libavformat/mxfenc.c mxf->body_offset += 16+4+pkt->size + klv_fill_size(16+4+pkt->size); size 135 libavformat/mxg.c unsigned int size; size 172 libavformat/mxg.c size = mxg->buffer_ptr - mxg->soi_ptr; size 173 libavformat/mxg.c ret = av_new_packet(pkt, size); size 176 libavformat/mxg.c memcpy(pkt->data, mxg->soi_ptr, size); size 190 libavformat/mxg.c return pkt->size; size 195 libavformat/mxg.c size = AV_RB16(mxg->buffer_ptr); size 196 libavformat/mxg.c if (size < 2) size 199 libavformat/mxg.c if (mxg->cache_size < size) { size 200 libavformat/mxg.c ret = mxg_update_cache(s, size); size 206 libavformat/mxg.c mxg->cache_size -= size; size 209 libavformat/mxg.c mxg->buffer_ptr += size; size 211 libavformat/mxg.c if (marker == APP13 && size >= 16) { /* audio data */ size 212 libavformat/mxg.c ret = av_new_packet(pkt, size - 14); size 215 libavformat/mxg.c memcpy(pkt->data, startmarker_ptr + 16, size - 14); size 228 libavformat/mxg.c return pkt->size; size 229 libavformat/mxg.c } else if (marker == COM && size >= 18 && size 31 libavformat/ncdec.c int size; size 36 libavformat/ncdec.c size = AV_RL16(probe_packet->buf + 5); size 38 libavformat/ncdec.c if (size + 20 > probe_packet->buf_size) size 41 libavformat/ncdec.c if (AV_RB32(probe_packet->buf+16+size) == NC_VIDEO_FLAG) size 65 libavformat/ncdec.c int size; size 76 libavformat/ncdec.c size = avio_rl16(s->pb); size 79 libavformat/ncdec.c if (size == 0) { size 84 libavformat/ncdec.c ret = av_get_packet(s->pb, pkt, size); size 85 libavformat/ncdec.c if (ret != size) { size 90 libavformat/ncdec.c return size; size 39 libavformat/nspdec.c uint32_t chunk, size; size 52 libavformat/nspdec.c size = avio_rl32(s->pb); size 58 libavformat/nspdec.c if (size < 32) size 62 libavformat/nspdec.c avio_skip(s->pb, size - (avio_tell(s->pb) - pos)); size 65 libavformat/nspdec.c avio_get_str(s->pb, size, value, sizeof(value)); size 67 libavformat/nspdec.c avio_skip(s->pb, size & 1); size 263 libavformat/nsvdec.c unsigned int size; size 277 libavformat/nsvdec.c size = avio_rl32(pb); size 278 libavformat/nsvdec.c if (size < 28) size 280 libavformat/nsvdec.c nsv->NSVf_end = size; size 283 libavformat/nsvdec.c av_log(s, AV_LOG_TRACE, "NSV NSVf chunk_size %u\n", size); size 349 libavformat/nsvdec.c nsv->nsvs_file_offset[i] = avio_rl32(pb) + size; size 365 libavformat/nsvdec.c avio_seek(pb, nsv->base_offset + size, SEEK_SET); /* required for dumbdriving-271.nsv (2 extra bytes) */ size 92 libavformat/nutdec.c int64_t size; size 98 libavformat/nutdec.c size = ffio_read_varlen(bc); size 99 libavformat/nutdec.c if (size > 4096) size 101 libavformat/nutdec.c if (ffio_get_checksum(bc) && size > 4096) size 106 libavformat/nutdec.c return size; size 993 libavformat/nutdec.c int size, flags, size_mul, pts_delta, i, reserved_count, ret; size 1006 libavformat/nutdec.c size = nut->frame_code[frame_code].size_lsb; size 1030 libavformat/nutdec.c size += size_mul * ffio_read_varlen(bc); size 1049 libavformat/nutdec.c if (size > 4096) size 1051 libavformat/nutdec.c size -= nut->header_len[*header_idx]; size 1056 libavformat/nutdec.c size > 2 * nut->max_distance || size 1065 libavformat/nutdec.c return size; size 1074 libavformat/nutdec.c int size, stream_id, discard, ret; size 1079 libavformat/nutdec.c size = decode_frame_header(nut, &pts, &stream_id, &header_idx, frame_code); size 1080 libavformat/nutdec.c if (size < 0) size 1081 libavformat/nutdec.c return size; size 1095 libavformat/nutdec.c avio_skip(bc, size); size 1099 libavformat/nutdec.c ret = av_new_packet(pkt, size + nut->header_len[header_idx]); size 1107 libavformat/nutdec.c if (read_sm_data(s, bc, pkt, 0, pkt->pos + size) < 0) { size 1111 libavformat/nutdec.c if (read_sm_data(s, bc, pkt, 1, pkt->pos + size) < 0) { size 1116 libavformat/nutdec.c size -= sm_size; size 1117 libavformat/nutdec.c pkt->size -= sm_size; size 1120 libavformat/nutdec.c ret = avio_read(bc, pkt->data + nut->header_len[header_idx], size); size 1121 libavformat/nutdec.c if (ret != size) { size 38 libavformat/nutenc.c static int find_expected_header(AVCodecParameters *p, int size, int key_frame, size 43 libavformat/nutenc.c if (size > 4096) size 81 libavformat/nutenc.c if (frame_size == size) size 89 libavformat/nutenc.c if (size <= 0) size 105 libavformat/nutenc.c static int find_header_idx(AVFormatContext *s, AVCodecParameters *p, int size, size 111 libavformat/nutenc.c int len = find_expected_header(p, size, frame_type, out); size 791 libavformat/nutenc.c if (pkt->size / fc->size_mul) size 797 libavformat/nutenc.c if (pkt->size > 2 * nut->max_distance) size 802 libavformat/nutenc.c if (pkt->size < nut->header_len[fc->header_idx] || size 803 libavformat/nutenc.c pkt->size > 4096 || size 817 libavformat/nutenc.c if (pkt->size > 4096) size 821 libavformat/nutenc.c if (pkt->size >= nut->header_len[i] size 845 libavformat/nutenc.c int size = pkt->side_data[i].size; size 846 libavformat/nutenc.c const uint8_t *data_end = data + size; size 851 libavformat/nutenc.c if (!size || data[size-1]) { size 891 libavformat/nutenc.c put_v(dyn_bc, pkt->side_data[i].size); size 892 libavformat/nutenc.c avio_write(dyn_bc, data, pkt->side_data[i].size); size 966 libavformat/nutenc.c int data_size = pkt->size; size 1146 libavformat/nutenc.c avio_write(bc, pkt->data + nut->header_len[header_idx], pkt->size - nut->header_len[header_idx]); size 77 libavformat/nuv.c int size, subtype, ret; size 84 libavformat/nuv.c size = PKTSIZE(avio_rl32(pb)); size 86 libavformat/nuv.c if ((ret = ff_get_extradata(NULL, vst->codecpar, pb, size)) < 0) size 88 libavformat/nuv.c size = 0; size 95 libavformat/nuv.c size = PKTSIZE(avio_rl32(pb)); size 96 libavformat/nuv.c if (size != 128 * 4) size 135 libavformat/nuv.c size -= 6 * 4; size 136 libavformat/nuv.c avio_skip(pb, size); size 139 libavformat/nuv.c size = 11; size 143 libavformat/nuv.c size = PKTSIZE(avio_rl32(pb)); size 146 libavformat/nuv.c avio_skip(pb, size); size 251 libavformat/nuv.c int ret, size; size 262 libavformat/nuv.c size = PKTSIZE(AV_RL32(&hdr[8])); size 267 libavformat/nuv.c avio_skip(pb, size); size 273 libavformat/nuv.c avio_skip(pb, size); size 276 libavformat/nuv.c ret = av_new_packet(pkt, copyhdrsize + size); size 285 libavformat/nuv.c ret = avio_read(pb, pkt->data + copyhdrsize, size); size 289 libavformat/nuv.c if (ret < size) size 295 libavformat/nuv.c avio_skip(pb, size); size 298 libavformat/nuv.c ret = av_get_packet(pb, pkt, size); size 310 libavformat/nuv.c avio_skip(pb, size); size 346 libavformat/nuv.c int size, key, idx; size 359 libavformat/nuv.c size = PKTSIZE(AV_RL32(&hdr[8])); size 378 libavformat/nuv.c av_add_index_entry(s->streams[stream_index], pos, dts, size + HDRSIZE, 0, size 385 libavformat/nuv.c avio_skip(pb, size); size 192 libavformat/oggdec.c static const struct ogg_codec *ogg_find_codec(uint8_t *buf, int size) size 197 libavformat/oggdec.c if (size >= ogg_codecs[i]->magicsize && size 254 libavformat/oggdec.c size_t size; size 263 libavformat/oggdec.c if (av_size_mult(ogg->nstreams + 1, sizeof(*ogg->streams), &size) < 0 || size 264 libavformat/oggdec.c !(os = av_realloc(ogg->streams, size))) size 300 libavformat/oggdec.c static int buf_realloc(struct ogg_stream *os, int size) size 303 libavformat/oggdec.c if (os->bufsize - os->bufpos < size) { size 324 libavformat/oggdec.c int size = 0, idx; size 389 libavformat/oggdec.c size += segments[i]; size 395 libavformat/oggdec.c ret = buf_realloc(os, size); size 401 libavformat/oggdec.c readout_buf = av_malloc(size); size 404 libavformat/oggdec.c ret = avio_read(bc, readout_buf, size); size 405 libavformat/oggdec.c if (ret < size) { size 434 libavformat/oggdec.c idx = ogg_replace_stream(s, serial, readout_buf, size, probing); size 446 libavformat/oggdec.c ret = buf_realloc(os, size); size 452 libavformat/oggdec.c memcpy(os->buf + os->bufpos, readout_buf, size); size 461 libavformat/oggdec.c os->bufpos += size; size 645 libavformat/oggdec.c int64_t size, end; size 655 libavformat/oggdec.c size = avio_size(s->pb); size 656 libavformat/oggdec.c if (size < 0) size 658 libavformat/oggdec.c end = size > MAX_PAGE_SIZE ? size - MAX_PAGE_SIZE : 0; size 134 libavformat/oggdec.h const uint8_t *buf, int size, int parse_picture); size 137 libavformat/oggdec.h const uint8_t *buf, int size); size 46 libavformat/oggenc.c uint16_t size; size 121 libavformat/oggenc.c crc = av_crc(crc_table, crc, page->data, page->size); size 125 libavformat/oggenc.c avio_write(s->pb, page->data, page->size); size 168 libavformat/oggenc.c oggstream->page.size = 0; size 198 libavformat/oggenc.c uint8_t *data, unsigned size, int64_t granule, size 203 libavformat/oggenc.c int total_segments = size / 255 + 1; size 222 libavformat/oggenc.c if (!header && oggstream->page.size > 0 && size 223 libavformat/oggenc.c MAX_PAGE_SIZE - oggstream->page.size < size) { size 238 libavformat/oggenc.c len = FFMIN(size, segments*255); size 240 libavformat/oggenc.c memcpy(page->data+page->size, p, len); size 242 libavformat/oggenc.c size -= len; size 244 libavformat/oggenc.c page->size += len; size 260 libavformat/oggenc.c if ((ogg->pref_size > 0 && page->size >= ogg->pref_size) || size 280 libavformat/oggenc.c int64_t size; size 285 libavformat/oggenc.c size = offset + ff_vorbiscomment_length(*m, vendor, chapters, nb_chapters) + framing_bit; size 286 libavformat/oggenc.c if (size > INT_MAX) size 288 libavformat/oggenc.c p = av_mallocz(size); size 292 libavformat/oggenc.c ffio_init_context(&pb, p + offset, size - offset, 1, NULL, NULL, NULL, NULL); size 297 libavformat/oggenc.c *header_len = size; size 673 libavformat/oggenc.c ret = ogg_buffer_data(s, st, pkt->data, pkt->size, granule, 0); size 709 libavformat/oggenc.c if (oggstream->page.size > 0) size 88 libavformat/oggparseflac.c int size, ret; size 109 libavformat/oggparseflac.c &data, &size, os->buf + os->pstart, os->psize, size 45 libavformat/oggparseogm.c uint32_t size; size 82 libavformat/oggparseogm.c size = bytestream2_get_le32(&p); size 83 libavformat/oggparseogm.c size = FFMIN(size, os->psize); size 104 libavformat/oggparseogm.c if (size >= 56 && st->codecpar->codec_id == AV_CODEC_ID_AAC) { size 106 libavformat/oggparseogm.c size -= 4; size 108 libavformat/oggparseogm.c if (size > 52) { size 109 libavformat/oggparseogm.c size -= 52; size 110 libavformat/oggparseogm.c if (bytestream2_get_bytes_left(&p) < size) size 112 libavformat/oggparseogm.c if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0) size 91 libavformat/oggparseopus.c static int opus_duration(uint8_t *src, int size) size 101 libavformat/oggparseopus.c if (size<2) size 76 libavformat/oggparsevorbis.c const uint8_t *buf, int size) size 78 libavformat/oggparsevorbis.c int updates = ff_vorbis_comment(as, &st->metadata, buf, size, 1); size 88 libavformat/oggparsevorbis.c const uint8_t *buf, int size, size 92 libavformat/oggparsevorbis.c const uint8_t *end = buf + size; size 98 libavformat/oggparsevorbis.c if (size < 8) size 132 libavformat/omadec.c static int rprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, size 140 libavformat/omadec.c size < OMA_ENC_HEADER_SIZE + oc->k_size + oc->e_size + oc->i_size || size 141 libavformat/omadec.c size < OMA_RPROBE_M_VAL) size 168 libavformat/omadec.c static int nprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, size 177 libavformat/omadec.c size < OMA_ENC_HEADER_SIZE + oc->k_size + 4) size 184 libavformat/omadec.c if (size < pos + 44) size 195 libavformat/omadec.c if (pos + (((uint64_t)datalen) << 4) > size) size 206 libavformat/omadec.c if (!rprobe(s, enc_header, size, oc->r_val)) { size 197 libavformat/paf.c int size, i, ret; size 214 libavformat/paf.c return pkt->size; size 245 libavformat/paf.c size = p->video_size - p->frames_offset_table[p->current_frame]; size 247 libavformat/paf.c if ((ret = av_new_packet(pkt, size)) < 0) size 252 libavformat/paf.c memcpy(pkt->data, p->video_frame + p->frames_offset_table[p->current_frame], size); size 257 libavformat/paf.c return pkt->size; size 32 libavformat/pcm.c int ret, size; size 41 libavformat/pcm.c size = FFMAX(par->sample_rate/25, 1); size 42 libavformat/pcm.c size = FFMIN(size, RAW_SAMPLES) * par->block_align; size 44 libavformat/pcm.c ret = av_get_packet(s->pb, pkt, size); size 98 libavformat/pmpdec.c uint32_t size = avio_rl32(pb); size 99 libavformat/pmpdec.c int flags = size & 1 ? AVINDEX_KEYFRAME : 0; size 104 libavformat/pmpdec.c size >>= 1; size 105 libavformat/pmpdec.c if (size < 9 + 4*pmp->num_streams) { size 109 libavformat/pmpdec.c av_add_index_entry(vst, pos, i, size, 0, flags); size 110 libavformat/pmpdec.c pos += size; size 42 libavformat/pp_bnk.c uint32_t size; /*< Size of the data in bytes. */ size 78 libavformat/pp_bnk.c trk->size = AV_RL32(buf + 4); size 171 libavformat/pp_bnk.c trk->data_size = e.size; size 180 libavformat/pp_bnk.c if ((ret = avio_skip(s->pb, e.size)) == AVERROR_EOF) { size 239 libavformat/pp_bnk.c int size; size 254 libavformat/pp_bnk.c size = FFMIN(trk->data_size - trk->bytes_read, PP_BNK_MAX_READ_SIZE); size 256 libavformat/pp_bnk.c if ((ret = av_get_packet(s->pb, pkt, size)) == AVERROR_EOF) { size 137 libavformat/prompeg.c static void xor_fast(const uint8_t *in1, const uint8_t *in2, uint8_t *out, int size) { size 143 libavformat/prompeg.c n = size / sizeof (uint64_t); size 157 libavformat/prompeg.c n = size / sizeof (uint32_t); size 170 libavformat/prompeg.c n = size - s; size 177 libavformat/prompeg.c static int prompeg_create_bitstring(URLContext *h, const uint8_t *buf, int size, size 182 libavformat/prompeg.c if (size < 12 || (buf[0] & 0xc0) != 0x80 || (buf[1] & 0x7f) != 0x21) { size 186 libavformat/prompeg.c if (size != s->packet_size) { size 320 libavformat/prompeg.c static int prompeg_init(URLContext *h, const uint8_t *buf, int size) { size 328 libavformat/prompeg.c if (size < 12 || size > UINT16_MAX + 12) { size 335 libavformat/prompeg.c s->packet_size = size; size 336 libavformat/prompeg.c s->length_recovery = size - 12; size 385 libavformat/prompeg.c static int prompeg_write(URLContext *h, const uint8_t *buf, int size) { size 392 libavformat/prompeg.c if (s->init && ((ret = prompeg_init(h, buf, size)) < 0)) size 395 libavformat/prompeg.c if ((ret = prompeg_create_bitstring(h, buf, size, &bitstring)) < 0) size 444 libavformat/prompeg.c ret = size; size 212 libavformat/psxstr.c if(pkt->size != sector_count*VIDEO_DATA_CHUNK_SIZE){ size 231 libavformat/psxstr.c pkt->size= frame_size; size 234 libavformat/psxstr.c pkt->size= -1; size 133 libavformat/qcp.c int size = avio_r8(pb); size 136 libavformat/qcp.c av_log(s, AV_LOG_WARNING, "Unknown entry %d=>%d in rate-map-table.\n ", mode, size); size 138 libavformat/qcp.c c->rates_per_mode[mode] = size; size 36 libavformat/r3d.c unsigned size; size 44 libavformat/r3d.c atom->size = avio_rb32(s->pb); size 45 libavformat/r3d.c if (atom->size < 8) size 49 libavformat/r3d.c atom->size, (char*)&atom->tag, atom->offset); size 50 libavformat/r3d.c return atom->size; size 119 libavformat/r3d.c r3d->video_offsets_count = (atom->size - 8) / 4; size 250 libavformat/r3d.c tmp = atom->size - 8 - (avio_tell(s->pb) - pos); size 274 libavformat/r3d.c int samples, size; size 314 libavformat/r3d.c size = atom->size - 8 - (avio_tell(s->pb) - pos); size 315 libavformat/r3d.c if (size < 0) size 317 libavformat/r3d.c ret = av_get_packet(s->pb, pkt, size); size 361 libavformat/r3d.c avio_skip(s->pb, atom.size-8); size 38 libavformat/rawdec.c int ret, size; size 40 libavformat/rawdec.c size = raw->raw_packet_size; size 42 libavformat/rawdec.c if ((ret = av_new_packet(pkt, size)) < 0) size 47 libavformat/rawdec.c ret = avio_read_partial(s->pb, pkt->data, size); size 31 libavformat/rawenc.c avio_write(s->pb, pkt->data, pkt->size); size 333 libavformat/rawenc.c if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x0000001 && size 356 libavformat/rawenc.c if (pkt->size >= 5 && AV_RB32(pkt->data) != 0x0000001 && size 32 libavformat/rawutils.c int contains_pal = bpc == 8 && pkt->size == with_pal_size; size 33 libavformat/rawutils.c int size = contains_pal ? min_stride * par->height : pkt->size; size 34 libavformat/rawutils.c int stride = size / par->height; size 39 libavformat/rawutils.c if (pkt->size == expected_stride * par->height) size 41 libavformat/rawutils.c if (size != stride * par->height) size 135 libavformat/rdt.c unsigned int size; size 174 libavformat/rdt.c size = avio_rb32(&pb); size 176 libavformat/rdt.c size = rdt->mlti_data_size; size 179 libavformat/rdt.c if (ff_rm_read_mdpr_codecdata(rdt->rmctx, &pb, st, rdt->rmst[st->index], size, NULL) < 0) size 384 libavformat/rdt.c ff_rdt_subscribe_rule (char *cmd, int size, size 387 libavformat/rdt.c av_strlcatf(cmd, size, "stream=%d;rule=%d,stream=%d;rule=%d", size 70 libavformat/rdt.h void ff_rdt_subscribe_rule(char *cmd, int size, size 135 libavformat/redspark.c uint32_t size = 8 * par->channels; size 141 libavformat/redspark.c ret = av_get_packet(s->pb, pkt, size); size 142 libavformat/redspark.c if (ret != size) { size 47 libavformat/riff.h int ff_get_bmp_header(AVIOContext *pb, AVStream *st, uint32_t *size); size 71 libavformat/riff.h int ff_get_wav_header(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, int size, int big_endian); size 80 libavformat/riff.h int ff_read_riff_info(AVFormatContext *s, int64_t size); size 92 libavformat/riffdec.c AVCodecParameters *par, int size, int big_endian) size 97 libavformat/riffdec.c if (size < 14) { size 118 libavformat/riffdec.c if (size == 14) { /* We're dealing with plain vanilla WAVEFORMAT */ size 134 libavformat/riffdec.c if (size >= 18 && id != 0x0165) { /* We're obviously dealing with WAVEFORMATEX */ size 140 libavformat/riffdec.c size -= 18; size 141 libavformat/riffdec.c cbSize = FFMIN(size, cbSize); size 145 libavformat/riffdec.c size -= 22; size 150 libavformat/riffdec.c size -= cbSize; size 154 libavformat/riffdec.c if (size > 0) size 155 libavformat/riffdec.c avio_skip(pb, size); size 156 libavformat/riffdec.c } else if (id == 0x0165 && size >= 32) { size 159 libavformat/riffdec.c size -= 4; size 160 libavformat/riffdec.c if (ff_get_extradata(s, par, pb, size) < 0) size 166 libavformat/riffdec.c if (size < 8 + nb_streams * 20) size 209 libavformat/riffdec.c int ff_get_bmp_header(AVIOContext *pb, AVStream *st, uint32_t *size) size 213 libavformat/riffdec.c if (size) size 214 libavformat/riffdec.c *size = size_; size 228 libavformat/riffdec.c int ff_read_riff_info(AVFormatContext *s, int64_t size) size 234 libavformat/riffdec.c end = start + size; size 257 libavformat/rl2.c ret = av_get_packet(pb, pkt, sample->size); size 258 libavformat/rl2.c if(ret != sample->size){ size 84 libavformat/rmdec.c static int rm_read_extradata(AVFormatContext *s, AVIOContext *pb, AVCodecParameters *par, unsigned size) size 86 libavformat/rmdec.c if (size >= 1<<24) { size 87 libavformat/rmdec.c av_log(s, AV_LOG_ERROR, "extradata size %u too large\n", size); size 90 libavformat/rmdec.c return ff_get_extradata(s, par, pb, size); size 314 libavformat/rmdec.c int size; size 406 libavformat/rmdec.c size = avio_tell(pb) - codec_pos; size 407 libavformat/rmdec.c if (codec_data_size >= size) { size 408 libavformat/rmdec.c avio_skip(pb, codec_data_size - size); size 410 libavformat/rmdec.c av_log(s, AV_LOG_WARNING, "codec_data_size %u < size %d\n", codec_data_size, size); size 421 libavformat/rmdec.c unsigned int size, n_pkts, str_id, next_off, n, pos, pts; size 427 libavformat/rmdec.c size = avio_rb32(pb); size 428 libavformat/rmdec.c if (size < 20) size 542 libavformat/rmdec.c unsigned size, v; size 610 libavformat/rmdec.c size = avio_rb32(pb); size 619 libavformat/rmdec.c avio_seek(pb, codec_pos + size, SEEK_SET); size 623 libavformat/rmdec.c size, mime) < 0) size 809 libavformat/rmdec.c memset(vst->pkt.data, 0, vst->pkt.size); size 841 libavformat/rmdec.c pkt->size = vst->videobufpos + 8*(vst->cur_slice - vst->slices); size 859 libavformat/rmdec.c for (j=0;j<pkt->size;j+=2) { size 1312 libavformat/rmdec.c unsigned size, index; size 1350 libavformat/rmdec.c size = avio_rb32(pb); size 1353 libavformat/rmdec.c if (size < 1 || size > INT_MAX/4) { size 1354 libavformat/rmdec.c av_log(s, AV_LOG_ERROR, "size %u is invalid\n", size); size 1359 libavformat/rmdec.c ret = ff_rm_parse_packet(s, pb, st, st->priv_data, size, pkt, size 76 libavformat/rmenc.c int nb_packets, packet_total_size, packet_max_size, size, packet_avg_size, i; size 131 libavformat/rmenc.c size = 4 * 2 + 10; size 134 libavformat/rmenc.c if(tag) size += strlen(tag->value); size 136 libavformat/rmenc.c avio_wb32(s,size); size 159 libavformat/rmenc.c size = 10 + 9 * 4 + strlen(desc) + strlen(mimetype) + codec_data_size; size 160 libavformat/rmenc.c avio_wb32(s, size); size 366 libavformat/rmenc.c static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int flags) size 373 libavformat/rmenc.c write_packet_header(s, stream, size, !!(flags & AV_PKT_FLAG_KEY)); size 377 libavformat/rmenc.c for (i = 0; i < size; i += 2) { size 382 libavformat/rmenc.c avio_write(pb, buf, size); size 388 libavformat/rmenc.c static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int flags) size 399 libavformat/rmenc.c if (size > MAX_PACKET_SIZE) { size 400 libavformat/rmenc.c av_log(s, AV_LOG_ERROR, "Muxing packets larger than 64 kB (%d) is not supported\n", size); size 403 libavformat/rmenc.c write_packet_header(s, stream, size + 7 + (size >= 0x4000)*4, key_frame); size 413 libavformat/rmenc.c if(size >= 0x4000){ size 414 libavformat/rmenc.c avio_wb32(pb, size); /* total frame size */ size 415 libavformat/rmenc.c avio_wb32(pb, size); /* offset from the start or the end */ size 417 libavformat/rmenc.c avio_wb16(pb, 0x4000 | size); /* total frame size */ size 418 libavformat/rmenc.c avio_wb16(pb, 0x4000 | size); /* offset from the start or the end */ size 422 libavformat/rmenc.c avio_write(pb, buf, size); size 432 libavformat/rmenc.c return rm_write_audio(s, pkt->data, pkt->size, pkt->flags); size 434 libavformat/rmenc.c return rm_write_video(s, pkt->data, pkt->size, pkt->flags); size 353 libavformat/rpl.c ret = av_get_packet(pb, pkt, index_entry->size); size 356 libavformat/rpl.c if (ret != index_entry->size) { size 172 libavformat/rsd.c int ret, size = 1024; size 199 libavformat/rsd.c ret = av_get_packet(s->pb, pkt, size); size 202 libavformat/rsd.c if (par->codec_id == AV_CODEC_ID_XMA2 && pkt->size >= 1) size 34 libavformat/rsodec.c unsigned int size; size 39 libavformat/rsodec.c size = avio_rb16(pb); size 61 libavformat/rsodec.c st->duration = (size * 8) / bps; size 277 libavformat/rtmpcrypt.c static int rtmpe_read(URLContext *h, uint8_t *buf, int size) size 283 libavformat/rtmpcrypt.c ret = ffurl_read(rt->stream, buf, size); size 297 libavformat/rtmpcrypt.c static int rtmpe_write(URLContext *h, const uint8_t *buf, int size) size 304 libavformat/rtmpcrypt.c av_rc4_crypt(&rt->key_out, (uint8_t *)buf, buf, size, NULL, 1); size 307 libavformat/rtmpcrypt.c if ((ret = ffurl_write(rt->stream, buf, size)) < 0) size 310 libavformat/rtmpcrypt.c return size; size 85 libavformat/rtmphttp.c static int rtmp_http_write(URLContext *h, const uint8_t *buf, int size) size 89 libavformat/rtmphttp.c if (rt->out_size + size > rt->out_capacity) { size 91 libavformat/rtmphttp.c rt->out_capacity = (rt->out_size + size) * 2; size 99 libavformat/rtmphttp.c memcpy(rt->out_data + rt->out_size, buf, size); size 100 libavformat/rtmphttp.c rt->out_size += size; size 102 libavformat/rtmphttp.c return size; size 105 libavformat/rtmphttp.c static int rtmp_http_read(URLContext *h, uint8_t *buf, int size) size 112 libavformat/rtmphttp.c ret = ffurl_read(rt->stream, buf + off, size); size 149 libavformat/rtmphttp.c size -= ret; size 177 libavformat/rtmppkt.c int channel_id, timestamp, size; size 199 libavformat/rtmppkt.c size = prev_pkt[channel_id].size; size 215 libavformat/rtmppkt.c size = AV_RB24(buf); size 238 libavformat/rtmppkt.c if (prev_pkt[channel_id].read && size != prev_pkt[channel_id].size) { size 240 libavformat/rtmppkt.c size, prev_pkt[channel_id].size); size 248 libavformat/rtmppkt.c size)) < 0) size 258 libavformat/rtmppkt.c p->size = prev->size; size 272 libavformat/rtmppkt.c prev_pkt[channel_id].size = size; size 274 libavformat/rtmppkt.c size = size - p->offset; size 276 libavformat/rtmppkt.c toread = FFMIN(size, chunk_size); size 281 libavformat/rtmppkt.c size -= toread; size 285 libavformat/rtmppkt.c if (size > 0) { size 348 libavformat/rtmppkt.c pkt->size == prev_pkt[pkt->channel_id].size) { size 369 libavformat/rtmppkt.c bytestream_put_be24(&p, pkt->size); size 380 libavformat/rtmppkt.c prev_pkt[pkt->channel_id].size = pkt->size; size 387 libavformat/rtmppkt.c written = p - pkt_hdr + pkt->size; size 388 libavformat/rtmppkt.c while (off < pkt->size) { size 389 libavformat/rtmppkt.c int towrite = FFMIN(chunk_size, pkt->size - off); size 393 libavformat/rtmppkt.c if (off < pkt->size) { size 411 libavformat/rtmppkt.c int timestamp, int size) size 413 libavformat/rtmppkt.c if (size) { size 414 libavformat/rtmppkt.c pkt->data = av_realloc(NULL, size); size 418 libavformat/rtmppkt.c pkt->size = size; size 433 libavformat/rtmppkt.c pkt->size = 0; size 472 libavformat/rtmppkt.c int size = bytestream2_get_be16(gb); size 473 libavformat/rtmppkt.c if (!size) { size 477 libavformat/rtmppkt.c if (size < 0 || size >= bytestream2_get_bytes_left(gb)) size 479 libavformat/rtmppkt.c bytestream2_skip(gb, size); size 524 libavformat/rtmppkt.c int size = bytestream2_get_be16(gb); size 525 libavformat/rtmppkt.c if (!size) size 527 libavformat/rtmppkt.c if (size < 0 || size >= bytestream2_get_bytes_left(gb)) size 529 libavformat/rtmppkt.c bytestream2_skip(gb, size); size 530 libavformat/rtmppkt.c if (size == namelen && !memcmp(gb->buffer-size, name, namelen)) { size 596 libavformat/rtmppkt.c unsigned int size, nb = -1; size 613 libavformat/rtmppkt.c size = bytestream_get_be16(&data); size 615 libavformat/rtmppkt.c size = bytestream_get_be32(&data); size 617 libavformat/rtmppkt.c size = FFMIN(size, sizeof(buf) - 1); size 618 libavformat/rtmppkt.c memcpy(buf, data, size); size 619 libavformat/rtmppkt.c buf[size] = 0; size 634 libavformat/rtmppkt.c size = bytestream_get_be16(&data); size 635 libavformat/rtmppkt.c size = FFMIN(size, sizeof(buf) - 1); size 636 libavformat/rtmppkt.c if (!size) { size 641 libavformat/rtmppkt.c memcpy(buf, data, size); size 642 libavformat/rtmppkt.c buf[size] = 0; size 643 libavformat/rtmppkt.c if (size >= data_end - data) size 645 libavformat/rtmppkt.c data += size; size 666 libavformat/rtmppkt.c rtmp_packet_type(p->type), p->type, p->channel_id, p->timestamp, p->extra, p->size); size 668 libavformat/rtmppkt.c uint8_t *src = p->data, *src_end = p->data + p->size; size 683 libavformat/rtmppkt.c for (i = 0; i < p->size; i++) size 689 libavformat/rtmppkt.c int ff_amf_match_string(const uint8_t *data, int size, const char *str) size 694 libavformat/rtmppkt.c if (size < 1) size 704 libavformat/rtmppkt.c if ((size -= 4 + 1) < 0) size 708 libavformat/rtmppkt.c if ((size -= 2 + 1) < 0) size 713 libavformat/rtmppkt.c if (amf_len > size) size 84 libavformat/rtmppkt.h int size; ///< packet payload size size 100 libavformat/rtmppkt.h int timestamp, int size); size 326 libavformat/rtmppkt.h int ff_amf_match_string(const uint8_t *data, int size, const char *str); size 199 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data + offset, pkt->size - offset); size 236 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data, pkt->size); size 400 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 459 libavformat/rtmpproto.c bytestream2_init(&gbc, cp, pkt.size); size 492 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 507 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 569 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 584 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 873 libavformat/rtmpproto.c if (ppkt->size < 6) { size 875 libavformat/rtmpproto.c ppkt->size); size 1071 libavformat/rtmpproto.c int size; size 1092 libavformat/rtmpproto.c size = sizeof(tmp_buf) - zs.avail_out; size 1093 libavformat/rtmpproto.c if (!(ptr = av_realloc(*out_data, *out_size + size))) { size 1099 libavformat/rtmpproto.c memcpy(*out_data + *out_size, tmp_buf, size); size 1100 libavformat/rtmpproto.c *out_size += size; size 1377 libavformat/rtmpproto.c int size) size 1397 libavformat/rtmpproto.c uint32_t second_int, char *arraydata, int size) size 1495 libavformat/rtmpproto.c if (pkt->size < 4) { size 1498 libavformat/rtmpproto.c pkt->size); size 1528 libavformat/rtmpproto.c if (pkt->size < 2) { size 1530 libavformat/rtmpproto.c pkt->size); size 1554 libavformat/rtmpproto.c if (pkt->size < 4) { size 1557 libavformat/rtmpproto.c pkt->size); size 1581 libavformat/rtmpproto.c if (pkt->size < 4) { size 1584 libavformat/rtmpproto.c pkt->size); size 1795 libavformat/rtmpproto.c const uint8_t *data_end = pkt->data + pkt->size; size 1845 libavformat/rtmpproto.c bytestream2_init_writer(&pbc, spkt.data, spkt.size); size 1892 libavformat/rtmpproto.c spkt.size = pp - spkt.data; size 1914 libavformat/rtmpproto.c bytestream2_init(&gbc, p, pkt->size); size 2000 libavformat/rtmpproto.c spkt.size = pp - spkt.data; size 2024 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data, pkt->size); size 2121 libavformat/rtmpproto.c const uint8_t *data_end = pkt->data + pkt->size; size 2161 libavformat/rtmpproto.c if (ff_amf_match_string(pkt->data, pkt->size, "_error")) { size 2164 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "_result")) { size 2167 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "onStatus")) { size 2170 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "onBWDone")) { size 2173 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "releaseStream") || size 2174 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "FCPublish") || size 2175 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "publish") || size 2176 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "play") || size 2177 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "_checkbw") || size 2178 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "createStream")) { size 2186 libavformat/rtmpproto.c static int update_offset(RTMPContext *rt, int size) size 2194 libavformat/rtmpproto.c rt->flv_size += size; size 2198 libavformat/rtmpproto.c rt->flv_size = size; size 2210 libavformat/rtmpproto.c const int size = pkt->size - skip; size 2219 libavformat/rtmpproto.c old_flv_size = update_offset(rt, size + 15); size 2228 libavformat/rtmpproto.c bytestream2_put_be24(&pbc, size); size 2232 libavformat/rtmpproto.c bytestream2_put_buffer(&pbc, data, size); size 2233 libavformat/rtmpproto.c bytestream2_put_be32(&pbc, size + RTMP_HEADER); size 2246 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data, pkt->size); size 2351 libavformat/rtmpproto.c uint32_t size; size 2354 libavformat/rtmpproto.c old_flv_size = update_offset(rt, pkt->size); size 2367 libavformat/rtmpproto.c while (next - pkt->data < pkt->size - RTMP_HEADER) { size 2369 libavformat/rtmpproto.c size = bytestream_get_be24(&next); size 2376 libavformat/rtmpproto.c if (size + 3 + 4 > pkt->data + pkt->size - next) size 2379 libavformat/rtmpproto.c bytestream_put_be24(&p, size); size 2382 libavformat/rtmpproto.c memcpy(p, next, size + 3 + 4); size 2383 libavformat/rtmpproto.c p += size + 3; size 2384 libavformat/rtmpproto.c bytestream_put_be32(&p, size + RTMP_HEADER); size 2385 libavformat/rtmpproto.c next += size + 3 + 4; size 2471 libavformat/rtmpproto.c if (!rpkt.size || !rt->is_input) { size 2499 libavformat/rtmpproto.c if (rt->out_pkt.size) size 2892 libavformat/rtmpproto.c static int rtmp_read(URLContext *s, uint8_t *buf, int size) size 2895 libavformat/rtmpproto.c int orig_size = size; size 2898 libavformat/rtmpproto.c while (size > 0) { size 2901 libavformat/rtmpproto.c if (data_left >= size) { size 2902 libavformat/rtmpproto.c memcpy(buf, rt->flv_data + rt->flv_off, size); size 2903 libavformat/rtmpproto.c rt->flv_off += size; size 2909 libavformat/rtmpproto.c size -= data_left; size 2953 libavformat/rtmpproto.c static int rtmp_write(URLContext *s, const uint8_t *buf, int size) size 2956 libavformat/rtmpproto.c int size_temp = size; size 3037 libavformat/rtmpproto.c if ((ret = av_reallocp(&rt->out_pkt.data, rt->out_pkt.size + 16)) < 0) { size 3041 libavformat/rtmpproto.c memmove(rt->out_pkt.data + 16, rt->out_pkt.data, rt->out_pkt.size); size 3042 libavformat/rtmpproto.c rt->out_pkt.size += 16; size 3056 libavformat/rtmpproto.c } while (buf_temp - buf < size); size 3059 libavformat/rtmpproto.c return size; size 3073 libavformat/rtmpproto.c return size; size 3091 libavformat/rtmpproto.c return size; size 930 libavformat/rtpdec.c pkt->size = avio_close_dyn_buf(*dyn_buf, &pkt->data); size 933 libavformat/rtpdec.c if ((ret = av_packet_from_data(pkt, pkt->data, pkt->size)) < 0) { size 937 libavformat/rtpdec.c return pkt->size; size 111 libavformat/rtpdec_amr.c memset(ptr, 0, pkt->data + pkt->size - ptr); size 112 libavformat/rtpdec_amr.c pkt->size = ptr - pkt->data; size 128 libavformat/rtpdec_amr.c memset(ptr, 0, pkt->data + pkt->size - ptr); size 129 libavformat/rtpdec_amr.c pkt->size = ptr - pkt->data; size 94 libavformat/rtpdec_jpeg.c static int jpeg_create_header(uint8_t *buf, int size, uint32_t type, uint32_t w, size 102 libavformat/rtpdec_jpeg.c bytestream2_init_writer(&pbc, buf, size); size 50 libavformat/rtpdec_mpeg4.c int size; size 164 libavformat/rtpdec_mpeg4.c data->au_headers[i].size = get_bits_long(&getbitcontext, data->sizelength); size 186 libavformat/rtpdec_mpeg4.c if (data->buf_size - data->buf_pos < data->au_headers[data->cur_au_index].size) { size 190 libavformat/rtpdec_mpeg4.c if ((ret = av_new_packet(pkt, data->au_headers[data->cur_au_index].size)) < 0) { size 194 libavformat/rtpdec_mpeg4.c memcpy(pkt->data, &data->buf[data->buf_pos], data->au_headers[data->cur_au_index].size); size 195 libavformat/rtpdec_mpeg4.c data->buf_pos += data->au_headers[data->cur_au_index].size; size 214 libavformat/rtpdec_mpeg4.c if (data->nb_au_headers == 1 && len < data->au_headers[0].size) { size 218 libavformat/rtpdec_mpeg4.c if (data->au_headers[0].size > MAX_AAC_HBR_FRAME_SIZE) { size 223 libavformat/rtpdec_mpeg4.c data->buf_size = data->au_headers[0].size; size 228 libavformat/rtpdec_mpeg4.c data->au_headers[0].size != data->buf_size || size 261 libavformat/rtpdec_mpeg4.c if (len < data->au_headers[0].size) { size 265 libavformat/rtpdec_mpeg4.c if ((ret = av_new_packet(pkt, data->au_headers[0].size)) < 0) { size 269 libavformat/rtpdec_mpeg4.c memcpy(pkt->data, buf, data->au_headers[0].size); size 270 libavformat/rtpdec_mpeg4.c len -= data->au_headers[0].size; size 271 libavformat/rtpdec_mpeg4.c buf += data->au_headers[0].size; size 30 libavformat/rtpdec_qcelp.c int size; size 84 libavformat/rtpdec_qcelp.c data->group[i].size = 0; size 98 libavformat/rtpdec_qcelp.c data->group[data->interleave_index].size = 0; size 115 libavformat/rtpdec_qcelp.c data->group[data->interleave_index].size = 0; size 134 libavformat/rtpdec_qcelp.c ip->size = len - 1 - frame_size; size 136 libavformat/rtpdec_qcelp.c memcpy(ip->data, &buf[1 + frame_size], ip->size); size 140 libavformat/rtpdec_qcelp.c data->group_finished = ip->size == 0; size 166 libavformat/rtpdec_qcelp.c if (ip->size == 0) { size 172 libavformat/rtpdec_qcelp.c if (ip->pos >= ip->size) size 177 libavformat/rtpdec_qcelp.c if (ip->pos + frame_size > ip->size) size 185 libavformat/rtpdec_qcelp.c data->group_finished = ip->pos >= ip->size; size 202 libavformat/rtpdec_qdm2.c memset(pkt->data, 0, pkt->size); size 221 libavformat/rtpdec_qdm2.c to_copy = FFMIN(qdm->len[n], pkt->size - (p - pkt->data)); size 54 libavformat/rtpdec_qt.c int num = qt->pkt.size / qt->bytes_per_frame; size 65 libavformat/rtpdec_qt.c qt->pkt.size = 0; size 174 libavformat/rtpdec_qt.c if (qt->pkt.size > 0 && qt->timestamp == *timestamp) { size 176 libavformat/rtpdec_qt.c if ((err = av_reallocp(&qt->pkt.data, qt->pkt.size + alen + size 178 libavformat/rtpdec_qt.c qt->pkt.size = 0; size 187 libavformat/rtpdec_qt.c qt->pkt.size = 0; size 190 libavformat/rtpdec_qt.c memcpy(qt->pkt.data + qt->pkt.size, buf + avio_tell(&pb), alen); size 191 libavformat/rtpdec_qt.c qt->pkt.size += alen; size 193 libavformat/rtpdec_qt.c int ret = av_packet_from_data(pkt, qt->pkt.data, qt->pkt.size); size 197 libavformat/rtpdec_qt.c qt->pkt.size = 0; size 201 libavformat/rtpdec_qt.c memset(pkt->data + pkt->size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 223 libavformat/rtpdec_qt.c qt->pkt.size = qt->remaining * qt->bytes_per_frame; size 60 libavformat/rtpdec_vc2hq.c uint32_t size = DIRAC_DATA_UNIT_HEADER_SIZE + len; size 65 libavformat/rtpdec_vc2hq.c fill_parse_info_header(pl_ctx, pkt->data, 0x00, size); size 78 libavformat/rtpdec_vc2hq.c uint32_t size = 0; size 84 libavformat/rtpdec_vc2hq.c fill_parse_info_header(pl_ctx, pkt->data, 0x10, size); size 356 libavformat/rtpenc.c const uint8_t *buf1, int size, int sample_size_bits) size 365 libavformat/rtpenc.c if ((sample_size_bits % 8) == 0 && ((8 * size) % sample_size_bits) != 0) size 368 libavformat/rtpenc.c while (size > 0) { size 370 libavformat/rtpenc.c len = FFMIN(max_packet_size, size); size 376 libavformat/rtpenc.c size -= len; size 385 libavformat/rtpenc.c const uint8_t *buf1, int size) size 394 libavformat/rtpenc.c if ((len + size) > max_packet_size) { size 405 libavformat/rtpenc.c if (size > max_packet_size) { size 408 libavformat/rtpenc.c while (size > 0) { size 410 libavformat/rtpenc.c if (len > size) size 411 libavformat/rtpenc.c len = size; size 419 libavformat/rtpenc.c size -= len; size 431 libavformat/rtpenc.c memcpy(s->buf_ptr, buf1, size); size 432 libavformat/rtpenc.c s->buf_ptr += size; size 437 libavformat/rtpenc.c const uint8_t *buf1, int size) size 444 libavformat/rtpenc.c while (size > 0) { size 446 libavformat/rtpenc.c if (len > size) size 447 libavformat/rtpenc.c len = size; size 450 libavformat/rtpenc.c ff_rtp_send_data(s1, buf1, len, (len == size)); size 453 libavformat/rtpenc.c size -= len; size 459 libavformat/rtpenc.c const uint8_t *buf1, int size) size 465 libavformat/rtpenc.c while (size >= TS_PACKET_SIZE) { size 467 libavformat/rtpenc.c if (len > size) size 468 libavformat/rtpenc.c len = size; size 471 libavformat/rtpenc.c size -= len; size 482 libavformat/rtpenc.c static int rtp_send_ilbc(AVFormatContext *s1, const uint8_t *buf, int size) size 488 libavformat/rtpenc.c int frames = size / frame_size; size 522 libavformat/rtpenc.c int size= pkt->size; size 524 libavformat/rtpenc.c av_log(s1, AV_LOG_TRACE, "%d: write len=%d\n", pkt->stream_index, size); size 542 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 8 * st->codecpar->channels); size 547 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 16 * st->codecpar->channels); size 549 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 24 * st->codecpar->channels); size 555 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 8 * st->codecpar->channels); size 558 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, size 562 libavformat/rtpenc.c rtp_send_mpegaudio(s1, pkt->data, size); size 566 libavformat/rtpenc.c ff_rtp_send_mpegvideo(s1, pkt->data, size); size 570 libavformat/rtpenc.c ff_rtp_send_latm(s1, pkt->data, size); size 572 libavformat/rtpenc.c ff_rtp_send_aac(s1, pkt->data, size); size 576 libavformat/rtpenc.c ff_rtp_send_amr(s1, pkt->data, size); size 579 libavformat/rtpenc.c rtp_send_mpegts_raw(s1, pkt->data, size); size 582 libavformat/rtpenc.c ff_rtp_send_vc2hq(s1, pkt->data, size, st->codecpar->field_order != AV_FIELD_PROGRESSIVE ? 1 : 0); size 585 libavformat/rtpenc.c ff_rtp_send_h264_hevc(s1, pkt->data, size); size 588 libavformat/rtpenc.c ff_rtp_send_h261(s1, pkt->data, size); size 596 libavformat/rtpenc.c ff_rtp_send_h263_rfc2190(s1, pkt->data, size, mb_info, mb_info_size); size 601 libavformat/rtpenc.c ff_rtp_send_h263(s1, pkt->data, size); size 604 libavformat/rtpenc.c ff_rtp_send_h264_hevc(s1, pkt->data, size); size 608 libavformat/rtpenc.c ff_rtp_send_xiph(s1, pkt->data, size); size 611 libavformat/rtpenc.c ff_rtp_send_vp8(s1, pkt->data, size); size 614 libavformat/rtpenc.c ff_rtp_send_vp9(s1, pkt->data, size); size 617 libavformat/rtpenc.c rtp_send_ilbc(s1, pkt->data, size); size 620 libavformat/rtpenc.c ff_rtp_send_jpeg(s1, pkt->data, size); size 623 libavformat/rtpenc.c if (size > s->max_payload_size) { size 626 libavformat/rtpenc.c size, s->max_payload_size); size 632 libavformat/rtpenc.c rtp_send_raw(s1, pkt->data, size); size 84 libavformat/rtpenc.h void ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size); size 85 libavformat/rtpenc.h void ff_rtp_send_h261(AVFormatContext *s1, const uint8_t *buf1, int size); size 86 libavformat/rtpenc.h void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size); size 87 libavformat/rtpenc.h void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf1, int size, size 89 libavformat/rtpenc.h void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size); size 90 libavformat/rtpenc.h void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size); size 91 libavformat/rtpenc.h void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size); size 92 libavformat/rtpenc.h void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size); size 93 libavformat/rtpenc.h void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size); size 94 libavformat/rtpenc.h void ff_rtp_send_vc2hq(AVFormatContext *s1, const uint8_t *buf, int size, int interlaced); size 95 libavformat/rtpenc.h void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buff, int size); size 96 libavformat/rtpenc.h void ff_rtp_send_vp9(AVFormatContext *s1, const uint8_t *buff, int size); size 97 libavformat/rtpenc.h void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buff, int size); size 27 libavformat/rtpenc_aac.c void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size) size 37 libavformat/rtpenc_aac.c size -= 7; size 45 libavformat/rtpenc_aac.c (len + size) > s->max_payload_size || size 66 libavformat/rtpenc_aac.c if (size <= max_packet_size) { size 68 libavformat/rtpenc_aac.c AV_WB16(p, size * 8); size 69 libavformat/rtpenc_aac.c memcpy(s->buf_ptr, buff, size); size 70 libavformat/rtpenc_aac.c s->buf_ptr += size; size 72 libavformat/rtpenc_aac.c int au_size = size; size 77 libavformat/rtpenc_aac.c while (size > 0) { size 78 libavformat/rtpenc_aac.c len = FFMIN(size, max_packet_size); size 81 libavformat/rtpenc_aac.c ff_rtp_send_data(s1, p, len + 4, len == size); size 82 libavformat/rtpenc_aac.c size -= len; size 30 libavformat/rtpenc_amr.c void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size) size 42 libavformat/rtpenc_amr.c len + size - 1 > s->max_payload_size || size 67 libavformat/rtpenc_amr.c size--; size 68 libavformat/rtpenc_amr.c memcpy(s->buf_ptr, buff, size); size 69 libavformat/rtpenc_amr.c s->buf_ptr += size; size 43 libavformat/rtpenc_h263.c void ff_rtp_send_h263(AVFormatContext *s1, const uint8_t *buf1, int size) size 51 libavformat/rtpenc_h263.c while (size > 0) { size 53 libavformat/rtpenc_h263.c if (size >= 2 && (buf1[0] == 0) && (buf1[1] == 0)) { size 56 libavformat/rtpenc_h263.c size -= 2; size 62 libavformat/rtpenc_h263.c len = FFMIN(max_packet_size - 2, size); size 65 libavformat/rtpenc_h263.c if (len < size) { size 76 libavformat/rtpenc_h263.c ff_rtp_send_data(s1, s->buf, q - s->buf, (len == size)); size 79 libavformat/rtpenc_h263.c size -= len; size 101 libavformat/rtpenc_h263_rfc2190.c void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const uint8_t *buf, int size, size 114 libavformat/rtpenc_h263_rfc2190.c init_get_bits(&gb, buf, size*8); size 127 libavformat/rtpenc_h263_rfc2190.c while (size > 0) { size 129 libavformat/rtpenc_h263_rfc2190.c len = FFMIN(s->max_payload_size - 8, size); size 132 libavformat/rtpenc_h263_rfc2190.c if (len < size) { size 178 libavformat/rtpenc_h263_rfc2190.c if (size > 2 && !buf[0] && !buf[1]) size 179 libavformat/rtpenc_h263_rfc2190.c send_mode_a(s1, &info, buf, len, ebits, len == size); size 182 libavformat/rtpenc_h263_rfc2190.c ebits, len == size); size 191 libavformat/rtpenc_h263_rfc2190.c size -= len; size 55 libavformat/rtpenc_h264_hevc.c static void nal_send(AVFormatContext *s1, const uint8_t *buf, int size, int last) size 60 libavformat/rtpenc_h264_hevc.c av_log(s1, AV_LOG_DEBUG, "Sending NAL %x of len %d M=%d\n", buf[0] & 0x1F, size, last); size 61 libavformat/rtpenc_h264_hevc.c if (size <= s->max_payload_size) { size 74 libavformat/rtpenc_h264_hevc.c if (buffered_size + 2 + size > s->max_payload_size) { size 82 libavformat/rtpenc_h264_hevc.c if (buffered_size + 2 + header_size + size <= s->max_payload_size && size 92 libavformat/rtpenc_h264_hevc.c AV_WB16(s->buf_ptr, size); size 94 libavformat/rtpenc_h264_hevc.c memcpy(s->buf_ptr, buf, size); size 95 libavformat/rtpenc_h264_hevc.c s->buf_ptr += size; size 99 libavformat/rtpenc_h264_hevc.c ff_rtp_send_data(s1, buf, size, last); size 106 libavformat/rtpenc_h264_hevc.c "NAL size %d > %d, try -slice-max-size %d\n", size, size 110 libavformat/rtpenc_h264_hevc.c av_log(s1, AV_LOG_DEBUG, "NAL size %d > %d\n", size, s->max_payload_size); size 120 libavformat/rtpenc_h264_hevc.c size -= 1; size 161 libavformat/rtpenc_h264_hevc.c size -= 2; size 167 libavformat/rtpenc_h264_hevc.c while (size + header_size > s->max_payload_size) { size 171 libavformat/rtpenc_h264_hevc.c size -= s->max_payload_size - header_size; size 175 libavformat/rtpenc_h264_hevc.c memcpy(&s->buf[header_size], buf, size); size 176 libavformat/rtpenc_h264_hevc.c ff_rtp_send_data(s1, s->buf, size + header_size, last); size 180 libavformat/rtpenc_h264_hevc.c void ff_rtp_send_h264_hevc(AVFormatContext *s1, const uint8_t *buf1, int size) size 182 libavformat/rtpenc_h264_hevc.c const uint8_t *r, *end = buf1 + size; size 28 libavformat/rtpenc_jpeg.c void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size) size 63 libavformat/rtpenc_jpeg.c for (i = 0; i < size; i++) { size 75 libavformat/rtpenc_jpeg.c if (i + 5 + tables * 65 > size) { size 98 libavformat/rtpenc_jpeg.c if (i + dht_size >= size) size 158 libavformat/rtpenc_jpeg.c if (i > size) { size 178 libavformat/rtpenc_jpeg.c size -= i; size 180 libavformat/rtpenc_jpeg.c for (i = size - 2; i >= 0; i--) { size 183 libavformat/rtpenc_jpeg.c size = i; size 189 libavformat/rtpenc_jpeg.c while (size > 0) { size 196 libavformat/rtpenc_jpeg.c len = FFMIN(size, s->max_payload_size - hdr_size); size 220 libavformat/rtpenc_jpeg.c ff_rtp_send_data(s1, s->buf, len + hdr_size, size == len); size 223 libavformat/rtpenc_jpeg.c size -= len; size 25 libavformat/rtpenc_latm.c void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size) size 38 libavformat/rtpenc_latm.c size -= 7; size 43 libavformat/rtpenc_latm.c header_size = size/0xFF + 1; size 45 libavformat/rtpenc_latm.c s->buf[header_size - 1] = size % 0xFF; size 50 libavformat/rtpenc_latm.c while (size > 0) { size 51 libavformat/rtpenc_latm.c len = FFMIN(size, s->max_payload_size - (!offset ? header_size : 0)); size 52 libavformat/rtpenc_latm.c size -= len; size 55 libavformat/rtpenc_latm.c ff_rtp_send_data(s1, s->buf, header_size + len, !size); size 57 libavformat/rtpenc_latm.c ff_rtp_send_data(s1, buff + offset, len, !size); size 117 libavformat/rtpenc_mpegts.c int ret = 0, size; size 127 libavformat/rtpenc_mpegts.c size = avio_close_dyn_buf(chain->mpegts_ctx->pb, &buf); size 129 libavformat/rtpenc_mpegts.c if (size == 0) { size 135 libavformat/rtpenc_mpegts.c local_pkt.size = size; size 29 libavformat/rtpenc_mpv.c void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size) size 34 libavformat/rtpenc_mpv.c const uint8_t *end = buf1 + size; size 43 libavformat/rtpenc_mpv.c while (size > 0) { size 49 libavformat/rtpenc_mpv.c if (len >= size) { size 50 libavformat/rtpenc_mpv.c len = size; size 110 libavformat/rtpenc_mpv.c ff_rtp_send_data(s1, s->buf, q - s->buf, (len == size)); size 113 libavformat/rtpenc_mpv.c size -= len; size 36 libavformat/rtpenc_vc2hq.c static void send_packet(AVFormatContext *ctx, uint8_t parse_code, int info_hdr_size, const uint8_t *buf, int size, int i, int f, int rtp_m) size 43 libavformat/rtpenc_vc2hq.c if (size > 0) size 44 libavformat/rtpenc_vc2hq.c memcpy(&rtp_ctx->buf[4 + info_hdr_size], buf, size); size 45 libavformat/rtpenc_vc2hq.c ff_rtp_send_data(ctx, rtp_ctx->buf, RTP_VC2HQ_PL_HEADER_SIZE + info_hdr_size + size, rtp_m); size 48 libavformat/rtpenc_vc2hq.c static void send_picture(AVFormatContext *ctx, const uint8_t *buf, int size, int interlaced) size 59 libavformat/rtpenc_vc2hq.c size -= DIRAC_PIC_NR_SIZE; size 62 libavformat/rtpenc_vc2hq.c init_get_bits(&gc, buf, 8 * size); size 87 libavformat/rtpenc_vc2hq.c size -= frag_len; size 89 libavformat/rtpenc_vc2hq.c while (size > 0) { size 90 libavformat/rtpenc_vc2hq.c frag_len = FFMIN(rtp_ctx->max_payload_size - 20 /* pl header */, size); size 96 libavformat/rtpenc_vc2hq.c size -= frag_len; size 97 libavformat/rtpenc_vc2hq.c send_packet(ctx, DIRAC_RTP_PCODE_HQ_PIC_FRAGMENT, 16, buf, frag_len, interlaced, second_field, size > 0 ? 0 : 1); size 26 libavformat/rtpenc_vp8.c void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buf, int size) size 43 libavformat/rtpenc_vp8.c while (size > 0) { size 44 libavformat/rtpenc_vp8.c len = FFMIN(size, max_packet_size); size 48 libavformat/rtpenc_vp8.c ff_rtp_send_data(s1, s->buf, len + header_size, size == len); size 50 libavformat/rtpenc_vp8.c size -= len; size 26 libavformat/rtpenc_vp9.c void ff_rtp_send_vp9(AVFormatContext *ctx, const uint8_t *buf, int size) size 37 libavformat/rtpenc_vp9.c while (size > 0) { size 38 libavformat/rtpenc_vp9.c len = FFMIN(size, rtp_ctx->max_payload_size - RTP_VP9_DESC_REQUIRED_SIZE); size 40 libavformat/rtpenc_vp9.c if (len == size) { size 46 libavformat/rtpenc_vp9.c ff_rtp_send_data(ctx, rtp_ctx->buf, len + RTP_VP9_DESC_REQUIRED_SIZE, size == len); size 48 libavformat/rtpenc_vp9.c size -= len; size 33 libavformat/rtpenc_xiph.c void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size) size 72 libavformat/rtpenc_xiph.c frag = size <= max_pkt_size ? 0 : 1; size 76 libavformat/rtpenc_xiph.c uint8_t *ptr = s->buf_ptr + 2 + size; // what we're going to write size 101 libavformat/rtpenc_xiph.c AV_WB16(q, size); size 103 libavformat/rtpenc_xiph.c memcpy(q, buff, size); size 104 libavformat/rtpenc_xiph.c q += size; size 117 libavformat/rtpenc_xiph.c while (size > 0) { size 118 libavformat/rtpenc_xiph.c int len = (!frag || frag == 3) ? size : max_pkt_size; size 129 libavformat/rtpenc_xiph.c size -= len; size 133 libavformat/rtpenc_xiph.c frag = size <= max_pkt_size ? 3 : 2; size 373 libavformat/rtpproto.c static int rtp_read(URLContext *h, uint8_t *buf, int size) size 392 libavformat/rtpproto.c len = recvfrom(p[i].fd, buf, size, 0, size 414 libavformat/rtpproto.c static int rtp_write(URLContext *h, const uint8_t *buf, int size) size 420 libavformat/rtpproto.c if (size < 2) size 435 libavformat/rtpproto.c return size; size 472 libavformat/rtpproto.c ret = sendto(fd, buf, size, 0, (struct sockaddr *) source, size 486 libavformat/rtpproto.c if ((ret = ffurl_write(hd, buf, size)) < 0) { size 491 libavformat/rtpproto.c if ((ret_fec = ffurl_write(s->fec_hd, buf, size)) < 0) { size 2324 libavformat/rtsp.c static void append_source_addrs(char *buf, int size, const char *name, size 2330 libavformat/rtsp.c av_strlcatf(buf, size, "&%s=%s", name, addrs[0]->addr); size 2332 libavformat/rtsp.c av_strlcatf(buf, size, ",%s", addrs[i]->addr); size 2339 libavformat/rtsp.c int size, i, err; size 2356 libavformat/rtsp.c size = avio_read(s->pb, content, SDP_MAX_SIZE - 1); size 2357 libavformat/rtsp.c if (size <= 0) { size 2361 libavformat/rtsp.c content[size] ='\0'; size 147 libavformat/rtspenc.c int size; size 150 libavformat/rtspenc.c size = avio_close_dyn_buf(rtpctx->pb, &buf); size 153 libavformat/rtspenc.c while (size > 4) { size 163 libavformat/rtspenc.c size -= 4; size 164 libavformat/rtspenc.c if (packet_len > size || packet_len < 2) size 175 libavformat/rtspenc.c size -= packet_len; size 136 libavformat/s337m.c static void bswap_buf24(uint8_t *data, int size) size 140 libavformat/s337m.c for (i = 0; i < size / 3; i++, data += 3) size 176 libavformat/s337m.c if (avio_read(pb, pkt->data, pkt->size) < pkt->size) { size 181 libavformat/s337m.c ff_spdif_bswap_buf16((uint16_t *)pkt->data, (uint16_t *)pkt->data, pkt->size >> 1); size 183 libavformat/s337m.c bswap_buf24(pkt->data, pkt->size); size 45 libavformat/sauce.c #define GET_SAUCE_META(name,size) \ size 46 libavformat/sauce.c if (avio_read(pb, buf, size) == size && buf[0]) { \ size 47 libavformat/sauce.c buf[size] = 0; \ size 159 libavformat/sbgdec.c int *size, int *max_size) size 163 libavformat/sbgdec.c if (*size == *max_size) { size 165 libavformat/sbgdec.c if (*size >= m) size 172 libavformat/sbgdec.c ret = (char *)*array + elsize * *size; size 174 libavformat/sbgdec.c (*size)++; size 857 libavformat/sbgdec.c int size = 0, bufsize = 0, r; size 860 libavformat/sbgdec.c if (bufsize - size < 1024) { size 862 libavformat/sbgdec.c if (bufsize - size < 2) { size 863 libavformat/sbgdec.c size = AVERROR(EFBIG); size 868 libavformat/sbgdec.c size = AVERROR(ENOMEM); size 872 libavformat/sbgdec.c r = avio_read(io, buf, bufsize - size - 1); size 877 libavformat/sbgdec.c size += r; size 879 libavformat/sbgdec.c buf[size] = 0; size 881 libavformat/sbgdec.c return size; size 884 libavformat/sbgdec.c return size; size 1464 libavformat/sbgdec.c return packet->size; size 75 libavformat/sccenc.c for (i = 0; i < pkt->size; i+=3) { size 79 libavformat/sccenc.c if (i >= pkt->size) size 86 libavformat/sccenc.c for (i = 0; i < pkt->size; i+=3) { size 87 libavformat/sccenc.c if (i + 3 > pkt->size) size 300 libavformat/sctp.c static int sctp_read(URLContext *h, uint8_t *buf, int size) size 314 libavformat/sctp.c ret = ff_sctp_recvmsg(s->fd, buf + 2, size - 2, NULL, 0, &info, 0); size 318 libavformat/sctp.c ret = recv(s->fd, buf, size, 0); size 323 libavformat/sctp.c static int sctp_write(URLContext *h, const uint8_t *buf, int size) size 342 libavformat/sctp.c ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR); size 344 libavformat/sctp.c ret = send(s->fd, buf, size, MSG_NOSIGNAL); size 58 libavformat/sdp.c static void sdp_write_address(char *buff, int size, const char *dest_addr, size 67 libavformat/sdp.c av_strlcatf(buff, size, "c=IN %s %s/%d\r\n", dest_type, dest_addr, ttl); size 69 libavformat/sdp.c av_strlcatf(buff, size, "c=IN %s %s\r\n", dest_type, dest_addr); size 74 libavformat/sdp.c static void sdp_write_header(char *buff, int size, struct sdp_session_level *s) size 76 libavformat/sdp.c av_strlcatf(buff, size, "v=%d\r\n" size 82 libavformat/sdp.c sdp_write_address(buff, size, s->dst_addr, s->dst_type, s->ttl); size 83 libavformat/sdp.c av_strlcatf(buff, size, "t=%d %d\r\n" size 89 libavformat/sdp.c static int resolve_destination(char *dest_addr, int size, char *type, size 104 libavformat/sdp.c getnameinfo(ai->ai_addr, ai->ai_addrlen, dest_addr, size, size 115 libavformat/sdp.c static int resolve_destination(char *dest_addr, int size, char *type, size 122 libavformat/sdp.c static int sdp_get_address(char *dest_addr, int size, int *ttl, const char *url) size 128 libavformat/sdp.c av_url_split(proto, sizeof(proto), NULL, 0, dest_addr, size, &port, NULL, 0, url); size 483 libavformat/sdp.c static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int payload_type, AVFormatContext *fmt) size 490 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d VC2/90000\r\n", payload_type); size 500 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n" size 515 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type); size 517 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", payload_type, pic_fmt); size 529 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H263-2000/90000\r\n" size 537 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H265/90000\r\n", payload_type); size 539 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", size 546 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MP4V-ES/90000\r\n" size 557 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MP4A-LATM/%d/%d\r\n" size 574 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n" size 584 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n", size 590 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d L24/%d/%d\r\n", size 596 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n", size 602 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n", size 607 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n" size 613 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n" size 626 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d vorbis/%d/%d\r\n" size 655 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d theora/90000\r\n" size 664 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n", size 668 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d VP9/90000\r\n", size 673 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n", size 678 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n", size 684 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d AAL2-G726-%d/%d\r\n", size 692 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n", size 699 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n" size 705 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n", size 718 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d vbr=%s\r\n", size 729 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d opus/48000/2\r\n", size 732 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d sprop-stereo=1\r\n", size 746 libavformat/sdp.c void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 763 libavformat/sdp.c av_strlcatf(buff, size, "m=%s %d RTP/AVP %d\r\n", type, port, payload_type); size 764 libavformat/sdp.c sdp_write_address(buff, size, dest_addr, dest_type, ttl); size 766 libavformat/sdp.c av_strlcatf(buff, size, "b=AS:%"PRId64"\r\n", p->bit_rate / 1000); size 769 libavformat/sdp.c sdp_write_media_attributes(buff, size, st, payload_type, fmt); size 772 libavformat/sdp.c int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) size 779 libavformat/sdp.c memset(buf, 0, size); size 803 libavformat/sdp.c sdp_write_header(buf, size, &s); size 815 libavformat/sdp.c ff_sdp_write_media(buf, size, ac[i]->streams[j], index++, size 820 libavformat/sdp.c av_strlcatf(buf, size, size 830 libavformat/sdp.c av_strlcatf(buf, size, size 842 libavformat/sdp.c int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) size 847 libavformat/sdp.c void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 29 libavformat/sdsdec.c int size; size 98 libavformat/sdsdec.c s->size = 60 * 4; size 101 libavformat/sdsdec.c s->size = 40 * 4; size 104 libavformat/sdsdec.c s->size = 30 * 4; size 115 libavformat/sdsdec.c st->duration = (avio_size(pb) - 21) / (127) * s->size / 4; size 137 libavformat/sdsdec.c ret = av_new_packet(pkt, s->size); size 42 libavformat/segafilmenc.c int32_t size; size 77 libavformat/segafilmenc.c avio_wb32(pb, pkt->size); size 100 libavformat/segafilmenc.c metadata->size = pkt->size; size 104 libavformat/segafilmenc.c metadata->index = film->last->index + film->last->size; size 120 libavformat/segafilmenc.c if (encoded_buf_size != pkt->size && (pkt->size % encoded_buf_size) != 0) { size 121 libavformat/segafilmenc.c avio_write(pb, pkt->data, pkt->size); size 127 libavformat/segafilmenc.c AV_WB24(&pkt->data[1], pkt->size - 8 + 2); size 128 libavformat/segafilmenc.c metadata->size += 2; size 132 libavformat/segafilmenc.c avio_write(pb, &pkt->data[10], pkt->size - 10); size 136 libavformat/segafilmenc.c avio_write(pb, pkt->data, pkt->size); size 199 libavformat/segment.c size_t size; size 226 libavformat/segment.c size = strlen(av_basename(oc->url)) + 1; size 228 libavformat/segment.c size += strlen(seg->entry_prefix); size 230 libavformat/segment.c if ((ret = av_reallocp(&seg->cur_entry.filename, size)) < 0) size 232 libavformat/segment.c snprintf(seg->cur_entry.filename, size, "%s%s", size 211 libavformat/sierravmd.c uint32_t size; size 220 libavformat/sierravmd.c size = AV_RL32(&chunk[2]); size 221 libavformat/sierravmd.c if (size > INT_MAX / 2) { size 226 libavformat/sierravmd.c if(!size && type != 1) size 234 libavformat/sierravmd.c vmd->frame_table[total_frames].frame_size = size; size 246 libavformat/sierravmd.c vmd->frame_table[total_frames].frame_size = size; size 252 libavformat/sierravmd.c current_offset += size; size 198 libavformat/siff.c unsigned int size; size 215 libavformat/siff.c size = c->pktsize - c->sndsize - c->gmcsize - 2; size 216 libavformat/siff.c size = ffio_limit(s->pb, size); size 217 libavformat/siff.c if ((ret = av_new_packet(pkt, size + c->gmcsize + 2)) < 0) size 222 libavformat/siff.c if (avio_read(s->pb, pkt->data + 2 + c->gmcsize, size) != size) { size 247 libavformat/siff.c return pkt->size; size 258 libavformat/smacker.c int size, sz, t, off, j, pos; size 263 libavformat/smacker.c size = avio_r8(s->pb); size 264 libavformat/smacker.c size = size * 4 - 1; size 265 libavformat/smacker.c if(size + 1 > frame_size) size 267 libavformat/smacker.c frame_size -= size; size 270 libavformat/smacker.c pos = avio_tell(s->pb) + size; size 308 libavformat/smacker.c uint32_t size; size 311 libavformat/smacker.c size = avio_rl32(s->pb) - 4; size 312 libavformat/smacker.c if (!size || size + 4LL > frame_size) { size 316 libavformat/smacker.c frame_size -= size; size 319 libavformat/smacker.c if ((err = av_reallocp(&smk->bufs[smk->curstream], size)) < 0) { size 323 libavformat/smacker.c smk->buf_sizes[smk->curstream] = size; size 324 libavformat/smacker.c ret = avio_read(s->pb, smk->bufs[smk->curstream], size); size 325 libavformat/smacker.c if(ret != size) size 344 libavformat/smacker.c pkt->size = ret + 769; size 353 libavformat/smacker.c pkt->size = smk->buf_sizes[smk->curstream]; size 143 libavformat/smjpegdec.c uint32_t dtype, size, timestamp; size 156 libavformat/smjpegdec.c size = avio_rb32(s->pb); size 157 libavformat/smjpegdec.c ret = av_get_packet(s->pb, pkt, size); size 166 libavformat/smjpegdec.c size = avio_rb32(s->pb); size 167 libavformat/smjpegdec.c ret = av_get_packet(s->pb, pkt, size); size 110 libavformat/smjpegenc.c avio_wb32(pb, pkt->size); size 111 libavformat/smjpegenc.c avio_write(pb, pkt->data, pkt->size); size 47 libavformat/smoothstreamingenc.c int64_t start_pos, size; size 115 libavformat/smoothstreamingenc.c if (offset >= frag->start_pos && offset < frag->start_pos + frag->size) { size 146 libavformat/smoothstreamingenc.c int size = par->extradata_size; size 149 libavformat/smoothstreamingenc.c ff_avc_write_annexb_extradata(ptr, &ptr, &size); size 155 libavformat/smoothstreamingenc.c os->private_str = av_mallocz(2*size + 1); size 158 libavformat/smoothstreamingenc.c for (i = 0; i < size; i++) size 405 libavformat/smoothstreamingenc.c static int parse_fragment(AVFormatContext *s, const char *filename, int64_t *start_ts, int64_t *duration, int64_t *moof_size, int64_t size) size 414 libavformat/smoothstreamingenc.c if (*moof_size < 8 || *moof_size > size) size 455 libavformat/smoothstreamingenc.c static int add_fragment(OutputStream *os, const char *file, const char *infofile, int64_t start_time, int64_t duration, int64_t start_pos, int64_t size) size 476 libavformat/smoothstreamingenc.c frag->size = size; size 483 libavformat/smoothstreamingenc.c static int copy_moof(AVFormatContext *s, const char* infile, const char *outfile, int64_t size) size 493 libavformat/smoothstreamingenc.c while (size > 0) { size 495 libavformat/smoothstreamingenc.c int n = FFMIN(size, sizeof(buf)); size 502 libavformat/smoothstreamingenc.c size -= n; size 518 libavformat/smoothstreamingenc.c int64_t size; size 535 libavformat/smoothstreamingenc.c size = os->tail_pos - os->cur_start_pos; size 536 libavformat/smoothstreamingenc.c if ((ret = parse_fragment(s, filename, &start_ts, &duration, &moof_size, size)) < 0) size 540 libavformat/smoothstreamingenc.c int64_t bitrate = (int64_t) size * 8 * AV_TIME_BASE / av_rescale_q(duration, s->streams[i]->time_base, AV_TIME_BASE_Q); size 565 libavformat/smoothstreamingenc.c os->cur_start_pos, size); size 51 libavformat/smush.c uint32_t magic, nframes, size, subversion, i; size 63 libavformat/smush.c size = avio_rb32(pb); size 64 libavformat/smush.c if (size < 3 * 256 + 6) size 78 libavformat/smush.c avio_skip(pb, size - (3 * 256 + 6)); size 83 libavformat/smush.c size = avio_rb32(pb); size 84 libavformat/smush.c if (size < 14) size 97 libavformat/smush.c avio_skip(pb, size - 14); size 102 libavformat/smush.c size = avio_rb32(pb); size 103 libavformat/smush.c while (!got_audio && ((read + 8) < size)) { size 136 libavformat/smush.c avio_skip(pb, size - read); size 197 libavformat/smush.c uint32_t sig, size; size 203 libavformat/smush.c size = avio_rb32(pb); size 209 libavformat/smush.c if ((ret = av_get_packet(pb, pkt, size)) < 0) size 216 libavformat/smush.c if ((ret = av_get_packet(pb, pkt, size)) < 0) size 224 libavformat/smush.c if (size < 13) size 226 libavformat/smush.c if (av_get_packet(pb, pkt, size) < 13) size 237 libavformat/smush.c avio_skip(pb, size); size 199 libavformat/spdifdec.c if (avio_read(pb, pkt->data, pkt->size) < pkt->size) { size 202 libavformat/spdifdec.c ff_spdif_bswap_buf16((uint16_t *)pkt->data, (uint16_t *)pkt->data, pkt->size >> 1); size 211 libavformat/spdifdec.c avio_skip(pb, offset - pkt->size - BURST_HEADER_SIZE); size 130 libavformat/spdifenc.c ctx->hd_buf[0] = av_fast_realloc(ctx->hd_buf[0], &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size); size 134 libavformat/spdifenc.c memcpy(&ctx->hd_buf[0][ctx->hd_buf_filled], pkt->data, pkt->size); size 136 libavformat/spdifenc.c ctx->hd_buf_filled += pkt->size; size 177 libavformat/spdifenc.c int pkt_size = pkt->size; size 257 libavformat/spdifenc.c if (pkt->size < 9) size 306 libavformat/spdifenc.c if (core_size && core_size < pkt->size) { size 426 libavformat/spdifenc.c int total_frame_size = pkt->size; size 428 libavformat/spdifenc.c int data_remaining = pkt->size; size 432 libavformat/spdifenc.c if (pkt->size < 10) size 628 libavformat/spdifenc.c ctx->out_bytes = pkt->size; size 629 libavformat/spdifenc.c ctx->length_code = FFALIGN(pkt->size, 2) << 3; size 64 libavformat/srtenc.c int size, x1 = -1, y1 = -1, x2 = -1, y2 = -1; size 67 libavformat/srtenc.c p = av_packet_get_side_data(pkt, AV_PKT_DATA_SUBTITLE_POSITION, &size); size 68 libavformat/srtenc.c if (p && size == 16) { size 99 libavformat/srtenc.c avio_write(avf->pb, pkt->data, pkt->size); size 96 libavformat/srtpproto.c static int srtp_read(URLContext *h, uint8_t *buf, int size) size 101 libavformat/srtpproto.c ret = ffurl_read(s->rtp_hd, buf, size); size 109 libavformat/srtpproto.c static int srtp_write(URLContext *h, const uint8_t *buf, int size) size 113 libavformat/srtpproto.c return ffurl_write(s->rtp_hd, buf, size); size 114 libavformat/srtpproto.c size = ff_srtp_encrypt(&s->srtp_out, buf, size, s->encryptbuf, size 116 libavformat/srtpproto.c if (size < 0) size 117 libavformat/srtpproto.c return size; size 118 libavformat/srtpproto.c return ffurl_write(s->rtp_hd, s->encryptbuf, size); size 101 libavformat/subfile.c static int subfile_read(URLContext *h, unsigned char *buf, int size) size 109 libavformat/subfile.c size = FFMIN(size, rest); size 110 libavformat/subfile.c ret = ffurl_read(c->h, buf, size); size 53 libavformat/subtitles.c void ff_text_init_buf(FFTextReader *r, void *buf, size_t size) size 56 libavformat/subtitles.c ffio_init_context(&r->buf_pb, buf, size, 0, NULL, NULL, NULL, NULL); size 86 libavformat/subtitles.c void ff_text_read(FFTextReader *r, char *buf, size_t size) size 88 libavformat/subtitles.c for ( ; size > 0; size--) size 121 libavformat/subtitles.c old_len = sub->size; size 411 libavformat/subtitles.c ptrdiff_t ff_subtitles_read_line(FFTextReader *tr, char *buf, size_t size) size 414 libavformat/subtitles.c if (!size) size 416 libavformat/subtitles.c while (cur + 1 < size) { size 70 libavformat/subtitles.h void ff_text_init_buf(FFTextReader *r, void *buf, size_t size); size 100 libavformat/subtitles.h void ff_text_read(FFTextReader *r, char *buf, size_t size); size 210 libavformat/subtitles.h ptrdiff_t ff_subtitles_read_line(FFTextReader *tr, char *buf, size_t size); size 60 libavformat/supdec.c if (pkt->size >= 3) { size 31 libavformat/supenc.c size_t size = pkt->size; size 45 libavformat/supenc.c while (size > 2) { size 48 libavformat/supenc.c if (len > size) { size 50 libavformat/supenc.c size); size 62 libavformat/supenc.c size -= len; size 65 libavformat/supenc.c if (size > 0) { size 67 libavformat/supenc.c size); size 35 libavformat/svag.c unsigned size, align; size 44 libavformat/svag.c size = avio_rl32(s->pb); size 53 libavformat/svag.c st->duration = size / (16 * st->codecpar->channels) * 28; size 291 libavformat/swfdec.c return pkt->size; size 307 libavformat/swfdec.c return pkt->size; size 400 libavformat/swfdec.c if (linesize * height > pkt->size) { size 434 libavformat/swfdec.c res = pkt->size; size 465 libavformat/swfdec.c return pkt->size; size 497 libavformat/swfdec.c pkt->size -= 4; size 498 libavformat/swfdec.c memset(pkt->data+pkt->size, 0, 4); size 499 libavformat/swfdec.c res = avio_read(pb, pkt->data, pkt->size); size 501 libavformat/swfdec.c res = avio_read(pb, pkt->data + 4, pkt->size - 4); size 505 libavformat/swfdec.c if (res != pkt->size) { size 514 libavformat/swfdec.c return pkt->size; size 344 libavformat/swfenc.c AVCodecParameters *par, const uint8_t *buf, int size) size 390 libavformat/swfenc.c avio_write(pb, buf, size); size 413 libavformat/swfenc.c avio_write(pb, buf, size); size 449 libavformat/swfenc.c AVCodecParameters *par, uint8_t *buf, int size) size 457 libavformat/swfenc.c if (av_fifo_size(swf->audio_fifo) + size > AUDIO_FIFO_SIZE) { size 462 libavformat/swfenc.c av_fifo_generic_write(swf->audio_fifo, buf, size, NULL); size 463 libavformat/swfenc.c swf->sound_samples += av_get_audio_frame_duration2(par, size); size 476 libavformat/swfenc.c return swf_write_audio(s, par, pkt->data, pkt->size); size 478 libavformat/swfenc.c return swf_write_video(s, par, pkt->data, pkt->size); size 78 libavformat/takdec.c int size; size 81 libavformat/takdec.c size = avio_rl24(pb); size 89 libavformat/takdec.c if (size <= 3) size 92 libavformat/takdec.c buffer = av_malloc(size - 3 + AV_INPUT_BUFFER_PADDING_SIZE); size 95 libavformat/takdec.c memset(buffer + size - 3, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 98 libavformat/takdec.c if (avio_read(pb, buffer, size - 3) != size - 3) { size 115 libavformat/takdec.c if (size != 19) size 143 libavformat/takdec.c ret = avio_skip(pb, size); size 151 libavformat/takdec.c ret = avpriv_tak_parse_streaminfo(&ti, buffer, size -3); size 164 libavformat/takdec.c st->codecpar->extradata_size = size - 3; size 167 libavformat/takdec.c if (size != 11) { size 171 libavformat/takdec.c init_get_bits8(&gb, buffer, size - 3); size 177 libavformat/takdec.c init_get_bits8(&gb, buffer, size - 3); size 197 libavformat/takdec.c int64_t size, left; size 200 libavformat/takdec.c size = FFMIN(left, 1024); size 201 libavformat/takdec.c if (size <= 0) size 204 libavformat/takdec.c ret = av_get_packet(pb, pkt, size); size 234 libavformat/tcp.c static int tcp_read(URLContext *h, uint8_t *buf, int size) size 244 libavformat/tcp.c ret = recv(s->fd, buf, size, 0); size 250 libavformat/tcp.c static int tcp_write(URLContext *h, const uint8_t *buf, int size) size 260 libavformat/tcp.c ret = send(s->fd, buf, size, MSG_NOSIGNAL); size 209 libavformat/tedcaptionsdec.c content.size = 0; size 247 libavformat/tedcaptionsdec.c if (!content.size || start == AV_NOPTS_VALUE || size 51 libavformat/teeproto.c static int tee_write(URLContext *h, const unsigned char *buf, int size) size 55 libavformat/teeproto.c int main_ret = size; size 58 libavformat/teeproto.c int ret = ffurl_write(c->child[i].url_context, buf, size); size 98 libavformat/tests/movenc.c static int io_write(void *opaque, uint8_t *buf, int size) size 100 libavformat/tests/movenc.c out_size += size; size 101 libavformat/tests/movenc.c av_md5_update(md5, buf, size); size 103 libavformat/tests/movenc.c fwrite(buf, 1, size, out); size 104 libavformat/tests/movenc.c return size; size 107 libavformat/tests/movenc.c static int io_write_data_type(void *opaque, uint8_t *buf, int size, size 129 libavformat/tests/movenc.c size >= 8) size 133 libavformat/tests/movenc.c printf("write_data len %d, time %s, type %s atom %s\n", size, timebuf, str, content); size 134 libavformat/tests/movenc.c return io_write(opaque, buf, size); size 298 libavformat/tests/movenc.c pkt.size = 8; size 332 libavformat/tests/movenc.c pkt.size = 0; size 132 libavformat/tests/seek.c printf("ret:%-10s st:%2d flags:%d dts:%s pts:%s pos:%7" PRId64 " size:%6d", ret_str(ret), pkt.stream_index, pkt.flags, dts_buf, ts_buf, pkt.pos, pkt.size); size 164 libavformat/thp.c unsigned int size; size 179 libavformat/thp.c size = avio_rb32(pb); /* Total size of this frame. */ size 188 libavformat/thp.c ret = av_get_packet(pb, pkt, size); size 191 libavformat/thp.c if (ret != size) { size 236 libavformat/tls_gnutls.c static int tls_read(URLContext *h, uint8_t *buf, int size) size 243 libavformat/tls_gnutls.c ret = gnutls_record_recv(c->session, buf, size); size 251 libavformat/tls_gnutls.c static int tls_write(URLContext *h, const uint8_t *buf, int size) size 258 libavformat/tls_gnutls.c ret = gnutls_record_send(c->session, buf, size); size 152 libavformat/tls_libtls.c static int ff_tls_read(URLContext *h, uint8_t *buf, int size) size 156 libavformat/tls_libtls.c ret = tls_read(p->ctx, buf, size); size 165 libavformat/tls_libtls.c static int ff_tls_write(URLContext *h, const uint8_t *buf, int size) size 169 libavformat/tls_libtls.c ret = tls_write(p->ctx, buf, size); size 297 libavformat/tls_mbedtls.c static int tls_read(URLContext *h, uint8_t *buf, int size) size 302 libavformat/tls_mbedtls.c if ((ret = mbedtls_ssl_read(&tls_ctx->ssl_context, buf, size)) > 0) { size 310 libavformat/tls_mbedtls.c static int tls_write(URLContext *h, const uint8_t *buf, int size) size 315 libavformat/tls_mbedtls.c if ((ret = mbedtls_ssl_write(&tls_ctx->ssl_context, buf, size)) > 0) { size 318 libavformat/tls_openssl.c static int tls_read(URLContext *h, uint8_t *buf, int size) size 325 libavformat/tls_openssl.c ret = SSL_read(c->ssl, buf, size); size 333 libavformat/tls_openssl.c static int tls_write(URLContext *h, const uint8_t *buf, int size) size 340 libavformat/tls_openssl.c ret = SSL_write(c->ssl, buf, size); size 72 libavformat/tls_schannel.c void *data, unsigned long size) size 74 libavformat/tls_schannel.c buffer->cbBuffer = size; size 391 libavformat/tls_schannel.c int size, ret; size 406 libavformat/tls_schannel.c size = c->enc_buf_size - c->enc_buf_offset; size 407 libavformat/tls_schannel.c if (size < SCHANNEL_FREE_BUFFER_SIZE || c->enc_buf_size < min_enc_buf_size) { size 447 libavformat/tls_schannel.c size = inbuf[1].cbBuffer > SCHANNEL_FREE_BUFFER_SIZE ? size 449 libavformat/tls_schannel.c if (c->dec_buf_size - c->dec_buf_offset < size || c->dec_buf_size < len) { size 450 libavformat/tls_schannel.c c->dec_buf_size = c->dec_buf_offset + size; size 461 libavformat/tls_schannel.c size = inbuf[1].cbBuffer; size 462 libavformat/tls_schannel.c if (size) { size 463 libavformat/tls_schannel.c memcpy(c->dec_buf + c->dec_buf_offset, inbuf[1].pvBuffer, size); size 464 libavformat/tls_schannel.c c->dec_buf_offset += size; size 512 libavformat/tls_schannel.c size = FFMIN(len, c->dec_buf_offset); size 513 libavformat/tls_schannel.c if (size) { size 514 libavformat/tls_schannel.c memcpy(buf, c->dec_buf, size); size 515 libavformat/tls_schannel.c memmove(c->dec_buf, c->dec_buf + size, c->dec_buf_offset - size); size 516 libavformat/tls_schannel.c c->dec_buf_offset -= size; size 518 libavformat/tls_schannel.c return size; size 363 libavformat/tls_securetransport.c static int tls_read(URLContext *h, uint8_t *buf, int size) size 370 libavformat/tls_securetransport.c size = FFMIN(available, size); size 371 libavformat/tls_securetransport.c ret = SSLRead(c->ssl_context, buf, size, &processed); size 380 libavformat/tls_securetransport.c static int tls_write(URLContext *h, const uint8_t *buf, int size) size 384 libavformat/tls_securetransport.c int ret = SSLWrite(c->ssl_context, buf, size, &processed); size 120 libavformat/tta.c uint32_t size = avio_rl32(s->pb); size 122 libavformat/tta.c if ((r = av_add_index_entry(st, framepos, i * c->frame_size, size, 0, size 125 libavformat/tta.c framepos += size; size 152 libavformat/tta.c int size, ret; size 163 libavformat/tta.c size = st->index_entries[c->currentframe].size; size 165 libavformat/tta.c ret = av_get_packet(s->pb, pkt, size); size 102 libavformat/ttaenc.c avio_wl32(tta->seek_table, pkt->size); size 129 libavformat/ttaenc.c avio_write(s->pb, pkt.data, pkt.size); size 139 libavformat/ttaenc.c int size; size 148 libavformat/ttaenc.c size = avio_get_dyn_buf(tta->seek_table, &ptr); size 149 libavformat/ttaenc.c avio_write(s->pb, ptr, size); size 86 libavformat/tty.c #define GET_EFI_META(name,size) \ size 88 libavformat/tty.c if (len < 1 || len > size) \ size 90 libavformat/tty.c if (avio_read(pb, buf, size) == size) { \ size 156 libavformat/tty.c pkt->size = av_get_packet(avctx->pb, pkt, n); size 157 libavformat/tty.c if (pkt->size < 0) size 158 libavformat/tty.c return pkt->size; size 474 libavformat/ty.c int size = rec_hdr->rec_size - VIDEO_PES_LENGTH - es_offset1; size 477 libavformat/ty.c if ((ret = av_new_packet(pkt, size)) < 0) size 479 libavformat/ty.c memcpy(pkt->data, ty->chunk + ty->cur_chunk_pos, size); size 480 libavformat/ty.c ty->cur_chunk_pos += size; size 511 libavformat/ty.c if (subrec_type == 0x0c && pkt->size >= 6) size 561 libavformat/ty.c pkt->size -= rec_len - offset; size 572 libavformat/ty.c pkt->size -= ty->pes_length; size 638 libavformat/ty.c if (ty->ac3_pkt_size + pkt->size > AC3_PKT_LENGTH) { size 639 libavformat/ty.c pkt->size -= 2; size 642 libavformat/ty.c ty->ac3_pkt_size += pkt->size; size 702 libavformat/ty.c if (pkt->size > AC3_PKT_LENGTH) { size 703 libavformat/ty.c pkt->size -= 2; size 706 libavformat/ty.c ty->ac3_pkt_size = pkt->size; size 942 libavformat/udp.c static int udp_read(URLContext *h, uint8_t *buf, int size) size 960 libavformat/udp.c if(avail > size){ size 962 libavformat/udp.c avail= size; size 999 libavformat/udp.c ret = recvfrom(s->udp_fd, buf, size, 0, (struct sockaddr *)&addr, &addr_len); size 1007 libavformat/udp.c static int udp_write(URLContext *h, const uint8_t *buf, int size) size 1028 libavformat/udp.c if(av_fifo_space(s->fifo) < size + 4) { size 1033 libavformat/udp.c AV_WL32(tmp, size); size 1035 libavformat/udp.c av_fifo_generic_write(s->fifo, (uint8_t *)buf, size, NULL); /* the data */ size 1038 libavformat/udp.c return size; size 1048 libavformat/udp.c ret = sendto (s->udp_fd, buf, size, 0, size 1052 libavformat/udp.c ret = send(s->udp_fd, buf, size, 0); size 31 libavformat/uncodedframecrcenc.c static void cksum_line_ ## name(unsigned *cksum, void *data, unsigned size) \ size 35 libavformat/uncodedframecrcenc.c for (; size > 0; size--, p++) { \ size 103 libavformat/unix.c static int unix_read(URLContext *h, uint8_t *buf, int size) size 113 libavformat/unix.c ret = recv(s->fd, buf, size, 0); size 119 libavformat/unix.c static int unix_write(URLContext *h, const uint8_t *buf, int size) size 129 libavformat/unix.c ret = send(s->fd, buf, size, MSG_NOSIGNAL); size 37 libavformat/url.c int ff_url_join(char *str, int size, const char *proto, size 47 libavformat/url.c av_strlcatf(str, size, "%s://", proto); size 49 libavformat/url.c av_strlcatf(str, size, "%s@", authorization); size 56 libavformat/url.c av_strlcat(str, "[", size); size 57 libavformat/url.c av_strlcat(str, hostname, size); size 58 libavformat/url.c av_strlcat(str, "]", size); size 60 libavformat/url.c av_strlcat(str, hostname, size); size 66 libavformat/url.c av_strlcat(str, hostname, size); size 69 libavformat/url.c av_strlcatf(str, size, ":%d", port); size 75 libavformat/url.c vsnprintf(str + len, size > len ? size - len : 0, fmt, vl); size 81 libavformat/url.c static void trim_double_dot_url(char *buf, const char *rel, int size) size 110 libavformat/url.c av_strlcat(tmp_path, "/", size); size 112 libavformat/url.c av_strlcat(tmp_path, p, size); size 117 libavformat/url.c av_strlcat(buf, "/", size); size 119 libavformat/url.c av_strlcat(buf, tmp_path, size); size 122 libavformat/url.c void ff_make_absolute_url(char *buf, int size, const char *base, size 133 libavformat/url.c av_strlcpy(buf, base, size); size 147 libavformat/url.c av_strlcat(buf, rel, size); size 148 libavformat/url.c trim_double_dot_url(tmp_path, buf, size); size 149 libavformat/url.c memset(buf, 0, size); size 150 libavformat/url.c av_strlcpy(buf, tmp_path, size); size 155 libavformat/url.c memset(buf, 0, size); size 156 libavformat/url.c trim_double_dot_url(buf, rel, size); size 160 libavformat/url.c av_strlcpy(buf, base, size); size 169 libavformat/url.c av_strlcat(buf, rel, size); size 170 libavformat/url.c trim_double_dot_url(tmp_path, buf, size); size 171 libavformat/url.c memset(buf, 0, size); size 172 libavformat/url.c av_strlcpy(buf, tmp_path, size); size 207 libavformat/url.c av_strlcat(buf, "/", size); size 217 libavformat/url.c av_strlcat(buf, rel, size); size 218 libavformat/url.c trim_double_dot_url(tmp_path, buf, size); size 219 libavformat/url.c memset(buf, 0, size); size 220 libavformat/url.c av_strlcpy(buf, tmp_path, size); size 228 libavformat/url.c entry->size = -1; size 78 libavformat/url.h int (*url_read)( URLContext *h, unsigned char *buf, int size); size 79 libavformat/url.h int (*url_write)(URLContext *h, const unsigned char *buf, int size); size 186 libavformat/url.h int ffurl_read(URLContext *h, unsigned char *buf, int size); size 195 libavformat/url.h int ffurl_read_complete(URLContext *h, unsigned char *buf, int size); size 203 libavformat/url.h int ffurl_write(URLContext *h, const unsigned char *buf, int size); size 303 libavformat/url.h int ff_url_join(char *str, int size, const char *proto, size 315 libavformat/url.h void ff_make_absolute_url(char *buf, int size, const char *base, size 243 libavformat/utils.c int ffio_limit(AVIOContext *s, int size) size 247 libavformat/utils.c if (remaining < size) { size 255 libavformat/utils.c if (s->maxsize>= 0 && remaining+1 < size) { size 256 libavformat/utils.c av_log(NULL, remaining ? AV_LOG_ERROR : AV_LOG_DEBUG, "Truncating packet of size %d to %"PRId64"\n", size, remaining+1); size 257 libavformat/utils.c size = remaining+1; size 260 libavformat/utils.c return size; size 265 libavformat/utils.c static int append_packet_chunked(AVIOContext *s, AVPacket *pkt, int size) size 267 libavformat/utils.c int orig_size = pkt->size; size 271 libavformat/utils.c int prev_size = pkt->size; size 276 libavformat/utils.c read_size = size; size 294 libavformat/utils.c size -= read_size; size 295 libavformat/utils.c } while (size > 0); size 296 libavformat/utils.c if (size > 0) size 299 libavformat/utils.c if (!pkt->size) size 301 libavformat/utils.c return pkt->size > orig_size ? pkt->size - orig_size : ret; size 304 libavformat/utils.c int av_get_packet(AVIOContext *s, AVPacket *pkt, int size) size 308 libavformat/utils.c pkt->size = 0; size 311 libavformat/utils.c return append_packet_chunked(s, pkt, size); size 314 libavformat/utils.c int av_append_packet(AVIOContext *s, AVPacket *pkt, int size) size 316 libavformat/utils.c if (!pkt->size) size 317 libavformat/utils.c return av_get_packet(s, pkt, size); size 318 libavformat/utils.c return append_packet_chunked(s, pkt, size); size 481 libavformat/utils.c if (s->streams[i]->attached_pic.size <= 0) { size 718 libavformat/utils.c uint8_t *new_buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE); size 726 libavformat/utils.c memcpy(pd->buf + pd->buf_size, pkt->data, pkt->size); size 727 libavformat/utils.c pd->buf_size += pkt->size; size 741 libavformat/utils.c if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) { size 831 libavformat/utils.c pkt->size = 0; size 846 libavformat/utils.c s->internal->raw_packet_buffer_remaining_size += pkt->size; size 925 libavformat/utils.c s->internal->raw_packet_buffer_remaining_size -= pkt1->size; size 998 libavformat/utils.c frame_size = av_get_audio_frame_duration(st->internal->avctx, pkt->size); size 1001 libavformat/utils.c frame_size = av_get_audio_frame_duration2(st->codecpar, pkt->size); size 1323 libavformat/utils.c if (pc && st->need_parsing == AVSTREAM_PARSE_TIMESTAMPS && pkt->size) { size 1325 libavformat/utils.c offset = av_rescale(pc->offset, pkt->duration, pkt->size); size 1449 libavformat/utils.c int size = pkt->size; size 1452 libavformat/utils.c if (size || flush) { size 1459 libavformat/utils.c while (size > 0 || (flush && got_output)) { size 1465 libavformat/utils.c &out_pkt.data, &out_pkt.size, data, size, size 1472 libavformat/utils.c size -= len; size 1474 libavformat/utils.c got_output = !!out_pkt.size; size 1476 libavformat/utils.c if (!out_pkt.size) size 1641 libavformat/utils.c pkt->size); size 1649 libavformat/utils.c pkt->size, pkt->duration, pkt->flags); size 1732 libavformat/utils.c dst_data = av_packet_new_side_data(pkt, src_sd->type, src_sd->size); size 1738 libavformat/utils.c memcpy(dst_data, src_sd->data, src_sd->size); size 1763 libavformat/utils.c pkt->size, pkt->duration, pkt->flags); size 1990 libavformat/utils.c int size, int distance, int flags) size 2001 libavformat/utils.c if (size < 0 || size > 0x3FFFFFFF) size 2039 libavformat/utils.c ie->size = size; size 2046 libavformat/utils.c int size, int distance, int flags) size 2051 libavformat/utils.c timestamp, size, distance, flags); size 2130 libavformat/utils.c skip = FFMAX(skip, e1->size); size 2856 libavformat/utils.c read_size += pkt->size; size 3103 libavformat/utils.c while ((pkt.size > 0 || (!pkt.data && got_picture)) && size 3115 libavformat/utils.c pkt.size = 0; size 3127 libavformat/utils.c pkt.size = 0; size 3321 libavformat/utils.c int ff_alloc_extradata(AVCodecParameters *par, int size) size 3326 libavformat/utils.c if (size < 0 || size >= INT32_MAX - AV_INPUT_BUFFER_PADDING_SIZE) size 3329 libavformat/utils.c par->extradata = av_malloc(size + AV_INPUT_BUFFER_PADDING_SIZE); size 3333 libavformat/utils.c memset(par->extradata + size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 3334 libavformat/utils.c par->extradata_size = size; size 3339 libavformat/utils.c int ff_get_extradata(AVFormatContext *s, AVCodecParameters *par, AVIOContext *pb, int size) size 3341 libavformat/utils.c int ret = ff_alloc_extradata(par, size); size 3344 libavformat/utils.c ret = avio_read(pb, par->extradata, size); size 3345 libavformat/utils.c if (ret != size) { size 3348 libavformat/utils.c av_log(s, AV_LOG_ERROR, "Failed to read extradata of size %d\n", size); size 3607 libavformat/utils.c dst_data = av_stream_new_side_data(st, sd_src->type, sd_src->size); size 3610 libavformat/utils.c memcpy(dst_data, sd_src->data, sd_src->size); size 3848 libavformat/utils.c read_size += pkt->size; size 4367 libavformat/utils.c src->side_data[i].size); size 4371 libavformat/utils.c dst->side_data[i].size = src->side_data[i].size; size 5075 libavformat/utils.c int size = 4; size 5080 libavformat/utils.c size += 4; size 5084 libavformat/utils.c size += 8; size 5088 libavformat/utils.c size += 4; size 5092 libavformat/utils.c size += 8; size 5095 libavformat/utils.c data = av_packet_new_side_data(pkt, AV_PKT_DATA_PARAM_CHANGE, size); size 5462 libavformat/utils.c int ret, size = 0; size 5467 libavformat/utils.c size = sizeof(avci100_1080p_extradata); size 5470 libavformat/utils.c size = sizeof(avci100_1080i_extradata); size 5475 libavformat/utils.c size = sizeof(avci50_1080p_extradata); size 5478 libavformat/utils.c size = sizeof(avci50_1080i_extradata); size 5482 libavformat/utils.c size = sizeof(avci100_720p_extradata); size 5485 libavformat/utils.c size = sizeof(avci50_720p_extradata); size 5488 libavformat/utils.c if (!size) size 5491 libavformat/utils.c if ((ret = ff_alloc_extradata(st->codecpar, size)) < 0) size 5493 libavformat/utils.c memcpy(st->codecpar->extradata, data, size); size 5499 libavformat/utils.c enum AVPacketSideDataType type, int *size) size 5505 libavformat/utils.c if (size) size 5506 libavformat/utils.c *size = st->side_data[i].size; size 5510 libavformat/utils.c if (size) size 5511 libavformat/utils.c *size = 0; size 5516 libavformat/utils.c uint8_t *data, size_t size) size 5527 libavformat/utils.c sd->size = size; size 5546 libavformat/utils.c sd->size = size; size 5552 libavformat/utils.c int size) size 5555 libavformat/utils.c uint8_t *data = av_malloc(size); size 5560 libavformat/utils.c ret = av_stream_add_side_data(st, type, data, size); size 5626 libavformat/utils.c &new_pkt.data, &new_pkt.size, size 5627 libavformat/utils.c pkt->data, pkt->size, size 5629 libavformat/utils.c if (a == 0 && new_pkt.size == 0 && new_pkt.side_data_elems == 0) { size 5635 libavformat/utils.c uint8_t *t = av_malloc(new_pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow size 5637 libavformat/utils.c memcpy(t, new_pkt.data, new_pkt.size); size 5638 libavformat/utils.c memset(t + new_pkt.size, 0, AV_INPUT_BUFFER_PADDING_SIZE); size 5647 libavformat/utils.c new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size, size 5726 libavformat/utils.c int size; size 5728 libavformat/utils.c side_data = av_packet_get_side_data(pkt, AV_PKT_DATA_PALETTE, &size); size 5730 libavformat/utils.c if (size != AVPALETTE_SIZE) { size 5741 libavformat/utils.c palette[i] = AV_RL32(pkt->data + pkt->size - AVPALETTE_SIZE + i*4); size 434 libavformat/vapoursynth.c frame->buf[i]->size = frame->linesize[i] * plane_h; size 447 libavformat/vapoursynth.c pkt->size = pkt->buf->size; size 37 libavformat/vc1test.c uint32_t size; size 42 libavformat/vc1test.c size = AV_RL32(&p->buf[4]); size 43 libavformat/vc1test.c if (p->buf[3] != 0xC5 || size < 4 || size > p->buf_size - 20 || size 44 libavformat/vc1test.c AV_RL32(&p->buf[size+16]) != 0xC) size 56 libavformat/vc1test.c uint32_t size; size 59 libavformat/vc1test.c if (avio_r8(pb) != 0xC5 || ((size = avio_rl32(pb)) < 4)) size 73 libavformat/vc1test.c avio_skip(pb, size - 4); size 116 libavformat/vc1test.c return pkt->size; size 61 libavformat/vc1testenc.c if (!pkt->size) size 63 libavformat/vc1testenc.c avio_wl32(pb, pkt->size | ((pkt->flags & AV_PKT_FLAG_KEY) ? 0x80000000 : 0)); size 65 libavformat/vc1testenc.c avio_write(pb, pkt->data, pkt->size); size 39 libavformat/vividas.c int size, n_packets; size 45 libavformat/vividas.c int size, flag; size 122 libavformat/vividas.c static void xor_block(void *p1, void *p2, unsigned size, int key, unsigned *key_ptr) size 128 libavformat/vividas.c size >>= 2; size 130 libavformat/vividas.c while (size > 0) { size 135 libavformat/vividas.c size--; size 141 libavformat/vividas.c static void decode_block(uint8_t *src, uint8_t *dest, unsigned size, size 145 libavformat/vividas.c unsigned s = size; size 149 libavformat/vividas.c if (!size) size 174 libavformat/vividas.c size -= s; size 175 libavformat/vividas.c memcpy(tmp, src + size, s); size 177 libavformat/vividas.c memcpy(dest + size, tmp, s); size 196 libavformat/vividas.c static uint8_t *read_vblock(AVIOContext *src, uint32_t *size, size 216 libavformat/vividas.c *size = n; size 231 libavformat/vividas.c static uint8_t *read_sb_block(AVIOContext *src, unsigned *size, size 266 libavformat/vividas.c *size = n; size 279 libavformat/vividas.c static int track_header(VividasDemuxContext *viv, AVFormatContext *s, uint8_t *buf, int size) size 287 libavformat/vividas.c ffio_init_context(pb, buf, size, 0, NULL, NULL, NULL, NULL); size 427 libavformat/vividas.c static int track_index(VividasDemuxContext *viv, AVFormatContext *s, uint8_t *buf, unsigned size) size 436 libavformat/vividas.c ffio_init_context(pb, buf, size, 0, NULL, NULL, NULL, NULL); size 441 libavformat/vividas.c if (viv->n_sb_blocks < 0 || viv->n_sb_blocks > size / 2) size 462 libavformat/vividas.c viv->sb_blocks[i].size = size_tmp; size 465 libavformat/vividas.c off += viv->sb_blocks[i].size; size 486 libavformat/vividas.c uint32_t size = 0; size 498 libavformat/vividas.c viv->sb_buf = read_sb_block(s->pb, &size, &viv->sb_key, expected_size); size 503 libavformat/vividas.c pb = avio_alloc_context(viv->sb_buf, size, 0, NULL, NULL, NULL, NULL); size 518 libavformat/vividas.c viv->sb_entries[i].size = ffio_read_varlen(pb); size 615 libavformat/vividas.c load_sb_block(s, viv, viv->sb_blocks[0].size); size 638 libavformat/vividas.c int size = viv->audio_subpackets[viv->current_audio_subpacket+1].start - viv->audio_subpackets[viv->current_audio_subpacket].start; size 641 libavformat/vividas.c ret = av_get_packet(pb, pkt, size); size 669 libavformat/vividas.c off += viv->sb_entries[viv->current_sb_entry].size; size 33 libavformat/voc_packet.c int size, tmp_codec=-1; size 133 libavformat/voc_packet.c size = FFMIN(voc->remaining_size, max_size); size 134 libavformat/voc_packet.c voc->remaining_size -= size; size 136 libavformat/voc_packet.c ret = av_get_packet(pb, pkt, size); size 139 libavformat/voc_packet.c duration = av_get_audio_frame_duration2(st->codecpar, size); size 90 libavformat/vocdec.c voc->remaining_size = e->size; size 96 libavformat/vocdec.c voc->remaining_size = e->size; size 63 libavformat/vocenc.c avio_wl24(pb, pkt->size + 12); size 78 libavformat/vocenc.c avio_wl24(pb, pkt->size + 2); size 85 libavformat/vocenc.c avio_wl24(pb, pkt->size); size 88 libavformat/vocenc.c avio_write(pb, pkt->data, pkt->size); size 88 libavformat/vpk.c unsigned size = vpk->last_block_size / par->channels; size 96 libavformat/vpk.c ret = avio_read(s->pb, pkt->data + i * size, size); size 98 libavformat/vpk.c if (ret != size) { size 100 libavformat/vqf.c int size, ret; size 205 libavformat/vqf.c size = 512; size 210 libavformat/vqf.c size = 1024; size 214 libavformat/vqf.c size = 2048; size 221 libavformat/vqf.c c->frame_bit_len = st->codecpar->bit_rate*size/st->codecpar->sample_rate; size 222 libavformat/vqf.c avpriv_set_pts_info(st, 64, size, st->codecpar->sample_rate); size 238 libavformat/vqf.c int size = (c->frame_bit_len - c->remaining_bits + 7)>>3; size 240 libavformat/vqf.c if ((ret = av_new_packet(pkt, size + 2)) < 0) size 249 libavformat/vqf.c ret = avio_read(s->pb, pkt->data+2, size); size 251 libavformat/vqf.c if (ret != size) { size 255 libavformat/vqf.c c->last_frame_bits = pkt->data[size+1]; size 256 libavformat/vqf.c c->remaining_bits = (size << 3) - c->frame_bit_len + c->remaining_bits; size 258 libavformat/vqf.c return size+2; size 119 libavformat/wavdec.c int64_t size; size 124 libavformat/wavdec.c size = next_tag(pb, &tag, wav->rifx); size 127 libavformat/wavdec.c wav_seek_tag(wav, pb, size, SEEK_CUR); size 129 libavformat/wavdec.c return size; size 158 libavformat/wavdec.c static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st) size 169 libavformat/wavdec.c ret = ff_get_wav_header(s, pb, (*st)->codecpar, size, wav->rifx); size 181 libavformat/wavdec.c static int wav_parse_xma2_tag(AVFormatContext *s, int64_t size, AVStream **st) size 186 libavformat/wavdec.c if (size < 36) size 201 libavformat/wavdec.c if (size != (32 + ((version==3)?0:8) + 4*num_streams)) size 222 libavformat/wavdec.c avio_seek(pb, -size, SEEK_CUR); size 223 libavformat/wavdec.c if ((ret = ff_get_extradata(s, (*st)->codecpar, pb, size)) < 0) size 247 libavformat/wavdec.c static int wav_parse_bext_tag(AVFormatContext *s, int64_t size) size 299 libavformat/wavdec.c if (size > 602) { size 301 libavformat/wavdec.c size -= 602; size 303 libavformat/wavdec.c if (!(coding_history = av_malloc(size + 1))) size 306 libavformat/wavdec.c if ((ret = avio_read(s->pb, coding_history, size)) != size) { size 311 libavformat/wavdec.c coding_history[size] = 0; size 331 libavformat/wavdec.c int64_t size, av_uninit(data_size); size 374 libavformat/wavdec.c size = avio_rl32(pb); size 375 libavformat/wavdec.c if (size < 24) size 388 libavformat/wavdec.c avio_skip(pb, size - 24); /* skip rest of ds64 chunk */ size 394 libavformat/wavdec.c size = next_tag(pb, &tag, wav->rifx); size 395 libavformat/wavdec.c next_tag_ofs = avio_tell(pb) + size; size 403 libavformat/wavdec.c if (!got_xma2 && !got_fmt && (ret = wav_parse_fmt_tag(s, size, &st)) < 0) { size 412 libavformat/wavdec.c if (!got_fmt && !got_xma2 && (ret = wav_parse_xma2_tag(s, size, &st)) < 0) { size 428 libavformat/wavdec.c } else if (size != 0xFFFFFFFF) { size 429 libavformat/wavdec.c data_size = size; size 430 libavformat/wavdec.c next_tag_ofs = wav->data_end = size ? next_tag_ofs : INT64_MAX; size 443 libavformat/wavdec.c if (!(pb->seekable & AVIO_SEEKABLE_NORMAL) || (!rf64 && !size)) size 451 libavformat/wavdec.c if ((ret = wav_parse_bext_tag(s, size)) < 0) size 460 libavformat/wavdec.c if (size != MKTAG('0','2','0','0')) { size 479 libavformat/wavdec.c size = avio_rl24(pb); size 480 libavformat/wavdec.c wav->smv_data_ofs = avio_tell(pb) + (size - 5) * 3; size 496 libavformat/wavdec.c if (size < 4) { size 502 libavformat/wavdec.c ff_read_riff_info(s, size - 4); size 611 libavformat/wavdec.c int64_t size; size 615 libavformat/wavdec.c size = avio_rl64(pb); size 616 libavformat/wavdec.c if (size <= 24) size 619 libavformat/wavdec.c return size; size 620 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - 24); size 629 libavformat/wavdec.c int ret, size; size 661 libavformat/wavdec.c size = avio_rl24(s->pb); size 662 libavformat/wavdec.c ret = av_get_packet(s->pb, pkt, size); size 703 libavformat/wavdec.c size = MAX_SIZE; size 705 libavformat/wavdec.c if (size < st->codecpar->block_align) size 706 libavformat/wavdec.c size = st->codecpar->block_align; size 707 libavformat/wavdec.c size = (size / st->codecpar->block_align) * st->codecpar->block_align; size 709 libavformat/wavdec.c size = FFMIN(size, left); size 710 libavformat/wavdec.c ret = av_get_packet(s->pb, pkt, size); size 793 libavformat/wavdec.c int64_t size, data_ofs = 0; size 823 libavformat/wavdec.c size = avio_rl64(pb); size 824 libavformat/wavdec.c if (size <= 24 || INT64_MAX - size < avio_tell(pb)) size 829 libavformat/wavdec.c ret = ff_get_wav_header(s, pb, st->codecpar, size - 24, 0); size 832 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - size); size 841 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - 32); size 843 libavformat/wavdec.c wav->data_end = avio_tell(pb) + size - 24; size 849 libavformat/wavdec.c avio_skip(pb, size - 24); size 855 libavformat/wavdec.c end = start + FFALIGN(size, INT64_C(8)) - 24; size 883 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - 24); size 373 libavformat/wavenc.c avio_write(pb, pkt->data, pkt->size); size 378 libavformat/wavenc.c for (i = 0; i < pkt->size; i += wav->peak_bps) { size 93 libavformat/wc3movie.c unsigned int size; size 104 libavformat/wc3movie.c wc3->vpkt.data = NULL; wc3->vpkt.size = 0; size 112 libavformat/wc3movie.c size = (avio_rb32(pb) + 1) & (~1); size 120 libavformat/wc3movie.c avio_skip(pb, size); size 130 libavformat/wc3movie.c buffer = av_malloc(size+1); size 133 libavformat/wc3movie.c if ((ret = avio_read(pb, buffer, size)) != size) { size 137 libavformat/wc3movie.c buffer[size] = 0; size 162 libavformat/wc3movie.c size = (avio_rb32(pb) + 1) & (~1); size 205 libavformat/wc3movie.c unsigned int size; size 214 libavformat/wc3movie.c size = (avio_rb32(pb) + 1) & (~1); size 233 libavformat/wc3movie.c ret= av_append_packet(pb, &wc3->vpkt, 8 + size); size 235 libavformat/wc3movie.c if (wc3->vpkt.size > 0) size 238 libavformat/wc3movie.c wc3->vpkt.data = NULL; wc3->vpkt.size = 0; size 246 libavformat/wc3movie.c if ((unsigned)size > sizeof(text) || (ret = avio_read(pb, text, size)) != size) size 251 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 255 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 259 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 267 libavformat/wc3movie.c ret= av_get_packet(pb, pkt, size); size 293 libavformat/wc3movie.c if (wc3->vpkt.size > 0) size 56 libavformat/webpenc.c if (pkt->size) { size 60 libavformat/webpenc.c if (pkt->size < 4) size 65 libavformat/webpenc.c if (pkt->size < skip + 4) size 82 libavformat/webpenc.c if (w->last_pkt.size) { size 87 libavformat/webpenc.c if (w->last_pkt.size < 4) size 92 libavformat/webpenc.c if (w->last_pkt.size < skip + 4) size 131 libavformat/webpenc.c avio_wl32(s->pb, 16 + w->last_pkt.size - skip); size 142 libavformat/webpenc.c avio_write(s->pb, w->last_pkt.data + skip, w->last_pkt.size - skip); size 155 libavformat/webpenc.c avio_write(s->pb, pkt->data, pkt->size); size 90 libavformat/webvttenc.c avio_write(pb, pkt->data, pkt->size); size 37 libavformat/wsddec.c static int empty_string(const char *buf, unsigned size) size 39 libavformat/wsddec.c while (size--) { size 71 libavformat/wsddec.c static int get_metadata(AVFormatContext *s, const char *const tag, const unsigned size) size 74 libavformat/wsddec.c if (!(size + 1)) size 77 libavformat/wsddec.c buf = av_malloc(size + 1); size 81 libavformat/wsddec.c if (avio_read(s->pb, buf, size) != size) { size 86 libavformat/wsddec.c if (empty_string(buf, size)) { size 91 libavformat/wsddec.c buf[size] = 0; size 156 libavformat/wtvdec.c int64_t size; size 209 libavformat/wtvdec.c size = avio_size(s->pb); size 210 libavformat/wtvdec.c if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size) size 640 libavformat/wtvdec.c ff_asf_guid formattype, uint64_t size) size 649 libavformat/wtvdec.c if (size < 32) { size 651 libavformat/wtvdec.c avio_skip(pb, size); size 655 libavformat/wtvdec.c avio_skip(pb, size - 32); size 658 libavformat/wtvdec.c avio_seek(pb, -size, SEEK_CUR); size 660 libavformat/wtvdec.c st = parse_media_type(s, st, sid, mediatype, actual_subtype, actual_formattype, size - 32); size 668 libavformat/wtvdec.c int ret = ff_get_wav_header(s, pb, st->codecpar, size, 0); size 674 libavformat/wtvdec.c avio_skip(pb, size); size 696 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); size 700 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); size 704 libavformat/wtvdec.c avio_skip(pb, size); size 722 libavformat/wtvdec.c avio_skip(pb, size); size 732 libavformat/wtvdec.c avio_skip(pb, size); size 739 libavformat/wtvdec.c avio_skip(pb, size); size 746 libavformat/wtvdec.c avio_skip(pb, size); size 808 libavformat/wtvdec.c int size; size 814 libavformat/wtvdec.c size = avio_rl32(pb); size 815 libavformat/wtvdec.c parse_media_type(s, 0, sid, mediatype, subtype, formattype, size); size 816 libavformat/wtvdec.c consumed += 92 + size; size 822 libavformat/wtvdec.c int size; size 828 libavformat/wtvdec.c size = avio_rl32(pb); size 829 libavformat/wtvdec.c parse_media_type(s, s->streams[stream_index], sid, mediatype, subtype, formattype, size); size 830 libavformat/wtvdec.c consumed += 76 + size; size 1036 libavformat/wtvdec.c while (e <= e_end && frame_nb > e->size) { size 131 libavformat/wtvenc.c #define write_pad(pb, size) ffio_fill(pb, 0, size) size 466 libavformat/wtvenc.c if (st->codecpar->codec_id == AV_CODEC_ID_MJPEG && !wctx->thumbnail.size) { size 491 libavformat/wtvenc.c write_chunk_header(s, &ff_data_guid, pkt->size, INDEX_BASE + pkt->stream_index); size 492 libavformat/wtvenc.c avio_write(pb, pkt->data, pkt->size); size 493 libavformat/wtvenc.c write_pad(pb, WTV_PAD8(pkt->size) - pkt->size); size 542 libavformat/wtvenc.c int size, pad; size 578 libavformat/wtvenc.c size = avio_tell(pb) - sector_pos; size 579 libavformat/wtvenc.c pad = WTV_SECTOR_SIZE- size; size 582 libavformat/wtvenc.c return size; size 666 libavformat/wtvenc.c return strlen("image/jpeg")*2 + 2 + 1 + (e ? strlen(e->value)*2 : 0) + 2 + 4 + pkt->size; size 681 libavformat/wtvenc.c if (wctx->thumbnail.size) { size 690 libavformat/wtvenc.c avio_wl32(pb, wctx->thumbnail.size); size 691 libavformat/wtvenc.c avio_write(pb, wctx->thumbnail.data, wctx->thumbnail.size); size 710 libavformat/wtvenc.c if (wctx->thumbnail.size) { size 131 libavformat/wvdec.c int id, size; size 133 libavformat/wvdec.c size = (id & 0x80) ? avio_rl24(pb) : avio_r8(pb); size 134 libavformat/wvdec.c size <<= 1; size 136 libavformat/wvdec.c size--; size 139 libavformat/wvdec.c if (size <= 1) { size 145 libavformat/wvdec.c switch (size - 2) { size 172 libavformat/wvdec.c "Invalid channel info size %d\n", size); size 177 libavformat/wvdec.c if (size <= 1) { size 183 libavformat/wvdec.c if (size) size 184 libavformat/wvdec.c avio_skip(pb, size-1); size 190 libavformat/wvdec.c avio_skip(pb, size); size 306 libavformat/wvdec.c off = pkt->size; size 50 libavformat/wvenc.c if (pkt->size < WV_HEADER_SIZE || size 57 libavformat/wvenc.c avio_write(ctx->pb, pkt->data, pkt->size); size 46 libavformat/xwma.c int64_t size; size 73 libavformat/xwma.c size = avio_rl32(pb); size 78 libavformat/xwma.c ret = ff_get_wav_header(s, pb, st->codecpar, size, 0); size 171 libavformat/xwma.c size = avio_rl32(pb); size 194 libavformat/xwma.c if (size & 3) { /* Size should be divisible by four */ size 196 libavformat/xwma.c "dpds chunk size %"PRId64" not divisible by 4\n", size); size 198 libavformat/xwma.c dpds_table_size = size / 4; size 201 libavformat/xwma.c "dpds chunk size %"PRId64" invalid\n", size); size 215 libavformat/xwma.c size -= 4; size 218 libavformat/xwma.c avio_skip(pb, size); size 222 libavformat/xwma.c if (size < 0) { size 226 libavformat/xwma.c if (!size) { size 229 libavformat/xwma.c xwma->data_end = avio_tell(pb) + size; size 277 libavformat/xwma.c st->duration = (size<<3) * st->codecpar->sample_rate / st->codecpar->bit_rate; size 288 libavformat/xwma.c int ret, size; size 301 libavformat/xwma.c size = (st->codecpar->block_align > 1) ? st->codecpar->block_align : 2230; size 302 libavformat/xwma.c size = FFMIN(size, left); size 304 libavformat/xwma.c ret = av_get_packet(s->pb, pkt, size); size 57 libavutil/aes_ctr.h void av_aes_ctr_crypt(struct AVAESCTR *a, uint8_t *dst, const uint8_t *src, int size); size 114 libavutil/audio_fifo.c int i, ret, size; size 127 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 129 libavutil/audio_fifo.c ret = av_fifo_generic_write(af->buf[i], data[i], size, NULL); size 130 libavutil/audio_fifo.c if (ret != size) size 140 libavutil/audio_fifo.c int i, ret, size; size 148 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 150 libavutil/audio_fifo.c if ((ret = av_fifo_generic_peek(af->buf[i], data[i], size, NULL)) < 0) size 159 libavutil/audio_fifo.c int i, ret, size; size 172 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 174 libavutil/audio_fifo.c if ((ret = av_fifo_generic_peek_at(af->buf[i], data[i], offset, size, NULL)) < 0) size 183 libavutil/audio_fifo.c int i, size; size 191 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 193 libavutil/audio_fifo.c if (av_fifo_generic_read(af->buf[i], data[i], size, NULL) < 0) size 203 libavutil/audio_fifo.c int i, size; size 210 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 212 libavutil/audio_fifo.c av_fifo_drain(af->buf[i], size); size 705 libavutil/avsscanf.c static void store_int(void *dest, int size, unsigned long long i) size 708 libavutil/avsscanf.c switch (size) { size 730 libavutil/avsscanf.c int size; size 789 libavutil/avsscanf.c size = SIZE_def; size 792 libavutil/avsscanf.c if (*p == 'h') p++, size = SIZE_hh; size 793 libavutil/avsscanf.c else size = SIZE_h; size 796 libavutil/avsscanf.c if (*p == 'l') p++, size = SIZE_ll; size 797 libavutil/avsscanf.c else size = SIZE_l; size 800 libavutil/avsscanf.c size = SIZE_ll; size 804 libavutil/avsscanf.c size = SIZE_l; size 807 libavutil/avsscanf.c size = SIZE_L; size 826 libavutil/avsscanf.c size = SIZE_l; size 835 libavutil/avsscanf.c store_int(dest, size, pos); size 915 libavutil/avsscanf.c store_int(dest, size, x); size 921 libavutil/avsscanf.c y = fffloatscan(f, size, 0); size 925 libavutil/avsscanf.c switch (size) { size 83 libavutil/avstring.c size_t av_strlcpy(char *dst, const char *src, size_t size) size 86 libavutil/avstring.c while (++len < size && *src) size 88 libavutil/avstring.c if (len <= size) size 93 libavutil/avstring.c size_t av_strlcat(char *dst, const char *src, size_t size) size 96 libavutil/avstring.c if (size <= len + 1) size 98 libavutil/avstring.c return len + av_strlcpy(dst + len, src, size - len); size 101 libavutil/avstring.c size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...) size 107 libavutil/avstring.c len += vsnprintf(dst + len, size > len ? size - len : 0, fmt, vl); size 100 libavutil/avstring.h size_t av_strlcpy(char *dst, const char *src, size_t size); size 118 libavutil/avstring.h size_t av_strlcat(char *dst, const char *src, size_t size); size 132 libavutil/avstring.h size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...) av_printf_format(3, 4); size 33 libavutil/bprint.c #define av_bprint_room(buf) ((buf)->size - FFMIN((buf)->len, (buf)->size)) size 41 libavutil/bprint.c if (buf->size == buf->size_max) size 46 libavutil/bprint.c new_size = buf->size > buf->size_max / 2 ? buf->size_max : buf->size * 2; size 56 libavutil/bprint.c buf->size = new_size; size 65 libavutil/bprint.c if (buf->size) size 66 libavutil/bprint.c buf->str[FFMIN(buf->len, buf->size - 1)] = 0; size 78 libavutil/bprint.c buf->size = FFMIN(size_auto, size_max); size 81 libavutil/bprint.c if (size_init > buf->size) size 85 libavutil/bprint.c void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size) size 89 libavutil/bprint.c buf->size = size; size 90 libavutil/bprint.c buf->size_max = size; size 158 libavutil/bprint.c void av_bprint_append_data(AVBPrint *buf, const char *data, unsigned size) size 164 libavutil/bprint.c if (size < room) size 166 libavutil/bprint.c if (av_bprint_alloc(buf, size)) size 170 libavutil/bprint.c real_n = FFMIN(size, room - 1); size 173 libavutil/bprint.c av_bprint_grow(buf, size); size 218 libavutil/bprint.c void av_bprint_get_buffer(AVBPrint *buf, unsigned size, size 221 libavutil/bprint.c if (size > av_bprint_room(buf)) size 222 libavutil/bprint.c av_bprint_alloc(buf, size); size 237 libavutil/bprint.c unsigned real_size = FFMIN(buf->len + 1, buf->size); size 259 libavutil/bprint.c buf->size = real_size; size 34 libavutil/bprint.h #define FF_PAD_STRUCTURE(name, size, ...) \ size 38 libavutil/bprint.h char reserved_padding[size - sizeof(struct ff_pad_helper_##name)]; \ size 85 libavutil/bprint.h unsigned size; /**< allocated memory */ size 122 libavutil/bprint.h void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size); size 146 libavutil/bprint.h void av_bprint_append_data(AVBPrint *buf, const char *data, unsigned size); size 171 libavutil/bprint.h void av_bprint_get_buffer(AVBPrint *buf, unsigned size, size 187 libavutil/bprint.h return buf->len < buf->size; size 29 libavutil/buffer.c AVBufferRef *av_buffer_create(uint8_t *data, int size, size 41 libavutil/buffer.c buf->size = size; size 57 libavutil/buffer.c ref->size = size; size 67 libavutil/buffer.c AVBufferRef *av_buffer_alloc(int size) size 72 libavutil/buffer.c data = av_malloc(size); size 76 libavutil/buffer.c ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0); size 83 libavutil/buffer.c AVBufferRef *av_buffer_allocz(int size) size 85 libavutil/buffer.c AVBufferRef *ret = av_buffer_alloc(size); size 89 libavutil/buffer.c memset(ret->data, 0, size); size 158 libavutil/buffer.c newbuf = av_buffer_alloc(buf->size); size 162 libavutil/buffer.c memcpy(newbuf->data, buf->data, buf->size); size 169 libavutil/buffer.c int av_buffer_realloc(AVBufferRef **pbuf, int size) size 177 libavutil/buffer.c uint8_t *data = av_realloc(NULL, size); size 181 libavutil/buffer.c buf = av_buffer_create(data, size, av_buffer_default_free, NULL, 0); size 191 libavutil/buffer.c } else if (buf->size == size) size 199 libavutil/buffer.c av_buffer_realloc(&new, size); size 203 libavutil/buffer.c memcpy(new->data, buf->data, FFMIN(size, buf->size)); size 209 libavutil/buffer.c tmp = av_realloc(buf->buffer->data, size); size 214 libavutil/buffer.c buf->buffer->size = buf->size = size; size 218 libavutil/buffer.c AVBufferPool *av_buffer_pool_init2(int size, void *opaque, size 219 libavutil/buffer.c AVBufferRef* (*alloc)(void *opaque, int size), size 228 libavutil/buffer.c pool->size = size; size 239 libavutil/buffer.c AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size)) size 247 libavutil/buffer.c pool->size = size; size 295 libavutil/buffer.c memset(buf->data, FF_MEMORY_POISON, pool->size); size 315 libavutil/buffer.c ret = pool->alloc2 ? pool->alloc2(pool->opaque, pool->size) : size 316 libavutil/buffer.c pool->alloc(pool->size); size 345 libavutil/buffer.c ret = av_buffer_create(buf->data, pool->size, pool_release_buffer, size 93 libavutil/buffer.h int size; size 101 libavutil/buffer.h AVBufferRef *av_buffer_alloc(int size); size 107 libavutil/buffer.h AVBufferRef *av_buffer_allocz(int size); size 130 libavutil/buffer.h AVBufferRef *av_buffer_create(uint8_t *data, int size, size 198 libavutil/buffer.h int av_buffer_realloc(AVBufferRef **buf, int size); size 249 libavutil/buffer.h AVBufferPool *av_buffer_pool_init(int size, AVBufferRef* (*alloc)(int size)); size 266 libavutil/buffer.h AVBufferPool *av_buffer_pool_init2(int size, void *opaque, size 267 libavutil/buffer.h AVBufferRef* (*alloc)(void *opaque, int size), size 35 libavutil/buffer_internal.h int size; /**< size of data in bytes */ size 92 libavutil/buffer_internal.h int size; size 94 libavutil/buffer_internal.h AVBufferRef* (*alloc)(int size); size 95 libavutil/buffer_internal.h AVBufferRef* (*alloc2)(void *opaque, int size); size 24 libavutil/dovi_meta.c AVDOVIDecoderConfigurationRecord *av_dovi_alloc(size_t *size) size 31 libavutil/dovi_meta.c if (size) size 32 libavutil/dovi_meta.c *size = sizeof(*dovi); size 68 libavutil/dovi_meta.h AVDOVIDecoderConfigurationRecord *av_dovi_alloc(size_t *size); size 90 libavutil/encryption_info.c AVEncryptionInfo *av_encryption_info_get_side_data(const uint8_t* buffer, size_t size) size 95 libavutil/encryption_info.c if (!buffer || size < FF_ENCRYPTION_INFO_EXTRA) size 102 libavutil/encryption_info.c if (size < FF_ENCRYPTION_INFO_EXTRA + key_id_size + iv_size + subsample_count * 8) size 125 libavutil/encryption_info.c uint8_t *av_encryption_info_add_side_data(const AVEncryptionInfo *info, size_t *size) size 136 libavutil/encryption_info.c *size = FF_ENCRYPTION_INFO_EXTRA + info->key_id_size + info->iv_size + size 138 libavutil/encryption_info.c cur_buffer = buffer = av_malloc(*size); size 740 libavutil/eval.c static int expr_count(AVExpr *e, unsigned *counter, int size, int type) size 744 libavutil/eval.c if (!e || !counter || !size) size 748 libavutil/eval.c expr_count(e->param[i], counter, size, type); size 750 libavutil/eval.c if (e->type == type && e->const_index < size) size 756 libavutil/eval.c int av_expr_count_vars(AVExpr *e, unsigned *counter, int size) size 758 libavutil/eval.c return expr_count(e, counter, size, e_const); size 761 libavutil/eval.c int av_expr_count_func(AVExpr *e, unsigned *counter, int size, int arg) size 763 libavutil/eval.c return expr_count(e, counter, size, ((int[]){e_const, e_func1, e_func2})[arg]); size 97 libavutil/eval.h int av_expr_count_vars(AVExpr *e, unsigned *counter, int size); size 111 libavutil/eval.h int av_expr_count_func(AVExpr *e, unsigned *counter, int size, int arg); size 27 libavutil/fifo.c static AVFifoBuffer *fifo_alloc_common(void *buffer, size_t size) size 38 libavutil/fifo.c f->end = f->buffer + size; size 43 libavutil/fifo.c AVFifoBuffer *av_fifo_alloc(unsigned int size) size 45 libavutil/fifo.c void *buffer = av_malloc(size); size 46 libavutil/fifo.c return fifo_alloc_common(buffer, size); size 49 libavutil/fifo.c AVFifoBuffer *av_fifo_alloc_array(size_t nmemb, size_t size) size 51 libavutil/fifo.c void *buffer = av_malloc_array(nmemb, size); size 52 libavutil/fifo.c return fifo_alloc_common(buffer, nmemb * size); size 107 libavutil/fifo.c int av_fifo_grow(AVFifoBuffer *f, unsigned int size) size 110 libavutil/fifo.c if(size + (unsigned)av_fifo_size(f) < size) size 113 libavutil/fifo.c size += av_fifo_size(f); size 115 libavutil/fifo.c if (old_size < size) size 116 libavutil/fifo.c return av_fifo_realloc2(f, FFMAX(size, 2*old_size)); size 122 libavutil/fifo.c int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, size 125 libavutil/fifo.c int total = size; size 130 libavutil/fifo.c int len = FFMIN(f->end - wptr, size); size 144 libavutil/fifo.c size -= len; size 145 libavutil/fifo.c } while (size > 0); size 148 libavutil/fifo.c return total - size; size 233 libavutil/fifo.c void av_fifo_drain(AVFifoBuffer *f, int size) size 235 libavutil/fifo.c av_assert2(av_fifo_size(f) >= size); size 236 libavutil/fifo.c f->rptr += size; size 239 libavutil/fifo.c f->rndx += size; size 42 libavutil/fifo.h AVFifoBuffer *av_fifo_alloc(unsigned int size); size 50 libavutil/fifo.h AVFifoBuffer *av_fifo_alloc_array(size_t nmemb, size_t size); size 129 libavutil/fifo.h int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); size 139 libavutil/fifo.h int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); size 157 libavutil/fifo.h void av_fifo_drain(AVFifoBuffer *f, int size); size 53 libavutil/file.c int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, size 63 libavutil/file.c *size = 0; size 87 libavutil/file.c *size = off_size; size 89 libavutil/file.c if (!*size) { size 95 libavutil/file.c ptr = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); size 101 libavutil/file.c *size = 0; size 113 libavutil/file.c *size = 0; size 117 libavutil/file.c ptr = MapViewOfFile(mh, FILE_MAP_READ, 0, 0, *size); size 122 libavutil/file.c *size = 0; size 129 libavutil/file.c *bufptr = av_malloc(*size); size 133 libavutil/file.c *size = 0; size 136 libavutil/file.c read(fd, *bufptr, *size); size 144 libavutil/file.c void av_file_unmap(uint8_t *bufptr, size_t size) size 146 libavutil/file.c if (!size || !bufptr) size 149 libavutil/file.c munmap(bufptr, size); size 46 libavutil/file.h int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, size 55 libavutil/file.h void av_file_unmap(uint8_t *bufptr, size_t size); size 394 libavutil/frame.c sd_src->size); size 399 libavutil/frame.c memcpy(sd_dst->data, sd_src->data, sd_src->size); size 684 libavutil/frame.c if (data >= buf->data && data < buf->data + buf->size) size 689 libavutil/frame.c if (data >= buf->data && data < buf->data + buf->size) size 719 libavutil/frame.c ret->size = buf->size; size 729 libavutil/frame.c int size) size 732 libavutil/frame.c AVBufferRef *buf = av_buffer_alloc(size); size 209 libavutil/frame.h int size; size 902 libavutil/frame.h int size); size 65 libavutil/hash.c int size; size 97 libavutil/hash.c return hashdesc[ctx->type].size; size 204 libavutil/hash.c void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size) size 210 libavutil/hash.c memcpy(dst, buf, FFMIN(size, rsize)); size 211 libavutil/hash.c if (size > rsize) size 212 libavutil/hash.c memset(dst + rsize, 0, size - rsize); size 215 libavutil/hash.c void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size) size 221 libavutil/hash.c for (i = 0; i < FFMIN(rsize, size / 2); i++) size 222 libavutil/hash.c snprintf(dst + i * 2, size - i * 2, "%02x", buf[i]); size 225 libavutil/hash.c void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size) size 233 libavutil/hash.c memcpy(dst, b64, FFMIN(osize, size)); size 234 libavutil/hash.c if (size < osize) size 235 libavutil/hash.c dst[size - 1] = 0; size 219 libavutil/hash.h void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size); size 237 libavutil/hash.h void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size); size 255 libavutil/hash.h void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size); size 24 libavutil/hdr_dynamic_metadata.c AVDynamicHDRPlus *av_dynamic_hdr_plus_alloc(size_t *size) size 30 libavutil/hdr_dynamic_metadata.c if (size) size 31 libavutil/hdr_dynamic_metadata.c *size = sizeof(*hdr_plus); size 332 libavutil/hdr_dynamic_metadata.h AVDynamicHDRPlus *av_dynamic_hdr_plus_alloc(size_t *size); size 97 libavutil/hwcontext_cuda.c static AVBufferRef *cuda_pool_alloc(void *opaque, int size) size 113 libavutil/hwcontext_cuda.c err = CHECK_CU(cu->cuMemAlloc(&data, size)); size 117 libavutil/hwcontext_cuda.c ret = av_buffer_create((uint8_t*)data, size, cuda_buffer_free, ctx, 0); size 146 libavutil/hwcontext_cuda.c int size = av_image_get_buffer_size(ctx->sw_format, ctx->width, ctx->height, CUDA_FRAME_ALIGNMENT); size 147 libavutil/hwcontext_cuda.c if (size < 0) size 148 libavutil/hwcontext_cuda.c return size; size 150 libavutil/hwcontext_cuda.c ctx->internal->pool_internal = av_buffer_pool_init2(size, ctx, cuda_pool_alloc, NULL); size 205 libavutil/hwcontext_d3d11va.c static AVBufferRef *d3d11va_pool_alloc(void *opaque, int size) size 125 libavutil/hwcontext_drm.c addr = mmap(NULL, desc->objects[i].size, mmap_prot, MAP_SHARED, size 135 libavutil/hwcontext_drm.c map->length[i] = desc->objects[i].size; size 58 libavutil/hwcontext_drm.h size_t size; size 127 libavutil/hwcontext_dxva2.c static AVBufferRef *dxva2_pool_alloc(void *opaque, int size) size 206 libavutil/hwcontext_opencl.c size_t size; size 208 libavutil/hwcontext_opencl.c cle = clGetPlatformInfo(platform_id, key, 0, NULL, &size); size 211 libavutil/hwcontext_opencl.c str = av_malloc(size); size 214 libavutil/hwcontext_opencl.c cle = clGetPlatformInfo(platform_id, key, size, str, &size); size 219 libavutil/hwcontext_opencl.c av_assert0(strlen(str) + 1 == size); size 227 libavutil/hwcontext_opencl.c size_t size; size 229 libavutil/hwcontext_opencl.c cle = clGetDeviceInfo(device_id, key, 0, NULL, &size); size 232 libavutil/hwcontext_opencl.c str = av_malloc(size); size 235 libavutil/hwcontext_opencl.c cle = clGetDeviceInfo(device_id, key, size, str, &size); size 240 libavutil/hwcontext_opencl.c av_assert0(strlen(str) + 1== size); size 1620 libavutil/hwcontext_opencl.c static AVBufferRef *opencl_pool_alloc(void *opaque, int size) size 2096 libavutil/hwcontext_opencl.c .size = object->size, size 2706 libavutil/hwcontext_opencl.c &fd, desc->objects[i].size, &cle); size 2710 libavutil/hwcontext_opencl.c i, fd, desc->objects[i].size, cle); size 2738 libavutil/hwcontext_opencl.c region.size = image_desc.image_row_pitch * size 197 libavutil/hwcontext_qsv.c static AVBufferRef *qsv_pool_alloc(void *opaque, int size) size 444 libavutil/hwcontext_vaapi.c static AVBufferRef *vaapi_pool_alloc(void *opaque, int size) size 1067 libavutil/hwcontext_vaapi.c buffer_desc.data_size = desc->objects[0].size; size 1168 libavutil/hwcontext_vaapi.c drm_desc->objects[i].size = va_desc.objects[i].size; size 1340 libavutil/hwcontext_vaapi.c .size = mapping->image.data_size, size 214 libavutil/hwcontext_vdpau.c static AVBufferRef *vdpau_pool_alloc(void *opaque, int size) size 1267 libavutil/hwcontext_vulkan.c .allocationSize = req->size, size 1388 libavutil/hwcontext_vulkan.c req.memoryRequirements.size = FFALIGN(req.memoryRequirements.size, size 1406 libavutil/hwcontext_vulkan.c f->size[i] = req.memoryRequirements.size; size 1631 libavutil/hwcontext_vulkan.c static AVBufferRef *vulkan_pool_alloc(void *opaque, int size) size 1808 libavutil/hwcontext_vulkan.c flush_ranges[i].size = VK_WHOLE_SIZE; size 1874 libavutil/hwcontext_vulkan.c map_mem_ranges[i].size = VK_WHOLE_SIZE; size 2040 libavutil/hwcontext_vulkan.c plane_data[j].size = 0; /* The specs say so for all 3 */ size 2078 libavutil/hwcontext_vulkan.c .size = desc->objects[i].size, size 2134 libavutil/hwcontext_vulkan.c f->size[i] = desc->objects[i].size; size 2323 libavutil/hwcontext_vulkan.c .size = dst_f->size[i], size 2575 libavutil/hwcontext_vulkan.c drm_desc->objects[i].size = f->size[i]; size 2732 libavutil/hwcontext_vulkan.c buf_spawn.size = height*(*stride); size 2733 libavutil/hwcontext_vulkan.c buf_spawn.size = FFALIGN(buf_spawn.size, p->props.properties.limits.minMemoryMapAlignment); size 2735 libavutil/hwcontext_vulkan.c buf_spawn.size = imp_size; size 2809 libavutil/hwcontext_vulkan.c .size = VK_WHOLE_SIZE, size 2842 libavutil/hwcontext_vulkan.c .size = VK_WHOLE_SIZE, size 165 libavutil/hwcontext_vulkan.h size_t size[AV_NUM_DATA_POINTERS]; size 114 libavutil/imgutils.c int i, total_size, size[4] = { 0 }, has_plane[4] = { 0 }; size 125 libavutil/imgutils.c size[0] = linesizes[0] * height; size 129 libavutil/imgutils.c data[1] = ptr + size[0]; /* palette is stored here as 256 32 bits words */ size 130 libavutil/imgutils.c return size[0] + 256 * 4; size 136 libavutil/imgutils.c total_size = size[0]; size 139 libavutil/imgutils.c data[i] = data[i-1] + size[i-1]; size 143 libavutil/imgutils.c size[i] = h * linesizes[i]; size 144 libavutil/imgutils.c if (total_size > INT_MAX - size[i]) size 146 libavutil/imgutils.c total_size += size[i]; size 460 libavutil/imgutils.c int size = av_image_get_buffer_size(pix_fmt, width, height, align); size 464 libavutil/imgutils.c if (size > dst_size || size < 0 || !desc) size 494 libavutil/imgutils.c return size; size 140 libavutil/internal.h #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\ size 142 libavutil/internal.h p = av_malloc(size);\ size 143 libavutil/internal.h if (!(p) && (size) != 0) {\ size 149 libavutil/internal.h #define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)\ size 151 libavutil/internal.h p = av_mallocz(size);\ size 152 libavutil/internal.h if (!(p) && (size) != 0) {\ size 82 libavutil/libm.h static inline double ff_eval_poly(const double *coeff, int size, double x) { size 83 libavutil/libm.h double sum = coeff[size-1]; size 85 libavutil/libm.h for (i = size-2; i >= 0; --i) { size 323 libavutil/log.c char lastc = part[3].len && part[3].len <= part[3].size ? part[3].str[part[3].len - 1] : 0; size 45 libavutil/mastering_display_metadata.c AVContentLightMetadata *av_content_light_metadata_alloc(size_t *size) size 49 libavutil/mastering_display_metadata.c if (size) size 50 libavutil/mastering_display_metadata.c *size = sizeof(*metadata); size 117 libavutil/mastering_display_metadata.h AVContentLightMetadata *av_content_light_metadata_alloc(size_t *size); size 54 libavutil/mem.c void *malloc(size_t size); size 55 libavutil/mem.c void *memalign(size_t align, size_t size); size 56 libavutil/mem.c int posix_memalign(void **ptr, size_t align, size_t size); size 57 libavutil/mem.c void *realloc(void *ptr, size_t size); size 77 libavutil/mem.c void *av_malloc(size_t size) size 81 libavutil/mem.c if (size > max_alloc_size) size 85 libavutil/mem.c if (size) //OS X on SDK 10.6 has a broken posix_memalign implementation size 86 libavutil/mem.c if (posix_memalign(&ptr, ALIGN, size)) size 89 libavutil/mem.c ptr = _aligned_malloc(size, ALIGN); size 92 libavutil/mem.c ptr = memalign(ALIGN, size); size 94 libavutil/mem.c ptr = memalign(size, ALIGN); size 121 libavutil/mem.c ptr = malloc(size); size 123 libavutil/mem.c if(!ptr && !size) { size 124 libavutil/mem.c size = 1; size 129 libavutil/mem.c memset(ptr, FF_MEMORY_POISON, size); size 134 libavutil/mem.c void *av_realloc(void *ptr, size_t size) size 136 libavutil/mem.c if (size > max_alloc_size) size 140 libavutil/mem.c return _aligned_realloc(ptr, size + !size, ALIGN); size 142 libavutil/mem.c return realloc(ptr, size + !size); size 148 libavutil/mem.c size_t size; size 151 libavutil/mem.c if (av_size_mult(elsize, nelem, &size)) { size 155 libavutil/mem.c r = av_realloc(ptr, size); size 161 libavutil/mem.c int av_reallocp(void *ptr, size_t size) size 165 libavutil/mem.c if (!size) { size 171 libavutil/mem.c val = av_realloc(val, size); size 182 libavutil/mem.c void *av_malloc_array(size_t nmemb, size_t size) size 185 libavutil/mem.c if (av_size_mult(nmemb, size, &result) < 0) size 190 libavutil/mem.c void *av_mallocz_array(size_t nmemb, size_t size) size 193 libavutil/mem.c if (av_size_mult(nmemb, size, &result) < 0) size 198 libavutil/mem.c void *av_realloc_array(void *ptr, size_t nmemb, size_t size) size 201 libavutil/mem.c if (av_size_mult(nmemb, size, &result) < 0) size 206 libavutil/mem.c int av_reallocp_array(void *ptr, size_t nmemb, size_t size) size 211 libavutil/mem.c val = av_realloc_f(val, nmemb, size); size 213 libavutil/mem.c if (!val && nmemb && size) size 237 libavutil/mem.c void *av_mallocz(size_t size) size 239 libavutil/mem.c void *ptr = av_malloc(size); size 241 libavutil/mem.c memset(ptr, 0, size); size 245 libavutil/mem.c void *av_calloc(size_t nmemb, size_t size) size 248 libavutil/mem.c if (av_size_mult(nmemb, size, &result) < 0) size 285 libavutil/mem.c void *av_memdup(const void *p, size_t size) size 289 libavutil/mem.c ptr = av_malloc(size); size 291 libavutil/mem.c memcpy(ptr, p, size); size 478 libavutil/mem.c void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size) size 480 libavutil/mem.c if (min_size <= *size) size 484 libavutil/mem.c *size = 0; size 497 libavutil/mem.c *size = min_size; size 502 libavutil/mem.c void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size) size 504 libavutil/mem.c ff_fast_malloc(ptr, size, min_size, 0); size 507 libavutil/mem.c void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size) size 509 libavutil/mem.c ff_fast_malloc(ptr, size, min_size, 1); size 196 libavutil/mem.h void *av_malloc(size_t size) av_malloc_attrib av_alloc_size(1); size 207 libavutil/mem.h void *av_mallocz(size_t size) av_malloc_attrib av_alloc_size(1); size 220 libavutil/mem.h av_alloc_size(1, 2) void *av_malloc_array(size_t nmemb, size_t size); size 235 libavutil/mem.h av_alloc_size(1, 2) void *av_mallocz_array(size_t nmemb, size_t size); size 242 libavutil/mem.h void *av_calloc(size_t nmemb, size_t size) av_malloc_attrib; size 264 libavutil/mem.h void *av_realloc(void *ptr, size_t size) av_alloc_size(2); size 286 libavutil/mem.h int av_reallocp(void *ptr, size_t size); size 323 libavutil/mem.h av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size); size 342 libavutil/mem.h int av_reallocp_array(void *ptr, size_t nmemb, size_t size); size 376 libavutil/mem.h void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size); size 407 libavutil/mem.h void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size); size 427 libavutil/mem.h void av_fast_mallocz(void *ptr, unsigned int *size, size_t min_size); size 494 libavutil/mem.h void *av_memdup(const void *p, size_t size); size 27 libavutil/mem_internal.h static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) size 32 libavutil/mem_internal.h if (min_size <= *size) { size 42 libavutil/mem_internal.h *size = min_size; size 744 libavutil/opt.c static void format_duration(char *buf, size_t size, int64_t d) size 748 libavutil/opt.c av_assert0(size >= 25); size 751 libavutil/opt.c size--; size 755 libavutil/opt.c snprintf(buf, size, "INT64_MAX"); size 757 libavutil/opt.c snprintf(buf, size, "INT64_MIN"); size 759 libavutil/opt.c snprintf(buf, size, "%"PRId64":%02d:%02d.%06d", d / 3600000000, size 764 libavutil/opt.c snprintf(buf, size, "%d:%02d.%06d", size 769 libavutil/opt.c snprintf(buf, size, "%d.%06d", size 1815 libavutil/opt.c int size = opt_size(o->type); size 1816 libavutil/opt.c if (size < 0) size 1817 libavutil/opt.c ret = size; size 1819 libavutil/opt.c memcpy(field_dst, field_src, size); size 1987 libavutil/opt.c int size; size 1999 libavutil/opt.c ret = !memcmp(opt_ptr, tmp.data, tmp.size); size 690 libavutil/opt.h int av_opt_set_bin (void *obj, const char *name, const uint8_t *val, int size, int search_flags); size 43 libavutil/pixelutils.c #define DECLARE_BLOCK_FUNCTIONS(size) \ size 44 libavutil/pixelutils.c static int block_sad_##size##x##size##_c(const uint8_t *src1, ptrdiff_t stride1, \ size 47 libavutil/pixelutils.c return sad_wxh(src1, stride1, src2, stride2, size, size); \ size 177 libavutil/samplefmt.c int size = av_samples_get_buffer_size(NULL, nb_channels, nb_samples, size 179 libavutil/samplefmt.c if (size < 0) size 180 libavutil/samplefmt.c return size; size 182 libavutil/samplefmt.c buf = av_malloc(size); size 186 libavutil/samplefmt.c size = av_samples_fill_arrays(audio_data, linesize, buf, nb_channels, size 188 libavutil/samplefmt.c if (size < 0) { size 190 libavutil/samplefmt.c return size; size 195 libavutil/samplefmt.c return size; size 24 libavutil/spherical.c AVSphericalMapping *av_spherical_alloc(size_t *size) size 30 libavutil/spherical.c if (size) size 31 libavutil/spherical.c *size = sizeof(*spherical); size 191 libavutil/spherical.h AVSphericalMapping *av_spherical_alloc(size_t *size); size 25 libavutil/tests/bprint.c static void bprint_pascal(AVBPrint *b, unsigned size) size 30 libavutil/tests/bprint.c av_assert0(size < FF_ARRAY_ELEMS(p)); size 34 libavutil/tests/bprint.c for (i = 1; i <= size; i++) { size 26 libavutil/tests/file.c size_t size; size 27 libavutil/tests/file.c if (av_file_map("file.c", &buf, &size, 0, NULL) < 0) size 32 libavutil/tests/file.c av_file_unmap(buf, size); size 88 libavutil/tests/pixelutils.c #define RANDOM_INIT(buf, size) do { \ size 90 libavutil/tests/pixelutils.c for (k = 0; k < size; k++) { \ size 211 libavutil/threadmessage.c static void free_func_wrap(void *arg, void *msg, int size) size 106 libavutil/timer.h .size = sizeof(struct perf_event_attr), \ size 101 libavutil/tx_priv.h #define COSTABLE(size) \ size 102 libavutil/tx_priv.h DECLARE_ALIGNED(32, FFTSample, TX_NAME(ff_cos_##size))[size/2] size 74 libavutil/tx_template.c #define INIT_FF_COS_TABS_FUNC(index, size) \ size 75 libavutil/tx_template.c static av_cold void init_cos_tabs_ ## size (void) \ size 33 libavutil/video_enc_params.c size_t size; size 35 libavutil/video_enc_params.c size = sizeof(*par); size 37 libavutil/video_enc_params.c nb_blocks * sizeof(AVVideoBlockParams) > SIZE_MAX - size) size 39 libavutil/video_enc_params.c size += sizeof(AVVideoBlockParams) * nb_blocks; size 41 libavutil/video_enc_params.c par = av_mallocz(size); size 51 libavutil/video_enc_params.c *out_size = size; size 62 libavutil/video_enc_params.c size_t size; size 64 libavutil/video_enc_params.c par = av_video_enc_params_alloc(type, nb_blocks, &size); size 67 libavutil/video_enc_params.c buf = av_buffer_create((uint8_t *)par, size, NULL, NULL, 0); size 841 libpostproc/postprocess.c static void reallocAlign(void **p, int size){ size 843 libpostproc/postprocess.c *p= av_mallocz(size); size 32 libswresample/resample.c static inline double eval_poly(const double *coeff, int size, double x) { size 33 libswresample/resample.c double sum = coeff[size-1]; size 35 libswresample/resample.c for (i = size-2; i >= 0; --i) { size 514 libswresample/swresample.c int ret, size, consumed; size 546 libswresample/swresample.c size= s->in_buffer_index + s->in_buffer_count + in_count; size 547 libswresample/swresample.c if( size > s->in_buffer.count size 553 libswresample/swresample.c if((ret=swri_realloc_audio(&s->in_buffer, size)) < 0) size 776 libswresample/swresample.c int ret, size; size 777 libswresample/swresample.c size = FFMIN(out_count, s->in_buffer_count); size 778 libswresample/swresample.c if(size){ size 780 libswresample/swresample.c ret= swr_convert_internal(s, out, size, &tmp, size); size 793 libswresample/swresample.c size= s->in_buffer_index + s->in_buffer_count + in_count - out_count; size 796 libswresample/swresample.c if( size > s->in_buffer.count size 802 libswresample/swresample.c if((ret=swri_realloc_audio(&s->in_buffer, size)) < 0) size 807 libswresample/swresample.c size = FFMIN(in_count, out_count); size 808 libswresample/swresample.c ret= swr_convert_internal(s, out, size, in, size); size 45 libswscale/slice.c static int alloc_lines(SwsSlice *s, int size, int width) size 62 libswscale/slice.c s->plane[i].line[j] = av_malloc(size * 2 + 32); size 67 libswscale/slice.c s->plane[ii].line[j] = s->plane[i].line[j] + size + 16; size 81 libswscale/slice.c int size[4] = { lumLines, size 93 libswscale/slice.c int n = size[i] * ( ring == 0 ? 1 : 3); size 98 libswscale/slice.c s->plane[i].tmp = ring ? s->plane[i].line + size[i] * 2 : NULL; size 99 libswscale/slice.c s->plane[i].available_lines = size[i]; size 194 libswscale/slice.c int i, j, k, size, end; size 197 libswscale/slice.c size = s->plane[i].available_lines; size 198 libswscale/slice.c for (j = 0; j < size; ++j) { size 318 libswscale/x86/swscale.c #define VSCALEX_FUNC(size, opt) \ size 319 libswscale/x86/swscale.c void ff_yuv2planeX_ ## size ## _ ## opt(const int16_t *filter, int filterSize, \ size 335 libswscale/x86/swscale.c #define VSCALE_FUNC(size, opt) \ size 336 libswscale/x86/swscale.c void ff_yuv2plane1_ ## size ## _ ## opt(const int16_t *src, uint8_t *dst, int dstW, \ size 167 tests/api/api-band-test.c pkt.size = 0; size 63 tests/api/api-codec-param-test.c pkt->size -= ret; size 68 tests/api/api-codec-param-test.c } while (pkt->size > 0); size 155 tests/api/api-flac-test.c enc_pkt.size = 0; size 181 tests/api/api-flac-test.c if (result != enc_pkt.size) { size 191 tests/api/api-h264-slice-test.c uint16_t size = 0; size 192 tests/api/api-h264-slice-test.c size_t ret = fread(&size, 1, sizeof(uint16_t), file); size 196 tests/api/api-h264-slice-test.c size = av_be2ne16(size); size 197 tests/api/api-h264-slice-test.c ret = fread(p, 1, size, file); size 198 tests/api/api-h264-slice-test.c if (ret != size) { size 207 tests/api/api-h264-slice-test.c pkt->size = p - nal; size 219 tests/api/api-h264-slice-test.c pkt->size = p - nal; size 116 tests/api/api-h264-test.c pkt.size = 0; size 111 tests/api/api-seek-test.c pkt.size = 0; size 42 tests/checkasm/audiodsp.c #define randomize_int(buf, len, size, bits) \ size 46 tests/checkasm/audiodsp.c uint ## size ## _t r = rnd() & ((1LL << bits) - 1); \ size 47 tests/checkasm/audiodsp.c AV_WN ## size ## A(buf + i, -(1LL << (bits - 1)) + r); \ size 31 tests/checkasm/blockdsp.c #define randomize_buffers(size) \ size 34 tests/checkasm/blockdsp.c for (i = 0; i < size; i++) { \ size 41 tests/checkasm/blockdsp.c #define check_clear(func, size) \ size 45 tests/checkasm/blockdsp.c randomize_buffers(size); \ size 48 tests/checkasm/blockdsp.c if (memcmp(buf0, buf1, sizeof(*buf0) * size)) \ size 434 tests/checkasm/checkasm.c static void *checkasm_malloc(size_t size) size 436 tests/checkasm/checkasm.c void *ptr = calloc(1, size); size 611 tests/checkasm/checkasm.c .size = sizeof(struct perf_event_attr), size 45 tests/checkasm/exrdsp.c declare_func(void, uint8_t *dst, const uint8_t *src, ptrdiff_t size); size 63 tests/checkasm/exrdsp.c declare_func(void, uint8_t *src, ptrdiff_t size); size 59 tests/checkasm/h264dsp.c #define dct4x4_impl(size, dctcoef) \ size 60 tests/checkasm/h264dsp.c static void dct4x4_##size(dctcoef *coef) \ size 120 tests/checkasm/h264dsp.c #define dct8x8_impl(size, dctcoef) \ size 121 tests/checkasm/h264dsp.c static void dct8x8_##size(dctcoef *coef) \ size 67 tests/checkasm/h264qpel.c int size = 16 >> i; size 69 tests/checkasm/h264qpel.c if (check_func(tab[i][j], "%s_h264_qpel_%d_mc%d%d_%d", op_name, size, j & 3, j >> 2, bit_depth)) { size 71 tests/checkasm/h264qpel.c call_ref(dst0, src0, size * SIZEOF_PIXEL); size 72 tests/checkasm/h264qpel.c call_new(dst1, src1, size * SIZEOF_PIXEL); size 75 tests/checkasm/h264qpel.c bench_new(dst1, src1, size * SIZEOF_PIXEL); size 29 tests/checkasm/hevc_add_res.c #define randomize_buffers(buf, size) \ size 32 tests/checkasm/hevc_add_res.c for (j = 0; j < size; j++) { \ size 38 tests/checkasm/hevc_add_res.c #define randomize_buffers2(buf, size) \ size 41 tests/checkasm/hevc_add_res.c for (j = 0; j < size; j++) \ size 45 tests/checkasm/hevc_add_res.c static void compare_add_res(int size, ptrdiff_t stride, int overflow_test) size 54 tests/checkasm/hevc_add_res.c randomize_buffers(res0, size); size 55 tests/checkasm/hevc_add_res.c randomize_buffers2(dst0, size); size 58 tests/checkasm/hevc_add_res.c memcpy(res1, res0, sizeof(*res0) * size); size 59 tests/checkasm/hevc_add_res.c memcpy(dst1, dst0, sizeof(int16_t) * size); size 63 tests/checkasm/hevc_add_res.c if (memcmp(dst0, dst1, size)) size 74 tests/checkasm/hevc_add_res.c int size = block_size * block_size; size 78 tests/checkasm/hevc_add_res.c compare_add_res(size, stride, 0); size 80 tests/checkasm/hevc_add_res.c compare_add_res(size, stride, 1); size 29 tests/checkasm/hevc_idct.c #define randomize_buffers(buf, size) \ size 32 tests/checkasm/hevc_idct.c for (j = 0; j < size; j++) { \ size 46 tests/checkasm/hevc_idct.c int size = block_size * block_size; size 50 tests/checkasm/hevc_idct.c randomize_buffers(coeffs0, size); size 51 tests/checkasm/hevc_idct.c memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); size 55 tests/checkasm/hevc_idct.c if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) size 70 tests/checkasm/hevc_idct.c int size = block_size * block_size; size 73 tests/checkasm/hevc_idct.c randomize_buffers(coeffs0, size); size 74 tests/checkasm/hevc_idct.c memcpy(coeffs1, coeffs0, sizeof(*coeffs0) * size); size 79 tests/checkasm/hevc_idct.c if (memcmp(coeffs0, coeffs1, sizeof(*coeffs0) * size)) size 40 tests/checkasm/hevc_sao.c #define randomize_buffers(buf0, buf1, size) \ size 44 tests/checkasm/hevc_sao.c for (k = 0; k < size; k += 4) { \ size 51 tests/checkasm/hevc_sao.c #define randomize_buffers2(buf, size) \ size 56 tests/checkasm/hevc_sao.c for (k = 0; k < size; k++) { \ size 61 tests/checkasm/hevc_sao.c for (k = 0; k < size; k++) { \ size 31 tests/checkasm/huffyuvdsp.c #define randomize_buffers(buf, size) \ size 34 tests/checkasm/huffyuvdsp.c for (j = 0; j < size; j++) \ size 31 tests/checkasm/llviddsp.c #define randomize_buffers(buf, size) \ size 35 tests/checkasm/llviddsp.c for (j = 0; j < size; j++) \ size 31 tests/checkasm/llviddspenc.c #define randomize_buffers(buf, size) \ size 34 tests/checkasm/llviddspenc.c for (j = 0; j < size; j+=4) \ size 30 tests/checkasm/sw_rgb.c #define randomize_buffers(buf, size) \ size 33 tests/checkasm/sw_rgb.c for (j = 0; j < size; j+=4) \ size 31 tests/checkasm/sw_scale.c #define randomize_buffers(buf, size) \ size 34 tests/checkasm/sw_scale.c for (j = 0; j < size; j+=4) \ size 32 tests/checkasm/v210enc.c int i, size = sizeof(*y0); \ size 33 tests/checkasm/v210enc.c for (i = 0; i < BUF_SIZE; i += 4 / size) { \ size 38 tests/checkasm/v210enc.c for (i = 0; i < BUF_SIZE / 2; i += 4 / size) { \ size 32 tests/checkasm/vf_eq.c #define randomize_buffers(buf, size) \ size 36 tests/checkasm/vf_eq.c for (j = 0; j< size; j++) \ size 28 tests/checkasm/vf_gblur.c #define randomize_buffers(buf, size) \ size 32 tests/checkasm/vf_gblur.c for (j = 0; j < size; j++) \ size 27 tests/checkasm/vf_hflip.c #define randomize_buffers(buf, size) \ size 31 tests/checkasm/vf_hflip.c for (j = 0; j < size; j++) \ size 25 tests/checkasm/vf_nlmeans.c #define randomize_buffer(buf, size) do { \ size 27 tests/checkasm/vf_nlmeans.c for (i = 0; i < size / 4; i++) \ size 27 tests/checkasm/vf_threshold.c #define randomize_buffers(buf, size) \ size 31 tests/checkasm/vf_threshold.c for (j = 0; j < size; j++) \ size 250 tests/checkasm/vp8dsp.c #define SRC_BUF_SIZE (((size << (size < 16)) + 5) * SRC_BUF_STRIDE) size 280 tests/checkasm/vp8dsp.c int size = 16 >> hsize; size 281 tests/checkasm/vp8dsp.c int height = (size << 1) >> (k % 3); size 289 tests/checkasm/vp8dsp.c snprintf(str, sizeof(str), "epel%d_%s%s", size, dx_names[dx], dy_names[dy]); size 291 tests/checkasm/vp8dsp.c snprintf(str, sizeof(str), "bilin%d_%s%s", size, dx ? "h" : "", dy ? "v" : ""); size 294 tests/checkasm/vp8dsp.c snprintf(str, sizeof(str), "pixels%d", size); size 314 tests/checkasm/vp8dsp.c call_ref(dst0, size, src, SRC_BUF_STRIDE, height, mx, my); size 315 tests/checkasm/vp8dsp.c call_new(dst1, size, src, SRC_BUF_STRIDE, height, mx, my); size 316 tests/checkasm/vp8dsp.c if (memcmp(dst0, dst1, size * height)) size 318 tests/checkasm/vp8dsp.c bench_new(dst1, size, src, SRC_BUF_STRIDE, height, mx, my); size 38 tests/checkasm/vp9dsp.c for (k = -4; k < SIZEOF_PIXEL * FFMAX(8, size); k += 4) { \ size 42 tests/checkasm/vp9dsp.c for (k = 0; k < size * SIZEOF_PIXEL; k += 4) { \ size 80 tests/checkasm/vp9dsp.c int size = 4 << tx; size 84 tests/checkasm/vp9dsp.c mode_names[mode], size, size, bit_depth)) { size 86 tests/checkasm/vp9dsp.c call_ref(dst0, size * SIZEOF_PIXEL, l, a); size 87 tests/checkasm/vp9dsp.c call_new(dst1, size * SIZEOF_PIXEL, l, a); size 88 tests/checkasm/vp9dsp.c if (memcmp(dst0, dst1, size * size * SIZEOF_PIXEL)) size 90 tests/checkasm/vp9dsp.c bench_new(dst1, size * SIZEOF_PIXEL,l, a); size 535 tests/checkasm/vp9dsp.c #define DST_BUF_SIZE (size * size * SIZEOF_PIXEL) size 537 tests/checkasm/vp9dsp.c #define SRC_BUF_SIZE ((size + 7) * SRC_BUF_STRIDE * SIZEOF_PIXEL) size 578 tests/checkasm/vp9dsp.c int size = 64 >> hsize; size 586 tests/checkasm/vp9dsp.c filter_names[filter], size, size 590 tests/checkasm/vp9dsp.c "%s%d", op_names[op], size); size 597 tests/checkasm/vp9dsp.c call_ref(dst0, size * SIZEOF_PIXEL, size 599 tests/checkasm/vp9dsp.c size, mx, my); size 600 tests/checkasm/vp9dsp.c call_new(dst1, size * SIZEOF_PIXEL, size 602 tests/checkasm/vp9dsp.c size, mx, my); size 612 tests/checkasm/vp9dsp.c bench_new(dst1, size * SIZEOF_PIXEL, size 614 tests/checkasm/vp9dsp.c size, mx, my); size 141 tests/tiny_ssim.c uint64_t ssd_plane( const uint8_t *pix1, const uint8_t *pix2, int size ) size 145 tests/tiny_ssim.c for( i=0; i<size; i++ ) size 88 tools/aviocat.c int64_t size = avio_seek(input, 0, AVSEEK_SIZE); size 89 tools/aviocat.c if (size >= 0) { size 90 tools/aviocat.c fprintf(stderr, "aviocat: input size: %"PRId64"\n", size); size 96 tools/aviocat.c int64_t size = avio_size(input); size 97 tools/aviocat.c if (size < 0) { size 102 tools/aviocat.c bps = size / duration; size 35 tools/coverity.c void *av_malloc(size_t size) { size 37 tools/coverity.c __coverity_negative_sink__(size); size 39 tools/coverity.c void *ptr = __coverity_alloc__(size); size 48 tools/coverity.c void *av_mallocz(size_t size) { size 50 tools/coverity.c __coverity_negative_sink__(size); size 52 tools/coverity.c void *ptr = __coverity_alloc__(size); size 61 tools/coverity.c void *av_realloc(void *ptr, size_t size) { size 63 tools/coverity.c __coverity_negative_sink__(size); size 66 tools/coverity.c ptr = __coverity_alloc__(size); size 66 tools/crypto_bench.c void (*run)(uint8_t *output, const uint8_t *input, unsigned size); size 90 tools/crypto_bench.c const uint8_t *input, unsigned size) size 92 tools/crypto_bench.c av_md5_sum(output, input, size); size 97 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 103 tools/crypto_bench.c av_ ## namespace ## _update(h, input, size); \ size 114 tools/crypto_bench.c const uint8_t *input, unsigned size) size 120 tools/crypto_bench.c av_aes_crypt(aes, output, input, size >> 4, NULL, 0); size 124 tools/crypto_bench.c const uint8_t *input, unsigned size) size 130 tools/crypto_bench.c av_blowfish_crypt(blowfish, output, input, size >> 3, NULL, 0); size 134 tools/crypto_bench.c const uint8_t *input, unsigned size) size 140 tools/crypto_bench.c av_camellia_crypt(camellia, output, input, size >> 4, NULL, 0); size 144 tools/crypto_bench.c const uint8_t *input, unsigned size) size 150 tools/crypto_bench.c av_cast5_crypt(cast, output, input, size >> 3, 0); size 154 tools/crypto_bench.c const uint8_t *input, unsigned size) size 160 tools/crypto_bench.c av_des_crypt(des, output, input, size >> 3, NULL, 0); size 164 tools/crypto_bench.c const uint8_t *input, unsigned size) size 170 tools/crypto_bench.c av_twofish_crypt(twofish, output, input, size >> 4, NULL, 0); size 174 tools/crypto_bench.c const uint8_t *input, unsigned size) size 180 tools/crypto_bench.c av_rc4_crypt(rc4, output, input, size, NULL, 0); size 184 tools/crypto_bench.c const uint8_t *input, unsigned size) size 190 tools/crypto_bench.c av_xtea_crypt(xtea, output, input, size >> 3, NULL, 0); size 212 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 214 tools/crypto_bench.c function(input, size, output); \ size 224 tools/crypto_bench.c const uint8_t *input, unsigned size) size 230 tools/crypto_bench.c size -= 15; size 231 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 236 tools/crypto_bench.c const uint8_t *input, unsigned size) size 242 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 247 tools/crypto_bench.c const uint8_t *input, unsigned size) size 253 tools/crypto_bench.c size -= 15; size 254 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 259 tools/crypto_bench.c const uint8_t *input, unsigned size) size 265 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 270 tools/crypto_bench.c const uint8_t *input, unsigned size) size 276 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 281 tools/crypto_bench.c const uint8_t *input, unsigned size) size 286 tools/crypto_bench.c RC4(&rc4, size, input, output); size 304 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 306 tools/crypto_bench.c gcry_md_hash_buffer(GCRY_MD_ ## algo, output, input, size); \ size 317 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 323 tools/crypto_bench.c gcry_cipher_encrypt(suffix, output, size, input, size); \ size 359 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 361 tools/crypto_bench.c mbedtls_ ## suffix ## _ret(input, size, output); \ size 366 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 368 tools/crypto_bench.c mbedtls_ ## suffix ## _ret(input, size, output, 0); \ size 380 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 386 tools/crypto_bench.c for (int i = 0; i < size; i += 16) \ size 396 tools/crypto_bench.c const uint8_t *input, unsigned size) size 402 tools/crypto_bench.c for (int i = 0; i < size; i += 8) size 409 tools/crypto_bench.c const uint8_t *input, unsigned size) size 415 tools/crypto_bench.c for (int i = 0; i < size; i += 8) size 421 tools/crypto_bench.c const uint8_t *input, unsigned size) size 427 tools/crypto_bench.c mbedtls_arc4_crypt(&rc4, size, input, output); size 432 tools/crypto_bench.c const uint8_t *input, unsigned size) size 438 tools/crypto_bench.c for (int i = 0; i < size; i += 8) size 459 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 463 tools/crypto_bench.c namespace ## _process(&md, input, size); \ size 475 tools/crypto_bench.c const uint8_t *input, unsigned size) size 481 tools/crypto_bench.c size -= 15; size 482 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 487 tools/crypto_bench.c const uint8_t *input, unsigned size) size 493 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 498 tools/crypto_bench.c const uint8_t *input, unsigned size) size 504 tools/crypto_bench.c size -= 15; size 505 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 510 tools/crypto_bench.c const uint8_t *input, unsigned size) size 516 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 521 tools/crypto_bench.c const uint8_t *input, unsigned size) size 527 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 532 tools/crypto_bench.c const uint8_t *input, unsigned size) size 537 tools/crypto_bench.c rc4_stream_crypt(&rc4, input, size, output); size 542 tools/crypto_bench.c const uint8_t *input, unsigned size) size 548 tools/crypto_bench.c size -= 15; size 549 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 554 tools/crypto_bench.c const uint8_t *input, unsigned size) size 560 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 574 tools/crypto_bench.c static unsigned crc32(const uint8_t *data, unsigned size) size 576 tools/crypto_bench.c return av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, data, size); size 580 tools/crypto_bench.c struct hash_impl *impl, unsigned size) size 583 tools/crypto_bench.c unsigned nruns = specified_runs ? specified_runs : (1 << 30) / size; size 600 tools/crypto_bench.c impl->run(output, input, size); size 602 tools/crypto_bench.c memset(output, 0, size); /* avoid leftovers from previous runs */ size 604 tools/crypto_bench.c impl->run(output, input, size); size 607 tools/crypto_bench.c crc32(output, size) != outcrc) { size 613 tools/crypto_bench.c fprintf(stderr, "%08x", crc32(output, size)); size 617 tools/crypto_bench.c mtime = (double)(t1 - t0) / size; size 626 tools/crypto_bench.c impl->lib, impl->name, size, nruns, ttime, stime); size 670 tools/crypto_bench.c unsigned i, impl, size; size 713 tools/crypto_bench.c size = MAX_INPUT_SIZE; size 715 tools/crypto_bench.c run_implementation(input, output, &implementations[impl], size); size 95 tools/ffhash.c int size = read(fd, buffer, SIZE); size 96 tools/ffhash.c if (size < 0) { size 103 tools/ffhash.c } else if(!size) size 105 tools/ffhash.c av_hash_update(hash, buffer, size); size 109 tools/ismindex.c int32_t size, tag; size 111 tools/ismindex.c size = avio_rb32(in); size 113 tools/ismindex.c avio_wb32(out, size); size 117 tools/ismindex.c size -= 8; size 118 tools/ismindex.c while (size > 0) { size 120 tools/ismindex.c int len = FFMIN(sizeof(buf), size); size 127 tools/ismindex.c size -= len; size 135 tools/ismindex.c int32_t size, tag; size 137 tools/ismindex.c size = avio_rb32(in); size 141 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 273 tools/ismindex.c int32_t moof_size, size, tag; size 284 tools/ismindex.c size = avio_rb32(in); size 288 tools/ismindex.c int64_t traf_size = size; size 291 tools/ismindex.c size = avio_rb32(in); size 307 tools/ismindex.c pos + size); size 309 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 314 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 327 tools/ismindex.c uint32_t size = avio_rb32(f); size 409 tools/ismindex.c avio_seek(f, pos + size, SEEK_SET); size 109 tools/pktdumper.c pkt.stream_index, pkt.pts, pkt.size, size 111 tools/pktdumper.c printf(PKTFILESUFF "\n", pktnum, pkt.stream_index, pkt.pts, pkt.size, size 115 tools/pktdumper.c err = write(fd, pkt.data, pkt.size); size 38 tools/probetest.c static void probe(AVProbeData *pd, int type, int p, int size) size 58 tools/probetest.c fmt->name, score, type, p, size); size 96 tools/probetest.c unsigned int p, i, type, size, retry; size 132 tools/probetest.c for (size = 1; size < max_size; size *= 2) { size 133 tools/probetest.c pd.buf_size = size; size 134 tools/probetest.c pd.buf = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE); size 142 tools/probetest.c memset(pd.buf, 0, size + AVPROBE_PADDING_SIZE); size 144 tools/probetest.c fprintf(stderr, "testing size=%d\n", size); size 146 tools/probetest.c for (retry = 0; retry < retry_count; retry += FFMAX(size, 32)) { size 150 tools/probetest.c init_put_bits(&pb, pd.buf, size); size 153 tools/probetest.c for (i = 0; i < size * 8; i++) size 157 tools/probetest.c for (i = 0; i < size * 8; i++) { size 165 tools/probetest.c for (i = 0; i < size * 8; i++) { size 173 tools/probetest.c for (i = 0; i < size; i++) { size 194 tools/probetest.c probe(&pd, type, p, size); size 107 tools/qt-faststart.c uint64_t size; size 129 tools/qt-faststart.c uint64_t size, size 134 tools/qt-faststart.c unsigned char *end = pos + size; size 139 tools/qt-faststart.c atom.size = BE_32(pos); size 144 tools/qt-faststart.c switch (atom.size) { size 151 tools/qt-faststart.c atom.size = BE_64(pos); size 157 tools/qt-faststart.c atom.size = ATOM_PREAMBLE_SIZE + end - pos; size 161 tools/qt-faststart.c if (atom.size < atom.header_size) { size 162 tools/qt-faststart.c fprintf(stderr, "atom size %"PRIu64" too small\n", atom.size); size 166 tools/qt-faststart.c atom.size -= atom.header_size; size 168 tools/qt-faststart.c if (atom.size > end - pos) { size 169 tools/qt-faststart.c fprintf(stderr, "atom size %"PRIu64" too big\n", atom.size); size 179 tools/qt-faststart.c pos += atom.size; size 193 tools/qt-faststart.c if (atom->size < 8) { size 194 tools/qt-faststart.c fprintf(stderr, "stco atom size %"PRIu64" too small\n", atom->size); size 199 tools/qt-faststart.c if (offset_count > (atom->size - 8) / 4) { size 205 tools/qt-faststart.c context->stco_data_size += atom->size - 8; size 229 tools/qt-faststart.c if (atom->size < 8) { size 230 tools/qt-faststart.c fprintf(stderr, "co64 atom size %"PRIu64" too small\n", atom->size); size 235 tools/qt-faststart.c if (offset_count > (atom->size - 8) / 8) { size 276 tools/qt-faststart.c atom->size, size 286 tools/qt-faststart.c static void set_atom_size(unsigned char *header, uint32_t header_size, uint64_t size) size 290 tools/qt-faststart.c AV_WB32(header, size); size 294 tools/qt-faststart.c AV_WB64(header + 8, size); size 352 tools/qt-faststart.c atom->size, size 363 tools/qt-faststart.c copy_size = atom->header_size + atom->size; size 86 tools/seek_print.c ret, packet.size, packet.stream_index, size 55 tools/sidxindex.c static void set_codec_str(AVCodecParameters *codecpar, char *str, int size) size 59 tools/sidxindex.c snprintf(str, size, "avc1"); size 61 tools/sidxindex.c av_strlcatf(str, size, ".%02x%02x%02x", size 67 tools/sidxindex.c snprintf(str, size, "mp4a.40"); // 0x40 is the mp4 object type for AAC size 72 tools/sidxindex.c av_strlcatf(str, size, ".%d", aot); size 90 tools/sidxindex.c int32_t size, tag; size 92 tools/sidxindex.c size = avio_rb32(f); size 94 tools/sidxindex.c if (size < 8) size 101 tools/sidxindex.c track->sidx_length = size; size 103 tools/sidxindex.c track->sidx_length = pos + size - track->sidx_start; size 107 tools/sidxindex.c if (avio_seek(f, pos + size, SEEK_SET) != pos + size) size 65 tools/sofa2wavs.c int size = 8 * hrtf->N; size 82 tools/sofa2wavs.c fwrite(&size, 4, 1, file); size 27 tools/target_bsf_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); size 39 tools/target_bsf_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { size 42 tools/target_bsf_fuzzer.c const uint8_t *end = data + size; size 65 tools/target_bsf_fuzzer.c if (size > 1024) { size 68 tools/target_bsf_fuzzer.c size -= 1024; size 69 tools/target_bsf_fuzzer.c bytestream2_init(&gbc, data + size, 1024); size 90 tools/target_bsf_fuzzer.c if (extradata_size < size) { size 94 tools/target_bsf_fuzzer.c size -= bsf->par_in->extradata_size; size 95 tools/target_bsf_fuzzer.c memcpy(bsf->par_in->extradata, data + size, bsf->par_in->extradata_size); size 111 tools/target_bsf_fuzzer.c out.size = 0; size 131 tools/target_bsf_fuzzer.c while (in.size) { size 60 tools/target_dec_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); size 101 tools/target_dec_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { size 104 tools/target_dec_fuzzer.c const uint8_t *end = data + size; size 196 tools/target_dec_fuzzer.c if (size > 1024) { size 200 tools/target_dec_fuzzer.c size -= 1024; size 201 tools/target_dec_fuzzer.c bytestream2_init(&gbc, data + size, 1024); size 252 tools/target_dec_fuzzer.c if (extradata_size < size) { size 256 tools/target_dec_fuzzer.c size -= ctx->extradata_size; size 257 tools/target_dec_fuzzer.c memcpy(ctx->extradata, data + size, ctx->extradata_size); size 302 tools/target_dec_fuzzer.c while (parsepkt.size > 0) { size 306 tools/target_dec_fuzzer.c int ret = av_parser_parse2(parser, parser_avctx, &avpkt.data, &avpkt.size, size 307 tools/target_dec_fuzzer.c parsepkt.data, parsepkt.size, size 318 tools/target_dec_fuzzer.c parsepkt.size -= ret; size 332 tools/target_dec_fuzzer.c while (avpkt.size > 0 && it++ < maxiteration) { size 346 tools/target_dec_fuzzer.c if (ret <= 0 || ret > avpkt.size) size 349 tools/target_dec_fuzzer.c ret = avpkt.size; size 351 tools/target_dec_fuzzer.c avpkt.size -= ret; size 34 tools/target_dem_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size); size 45 tools/target_dem_fuzzer.c int size = FFMIN(buf_size, c->fuzz_size); size 52 tools/target_dem_fuzzer.c memcpy(buf, c->fuzz, size); size 53 tools/target_dem_fuzzer.c c->fuzz += size; size 54 tools/target_dem_fuzzer.c c->fuzz_size -= size; size 55 tools/target_dem_fuzzer.c c->pos += size; size 58 tools/target_dem_fuzzer.c return size; size 87 tools/target_dem_fuzzer.c int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) { size 96 tools/target_dem_fuzzer.c int64_t filesize = size; size 112 tools/target_dem_fuzzer.c if (size > 2048) { size 114 tools/target_dem_fuzzer.c memcpy (filename, data + size - 1024, 1024); size 115 tools/target_dem_fuzzer.c bytestream2_init(&gbc, data + size - 2048, 1024); size 116 tools/target_dem_fuzzer.c size -= 2048; size 129 tools/target_dem_fuzzer.c opaque.fuzz_size= size;