size 1863 cmdutils.c int cmdutils_read_file(const char *filename, char **bufptr, size_t *size) size 1886 cmdutils.c *size = ret; size 1894 cmdutils.c *bufptr = av_malloc(*size + 1); size 1900 cmdutils.c ret = fread(*bufptr, 1, *size, f); size 1901 cmdutils.c if (ret < *size) { size 1911 cmdutils.c (*bufptr)[(*size)++] = '\0'; size 2056 cmdutils.c void *grow_array(void *array, int elem_size, int *size, int new_size) size 2062 cmdutils.c if (*size < new_size) { size 2068 cmdutils.c memset(tmp + *size*elem_size, 0, (new_size-*size) * elem_size); size 2069 cmdutils.c *size = new_size; size 542 cmdutils.h int cmdutils_read_file(const char *filename, char **bufptr, size_t *size); size 575 cmdutils.h void *grow_array(void *array, int elem_size, int *size, int new_size); size 105 cmdutils_opencl.c #define CREATEBUF(out, flags, size) \ size 107 cmdutils_opencl.c out = clCreateBuffer(ext_opencl_env->context, flags, size, NULL, &status); \ size 572 compat/avisynth/avisynth_c.h AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value * v0, int size) size 573 compat/avisynth/avisynth_c.h { AVS_Value v; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; } size 529 compat/avisynth/avxsynth_c.h AVSC_INLINE AVS_Value avs_new_value_array(AVS_Value * v0, int size) size 530 compat/avisynth/avxsynth_c.h { AVS_Value v = {0}; v.type = 'a'; v.d.array = v0; v.array_size = size; return v; } 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 47 doc/examples/avio_reading.c printf("ptr:%p size:%zu\n", bd->ptr, bd->size); size 52 doc/examples/avio_reading.c bd->size -= buf_size; size 85 doc/examples/avio_reading.c bd.size = buffer_size; size 197 doc/examples/decoding_encoding.c pkt.size = 0; size 213 doc/examples/decoding_encoding.c fwrite(pkt.data, 1, pkt.size, f); size 227 doc/examples/decoding_encoding.c fwrite(pkt.data, 1, pkt.size, f); size 288 doc/examples/decoding_encoding.c avpkt.size = fread(inbuf, 1, AUDIO_INBUF_SIZE, f); size 290 doc/examples/decoding_encoding.c while (avpkt.size > 0) { size 318 doc/examples/decoding_encoding.c avpkt.size -= len; size 322 doc/examples/decoding_encoding.c if (avpkt.size < AUDIO_REFILL_THRESH) { size 327 doc/examples/decoding_encoding.c memmove(inbuf, avpkt.data, avpkt.size); size 329 doc/examples/decoding_encoding.c len = fread(avpkt.data + avpkt.size, 1, size 330 doc/examples/decoding_encoding.c AUDIO_INBUF_SIZE - avpkt.size, f); size 332 doc/examples/decoding_encoding.c avpkt.size += len; size 426 doc/examples/decoding_encoding.c pkt.size = 0; size 455 doc/examples/decoding_encoding.c printf("Write frame %3d (size=%5d)\n", i, pkt.size); size 456 doc/examples/decoding_encoding.c fwrite(pkt.data, 1, pkt.size, f); size 472 doc/examples/decoding_encoding.c printf("Write frame %3d (size=%5d)\n", i, pkt.size); size 473 doc/examples/decoding_encoding.c fwrite(pkt.data, 1, pkt.size, f); size 528 doc/examples/decoding_encoding.c pkt->size -= len; size 591 doc/examples/decoding_encoding.c avpkt.size = fread(inbuf, 1, INBUF_SIZE, f); size 592 doc/examples/decoding_encoding.c if (avpkt.size == 0) size 611 doc/examples/decoding_encoding.c while (avpkt.size > 0) size 620 doc/examples/decoding_encoding.c avpkt.size = 0; size 73 doc/examples/demuxing_decoding.c int decoded = pkt.size; size 125 doc/examples/demuxing_decoding.c decoded = FFMIN(ret, pkt.size); size 331 doc/examples/demuxing_decoding.c pkt.size = 0; size 346 doc/examples/demuxing_decoding.c pkt.size -= ret; size 347 doc/examples/demuxing_decoding.c } while (pkt.size > 0); size 353 doc/examples/demuxing_decoding.c pkt.size = 0; size 39 doc/examples/extract_mvs.c int decoded = pkt.size; size 58 doc/examples/extract_mvs.c for (i = 0; i < sd->size / sizeof(*mvs); i++) { size 158 doc/examples/extract_mvs.c pkt.size = 0; size 168 doc/examples/extract_mvs.c pkt.size -= ret; size 169 doc/examples/extract_mvs.c } while (pkt.size > 0); size 175 doc/examples/extract_mvs.c pkt.size = 0; size 254 doc/examples/filtering_audio.c packet.size -= ret; size 276 doc/examples/filtering_audio.c if (packet.size <= 0) size 512 doc/examples/muxing.c pkt.size = sizeof(AVPicture); size 226 doc/examples/qsvdec.c while (pkt->size > 0 || (!pkt->data && got_frame)) { size 234 doc/examples/qsvdec.c pkt->size -= ret; size 456 doc/examples/qsvdec.c pkt.size = 0; size 219 doc/examples/transcode_aac.c packet->size = 0; size 380 doc/examples/transcoding.c enc_pkt.size = 0; size 469 doc/examples/transcoding.c AVPacket packet = { .data = NULL, .size = 0 }; size 630 ffmpeg.c &new_pkt.data, &new_pkt.size, size 631 ffmpeg.c pkt->data, pkt->size, size 634 ffmpeg.c uint8_t *t = av_malloc(new_pkt.size + FF_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow size 636 ffmpeg.c memcpy(t, new_pkt.data, new_pkt.size); size 637 ffmpeg.c memset(t + new_pkt.size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 648 ffmpeg.c new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size, size 702 ffmpeg.c ost->data_size += pkt->size; size 713 ffmpeg.c pkt->size size 759 ffmpeg.c pkt.size = 0; size 770 ffmpeg.c av_assert0(pkt.size || !pkt.data); size 867 ffmpeg.c pkt.size = subtitle_out_size; size 1013 ffmpeg.c pkt.size = 0; size 1039 ffmpeg.c pkt.size = sizeof(AVPicture); size 1135 ffmpeg.c frame_size = pkt.size; size 1584 ffmpeg.c FFMIN(buf_script.len, buf_script.size - 1)); size 1637 ffmpeg.c pkt.size = 0; size 1658 ffmpeg.c pkt_size = pkt.size; size 1749 ffmpeg.c int duration = av_get_audio_frame_duration(ist->dec_ctx, pkt->size); size 1767 ffmpeg.c &opkt.data, &opkt.size, size 1768 ffmpeg.c pkt->data, pkt->size, size 1770 ffmpeg.c opkt.buf = av_buffer_create(opkt.data, opkt.size, av_buffer_default_free, NULL, 0); size 1776 ffmpeg.c opkt.size = pkt->size; size 1784 ffmpeg.c opkt.size = sizeof(AVPicture); size 1833 ffmpeg.c if (*got_output || ret<0 || pkt->size) size 1837 ffmpeg.c if (!pkt->size) { size 1978 ffmpeg.c if (*got_output || ret<0 || pkt->size) size 1996 ffmpeg.c if (!pkt->size) { size 2034 ffmpeg.c pkt->size = 0; size 2096 ffmpeg.c if (*got_output || ret<0 || pkt->size) size 2100 ffmpeg.c if (!pkt->size) size 2176 ffmpeg.c avpkt.size = 0; size 2189 ffmpeg.c while (ist->decoding_needed && (avpkt.size > 0 || (!pkt && got_output))) { size 2196 ffmpeg.c if (avpkt.size && avpkt.size != pkt->size && size 2243 ffmpeg.c ret = avpkt.size; size 2245 ffmpeg.c avpkt.size -= ret; size 2449 ffmpeg.c int n = 1, i, size, index = 0; size 2455 ffmpeg.c size = n; size 2456 ffmpeg.c pts = av_malloc_array(size, sizeof(*pts)); size 2474 ffmpeg.c if (avf->nb_chapters > INT_MAX - size || size 2475 ffmpeg.c !(pts = av_realloc_f(pts, size += avf->nb_chapters - 1, size 2486 ffmpeg.c av_assert1(index < size); size 2494 ffmpeg.c av_assert1(index < size); size 2502 ffmpeg.c av_assert0(index == size); size 2503 ffmpeg.c qsort(pts, size, sizeof(*pts), compare_int64); size 2504 ffmpeg.c ost->forced_kf_count = size; size 2740 ffmpeg.c sd_dst->data = av_malloc(sd_src->size); size 2743 ffmpeg.c memcpy(sd_dst->data, sd_src->data, sd_src->size); size 2744 ffmpeg.c sd_dst->size = sd_src->size; size 3560 ffmpeg.c ist->data_size += pkt.size; size 3624 ffmpeg.c dst_data = av_packet_new_side_data(&pkt, src_sd->type, src_sd->size); size 3628 ffmpeg.c memcpy(dst_data, src_sd->data, src_sd->size); size 115 ffplay.c int size; size 166 ffplay.c int size; size 409 ffplay.c q->size += pkt1->pkt.size + sizeof(*pkt1); size 438 ffplay.c pkt->size = 0; size 465 ffplay.c q->size = 0; size 515 ffplay.c q->size -= pkt1->pkt.size + sizeof(*pkt1); size 610 ffplay.c ret = d->pkt_temp.size; size 612 ffplay.c d->pkt_temp.size -= ret; size 613 ffplay.c if (d->pkt_temp.size <= 0) size 693 ffplay.c while (f->size >= f->max_size && size 709 ffplay.c while (f->size - f->rindex_shown <= 0 && size 726 ffplay.c f->size++; size 741 ffplay.c f->size--; size 757 ffplay.c return f->size - f->rindex_shown; size 1705 ffplay.c aqsize = is->audioq.size; size 1707 ffplay.c vqsize = is->videoq.size; size 1709 ffplay.c sqsize = is->subtitleq.size; size 2364 ffplay.c int size, len; size 2366 ffplay.c size = samples_size / sizeof(short); size 2367 ffplay.c while (size > 0) { size 2369 ffplay.c if (len > size) size 2370 ffplay.c len = size; size 2376 ffplay.c size -= len; size 2643 ffplay.c return spec.size; size 3107 ffplay.c (is->audioq.size + is->videoq.size + is->subtitleq.size > MAX_QUEUE_SIZE size 3522 ffplay.c uint64_t size = avio_size(cur_stream->ic->pb); size 3523 ffplay.c stream_seek(cur_stream, size*x/cur_stream->width, 0, 1); size 679 ffprobe.c uint8_t *data, int size) size 686 ffprobe.c while (size) { size 688 ffprobe.c l = FFMIN(size, 16); size 700 ffprobe.c size -= l; size 707 ffprobe.c uint8_t *data, int size) size 714 ffprobe.c av_hash_update(hash, data, size); size 1722 ffprobe.c print_val("size", pkt->size, unit_byte_str); size 1727 ffprobe.c writer_print_data(w, "data", pkt->data, pkt->size); size 1728 ffprobe.c writer_print_data_hash(w, "data_hash", pkt->data, pkt->size); size 1835 ffprobe.c print_int("side_data_size", sd->size); size 1873 ffprobe.c ret = FFMIN(ret, pkt->size); /* guard against bogus return values */ size 1875 ffprobe.c pkt->size -= ret; size 1995 ffprobe.c while (pkt1.size && process_frame(w, fmt_ctx, frame, &pkt1) > 0); size 2002 ffprobe.c pkt.size = 0; size 2343 ffprobe.c int64_t size = fmt_ctx->pb ? avio_size(fmt_ctx->pb) : -1; size 2357 ffprobe.c if (size >= 0) print_val ("size", size, unit_byte_str); size 2388 ffserver.c int interleaved_index, size; size 2414 ffserver.c size = avio_close_dyn_buf(pb, &c->packet_buffer); size 2417 ffserver.c rtsp_c->packet_buffer_end = c->packet_buffer + size; size 3431 ffserver.c int mpeg4_count, i, size; size 3461 ffserver.c while (p < pkt.data + pkt.size - 4) { size 3465 ffserver.c size = p - pkt.data; size 3467 ffserver.c st->codec->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); size 3468 ffserver.c st->codec->extradata_size = size; size 3469 ffserver.c memcpy(st->codec->extradata, pkt.data, size); 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 831 libavcodec/4xm.c int buf_size = avpkt->size; size 876 libavcodec/4xm.c if (f->cfrm[i].size == 0) size 886 libavcodec/4xm.c if (data_size > UINT_MAX - cfrm->size - FF_INPUT_BUFFER_PADDING_SIZE) size 890 libavcodec/4xm.c cfrm->size + data_size + FF_INPUT_BUFFER_PADDING_SIZE); size 897 libavcodec/4xm.c memcpy(cfrm->data + cfrm->size, buf + 20, data_size); size 898 libavcodec/4xm.c cfrm->size += data_size; size 900 libavcodec/4xm.c if (cfrm->size >= whole_size) { size 902 libavcodec/4xm.c frame_size = cfrm->size; size 911 libavcodec/4xm.c cfrm->size = cfrm->id = 0; size 61 libavcodec/8bps.c int buf_size = avpkt->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 389 libavcodec/a64multienc.c av_assert0(pkt->size >= req_size); size 390 libavcodec/a64multienc.c pkt->size = req_size; size 34 libavcodec/aac_parser.c int size; size 43 libavcodec/aac_parser.c if ((size = avpriv_aac_parse_header(&bits, &hdr)) < 0) size 51 libavcodec/aac_parser.c return size; size 31 libavcodec/aacadtsdec.c int size, rdb, ch, sr; size 53 libavcodec/aacadtsdec.c size = get_bits(gbc, 13); /* aac_frame_length */ size 54 libavcodec/aacadtsdec.c if (size < AAC_ADTS_HEADER_SIZE) size 67 libavcodec/aacadtsdec.c hdr->bit_rate = size * 8 * hdr->sample_rate / hdr->samples; size 69 libavcodec/aacadtsdec.c return size; size 73 libavcodec/aaccoder.c int size, float Q34, int is_signed, int maxval) size 77 libavcodec/aaccoder.c for (i = 0; i < size; i++) { size 86 libavcodec/aaccoder.c static void abs_pow34_v(float *out, const float *in, const int size) size 90 libavcodec/aaccoder.c for (i = 0; i < size; i++) { size 108 libavcodec/aaccoder.c const float *scaled, int size, int scale_idx, size 127 libavcodec/aaccoder.c for (i = 0; i < size; i++) size 134 libavcodec/aaccoder.c abs_pow34_v(s->scoefs, in, size); size 137 libavcodec/aaccoder.c quantize_bands(s->qcoefs, in, scaled, size, Q34, !BT_UNSIGNED, maxval); size 143 libavcodec/aaccoder.c for (i = 0; i < size; i += dim) { size 214 libavcodec/aaccoder.c const float *scaled, int size, int scale_idx, \ size 218 libavcodec/aaccoder.c s, pb, in, scaled, size, scale_idx, \ size 233 libavcodec/aaccoder.c const float *scaled, int size, int scale_idx, size 251 libavcodec/aaccoder.c s, pb, in, scaled, size, scale_idx, cb, \ size 254 libavcodec/aaccoder.c s, pb, in, scaled, size, scale_idx, cb, \ size 258 libavcodec/aaccoder.c const float *scaled, int size, int scale_idx, size 262 libavcodec/aaccoder.c return quantize_and_encode_band_cost(s, NULL, in, scaled, size, scale_idx, size 267 libavcodec/aaccoder.c const float *in, int size, int scale_idx, size 270 libavcodec/aaccoder.c quantize_and_encode_band_cost(s, pb, in, NULL, size, scale_idx, cb, lambda, size 316 libavcodec/aaccoder.c int w, swb, cb, start, size; size 334 libavcodec/aaccoder.c size = sce->ics.swb_sizes[swb]; size 352 libavcodec/aaccoder.c s->scoefs + start + w*128, size, size 417 libavcodec/aaccoder.c int w, swb, cb, start, size; size 435 libavcodec/aaccoder.c size = sce->ics.swb_sizes[swb]; size 474 libavcodec/aaccoder.c s->scoefs + start + w*128, size, size 902 libavcodec/aaccoder.c const int size = sce->ics.swb_sizes[g]; size 903 libavcodec/aaccoder.c int start2 = start, end2 = start + size, peakpos = start; size 908 libavcodec/aaccoder.c start += size; size 910 libavcodec/aaccoder.c memset(coefs + w2*128, 0, sizeof(coefs[0])*size); size 914 libavcodec/aaccoder.c for (i = 0; i < size; i++) { size 931 libavcodec/aaccoder.c start += size; size 944 libavcodec/aaccoder.c const int size = sce->ics.swb_sizes[g]; size 950 libavcodec/aaccoder.c start += size; size 997 libavcodec/aaccoder.c start += size; size 1058 libavcodec/aacdec.c #define AAC_INIT_VLC_STATIC(num, size) \ size 1064 libavcodec/aacdec.c size); size 2362 libavcodec/aacdec.c int bottom, top, order, start, end, size, inc; size 2380 libavcodec/aacdec.c if ((size = end - start) <= 0) size 2392 libavcodec/aacdec.c for (m = 0; m < size; m++, start += inc) size 2397 libavcodec/aacdec.c for (m = 0; m < size; m++, start += inc) { size 2803 libavcodec/aacdec.c int size; size 2808 libavcodec/aacdec.c size = avpriv_aac_parse_header(gb, &hdr_info); size 2809 libavcodec/aacdec.c if (size > 0) { size 2860 libavcodec/aacdec.c return size; size 3105 libavcodec/aacdec.c int buf_size = avpkt->size; size 3407 libavcodec/aacdec.c if ((err = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 3416 libavcodec/aacdec.c if (muxlength > avpkt->size) size 3425 libavcodec/aacdec.c return avpkt->size; size 593 libavcodec/aacenc.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 690 libavcodec/aacenc.c avpkt->size = put_bits_count(&s->pb) >> 3; size 54 libavcodec/aacenc.h void (*quantize_and_encode_band)(struct AACEncContext *s, PutBitContext *pb, const float *in, int size, size 930 libavcodec/aacps.c #define PS_INIT_VLC_STATIC(num, size) \ size 934 libavcodec/aacps.c size); size 313 libavcodec/aacpsy.c ctx->bitres.size = 6144 - pctx->frame_bits; size 314 libavcodec/aacpsy.c ctx->bitres.size -= ctx->bitres.size % 8; size 315 libavcodec/aacpsy.c pctx->fill_level = ctx->bitres.size; size 474 libavcodec/aacpsy.c static int calc_bit_demand(AacPsyContext *ctx, float pe, int bits, int size, size 486 libavcodec/aacpsy.c ctx->fill_level = av_clip(ctx->fill_level, 0, size); size 487 libavcodec/aacpsy.c fill_level = av_clipf((float)ctx->fill_level / size, clip_low, clip_high); size 504 libavcodec/aacpsy.c return FFMIN(ctx->frame_bits * bit_factor, ctx->frame_bits + size - bits); size 674 libavcodec/aacpsy.c desired_bits = calc_bit_demand(pctx, pe, ctx->bitres.bits, ctx->bitres.size, wi->num_windows == 8); size 86 libavcodec/aacsbr.c #define SBR_INIT_VLC_STATIC(num, size) \ size 90 libavcodec/aacsbr.c size) size 85 libavcodec/aasc.c int buf_size = avpkt->size; size 1413 libavcodec/ac3dec.c int 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 150 libavcodec/acelp_filters.h void ff_tilt_compensation(float *mem, float tilt, float *samples, int size); size 203 libavcodec/acelp_vectors.c int size, float alpha, float *gain_mem) size 206 libavcodec/acelp_vectors.c float postfilter_energ = avpriv_scalarproduct_float_c(in, in, size); size 215 libavcodec/acelp_vectors.c for (i = 0; i < size; i++) { size 234 libavcodec/acelp_vectors.c void ff_set_fixed_vector(float *out, const AMRFixed *in, float scale, int size) size 247 libavcodec/acelp_vectors.c } while (x < size && repeats); size 251 libavcodec/acelp_vectors.c void ff_clear_fixed_vector(float *out, const AMRFixed *in, int size) size 262 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 299 libavcodec/adpcm.c static inline short adpcm_sbpro_expand_nibble(ADPCMChannelStatus *c, char nibble, int size, int shift) size 303 libavcodec/adpcm.c sign = nibble & (1<<(size-1)); size 304 libavcodec/adpcm.c delta = nibble & ((1<<(size-1))-1); size 311 libavcodec/adpcm.c if (delta >= (2*size - 3) && c->step < 3) size 419 libavcodec/adpcm.c int size = buf_size*8; size 422 libavcodec/adpcm.c init_get_bits(&gb, buf, size); size 430 libavcodec/adpcm.c while (get_bits_count(&gb) <= size - 22*avctx->channels) { size 436 libavcodec/adpcm.c for (count = 0; get_bits_count(&gb) <= size - nb_bits*avctx->channels && count < 4095; count++) { size 666 libavcodec/adpcm.c int buf_size = avpkt->size; size 1524 libavcodec/adpcm.c if (avpkt->size && bytestream2_tell(&gb) == 0) { size 694 libavcodec/adpcmenc.c avpkt->size = pkt_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 155 libavcodec/adxenc.c if ((hdrsize = adx_encode_header(avctx, dst, avpkt->size)) < 0) { size 158 libavcodec/aic.c static int aic_decode_header(AICContext *ctx, const uint8_t *src, int size) size 174 libavcodec/aic.c if (frame_size > size) { size 176 libavcodec/aic.c frame_size, size); size 373 libavcodec/aic.c int buf_size = avpkt->size; size 417 libavcodec/aic.c return avpkt->size; size 461 libavcodec/alac.c if ((ret = init_get_bits8(&alac->gb, avpkt->data, avpkt->size)) < 0) size 498 libavcodec/alac.c if (avpkt->size * 8 - get_bits_count(&alac->gb) > 8) { size 500 libavcodec/alac.c avpkt->size * 8 - get_bits_count(&alac->gb)); size 508 libavcodec/alac.c return avpkt->size; size 463 libavcodec/alacenc.c init_put_bits(pb, avpkt->data, avpkt->size); size 642 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 118 libavcodec/aliaspixdec.c return avpkt->size; size 1477 libavcodec/alsdec.c int buffer_size = avpkt->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 991 libavcodec/amrwbdec.c static void lpc_weighting(float *out, const float *lpc, float gamma, int size) size 996 libavcodec/amrwbdec.c for (i = 0; i < size; i++) { size 1099 libavcodec/amrwbdec.c int buf_size = avpkt->size; size 118 libavcodec/anm.c const int buf_size = avpkt->size; size 357 libavcodec/ansi.c int buf_size = avpkt->size; size 1413 libavcodec/apedec.c if (!avpkt->size) { size 1417 libavcodec/apedec.c if (avpkt->size < 8) { size 1421 libavcodec/apedec.c buf_size = avpkt->size & ~3; size 1422 libavcodec/apedec.c if (buf_size != avpkt->size) { size 1475 libavcodec/apedec.c return avpkt->size; size 1540 libavcodec/apedec.c return !s->samples ? avpkt->size : 0; size 24 libavcodec/arm/startcode.h int ff_startcode_find_candidate_armv6(const uint8_t *buf, int size); size 186 libavcodec/ass.c void ff_ass_bprint_text_event(AVBPrint *buf, const char *p, int size, size 189 libavcodec/ass.c const char *p_end = p + size; size 133 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 379 libavcodec/ass_split.c for (i=0; i<*count; i++, ptr += section->size) size 446 libavcodec/ass_split.c int len, size = -1, an = -1, alpha = -1; size 470 libavcodec/ass_split.c sscanf(buf, "\\fs%u%1[\\}]%n", &size, sep, &len) > 1) { size 472 libavcodec/ass_split.c callbacks->font_size(priv, size); size 150 libavcodec/ass_split.h void (*font_size)(void *priv, int size); size 56 libavcodec/assdec.c int len, size = avpkt->size; size 58 libavcodec/assdec.c while (size > 0) { size 68 libavcodec/assdec.c size -= len; size 71 libavcodec/assdec.c *got_sub_ptr = avpkt->size > 0; size 72 libavcodec/assdec.c return avpkt->size; size 97 libavcodec/assdec.c if (avpkt->size <= 0) size 98 libavcodec/assdec.c return avpkt->size; size 107 libavcodec/assdec.c *got_sub_ptr = avpkt->size > 0; size 108 libavcodec/assdec.c return avpkt->size; size 209 libavcodec/asvdec.c int buf_size = avpkt->size; size 222 libavcodec/asvenc.c int size, ret; size 271 libavcodec/asvenc.c init_put_bits(&a->pb, pkt->data, pkt->size); size 301 libavcodec/asvenc.c size = put_bits_count(&a->pb) / 32; size 305 libavcodec/asvenc.c (uint32_t *) pkt->data, size); size 308 libavcodec/asvenc.c for (i = 0; i < 4 * size; i++) size 312 libavcodec/asvenc.c pkt->size = size * 4; size 277 libavcodec/atrac1.c int buf_size = avpkt->size; size 739 libavcodec/atrac3.c int buf_size = avpkt->size; size 339 libavcodec/atrac3plusdec.c if ((ret = init_get_bits8(&ctx->gb, avpkt->data, avpkt->size)) < 0) 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 1111 libavcodec/avcodec.h int size; size 1161 libavcodec/avcodec.h int size; size 2461 libavcodec/avcodec.h void (*rtp_callback)(struct AVCodecContext *avctx, void *data, int size, int mb_nb); size 2791 libavcodec/avcodec.h int (*execute)(struct AVCodecContext *c, int (*func)(struct AVCodecContext *c2, void *arg), void *arg2, int *ret, int count, int size); size 3745 libavcodec/avcodec.h int av_new_packet(AVPacket *pkt, int size); size 3753 libavcodec/avcodec.h void av_shrink_packet(AVPacket *pkt, int size); size 3776 libavcodec/avcodec.h int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size); size 3814 libavcodec/avcodec.h int size); size 3825 libavcodec/avcodec.h int size); size 3836 libavcodec/avcodec.h int *size); size 3849 libavcodec/avcodec.h uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size); size 3858 libavcodec/avcodec.h int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict); size 4979 libavcodec/avcodec.h int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2),void *arg, int *ret, int count, int size); size 5160 libavcodec/avcodec.h void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size); size 5166 libavcodec/avcodec.h void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size); size 38 libavcodec/avpacket.c pkt->size = 0; size 68 libavcodec/avpacket.c static int packet_alloc(AVBufferRef **buf, int size) size 71 libavcodec/avpacket.c if ((unsigned)size >= (unsigned)size + FF_INPUT_BUFFER_PADDING_SIZE) size 74 libavcodec/avpacket.c ret = av_buffer_realloc(buf, size + FF_INPUT_BUFFER_PADDING_SIZE); size 78 libavcodec/avpacket.c memset((*buf)->data + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 83 libavcodec/avpacket.c int av_new_packet(AVPacket *pkt, int size) size 86 libavcodec/avpacket.c int ret = packet_alloc(&buf, size); size 93 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, FF_INPUT_BUFFER_PADDING_SIZE); size 114 libavcodec/avpacket.c av_assert0((unsigned)pkt->size <= INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE); size 115 libavcodec/avpacket.c if (!pkt->size) size 118 libavcodec/avpacket.c INT_MAX - (pkt->size + FF_INPUT_BUFFER_PADDING_SIZE)) size 121 libavcodec/avpacket.c new_size = pkt->size + grow_by + FF_INPUT_BUFFER_PADDING_SIZE; size 130 libavcodec/avpacket.c memcpy(pkt->buf->data, pkt->data, FFMIN(pkt->size, pkt->size + grow_by)); size 138 libavcodec/avpacket.c pkt->size += grow_by; size 139 libavcodec/avpacket.c memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 144 libavcodec/avpacket.c int av_packet_from_data(AVPacket *pkt, uint8_t *data, int size) size 146 libavcodec/avpacket.c if (size >= INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) size 149 libavcodec/avpacket.c pkt->buf = av_buffer_create(data, size + FF_INPUT_BUFFER_PADDING_SIZE, size 155 libavcodec/avpacket.c pkt->size = size; size 165 libavcodec/avpacket.c #define ALLOC_MALLOC(data, size) data = av_malloc(size) size 166 libavcodec/avpacket.c #define ALLOC_BUF(data, size) \ size 168 libavcodec/avpacket.c av_buffer_realloc(&pkt->buf, size); \ size 172 libavcodec/avpacket.c #define DUP_DATA(dst, src, size, padding, ALLOC) \ size 176 libavcodec/avpacket.c if ((unsigned)(size) > \ size 177 libavcodec/avpacket.c (unsigned)(size) + FF_INPUT_BUFFER_PADDING_SIZE) \ size 179 libavcodec/avpacket.c ALLOC(data, size + FF_INPUT_BUFFER_PADDING_SIZE); \ size 181 libavcodec/avpacket.c ALLOC(data, size); \ size 185 libavcodec/avpacket.c memcpy(data, src, size); \ size 187 libavcodec/avpacket.c memset((uint8_t *)data + size, 0, \ size 204 libavcodec/avpacket.c DUP_DATA(pkt->data, src->data, pkt->size, 1, ALLOC_BUF); size 235 libavcodec/avpacket.c src->side_data[i].size, 1, ALLOC_MALLOC); size 236 libavcodec/avpacket.c pkt->side_data[i].size = src->side_data[i].size; size 293 libavcodec/avpacket.c pkt->size = 0; size 300 libavcodec/avpacket.c int size) size 306 libavcodec/avpacket.c if ((unsigned)size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) size 314 libavcodec/avpacket.c pkt->side_data[elems].data = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); size 317 libavcodec/avpacket.c pkt->side_data[elems].size = size; size 325 libavcodec/avpacket.c int *size) size 331 libavcodec/avpacket.c if (size) size 332 libavcodec/avpacket.c *size = pkt->side_data[i].size; size 346 libavcodec/avpacket.c uint64_t size= pkt->size + 8LL + FF_INPUT_BUFFER_PADDING_SIZE; size 349 libavcodec/avpacket.c size += old.side_data[i].size + 5LL; size 351 libavcodec/avpacket.c if (size > INT_MAX) size 353 libavcodec/avpacket.c buf = av_buffer_alloc(size); size 363 libavcodec/avpacket.c pkt->size = size - FF_INPUT_BUFFER_PADDING_SIZE; size 364 libavcodec/avpacket.c bytestream_put_buffer(&p, old.data, old.size); size 366 libavcodec/avpacket.c bytestream_put_buffer(&p, old.side_data[i].data, old.side_data[i].size); size 367 libavcodec/avpacket.c bytestream_put_be32(&p, old.side_data[i].size); size 371 libavcodec/avpacket.c av_assert0(p-pkt->data == pkt->size); size 382 libavcodec/avpacket.c if (!pkt->side_data_elems && pkt->size >12 && AV_RB64(pkt->data + pkt->size - 8) == FF_MERGE_MARKER){ size 384 libavcodec/avpacket.c unsigned int size; size 387 libavcodec/avpacket.c p = pkt->data + pkt->size - 8 - 5; size 389 libavcodec/avpacket.c size = AV_RB32(p); size 390 libavcodec/avpacket.c if (size>INT_MAX || p - pkt->data < size) size 394 libavcodec/avpacket.c p-= size+5; size 401 libavcodec/avpacket.c p= pkt->data + pkt->size - 8 - 5; size 403 libavcodec/avpacket.c size= AV_RB32(p); size 404 libavcodec/avpacket.c av_assert0(size<=INT_MAX && p - pkt->data >= size); size 405 libavcodec/avpacket.c pkt->side_data[i].data = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); size 406 libavcodec/avpacket.c pkt->side_data[i].size = size; size 410 libavcodec/avpacket.c memcpy(pkt->side_data[i].data, p-size, size); size 411 libavcodec/avpacket.c pkt->size -= size + 5; size 414 libavcodec/avpacket.c p-= size+5; size 416 libavcodec/avpacket.c pkt->size -= 8; size 423 libavcodec/avpacket.c uint8_t *av_packet_pack_dictionary(AVDictionary *dict, int *size) size 427 libavcodec/avpacket.c *size = 0; size 435 libavcodec/avpacket.c const size_t new_size = *size + keylen + 1 + valuelen + 1; size 444 libavcodec/avpacket.c memcpy(data + *size, t->key, keylen + 1); size 445 libavcodec/avpacket.c memcpy(data + *size + keylen + 1, t->value, valuelen + 1); size 447 libavcodec/avpacket.c *size = new_size; size 454 libavcodec/avpacket.c *size = 0; size 458 libavcodec/avpacket.c int av_packet_unpack_dictionary(const uint8_t *data, int size, AVDictionary **dict) size 460 libavcodec/avpacket.c const uint8_t *end = data + size; size 463 libavcodec/avpacket.c if (!dict || !data || !size) size 465 libavcodec/avpacket.c if (size && end[-1]) size 484 libavcodec/avpacket.c int size) size 490 libavcodec/avpacket.c if (size > pkt->side_data[i].size) size 492 libavcodec/avpacket.c pkt->side_data[i].size = size; size 513 libavcodec/avpacket.c int size = src->side_data[i].size; size 515 libavcodec/avpacket.c uint8_t *dst_data = av_packet_new_side_data(dst, type, size); size 521 libavcodec/avpacket.c memcpy(dst_data, src_data, size); size 533 libavcodec/avpacket.c pkt->size = 0; size 545 libavcodec/avpacket.c ret = packet_alloc(&dst->buf, src->size); size 548 libavcodec/avpacket.c memcpy(dst->buf->data, src->data, src->size); size 557 libavcodec/avpacket.c dst->size = src->size; size 83 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 60 libavcodec/avuienc.c int i, j, skip, ret, size, interlaced; size 69 libavcodec/avuienc.c size = 2 * avctx->width * (avctx->height + skip) + 8 * interlaced; size 70 libavcodec/avuienc.c if ((ret = ff_alloc_packet2(avctx, pkt, 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 146 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 269 libavcodec/bink.c int size = 1 << i; size 270 libavcodec/bink.c for (t = 0; t < 16; t += size << 1) size 271 libavcodec/bink.c merge(gb, out + t, in + t, size); size 1188 libavcodec/bink.c int bits_count = pkt->size << 3; size 1237 libavcodec/bink.c return pkt->size; size 297 libavcodec/binkaudio.c if (!avpkt->size) { size 301 libavcodec/binkaudio.c if (avpkt->size < 4) { size 305 libavcodec/binkaudio.c buf = av_realloc(s->packet_buffer, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); size 308 libavcodec/binkaudio.c memset(buf + avpkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 310 libavcodec/binkaudio.c memcpy(s->packet_buffer, avpkt->data, avpkt->size); size 311 libavcodec/binkaudio.c if ((ret = init_get_bits8(gb, s->packet_buffer, avpkt->size)) < 0) size 313 libavcodec/binkaudio.c consumed = avpkt->size; size 142 libavcodec/bintext.c int buf_size = avpkt->size; size 88 libavcodec/bitstream.c #define GET_DATA(v, table, i, wrap, size) \ size 91 libavcodec/bitstream.c switch(size) { \ size 105 libavcodec/bitstream.c static int alloc_table(VLC *vlc, int size, int use_static) size 109 libavcodec/bitstream.c vlc->table_size += size; size 35 libavcodec/bmp.c int buf_size = avpkt->size; size 46 libavcodec/bmvaudio.c int buf_size = avpkt->size; size 212 libavcodec/bmvvideo.c if (pkt->size < blobs * 65 + 2) { size 220 libavcodec/bmvvideo.c if (c->stream - pkt->data + command_size > pkt->size) { size 227 libavcodec/bmvvideo.c if (c->stream - pkt->data > pkt->size - 768) { size 235 libavcodec/bmvvideo.c if (c->stream - pkt->data > pkt->size - 2) { size 249 libavcodec/bmvvideo.c if (decode_bmv_frame(c->stream, pkt->size - (c->stream - pkt->data), c->frame, scr_off)) { size 269 libavcodec/bmvvideo.c return pkt->size; size 148 libavcodec/brenderpix.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 282 libavcodec/brenderpix.c return avpkt->size; size 163 libavcodec/bytestream.h unsigned int size) size 165 libavcodec/bytestream.h g->buffer += FFMIN(g->buffer_end - g->buffer, size); size 169 libavcodec/bytestream.h unsigned int size) size 171 libavcodec/bytestream.h g->buffer += size; size 175 libavcodec/bytestream.h unsigned int size) size 180 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 181 libavcodec/bytestream.h if (size2 != size) size 263 libavcodec/bytestream.h unsigned int size) size 265 libavcodec/bytestream.h int size2 = FFMIN(g->buffer_end - g->buffer, size); size 273 libavcodec/bytestream.h unsigned int size) size 275 libavcodec/bytestream.h memcpy(dst, g->buffer, size); size 276 libavcodec/bytestream.h g->buffer += size; size 277 libavcodec/bytestream.h return size; size 282 libavcodec/bytestream.h unsigned int size) size 287 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 288 libavcodec/bytestream.h if (size2 != size) size 297 libavcodec/bytestream.h unsigned int size) size 299 libavcodec/bytestream.h memcpy(p->buffer, src, size); size 300 libavcodec/bytestream.h p->buffer += size; size 301 libavcodec/bytestream.h return size; size 306 libavcodec/bytestream.h unsigned int size) size 311 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 312 libavcodec/bytestream.h if (size2 != size) size 320 libavcodec/bytestream.h unsigned int size) size 322 libavcodec/bytestream.h memset(p->buffer, c, size); size 323 libavcodec/bytestream.h p->buffer += size; size 333 libavcodec/bytestream.h unsigned int size) size 335 libavcodec/bytestream.h memcpy(p->buffer, g->buffer, size); size 336 libavcodec/bytestream.h p->buffer += size; size 337 libavcodec/bytestream.h g->buffer += size; size 338 libavcodec/bytestream.h return size; size 343 libavcodec/bytestream.h unsigned int size) size 349 libavcodec/bytestream.h size = FFMIN(g->buffer_end - g->buffer, size); size 350 libavcodec/bytestream.h size2 = FFMIN(p->buffer_end - p->buffer, size); size 351 libavcodec/bytestream.h if (size2 != size) size 359 libavcodec/bytestream.h unsigned int size) size 361 libavcodec/bytestream.h memcpy(dst, *b, size); size 362 libavcodec/bytestream.h (*b) += size; size 363 libavcodec/bytestream.h return size; size 368 libavcodec/bytestream.h unsigned int size) size 370 libavcodec/bytestream.h memcpy(*b, src, size); size 371 libavcodec/bytestream.h (*b) += size; size 128 libavcodec/c93.c int buf_size = avpkt->size; size 578 libavcodec/cavs.c enum cavs_mv_pred mode, enum cavs_block size, int ref) size 620 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 485 libavcodec/cavsdec.c enum cavs_block size) size 494 libavcodec/cavsdec.c set_mvs(dst, size); size 1169 libavcodec/cavsdec.c int buf_size = avpkt->size; size 525 libavcodec/ccaption_dec.c int len = avpkt->size; size 529 libavcodec/ccaption_dec.c if ( ctx->pktbuf->size < len) { size 532 libavcodec/ccaption_dec.c av_log(ctx, AV_LOG_WARNING, "Insufficient Memory of %d truncated to %d\n",len, ctx->pktbuf->size); size 533 libavcodec/ccaption_dec.c len = ctx->pktbuf->size; size 265 libavcodec/cdgraphics.c int buf_size = avpkt->size; size 281 libavcodec/cdgraphics.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 358 libavcodec/cdgraphics.c return avpkt->size; size 224 libavcodec/cdxl.c int ret, w, h, encoding, aligned_width, buf_size = 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 320 libavcodec/cinepak.c const uint8_t *eod = (s->data + s->size); size 325 libavcodec/cinepak.c if (s->size < 10) size 338 libavcodec/cinepak.c if (encoded_buf_size != s->size && (s->size % encoded_buf_size) != 0) { size 345 libavcodec/cinepak.c if (s->size >= 16 && size 436 libavcodec/cinepak.c int ret = 0, buf_size = avpkt->size; size 440 libavcodec/cinepak.c s->size = buf_size; size 482 libavcodec/cinepakenc.c static int encode_codebook(CinepakEncContext *s, int *codebook, int size, int chunk_type_yuv, int chunk_type_gray, unsigned char *buf) size 492 libavcodec/cinepakenc.c entry_size * size size 493 libavcodec/cinepakenc.c + (incremental_codebook_replacement_mode?(size+31)/32*4:0) ); size 503 libavcodec/cinepakenc.c for(x = 0; x < size; x++) { size 520 libavcodec/cinepakenc.c for(x = 0; x < size; x++) size 792 libavcodec/cinepakenc.c int size = v1mode ? info->v1_size : info->v4_size; size 850 libavcodec/cinepakenc.c if(i < size) { size 852 libavcodec/cinepakenc.c size = i; size 855 libavcodec/cinepakenc.c avpriv_init_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->randctx); size 856 libavcodec/cinepakenc.c avpriv_do_elbg(s->codebook_input, entry_size, i, codebook, size, 1, s->codebook_closest, &s->randctx); size 898 libavcodec/cinepakenc.c av_assert0(i >= size); // training set is no smaller than the codebook size 902 libavcodec/cinepakenc.c return size; size 1123 libavcodec/cinepakenc.c int num_strips, strip, i, y, nexty, size, temp_size; size 1179 libavcodec/cinepakenc.c size = 0; size 1205 libavcodec/cinepakenc.c if((temp_size = rd_strip(s, y, strip_height, isakeyframe, &last_pict, &pict, &scratch_pict, s->frame_buf + size + CVID_HEADER_SIZE, &score_temp size 1216 libavcodec/cinepakenc.c size += temp_size; size 1226 libavcodec/cinepakenc.c best_size = size + write_cvid_header(s, s->frame_buf, num_strips, size, isakeyframe); size 1281 libavcodec/cinepakenc.c pkt->size = ret; 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 370 libavcodec/cllc.c if (info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt->size) { size 383 libavcodec/cllc.c data_size = (avpkt->size - info_offset) & ~1; size 459 libavcodec/cllc.c return avpkt->size; size 107 libavcodec/cngdec.c int buf_size = avpkt->size; size 113 libavcodec/cngdec.c if (avpkt->size) { size 117 libavcodec/cngdec.c for (i = 0; i < FFMIN(avpkt->size - 1, p->order); i++) { size 100 libavcodec/cngenc.c avpkt->size = 1 + p->order; size 75 libavcodec/cook.c int size; size 914 libavcodec/cook.c int sub_packet_size = p->size; size 958 libavcodec/cook.c int buf_size = avpkt->size; size 977 libavcodec/cook.c q->subpacket[0].size = avctx->block_align; size 980 libavcodec/cook.c q->subpacket[i].size = 2 * buf[avctx->block_align - q->num_subpackets + i]; size 981 libavcodec/cook.c q->subpacket[0].size -= q->subpacket[i].size + 1; size 982 libavcodec/cook.c if (q->subpacket[0].size < 0) { size 991 libavcodec/cook.c q->subpacket[i].bits_per_subpacket = (q->subpacket[i].size * 8) >> size 996 libavcodec/cook.c i, q->subpacket[i].size, q->subpacket[i].joint_stereo, offset, size 1001 libavcodec/cook.c offset += q->subpacket[i].size; size 1004 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 size 92 libavcodec/cpia.c src_size = avpkt->size - FRAME_HEADER_SIZE; size 189 libavcodec/cpia.c return avpkt->size; size 879 libavcodec/crystalhd.c int len = avpkt->size; size 885 libavcodec/crystalhd.c if (avpkt->size == 7 && !priv->bframe_bug) { size 892 libavcodec/crystalhd.c } else if (avpkt->size == 8 && priv->bframe_bug) { size 68 libavcodec/cscd.c int buf_size = avpkt->size; size 64 libavcodec/cyuv.c int buf_size = avpkt->size; size 33 libavcodec/dca_parser.c int size; size 73 libavcodec/dca_parser.c pc1->size++; size 76 libavcodec/dca_parser.c pc1->hd_pos = pc1->size; size 78 libavcodec/dca_parser.c if (pc1->framesize > pc1->size) size 82 libavcodec/dca_parser.c pc1->size = 0; size 825 libavcodec/dcadec.c int block_code1, block_code2, size, levels, err; size 827 libavcodec/dcadec.c size = abits_sizes[abits - 1]; size 830 libavcodec/dcadec.c block_code1 = get_bits(&s->gb, size); size 831 libavcodec/dcadec.c block_code2 = get_bits(&s->gb, size); size 1205 libavcodec/dcadec.c int block_code1, block_code2, size, levels, err; size 1207 libavcodec/dcadec.c size = abits_sizes[xbr_abits - 1]; size 1210 libavcodec/dcadec.c block_code1 = get_bits(&s->gb, size); size 1211 libavcodec/dcadec.c block_code2 = get_bits(&s->gb, size); size 1327 libavcodec/dcadec.c int buf_size = avpkt->size; size 936 libavcodec/dcaenc.c init_put_bits(&c->pb, avpkt->data, avpkt->size); size 946 libavcodec/dcaenc.c avpkt->size = c->frame_size + 1; size 58 libavcodec/dfa.c const int size = width * height; size 60 libavcodec/dfa.c if (bytestream2_get_buffer(gb, frame, size) != size) size 353 libavcodec/dfa.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 400 libavcodec/dfa.c return avpkt->size; size 76 libavcodec/diracdec.c #define CALC_PADDING(size, depth) \ size 77 libavcodec/diracdec.c (((size + (1 << depth) - 1) >> depth) << depth) size 1214 libavcodec/diracdec.c static void propagate_block_data(DiracBlock *block, int stride, int size) size 1219 libavcodec/diracdec.c for (x = 1; x < size; x++) size 1222 libavcodec/diracdec.c for (y = 1; y < size; y++) { size 1224 libavcodec/diracdec.c for (x = 0; x < size; x++) size 1814 libavcodec/diracdec.c static int dirac_decode_data_unit(AVCodecContext *avctx, const uint8_t *buf, int size) size 1821 libavcodec/diracdec.c if (size < DATA_UNIT_HEADER_SIZE) size 1824 libavcodec/diracdec.c init_get_bits(&s->gb, &buf[13], 8*(size - DATA_UNIT_HEADER_SIZE)); size 1908 libavcodec/diracdec.c int buf_size = pkt->size; size 444 libavcodec/dnxhddec.c int buf_size = avpkt->size; size 491 libavcodec/dnxhddec.c return avpkt->size; size 939 libavcodec/dnxhdenc.c static void radix_count(const RCCMPEntry *data, int size, size 944 libavcodec/dnxhdenc.c for (i = 0; i < size; i++) { size 953 libavcodec/dnxhdenc.c int offset = size; size 961 libavcodec/dnxhdenc.c int size, int buckets[NBUCKETS], int pass) size 965 libavcodec/dnxhdenc.c for (i = 0; i < size; i++) { size 972 libavcodec/dnxhdenc.c static void radix_sort(RCCMPEntry *data, int size) size 975 libavcodec/dnxhdenc.c RCCMPEntry *tmp = av_malloc_array(size, sizeof(*tmp)); size 976 libavcodec/dnxhdenc.c radix_count(data, size, buckets); size 977 libavcodec/dnxhdenc.c radix_sort_pass(tmp, data, size, buckets[0], 0); size 978 libavcodec/dnxhdenc.c radix_sort_pass(data, tmp, size, buckets[1], 1); size 980 libavcodec/dnxhdenc.c radix_sort_pass(tmp, data, size, buckets[2], 2); size 981 libavcodec/dnxhdenc.c radix_sort_pass(data, tmp, size, buckets[3], 3); size 172 libavcodec/dpcm.c int buf_size = avpkt->size; size 325 libavcodec/dpcm.c return avpkt->size; size 74 libavcodec/dpx.c int buf_size = avpkt->size; size 87 libavcodec/dpx.c if (avpkt->size <= 1634) { size 107 libavcodec/dpx.c if (avpkt->size <= offset) { size 226 libavcodec/dpx.c if (need_align*avctx->height + (int64_t)offset > avpkt->size) { size 228 libavcodec/dpx.c if (stride*avctx->height + (int64_t)offset > avpkt->size) { size 176 libavcodec/dpxenc.c int size, ret, need_align, len; size 181 libavcodec/dpxenc.c size = avctx->height * avctx->width * 4; size 185 libavcodec/dpxenc.c size = FFALIGN(len, 4); size 186 libavcodec/dpxenc.c need_align = size - len; size 187 libavcodec/dpxenc.c size *= avctx->height; size 191 libavcodec/dpxenc.c size = FFALIGN(len, 4); size 192 libavcodec/dpxenc.c need_align = size - len; size 193 libavcodec/dpxenc.c size *= avctx->height; size 195 libavcodec/dpxenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size + HEADER_SIZE)) < 0) size 235 libavcodec/dpxenc.c size = (len + need_align) * avctx->height; size 243 libavcodec/dpxenc.c size = avpicture_layout((const AVPicture*)frame, avctx->pix_fmt, size 245 libavcodec/dpxenc.c buf + HEADER_SIZE, pkt->size - HEADER_SIZE); size 247 libavcodec/dpxenc.c if (size < 0) size 248 libavcodec/dpxenc.c return size; size 264 libavcodec/dpxenc.c size += HEADER_SIZE; size 266 libavcodec/dpxenc.c write32(buf + 16, size); /* file size */ size 128 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 195 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 37 libavcodec/dump_extradata_bsf.c int size= buf_size + avctx->extradata_size; size 38 libavcodec/dump_extradata_bsf.c *poutbuf_size= size; size 39 libavcodec/dump_extradata_bsf.c *poutbuf= av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); size 103 libavcodec/dv.h int size = d->n_difchan * d->difseg_size * 27; size 105 libavcodec/dv.h size -= 3 * 27; size 107 libavcodec/dv.h size -= 4 * 27; size 108 libavcodec/dv.h return size; size 30 libavcodec/dv_tablegen.c "{0x%"PRIx32", %"PRId8"}", 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 1533 libavcodec/dvbsubdec.c int buf_size = avpkt->size; size 471 libavcodec/dvdec.c int buf_size = avpkt->size; size 535 libavcodec/dvdsubdec.c int buf_size = avpkt->size; size 100 libavcodec/dvenc.c int size; size 103 libavcodec/dvenc.c size = dv_vlc_map[run][level].size; size 107 libavcodec/dvenc.c size = dv_vlc_map[0][level].size; size 110 libavcodec/dvenc.c size = 16; size 114 libavcodec/dvenc.c (0x1f80 | (run - 1))) << size; size 115 libavcodec/dvenc.c size += (run < 16) ? dv_vlc_map[run - 1][0].size : 13; size 119 libavcodec/dvenc.c return size; size 124 libavcodec/dvenc.c int size; size 127 libavcodec/dvenc.c size = dv_vlc_map[run][level].size; size 129 libavcodec/dvenc.c size = (level < DV_VLC_MAP_LEV_SIZE) ? dv_vlc_map[0][level].size : 16; size 131 libavcodec/dvenc.c size += (run < 16) ? dv_vlc_map[run - 1][0].size : 13; size 133 libavcodec/dvenc.c return size; size 139 libavcodec/dvenc.c return dv_vlc_map[run][l].size; size 144 libavcodec/dvenc.c return dv_vlc_map[run][l].size; size 168 libavcodec/dvenc.c int size = bi->partial_bit_count; size 175 libavcodec/dvenc.c for (; size > (bits_left = put_bits_left(pb)); pb++) { size 177 libavcodec/dvenc.c size -= bits_left; size 178 libavcodec/dvenc.c put_bits(pb, bits_left, vlc >> size); size 179 libavcodec/dvenc.c vlc = vlc & ((1 << size) - 1); size 182 libavcodec/dvenc.c bi->partial_bit_count = size; size 189 libavcodec/dvenc.c put_bits(pb, size, vlc); size 198 libavcodec/dvenc.c size = dv_rl2vlc(bi->cur_ac - prev - 1, bi->mb[bi->cur_ac], size 201 libavcodec/dvenc.c size = 4; size 350 libavcodec/dvenc.c int size[5]; size 354 libavcodec/dvenc.c size[0] = size 355 libavcodec/dvenc.c size[1] = size 356 libavcodec/dvenc.c size[2] = size 357 libavcodec/dvenc.c size[3] = size 358 libavcodec/dvenc.c size[4] = 1 << 24; size 366 libavcodec/dvenc.c size[i] = 0; size 395 libavcodec/dvenc.c size[i] += b->bit_size[a]; size 398 libavcodec/dvenc.c if (vs_total_ac_bits >= size[0] + size[1] + size[2] + size[3] + size[4]) size 403 libavcodec/dvenc.c for (a = 2; a == 2 || vs_total_ac_bits < size[0]; a += a) { size 405 libavcodec/dvenc.c size[0] = 5 * 6 * 4; // EOB size 412 libavcodec/dvenc.c size[0] += dv_rl2vlc_size(k - prev - 1, b->mb[k]); size 545 libavcodec/dvenc.c int size = pbs[j].size_in_bits >> 3; size 548 libavcodec/dvenc.c if (pos > size) { size 553 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 687 libavcodec/dxtory.c if (avpkt->size < 16) { size 694 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 698 libavcodec/dxtory.c ret = dxtory_decode_v2_rgb(avctx, pic, src + 16, avpkt->size - 16); size 701 libavcodec/dxtory.c ret = dxtory_decode_v1_420(avctx, pic, src + 16, avpkt->size - 16); size 704 libavcodec/dxtory.c ret = dxtory_decode_v2_420(avctx, pic, src + 16, avpkt->size - 16); size 707 libavcodec/dxtory.c ret = dxtory_decode_v1_410(avctx, pic, src + 16, avpkt->size - 16); size 710 libavcodec/dxtory.c ret = dxtory_decode_v2_410(avctx, pic, src + 16, avpkt->size - 16); size 713 libavcodec/dxtory.c ret = dxtory_decode_v1_444(avctx, pic, src + 16, avpkt->size - 16); size 716 libavcodec/dxtory.c ret = dxtory_decode_v2_444(avctx, pic, src + 16, avpkt->size - 16); size 719 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 723 libavcodec/dxtory.c ret = dxtory_decode_v2_565(avctx, pic, src + 16, avpkt->size - 16, 1); size 727 libavcodec/dxtory.c ret = dxtory_decode_v1_rgb(avctx, pic, src + 16, avpkt->size - 16, size 732 libavcodec/dxtory.c ret = dxtory_decode_v2_565(avctx, pic, src + 16, avpkt->size - 16, 0); size 746 libavcodec/dxtory.c return avpkt->size; size 55 libavcodec/dxva2.c unsigned type, const void *data, unsigned size, size 70 libavcodec/dxva2.c if (size <= dxva_size) { size 71 libavcodec/dxva2.c memcpy(dxva_data, data, size); size 75 libavcodec/dxva2.c dsc->DataSize = size; size 192 libavcodec/dxva2_h264.c unsigned position, unsigned size) size 196 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = size; size 211 libavcodec/dxva2_h264.c const DXVA_PicParams_H264 *pp, unsigned position, unsigned size) size 219 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = size; size 321 libavcodec/dxva2_h264.c unsigned position, size; size 334 libavcodec/dxva2_h264.c size = slice->SliceBytesInBuffer; size 335 libavcodec/dxva2_h264.c if (start_code_size + size > end - current) { size 341 libavcodec/dxva2_h264.c slice->SliceBytesInBuffer = start_code_size + size; size 355 libavcodec/dxva2_h264.c memcpy(current, &ctx_pic->bitstream[position], size); size 356 libavcodec/dxva2_h264.c current += size; size 392 libavcodec/dxva2_h264.c av_unused uint32_t size) size 416 libavcodec/dxva2_h264.c uint32_t size) size 429 libavcodec/dxva2_h264.c ctx_pic->bitstream_size += size; size 434 libavcodec/dxva2_h264.c position, size); size 437 libavcodec/dxva2_h264.c &ctx_pic->pp, position, size); size 222 libavcodec/dxva2_hevc.c unsigned position, unsigned size) size 226 libavcodec/dxva2_hevc.c slice->SliceBytesInBuffer = size; size 260 libavcodec/dxva2_hevc.c unsigned position, size; size 265 libavcodec/dxva2_hevc.c size = slice->SliceBytesInBuffer; size 266 libavcodec/dxva2_hevc.c if (start_code_size + size > end - current) { size 272 libavcodec/dxva2_hevc.c slice->SliceBytesInBuffer = start_code_size + size; size 277 libavcodec/dxva2_hevc.c memcpy(current, &ctx_pic->bitstream[position], size); size 278 libavcodec/dxva2_hevc.c current += size; size 310 libavcodec/dxva2_hevc.c av_unused uint32_t size) size 334 libavcodec/dxva2_hevc.c uint32_t size) size 346 libavcodec/dxva2_hevc.c ctx_pic->bitstream_size += size; size 349 libavcodec/dxva2_hevc.c fill_slice_short(&ctx_pic->slice_short[ctx_pic->slice_count], position, size); size 45 libavcodec/dxva2_internal.h unsigned type, const void *data, unsigned size, size 125 libavcodec/dxva2_mpeg2.c const uint8_t *buffer, unsigned size) size 133 libavcodec/dxva2_mpeg2.c slice->dwSliceBitsInBuffer = 8 * size; size 141 libavcodec/dxva2_mpeg2.c init_get_bits(&gb, &buffer[4], 8 * (size - 4)); size 175 libavcodec/dxva2_mpeg2.c unsigned size = slice->dwSliceBitsInBuffer / 8; size 176 libavcodec/dxva2_mpeg2.c if (size > end - current) { size 189 libavcodec/dxva2_mpeg2.c memcpy(current, &ctx_pic->bitstream[position], size); size 190 libavcodec/dxva2_mpeg2.c current += size; size 212 libavcodec/dxva2_mpeg2.c av_unused uint32_t size) size 233 libavcodec/dxva2_mpeg2.c const uint8_t *buffer, uint32_t size) size 247 libavcodec/dxva2_mpeg2.c ctx_pic->bitstream_size += size; size 251 libavcodec/dxva2_mpeg2.c buffer, size); size 160 libavcodec/dxva2_vc1.c unsigned position, unsigned size) size 168 libavcodec/dxva2_vc1.c slice->dwSliceBitsInBuffer = 8 * size; size 238 libavcodec/dxva2_vc1.c av_unused uint32_t size) size 257 libavcodec/dxva2_vc1.c uint32_t size) size 267 libavcodec/dxva2_vc1.c size >= 4 && IS_MARKER(AV_RB32(buffer))) { size 269 libavcodec/dxva2_vc1.c size -= 4; size 272 libavcodec/dxva2_vc1.c ctx_pic->bitstream_size = size; size 275 libavcodec/dxva2_vc1.c fill_slice(avctx, &ctx_pic->si, 0, size); 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 202 libavcodec/eatgq.c int buf_size = avpkt->size; size 241 libavcodec/eatgq.c return avpkt->size; size 76 libavcodec/eatgv.c int size, size1, size2, offset, run; size 86 libavcodec/eatgv.c size = AV_RB24(src); size 89 libavcodec/eatgv.c while (size > 0 && src < src_end) { size 123 libavcodec/eatgv.c size -= size1; size 133 libavcodec/eatgv.c size -= size2; size 267 libavcodec/eatgv.c int buf_size = avpkt->size; size 108 libavcodec/eatqi.c int buf_size = avpkt->size; size 870 libavcodec/error_resilience.c int size = s->b8_stride * 2 * s->mb_height; size 919 libavcodec/error_resilience.c s->motion_val_buf[i] = av_buffer_allocz((size + 4) * 2 * sizeof(uint16_t)); size 40 libavcodec/escape124.c unsigned size; size 87 libavcodec/escape124.c unsigned size) size 92 libavcodec/escape124.c if (size >= INT_MAX / 34 || get_bits_left(gb) < size * 34) size 95 libavcodec/escape124.c if (size >= INT_MAX / sizeof(MacroBlock)) size 97 libavcodec/escape124.c cb.blocks = av_malloc(size ? size * sizeof(MacroBlock) : 1); size 102 libavcodec/escape124.c cb.size = size; size 103 libavcodec/escape124.c for (i = 0; i < size; i++) { size 166 libavcodec/escape124.c if (block_index >= s->codebooks[*codebook_index].size) size 203 libavcodec/escape124.c int buf_size = avpkt->size; size 220 libavcodec/escape124.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 194 libavcodec/escape130.c int buf_size = avpkt->size; size 220 libavcodec/escape130.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 743 libavcodec/evrcdec.c int buf_size = avpkt->size; size 906 libavcodec/evrcdec.c return avpkt->size; size 220 libavcodec/exr.c static void predictor(uint8_t *src, int size) size 223 libavcodec/exr.c uint8_t *stop = src + size; size 232 libavcodec/exr.c static void reorder_pixels(uint8_t *src, uint8_t *dst, int size) size 235 libavcodec/exr.c const int8_t *t2 = src + (size + 1) / 2; size 237 libavcodec/exr.c int8_t *stop = s + size; size 752 libavcodec/exr.c int size = channel->pixel_type; size 754 libavcodec/exr.c for (j = 0; j < size; j++) size 755 libavcodec/exr.c wav_decode(ptr + j, s->xdelta, size, s->ysize, size 756 libavcodec/exr.c s->xdelta * size, maxval); size 757 libavcodec/exr.c ptr += s->xdelta * s->ysize * size; size 1253 libavcodec/exr.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 1321 libavcodec/exr.c s->buf_size = avpkt->size; size 1342 libavcodec/exr.c return avpkt->size; size 249 libavcodec/faxcompr.c static void put_line(uint8_t *dst, int size, int width, const int *runs) size 254 libavcodec/faxcompr.c init_put_bits(&pb, dst, size); size 121 libavcodec/fft.h #define COSTABLE(size) \ size 122 libavcodec/fft.h COSTABLE_CONST DECLARE_ALIGNED(32, FFTSample, FFT_NAME(ff_cos_##size))[size/2] size 189 libavcodec/fft_init_table.c void ff_fft_lut_init(uint16_t *table, int off, int size, int *index) size 191 libavcodec/fft_init_table.c if (size < 16) { size 196 libavcodec/fft_init_table.c ff_fft_lut_init(table, off, size>>1, index); size 197 libavcodec/fft_init_table.c ff_fft_lut_init(table, off+(size>>1), size>>2, index); size 198 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 769 libavcodec/ffv1dec.c int size = AV_RB24(p-trailer); size 770 libavcodec/ffv1dec.c if (size + trailer > p - c->bytestream_start) size 772 libavcodec/ffv1dec.c p -= size + trailer; size 858 libavcodec/ffv1dec.c int buf_size = avpkt->size; size 1239 libavcodec/ffv1enc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1267 libavcodec/ffv1enc.c uint8_t *start = pkt->data + (pkt->size - used_count) * (int64_t)i / f->slice_count; size 1268 libavcodec/ffv1enc.c int len = pkt->size / f->slice_count; size 1288 libavcodec/ffv1enc.c av_assert0(bytes < pkt->size / f->slice_count); size 1308 libavcodec/ffv1enc.c pkt->size = buf_p - pkt->data; size 436 libavcodec/ffwavesynth.c if (packet->size != 12) size 459 libavcodec/ffwavesynth.c return packet->size; size 194 libavcodec/fic.c int size, uint8_t *alpha) size 198 libavcodec/fic.c for (i = 0; i < size; i++) size 273 libavcodec/fic.c if (avpkt->size < FIC_HEADER_SIZE + 4) { size 302 libavcodec/fic.c if (tsize > avpkt->size - FIC_HEADER_SIZE) { size 305 libavcodec/fic.c tsize, avpkt->size - FIC_HEADER_SIZE); size 341 libavcodec/fic.c msize = avpkt->size - nslices * 4 - tsize - FIC_HEADER_SIZE; size 422 libavcodec/fic.c return avpkt->size; size 150 libavcodec/flac.h int *last, int *type, int *size) size 157 libavcodec/flac.h if (size) size 158 libavcodec/flac.h *size = bytestream_get_be24(&block_header); size 170 libavcodec/flac_parser.c int size = 0; size 179 libavcodec/flac_parser.c size = 0; size 182 libavcodec/flac_parser.c size++; size 206 libavcodec/flac_parser.c size++; size 208 libavcodec/flac_parser.c return size; size 215 libavcodec/flac_parser.c int size = 0, mod_offset = (buf_size - 1) % 4, i, j; size 220 libavcodec/flac_parser.c size = find_headers_search_validate(fpc, search_start + i); size 228 libavcodec/flac_parser.c size = find_headers_search_validate(fpc, search_start + i + j); size 232 libavcodec/flac_parser.c return size; size 238 libavcodec/flac_parser.c int search_end, size = 0, read_len, temp; size 246 libavcodec/flac_parser.c size = find_headers_search(fpc, buf, read_len, search_start); size 262 libavcodec/flac_parser.c size = FFMAX(size, temp); size 268 libavcodec/flac_parser.c size = FFMAX(size, temp); size 273 libavcodec/flac_parser.c if (!size && fpc->headers) size 275 libavcodec/flac_parser.c size++; size 276 libavcodec/flac_parser.c return size; size 502 libavcodec/flacdec.c int buf_size = avpkt->size; size 1190 libavcodec/flacenc.c init_put_bits(&s->pb, avpkt->data, avpkt->size); size 1312 libavcodec/flacenc.c avpkt->size = out_bytes; size 48 libavcodec/flashsv.c int size; size 142 libavcodec/flashsv.c static int flashsv2_prime(FlashSVContext *s, uint8_t *src, int size) size 155 libavcodec/flashsv.c s->zstream.avail_in = size; size 199 libavcodec/flashsv.c s->blocks[blk_idx].size); size 220 libavcodec/flashsv.c s->blocks[blk_idx].size = block_size; size 254 libavcodec/flashsv.c int size; size 261 libavcodec/flashsv.c size = deflateBound(&zstream, tmpblock_size); size 264 libavcodec/flashsv.c return size; size 270 libavcodec/flashsv.c int buf_size = avpkt->size; size 360 libavcodec/flashsv.c if ((err = av_reallocp(&s->keyframedata, avpkt->size)) < 0) size 362 libavcodec/flashsv.c memcpy(s->keyframedata, avpkt->data, avpkt->size); size 388 libavcodec/flashsv.c int size = get_bits(&gb, 16); size 396 libavcodec/flashsv.c if (8 * size > get_bits_left(&gb)) { size 401 libavcodec/flashsv.c if (s->ver == 2 && size) { size 432 libavcodec/flashsv.c size -= 2; size 443 libavcodec/flashsv.c size -= 2; size 452 libavcodec/flashsv.c size--; // account for flags byte size 467 libavcodec/flashsv.c if (size) { size 468 libavcodec/flashsv.c if (flashsv_decode_block(avctx, avpkt, &gb, size, size 886 libavcodec/flashsv2enc.c res = write_bitstream(s, p->data[0], p->linesize[0], pkt->data, pkt->size, keyframe); size 895 libavcodec/flashsv2enc.c pkt->size = res; size 252 libavcodec/flashsvenc.c pkt->size = encode_bitstream(s, p, pkt->data, pkt->size, opt_w * 16, opt_h * 16, size 775 libavcodec/flicvideo.c int buf_size = avpkt->size; size 102 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 init_get_bits(&gb, s->tmpbuf, size * 8); size 136 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 664 libavcodec/g2meet.c int buf_size = avpkt->size; size 98 libavcodec/g722dec.c frame->nb_samples = avpkt->size * 2; size 103 libavcodec/g722dec.c init_get_bits(&gb, avpkt->data, avpkt->size * 8); size 105 libavcodec/g722dec.c for (j = 0; j < avpkt->size; j++) { size 137 libavcodec/g722dec.c return avpkt->size; size 1158 libavcodec/g723_1.c int buf_size = avpkt->size; size 1598 libavcodec/g723_1.c #define get_index(num, offset, size) \ size 1604 libavcodec/g723_1.c for (j = 0; j < size; j++){\ size 1608 libavcodec/g723_1.c error = dot_product(lsp + (offset), temp, size) << 1;\ size 1609 libavcodec/g723_1.c error -= dot_product(lsp_band##num[i], temp, size);\ size 2278 libavcodec/g723_1.c static int pack_bitstream(G723_1_Context *p, unsigned char *frame, int size) size 2283 libavcodec/g723_1.c init_put_bits(&pb, frame, size); size 2469 libavcodec/g723_1.c avpkt->size = pack_bitstream(p, avpkt->data, avpkt->size); size 353 libavcodec/g726.c init_put_bits(&pb, avpkt->data, avpkt->size); size 360 libavcodec/g726.c avpkt->size = out_size; size 431 libavcodec/g726.c int buf_size = avpkt->size; size 394 libavcodec/g729dec.c int buf_size = avpkt->size; size 204 libavcodec/gif.c int size = FFMIN(255, len); size 205 libavcodec/gif.c bytestream_put_byte(bytestream, size); size 206 libavcodec/gif.c if (end - *bytestream < size) size 208 libavcodec/gif.c bytestream_put_buffer(bytestream, ptr, size); size 209 libavcodec/gif.c ptr += size; size 210 libavcodec/gif.c len -= size; size 276 libavcodec/gif.c end = pkt->data + pkt->size; size 312 libavcodec/gif.c pkt->size = outbuf_ptr - pkt->data; size 461 libavcodec/gifdec.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 468 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 405 libavcodec/h263dec.c int buf_size = avpkt->size; size 566 libavcodec/h264.c int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size) size 571 libavcodec/h264.c if (!buf || size <= 0) size 580 libavcodec/h264.c if (size < 7) { size 582 libavcodec/h264.c "avcC %d too short\n", size); size 593 libavcodec/h264.c if(nalsize > size - (p-buf)) size 607 libavcodec/h264.c if(nalsize > size - (p-buf)) size 621 libavcodec/h264.c ret = decode_nal_units(h, buf, size, 1); size 625 libavcodec/h264.c return size; size 1788 libavcodec/h264.c int buf_size = avpkt->size; size 852 libavcodec/h264.h int ff_h264_decode_extradata(H264Context *h, const uint8_t *buf, int size); size 247 libavcodec/h264_ps.c static void decode_scaling_list(H264Context *h, uint8_t *factors, int size, size 252 libavcodec/h264_ps.c const uint8_t *scan = size == 16 ? zigzag_scan : ff_zigzag_direct; size 254 libavcodec/h264_ps.c memcpy(factors, fallback_list, size * sizeof(uint8_t)); size 256 libavcodec/h264_ps.c for (i = 0; i < size; i++) { size 260 libavcodec/h264_ps.c memcpy(factors, jvt_list, size * sizeof(uint8_t)); size 111 libavcodec/h264_sei.c static int decode_user_data_itu_t_t35(H264Context *h, int size) size 116 libavcodec/h264_sei.c if (size < 7) size 118 libavcodec/h264_sei.c size -= 7; size 126 libavcodec/h264_sei.c if (size < 1) size 131 libavcodec/h264_sei.c if (size < 2) size 141 libavcodec/h264_sei.c skip_bits(&h->gb, size * 8); size 148 libavcodec/h264_sei.c static int decode_unregistered_user_data(H264Context *h, int size) size 153 libavcodec/h264_sei.c if (size < 16) size 156 libavcodec/h264_sei.c for (i = 0; i < sizeof(user_data) - 1 && i < size; i++) size 169 libavcodec/h264_sei.c for (; i < size; i++) size 286 libavcodec/h264_sei.c unsigned size = 0; size 299 libavcodec/h264_sei.c size += show_bits(&h->gb, 8); size 303 libavcodec/h264_sei.c av_log(h->avctx, AV_LOG_DEBUG, "SEI %d len:%d\n", type, size); size 305 libavcodec/h264_sei.c if (size > get_bits_left(&h->gb) / 8) { size 307 libavcodec/h264_sei.c type, 8*size, get_bits_left(&h->gb)); size 310 libavcodec/h264_sei.c next = get_bits_count(&h->gb) + 8 * size; size 319 libavcodec/h264_sei.c if (decode_user_data_itu_t_t35(h, size) < 0) size 323 libavcodec/h264_sei.c ret = decode_unregistered_user_data(h, size); size 409 libavcodec/h264_slice.c #define IN_RANGE(a, b, size) (((a) >= (b)) && ((a) < ((b) + (size)))) size 431 libavcodec/h264_slice.c static int copy_parameter_set(void **to, void **from, int count, int size) size 439 libavcodec/h264_slice.c to[i] = av_malloc(size); size 445 libavcodec/h264_slice.c memcpy(to[i], from[i], size); size 116 libavcodec/h264dsp.h int (*startcode_find_candidate)(const uint8_t *buf, int size); size 74 libavcodec/hevc.c av_freep(&s->sh.size); size 704 libavcodec/hevc.c av_freep(&sh->size); size 707 libavcodec/hevc.c sh->size = av_malloc_array(sh->num_entry_point_offsets, sizeof(int)); size 708 libavcodec/hevc.c if (!sh->entry_point_offset || !sh->offset || !sh->size) { size 996 libavcodec/hevc.c int size = 1 << log2_trafo_size_c; size 1000 libavcodec/hevc.c for (i = 0; i < (size * size); i++) { size 1025 libavcodec/hevc.c int size = 1 << log2_trafo_size_c; size 1029 libavcodec/hevc.c for (i = 0; i < (size * size); i++) { size 2342 libavcodec/hevc.c ret = init_get_bits8(&lc->gb, s->data + s->sh.offset[ctb_row - 1], s->sh.size[ctb_row - 1]); size 2346 libavcodec/hevc.c ff_init_cabac_decoder(&lc->cc, s->data + s->sh.offset[(ctb_row)-1], s->sh.size[ctb_row - 1]); size 2446 libavcodec/hevc.c s->sh.size[i - 1] = s->sh.entry_point_offset[i] - cmpt; size 2452 libavcodec/hevc.c s->sh.size[s->sh.num_entry_point_offsets - 1] = length - offset; size 2621 libavcodec/hevc.c ret = init_get_bits8(gb, nal->data, nal->size); size 2731 libavcodec/hevc.c ctb_addr_ts = hls_slice_data_wpp(s, nal->data, nal->size); size 2821 libavcodec/hevc.c nal->size = size 2871 libavcodec/hevc.c nal->size = di; size 2971 libavcodec/hevc.c ret = init_get_bits8(&s->HEVClc->gb, nal->data, nal->size); size 3084 libavcodec/hevc.c if (!avpkt->size) { size 3094 libavcodec/hevc.c ret = decode_nal_units(s, avpkt->data, avpkt->size); size 3125 libavcodec/hevc.c return avpkt->size; size 3212 libavcodec/hevc.c av_freep(&s->sh.size); size 614 libavcodec/hevc.h int * size; size 740 libavcodec/hevc.h int size; size 137 libavcodec/hevc_parser.c init_get_bits8(gb, nal->data + 2, nal->size); size 1131 libavcodec/hevc_ps.c !memcmp(s->sps_list[sps_id]->data, sps_buf->data, sps_buf->size)) { size 287 libavcodec/hevc_refs.c if (s->slice_idx >= frame->rpl_buf->size / sizeof(RefPicListTab)) size 413 libavcodec/hevc_refs.c frame->frame->buf[i]->size); size 46 libavcodec/hevcdsp_template.c ptrdiff_t stride, int size) size 53 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 54 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) { size 91 libavcodec/hevcdsp_template.c int size = 1 << log2_size; size 94 libavcodec/hevcdsp_template.c coeffs += size; size 95 libavcodec/hevcdsp_template.c for (y = 0; y < size - 1; y++) { size 96 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) size 97 libavcodec/hevcdsp_template.c coeffs[x] += coeffs[x - size]; size 98 libavcodec/hevcdsp_template.c coeffs += size; size 101 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 102 libavcodec/hevcdsp_template.c for (x = 1; x < size; x++) size 104 libavcodec/hevcdsp_template.c coeffs += size; size 113 libavcodec/hevcdsp_template.c int size = 1 << log2_size; size 119 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 120 libavcodec/hevcdsp_template.c for (x = 0; x < size; x++) { size 126 libavcodec/hevcdsp_template.c for (y = 0; y < size; y++) { size 127 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->sps->width ? size 189 libavcodec/hevcpred_template.c 2 * size : (s->sps->width - x0) >> hshift; size 190 libavcodec/hevcpred_template.c int size_max_y = y0 + ((2 * size) << vshift) < s->sps->height ? size 191 libavcodec/hevcpred_template.c 2 * size : (s->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->sps->width ? size 195 libavcodec/hevcpred_template.c size : (s->sps->width - x0) >> hshift; size 198 libavcodec/hevcpred_template.c size_max_y = y0 + (( size) << vshift) < s->sps->height ? size 199 libavcodec/hevcpred_template.c size : (s->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 146 libavcodec/hnm4video.c static void decode_interframe_v4(AVCodecContext *avctx, uint8_t *src, uint32_t size) size 154 libavcodec/hnm4video.c bytestream2_init(&gb, src, size); size 156 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size) { size 274 libavcodec/hnm4video.c uint32_t size) size 281 libavcodec/hnm4video.c bytestream2_init(&gb, src, size); size 283 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size) { size 353 libavcodec/hnm4video.c uint32_t size) size 364 libavcodec/hnm4video.c bytestream2_init(&gb, src + 8, size - 8); size 366 libavcodec/hnm4video.c while (bytestream2_tell(&gb) < size - 8) { size 401 libavcodec/hnm4video.c if (avpkt->size < 8) { size 409 libavcodec/hnm4video.c hnm_update_palette(avctx, avpkt->data, avpkt->size); size 411 libavcodec/hnm4video.c if (avpkt->size < 12) { size 418 libavcodec/hnm4video.c unpack_intraframe(avctx, avpkt->data + 12, avpkt->size - 12); size 434 libavcodec/hnm4video.c decode_interframe_v4a(avctx, avpkt->data + 8, avpkt->size - 8); size 437 libavcodec/hnm4video.c decode_interframe_v4(avctx, avpkt->data + 8, avpkt->size - 8); size 451 libavcodec/hnm4video.c return avpkt->size; size 501 libavcodec/hqx.c if (avpkt->size < 8) size 509 libavcodec/hqx.c if (info_offset > UINT32_MAX - 8 || info_offset + 8 > avpkt->size) { size 523 libavcodec/hqx.c data_size = avpkt->size - data_start; size 608 libavcodec/hqx.c return avpkt->size; size 41 libavcodec/huffman.c static void heap_sift(HeapElem *h, int root, int size) size 43 libavcodec/huffman.c while (root * 2 + 1 < size) { size 45 libavcodec/huffman.c if (child < size - 1 && h[child].val > h[child+1].val) size 62 libavcodec/huffman.c int size = 0; size 73 libavcodec/huffman.c map[size++] = i; size 77 libavcodec/huffman.c for (i=0; i < size; i++) { size 81 libavcodec/huffman.c for (i = size / 2 - 1; i >= 0; i--) size 82 libavcodec/huffman.c heap_sift(h, i, size); size 84 libavcodec/huffman.c for (next = size; next < size * 2 - 1; next++) { size 89 libavcodec/huffman.c heap_sift(h, 0, size); size 93 libavcodec/huffman.c heap_sift(h, 0, size); size 96 libavcodec/huffman.c len[2 * size - 2] = 0; size 97 libavcodec/huffman.c for (i = 2 * size - 3; i >= size; i--) size 99 libavcodec/huffman.c for (i = 0; i < size; i++) { size 103 libavcodec/huffman.c if (i==size) break; size 901 libavcodec/huffyuvdec.c int buf_size = avpkt->size; size 193 libavcodec/huffyuvenc.c int size = 0; size 207 libavcodec/huffyuvenc.c size += store_table(s, s->len[i], buf + size); size 209 libavcodec/huffyuvenc.c return size; size 760 libavcodec/huffyuvenc.c int i, j, size = 0, ret; size 766 libavcodec/huffyuvenc.c size = store_huffman_tables(s, pkt->data); size 767 libavcodec/huffyuvenc.c if (size < 0) size 768 libavcodec/huffyuvenc.c return size; size 775 libavcodec/huffyuvenc.c init_put_bits(&s->pb, pkt->data + size, pkt->size - size); size 997 libavcodec/huffyuvenc.c size += (put_bits_count(&s->pb) + 31) / 8; size 1000 libavcodec/huffyuvenc.c size /= 4; size 1021 libavcodec/huffyuvenc.c s->bdsp.bswap_buf((uint32_t *) pkt->data, (uint32_t *) pkt->data, size); size 1026 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 222 libavcodec/idcinvideo.c s->size = buf_size; size 206 libavcodec/iff.c if (avpkt->size < 2) size 208 libavcodec/iff.c image_size = avpkt->size - AV_RB16(avpkt->data); size 581 libavcodec/iff.c int size = opcode + 1; size 582 libavcodec/iff.c for (i = 0; i < size; i++) { size 583 libavcodec/iff.c int length = FFMIN(size - i, width); size 596 libavcodec/iff.c int size = -opcode + 1; size 598 libavcodec/iff.c for (i = 0; i < size; i++) { size 675 libavcodec/iff.c const uint8_t *buf = avpkt->size >= 2 ? avpkt->data + AV_RB16(avpkt->data) : NULL; size 676 libavcodec/iff.c const int buf_size = avpkt->size >= 2 ? avpkt->size - AV_RB16(avpkt->data) : 0; size 229 libavcodec/iirfilter.c for (i = 0; i < size; i += 4) { \ size 242 libavcodec/iirfilter.c for (i = 0; i < size; i++) { \ size 264 libavcodec/iirfilter.c for (i = 0; i < size; i++) { \ size 277 libavcodec/iirfilter.c struct FFIIRFilterState *s, int size, size 290 libavcodec/iirfilter.c struct FFIIRFilterState *s, int size, size 63 libavcodec/iirfilter.h struct FFIIRFilterState *state, int size, size 128 libavcodec/iirfilter.h int size, const int16_t *src, int sstep, int16_t *dst, int dstep); size 142 libavcodec/iirfilter.h struct FFIIRFilterState *state, int size, size 1019 libavcodec/imc.c int buf_size = avpkt->size; size 304 libavcodec/imgconvert.c int size) size 309 libavcodec/imgconvert.c for(;size > 0;size--) { size 327 libavcodec/imgconvert.c uint8_t *lum, int size) size 332 libavcodec/imgconvert.c for(;size > 0;size--) { size 32 libavcodec/imgconvert.h int size); size 38 libavcodec/imgconvert.h const uint8_t *lum, int size); size 145 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 147 libavcodec/internal.h int ff_match_2uint16(const uint16_t (*tab)[2], int size, int a, int b); size 190 libavcodec/internal.h int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size); size 192 libavcodec/internal.h int ff_alloc_packet(AVPacket *avpkt, int size); size 985 libavcodec/interplayvideo.c int buf_size = avpkt->size; size 1058 libavcodec/ivi_common.c int buf_size = avpkt->size; size 1169 libavcodec/ivi_common.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 289 libavcodec/j2kenc.c int i, size; size 294 libavcodec/j2kenc.c size = 4 + 3 * (codsty->nreslevels-1); size 296 libavcodec/j2kenc.c size = 5 + 6 * (codsty->nreslevels-1); size 298 libavcodec/j2kenc.c if (s->buf_end - s->buf < size + 2) size 302 libavcodec/j2kenc.c bytestream_put_be16(&s->buf, size); // LQcd size 928 libavcodec/j2kenc.c s->buf_end = pkt->data + pkt->size; size 963 libavcodec/j2kenc.c pkt->size = s->buf - s->buf_start; size 171 libavcodec/jacosubdec.c if (avpkt->size <= 0) size 192 libavcodec/jacosubdec.c return avpkt->size; size 1513 libavcodec/jpeg2000dec.c int i, size, colour_count, colour_channels, colour_depth[3]; size 1521 libavcodec/jpeg2000dec.c size = (colour_depth[0] + 7 >> 3) * colour_count + size 1529 libavcodec/jpeg2000dec.c atom2_size < size) { size 1595 libavcodec/jpeg2000dec.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 259 libavcodec/jpeglsenc.c int i, size, ret; size 272 libavcodec/jpeglsenc.c buf2 = av_malloc(pkt->size); size 276 libavcodec/jpeglsenc.c init_put_bits(&pb, pkt->data, pkt->size); size 277 libavcodec/jpeglsenc.c init_put_bits(&pb2, buf2, pkt->size); size 376 libavcodec/jpeglsenc.c size = put_bits_count(&pb2); size 379 libavcodec/jpeglsenc.c init_get_bits(&gb, buf2, size); size 380 libavcodec/jpeglsenc.c size -= 7; size 381 libavcodec/jpeglsenc.c while (get_bits_count(&gb) < size) { size 399 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 213 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 160 libavcodec/kgv1dec.c return avpkt->size; size 273 libavcodec/kmvc.c bytestream2_init(&ctx->g, avpkt->data, avpkt->size); size 362 libavcodec/kmvc.c return avpkt->size; size 529 libavcodec/lagarith.c unsigned int buf_size = avpkt->size; size 170 libavcodec/lcldec.c int buf_size = avpkt->size; size 96 libavcodec/lclenc.c c->zstream.avail_out = pkt->size; size 113 libavcodec/lclenc.c pkt->size = c->zstream.total_out; size 107 libavcodec/libaacplus.c pkt->size = aacplusEncEncode(s->aacplus_handle, input_buffer, size 108 libavcodec/libaacplus.c s->samples_input, pkt->data, 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 192 libavcodec/libfaac.c avpkt->data, avpkt->size); size 211 libavcodec/libfaac.c avpkt->size = bytes_written; size 321 libavcodec/libfdk-aacdec.c UINT valid = avpkt->size; size 325 libavcodec/libfdk-aacdec.c err = aacDecoder_Fill(s->handle, &avpkt->data, &avpkt->size, &valid); size 357 libavcodec/libfdk-aacdec.c ret = avpkt->size - valid; size 389 libavcodec/libfdk-aacdec.c ret = avpkt->size - valid; size 349 libavcodec/libfdk-aacenc.c out_buffer_size = avpkt->size; size 373 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 271 libavcodec/libmp3lame.c avpkt->size = len; size 96 libavcodec/libopencore-amr.c int buf_size = avpkt->size; size 275 libavcodec/libopencore-amr.c avpkt->size = written; size 327 libavcodec/libopencore-amr.c int buf_size = avpkt->size; size 142 libavcodec/libopenh264enc.c int i, size = 0; size 145 libavcodec/libopenh264enc.c size += fbi.sLayerInfo[0].pNalLengthInByte[i]; size 146 libavcodec/libopenh264enc.c avctx->extradata = av_mallocz(size + FF_INPUT_BUFFER_PADDING_SIZE); size 151 libavcodec/libopenh264enc.c avctx->extradata_size = size; size 152 libavcodec/libopenh264enc.c memcpy(avctx->extradata, fbi.sLayerInfo[0].pBsBuf, size); size 170 libavcodec/libopenh264enc.c int size = 0, layer, first_layer = 0; size 201 libavcodec/libopenh264enc.c size += layer_size[layer]; size 205 libavcodec/libopenh264enc.c if ((ret = ff_alloc_packet(avpkt, size))) { size 209 libavcodec/libopenh264enc.c size = 0; size 211 libavcodec/libopenh264enc.c memcpy(avpkt->data + size, fbi.sLayerInfo[layer].pBsBuf, layer_size[layer]); size 212 libavcodec/libopenh264enc.c size += layer_size[layer]; size 257 libavcodec/libopenjpegdec.c int buf_size = avpkt->size; size 139 libavcodec/libopusdec.c nb_samples = opus_multistream_decode(opus->dec, pkt->data, pkt->size, size 143 libavcodec/libopusdec.c nb_samples = opus_multistream_decode_float(opus->dec, pkt->data, pkt->size, size 171 libavcodec/libopusdec.c return pkt->size; size 344 libavcodec/libopusenc.c avpkt->data, avpkt->size); size 348 libavcodec/libopusenc.c avpkt->data, avpkt->size); size 73 libavcodec/libschroedinger.c queue->size = 0; size 97 libavcodec/libschroedinger.c ++queue->size; size 108 libavcodec/libschroedinger.c --queue->size; size 49 libavcodec/libschroedinger.h uint32_t size; size 78 libavcodec/libschroedinger.h int size; size 207 libavcodec/libschroedingerdec.c int buf_size = avpkt->size; size 340 libavcodec/libschroedingerenc.c p_frame_output->size = p_schro_params->enc_buf_size; size 374 libavcodec/libschroedingerenc.c if (p_schro_params->enc_frame_queue.size == 1 && size 383 libavcodec/libschroedingerenc.c pkt_size = p_frame_output->size; size 389 libavcodec/libschroedingerenc.c memcpy(pkt->data, p_frame_output->p_encbuf, p_frame_output->size); size 397 libavcodec/libschroedingerenc.c enc_size = p_frame_output->size; 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 48 libavcodec/libstagefright.cpp size_t size; size 128 libavcodec/libstagefright.cpp memcpy((*buffer)->data(), frame->buffer, frame->size); size 129 libavcodec/libstagefright.cpp (*buffer)->set_range(0, frame->size); size 240 libavcodec/libstagefright.cpp if (s->out_queue->size() >= 10) { size 362 libavcodec/libstagefright.cpp int orig_size = avpkt->size; size 372 libavcodec/libstagefright.cpp av_bitstream_filter_filter(s->bsfc, avctx, NULL, &pkt.data, &pkt.size, size 373 libavcodec/libstagefright.cpp avpkt->data, avpkt->size, avpkt->flags & AV_PKT_FLAG_KEY); size 379 libavcodec/libstagefright.cpp s->dummy_buf = (uint8_t*)av_malloc(avpkt->size); size 382 libavcodec/libstagefright.cpp s->dummy_bufsize = avpkt->size; size 383 libavcodec/libstagefright.cpp memcpy(s->dummy_buf, avpkt->data, avpkt->size); size 389 libavcodec/libstagefright.cpp frame->size = avpkt->size; size 391 libavcodec/libstagefright.cpp frame->buffer = (uint8_t*)av_malloc(avpkt->size); size 398 libavcodec/libstagefright.cpp if (avpkt->size == orig_size + avctx->extradata_size) { size 400 libavcodec/libstagefright.cpp frame->size = orig_size; size 420 libavcodec/libstagefright.cpp if (s->in_queue->size() >= 10) { size 494 libavcodec/libstagefright.cpp frame->size = s->dummy_bufsize; size 523 libavcodec/libstagefright.cpp if (frame->size) size 119 libavcodec/libtwolame.c avpkt->size); size 126 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 132 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 139 libavcodec/libtwolame.c avpkt->data, avpkt->size); size 147 libavcodec/libtwolame.c ret = twolame_encode_flush(s->glopts, avpkt->data, avpkt->size); size 229 libavcodec/libutvideodec.cpp return avpkt->size; size 186 libavcodec/libutvideoenc.cpp pkt->size = utv->codec->EncodeFrame(dst, &keyframe, utv->buffer); size 188 libavcodec/libutvideoenc.cpp if (!pkt->size) { size 162 libavcodec/libvo-aacenc.c output.Length = avpkt->size; size 175 libavcodec/libvo-aacenc.c avpkt->size = output.Length; size 116 libavcodec/libvo-amrwbenc.c int size, ret; size 125 libavcodec/libvo-amrwbenc.c size = E_IF_encode(s->state, s->mode, samples, avpkt->data, s->allow_dtx); size 126 libavcodec/libvo-amrwbenc.c if (size <= 0 || size > MAX_PACKET_SIZE) { size 134 libavcodec/libvo-amrwbenc.c avpkt->size = size; size 148 libavcodec/libvorbisdec.c if(!avpkt->size){ size 160 libavcodec/libvorbisdec.c op->bytes = avpkt->size; size 183 libavcodec/libvorbisdec.c return avpkt->size; size 347 libavcodec/libvorbisenc.c duration = av_vorbis_parse_frame(s->vp, avpkt->data, avpkt->size); size 124 libavcodec/libvpxdec.c if (vpx_codec_decode(&ctx->decoder, avpkt->data, avpkt->size, NULL, 0) != size 161 libavcodec/libvpxdec.c return avpkt->size; size 545 libavcodec/libvpxenc.c memcpy(pkt->data, cx_frame->buf, pkt->size); size 583 libavcodec/libvpxenc.c return pkt->size; size 602 libavcodec/libvpxenc.c int size = 0; size 607 libavcodec/libvpxenc.c size = storeframe(avctx, cx_frame, pkt_out, coded_frame); size 608 libavcodec/libvpxenc.c if (size < 0) size 609 libavcodec/libvpxenc.c return size; size 621 libavcodec/libvpxenc.c if (!size) { size 628 libavcodec/libvpxenc.c size = storeframe(avctx, &cx_frame, pkt_out, coded_frame); size 629 libavcodec/libvpxenc.c if (size < 0) size 630 libavcodec/libvpxenc.c return size; size 694 libavcodec/libvpxenc.c return 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 285 libavcodec/libwebpenc.c ret = ff_alloc_packet(pkt, mw.size); size 288 libavcodec/libwebpenc.c memcpy(pkt->data, mw.mem, mw.size); size 108 libavcodec/libx264.c int i, size = x4->sei_size, ret; size 114 libavcodec/libx264.c size += nals[i].i_payload; size 116 libavcodec/libx264.c if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0) size 123 libavcodec/libx264.c if (x4->sei_size > size) { size 83 libavcodec/libxavs.c int i, s, ret, size = x4->sei_size + FF_MIN_BUFFER_SIZE; size 89 libavcodec/libxavs.c size += nals[i].i_payload; size 91 libavcodec/libxavs.c if ((ret = ff_alloc_packet2(ctx, pkt, size)) < 0) size 103 libavcodec/libxavs.c s = xavs_nal_encode(p, &size, 1, nals + i); size 108 libavcodec/libxavs.c pkt->size = p - pkt->data; size 368 libavcodec/libxavs.c int nnal, s, i, size; size 383 libavcodec/libxavs.c size = xavs_nal_encode(p, &s, 1, nal + i); size 384 libavcodec/libxavs.c if (size < 0) size 386 libavcodec/libxavs.c p += size; size 298 libavcodec/libxvid.c pkt->size = frame_len - vo_len; size 725 libavcodec/libxvid.c xvid_enc_frame.length = pkt->size; size 811 libavcodec/libxvid.c pkt->size = xerr; size 368 libavcodec/libzvbi-teletextdec.c static int slice_to_vbi_lines(TeletextContext *ctx, uint8_t* buf, int size) size 371 libavcodec/libzvbi-teletextdec.c while (size >= 2 && lines < MAX_SLICES) { size 374 libavcodec/libzvbi-teletextdec.c if (data_unit_length + 2 > size) size 390 libavcodec/libzvbi-teletextdec.c size -= data_unit_length + 2; size 393 libavcodec/libzvbi-teletextdec.c if (size) size 394 libavcodec/libzvbi-teletextdec.c av_log(ctx, AV_LOG_WARNING, "%d bytes remained after slicing data\n", size); size 417 libavcodec/libzvbi-teletextdec.c if (pkt->size) { size 419 libavcodec/libzvbi-teletextdec.c const int full_pes_size = pkt->size + 45; /* PES header is 45 bytes */ size 425 libavcodec/libzvbi-teletextdec.c ctx->handler_ret = pkt->size; size 428 libavcodec/libzvbi-teletextdec.c if ((lines = slice_to_vbi_lines(ctx, pkt->data + 1, pkt->size - 1)) < 0) size 431 libavcodec/libzvbi-teletextdec.c ctx, pkt->size, lines, (double)pkt->pts/90000.0); size 234 libavcodec/ljpegenc.c init_put_bits(&pb, pkt->data, pkt->size); size 256 libavcodec/ljpegenc.c pkt->size = put_bits_ptr(&pb) - pb.buf; size 197 libavcodec/loco.c int buf_size = avpkt->size; size 266 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 241 libavcodec/mace.c int buf_size = avpkt->size; size 175 libavcodec/mdec.c int buf_size = avpkt->size; size 797 libavcodec/me_cmp.c #define VSAD_INTRA(size) \ size 798 libavcodec/me_cmp.c static int vsad_intra ## size ## _c(MpegEncContext *c, \ size 805 libavcodec/me_cmp.c for (x = 0; x < size; x += 4) { \ size 819 libavcodec/me_cmp.c #define VSAD(size) \ size 820 libavcodec/me_cmp.c static int vsad ## size ## _c(MpegEncContext *c, \ size 827 libavcodec/me_cmp.c for (x = 0; x < size; x++) \ size 839 libavcodec/me_cmp.c #define VSSE_INTRA(size) \ size 840 libavcodec/me_cmp.c static int vsse_intra ## size ## _c(MpegEncContext *c, \ size 847 libavcodec/me_cmp.c for (x = 0; x < size; x += 4) { \ size 861 libavcodec/me_cmp.c #define VSSE(size) \ size 862 libavcodec/me_cmp.c static int vsse ## size ## _c(MpegEncContext *c, uint8_t *s1, uint8_t *s2, \ size 868 libavcodec/me_cmp.c for (x = 0; x < size; x++) \ size 71 libavcodec/metasound.c float ratio = (float)mtab->size / isampf; size 101 libavcodec/metasound.c width = (int)(some_mult / (mtab->size / period) * mtab->ppc_shape_len); size 370 libavcodec/metasound.c tctx->frame_size = avctx->bit_rate * tctx->mtab->size size 280 libavcodec/microdvddec.c char *end = avpkt->data + avpkt->size; size 283 libavcodec/microdvddec.c if (avpkt->size <= 0) size 284 libavcodec/microdvddec.c return avpkt->size; size 323 libavcodec/microdvddec.c return avpkt->size; size 360 libavcodec/mimic.c int buf_size = avpkt->size; size 147 libavcodec/mips/aaccoder_mips.c static void abs_pow34_v(float *out, const float *in, const int size) { size 153 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 208 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 219 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 221 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 281 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 292 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 294 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 373 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 384 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 386 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 452 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 463 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 465 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 546 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 557 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 559 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 639 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 651 libavcodec/mips/aaccoder_mips.c abs_pow34_v(s->scoefs, in, size); size 655 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 731 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 845 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 863 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 866 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 870 libavcodec/mips/aaccoder_mips.c const float *in, int size, int scale_idx, size 873 libavcodec/mips/aaccoder_mips.c quantize_and_encode_band_cost(s, pb, in, NULL, size, scale_idx, cb, lambda, size 882 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 891 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 902 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 963 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 974 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1021 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1032 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1095 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1106 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1153 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1164 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1211 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1222 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1313 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1331 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 1334 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 1338 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1342 libavcodec/mips/aaccoder_mips.c return get_band_numbits(s, NULL, in, scaled, size, scale_idx, cb, lambda, uplim, bits); size 1351 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1358 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1371 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1385 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1484 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1498 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1586 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1600 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1704 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1718 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1837 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1851 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 1970 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 1985 libavcodec/mips/aaccoder_mips.c for (i = 0; i < size; i += 4) { size 2104 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2122 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 2125 libavcodec/mips/aaccoder_mips.c s, pb, in, scaled, size, scale_idx, cb, \ size 2129 libavcodec/mips/aaccoder_mips.c const float *scaled, int size, int scale_idx, size 2133 libavcodec/mips/aaccoder_mips.c return get_band_cost(s, NULL, in, scaled, size, scale_idx, cb, lambda, uplim, bits); size 2391 libavcodec/mips/aaccoder_mips.c int w, swb, cb, start, size; size 2409 libavcodec/mips/aaccoder_mips.c size = sce->ics.swb_sizes[swb]; size 2448 libavcodec/mips/aaccoder_mips.c s->scoefs + start + w*128, size, size 336 libavcodec/mips/aacsbr_mips.c int size = m_max; size 356 libavcodec/mips/aacsbr_mips.c for (j=0; j<(size>>2); j++) { size 388 libavcodec/mips/aacsbr_mips.c for (j=0; j<(size&3); j++) { size 70 libavcodec/mips/iirfilter_mips.c struct FFIIRFilterState *s, int size, size 77 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i++) { size 91 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i += 4) { size 180 libavcodec/mips/iirfilter_mips.c for (i = 0; i < size; i++) { size 57 libavcodec/mjpeg2jpeg_bsf.c static uint8_t *append(uint8_t *buf, const uint8_t *src, int size) size 59 libavcodec/mjpeg2jpeg_bsf.c memcpy(buf, src, size); size 60 libavcodec/mjpeg2jpeg_bsf.c return buf + size; 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 87 libavcodec/mjpeg_parser.c if(m->size>0){ size 88 libavcodec/mjpeg_parser.c int size= FFMIN(buf_size-i, m->size); size 89 libavcodec/mjpeg_parser.c i+=size; size 90 libavcodec/mjpeg_parser.c m->size-=size; size 33 libavcodec/mjpegbdec.c static uint32_t read_offs(AVCodecContext *avctx, GetBitContext *gb, uint32_t size, const char *err_msg){ size 35 libavcodec/mjpegbdec.c if(offs >= size){ size 36 libavcodec/mjpegbdec.c av_log(avctx, AV_LOG_WARNING, err_msg, offs, size); size 47 libavcodec/mjpegbdec.c int buf_size = avpkt->size; size 608 libavcodec/mjpegdec.c int size = bw * bh * s->h_count[i] * s->v_count[i]; size 611 libavcodec/mjpegdec.c s->blocks[i] = av_mallocz_array(size, sizeof(**s->blocks)); size 612 libavcodec/mjpegdec.c s->last_nnz[i] = av_mallocz_array(size, sizeof(**s->last_nnz)); size 1181 libavcodec/mjpegdec.c int size = 8 >> s->avctx->lowres; size 1183 libavcodec/mjpegdec.c for (block_y=0; block_y<size; block_y++) size 1184 libavcodec/mjpegdec.c for (block_x=0; block_x<size; block_x++) size 1187 libavcodec/mjpegdec.c for (block_y=0; block_y<size; block_y++) size 1188 libavcodec/mjpegdec.c for (block_x=0; block_x<size; block_x++) size 1941 libavcodec/mjpegdec.c int buf_size = avpkt->size; size 63 libavcodec/mjpegenc_common.c int i, j, size; size 101 libavcodec/mjpegenc_common.c size = 2; size 102 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 0, avpriv_mjpeg_bits_dc_luminance, size 104 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 0, 1, avpriv_mjpeg_bits_dc_chrominance, size 107 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 0, avpriv_mjpeg_bits_ac_luminance, size 109 libavcodec/mjpegenc_common.c size += put_huffman_table(p, 1, 1, avpriv_mjpeg_bits_ac_chrominance, size 111 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 116 libavcodec/mjpegenc_common.c int size; size 139 libavcodec/mjpegenc_common.c size = strlen(LIBAVCODEC_IDENT)+3; size 140 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 151 libavcodec/mjpegenc_common.c size = strlen("CS=ITU601")+3; size 152 libavcodec/mjpegenc_common.c AV_WB16(ptr, size); size 283 libavcodec/mjpegenc_common.c int size; size 293 libavcodec/mjpegenc_common.c size = put_bits_count(pb) - start * 8; size 295 libavcodec/mjpegenc_common.c av_assert1((size&7) == 0); size 296 libavcodec/mjpegenc_common.c size >>= 3; size 299 libavcodec/mjpegenc_common.c for(i=0; i<size && i<align; i++){ size 302 libavcodec/mjpegenc_common.c for(; i<size-15; i+=16){ size 319 libavcodec/mjpegenc_common.c for(; i<size; i++){ size 328 libavcodec/mjpegenc_common.c for(i=size-1; ff_count; i--){ size 125 libavcodec/mlp_parser.c int size = 28; size 133 libavcodec/mlp_parser.c size += 2 + extensions * 2; size 136 libavcodec/mlp_parser.c return size; size 1118 libavcodec/mlpdec.c int buf_size = avpkt->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 45 libavcodec/motion-test.c static void fill_random(uint8_t *tab, int size) size 51 libavcodec/motion-test.c for(i=0;i<size;i++) { size 51 libavcodec/motion_est.c int size, int h); size 106 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 178 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 193 libavcodec/motion_est.c if (h << size == 16) { size 194 libavcodec/motion_est.c c->qpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride); //FIXME prototype (add h) size 195 libavcodec/motion_est.c } else if (size == 0 && h == 8) { size 209 libavcodec/motion_est.c c->hpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride, h); size 221 libavcodec/motion_est.c c->hpel_put[size+1][uvdxy](uvtemp , ref[1] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); size 222 libavcodec/motion_est.c c->hpel_put[size+1][uvdxy](uvtemp+8, ref[2] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); size 236 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 239 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 241 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 246 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 249 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 251 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 259 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 261 libavcodec/motion_est.c if(av_builtin_constant_p(flags) && av_builtin_constant_p(h) && av_builtin_constant_p(size) size 263 libavcodec/motion_est.c && flags==0 && h==16 && size==0 && subx==0 && suby==0){ size 267 libavcodec/motion_est.c return cmp_fpel_internal(s,x,y,size,h,ref_index,src_index, cmp_func, chroma_cmp_func,flags); size 269 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 274 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 277 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 279 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 284 libavcodec/motion_est.c const int size, const int h, int ref_index, int src_index, size 287 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 289 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 390 libavcodec/motion_est.c d = s->mecc.pix_abs[size][(x ? 1 : 0) + (y ? 2 : 0)](NULL, pix, ptr + ((x) >> 1), stride, h); \ size 398 libavcodec/motion_est.c int size, int h) size 577 libavcodec/motion_est.c const int size= 1; size 641 libavcodec/motion_est.c dmin4= c->sub_motion_search(s, &mx4, &my4, dmin4, block, block, size, h); size 745 libavcodec/motion_est.c const int size=0; size 803 libavcodec/motion_est.c dmin= c->sub_motion_search(s, &mx_i, &my_i, dmin, block, field_select+ref_index, size, h); size 816 libavcodec/motion_est.c s->hdsp.put_no_rnd_pixels_tab[size][dxy](c->scratchpad, ref , stride, h); size 818 libavcodec/motion_est.c s->hdsp.put_pixels_tab [size][dxy](c->scratchpad, ref , stride, h); size 820 libavcodec/motion_est.c dmin = s->mecc.mb_cmp[size](s, c->src[block][0], c->scratchpad, stride, h); size 1202 libavcodec/motion_est.c int size, int h) size 1233 libavcodec/motion_est.c s->qdsp.avg_qpel_pixels_tab[size][dxy](dest_y, ptr, stride); size 1240 libavcodec/motion_est.c s->hdsp.put_pixels_tab[size][dxy](dest_y , ptr , stride, h); size 1247 libavcodec/motion_est.c s->hdsp.avg_pixels_tab[size][dxy](dest_y , ptr , stride, h); size 1252 libavcodec/motion_est.c + s->mecc.mb_cmp[size](s, src_data[0], dest_y, stride, h); // FIXME new_pic size 44 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 52 libavcodec/motion_est_template.c int size, int h) size 66 libavcodec/motion_est_template.c cmp_sub = s->mecc.me_sub_cmp[size]; size 67 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.me_sub_cmp[size + 1]; size 76 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 77 libavcodec/motion_est_template.c if(mx || my || size>0) size 157 libavcodec/motion_est_template.c int size, int h) size 165 libavcodec/motion_est_template.c int src_index, int ref_index, int size, size 180 libavcodec/motion_est_template.c cmp_sub = s->mecc.mb_cmp[size]; size 181 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.mb_cmp[size + 1]; size 183 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 185 libavcodec/motion_est_template.c if(add_rate && (mx || my || size>0)) size 192 libavcodec/motion_est_template.c int ref_index, int size, int h, int add_rate) size 194 libavcodec/motion_est_template.c return get_mb_score(s, mx, my, src_index, ref_index, size, h, add_rate); size 201 libavcodec/motion_est_template.c d= cmp_qpel(s, x, y, dx, dy, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 209 libavcodec/motion_est_template.c int size, int h) size 224 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 225 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; // FIXME: factorize size 228 libavcodec/motion_est_template.c cmp_sub = s->mecc.me_sub_cmp[size]; size 229 libavcodec/motion_est_template.c chroma_cmp_sub = s->mecc.me_sub_cmp[size + 1]; size 238 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 239 libavcodec/motion_est_template.c if(mx || my || size>0) size 304 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 368 libavcodec/motion_est_template.c d= cmp(s, x, y, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 390 libavcodec/motion_est_template.c d= cmp(s, x, y, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 416 libavcodec/motion_est_template.c int size, int h, int flags) size 425 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 426 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 432 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 457 libavcodec/motion_est_template.c int size, int h, int flags) size 466 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 467 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 499 libavcodec/motion_est_template.c int size, int h, int flags, int dia_size) size 509 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 510 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 533 libavcodec/motion_est_template.c int size, int h, int flags) size 546 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 547 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 571 libavcodec/motion_est_template.c int size, int h, int flags) size 585 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 586 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 613 libavcodec/motion_est_template.c return hex_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags, 2); size 618 libavcodec/motion_est_template.c int size, int h, int flags) size 628 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 629 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 656 libavcodec/motion_est_template.c d= cmp(s, ax, ay, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags);\ size 681 libavcodec/motion_est_template.c int size, int h, int flags) size 694 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 695 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 770 libavcodec/motion_est_template.c int size, int h, int flags) size 779 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 780 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 831 libavcodec/motion_est_template.c int size, int h, int flags){ size 834 libavcodec/motion_est_template.c return funny_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 836 libavcodec/motion_est_template.c return sab_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 838 libavcodec/motion_est_template.c return small_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 840 libavcodec/motion_est_template.c return full_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 842 libavcodec/motion_est_template.c return umh_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 844 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 846 libavcodec/motion_est_template.c return l2s_dia_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 848 libavcodec/motion_est_template.c return var_diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 859 libavcodec/motion_est_template.c int ref_mv_scale, int flags, int size, int h) size 880 libavcodec/motion_est_template.c cmpf = s->mecc.me_pre_cmp[size]; size 881 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_pre_cmp[size + 1]; size 884 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 885 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 891 libavcodec/motion_est_template.c dmin= cmp(s, 0, 0, 0, 0, size, h, ref_index, src_index, cmpf, chroma_cmpf, flags); size 964 libavcodec/motion_est_template.c dmin= diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 977 libavcodec/motion_est_template.c int size, int h) size 981 libavcodec/motion_est_template.c if(c->flags==0 && h==16 && size==0){ size 986 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 1000 libavcodec/motion_est_template.c const int size=1; size 1009 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 1010 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 1040 libavcodec/motion_est_template.c dmin= diamond_search(s, best, dmin, src_index, ref_index, penalty_factor, size, h, flags); size 1059 libavcodec/motion_est_template.c const int size=0; //FIXME pass as arg size 1068 libavcodec/motion_est_template.c cmpf = s->mecc.me_cmp[size]; size 1069 libavcodec/motion_est_template.c chroma_cmpf = s->mecc.me_cmp[size + 1]; size 1099 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 288 libavcodec/motionpixels.c int buf_size = avpkt->size; size 333 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 67 libavcodec/movtextdec.c if (!ptr || avpkt->size < 2) size 77 libavcodec/movtextdec.c if (avpkt->size == 2) size 85 libavcodec/movtextdec.c end = ptr + FFMIN(2 + AV_RB16(ptr), avpkt->size); size 103 libavcodec/movtextdec.c return avpkt->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 306 libavcodec/mpc7.c return avpkt->size; size 311 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 2737 libavcodec/mpeg12dec.c int buf_size = avpkt->size; size 270 libavcodec/mpeg4videoenc.c int size, v; size 272 libavcodec/mpeg4videoenc.c size = 0; size 276 libavcodec/mpeg4videoenc.c size++; size 281 libavcodec/mpeg4videoenc.c put_bits(s, ff_mpeg4_DCtab_lum[size][1], ff_mpeg4_DCtab_lum[size][0]); size 284 libavcodec/mpeg4videoenc.c put_bits(s, ff_mpeg4_DCtab_chrom[size][1], ff_mpeg4_DCtab_chrom[size][0]); size 288 libavcodec/mpeg4videoenc.c if (size > 0) { size 290 libavcodec/mpeg4videoenc.c level = (-level) ^ ((1 << size) - 1); size 291 libavcodec/mpeg4videoenc.c put_bits(s, size, level); size 292 libavcodec/mpeg4videoenc.c if (size > 8) size 1147 libavcodec/mpeg4videoenc.c int size, v, l; size 1149 libavcodec/mpeg4videoenc.c size = 0; size 1153 libavcodec/mpeg4videoenc.c size++; size 1157 libavcodec/mpeg4videoenc.c l = (-level) ^ ((1 << size) - 1); size 1162 libavcodec/mpeg4videoenc.c uni_code = ff_mpeg4_DCtab_lum[size][0]; size 1163 libavcodec/mpeg4videoenc.c uni_len = ff_mpeg4_DCtab_lum[size][1]; size 1165 libavcodec/mpeg4videoenc.c if (size > 0) { size 1166 libavcodec/mpeg4videoenc.c uni_code <<= size; size 1168 libavcodec/mpeg4videoenc.c uni_len += size; size 1169 libavcodec/mpeg4videoenc.c if (size > 8) { size 1179 libavcodec/mpeg4videoenc.c uni_code = ff_mpeg4_DCtab_chrom[size][0]; size 1180 libavcodec/mpeg4videoenc.c uni_len = ff_mpeg4_DCtab_chrom[size][1]; size 1182 libavcodec/mpeg4videoenc.c if (size > 0) { size 1183 libavcodec/mpeg4videoenc.c uni_code <<= size; size 1185 libavcodec/mpeg4videoenc.c uni_len += size; size 1186 libavcodec/mpeg4videoenc.c if (size > 8) { size 1347 libavcodec/mpeg4videoenc.c int size = end - start; size 1348 libavcodec/mpeg4videoenc.c int pb_size = (((intptr_t)start + size / 3) & (~3)) - (intptr_t)start; size 1349 libavcodec/mpeg4videoenc.c int tex_size = (size - 2 * pb_size) & (~3); size 1655 libavcodec/mpegaudiodec_template.c int buf_size = avpkt->size; size 1713 libavcodec/mpegaudiodec_template.c if (buf_size == avpkt->size || ret != AVERROR_INVALIDDATA) size 1738 libavcodec/mpegaudiodec_template.c int buf_size = avpkt->size; size 1920 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 2540 libavcodec/mpegvideo.c av_assert0(ref->size >= offset + s->mb_stride * ((f->height+15)/16)); size 2541 libavcodec/mpegvideo.c ref->size -= offset; size 206 libavcodec/mpegvideo.h int size, int h); size 863 libavcodec/mpegvideo.h int ref_mv_scale, int size, int h); size 865 libavcodec/mpegvideo.h int ref_index, int size, int h, int add_rate); size 1272 libavcodec/mpegvideo_enc.c ret = pkt.size; size 1739 libavcodec/mpegvideo_enc.c uint8_t *start = pkt->data + (size_t)(((int64_t) pkt->size) * start_y / h); size 1740 libavcodec/mpegvideo_enc.c uint8_t *end = pkt->data + (size_t)(((int64_t) pkt->size) * end_y / h); size 1755 libavcodec/mpegvideo_enc.c pkt->size = avctx->internal->byte_buffer_size; size 1924 libavcodec/mpegvideo_enc.c pkt->size = s->frame_bits / 8; size 1925 libavcodec/mpegvideo_enc.c *got_packet = !!pkt->size; size 77 libavcodec/mpl2dec.c if (ptr && avpkt->size > 0 && *ptr && !mpl2_event_to_ass(&buf, ptr)) size 83 libavcodec/mpl2dec.c return avpkt->size; size 59 libavcodec/msmpeg4.c int size, v, l; size 61 libavcodec/msmpeg4.c size = 0; size 65 libavcodec/msmpeg4.c size++; size 69 libavcodec/msmpeg4.c l= (-level) ^ ((1 << size) - 1); size 74 libavcodec/msmpeg4.c uni_code= ff_mpeg4_DCtab_lum[size][0]; size 75 libavcodec/msmpeg4.c uni_len = ff_mpeg4_DCtab_lum[size][1]; size 78 libavcodec/msmpeg4.c if (size > 0) { size 79 libavcodec/msmpeg4.c uni_code<<=size; uni_code|=l; size 80 libavcodec/msmpeg4.c uni_len+=size; size 81 libavcodec/msmpeg4.c if (size > 8){ size 90 libavcodec/msmpeg4.c uni_code= ff_mpeg4_DCtab_chrom[size][0]; size 91 libavcodec/msmpeg4.c uni_len = ff_mpeg4_DCtab_chrom[size][1]; size 94 libavcodec/msmpeg4.c if (size > 0) { size 95 libavcodec/msmpeg4.c uni_code<<=size; uni_code|=l; size 96 libavcodec/msmpeg4.c uni_len+=size; size 97 libavcodec/msmpeg4.c if (size > 8){ size 80 libavcodec/msmpeg4enc.c int size=0; size 85 libavcodec/msmpeg4enc.c size+= rl->table_vlc[code][1]; size 95 libavcodec/msmpeg4enc.c size++; size 105 libavcodec/msmpeg4enc.c size+=1+1+6+8; size 108 libavcodec/msmpeg4enc.c size+= 1+1+ rl->table_vlc[code][1]; size 112 libavcodec/msmpeg4enc.c size+= 1+1+ rl->table_vlc[code][1]; size 115 libavcodec/msmpeg4enc.c size++; size 117 libavcodec/msmpeg4enc.c return size; size 167 libavcodec/msmpeg4enc.c int size=0; size 170 libavcodec/msmpeg4enc.c size++; size 177 libavcodec/msmpeg4enc.c const int last_size= size + chroma_size; size 184 libavcodec/msmpeg4enc.c size += intra_luma_count *rl_length[i ][level][run][last]; size 187 libavcodec/msmpeg4enc.c size+= intra_luma_count *rl_length[i ][level][run][last] size 192 libavcodec/msmpeg4enc.c if(last_size == size+chroma_size) break; size 195 libavcodec/msmpeg4enc.c if(size<best_size){ size 196 libavcodec/msmpeg4enc.c best_size= size; size 46 libavcodec/msrle.c int size; size 90 libavcodec/msrle.c int buf_size = avpkt->size; size 96 libavcodec/msrle.c s->size = buf_size; size 113 libavcodec/msrle.c if (avctx->height * istride == avpkt->size) { /* assume uncompressed */ size 149 libavcodec/mss1.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 185 libavcodec/mss1.c return avpkt->size; size 466 libavcodec/mss2.c int buf_size = avpkt->size; size 736 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 682 libavcodec/mss3.c int buf_size = avpkt->size; size 512 libavcodec/mss4.c int buf_size = avpkt->size; size 41 libavcodec/msvideo1.c if ((stream_ptr + n) > s->size ) { \ size 43 libavcodec/msvideo1.c stream_ptr + n, s->size); \ size 53 libavcodec/msvideo1.c int size; size 298 libavcodec/msvideo1.c int buf_size = avpkt->size; size 303 libavcodec/msvideo1.c s->size = buf_size; size 250 libavcodec/msvideo1enc.c pkt->size = dst - buf; size 240 libavcodec/mvcdec.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 255 libavcodec/mvcdec.c return avpkt->size; size 189 libavcodec/mxpegdec.c int buf_size = avpkt->size; size 147 libavcodec/nellymoserdec.c int buf_size = avpkt->size; size 402 libavcodec/nellymoserenc.c encode_block(s, avpkt->data, avpkt->size); size 87 libavcodec/nuv.c int size) size 90 libavcodec/nuv.c if (size < 2 * 64 * 4) { size 155 libavcodec/nuv.c int buf_size = avpkt->size; size 241 libavcodec/nuv.c buf_size = avpkt->size; size 88 libavcodec/nvenc.c int size; size 109 libavcodec/nvenc.c uint32_t size; size 169 libavcodec/nvenc.c av_assert0(queue->size); size 176 libavcodec/nvenc.c mask = queue->size - 1; size 189 libavcodec/nvenc.c if (!queue->size) { size 191 libavcodec/nvenc.c queue->size = 4; size 195 libavcodec/nvenc.c queue->data = av_malloc(queue->size * sizeof(*(queue->data))); size 198 libavcodec/nvenc.c queue->size = 0; size 203 libavcodec/nvenc.c if (queue->count == queue->size) { size 204 libavcodec/nvenc.c new_queue.size = queue->size << 1; size 207 libavcodec/nvenc.c new_queue.data = av_malloc(new_queue.size * sizeof(*(queue->data))); size 219 libavcodec/nvenc.c mask = queue->size - 1; size 786 libavcodec/nvenc.c allocOut.size = 1024 * 1024; size 799 libavcodec/nvenc.c ctx->output_surfaces[surfaceCount].size = allocOut.size; size 53 libavcodec/on2avc.c void (*wtf)(struct On2AVCContext *ctx, float *out, float *in, int size); size 522 libavcodec/on2avc.c static void wtf_40(On2AVCContext *c, float *out, float *src, int size) size 529 libavcodec/on2avc.c if (size == 512) { size 608 libavcodec/on2avc.c static void wtf_44(On2AVCContext *c, float *out, float *src, int size) size 615 libavcodec/on2avc.c if (size == 512) { size 842 libavcodec/on2avc.c int buf_size = avpkt->size; size 223 libavcodec/options.c #define alloc_and_copy_or_fail(obj, size, pad) \ size 224 libavcodec/options.c if (src->obj && size > 0) { \ size 225 libavcodec/options.c dest->obj = av_malloc(size + pad); \ size 228 libavcodec/options.c memcpy(dest->obj, src->obj, size); \ size 230 libavcodec/options.c memset(((uint8_t *) dest->obj) + size, 0, pad); \ size 293 libavcodec/opus.h static av_always_inline unsigned int opus_rc_unimodel(OpusRangeCoder *rc, unsigned int size) size 297 libavcodec/opus.h bits = opus_ilog(size - 1); size 298 libavcodec/opus.h total = (bits > 8) ? ((size - 1) >> (bits - 8)) + 1 : size; size 307 libavcodec/opus.h return FFMIN(k, size - 1); size 79 libavcodec/opusdec.c static int opus_rc_init(OpusRangeCoder *rc, const uint8_t *data, int size) size 81 libavcodec/opusdec.c int ret = init_get_bits8(&rc->gb, data, size); size 179 libavcodec/opusdec.c static int opus_decode_redundancy(OpusStreamContext *s, const uint8_t *data, int size) size 188 libavcodec/opusdec.c ret = opus_rc_init(&s->redundancy_rc, data, size); size 191 libavcodec/opusdec.c opus_raw_init(&s->redundancy_rc, data + size, size); size 206 libavcodec/opusdec.c static int opus_decode_frame(OpusStreamContext *s, const uint8_t *data, int size) size 214 libavcodec/opusdec.c ret = opus_rc_init(&s->rc, data, size); size 248 libavcodec/opusdec.c if (s->packet.mode == OPUS_MODE_HYBRID && consumed + 37 <= size * 8) size 250 libavcodec/opusdec.c else if (s->packet.mode == OPUS_MODE_SILK && consumed + 17 <= size * 8) size 259 libavcodec/opusdec.c redundancy_size = size - (consumed + 7) / 8; size 260 libavcodec/opusdec.c size -= redundancy_size; size 261 libavcodec/opusdec.c if (size < 0) { size 267 libavcodec/opusdec.c ret = opus_decode_redundancy(s, data + size, redundancy_size); size 301 libavcodec/opusdec.c opus_raw_init(&s->rc, data + size, size); size 339 libavcodec/opusdec.c ret = opus_decode_redundancy(s, data + size, redundancy_size); size 416 libavcodec/opusdec.c int size = s->packet.frame_size[i]; size 417 libavcodec/opusdec.c int samples = opus_decode_frame(s, buf + s->packet.frame_offset[i], size); size 448 libavcodec/opusdec.c int buf_size = avpkt->size; size 551 libavcodec/opusdec.c return avpkt->size; size 51 libavcodec/pafaudio.c frames = pkt->size / PAF_SOUND_FRAME_SIZE; size 71 libavcodec/pafaudio.c return pkt->size; size 273 libavcodec/pafvideo.c bytestream2_init(&c->gb, pkt->data, pkt->size); size 384 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 204 libavcodec/parser.c int size = buf_size + avctx->extradata_size; size 206 libavcodec/parser.c *poutbuf_size = size; size 207 libavcodec/parser.c *poutbuf = av_malloc(size + FF_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 267 libavcodec/pcm.c #define DECODE(size, endian, src, dst, n, shift, offset) \ size 269 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ size 270 libavcodec/pcm.c AV_WN ## size ## A(dst, (v - offset) << shift); \ size 271 libavcodec/pcm.c dst += size / 8; \ size 274 libavcodec/pcm.c #define DECODE_PLANAR(size, endian, src, dst, n, shift, offset) \ size 280 libavcodec/pcm.c uint ## size ## _t v = bytestream_get_ ## endian(&src); \ size 281 libavcodec/pcm.c AV_WN ## size ## A(dst, (v - offset) << shift); \ size 282 libavcodec/pcm.c dst += size / 8; \ size 290 libavcodec/pcm.c int buf_size = avpkt->size; size 77 libavcodec/pcx.c if (avpkt->size < 128) size 80 libavcodec/pcx.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 163 libavcodec/pcx.c int palstart = avpkt->size - 769; size 165 libavcodec/pcx.c if (avpkt->size < 769) { size 168 libavcodec/pcx.c AVERROR_INVALIDDATA : avpkt->size; size 184 libavcodec/pcx.c AVERROR_INVALIDDATA : avpkt->size; size 157 libavcodec/pcxenc.c buf_end = pkt->data + pkt->size; size 206 libavcodec/pcxenc.c pkt->size = buf - pkt->data; size 598 libavcodec/pgssubdec.c int buf_size = avpkt->size; size 110 libavcodec/pictordec.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 256 libavcodec/pictordec.c return 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 58 libavcodec/png.h void *ff_png_zalloc(void *opaque, unsigned int items, unsigned int size); size 203 libavcodec/pngdec.c for (; i <= size - bpp; i += bpp) { \ size 227 libavcodec/pngdec.c for (; i < size; i++) { \ size 233 libavcodec/pngdec.c uint8_t *src, uint8_t *last, int size, int bpp) size 239 libavcodec/pngdec.c memcpy(dst, src, size); size 246 libavcodec/pngdec.c for (; i < size; i += bpp) { size 257 libavcodec/pngdec.c dsp->add_bytes_l2(dst, src, last, size); size 272 libavcodec/pngdec.c if (bpp > 2 && size > 4) { size 275 libavcodec/pngdec.c int w = (bpp & 3) ? size - 3 : size; size 278 libavcodec/pngdec.c dsp->add_paeth_prediction(dst + i, src + i, last + i, size - i, bpp); size 282 libavcodec/pngdec.c ff_add_png_paeth_prediction(dst + i, src + i, last + i, size - i, bpp); size 290 libavcodec/pngdec.c static void deloco_ ## NAME(TYPE *dst, int size, int alpha) \ size 293 libavcodec/pngdec.c for (i = 0; i < size; i += 3 + alpha) { \ size 1106 libavcodec/pngdec.c int buf_size = avpkt->size; size 1191 libavcodec/pngdec.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 120 libavcodec/pngenc.c static void sub_left_prediction(PNGEncContext *c, uint8_t *dst, const uint8_t *src, int bpp, int size) size 128 libavcodec/pngenc.c size -= bpp; size 129 libavcodec/pngenc.c unaligned_w = FFMIN(32 - bpp, size); size 132 libavcodec/pngenc.c size -= unaligned_w; size 133 libavcodec/pngenc.c c->hdsp.diff_bytes(dst, src1, src2, size); size 137 libavcodec/pngenc.c uint8_t *src, uint8_t *top, int size, int bpp) size 143 libavcodec/pngenc.c memcpy(dst, src, size); size 146 libavcodec/pngenc.c sub_left_prediction(c, dst, src, bpp, size); size 149 libavcodec/pngenc.c c->hdsp.diff_bytes(dst, src, top, size); size 154 libavcodec/pngenc.c for (; i < size; i++) size 160 libavcodec/pngenc.c sub_png_paeth_prediction(dst + i, src + i, top + i, size - i, bpp); size 166 libavcodec/pngenc.c uint8_t *src, uint8_t *top, int size, int bpp) size 175 libavcodec/pngenc.c uint8_t *buf1 = dst, *buf2 = dst + size + 16; size 177 libavcodec/pngenc.c png_filter_row(s, buf1 + 1, pred, src, top, size, bpp); size 180 libavcodec/pngenc.c for (i = 0; i <= size; i++) size 189 libavcodec/pngenc.c png_filter_row(s, dst + 1, pred, src, top, size, bpp); size 215 libavcodec/pngenc.c static int png_write_row(PNGEncContext *s, const uint8_t *data, int size) size 219 libavcodec/pngenc.c s->zstream.avail_in = size; size 373 libavcodec/pngenc.c s->bytestream_end = pkt->data + pkt->size; size 509 libavcodec/pngenc.c pkt->size = s->bytestream - s->bytestream_start; size 43 libavcodec/pnmdec.c int buf_size = avpkt->size; size 40 libavcodec/pnmenc.c bytestream_end = pkt->data + pkt->size; size 114 libavcodec/pnmenc.c pkt->size = bytestream - bytestream_start; size 259 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 273 libavcodec/ppc/h264dsp.c if (size == 4) size 285 libavcodec/ppc/h264dsp.c for (i = 0; i < size; i += 4) { size 37 libavcodec/ppc/svq1enc_altivec.c int size) size 39 libavcodec/ppc/svq1enc_altivec.c int i, size16 = size >> 4; size 69 libavcodec/ppc/svq1enc_altivec.c size %= 16; size 70 libavcodec/ppc/svq1enc_altivec.c for (i = 0; i < size; i++) size 619 libavcodec/proresdec2.c int buf_size = avpkt->size; size 667 libavcodec/proresdec2.c return avpkt->size; size 721 libavcodec/proresdec_lgpl.c int buf_size = avpkt->size; size 760 libavcodec/proresdec_lgpl.c return avpkt->size; size 503 libavcodec/proresenc_anatoliy.c pkt->size - header_size - 8); size 526 libavcodec/proresenc_anatoliy.c pkt->size = pic_size + 8 + header_size; size 1083 libavcodec/proresenc_kostya.c pkt->size = frame_size; size 89 libavcodec/psymodel.h int size; ///< size of the bitresevoir in bits size 329 libavcodec/pthread_frame.c if (!avpkt->size && !(codec->capabilities & CODEC_CAP_DELAY)) return 0; size 431 libavcodec/pthread_frame.c if (avpkt->size) size 432 libavcodec/pthread_frame.c return avpkt->size; size 465 libavcodec/pthread_frame.c } while (!avpkt->size && !*got_picture_ptr && finished != fctx->next_finished); size 474 libavcodec/pthread_frame.c return (p->result >= 0) ? avpkt->size : p->result; size 31 libavcodec/ptx.c const uint8_t *buf_end = avpkt->data + avpkt->size; size 79 libavcodec/ptx.c return avpkt->size; size 252 libavcodec/put_bits.h static inline void set_put_bits_buffer_size(PutBitContext *s, int size) size 254 libavcodec/put_bits.h s->buf_end = s->buf + size; size 690 libavcodec/qcelpdec.c int buf_size = avpkt->size; size 49 libavcodec/qdm2.c #define QDM2_LIST_ADD(list, size, packet) \ size 51 libavcodec/qdm2.c if (size > 0) { \ size 52 libavcodec/qdm2.c list[size - 1].next = &list[size]; \ size 54 libavcodec/qdm2.c list[size].packet = packet; \ size 55 libavcodec/qdm2.c list[size].next = NULL; \ size 56 libavcodec/qdm2.c size++; \ size 83 libavcodec/qdm2.c unsigned int size; ///< subpacket size size 266 libavcodec/qdm2.c sub_packet->size = 0; size 269 libavcodec/qdm2.c sub_packet->size = get_bits(gb, 8); size 272 libavcodec/qdm2.c sub_packet->size <<= 8; size 273 libavcodec/qdm2.c sub_packet->size |= get_bits(gb, 8); size 285 libavcodec/qdm2.c sub_packet->type, sub_packet->size, get_bits_count(gb) / 8); size 975 libavcodec/qdm2.c init_get_bits(&gb, node->packet->data, node->packet->size * 8); size 1017 libavcodec/qdm2.c init_get_bits(&gb, node->packet->data, node->packet->size * 8); size 1037 libavcodec/qdm2.c length = node->packet->size * 8; size 1066 libavcodec/qdm2.c length = node->packet->size * 8; size 1139 libavcodec/qdm2.c init_get_bits(&gb, header.data, header.size * 8); size 1175 libavcodec/qdm2.c init_get_bits(&gb, header.data, header.size * 8); size 1178 libavcodec/qdm2.c if (next_index >= header.size) size 1185 libavcodec/qdm2.c next_index = packet->size + get_bits_count(&gb) / 8; size 1186 libavcodec/qdm2.c sub_packet_size = ((packet->size > 0xff) ? 1 : 0) + packet->size + 2; size 1194 libavcodec/qdm2.c packet->size += packet_bytes - sub_packet_size; size 1375 libavcodec/qdm2.c init_get_bits(&gb, packet->data, packet->size * 8); size 1609 libavcodec/qdm2.c int tmp_val, tmp, size; size 1682 libavcodec/qdm2.c size = AV_RB32(extradata); size 1684 libavcodec/qdm2.c if(size > extradata_size){ size 1686 libavcodec/qdm2.c extradata_size, size); size 1691 libavcodec/qdm2.c av_log(avctx, AV_LOG_DEBUG, "size: %d\n", size); size 1855 libavcodec/qdm2.c int buf_size = avpkt->size; size 37 libavcodec/qdrw.c const uint8_t *buf_end = avpkt->data + avpkt->size; size 38 libavcodec/qdrw.c int buf_size = avpkt->size; size 91 libavcodec/qdrw.c int size, left, code, pix; size 98 libavcodec/qdrw.c size = AV_RB16(buf); /* size of packed line */ size 100 libavcodec/qdrw.c if (buf_end - buf < size) size 103 libavcodec/qdrw.c left = size; size 104 libavcodec/qdrw.c next = buf + size; size 265 libavcodec/qpeg.c if (avpkt->size < 0x86) { size 270 libavcodec/qpeg.c bytestream2_init(&a->buffer, avpkt->data, avpkt->size); size 301 libavcodec/qpeg.c return avpkt->size; size 287 libavcodec/qsv.c if (avpkt->size) { size 289 libavcodec/qsv.c bs.DataLength = avpkt->size; size 299 libavcodec/qsv.c ret = MFXVideoDECODE_DecodeFrameAsync(q->session, avpkt->size ? &bs : NULL, size 152 libavcodec/qsv_h264.c pkt->data, pkt->size, pkt->pts, pkt->dts, size 217 libavcodec/qsv_h264.c if (avpkt->size) { size 236 libavcodec/qsv_h264.c if (s->pkt_filtered.size <= 0) { size 237 libavcodec/qsv_h264.c int size; size 241 libavcodec/qsv_h264.c return avpkt->size ? avpkt->size : ff_qsv_decode(avctx, &s->qsv, frame, got_frame, avpkt); size 250 libavcodec/qsv_h264.c &s->filtered_data, &size, size 251 libavcodec/qsv_h264.c s->input_ref.data, s->input_ref.size, 0); size 254 libavcodec/qsv_h264.c size = s->input_ref.size; size 258 libavcodec/qsv_h264.c s->pkt_filtered.size = size; size 265 libavcodec/qsv_h264.c s->pkt_filtered.size -= ret; size 269 libavcodec/qsv_h264.c return avpkt->size; size 415 libavcodec/qtrle.c bytestream2_init(&s->g, avpkt->data, avpkt->size); size 420 libavcodec/qtrle.c if (avpkt->size < 8) size 431 libavcodec/qtrle.c if (avpkt->size < 14) size 505 libavcodec/qtrle.c return avpkt->size; size 387 libavcodec/qtrleenc.c pkt->size = encode_frame(s, pict, pkt->data); size 54 libavcodec/r210dec.c if (avpkt->size < 4 * aligned_width * avctx->height) { size 95 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 197 libavcodec/ra288.c int buf_size = avpkt->size; size 438 libavcodec/ralf.c if (table_bytes + 3 > avpkt->size || avpkt->size > RALF_MAX_PKT_SIZE) { size 448 libavcodec/ralf.c src_size = RALF_MAX_PKT_SIZE + avpkt->size; size 450 libavcodec/ralf.c avpkt->size - 2 - table_bytes); size 452 libavcodec/ralf.c if (avpkt->size == RALF_MAX_PKT_SIZE) { size 453 libavcodec/ralf.c memcpy(ctx->pkt, avpkt->data, avpkt->size); size 457 libavcodec/ralf.c return avpkt->size; size 460 libavcodec/ralf.c src_size = avpkt->size; size 512 libavcodec/ralf.c return avpkt->size; size 601 libavcodec/ratecontrol.c static void update_predictor(Predictor *p, double q, double var, double size) size 603 libavcodec/ratecontrol.c double new_coeff = size * q / (var + 1); size 155 libavcodec/rawdec.c int buf_size = avpkt->size; size 211 libavcodec/rawdec.c for (i = 0; 2 * i + 1 < buf_size && i<avpkt->size; i++) { size 218 libavcodec/rawdec.c for (i = 0; 4 * i + 3 < buf_size && i<avpkt->size; i++) { size 57 libavcodec/rawenc.c avctx->height, pkt->data, pkt->size)) < 0) size 34 libavcodec/rdft.h #define SINTABLE(size) \ size 35 libavcodec/rdft.h SINTABLE_CONST DECLARE_ALIGNED(16, FFTSample, ff_sin_##size)[size/2] size 69 libavcodec/realtextdec.c if (ptr && avpkt->size > 0 && !rt_event_to_ass(&buf, ptr)) size 75 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 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 181 libavcodec/rl2.c int ret, buf_size = avpkt->size; size 203 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 797 libavcodec/roqvideoenc.c int size, int cbsize) size 800 libavcodec/roqvideoenc.c int c_size = size*size/4; size 808 libavcodec/roqvideoenc.c if (size == 4) { size 837 libavcodec/roqvideoenc.c if (size == 4) size 1084 libavcodec/roqvideoenc.c int size, ret; size 1097 libavcodec/roqvideoenc.c size = ((enc->width * enc->height / 64) * 138 + 7) / 8 + 256 * (6 + 4) + 8; size 1098 libavcodec/roqvideoenc.c if ((ret = ff_alloc_packet2(avctx, pkt, size)) < 0) size 1124 libavcodec/roqvideoenc.c pkt->size = enc->out_buf - pkt->data; size 249 libavcodec/rpza.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 262 libavcodec/rpza.c return avpkt->size; size 702 libavcodec/rv10.c int buf_size = avpkt->size; size 736 libavcodec/rv10.c int size, size2; size 742 libavcodec/rv10.c size = buf_size - offset; size 744 libavcodec/rv10.c size = get_slice_offset(avctx, slices_hdr, i + 1) - offset; size 751 libavcodec/rv10.c if (size <= 0 || size2 <= 0 || size 752 libavcodec/rv10.c offset + FFMAX(size, size2) > buf_size) size 755 libavcodec/rv10.c if ((ret = rv10_decode_packet(avctx, buf + offset, size, size2)) < 0) size 758 libavcodec/rv10.c if (ret > 8 * size) size 786 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 1632 libavcodec/rv34.c int buf_size = avpkt->size; size 1683 libavcodec/rv34.c return avpkt->size; size 1771 libavcodec/rv34.c int size; size 1773 libavcodec/rv34.c size = buf_size - offset; size 1775 libavcodec/rv34.c size = get_slice_offset(avctx, slices_hdr, i+1) - offset; size 1794 libavcodec/rv34.c size = get_slice_offset(avctx, slices_hdr, i+2) - offset; size 1796 libavcodec/rv34.c size = buf_size - offset; size 1800 libavcodec/rv34.c if (size < 0 || size > buf_size - offset) { size 1804 libavcodec/rv34.c last = rv34_decode_slice(r, r->si.end, buf + offset, size); size 1831 libavcodec/rv34.c return avpkt->size; size 375 libavcodec/rv40dsp.c #define RV40_WEIGHT_FUNC(size) \ size 376 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 380 libavcodec/rv40dsp.c for (j = 0; j < size; j++) {\ size 381 libavcodec/rv40dsp.c for (i = 0; i < size; i++)\ size 392 libavcodec/rv40dsp.c for (j = 0; j < size; j++) {\ size 393 libavcodec/rv40dsp.c for (i = 0; i < size; i++)\ size 96 libavcodec/s302m.c int buf_size = avpkt->size; size 151 libavcodec/s302m.c return avpkt->size; size 122 libavcodec/samidec.c if (ptr && avpkt->size > 0 && !sami_paragraph_to_ass(avctx, ptr)) { size 131 libavcodec/samidec.c return avpkt->size; size 769 libavcodec/sanm.c uint8_t *prev2, int stride, int tbl, int size) size 782 libavcodec/sanm.c if (size == 2) { size 790 libavcodec/sanm.c size >>= 1; size 791 libavcodec/sanm.c if (process_block(ctx, dst, prev1, prev2, stride, tbl, size)) size 793 libavcodec/sanm.c if (process_block(ctx, dst + size, prev1 + size, prev2 + size, size 794 libavcodec/sanm.c stride, tbl, size)) size 796 libavcodec/sanm.c dst += size * stride; size 797 libavcodec/sanm.c prev1 += size * stride; size 798 libavcodec/sanm.c prev2 += size * stride; size 799 libavcodec/sanm.c if (process_block(ctx, dst, prev1, prev2, stride, tbl, size)) size 801 libavcodec/sanm.c if (process_block(ctx, dst + size, prev1 + size, prev2 + size, size 802 libavcodec/sanm.c stride, tbl, size)) size 811 libavcodec/sanm.c for (k = 0; k < size; k++) size 812 libavcodec/sanm.c memset(dst + k * stride, t, size); size 819 libavcodec/sanm.c pglyph = (size == 8) ? ctx->p8x8glyphs[code] : ctx->p4x4glyphs[code]; size 822 libavcodec/sanm.c for (k = 0; k < size; k++) size 823 libavcodec/sanm.c for (t = 0; t < size; t++) size 827 libavcodec/sanm.c for (k = 0; k < size; k++) size 828 libavcodec/sanm.c memcpy(dst + k * stride, prev1 + k * stride, size); size 835 libavcodec/sanm.c for (k = 0; k < size; k++) size 836 libavcodec/sanm.c memset(dst + k * stride, t, size); size 846 libavcodec/sanm.c (ctx->buf_size >> 1) - index < mx + size + (my + size - 1) * stride) { size 851 libavcodec/sanm.c for (k = 0; k < size; k++) size 852 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 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 120 libavcodec/sgienc.c end_buf = pkt->data + pkt->size; size 202 libavcodec/sgienc.c pkt->size = buf - pkt->data; size 56 libavcodec/sgirledec.c void rbg323_to_bgr8(uint8_t *dst, const uint8_t *src, int size) size 59 libavcodec/sgirledec.c for (i = 0; i < size; i++) size 129 libavcodec/sgirledec.c ret = decode_sgirle8(avctx, s->frame->data[0], avpkt->data, avpkt->size, size 138 libavcodec/sgirledec.c return avpkt->size; size 420 libavcodec/shorten.c int buf_size = avpkt->size; size 479 libavcodec/shorten.c return avpkt->size; size 33 libavcodec/sinewin.h #define SINETABLE(size) \ size 34 libavcodec/sinewin.h SINETABLE_CONST DECLARE_ALIGNED(32, float, ff_sine_##size)[size] size 26 libavcodec/sinewin_tablegen.c #define SINETABLE(size) \ size 27 libavcodec/sinewin_tablegen.c float 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 179 libavcodec/smacker.c static int smacker_decode_header_tree(SmackVContext *smk, GetBitContext *gb, int **recodes, int *last, int size) size 189 libavcodec/smacker.c if(size >= UINT_MAX>>4){ // (((size + 3) >> 2) + 3) << 2 must not overflow size 271 libavcodec/smacker.c huff.length = ((size + 3) >> 2) + 4; size 410 libavcodec/smacker.c if (avpkt->size <= 769) size 418 libavcodec/smacker.c bytestream2_init(&gb2, avpkt->data, avpkt->size); size 434 libavcodec/smacker.c if ((ret = init_get_bits8(&gb, avpkt->data + 769, avpkt->size - 769)) < 0) size 546 libavcodec/smacker.c return avpkt->size; size 626 libavcodec/smacker.c int buf_size = avpkt->size; size 432 libavcodec/smc.c int buf_size = avpkt->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 430 libavcodec/snowdec.c int buf_size = avpkt->size; size 135 libavcodec/snowenc.c int size= s->b_width * s->b_height << 2*s->block_max_depth; size 137 libavcodec/snowenc.c s->ref_mvs[i]= av_mallocz_array(size, sizeof(int16_t[2])); size 138 libavcodec/snowenc.c s->ref_scores[i]= av_mallocz_array(size, sizeof(uint32_t)); size 1562 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1726 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1756 libavcodec/snowenc.c ff_init_range_encoder(c, pkt->data, pkt->size); size 1852 libavcodec/snowenc.c pkt->size = ff_rac_terminate(c); size 726 libavcodec/sonic.c ff_init_range_encoder(&c, avpkt->data, avpkt->size); size 835 libavcodec/sonic.c avpkt->size = ff_rac_terminate(&c); size 963 libavcodec/sonic.c int buf_size = avpkt->size; size 38 libavcodec/sp5xdec.c int buf_size = avpkt->size; size 88 libavcodec/sp5xdec.c avpkt_recoded.size = j; size 93 libavcodec/sp5xdec.c return i < 0 ? i : avpkt->size; size 194 libavcodec/srtdec.c int size, ret; size 195 libavcodec/srtdec.c const uint8_t *p = av_packet_get_side_data(avpkt, AV_PKT_DATA_SUBTITLE_POSITION, &size); size 197 libavcodec/srtdec.c if (p && size == 16) { size 204 libavcodec/srtdec.c if (avpkt->size <= 0) size 205 libavcodec/srtdec.c return avpkt->size; size 225 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 60 libavcodec/subviewerdec.c if (ptr && avpkt->size > 0 && !subviewer_event_to_ass(&buf, ptr)) size 66 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 34 libavcodec/sunrastenc.c int size; size 172 libavcodec/sunrastenc.c s->size = 32 + s->maplength + size 184 libavcodec/sunrastenc.c if ((ret = ff_alloc_packet2(avctx, avpkt, s->size)) < 0) size 187 libavcodec/sunrastenc.c bytestream2_init_writer(&s->p, avpkt->data, avpkt->size); size 198 libavcodec/sunrastenc.c avpkt->size = bytestream2_tell_p(&s->p); size 613 libavcodec/svq1dec.c int buf_size = avpkt->size; size 80 libavcodec/svq1enc.c intptr_t size) size 84 libavcodec/svq1enc.c for (i = 0; i < size; i++) size 98 libavcodec/svq1enc.c int size = w * h; size 136 libavcodec/svq1enc.c best_mean = block_sum[0] + (size >> 1) >> (level + 3); size 149 libavcodec/svq1enc.c vector = codebook + stage * size * 16 + i * size; size 150 libavcodec/svq1enc.c sqr = s->ssd_int8_vs_int16(vector, block[stage], size); size 154 libavcodec/svq1enc.c int mean = diff + (size >> 1) >> (level + 3); size 164 libavcodec/svq1enc.c vector = codebook + stage * size * 16 + best_vector[stage] * size; size 165 libavcodec/svq1enc.c for (j = 0; j < size; j++) size 610 libavcodec/svq1enc.c init_put_bits(&s->pb, pkt->data, pkt->size); size 635 libavcodec/svq1enc.c pkt->size = put_bits_count(&s->pb) / 8; size 74 libavcodec/svq1enc.h intptr_t size); size 374 libavcodec/svq3.c static inline int svq3_mc_dir(SVQ3Context *s, int size, int mode, size 379 libavcodec/svq3.c const int part_width = ((size & 5) == 4) ? 4 : 16 >> (size & 1); size 380 libavcodec/svq3.c const int part_height = 16 >> ((unsigned)(size + 1) / 3); size 876 libavcodec/svq3.c unsigned int size; size 926 libavcodec/svq3.c size = AV_RB32(&extradata[4]); size 927 libavcodec/svq3.c if (size > extradata_end - extradata - 8) { size 931 libavcodec/svq3.c init_get_bits(&gb, extradata + 8, size * 8); size 1021 libavcodec/svq3.c size - offset) != Z_OK) { size 1132 libavcodec/svq3.c int buf_size = avpkt->size; size 375 libavcodec/takdec.c int dshift, size, filter_quant, filter_order; size 410 libavcodec/takdec.c size = get_bits1(gb) + 6; size 421 libavcodec/takdec.c s->predictors[2] = get_sbits(gb, size) << (10 - size); size 422 libavcodec/takdec.c s->predictors[3] = get_sbits(gb, size) << (10 - size); size 424 libavcodec/takdec.c int tmp = size - get_bits1(gb); size 429 libavcodec/takdec.c s->predictors[i] = get_sbits(gb, x) << (10 - size); size 679 libavcodec/takdec.c if (pkt->size < TAK_MIN_FRAME_HEADER_BYTES) size 682 libavcodec/takdec.c if ((ret = init_get_bits8(gb, pkt->data, pkt->size)) < 0) size 902 libavcodec/takdec.c return pkt->size; size 121 libavcodec/targa.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 296 libavcodec/targa.c return avpkt->size; size 41 libavcodec/targa_y216dec.c if (avpkt->size < 4 * avctx->height * aligned_width) { size 72 libavcodec/targa_y216dec.c return avpkt->size; size 166 libavcodec/targaenc.c pkt->size = out + 26 - pkt->data; size 57 libavcodec/textdec.c if (ptr && avpkt->size > 0 && *ptr) { size 58 libavcodec/textdec.c ff_ass_bprint_text_event(&buf, ptr, avpkt->size, text->linebreaks, text->keep_ass_markup); size 65 libavcodec/textdec.c return avpkt->size; size 232 libavcodec/tiertexseqv.c int buf_size = avpkt->size; size 277 libavcodec/tiff.c static int deinvert_buffer(TiffContext *s, const uint8_t *src, int size) size 281 libavcodec/tiff.c av_fast_padded_malloc(&s->deinvert_buf, &s->deinvert_buf_size, size); size 284 libavcodec/tiff.c for (i = 0; i < size; i++) size 320 libavcodec/tiff.c int size) size 326 libavcodec/tiff.c zstream.avail_in = size; size 341 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines, size 352 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) { size 358 libavcodec/tiff.c ret = tiff_uncompress(zbuf, &outlen, src, size); size 387 libavcodec/tiff.c int size) size 393 libavcodec/tiff.c stream.avail_in = size; size 408 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines, size 417 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) { size 423 libavcodec/tiff.c ret = tiff_uncompress_lzma(buf, &outlen, src, size); size 451 libavcodec/tiff.c const uint8_t *src, int size, int width, int lines) size 455 libavcodec/tiff.c uint8_t *src2 = av_malloc((unsigned)size + size 469 libavcodec/tiff.c memcpy(src2, src, size); size 471 libavcodec/tiff.c for (i = 0; i < size; i++) size 474 libavcodec/tiff.c memset(src2 + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 475 libavcodec/tiff.c ret = ff_ccitt_unpack(s->avctx, src2, size, dst, lines, stride, size 487 libavcodec/tiff.c const uint8_t *src, int size, int strip_start, int lines) size 501 libavcodec/tiff.c if (size <= 0) size 523 libavcodec/tiff.c return tiff_unpack_zlib(s, p, dst, stride, src, size, width, lines, size 534 libavcodec/tiff.c return tiff_unpack_lzma(s, p, dst, stride, src, size, width, lines, size 544 libavcodec/tiff.c if ((ret = deinvert_buffer(s, src, size)) < 0) size 548 libavcodec/tiff.c if (size > 1 && !src[0] && (src[1]&1)) { size 551 libavcodec/tiff.c if ((ret = ff_lzw_decode_init(s->lzw, 8, src, size, FF_LZW_TIFF)) < 0) { size 578 libavcodec/tiff.c return tiff_unpack_fax(s, dst, stride, src, size, width, lines); size 581 libavcodec/tiff.c bytestream2_init(&s->gb, src, size); size 585 libavcodec/tiff.c if (src - ssrc > size) { size 595 libavcodec/tiff.c if (ssrc + size - src < width) size 610 libavcodec/tiff.c if (ssrc + size - src < 2) { size 618 libavcodec/tiff.c ssrc + size - src < code) { size 1179 libavcodec/tiff.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 1185 libavcodec/tiff.c } else if (off >= UINT_MAX - 14 || avpkt->size < off + 14) { size 1236 libavcodec/tiff.c s->stripsize = avpkt->size - s->stripoff; size 1240 libavcodec/tiff.c if (s->stripsizesoff >= (unsigned)avpkt->size) size 1243 libavcodec/tiff.c avpkt->size - s->stripsizesoff); size 1246 libavcodec/tiff.c if (s->strippos >= (unsigned)avpkt->size) size 1249 libavcodec/tiff.c avpkt->size - s->strippos); size 1272 libavcodec/tiff.c if (soff > avpkt->size || ssize > avpkt->size - soff) { size 1344 libavcodec/tiff.c return avpkt->size; size 336 libavcodec/tiffenc.c s->buf_size = pkt->size; size 510 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 50 libavcodec/truemotion1.c int size; size 326 libavcodec/truemotion1.c if (header.header_size + 1 > s->size) { size 448 libavcodec/truemotion1.c s->index_stream_size = s->size - (s->index_stream - s->buf); size 869 libavcodec/truemotion1.c int ret, buf_size = avpkt->size; size 873 libavcodec/truemotion1.c s->size = buf_size; size 878 libavcodec/truemotion2.c int buf_size = avpkt->size & ~3; size 311 libavcodec/truespeech.c int buf_size = avpkt->size; size 69 libavcodec/tscc.c int buf_size = avpkt->size; size 221 libavcodec/tscc2.c int buf_size = avpkt->size; size 224 libavcodec/tscc2.c uint32_t frame_type, size; size 270 libavcodec/tscc2.c size = bytestream2_get_le32(&gb); size 271 libavcodec/tscc2.c if (size > bytestream2_get_bytes_left(&gb)) { size 276 libavcodec/tscc2.c for (i = 0; i < size; i++) { size 294 libavcodec/tscc2.c size = bytestream2_peek_byte(&gb); size 295 libavcodec/tscc2.c if (size & 1) { size 296 libavcodec/tscc2.c size = bytestream2_get_byte(&gb) - 1; size 298 libavcodec/tscc2.c size = bytestream2_get_le32(&gb) >> 1; size 300 libavcodec/tscc2.c if (!size) { size 314 libavcodec/tscc2.c if (bytestream2_get_bytes_left(&gb) < size) { size 316 libavcodec/tscc2.c size, bytestream2_get_bytes_left(&gb)); size 319 libavcodec/tscc2.c ret = tscc2_decode_slice(c, i, buf + bytestream2_tell(&gb), size); size 324 libavcodec/tscc2.c bytestream2_skip(&gb, size); size 219 libavcodec/tta.c int buf_size = avpkt->size; size 232 libavcodec/tta.c if ((ret = init_get_bits8(&gb, avpkt->data, avpkt->size)) < 0) size 121 libavcodec/ttaenc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 205 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 41 libavcodec/txd.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 127 libavcodec/txd.c return avpkt->size; size 218 libavcodec/ulti.c int buf_size = avpkt->size; size 125 libavcodec/utils.c static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) size 128 libavcodec/utils.c if (min_size <= *size && *p) size 135 libavcodec/utils.c *size = min_size; size 139 libavcodec/utils.c void av_fast_padded_malloc(void *ptr, unsigned int *size, size_t min_size) size 144 libavcodec/utils.c *size = 0; size 147 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + FF_INPUT_BUFFER_PADDING_SIZE, 1)) size 151 libavcodec/utils.c void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size) size 156 libavcodec/utils.c *size = 0; size 159 libavcodec/utils.c if (!ff_fast_malloc(p, size, min_size + FF_INPUT_BUFFER_PADDING_SIZE, 1)) size 518 libavcodec/utils.c int size[4] = { 0 }; size 547 libavcodec/utils.c size[i] = picture.data[i + 1] - picture.data[i]; size 548 libavcodec/utils.c size[i] = tmpsize - (picture.data[i] - picture.data[0]); size 553 libavcodec/utils.c if (size[i]) { size 554 libavcodec/utils.c pool->pools[i] = av_buffer_pool_init(size[i] + 16 + STRIDE_ALIGN - 1, size 756 libavcodec/utils.c av_frame_set_pkt_size (frame, pkt->size); size 759 libavcodec/utils.c int size; size 760 libavcodec/utils.c uint8_t *packet_sd = av_packet_get_side_data(pkt, sd[i].packet, &size); size 764 libavcodec/utils.c size); size 768 libavcodec/utils.c memcpy(frame_sd->data, packet_sd, size); size 1100 libavcodec/utils.c int avcodec_default_execute(AVCodecContext *c, int (*func)(AVCodecContext *c2, void *arg2), void *arg, int *ret, int count, int size) size 1105 libavcodec/utils.c int r = func(c, (char *)arg + i * size); size 1720 libavcodec/utils.c int ff_alloc_packet2(AVCodecContext *avctx, AVPacket *avpkt, int64_t size) size 1722 libavcodec/utils.c if (avpkt->size < 0) { size 1723 libavcodec/utils.c av_log(avctx, AV_LOG_ERROR, "Invalid negative user packet size %d\n", avpkt->size); size 1726 libavcodec/utils.c if (size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { size 1728 libavcodec/utils.c size, INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE); size 1734 libavcodec/utils.c if (!avpkt->data || avpkt->size < size) { size 1735 libavcodec/utils.c av_fast_padded_malloc(&avctx->internal->byte_buffer, &avctx->internal->byte_buffer_size, size); size 1737 libavcodec/utils.c avpkt->size = avctx->internal->byte_buffer_size; size 1754 libavcodec/utils.c if (avpkt->size < size) { size 1755 libavcodec/utils.c av_log(avctx, AV_LOG_ERROR, "User packet is too small (%d < %"PRId64")\n", avpkt->size, size); size 1766 libavcodec/utils.c avpkt->size = size; size 1769 libavcodec/utils.c int ret = av_new_packet(avpkt, size); size 1771 libavcodec/utils.c av_log(avctx, AV_LOG_ERROR, "Failed to allocate packet of size %"PRId64"\n", size); size 1776 libavcodec/utils.c int ff_alloc_packet(AVPacket *avpkt, int size) size 1778 libavcodec/utils.c return ff_alloc_packet2(NULL, avpkt, size); size 1863 libavcodec/utils.c if (sd && sd->size >= sizeof(enum AVAudioServiceType)) size 1906 libavcodec/utils.c avpkt->size = 0; size 1912 libavcodec/utils.c if (user_pkt.size >= avpkt->size) { size 1913 libavcodec/utils.c memcpy(user_pkt.data, avpkt->data, avpkt->size); size 1915 libavcodec/utils.c av_log(avctx, AV_LOG_ERROR, "Provided packet is too small, needs to be %d\n", avpkt->size); size 1916 libavcodec/utils.c avpkt->size = user_pkt.size; size 1935 libavcodec/utils.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); size 1976 libavcodec/utils.c pkt.size = buf_size; size 2044 libavcodec/utils.c return ret ? ret : pkt.size; size 2063 libavcodec/utils.c pkt.size = buf_size; size 2080 libavcodec/utils.c return ret ? ret : pkt.size; size 2106 libavcodec/utils.c avpkt->size = 0; size 2126 libavcodec/utils.c if (user_pkt.size >= avpkt->size) { size 2127 libavcodec/utils.c memcpy(user_pkt.data, avpkt->data, avpkt->size); size 2129 libavcodec/utils.c av_log(avctx, AV_LOG_ERROR, "Provided packet is too small, needs to be %d\n", avpkt->size); size 2130 libavcodec/utils.c avpkt->size = user_pkt.size; size 2149 libavcodec/utils.c avpkt->size = 0; size 2154 libavcodec/utils.c ret = av_buffer_realloc(&avpkt->buf, avpkt->size + FF_INPUT_BUFFER_PADDING_SIZE); size 2223 libavcodec/utils.c int size = 0, ret; size 2227 libavcodec/utils.c data = av_packet_get_side_data(avpkt, AV_PKT_DATA_PARAM_CHANGE, &size); size 2237 libavcodec/utils.c if (size < 4) size 2241 libavcodec/utils.c size -= 4; size 2244 libavcodec/utils.c if (size < 4) size 2247 libavcodec/utils.c size -= 4; size 2250 libavcodec/utils.c if (size < 8) size 2253 libavcodec/utils.c size -= 8; size 2256 libavcodec/utils.c if (size < 4) size 2259 libavcodec/utils.c size -= 4; size 2262 libavcodec/utils.c if (size < 8) size 2266 libavcodec/utils.c size -= 8; size 2280 libavcodec/utils.c int size; size 2286 libavcodec/utils.c AV_PKT_DATA_STRINGS_METADATA, &size); size 2287 libavcodec/utils.c return av_packet_unpack_dictionary(side_metadata, size, frame_md); size 2309 libavcodec/utils.c int size = planes * sizeof(*frame->extended_data); size 2311 libavcodec/utils.c if (!size) { size 2316 libavcodec/utils.c frame->extended_data = av_malloc(size); size 2322 libavcodec/utils.c size); size 2358 libavcodec/utils.c if ((avctx->codec->capabilities & CODEC_CAP_DELAY) || avpkt->size || (avctx->active_thread_type & FF_THREAD_FRAME)) { size 2396 libavcodec/utils.c if(ret == tmp.size) size 2397 libavcodec/utils.c ret = avpkt->size; size 2492 libavcodec/utils.c if (!avpkt->data && avpkt->size) { size 2505 libavcodec/utils.c if ((avctx->codec->capabilities & CODEC_CAP_DELAY) || avpkt->size || (avctx->active_thread_type & FF_THREAD_FRAME)) { size 2618 libavcodec/utils.c if(ret == tmp.size) size 2619 libavcodec/utils.c ret = avpkt->size; size 2647 libavcodec/utils.c if (avctx->sub_charenc_mode != FF_SUB_CHARENC_MODE_PRE_DECODER || inpkt->size == 0) size 2655 libavcodec/utils.c inl = inpkt->size; size 2668 libavcodec/utils.c outpkt->size = tmp.size; size 2670 libavcodec/utils.c outl = outpkt->size; size 2674 libavcodec/utils.c outl >= outpkt->size || inl != 0) { size 2681 libavcodec/utils.c outpkt->size -= outl; size 2682 libavcodec/utils.c memset(outpkt->data + outpkt->size, 0, outl); size 2719 libavcodec/utils.c if (!avpkt->data && avpkt->size) { size 2733 libavcodec/utils.c if ((avctx->codec->capabilities & CODEC_CAP_DELAY) || avpkt->size) { size 2745 libavcodec/utils.c memset(tmp.data + tmp.size, 0, size 2746 libavcodec/utils.c FFMIN(avpkt->size - tmp.size, FF_INPUT_BUFFER_PADDING_SIZE)); size 2796 libavcodec/utils.c if(ret == tmp.size) size 2797 libavcodec/utils.c ret = avpkt->size; size 3512 libavcodec/utils.c int ff_match_2uint16(const uint16_t(*tab)[2], int size, int a, int b) size 3515 libavcodec/utils.c for (i = 0; i < size && !(tab[i][0] == a && tab[i][1] == b); i++) ; size 334 libavcodec/utvideodec.c int buf_size = avpkt->size; size 555 libavcodec/utvideoenc.c bytestream2_init_writer(&pb, dst, pkt->size); size 628 libavcodec/utvideoenc.c pkt->size = bytestream2_tell_p(&pb); size 88 libavcodec/v210dec.c if (avpkt->size < stride * avctx->height) { size 89 libavcodec/v210dec.c if ((((avctx->width + 23) / 24) * 24 * 8) / 3 * avctx->height == avpkt->size) { size 90 libavcodec/v210dec.c stride = avpkt->size / avctx->height; size 158 libavcodec/v210dec.c return avpkt->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 54 libavcodec/v410dec.c if (avpkt->size < 4 * avctx->height * avctx->width) { size 87 libavcodec/v410dec.c return avpkt->size; size 124 libavcodec/vaapi.c static void *alloc_buffer(struct vaapi_context *vactx, int type, unsigned int size, uint32_t *buf_id) size 130 libavcodec/vaapi.c type, size, 1, NULL, buf_id) == VA_STATUS_SUCCESS) size 136 libavcodec/vaapi.c void *ff_vaapi_alloc_pic_param(struct vaapi_context *vactx, unsigned int size) size 138 libavcodec/vaapi.c return alloc_buffer(vactx, VAPictureParameterBufferType, size, &vactx->pic_param_buf_id); size 141 libavcodec/vaapi.c void *ff_vaapi_alloc_iq_matrix(struct vaapi_context *vactx, unsigned int size) size 143 libavcodec/vaapi.c return alloc_buffer(vactx, VAIQMatrixBufferType, size, &vactx->iq_matrix_buf_id); size 146 libavcodec/vaapi.c uint8_t *ff_vaapi_alloc_bitplane(struct vaapi_context *vactx, uint32_t size) size 148 libavcodec/vaapi.c return alloc_buffer(vactx, VABitPlaneBufferType, size, &vactx->bitplane_buf_id); size 151 libavcodec/vaapi.c VASliceParameterBufferBase *ff_vaapi_alloc_slice(struct vaapi_context *vactx, const uint8_t *buffer, uint32_t size) size 173 libavcodec/vaapi.c slice_param->slice_data_size = size; size 178 libavcodec/vaapi.c vactx->slice_data_size += size; size 82 libavcodec/vaapi_h264.c int size; ///< Current number of reference frames in the DPB size 97 libavcodec/vaapi_h264.c if (dpb->size >= dpb->max_size) size 100 libavcodec/vaapi_h264.c for (i = 0; i < dpb->size; i++) { size 119 libavcodec/vaapi_h264.c fill_vaapi_pic(&dpb->va_pics[dpb->size++], pic, 0); size 130 libavcodec/vaapi_h264.c dpb.size = 0; size 225 libavcodec/vaapi_h264.c av_unused uint32_t size) size 316 libavcodec/vaapi_h264.c uint32_t size) size 322 libavcodec/vaapi_h264.c buffer, size); size 325 libavcodec/vaapi_h264.c slice_param = (VASliceParameterBufferH264 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, buffer, size); size 48 libavcodec/vaapi_internal.h void *ff_vaapi_alloc_pic_param(struct vaapi_context *vactx, unsigned int size); size 51 libavcodec/vaapi_internal.h void *ff_vaapi_alloc_iq_matrix(struct vaapi_context *vactx, unsigned int size); size 54 libavcodec/vaapi_internal.h uint8_t *ff_vaapi_alloc_bitplane(struct vaapi_context *vactx, uint32_t size); size 64 libavcodec/vaapi_internal.h VASliceParameterBufferBase *ff_vaapi_alloc_slice(struct vaapi_context *vactx, const uint8_t *buffer, uint32_t size); size 39 libavcodec/vaapi_mpeg2.c static int vaapi_mpeg2_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 102 libavcodec/vaapi_mpeg2.c static int vaapi_mpeg2_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 109 libavcodec/vaapi_mpeg2.c av_dlog(avctx, "vaapi_mpeg2_decode_slice(): buffer %p, size %d\n", buffer, size); size 112 libavcodec/vaapi_mpeg2.c init_get_bits(&gb, buffer, 8 * size); size 125 libavcodec/vaapi_mpeg2.c slice_param = (VASliceParameterBufferMPEG2 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, buffer, size); size 43 libavcodec/vaapi_mpeg4.c static int vaapi_mpeg4_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 120 libavcodec/vaapi_mpeg4.c static int vaapi_mpeg4_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 125 libavcodec/vaapi_mpeg4.c av_dlog(avctx, "vaapi_mpeg4_decode_slice(): buffer %p, size %d\n", buffer, size); size 128 libavcodec/vaapi_mpeg4.c slice_param = (VASliceParameterBufferMPEG4 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, buffer, size); size 146 libavcodec/vaapi_vc1.c static int vaapi_vc1_start_frame(AVCodecContext *avctx, av_unused const uint8_t *buffer, av_unused uint32_t size) size 313 libavcodec/vaapi_vc1.c static int vaapi_vc1_decode_slice(AVCodecContext *avctx, const uint8_t *buffer, uint32_t size) size 319 libavcodec/vaapi_vc1.c av_dlog(avctx, "vaapi_vc1_decode_slice(): buffer %p, size %d\n", buffer, size); size 324 libavcodec/vaapi_vc1.c size -= 4; size 328 libavcodec/vaapi_vc1.c slice_param = (VASliceParameterBufferVC1 *)ff_vaapi_alloc_slice(avctx->hwaccel_context, 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 195 libavcodec/vb.c uint32_t size; size 198 libavcodec/vb.c bytestream2_init(&c->stream, avpkt->data, avpkt->size); size 211 libavcodec/vb.c size = bytestream2_get_le32(&c->stream); size 212 libavcodec/vb.c if(size > bytestream2_get_bytes_left(&c->stream)+4 || size<4){ size 217 libavcodec/vb.c bytestream2_skip(&c->stream, size - 4); size 220 libavcodec/vb.c size = bytestream2_get_le32(&c->stream); size 221 libavcodec/vb.c vb_decode_palette(c, size); size 241 libavcodec/vb.c return avpkt->size; size 39 libavcodec/vble.c int size; size 59 libavcodec/vble.c for (i = 0; i < ctx->size; i++) { size 127 libavcodec/vble.c if (avpkt->size < 4 || avpkt->size - 4 > INT_MAX/8) { size 146 libavcodec/vble.c init_get_bits(&gb, src + 4, (avpkt->size - 4) * 8); size 168 libavcodec/vble.c return avpkt->size; size 190 libavcodec/vble.c ctx->size = avpicture_get_size(avctx->pix_fmt, size 193 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 476 libavcodec/vc1dec.c int size, buf2_size; size 490 libavcodec/vc1dec.c size = next - start - 4; size 491 libavcodec/vc1dec.c if (size <= 0) size 493 libavcodec/vc1dec.c buf2_size = vc1_unescape_buffer(start + 4, size, buf2); size 611 libavcodec/vc1dec.c int buf_size = avpkt->size, n_slices = 0, i, ret; size 659 libavcodec/vc1dec.c int size; size 664 libavcodec/vc1dec.c size = next - start - 4; size 665 libavcodec/vc1dec.c if (size <= 0) continue; size 671 libavcodec/vc1dec.c buf_size2 = vc1_unescape_buffer(start + 4, size, buf2); size 685 libavcodec/vc1dec.c buf_size3 = vc1_unescape_buffer(start + 4, size, size 697 libavcodec/vc1dec.c buf_size2 = vc1_unescape_buffer(start + 4, size, buf2); size 710 libavcodec/vc1dec.c buf_size3 = vc1_unescape_buffer(start + 4, size, size 83 libavcodec/vc1dsp.h int (*startcode_find_candidate)(const uint8_t *buf, int size); 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 94 libavcodec/vda_h264.c av_unused uint32_t size) size 109 libavcodec/vda_h264.c uint32_t size) size 120 libavcodec/vda_h264.c vda->bitstream_size + size + 4); size 126 libavcodec/vda_h264.c AV_WB32(vda->bitstream + vda->bitstream_size, size); size 127 libavcodec/vda_h264.c memcpy(vda->bitstream + vda->bitstream_size + 4, buffer, size); size 129 libavcodec/vda_h264.c vda->bitstream_size += size + 4; size 320 libavcodec/vda_h264.c uint32_t size) size 331 libavcodec/vda_h264.c uint32_t size) size 338 libavcodec/vda_h264.c vda->bitstream_size + size + 4); size 344 libavcodec/vda_h264.c AV_WB32(vda->bitstream + vda->bitstream_size, size); size 345 libavcodec/vda_h264.c memcpy(vda->bitstream + vda->bitstream_size + 4, buffer, size); size 347 libavcodec/vda_h264.c vda->bitstream_size += size + 4; size 268 libavcodec/vdpau.c av_unused uint32_t size) size 340 libavcodec/vdpau.c const uint8_t *buf, uint32_t size) size 354 libavcodec/vdpau.c buffers->bitstream_bytes = size; size 120 libavcodec/vdpau_h264.c const uint8_t *buffer, uint32_t size) size 173 libavcodec/vdpau_h264.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 179 libavcodec/vdpau_h264.c const uint8_t *buffer, uint32_t size) size 190 libavcodec/vdpau_h264.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 121 libavcodec/vdpau_internal.h const uint8_t *buffer, uint32_t size); size 32 libavcodec/vdpau_mpeg12.c const uint8_t *buffer, uint32_t size) size 79 libavcodec/vdpau_mpeg12.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 83 libavcodec/vdpau_mpeg12.c const uint8_t *buffer, uint32_t size) size 90 libavcodec/vdpau_mpeg12.c val = ff_vdpau_add_buffer(pic_ctx, buffer, size); size 32 libavcodec/vdpau_mpeg4.c const uint8_t *buffer, uint32_t size) size 80 libavcodec/vdpau_mpeg4.c ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 81 libavcodec/vdpau_mpeg4.c return ff_vdpau_add_buffer(pic_ctx, buffer, size); size 86 libavcodec/vdpau_mpeg4.c av_unused uint32_t size) size 32 libavcodec/vdpau_vc1.c const uint8_t *buffer, uint32_t size) size 96 libavcodec/vdpau_vc1.c return ff_vdpau_common_start_frame(pic_ctx, buffer, size); size 100 libavcodec/vdpau_vc1.c const uint8_t *buffer, uint32_t size) size 108 libavcodec/vdpau_vc1.c val = ff_vdpau_add_buffer(pic_ctx, buffer, 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 138 libavcodec/vmdaudio.c int buf_size = avpkt->size; size 223 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 323 libavcodec/vmnc.c int buf_size = avpkt->size; size 1736 libavcodec/vorbisdec.c int buf_size = avpkt->size; size 1039 libavcodec/vorbisenc.c init_put_bits(&pb, avpkt->data, avpkt->size); size 1091 libavcodec/vorbisenc.c avpkt->size = put_bits_count(&pb) >> 3; size 1996 libavcodec/vp3.c int buf_size = avpkt->size; size 505 libavcodec/vp56.c int remaining_buf_size = avpkt->size; size 578 libavcodec/vp56.c return avpkt->size; size 239 libavcodec/vp6.c const uint8_t *map, unsigned size, VLC *vlc) size 241 libavcodec/vp6.c Node nodes[2*VP6_MAX_HUFF_SIZE], *tmp = &nodes[size]; size 246 libavcodec/vp6.c for (i=0; i<size-1; i++) { size 255 libavcodec/vp6.c return ff_huff_build_tree(s->avctx, vlc, size, FF_HUFFMAN_BITS, size 272 libavcodec/vp8.c int size = AV_RL24(sizes + 3 * i); size 273 libavcodec/vp8.c if (buf_size - size < 0) size 276 libavcodec/vp8.c ff_vp56_init_range_decoder(&s->coeff_partition[i], buf, size); size 277 libavcodec/vp8.c buf += size; size 278 libavcodec/vp8.c buf_size -= size; size 2523 libavcodec/vp8.c ret = vp7_decode_frame_header(s, avpkt->data, avpkt->size); size 2525 libavcodec/vp8.c ret = vp8_decode_frame_header(s, avpkt->data, avpkt->size); size 2665 libavcodec/vp8.c return avpkt->size; size 369 libavcodec/vp8dsp.c #define LOOP_FILTER(vpn, dir, size, stridea, strideb, maybe_inline) \ size 371 libavcodec/vp8dsp.c void vpn ## _ ## dir ## _loop_filter ## size ## _c(uint8_t *dst, \ size 377 libavcodec/vp8dsp.c for (i = 0; i < size; i++) \ size 388 libavcodec/vp8dsp.c void vpn ## _ ## dir ## _loop_filter ## size ## _inner_c(uint8_t *dst, \ size 395 libavcodec/vp8dsp.c for (i = 0; i < size; i++) \ size 469 libavcodec/vp9.c const uint8_t *data, int size, int *ref) size 477 libavcodec/vp9.c if ((res = init_get_bits8(&s->gb, data, size)) < 0) { size 748 libavcodec/vp9.c if (size2 > size - (data2 - data)) { size 3757 libavcodec/vp9.c int size = pkt->size; size 3763 libavcodec/vp9.c if ((res = decode_frame_header(ctx, data, size, &ref)) < 0) { size 3773 libavcodec/vp9.c return pkt->size; size 3776 libavcodec/vp9.c size -= res; size 3875 libavcodec/vp9.c tile_size = size; size 3879 libavcodec/vp9.c size -= 4; size 3881 libavcodec/vp9.c if (tile_size > size) { size 3891 libavcodec/vp9.c size -= tile_size; size 3997 libavcodec/vp9.c return pkt->size; size 26 libavcodec/vp9_parser.c int size[8]; size 30 libavcodec/vp9_parser.c static void parse_frame(AVCodecParserContext *ctx, const uint8_t *buf, int size) size 55 libavcodec/vp9_parser.c const uint8_t *data, int size) size 58 libavcodec/vp9_parser.c int full_size = size; size 61 libavcodec/vp9_parser.c if (size <= 0) { size 70 libavcodec/vp9_parser.c *out_size = s->size[--s->n_frames]; size 73 libavcodec/vp9_parser.c return s->n_frames > 0 ? *out_size : size /* i.e. include idx tail */; size 76 libavcodec/vp9_parser.c marker = data[size - 1]; size 81 libavcodec/vp9_parser.c if (size >= idx_sz && data[size - idx_sz] == marker) { size 82 libavcodec/vp9_parser.c const uint8_t *idx = data + size + 1 - idx_sz; size 91 libavcodec/vp9_parser.c if (sz > size) { \ size 93 libavcodec/vp9_parser.c *out_size = size; \ size 97 libavcodec/vp9_parser.c sz, size); \ size 106 libavcodec/vp9_parser.c s->size[n_frames] = sz; \ size 109 libavcodec/vp9_parser.c size -= sz; \ size 123 libavcodec/vp9_parser.c *out_size = size; size 124 libavcodec/vp9_parser.c parse_frame(ctx, data, size); size 126 libavcodec/vp9_parser.c return size; size 591 libavcodec/vp9dsp.c #define def_diag_downleft(size) \ size 592 libavcodec/vp9dsp.c static void diag_downleft_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 596 libavcodec/vp9dsp.c uint8_t v[size - 1]; \ size 598 libavcodec/vp9dsp.c for (i = 0; i < size - 2; i++) \ size 600 libavcodec/vp9dsp.c v[size - 2] = (top[size - 2] + top[size - 1] * 3 + 2) >> 2; \ size 602 libavcodec/vp9dsp.c for (j = 0; j < size; j++) { \ size 603 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j, size - 1 - j); \ size 604 libavcodec/vp9dsp.c memset(dst + j*stride + size - 1 - j, top[size - 1], j + 1); \ size 627 libavcodec/vp9dsp.c #define def_diag_downright(size) \ size 628 libavcodec/vp9dsp.c static void diag_downright_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 632 libavcodec/vp9dsp.c uint8_t v[size + size - 1]; \ size 634 libavcodec/vp9dsp.c for (i = 0; i < size - 2; i++) { \ size 636 libavcodec/vp9dsp.c v[size + 1 + i] = (top[i] + top[i + 1] * 2 + top[i + 2] + 2) >> 2; \ size 638 libavcodec/vp9dsp.c v[size - 2] = (left[size - 2] + left[size - 1] * 2 + top[-1] + 2) >> 2; \ size 639 libavcodec/vp9dsp.c v[size - 1] = (left[size - 1] + top[-1] * 2 + top[ 0] + 2) >> 2; \ size 640 libavcodec/vp9dsp.c v[size ] = (top[-1] + top[0] * 2 + top[ 1] + 2) >> 2; \ size 642 libavcodec/vp9dsp.c for (j = 0; j < size; j++) \ size 643 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + size - 1 - j, size); \ size 668 libavcodec/vp9dsp.c #define def_vert_right(size) \ size 669 libavcodec/vp9dsp.c static void vert_right_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 673 libavcodec/vp9dsp.c uint8_t ve[size + size/2 - 1], vo[size + size/2 - 1]; \ size 675 libavcodec/vp9dsp.c for (i = 0; i < size/2 - 2; i++) { \ size 679 libavcodec/vp9dsp.c vo[size/2 - 2] = (left[size - 1] + left[size - 2] * 2 + left[size - 3] + 2) >> 2; \ size 680 libavcodec/vp9dsp.c ve[size/2 - 2] = (top[-1] + left[size - 1] * 2 + left[size - 2] + 2) >> 2; \ size 682 libavcodec/vp9dsp.c ve[size/2 - 1] = (top[-1] + top[0] + 1) >> 1; \ size 683 libavcodec/vp9dsp.c vo[size/2 - 1] = (left[size - 1] + top[-1] * 2 + top[0] + 2) >> 2; \ size 684 libavcodec/vp9dsp.c for (i = 0; i < size - 1; i++) { \ size 685 libavcodec/vp9dsp.c ve[size/2 + i] = (top[i] + top[i + 1] + 1) >> 1; \ size 686 libavcodec/vp9dsp.c vo[size/2 + i] = (top[i - 1] + top[i] * 2 + top[i + 1] + 2) >> 2; \ size 689 libavcodec/vp9dsp.c for (j = 0; j < size / 2; j++) { \ size 690 libavcodec/vp9dsp.c memcpy(dst + j*2 *stride, ve + size/2 - 1 - j, size); \ size 691 libavcodec/vp9dsp.c memcpy(dst + (j*2 + 1)*stride, vo + size/2 - 1 - j, size); \ size 717 libavcodec/vp9dsp.c #define def_hor_down(size) \ size 718 libavcodec/vp9dsp.c static void hor_down_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 722 libavcodec/vp9dsp.c uint8_t v[size * 3 - 2]; \ size 724 libavcodec/vp9dsp.c for (i = 0; i < size - 2; i++) { \ size 727 libavcodec/vp9dsp.c v[size*2 + i] = (top[i - 1] + top[i] * 2 + top[i + 1] + 2) >> 2; \ size 729 libavcodec/vp9dsp.c v[size*2 - 2] = (top[-1] + left[size - 1] + 1) >> 1; \ size 730 libavcodec/vp9dsp.c v[size*2 - 4] = (left[size - 1] + left[size - 2] + 1) >> 1; \ size 731 libavcodec/vp9dsp.c v[size*2 - 1] = (top[0] + top[-1] * 2 + left[size - 1] + 2) >> 2; \ size 732 libavcodec/vp9dsp.c v[size*2 - 3] = (top[-1] + left[size - 1] * 2 + left[size - 2] + 2) >> 2; \ size 734 libavcodec/vp9dsp.c for (j = 0; j < size; j++) \ size 735 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + size*2 - 2 - j*2, size); \ size 760 libavcodec/vp9dsp.c #define def_vert_left(size) \ size 761 libavcodec/vp9dsp.c static void vert_left_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 765 libavcodec/vp9dsp.c uint8_t ve[size - 1], vo[size - 1]; \ size 767 libavcodec/vp9dsp.c for (i = 0; i < size - 2; i++) { \ size 771 libavcodec/vp9dsp.c ve[size - 2] = (top[size - 2] + top[size - 1] + 1) >> 1; \ size 772 libavcodec/vp9dsp.c vo[size - 2] = (top[size - 2] + top[size - 1] * 3 + 2) >> 2; \ size 774 libavcodec/vp9dsp.c for (j = 0; j < size / 2; j++) { \ size 775 libavcodec/vp9dsp.c memcpy(dst + j*2 * stride, ve + j, size - j - 1); \ size 776 libavcodec/vp9dsp.c memset(dst + j*2 * stride + size - j - 1, top[size - 1], j + 1); \ size 777 libavcodec/vp9dsp.c memcpy(dst + (j*2 + 1) * stride, vo + j, size - j - 1); \ size 778 libavcodec/vp9dsp.c memset(dst + (j*2 + 1) * stride + size - j - 1, top[size - 1], j + 1); \ size 800 libavcodec/vp9dsp.c #define def_hor_up(size) \ size 801 libavcodec/vp9dsp.c static void hor_up_##size##x##size##_c(uint8_t *dst, ptrdiff_t stride, \ size 805 libavcodec/vp9dsp.c uint8_t v[size*2 - 2]; \ size 807 libavcodec/vp9dsp.c for (i = 0; i < size - 2; i++) { \ size 811 libavcodec/vp9dsp.c v[size*2 - 4] = (left[size - 2] + left[size - 1] + 1) >> 1; \ size 812 libavcodec/vp9dsp.c v[size*2 - 3] = (left[size - 2] + left[size - 1] * 3 + 2) >> 2; \ size 814 libavcodec/vp9dsp.c for (j = 0; j < size / 2; j++) \ size 815 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j*2, size); \ size 816 libavcodec/vp9dsp.c for (j = size / 2; j < size; j++) { \ size 817 libavcodec/vp9dsp.c memcpy(dst + j*stride, v + j*2, size*2 - 2 - j*2); \ size 818 libavcodec/vp9dsp.c memset(dst + j*stride + size*2 - 2 - j*2, left[size - 1], \ size 819 libavcodec/vp9dsp.c 2 + j*2 - size); \ size 613 libavcodec/vqavideo.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 624 libavcodec/vqavideo.c return avpkt->size; size 40 libavcodec/wavpack.c int size; size 496 libavcodec/wavpack.c int size = av_get_bytes_per_sample(type); size 497 libavcodec/wavpack.c memset((uint8_t*)dst_l + count*size, 0, (s->samples-count)*size); size 498 libavcodec/wavpack.c memset((uint8_t*)dst_r + count*size, 0, (s->samples-count)*size); size 564 libavcodec/wavpack.c int size = av_get_bytes_per_sample(type); size 565 libavcodec/wavpack.c memset((uint8_t*)dst + count*size, 0, (s->samples-count)*size); size 633 libavcodec/wavpack.c int i, j, id, size, ssize, weights, t; size 681 libavcodec/wavpack.c size = bytestream2_get_byte(&gb); size 683 libavcodec/wavpack.c size |= (bytestream2_get_byte(&gb)) << 8; size 684 libavcodec/wavpack.c size |= (bytestream2_get_byte(&gb)) << 16; size 686 libavcodec/wavpack.c size <<= 1; // size is specified in words size 687 libavcodec/wavpack.c ssize = size; size 689 libavcodec/wavpack.c size--; size 690 libavcodec/wavpack.c if (size < 0) { size 692 libavcodec/wavpack.c "Got incorrect block %02X with size %i\n", id, size); size 697 libavcodec/wavpack.c "Block size %i is out of bounds\n", size); size 702 libavcodec/wavpack.c if (size > MAX_TERMS) { size 708 libavcodec/wavpack.c s->terms = size; size 721 libavcodec/wavpack.c weights = size >> s->stereo_in; size 749 libavcodec/wavpack.c for (i = s->terms - 1; (i >= 0) && (t < size); i--) { size 785 libavcodec/wavpack.c if (size != 6 * (s->stereo_in + 1)) { size 788 libavcodec/wavpack.c 6 * (s->stereo_in + 1), size); size 802 libavcodec/wavpack.c size -= 2; size 807 libavcodec/wavpack.c size -= 2; size 809 libavcodec/wavpack.c if (size > 0) { size 822 libavcodec/wavpack.c if (size != 4) { size 825 libavcodec/wavpack.c size); size 852 libavcodec/wavpack.c if (size != 4) { size 854 libavcodec/wavpack.c "Invalid FLOATINFO, size = %i\n", size); size 866 libavcodec/wavpack.c s->sc.size = size * 8; size 867 libavcodec/wavpack.c if ((ret = init_get_bits8(&s->gb, gb.buffer, size)) < 0) size 869 libavcodec/wavpack.c s->data_size = size * 8; size 870 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 874 libavcodec/wavpack.c if (size <= 4) { size 876 libavcodec/wavpack.c size); size 877 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 881 libavcodec/wavpack.c s->extra_sc.size = size * 8; size 882 libavcodec/wavpack.c if ((ret = init_get_bits8(&s->gb_extra_bits, gb.buffer, size)) < 0) size 885 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 889 libavcodec/wavpack.c if (size <= 1) { size 895 libavcodec/wavpack.c switch (size - 2) { size 909 libavcodec/wavpack.c size = bytestream2_get_byte(&gb); size 910 libavcodec/wavpack.c if (avctx->channels != size) size 912 libavcodec/wavpack.c " instead of %i.\n", size, avctx->channels); size 918 libavcodec/wavpack.c size); size 924 libavcodec/wavpack.c if (size != 3) { size 931 libavcodec/wavpack.c bytestream2_skip(&gb, size); size 966 libavcodec/wavpack.c const int size = get_bits_left(&s->gb_extra_bits); size 968 libavcodec/wavpack.c if (size < wanted) { size 1044 libavcodec/wavpack.c int buf_size = avpkt->size; size 1048 libavcodec/wavpack.c if (avpkt->size <= WV_HEADER_SIZE) size 1102 libavcodec/wavpack.c return avpkt->size; size 1023 libavcodec/wavpackenc.c uint32_t best_size = UINT32_MAX, size; size 1093 libavcodec/wavpackenc.c size = log2mono(s->temp_buffer[j&1][0], nb_samples, log_limit); size 1094 libavcodec/wavpackenc.c if (size != UINT32_MAX || !nterms) size 1099 libavcodec/wavpackenc.c if (size < best_size) { size 1104 libavcodec/wavpackenc.c best_size = size; size 1815 libavcodec/wavpackenc.c uint32_t best_size = UINT32_MAX, size; size 1917 libavcodec/wavpackenc.c size = log2stereo(s->temp_buffer[j&1][0], s->temp_buffer[j&1][1], size 1919 libavcodec/wavpackenc.c if (size != UINT32_MAX || !nterms) size 1924 libavcodec/wavpackenc.c if (size < best_size) { size 1930 libavcodec/wavpackenc.c best_size = size; size 2471 libavcodec/wavpackenc.c static void put_metadata_block(PutByteContext *pb, int flags, int size) size 2473 libavcodec/wavpackenc.c if (size & 1) size 2477 libavcodec/wavpackenc.c bytestream2_put_byte(pb, (size + 1) >> 1); size 2919 libavcodec/wavpackenc.c avpkt->size = buf - avpkt->data; size 1072 libavcodec/webp.c const int size = pal->frame->width * 4; size 1073 libavcodec/webp.c av_assert0(size <= 1024U); size 1074 libavcodec/webp.c memcpy(palette, GET_PIXEL(pal->frame, 0, 0), size); // copy palette size 1076 libavcodec/webp.c memset(palette + size, 0, 256 * 4 - size); size 1342 libavcodec/webp.c pkt.size = data_size; size 1370 libavcodec/webp.c bytestream2_init(&gb, avpkt->data, avpkt->size); size 1478 libavcodec/webp.c avpkt->size - exif_offset); size 1521 libavcodec/webp.c return avpkt->size; size 82 libavcodec/webvttdec.c if (ptr && avpkt->size > 0 && !webvtt_event_to_ass(&buf, ptr)) { size 92 libavcodec/webvttdec.c return avpkt->size; size 811 libavcodec/wmadec.c int buf_size = avpkt->size; size 385 libavcodec/wmaenc.c error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, size 392 libavcodec/wmaenc.c error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++); size 395 libavcodec/wmaenc.c avpkt->size = 0; size 410 libavcodec/wmaenc.c avpkt->size = avctx->block_align; size 1160 libavcodec/wmalosslessdec.c int buf_size = avpkt->size; size 1231 libavcodec/wmalosslessdec.c s->buf_bit_size = (avpkt->size - s->next_packet_start) << 3; size 1532 libavcodec/wmaprodec.c int buf_size = avpkt->size; size 1603 libavcodec/wmaprodec.c s->buf_bit_size = (avpkt->size - s->next_packet_start) << 3; size 476 libavcodec/wmavoice.c int size, float alpha, float *gain_mem) size 482 libavcodec/wmavoice.c for (i = 0; i < size; i++) { size 488 libavcodec/wmavoice.c for (i = 0; i < size; i++) { size 515 libavcodec/wmavoice.c const float *in, float *out, int size) size 525 libavcodec/wmavoice.c dot = avpriv_scalarproduct_float_c(in, ptr, size); size 534 libavcodec/wmavoice.c dot = avpriv_scalarproduct_float_c(best_hist_ptr, best_hist_ptr, size); size 544 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 691 libavcodec/wmavoice.c float *synth_pf, int size, size 711 libavcodec/wmavoice.c remainder = FFMIN(127 - size, size - 1); size 716 libavcodec/wmavoice.c memset(&synth_pf[size], 0, sizeof(synth_pf[0]) * (128 - size)); size 731 libavcodec/wmavoice.c lim = FFMIN(s->denoise_filter_cache_size, size); size 735 libavcodec/wmavoice.c memmove(s->denoise_filter_cache, &s->denoise_filter_cache[size], size 743 libavcodec/wmavoice.c s->denoise_filter_cache[n] += synth_pf[size + n]; size 745 libavcodec/wmavoice.c memcpy(&s->denoise_filter_cache[lim], &synth_pf[size + lim], size 773 libavcodec/wmavoice.c float *samples, int size, size 781 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE / 2); size 784 libavcodec/wmavoice.c ff_celp_lp_zero_synthesis_filterf(zero_exc_pf, lpcs, synth, size, s->lsps); size 787 libavcodec/wmavoice.c !kalman_smoothen(s, pitch, zero_exc_pf, synth_filter_in_buf, size)) size 792 libavcodec/wmavoice.c synth_filter_in, size, s->lsps); size 793 libavcodec/wmavoice.c memcpy(&synth_pf[-s->lsps], &synth_pf[size - s->lsps], size 796 libavcodec/wmavoice.c wiener_denoise(s, fcb_type, synth_pf, size, lpcs); size 798 libavcodec/wmavoice.c adaptive_gain_control(samples, synth_pf, synth, size, 0.99, size 808 libavcodec/wmavoice.c 0.93980580475, s->dcf_mem, size); size 1243 libavcodec/wmavoice.c int block_idx, int size, size 1250 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE); size 1254 libavcodec/wmavoice.c r_idx = pRNG(s->frame_cntr, block_idx, size); size 1265 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 1274 libavcodec/wmavoice.c int block_idx, int size, size 1286 libavcodec/wmavoice.c av_assert0(size <= MAX_FRAMESIZE / 2); size 1287 libavcodec/wmavoice.c memset(pulses, 0, sizeof(*pulses) * size); size 1302 libavcodec/wmavoice.c int r_idx = pRNG(s->frame_cntr, block_idx, size); size 1304 libavcodec/wmavoice.c for (n = 0; n < size; n++) size 1331 libavcodec/wmavoice.c ff_set_fixed_vector(pulses, &fcb, 1.0, size); size 1353 libavcodec/wmavoice.c for (n = 0; n < size; n += len) { size 1355 libavcodec/wmavoice.c int abs_idx = block_idx * size + n; size 1367 libavcodec/wmavoice.c 1, size - n); size 1369 libavcodec/wmavoice.c len = size; size 1381 libavcodec/wmavoice.c idx, 8, size); size 1384 libavcodec/wmavoice.c sizeof(float) * size); size 1389 libavcodec/wmavoice.c acb_gain, fcb_gain, size); size 1409 libavcodec/wmavoice.c int block_idx, int size, size 1421 libavcodec/wmavoice.c synth_block_hardcoded(s, gb, block_idx, size, frame_desc, excitation); size 1423 libavcodec/wmavoice.c synth_block_fcb_acb(s, gb, block_idx, size, block_pitch_sh2, size 1433 libavcodec/wmavoice.c ff_celp_lp_synthesis_filterf(synth, lpcs, excitation, size, s->lsps); size 1918 libavcodec/wmavoice.c const uint8_t *data, int size, size 1931 libavcodec/wmavoice.c avpriv_copy_bits(pb, data + size - rmn_bytes, size 1951 libavcodec/wmavoice.c int size, res, pos; size 1958 libavcodec/wmavoice.c for (size = avpkt->size; size > ctx->block_align; size -= ctx->block_align); size 1959 libavcodec/wmavoice.c if (!size) { size 1963 libavcodec/wmavoice.c init_get_bits(&s->gb, avpkt->data, size << 3); size 1968 libavcodec/wmavoice.c if (size == ctx->block_align) { // new packet header size 1978 libavcodec/wmavoice.c copy_bits(&s->pb, avpkt->data, size, gb, s->spillover_nbits); size 2007 libavcodec/wmavoice.c init_get_bits(gb, avpkt->data, size << 3); size 2008 libavcodec/wmavoice.c skip_bits_long(gb, (size << 3) - pos); size 2013 libavcodec/wmavoice.c copy_bits(&s->pb, avpkt->data, size, gb, s->sframe_cache_size); size 2018 libavcodec/wmavoice.c return size; size 64 libavcodec/wnv1.c int buf_size = avpkt->size; 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 453 libavcodec/x86/cavsdsp.c #define PUT_OP(a,b,temp, size) "mov" #size " " #a ", " #b " \n\t" size 454 libavcodec/x86/cavsdsp.c #define AVG_3DNOW_OP(a,b,temp, size) \ size 455 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ size 457 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" size 458 libavcodec/x86/cavsdsp.c #define AVG_MMXEXT_OP(a, b, temp, size) \ size 459 libavcodec/x86/cavsdsp.c "mov" #size " " #b ", " #temp " \n\t"\ size 461 libavcodec/x86/cavsdsp.c "mov" #size " " #a ", " #b " \n\t" size 68 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 69 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 71 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 98 libavcodec/x86/h264_qpel.c static av_always_inline void ff_ ## OPNAME ## h264_qpel8or16_hv1_lowpass_ ## MMX(int16_t *tmp, const uint8_t *src, int tmpStride, int srcStride, int size){\ size 99 libavcodec/x86/h264_qpel.c int w = (size+8)>>2;\ size 102 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv1_lowpass_op_mmxext(src, tmp, srcStride, size);\ size 107 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 108 libavcodec/x86/h264_qpel.c int w = size>>4;\ size 110 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_op_mmxext(dst, tmp, dstStride, 0, size);\ size 143 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 144 libavcodec/x86/h264_qpel.c ff_put_h264_qpel8or16_hv1_lowpass_ ## MMX(tmp, src, tmpStride, srcStride, size);\ size 145 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_ ## MMX(dst, tmp, dstStride, tmpStride, size);\ size 205 libavcodec/x86/h264_qpel.c int size) size 207 libavcodec/x86/h264_qpel.c int w = (size+8)>>3; size 210 libavcodec/x86/h264_qpel.c ff_put_h264_qpel8or16_hv1_lowpass_op_sse2(src, tmp, srcStride, size); size 217 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 218 libavcodec/x86/h264_qpel.c put_h264_qpel8or16_hv1_lowpass_sse2(tmp, src, tmpStride, srcStride, size);\ size 219 libavcodec/x86/h264_qpel.c ff_ ## OPNAME ## h264_qpel8or16_hv2_lowpass_ ## MMX(dst, tmp, dstStride, tmpStride, size);\ size 32 libavcodec/x86/hevcdsp.h #define idct_dc_proto(size, bitd, opt) \ size 33 libavcodec/x86/hevcdsp.h void ff_hevc_idct##size##_dc_add_##bitd##_##opt(uint8_t *dst, int16_t *coeffs, ptrdiff_t stride) 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 190 libavcodec/x86/vp9dsp_init.c #define itxfm_func(typea, typeb, size, opt) \ size 191 libavcodec/x86/vp9dsp_init.c void ff_vp9_##typea##_##typeb##_##size##x##size##_add_##opt(uint8_t *dst, ptrdiff_t stride, \ size 193 libavcodec/x86/vp9dsp_init.c #define itxfm_funcs(size, opt) \ size 194 libavcodec/x86/vp9dsp_init.c itxfm_func(idct, idct, size, opt); \ size 195 libavcodec/x86/vp9dsp_init.c itxfm_func(iadst, idct, size, opt); \ size 196 libavcodec/x86/vp9dsp_init.c itxfm_func(idct, iadst, size, opt); \ size 197 libavcodec/x86/vp9dsp_init.c itxfm_func(iadst, iadst, size, opt) size 242 libavcodec/x86/vp9dsp_init.c #define ipred_func(size, type, opt) \ size 243 libavcodec/x86/vp9dsp_init.c void ff_vp9_ipred_##type##_##size##x##size##_##opt(uint8_t *dst, ptrdiff_t stride, \ size 248 libavcodec/x86/vp9dsp_init.c #define ipred_dc_funcs(size, opt) \ size 249 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc, opt); \ size 250 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc_left, opt); \ size 251 libavcodec/x86/vp9dsp_init.c ipred_func(size, dc_top, opt) size 256 libavcodec/x86/vp9dsp_init.c #define ipred_dir_tm_funcs(size, opt) \ size 257 libavcodec/x86/vp9dsp_init.c ipred_func(size, tm, opt); \ size 258 libavcodec/x86/vp9dsp_init.c ipred_func(size, dl, opt); \ size 259 libavcodec/x86/vp9dsp_init.c ipred_func(size, dr, opt); \ size 260 libavcodec/x86/vp9dsp_init.c ipred_func(size, hd, opt); \ size 261 libavcodec/x86/vp9dsp_init.c ipred_func(size, hu, opt); \ size 262 libavcodec/x86/vp9dsp_init.c ipred_func(size, vl, opt); \ size 263 libavcodec/x86/vp9dsp_init.c ipred_func(size, vr, opt) size 273 libavcodec/x86/vp9dsp_init.c #define ipred_dir_tm_h_funcs(size, opt) \ size 274 libavcodec/x86/vp9dsp_init.c ipred_dir_tm_funcs(size, opt); \ size 275 libavcodec/x86/vp9dsp_init.c ipred_func(size, h, opt) size 283 libavcodec/x86/vp9dsp_init.c #define ipred_all_funcs(size, opt) \ size 284 libavcodec/x86/vp9dsp_init.c ipred_dc_funcs(size, opt); \ size 285 libavcodec/x86/vp9dsp_init.c ipred_dir_tm_h_funcs(size, opt) size 58 libavcodec/xan.c int size; size 158 libavcodec/xan.c int size; size 170 libavcodec/xan.c size = opcode & 3; size 175 libavcodec/xan.c size = bytestream2_peek_byte(&ctx) >> 6; size 180 libavcodec/xan.c size = opcode & 3; size 186 libavcodec/xan.c if (dest_end - dest < size + size2 || size 187 libavcodec/xan.c dest + size - dest_org < back || size 188 libavcodec/xan.c bytestream2_get_bytes_left(&ctx) < size) size 190 libavcodec/xan.c bytestream2_get_buffer(&ctx, dest, size); size 191 libavcodec/xan.c dest += size; size 196 libavcodec/xan.c size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4; size 198 libavcodec/xan.c if (dest_end - dest < size || bytestream2_get_bytes_left(&ctx) < size) size 200 libavcodec/xan.c bytestream2_get_buffer(&ctx, dest, size); size 201 libavcodec/xan.c dest += size; size 304 libavcodec/xan.c int size = 0; size 321 libavcodec/xan.c if (s->size < 8) size 329 libavcodec/xan.c if (huffman_offset >= s->size || size 330 libavcodec/xan.c size_offset >= s->size || size 331 libavcodec/xan.c vector_offset >= s->size || size 332 libavcodec/xan.c imagedata_offset >= s->size) size 336 libavcodec/xan.c bytestream2_init(&size_segment, s->buf + size_offset, s->size - size_offset); size 337 libavcodec/xan.c bytestream2_init(&vector_segment, s->buf + vector_offset, s->size - vector_offset); size 341 libavcodec/xan.c huffman_segment, s->size - huffman_offset)) < 0) size 347 libavcodec/xan.c &imagedata_segment[1], s->size - imagedata_offset - 1); size 350 libavcodec/xan.c imagedata_size = s->size - imagedata_offset - 1; size 359 libavcodec/xan.c size = 0; size 375 libavcodec/xan.c size = opcode; size 385 libavcodec/xan.c size += (opcode - 10); size 394 libavcodec/xan.c size = bytestream2_get_byte(&size_segment); size 403 libavcodec/xan.c size = bytestream2_get_be16(&size_segment); size 412 libavcodec/xan.c size = bytestream2_get_be24(&size_segment); size 416 libavcodec/xan.c if (size > total_pixels) size 423 libavcodec/xan.c xan_wc3_copy_pixel_run(s, frame, x, y, size, 0, 0); size 426 libavcodec/xan.c if (imagedata_size < size) size 428 libavcodec/xan.c xan_wc3_output_pixel_run(s, frame, imagedata_buffer, x, y, size); size 429 libavcodec/xan.c imagedata_buffer += size; size 430 libavcodec/xan.c imagedata_size -= size; size 444 libavcodec/xan.c xan_wc3_copy_pixel_run(s, frame, x, y, size, motion_x, motion_y); size 450 libavcodec/xan.c total_pixels -= size; size 451 libavcodec/xan.c y += (x + size) / width; size 452 libavcodec/xan.c x = (x + size) % width; size 546 libavcodec/xan.c int ret, buf_size = avpkt->size; size 555 libavcodec/xan.c int size; size 558 libavcodec/xan.c size = bytestream2_get_be32(&ctx); size 559 libavcodec/xan.c if (size < 0) { size 560 libavcodec/xan.c av_log(avctx, AV_LOG_ERROR, "Invalid tag size %d\n", size); size 563 libavcodec/xan.c size = FFMIN(size, bytestream2_get_bytes_left(&ctx)); size 566 libavcodec/xan.c if (size < PALETTE_SIZE) size 591 libavcodec/xan.c if (size < 4) size 602 libavcodec/xan.c bytestream2_skip(&ctx, size); size 623 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) size 52 libavcodec/xbmenc.c pkt->size = buf - pkt->data; size 126 libavcodec/xfacedec.c for (i = 0, k = 0; avpkt->data[i] && i < avpkt->size; i++) { size 176 libavcodec/xfacedec.c return avpkt->size; size 44 libavcodec/xl.c int buf_size = 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 135 libavcodec/xxan.c int size; size 148 libavcodec/xxan.c size = opcode & 3; size 152 libavcodec/xxan.c size = bytestream2_peek_byte(&s->gb) >> 6; size 156 libavcodec/xxan.c size = opcode & 3; size 159 libavcodec/xxan.c if (size + size2 > dest_end - dest) size 162 libavcodec/xxan.c if (dest + size + size2 > dest_end || size 163 libavcodec/xxan.c dest - orig_dest + size < back) size 165 libavcodec/xxan.c bytestream2_get_buffer(&s->gb, dest, size); size 166 libavcodec/xxan.c dest += size; size 172 libavcodec/xxan.c size = finish ? opcode & 3 : ((opcode & 0x1f) << 2) + 4; size 173 libavcodec/xxan.c if (dest_end - dest < size) size 175 libavcodec/xxan.c bytestream2_get_buffer(&s->gb, dest, size); size 176 libavcodec/xxan.c dest += size; size 417 libavcodec/xxan.c bytestream2_init(&s->gb, avpkt->data, avpkt->size); size 438 libavcodec/xxan.c return avpkt->size; size 46 libavcodec/y41pdec.c if (avpkt->size < 1.5 * avctx->height * avctx->width) { size 81 libavcodec/y41pdec.c return avpkt->size; size 200 libavcodec/yop.c if (avpkt->size < 4 + 3 * s->num_pal_colors) { size 214 libavcodec/yop.c s->src_end = avpkt->data + avpkt->size; size 237 libavcodec/yop.c if (s->srcptr - avpkt->data >= avpkt->size) { size 263 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 406 libavcodec/zmbv.c int buf_size = avpkt->size; size 333 libavdevice/alsa-audio-common.c int size = s->reorder_buf_size; size 336 libavdevice/alsa-audio-common.c av_assert0(size != 0); size 337 libavdevice/alsa-audio-common.c while (size < min_size) size 338 libavdevice/alsa-audio-common.c size *= 2; size 339 libavdevice/alsa-audio-common.c r = av_realloc_array(s->reorder_buf, size, s->frame_size); size 343 libavdevice/alsa-audio-common.c s->reorder_buf_size = size; size 131 libavdevice/alsa-audio-dec.c pkt->size = res * s->frame_size; size 84 libavdevice/alsa-audio-enc.c int size = pkt->size; size 87 libavdevice/alsa-audio-enc.c size /= s->frame_size; size 90 libavdevice/alsa-audio-enc.c s->timestamp += pkt->duration ? pkt->duration : size; size 93 libavdevice/alsa-audio-enc.c if (size > s->reorder_buf_size) size 94 libavdevice/alsa-audio-enc.c if (ff_alsa_extend_reorder_buf(s, size)) size 96 libavdevice/alsa-audio-enc.c s->reorder_func(buf, s->reorder_buf, size); size 99 libavdevice/alsa-audio-enc.c while ((res = snd_pcm_writei(s->h, buf, size)) < 0) { size 128 libavdevice/alsa-audio-enc.c pkt.size = (*frame)->nb_samples * s->frame_size; size 100 libavdevice/alsa-audio.h int ff_alsa_extend_reorder_buf(AlsaData *s, int size); size 30 libavdevice/decklink_common.h unsigned long long size; size 57 libavdevice/decklink_dec.cpp q->size = 0; size 70 libavdevice/decklink_dec.cpp unsigned long long size; size 72 libavdevice/decklink_dec.cpp size = q->size; size 74 libavdevice/decklink_dec.cpp return size; size 108 libavdevice/decklink_dec.cpp q->size += pkt1->pkt.size + sizeof(*pkt1); size 131 libavdevice/decklink_dec.cpp q->size -= pkt1->pkt.size + sizeof(*pkt1); size 277 libavdevice/decklink_dec.cpp pkt.size = videoFrame->GetRowBytes() * size 295 libavdevice/decklink_dec.cpp pkt.size = audioFrame->GetSampleFrameCount() * ctx->audio_st->codec->channels * (16 / 8); size 295 libavdevice/decklink_enc.cpp int sample_count = pkt->size / (ctx->channels << 1); size 324 libavdevice/dshow.c int i, n, size, r; size 328 libavdevice/dshow.c if (IAMStreamConfig_GetNumberOfCapabilities(config, &n, &size) != S_OK) size 331 libavdevice/dshow.c caps = av_malloc(size); size 1156 libavdevice/dshow.c ctx->curbufsize[pkt->stream_index] -= pkt->size; size 1171 libavdevice/dshow.c return ctx->eof ? AVERROR(EIO) : pkt->size; size 123 libavdevice/dv1394.c int size; size 125 libavdevice/dv1394.c size = avpriv_dv_get_packet(dv->dv_demux, pkt); size 126 libavdevice/dv1394.c if (size > 0) size 127 libavdevice/dv1394.c return size; size 187 libavdevice/dv1394.c size = avpriv_dv_produce_packet(dv->dv_demux, pkt, size 193 libavdevice/dv1394.c return size; size 189 libavdevice/iec61883.c int size; size 191 libavdevice/iec61883.c size = avpriv_dv_get_packet(dv->dv_demux, pkt); size 192 libavdevice/iec61883.c if (size > 0) size 193 libavdevice/iec61883.c return size; size 199 libavdevice/iec61883.c size = avpriv_dv_produce_packet(dv->dv_demux, pkt, size 206 libavdevice/iec61883.c if (size > 0) size 207 libavdevice/iec61883.c return size; size 215 libavdevice/iec61883.c int size; size 219 libavdevice/iec61883.c size = avpriv_mpegts_parse_packet(dv->mpeg_demux, pkt, packet->buf, size 226 libavdevice/iec61883.c if (size > 0) size 227 libavdevice/iec61883.c return size; size 410 libavdevice/iec61883.c int size; size 418 libavdevice/iec61883.c while ((size = dv->parse_queue(dv, pkt)) == -1) size 426 libavdevice/iec61883.c while ((size = dv->parse_queue(dv, pkt)) == -1) { size 433 libavdevice/iec61883.c return size; size 368 libavdevice/lavfi.c if ((ret = av_new_packet(&lavfi->subcc_packet, sd->size)) < 0) size 370 libavdevice/lavfi.c memcpy(lavfi->subcc_packet.data, sd->data, sd->size); size 386 libavdevice/lavfi.c int size = 0; size 388 libavdevice/lavfi.c if (lavfi->subcc_packet.size) { size 391 libavdevice/lavfi.c lavfi->subcc_packet.size = 0; size 393 libavdevice/lavfi.c return pkt->size; size 432 libavdevice/lavfi.c size = avpicture_get_size(frame->format, frame->width, frame->height); size 433 libavdevice/lavfi.c if ((ret = av_new_packet(pkt, size)) < 0) size 440 libavdevice/lavfi.c pkt->data, size); size 442 libavdevice/lavfi.c size = frame->nb_samples * av_get_bytes_per_sample(frame->format) * size 444 libavdevice/lavfi.c if ((ret = av_new_packet(pkt, size)) < 0) size 446 libavdevice/lavfi.c memcpy(pkt->data, frame->data[0], size); size 481 libavdevice/lavfi.c pkt->size = size; size 483 libavdevice/lavfi.c return size; size 180 libavdevice/libdc1394.c dc1394->packet.size = avpicture_get_size(fmt->pix_fmt, fmt->width, fmt->height); size 186 libavdevice/libdc1394.c vst->codec->bit_rate = av_rescale(dc1394->packet.size * 8, fps->frame_rate, 1000); size 264 libavdevice/libdc1394.c res = dc1394->packet.size; size 203 libavdevice/openal-dec.c return pkt->size; size 101 libavdevice/opengl_enc.c typedef void (APIENTRY *FF_PFNGLBUFFERDATAPROC) (GLenum target, ptrdiff_t size, const GLvoid *data, GLenum usage); size 105 libavdevice/opengl_enc.c typedef void (APIENTRY *FF_PFNGLVERTEXATTRIBPOINTERPROC) (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, uintptr_t pointer); size 85 libavdevice/oss_audio_dec.c ret = read(s->fd, pkt->data, pkt->size); size 88 libavdevice/oss_audio_dec.c pkt->size = 0; size 92 libavdevice/oss_audio_dec.c pkt->size = ret; size 66 libavdevice/oss_audio_enc.c int size= pkt->size; size 69 libavdevice/oss_audio_enc.c while (size > 0) { size 70 libavdevice/oss_audio_enc.c len = FFMIN(OSS_AUDIO_BLOCK_SIZE - s->buffer_ptr, size); size 84 libavdevice/oss_audio_enc.c size -= len; size 641 libavdevice/pulse_audio_enc.c int64_t samples = pkt->size / (av_get_bytes_per_sample(codec_ctx->sample_fmt) * codec_ctx->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) * av_frame_get_channels(*frame); size 66 libavdevice/sndio_dec.c ret = sio_read(s->hdl, pkt->data, pkt->size); size 72 libavdevice/sndio_dec.c pkt->size = ret; size 47 libavdevice/sndio_enc.c int size = pkt->size; size 50 libavdevice/sndio_enc.c while (size > 0) { size 51 libavdevice/sndio_enc.c len = FFMIN(s->buffer_size - s->buffer_offset, size); size 54 libavdevice/sndio_enc.c size -= len; size 195 libavdevice/v4l.c s->video_buf = mmap(0, s->gb_buffers.size, PROT_READ|PROT_WRITE, MAP_SHARED, video_fd, 0); size 197 libavdevice/v4l.c s->video_buf = mmap(0, s->gb_buffers.size, PROT_READ|PROT_WRITE, MAP_PRIVATE, video_fd, 0); size 316 libavdevice/v4l.c if (read(s->fd, pkt->data, pkt->size) != pkt->size) size 327 libavdevice/v4l.c munmap(s->video_buf, s->gb_buffers.size); size 506 libavdevice/v4l2.c pkt->size = 0; size 557 libavdevice/v4l2.c pkt->size = buf.bytesused; size 577 libavdevice/v4l2.c pkt->buf = av_buffer_create(pkt->data, pkt->size, mmap_release_buffer, size 993 libavdevice/v4l2.c return pkt->size; size 89 libavdevice/v4l2enc.c if (write(s->fd, pkt->data, pkt->size) == -1) size 453 libavdevice/vfwcap.c ctx->curbufsize -= pkt->size; size 455 libavdevice/vfwcap.c return pkt->size; size 547 libavdevice/x11grab.c pkt->size = s->frame_size; size 221 libavdevice/xcbgrab.c int size = c->frame_size + FF_INPUT_BUFFER_PADDING_SIZE; size 222 libavdevice/xcbgrab.c int id = shmget(IPC_PRIVATE, size, IPC_CREAT | 0777); size 230 libavdevice/xcbgrab.c size, errbuf); size 266 libavdevice/xcbgrab.c pkt->buf = av_buffer_create(data, size, dealloc_shm, NULL, 0); size 273 libavdevice/xcbgrab.c pkt->size = c->frame_size; size 63 libavfilter/af_ashowinfo.c if (sd->size < sizeof(enum AVMatrixEncoding)) { size 86 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*di)) { size 133 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*rg)) { size 150 libavfilter/af_ashowinfo.c if (sd->size < sizeof(*ast)) { size 171 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 178 libavfilter/af_atempo.c atempo->size = 0; size 464 libavfilter/af_atempo.c atempo->size = FFMIN(atempo->size + na, atempo->ring); size 467 libavfilter/af_atempo.c atempo->size < atempo->ring ? size 468 libavfilter/af_atempo.c atempo->tail - atempo->size : size 479 libavfilter/af_atempo.c atempo->size = FFMIN(atempo->size + nb, atempo->ring); size 482 libavfilter/af_atempo.c atempo->size < atempo->ring ? size 483 libavfilter/af_atempo.c atempo->tail - atempo->size : size 534 libavfilter/af_atempo.c start = atempo->position[0] - atempo->size; size 505 libavfilter/buffersrc.c int size = av_fifo_size(c->fifo); size 506 libavfilter/buffersrc.c if (!size && c->eof) size 508 libavfilter/buffersrc.c return size/sizeof(AVFrame*); size 456 libavfilter/src_movie.c if (!pkt->size) { size 490 libavfilter/src_movie.c pkt->size = 0; /* ready for next run */ size 517 libavfilter/src_movie.c movie->pkt.size = 0; size 522 libavfilter/src_movie.c ret = pkt->size; size 525 libavfilter/src_movie.c pkt->size -= ret; size 526 libavfilter/src_movie.c if (pkt->size <= 0) { size 528 libavfilter/src_movie.c pkt->size = 0; /* ready for next run */ size 203 libavfilter/vf_codecview.c for (i = 0; i < sd->size / sizeof(*mvs); i++) { size 92 libavfilter/vf_colorchannelmixer.c int i, j, size, *buffer; size 101 libavfilter/vf_colorchannelmixer.c size = 65536; size 104 libavfilter/vf_colorchannelmixer.c size = 256; size 107 libavfilter/vf_colorchannelmixer.c s->buffer = buffer = av_malloc(16 * size * sizeof(*s->buffer)); size 112 libavfilter/vf_colorchannelmixer.c for (j = 0; j < 4; j++, buffer += size) size 115 libavfilter/vf_colorchannelmixer.c for (i = 0; i < size; i++) { size 322 libavfilter/vf_curves.c size_t size; size 329 libavfilter/vf_curves.c ret = av_file_map(fname, &buf, &size, 0, NULL); size 334 libavfilter/vf_curves.c if (size < 2) { \ size 340 libavfilter/vf_curves.c size -= 2; \ size 370 libavfilter/vf_curves.c av_file_unmap(buf, size); size 385 libavfilter/vf_drawtext.c double size; size 424 libavfilter/vf_drawtext.c FcPatternGetDouble (best, FC_SIZE, 0, &size ) != FcResultMatch) { size 437 libavfilter/vf_drawtext.c s->fontsize = size + 0.5; size 451 libavfilter/vf_hqx.c #define HQX_FUNC(size) \ size 452 libavfilter/vf_hqx.c static int hq##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ size 454 libavfilter/vf_hqx.c hqx_filter(arg, jobnr, nb_jobs, size); \ size 141 libavfilter/vf_libopencv.c size_t size; size 144 libavfilter/vf_libopencv.c if ((ret = av_file_map(filename, &buf, &size, 0, log_ctx)) < 0) size 149 libavfilter/vf_libopencv.c for (i = 0; i < size; i++) { size 174 libavfilter/vf_libopencv.c pend = buf + size-1; size 184 libavfilter/vf_libopencv.c av_file_unmap(buf, size); size 271 libavfilter/vf_lut3d.c int i, j, k, size; size 273 libavfilter/vf_lut3d.c lut3d->lutsize = size = 33; size 277 libavfilter/vf_lut3d.c size = strtol(line + 10, NULL, 0); size 278 libavfilter/vf_lut3d.c if (size < 2 || size > MAX_LEVEL) { size 282 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 285 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 286 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 287 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 310 libavfilter/vf_lut3d.c const int size = strtol(line + 12, NULL, 0); size 312 libavfilter/vf_lut3d.c if (size < 2 || size > MAX_LEVEL) { size 316 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 317 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 318 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 319 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 357 libavfilter/vf_lut3d.c const int size = 17; size 360 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 362 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 363 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 364 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 385 libavfilter/vf_lut3d.c int i, j, k, size, in = -1, out = -1; size 422 libavfilter/vf_lut3d.c for (size = 1; size*size*size < in; size++); size 423 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 426 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 427 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 428 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 444 libavfilter/vf_lut3d.c static void set_identity_matrix(LUT3DContext *lut3d, int size) size 447 libavfilter/vf_lut3d.c const float c = 1. / (size - 1); size 449 libavfilter/vf_lut3d.c lut3d->lutsize = size; size 450 libavfilter/vf_lut3d.c for (k = 0; k < size; k++) { size 451 libavfilter/vf_lut3d.c for (j = 0; j < size; j++) { size 452 libavfilter/vf_lut3d.c for (i = 0; i < size; i++) { size 703 libavfilter/vf_lut3d.c int size, level, w, h; size 729 libavfilter/vf_lut3d.c size = level*level*level; size 730 libavfilter/vf_lut3d.c if (size != w) { size 734 libavfilter/vf_lut3d.c av_assert0(w == h && w == size); size 259 libavfilter/vf_pad.c (buf->data + buf->size) - end < req_end) size 44 libavfilter/vf_showinfo.c if (sd->size < sizeof(*stereo)) { size 141 libavfilter/vf_showinfo.c av_log(ctx, AV_LOG_INFO, "A/53 closed captions (%d bytes)", sd->size); size 155 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 65 libavfilter/vf_showpalette.c outlink->w = outlink->h = 16 * s->size; size 69 libavfilter/vf_showpalette.c static int disp_palette(AVFrame *out, const AVFrame *in, int size) size 78 libavfilter/vf_showpalette.c for (j = 0; j < size; j++) size 79 libavfilter/vf_showpalette.c for (i = 0; i < size; i++) size 80 libavfilter/vf_showpalette.c dst[(y*dst_linesize + x) * size + j*dst_linesize + i] = pal[y*16 + x]; size 98 libavfilter/vf_showpalette.c ret = disp_palette(out, in, s->size); size 425 libavfilter/vf_subtitles.c pkt.size = 0; size 245 libavfilter/vf_uspp.c pkt.size = p->outbuf_size; size 316 libavfilter/vf_xbr.c #define XBR_FUNC(size) \ size 317 libavfilter/vf_xbr.c static int xbr##size##x(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) \ size 319 libavfilter/vf_xbr.c xbr_filter(arg, jobnr, nb_jobs, size); \ size 60 libavformat/4xm.c size = avio_rl32(pb); \ size 93 libavformat/4xm.c FourxmDemuxContext *fourxm, uint8_t *buf, int size, size 98 libavformat/4xm.c if (size != vtrk_SIZE || left < size + 8) { size 127 libavformat/4xm.c FourxmDemuxContext *fourxm, uint8_t *buf, int size, size 133 libavformat/4xm.c if (size != strk_SIZE || left < size + 8) size 201 libavformat/4xm.c unsigned int size; size 216 libavformat/4xm.c header_size = size - 4; size 232 libavformat/4xm.c size = AV_RL32(&header[i + 4]); size 233 libavformat/4xm.c if (size > header_size - i - 8 && (fourcc_tag == vtrk_TAG || fourcc_tag == strk_TAG)) { size 234 libavformat/4xm.c av_log(s, AV_LOG_ERROR, "chunk larger than array %d>%d\n", size, header_size - i - 8); size 246 libavformat/4xm.c if ((ret = parse_vtrk(s, fourxm, header + i, size, size 250 libavformat/4xm.c i += 8 + size; size 252 libavformat/4xm.c if ((ret = parse_strk(s, fourxm, header + i, size, size 256 libavformat/4xm.c i += 8 + size; size 284 libavformat/4xm.c unsigned int size; size 295 libavformat/4xm.c size = AV_RL32(&header[4]); size 315 libavformat/4xm.c if (size + 8 < size || av_new_packet(pkt, size + 8)) size 321 libavformat/4xm.c ret = avio_read(s->pb, &pkt->data[8], size); size 334 libavformat/4xm.c size -= 8; size 338 libavformat/4xm.c ret = av_get_packet(s->pb, pkt, size); size 347 libavformat/4xm.c audio_frame_count = size; size 358 libavformat/4xm.c avio_skip(pb, size); size 363 libavformat/4xm.c avio_skip(pb, 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(pb, st->codec, 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 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_config(&m4ac, buf, size * 8, 1); size 112 libavformat/adtsenc.c uint8_t *buf, int size, int pce_size) size 116 libavformat/adtsenc.c unsigned full_frame_size = (unsigned)ADTS_HEADER_SIZE + size + pce_size; size 155 libavformat/adtsenc.c if (!pkt->size) size 158 libavformat/adtsenc.c int err = adts_write_frame_header(adts, buf, pkt->size, size 168 libavformat/adtsenc.c avio_write(pb, pkt->data, pkt->size); size 41 libavformat/adxdec.c int ret, size; size 48 libavformat/adxdec.c size = BLOCK_SIZE * avctx->channels; size 53 libavformat/adxdec.c ret = av_get_packet(s->pb, pkt, size); size 54 libavformat/adxdec.c if (ret != size) { size 62 libavformat/adxdec.c pkt->size = size; size 64 libavformat/adxdec.c pkt->pts = (pkt->pos - c->header_size) / size; size 59 libavformat/afc.c int64_t size; size 62 libavformat/afc.c size = FFMIN(c->data_end - avio_tell(s->pb), 18 * 128); size 63 libavformat/afc.c if (size <= 0) size 66 libavformat/afc.c ret = av_get_packet(s->pb, pkt, size); size 59 libavformat/aiffdec.c int size; size 65 libavformat/aiffdec.c size = avio_rb32(pb); size 67 libavformat/aiffdec.c if (size < 0) size 68 libavformat/aiffdec.c size = 0x7fffffff; size 70 libavformat/aiffdec.c return size; size 74 libavformat/aiffdec.c static void get_meta(AVFormatContext *s, const char *key, int size) size 76 libavformat/aiffdec.c uint8_t *str = av_malloc(size+1); size 79 libavformat/aiffdec.c int res = avio_read(s->pb, str, size); size 84 libavformat/aiffdec.c size += (size&1)-res; size 88 libavformat/aiffdec.c size+= size&1; size 90 libavformat/aiffdec.c avio_skip(s->pb, size); size 94 libavformat/aiffdec.c static unsigned int get_aiff_header(AVFormatContext *s, int size, size 105 libavformat/aiffdec.c if (size & 1) size 106 libavformat/aiffdec.c size++; size 116 libavformat/aiffdec.c size -= 18; size 119 libavformat/aiffdec.c if (size < 4) { size 124 libavformat/aiffdec.c size -= 4; size 175 libavformat/aiffdec.c if (size) size 176 libavformat/aiffdec.c avio_skip(pb, size); size 196 libavformat/aiffdec.c int ret, size, filesize; size 225 libavformat/aiffdec.c size = get_tag(pb, &tag); size 226 libavformat/aiffdec.c if (size < 0) size 227 libavformat/aiffdec.c return size; size 229 libavformat/aiffdec.c filesize -= size + 8; size 234 libavformat/aiffdec.c st->nb_frames = get_aiff_header(s, size, version); size 242 libavformat/aiffdec.c ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC, &id3v2_extra_meta, size); size 249 libavformat/aiffdec.c if (position + size > avio_tell(pb)) size 250 libavformat/aiffdec.c avio_skip(pb, position + size - avio_tell(pb)); size 256 libavformat/aiffdec.c get_meta(s, "title" , size); size 259 libavformat/aiffdec.c get_meta(s, "author" , size); size 262 libavformat/aiffdec.c get_meta(s, "copyright", size); size 265 libavformat/aiffdec.c get_meta(s, "comment" , size); size 268 libavformat/aiffdec.c aiff->data_end = avio_tell(pb) + size; size 278 libavformat/aiffdec.c avio_skip(pb, size - 8); size 281 libavformat/aiffdec.c if ((uint64_t)size > (1<<30)) size 283 libavformat/aiffdec.c if (ff_get_extradata(st->codec, pb, size) < 0) size 285 libavformat/aiffdec.c if (st->codec->codec_id == AV_CODEC_ID_QDM2 && size>=12*4 && !st->codec->block_align) { size 290 libavformat/aiffdec.c if (size >= 25) size 306 libavformat/aiffdec.c if(ff_mov_read_chan(s, pb, st, size) < 0) size 310 libavformat/aiffdec.c if (size & 1) /* Always even aligned */ size 311 libavformat/aiffdec.c size++; size 312 libavformat/aiffdec.c avio_skip(pb, size); size 341 libavformat/aiffdec.c int res, size; size 354 libavformat/aiffdec.c size = st->codec->block_align; size 357 libavformat/aiffdec.c size = (MAX_SIZE / st->codec->block_align) * st->codec->block_align; size 359 libavformat/aiffdec.c size = FFMIN(max_size, size); size 360 libavformat/aiffdec.c res = av_get_packet(s->pb, pkt, size); size 364 libavformat/aiffdec.c if (size >= st->codec->block_align) size 47 libavformat/aiffenc.c uint64_t pos, end, size; size 72 libavformat/aiffenc.c size = end - pos; size 76 libavformat/aiffenc.c avio_wb32(pb, size); size 79 libavformat/aiffenc.c if (size & 1) size 91 libavformat/aiffenc.c int size = strlen(tag->value); size 94 libavformat/aiffenc.c avio_wb32(pb, FFALIGN(size, 2)); size 95 libavformat/aiffenc.c avio_write(pb, tag->value, size); size 96 libavformat/aiffenc.c if (size & 1) size 215 libavformat/aiffenc.c avio_write(pb, pkt->data, pkt->size); size 62 libavformat/amr.c avio_write(s->pb, pkt->data, pkt->size); size 116 libavformat/amr.c int read, size = 0, toc, mode; size 133 libavformat/amr.c size = packed_size[mode] + 1; size 139 libavformat/amr.c size = packed_size[mode]; size 142 libavformat/amr.c if (!size || av_new_packet(pkt, size)) size 145 libavformat/amr.c if (amr->cumulated_size < UINT64_MAX - size) { size 146 libavformat/amr.c amr->cumulated_size += size; size 155 libavformat/amr.c read = avio_read(s->pb, pkt->data + 1, size - 1); size 157 libavformat/amr.c if (read != size - 1) { size 34 libavformat/anm.c int size; size 153 libavformat/anm.c p->size = avio_rl16(pb); size 212 libavformat/anm.c pkt->size = av_get_packet(s->pb, pkt, record_size); size 213 libavformat/anm.c if (pkt->size < 0) size 214 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 307 libavformat/ape.c ape->frames[i - 1].size = ape->frames[i].pos - ape->frames[i - 1].pos; size 320 libavformat/ape.c ape->frames[ape->totalframes - 1].size = final_size; size 325 libavformat/ape.c ape->frames[i].size += ape->frames[i].skip; size 327 libavformat/ape.c ape->frames[i].size = (ape->frames[i].size + 3) & ~3; size 332 libavformat/ape.c ape->frames[i].size += 4; size 406 libavformat/ape.c if (ape->frames[ape->currentframe].size <= 0 || size 407 libavformat/ape.c ape->frames[ape->currentframe].size > INT_MAX - extra_size) { size 409 libavformat/ape.c ape->frames[ape->currentframe].size); size 414 libavformat/ape.c if (av_new_packet(pkt, ape->frames[ape->currentframe].size + extra_size) < 0) size 419 libavformat/ape.c ret = avio_read(s->pb, pkt->data + extra_size, ape->frames[ape->currentframe].size); size 430 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 - FF_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 (ff_get_extradata(st->codec, 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 184 libavformat/apetag.c int size, ret, count = 0; size 214 libavformat/apetag.c size = avio_close_dyn_buf(dyn_bc, &dyn_buf); size 215 libavformat/apetag.c if (size <= 0) size 217 libavformat/apetag.c size += 20; size 222 libavformat/apetag.c avio_wl32(s->pb, size); size 225 libavformat/apetag.c avio_write(s->pb, dyn_buf, size - 20); size 230 libavformat/apetag.c avio_wl32(s->pb, size); // size size 194 libavformat/apngdec.c int64_t size = avio_size(pb); size 196 libavformat/apngdec.c if (size < 0) { size 197 libavformat/apngdec.c ret = size; size 202 libavformat/apngdec.c } else if ((ret = ffio_ensure_seekback(pb, size - offset)) < 0) { size 326 libavformat/apngdec.c int64_t size; size 362 libavformat/apngdec.c size = 38 /* fcTL */ + 8 /* len, tag */ + len + 4 /* crc */; size 363 libavformat/apngdec.c if (size > INT_MAX) size 367 libavformat/apngdec.c (ret = av_append_packet(pb, pkt, size)) < 0) size 33 libavformat/asf.h uint16_t size; size 330 libavformat/asfdec.c static int asf_read_file_properties(AVFormatContext *s, int64_t size) size 354 libavformat/asfdec.c static int asf_read_stream_properties(AVFormatContext *s, int64_t size) size 447 libavformat/asfdec.c if (size >= (pos2 + 8 - pos1 + 24)) { size 461 libavformat/asfdec.c size - (avio_tell(pb) - pos1 + 24) >= 51) { size 516 libavformat/asfdec.c avio_skip(pb, size - (pos2 - pos1 + 24)); size 521 libavformat/asfdec.c static int asf_read_ext_stream_properties(AVFormatContext *s, int64_t size) size 562 libavformat/asfdec.c int size; size 564 libavformat/asfdec.c size = avio_rl16(pb); size 570 libavformat/asfdec.c p->size = size; size 571 libavformat/asfdec.c av_log(s, AV_LOG_DEBUG, "Payload extension %x %d\n", g[0], p->size ); size 579 libavformat/asfdec.c static int asf_read_content_desc(AVFormatContext *s, int64_t size) size 598 libavformat/asfdec.c static int asf_read_ext_content_desc(AVFormatContext *s, int64_t size) size 632 libavformat/asfdec.c static int asf_read_language_list(AVFormatContext *s, int64_t size) size 652 libavformat/asfdec.c static int asf_read_metadata(AVFormatContext *s, int64_t size) size 691 libavformat/asfdec.c static int asf_read_marker(AVFormatContext *s, int64_t size) size 809 libavformat/asfdec.c av_hex_dump_log(s, AV_LOG_DEBUG, pkt.data, pkt.size); size 1042 libavformat/asfdec.c int size = p->size; size 1044 libavformat/asfdec.c if (size == 0xFFFF) size 1045 libavformat/asfdec.c size = avio_rl16(pb); size 1046 libavformat/asfdec.c payend = avio_tell(pb) + size; size 1206 libavformat/asfdec.c if (asf_st->pkt.size != asf_st->packet_obj_size || size 1208 libavformat/asfdec.c asf_st->frag_offset + asf->packet_frag_size > asf_st->pkt.size) { size 1214 libavformat/asfdec.c asf_st->pkt.size, asf_st->packet_obj_size); size 1254 libavformat/asfdec.c s->packet_size, asf_st->pkt.size, asf->packet_frag_offset, size 1260 libavformat/asfdec.c if (asf->packet_frag_offset >= asf_st->pkt.size || size 1261 libavformat/asfdec.c asf->packet_frag_size > asf_st->pkt.size - asf->packet_frag_offset) { size 1265 libavformat/asfdec.c asf_st->pkt.size); size 1270 libavformat/asfdec.c memset(asf_st->pkt.data + asf_st->frag_offset, 0, asf_st->pkt.size - asf_st->frag_offset); size 1297 libavformat/asfdec.c if (asf_st->frag_offset == asf_st->pkt.size) { size 1300 libavformat/asfdec.c asf_st->pkt.size > 100) { size 1302 libavformat/asfdec.c for (i = 0; i < asf_st->pkt.size && !asf_st->pkt.data[i]; i++) size 1304 libavformat/asfdec.c if (i == asf_st->pkt.size) { size 1314 libavformat/asfdec.c if (asf_st->pkt.size != asf_st->ds_packet_size * asf_st->ds_span) { size 1317 libavformat/asfdec.c asf_st->pkt.size, asf_st->ds_packet_size, size 1321 libavformat/asfdec.c AVBufferRef *buf = av_buffer_alloc(asf_st->pkt.size + size 1326 libavformat/asfdec.c memset(newdata + asf_st->pkt.size, 0, size 1328 libavformat/asfdec.c while (offset < asf_st->pkt.size) { size 1333 libavformat/asfdec.c assert(offset + asf_st->ds_chunk_size <= asf_st->pkt.size); size 1334 libavformat/asfdec.c assert(idx + 1 <= asf_st->pkt.size / asf_st->ds_chunk_size); size 1354 libavformat/asfdec.c asf_st->pkt.size = 0; size 1480 libavformat/asfdec.c av_add_index_entry(s->streams[i], pos, pts, pkt->size, size 933 libavformat/asfenc.c pkt->dts, pkt->data, pkt->size, flags); size 187 libavformat/assenc.c avio_write(s->pb, pkt->data, pkt->size); 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 (size > INT_MAX / s->streams[0]->codec->channels) size 96 libavformat/astdec.c size *= s->streams[0]->codec->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 114 libavformat/astenc.c int size = pkt->size / enc->channels; size 117 libavformat/astenc.c ast->fbs = size; size 120 libavformat/astenc.c avio_wb32(pb, size); /* Block size */ size 127 libavformat/astenc.c avio_write(pb, pkt->data, pkt->size); size 173 libavformat/astenc.c avio_seek(pb, ast->size, SEEK_SET); size 73 libavformat/au.c int size, data_size = 0; size 84 libavformat/au.c size = avio_rb32(pb); /* header size */ size 96 libavformat/au.c if (size > 24) { size 98 libavformat/au.c avio_skip(pb, size - 24); size 84 libavformat/audiointerleave.c int size = FFMIN(av_fifo_size(aic->fifo), *aic->samples * aic->sample_size); size 85 libavformat/audiointerleave.c if (!size || (!flush && size == av_fifo_size(aic->fifo))) size 88 libavformat/audiointerleave.c ret = av_new_packet(pkt, size); size 91 libavformat/audiointerleave.c av_fifo_generic_read(aic->fifo, pkt->data, size, NULL); size 102 libavformat/audiointerleave.c return size; size 115 libavformat/audiointerleave.c unsigned new_size = av_fifo_size(aic->fifo) + pkt->size; size 121 libavformat/audiointerleave.c av_fifo_generic_write(aic->fifo, pkt->data, pkt->size, NULL); size 70 libavformat/avc.c int ff_avc_parse_nal_units(AVIOContext *pb, const uint8_t *buf_in, int size) size 73 libavformat/avc.c const uint8_t *end = p + size; size 76 libavformat/avc.c size = 0; size 86 libavformat/avc.c size += 4 + nal_end - nal_start; size 89 libavformat/avc.c return size; size 92 libavformat/avc.c int ff_avc_parse_nal_units_buf(const uint8_t *buf_in, uint8_t **buf, int *size) size 99 libavformat/avc.c ff_avc_parse_nal_units(pb, buf_in, *size); size 102 libavformat/avc.c *size = avio_close_dyn_buf(pb, buf); size 124 libavformat/avc.c uint32_t size; size 126 libavformat/avc.c size = FFMIN(AV_RB32(buf), end - buf - 4); size 132 libavformat/avc.c sps_size = size; size 135 libavformat/avc.c pps_size = size; size 138 libavformat/avc.c buf += size; size 164 libavformat/avc.c int ff_avc_write_annexb_extradata(const uint8_t *in, uint8_t **buf, int *size) size 171 libavformat/avc.c if (*size >= 4 && (AV_RB32(in) == 0x00000001 || AV_RB24(in) == 0x000001)) size 173 libavformat/avc.c if (*size < 11 || in[0] != 1) size 177 libavformat/avc.c if (11 + sps_size > *size) size 180 libavformat/avc.c if (11 + sps_size + pps_size > *size) size 191 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 361 libavformat/avformat.h int av_get_packet(AVIOContext *s, AVPacket *pkt, int size); size 378 libavformat/avformat.h int av_append_packet(AVIOContext *s, AVPacket *pkt, int size); size 738 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 1880 libavformat/avformat.h enum AVPacketSideDataType type, int *size); size 2386 libavformat/avformat.h void av_hex_dump(FILE *f, const uint8_t *buf, int size); size 2400 libavformat/avformat.h void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size); size 2481 libavformat/avformat.h int size, int distance, int flags); size 2566 libavformat/avformat.h int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size); size 119 libavformat/avidec.c #define print_tag(str, tag, size) \ size 125 libavformat/avidec.c size) size 280 libavformat/avidec.c int64_t pos, size, ts; size 289 libavformat/avidec.c size = st->index_entries[0].size; size 292 libavformat/avidec.c for (j = 0; j < size; j += max) size 293 libavformat/avidec.c av_add_index_entry(st, pos + j, ts + j, FFMIN(max, size - j), 0, size 299 libavformat/avidec.c uint32_t size) size 305 libavformat/avidec.c size += (size & 1); size 307 libavformat/avidec.c if (size == UINT_MAX) size 309 libavformat/avidec.c value = av_malloc(size + 1); size 312 libavformat/avidec.c if (avio_read(pb, value, size) != size) size 314 libavformat/avidec.c value[size] = 0; size 348 libavformat/avidec.c uint32_t size = avio_rl32(s->pb); size 352 libavformat/avidec.c uint64_t tag_end = avio_tell(s->pb) + size; size 355 libavformat/avidec.c uint16_t size = avio_rl16(s->pb); size 358 libavformat/avidec.c size = FFMIN(size, tag_end - avio_tell(s->pb)); size 359 libavformat/avidec.c size -= avio_read(s->pb, buffer, size 360 libavformat/avidec.c FFMIN(size, sizeof(buffer) - 1)); size 376 libavformat/avidec.c avio_skip(s->pb, size); size 381 libavformat/avidec.c avio_skip(s->pb, size); size 440 libavformat/avidec.c len += st->index_entries[j].size; size 455 libavformat/avidec.c len += st->index_entries[j].size; size 471 libavformat/avidec.c unsigned int size; size 501 libavformat/avidec.c size = avio_rl32(pb); size 503 libavformat/avidec.c print_tag("tag", tag, size); size 507 libavformat/avidec.c list_end = avio_tell(pb) + size; size 515 libavformat/avidec.c if (size) size 516 libavformat/avidec.c avi->movi_end = avi->movi_list + size + (size & 1); size 522 libavformat/avidec.c ff_read_riff_info(s, size - 4); size 530 libavformat/avidec.c size += (size & 1); size 531 libavformat/avidec.c size -= avio_read(pb, date, FFMIN(size, sizeof(date) - 1)); size 532 libavformat/avidec.c avio_skip(pb, size); size 538 libavformat/avidec.c avio_skip(pb, size + (size & 1)); size 556 libavformat/avidec.c avio_skip(pb, size - 10 * 4); size 565 libavformat/avidec.c avio_skip(pb, size - 8); size 628 libavformat/avidec.c avio_skip(pb, size - 9 * 4); size 699 libavformat/avidec.c avio_skip(pb, size - 12 * 4); size 703 libavformat/avidec.c if (!size) size 706 libavformat/avidec.c avio_skip(pb, size); size 711 libavformat/avidec.c size = FFMIN(size, list_end - cur_pos); size 714 libavformat/avidec.c avio_skip(pb, size); size 724 libavformat/avidec.c avio_skip(pb, size); size 737 libavformat/avidec.c if (size > 10 * 4 && size < (1 << 30) && size < avi->fsize) { size 738 libavformat/avidec.c if (esize == size-1 && (esize&1)) { size 741 libavformat/avidec.c st->codec->extradata_size = size - 10 * 4; size 811 libavformat/avidec.c ret = ff_get_wav_header(pb, st->codec, size, 0); size 826 libavformat/avidec.c if (size & 1) size 862 libavformat/avidec.c avio_skip(pb, size); size 868 libavformat/avidec.c avio_skip(pb, size); size 877 libavformat/avidec.c avio_skip(pb, size); size 881 libavformat/avidec.c size = FFMIN(size, list_end - cur_pos); size 884 libavformat/avidec.c if (size<(1<<30)) { size 885 libavformat/avidec.c if (ff_get_extradata(st->codec, pb, size) < 0) size 905 libavformat/avidec.c avio_seek(pb, i + size, SEEK_SET); size 908 libavformat/avidec.c if (stream_index < (unsigned)s->nb_streams && size > 9 * 4) { size 931 libavformat/avidec.c size -= 9 * 4; size 933 libavformat/avidec.c avio_skip(pb, size); size 937 libavformat/avidec.c ret = avi_read_tag(s, s->streams[s->nb_streams - 1], tag, size); size 943 libavformat/avidec.c if (size > 1000000) { size 954 libavformat/avidec.c size += (size & 1); size 955 libavformat/avidec.c avio_skip(pb, size); size 1015 libavformat/avidec.c if (pkt->size >= 7 && size 1016 libavformat/avidec.c pkt->size < INT_MAX - AVPROBE_PADDING_SIZE && size 1023 libavformat/avidec.c int size; size 1025 libavformat/avidec.c pkt->size - 7, size 1041 libavformat/avidec.c size = pb->buf_end - pb->buf_ptr; size 1042 libavformat/avidec.c pd = (AVProbeData) { .buf = av_mallocz(size + AVPROBE_PADDING_SIZE), size 1043 libavformat/avidec.c .buf_size = size }; size 1046 libavformat/avidec.c memcpy(pd.buf, pb->buf_ptr, size); size 1132 libavformat/avidec.c unsigned int size; size 1144 libavformat/avidec.c size = d[4] + (d[5] << 8) + (d[6] << 16) + (d[7] << 24); size 1148 libavformat/avidec.c d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], i, size, n); size 1149 libavformat/avidec.c if (i*(avi->io_fsize>0) + (uint64_t)size > avi->fsize || d[0] > 127) size 1157 libavformat/avidec.c avio_skip(pb, size); size 1175 libavformat/avidec.c avio_skip(pb, size); size 1214 libavformat/avidec.c ((st->discard >= AVDISCARD_DEFAULT && size == 0) /* || size 1220 libavformat/avidec.c ast->frame_offset += get_duration(ast, size); size 1221 libavformat/avidec.c avio_skip(pb, size); size 1226 libavformat/avidec.c if (d[2] == 'p' && d[3] == 'c' && size <= 4 * 256 + 4) { size 1253 libavformat/avidec.c ast->packet_size = size + 8; size 1254 libavformat/avidec.c ast->remaining = size; size 1256 libavformat/avidec.c if (size) { size 1260 libavformat/avidec.c av_add_index_entry(st, pos, ast->frame_offset, size, size 1284 libavformat/avidec.c int size = avpriv_dv_get_packet(avi->dv_demux, pkt); size 1285 libavformat/avidec.c if (size >= 0) size 1286 libavformat/avidec.c return size; size 1350 libavformat/avidec.c best_ast->remaining = best_st->index_entries[i].size; size 1360 libavformat/avidec.c int size, err; size 1367 libavformat/avidec.c size = INT_MAX; size 1370 libavformat/avidec.c size = 1024 * ast->sample_size; size 1372 libavformat/avidec.c size = ast->sample_size; size 1374 libavformat/avidec.c if (size > ast->remaining) size 1375 libavformat/avidec.c size = ast->remaining; size 1377 libavformat/avidec.c err = av_get_packet(pb, pkt, size); size 1380 libavformat/avidec.c size = err; size 1382 libavformat/avidec.c if (ast->has_pal && pkt->size < (unsigned)INT_MAX / 2) { size 1403 libavformat/avidec.c size = avpriv_dv_produce_packet(avi->dv_demux, pkt, size 1404 libavformat/avidec.c pkt->data, pkt->size, pkt->pos); size 1412 libavformat/avidec.c if (size < 0) size 1436 libavformat/avidec.c size); size 1451 libavformat/avidec.c for (i=0; i<FFMIN(size,256); i++) { size 1470 libavformat/avidec.c ast->frame_offset += get_duration(ast, pkt->size); size 1504 libavformat/avidec.c static int avi_read_idx1(AVFormatContext *s, int size) size 1517 libavformat/avidec.c nb_index_entries = size / 16; size 1650 libavformat/avidec.c unsigned int size; size 1658 libavformat/avidec.c size = avio_rl32(s->pb); size 1659 libavformat/avidec.c if (pos + size > st->index_entries[1].pos) size 1680 libavformat/avidec.c uint32_t tag, size; size 1690 libavformat/avidec.c size = avio_rl32(pb); size 1693 libavformat/avidec.c next = avio_tell(pb) + size + (size & 1); size 1700 libavformat/avidec.c size); size 1703 libavformat/avidec.c avi_read_idx1(s, size) >= 0) { size 1710 libavformat/avidec.c ff_read_riff_info(s, size - 4); size 601 libavformat/avienc.c empty_packet.size = 0; size 616 libavformat/avienc.c int size = pkt->size; size 623 libavformat/avienc.c if (enc->codec_id == AV_CODEC_ID_H264 && enc->codec_tag == MKTAG('H','2','6','4') && pkt->size) { size 654 libavformat/avienc.c avist->audio_strm_length += size; size 676 libavformat/avienc.c idx->cluster[cl][id].len = size; size 677 libavformat/avienc.c avist->max_size = FFMAX(avist->max_size, size); size 682 libavformat/avienc.c avio_wl32(pb, size); size 683 libavformat/avienc.c avio_write(pb, pkt->data, size); size 684 libavformat/avienc.c if (size & 1) size 290 libavformat/avio.c int size, int size_min, size 293 libavformat/avio.c int size)) size 303 libavformat/avio.c ret = transfer_func(h, buf + len, size - len); size 330 libavformat/avio.c int ffurl_read(URLContext *h, unsigned char *buf, int size) size 334 libavformat/avio.c return retry_transfer_wrapper(h, buf, size, 1, h->prot->url_read); size 337 libavformat/avio.c int ffurl_read_complete(URLContext *h, unsigned char *buf, int size) size 341 libavformat/avio.c return retry_transfer_wrapper(h, buf, size, size, h->prot->url_read); size 344 libavformat/avio.c int ffurl_write(URLContext *h, const unsigned char *buf, int size) size 349 libavformat/avio.c if (h->max_packet_size && size > h->max_packet_size) size 352 libavformat/avio.c return retry_transfer_wrapper(h, (unsigned char *)buf, size, size, (void*)h->prot->url_write); size 421 libavformat/avio.c int64_t pos, size; size 423 libavformat/avio.c size = ffurl_seek(h, 0, AVSEEK_SIZE); size 424 libavformat/avio.c if (size < 0) { size 426 libavformat/avio.c if ((size = ffurl_seek(h, -1, SEEK_END)) < 0) size 427 libavformat/avio.c return size; size 428 libavformat/avio.c size++; size 431 libavformat/avio.c return size; size 101 libavformat/avio.h unsigned long (*update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size); size 214 libavformat/avio.h void avio_write(AVIOContext *s, const unsigned char *buf, int size); size 316 libavformat/avio.h int avio_read(AVIOContext *s, unsigned char *buf, int size); size 55 libavformat/avio_internal.h int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data); size 63 libavformat/avio_internal.h int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size); size 100 libavformat/avio_internal.h int ffio_limit(AVIOContext *s, int size); size 177 libavformat/aviobuf.c void avio_write(AVIOContext *s, const unsigned char *buf, int size) size 181 libavformat/aviobuf.c writeout(s, buf, size); size 184 libavformat/aviobuf.c while (size > 0) { size 185 libavformat/aviobuf.c int len = FFMIN(s->buf_end - s->buf_ptr, size); size 193 libavformat/aviobuf.c size -= len; size 283 libavformat/aviobuf.c int64_t size; size 290 libavformat/aviobuf.c size = s->seek(s->opaque, 0, AVSEEK_SIZE); size 291 libavformat/aviobuf.c if (size < 0) { size 292 libavformat/aviobuf.c if ((size = s->seek(s->opaque, -1, SEEK_END)) < 0) size 293 libavformat/aviobuf.c return size; size 294 libavformat/aviobuf.c size++; size 297 libavformat/aviobuf.c return size; size 535 libavformat/aviobuf.c int avio_read(AVIOContext *s, unsigned char *buf, int size) size 539 libavformat/aviobuf.c size1 = size; size 540 libavformat/aviobuf.c while (size > 0) { size 542 libavformat/aviobuf.c if (len > size) size 543 libavformat/aviobuf.c len = size; size 545 libavformat/aviobuf.c if((s->direct || size > s->buffer_size) && !s->update_checksum){ size 547 libavformat/aviobuf.c len = s->read_packet(s->opaque, buf, size); size 558 libavformat/aviobuf.c size -= len; size 573 libavformat/aviobuf.c size -= len; size 576 libavformat/aviobuf.c if (size1 == size) { size 580 libavformat/aviobuf.c return size1 - size; size 583 libavformat/aviobuf.c int ffio_read_indirect(AVIOContext *s, unsigned char *buf, int size, const unsigned char **data) size 585 libavformat/aviobuf.c if (s->buf_end - s->buf_ptr >= size && !s->write_flag) { size 587 libavformat/aviobuf.c s->buf_ptr += size; size 588 libavformat/aviobuf.c return size; size 591 libavformat/aviobuf.c return avio_read(s, buf, size); size 595 libavformat/aviobuf.c int ffio_read_partial(AVIOContext *s, unsigned char *buf, int size) size 599 libavformat/aviobuf.c if (size < 0) size 603 libavformat/aviobuf.c len = s->read_packet(s->opaque, buf, size); size 621 libavformat/aviobuf.c if (len > size) size 622 libavformat/aviobuf.c len = size; size 1005 libavformat/aviobuf.c int pos, size, allocated_size; size 1032 libavformat/aviobuf.c d->size = 0; size 1039 libavformat/aviobuf.c if (d->pos > d->size) size 1040 libavformat/aviobuf.c d->size = d->pos; size 1066 libavformat/aviobuf.c offset += d->size; size 1110 libavformat/aviobuf.c int size; size 1129 libavformat/aviobuf.c size = d->size; size 1132 libavformat/aviobuf.c return size - padding; size 1150 libavformat/aviobuf.c if (d->pos > d->size) size 1151 libavformat/aviobuf.c d->size = d->pos; size 1168 libavformat/aviobuf.c int size; size 1172 libavformat/aviobuf.c size = d->size; size 1175 libavformat/aviobuf.c return size; size 455 libavformat/avisynth.c pkt->size = (((int64_t)avs->vi->width * size 457 libavformat/avisynth.c if (!pkt->size) size 460 libavformat/avisynth.c if (av_new_packet(pkt, pkt->size) < 0) size 540 libavformat/avisynth.c pkt->size = 0; size 554 libavformat/avisynth.c pkt->size = avs_bytes_per_channel_sample(avs->vi) * size 556 libavformat/avisynth.c if (!pkt->size) size 559 libavformat/avisynth.c if (av_new_packet(pkt, pkt->size) < 0) size 87 libavformat/avs.c AvsBlockType type, int sub_type, int size, size 93 libavformat/avs.c ret = av_new_packet(pkt, size + palette_size); size 107 libavformat/avs.c pkt->data[palette_size + 2] = size & 0xFF; size 108 libavformat/avs.c pkt->data[palette_size + 3] = (size >> 8) & 0xFF; size 109 libavformat/avs.c ret = avio_read(s->pb, pkt->data + palette_size + 4, size - 4) + 4; size 110 libavformat/avs.c if (ret < size) { size 115 libavformat/avs.c pkt->size = ret + palette_size; size 126 libavformat/avs.c int ret, size; size 128 libavformat/avs.c size = avio_tell(s->pb); size 130 libavformat/avs.c size = avio_tell(s->pb) - size; size 131 libavformat/avs.c avs->remaining_audio_size -= size; size 141 libavformat/avs.c return size; size 147 libavformat/avs.c int sub_type = 0, size = 0; size 167 libavformat/avs.c size = avio_rl16(s->pb); size 168 libavformat/avs.c if (size < 4) size 170 libavformat/avs.c avs->remaining_frame_size -= size; size 174 libavformat/avs.c if (size - 4 > sizeof(palette)) size 176 libavformat/avs.c ret = avio_read(s->pb, palette, size - 4); size 177 libavformat/avs.c if (ret < size - 4) size 179 libavformat/avs.c palette_size = size; size 198 libavformat/avs.c return avs_read_video_packet(s, pkt, type, sub_type, size, size 208 libavformat/avs.c avs->remaining_audio_size = size - 4; size 209 libavformat/avs.c size = avs_read_audio_packet(s, pkt); size 210 libavformat/avs.c if (size != 0) size 211 libavformat/avs.c return size; size 215 libavformat/avs.c avio_skip(s->pb, size - 4); size 225 libavformat/bink.c bink->remain_packet_size = st->index_entries[index_entry].size; size 248 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 140 libavformat/bit.c if (pkt->size != 10) 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 (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 61 libavformat/brstm.c uint32_t size, start, asize; size 85 libavformat/brstm.c size = avio_rb16(s->pb); size 86 libavformat/brstm.c if (size < 14) size 89 libavformat/brstm.c avio_skip(s->pb, size - 14); size 93 libavformat/brstm.c size = avio_rb32(s->pb); size 94 libavformat/brstm.c if (size < 256) size 98 libavformat/brstm.c if (h1offset > size) size 102 libavformat/brstm.c if (toffset > size) size 161 libavformat/brstm.c if (toffset > size) size 178 libavformat/brstm.c if (size < (avio_tell(s->pb) - pos)) { size 182 libavformat/brstm.c avio_skip(s->pb, size - (avio_tell(s->pb) - pos)); size 186 libavformat/brstm.c size = avio_rb32(s->pb); size 187 libavformat/brstm.c if (size < 8) { size 191 libavformat/brstm.c size -= 8; size 198 libavformat/brstm.c if (size < asize) { size 212 libavformat/brstm.c avio_skip(s->pb, size - asize); size 230 libavformat/brstm.c avio_skip(s->pb, size); size 244 libavformat/brstm.c uint32_t samples, size; size 251 libavformat/brstm.c size = b->last_block_used_bytes; size 252 libavformat/brstm.c samples = size / (8 * codec->channels) * 14; size 254 libavformat/brstm.c size = b->block_size; size 263 libavformat/brstm.c if (av_new_packet(pkt, 8 + (32 + 4) * codec->channels + size) < 0) size 266 libavformat/brstm.c bytestream_put_be32(&dst, size); size 272 libavformat/brstm.c ret = avio_read(s->pb, dst, size); size 273 libavformat/brstm.c if (ret != size) size 277 libavformat/brstm.c ret = av_get_packet(s->pb, pkt, size); size 282 libavformat/brstm.c if (ret != size) size 157 libavformat/c93.c pkt->size = datasize + 1; size 173 libavformat/c93.c ret = avio_read(pb, pkt->data + pkt->size, datasize); size 178 libavformat/c93.c pkt->size += 768; size 51 libavformat/cache.c int size; size 92 libavformat/cache.c static int add_entry(URLContext *h, const unsigned char *buf, int size) size 110 libavformat/cache.c ret = write(c->fd, buf, size); size 124 libavformat/cache.c entry->logical_pos + entry->size != c->logical_pos || size 125 libavformat/cache.c entry->physical_pos + entry->size != pos size 135 libavformat/cache.c entry->size = ret; size 144 libavformat/cache.c entry->size += ret; size 155 libavformat/cache.c static int cache_read(URLContext *h, unsigned char *buf, int size) size 169 libavformat/cache.c if (in_block_pos < entry->size) { size 179 libavformat/cache.c r = read(c->fd, buf, FFMIN(size, entry->size - in_block_pos)); size 202 libavformat/cache.c r = ffurl_read(c->inner, buf, size); size 203 libavformat/cache.c if (r == 0 && size>0) { size 261 libavformat/cache.c int size = sizeof(tmp); size 263 libavformat/cache.c size = FFMIN(sizeof(tmp), pos - c->logical_pos); size 264 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 104 libavformat/cafdec.c if (size < 0 || size > INT_MAX - FF_INPUT_BUFFER_PADDING_SIZE) size 115 libavformat/cafdec.c skip = size - (avio_tell(pb) - strt); size 127 libavformat/cafdec.c if (size < ALAC_NEW_KUKI) { size 129 libavformat/cafdec.c avio_skip(pb, size); size 142 libavformat/cafdec.c if (size < ALAC_PREAMBLE + ALAC_HEADER) { size 148 libavformat/cafdec.c avio_skip(pb, size - ALAC_PREAMBLE - ALAC_HEADER); size 155 libavformat/cafdec.c avio_skip(pb, size - ALAC_NEW_KUKI); size 158 libavformat/cafdec.c if (ff_get_extradata(st->codec, pb, size) < 0) size 166 libavformat/cafdec.c static int read_pakt_chunk(AVFormatContext *s, int64_t size) size 191 libavformat/cafdec.c if (avio_tell(pb) - ccount > size) { size 195 libavformat/cafdec.c avio_skip(pb, ccount + size - avio_tell(pb)); size 202 libavformat/cafdec.c static void read_info_chunk(AVFormatContext *s, int64_t size) size 223 libavformat/cafdec.c int64_t size, pos; size 232 libavformat/cafdec.c size = avio_rb64(pb); size 233 libavformat/cafdec.c if (size != 32) size 251 libavformat/cafdec.c size = avio_rb64(pb); size 260 libavformat/cafdec.c caf->data_size = size < 0 ? -1 : size - 4; size 267 libavformat/cafdec.c if ((ret = ff_mov_read_chan(s, s->pb, st, size)) < 0) size 273 libavformat/cafdec.c if (read_kuki_chunk(s, size)) size 279 libavformat/cafdec.c if (read_pakt_chunk(s, size)) size 284 libavformat/cafdec.c read_info_chunk(s, size); size 291 libavformat/cafdec.c tag, _(tag>>24), _((tag>>16)&0xFF), _((tag>>8)&0xFF), _(tag&0xFF), size); size 294 libavformat/cafdec.c if (size < 0) size 299 libavformat/cafdec.c if (size > 0) { size 300 libavformat/cafdec.c if (pos > INT64_MAX - size) size 302 libavformat/cafdec.c avio_skip(pb, FFMAX(0, pos + size - avio_tell(pb))); size 379 libavformat/cafdec.c pkt->size = res; size 220 libavformat/cafenc.c avio_write(s->pb, pkt->data, pkt->size); size 236 libavformat/cafenc.c unsigned top = pkt->size >> i * 7; size 240 libavformat/cafenc.c caf->pkt_sizes[caf->size_entries_used++] = pkt->size & 127; size 281 libavformat/cinedec.c int n, size, ret; size 291 libavformat/cinedec.c size = avio_rl32(pb); size 293 libavformat/cinedec.c ret = av_get_packet(pb, pkt, size); size 34 libavformat/concat.c int64_t size; ///< url filesize size 62 libavformat/concat.c int64_t size; size 102 libavformat/concat.c if ((size = ffurl_size(uc)) < 0) { size 110 libavformat/concat.c nodes[i].size = size; size 125 libavformat/concat.c static int concat_read(URLContext *h, unsigned char *buf, int size) size 132 libavformat/concat.c while (size > 0) { size 133 libavformat/concat.c result = ffurl_read(nodes[i].uc, buf, size); size 143 libavformat/concat.c size -= result; size 158 libavformat/concat.c for (i = data->length - 1; i && pos < -nodes[i].size; i--) size 159 libavformat/concat.c pos += nodes[i].size; size 164 libavformat/concat.c pos += nodes[i].size; size 169 libavformat/concat.c for (i = 0; i != data->length - 1 && pos >= nodes[i].size; i++) size 170 libavformat/concat.c pos -= nodes[i].size; size 180 libavformat/concat.c result += nodes[--i].size; size 448 libavformat/concatdec.c &pkt2.data, &pkt2.size, size 449 libavformat/concatdec.c pkt->data, pkt->size, size 465 libavformat/concatdec.c pkt2.buf = av_buffer_create(pkt2.data, pkt2.size, size 44 libavformat/crcenc.c crc->crcval = av_adler32_update(crc->crcval, pkt->data, pkt->size); size 175 libavformat/crypto.c static int crypto_read(URLContext *h, uint8_t *buf, int size) size 181 libavformat/crypto.c size = FFMIN(size, c->outdata); size 182 libavformat/crypto.c memcpy(buf, c->outptr, size); size 183 libavformat/crypto.c c->outptr += size; size 184 libavformat/crypto.c c->outdata -= size; size 185 libavformat/crypto.c return size; size 224 libavformat/crypto.c static int crypto_write(URLContext *h, const unsigned char *buf, int size) size 231 libavformat/crypto.c total_size = size + c->pad_len; size 256 libavformat/crypto.c memcpy(c->pad, &buf[size - pad_len], pad_len); size 258 libavformat/crypto.c memcpy(&c->pad[c->pad_len], buf, size); size 262 libavformat/crypto.c return size; size 108 libavformat/dashenc.c char *str, int size) size 122 libavformat/dashenc.c if (size < 5) size 132 libavformat/dashenc.c av_strlcatf(str, size, ".%02x", oti); size 141 libavformat/dashenc.c av_strlcatf(str, size, ".%d", aot); size 166 libavformat/dashenc.c av_strlcatf(str, size, ".%02x%02x%02x", 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 101 libavformat/dfa.c frame_size = AV_RL32(pkt->data + pkt->size - 8); size 106 libavformat/dfa.c if (AV_RL32(pkt->data + pkt->size - 12) == MKTAG('E', 'O', 'F', 'R')) { 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 93 libavformat/dss.c unsigned int size, const char *key) size 101 libavformat/dss.c value = av_mallocz(size + 1); size 105 libavformat/dss.c ret = avio_read(s->pb, value, size); size 106 libavformat/dss.c if (ret < size) { size 267 libavformat/dss.c return pkt->size; size 278 libavformat/dss.c int size, byte, ret, offset; size 289 libavformat/dss.c size = frame_size[byte & 3]; size 291 libavformat/dss.c ctx->packet_size = size; size 292 libavformat/dss.c ctx->counter -= size; size 294 libavformat/dss.c ret = av_new_packet(pkt, size); size 302 libavformat/dss.c s->bit_rate = 8LL * size * st->codec->sample_rate * 512 / (506 * pkt->duration); size 307 libavformat/dss.c int size2 = ctx->counter + size; size 320 libavformat/dss.c ret = avio_read(s->pb, pkt->data + offset, size - offset); size 321 libavformat/dss.c if (ret < size - offset) { size 326 libavformat/dss.c return pkt->size; size 112 libavformat/dtshddec.c int64_t size, left; size 116 libavformat/dtshddec.c size = FFMIN(left, 1024); size 117 libavformat/dtshddec.c if (size <= 0) size 120 libavformat/dtshddec.c ret = av_get_packet(s->pb, pkt, size); size 46 libavformat/dump.c const uint8_t *buf, int size) size 50 libavformat/dump.c for (i = 0; i < size; i += 16) { size 51 libavformat/dump.c len = size - i; size 72 libavformat/dump.c void av_hex_dump(FILE *f, const uint8_t *buf, int size) size 74 libavformat/dump.c hex_dump_internal(NULL, f, 0, buf, size); size 77 libavformat/dump.c void av_hex_dump_log(void *avcl, int level, const uint8_t *buf, int size) size 79 libavformat/dump.c hex_dump_internal(avcl, NULL, level, buf, size); size 101 libavformat/dump.c HEXDUMP_PRINT(" size=%d\n", pkt->size); size 103 libavformat/dump.c av_hex_dump(f, pkt->data, pkt->size); size 158 libavformat/dump.c int size = sd->size; size 163 libavformat/dump.c if (!data || sd->size < 4) size 168 libavformat/dump.c size -= 4; size 171 libavformat/dump.c if (size < 4) size 175 libavformat/dump.c size -= 4; size 179 libavformat/dump.c if (size < 8) size 183 libavformat/dump.c size -= 8; size 188 libavformat/dump.c if (size < 4) size 192 libavformat/dump.c size -= 4; size 196 libavformat/dump.c if (size < 8) size 200 libavformat/dump.c size -= 4; size 203 libavformat/dump.c size -= 4; size 237 libavformat/dump.c if (sd->size < sizeof(*rg)) { size 253 libavformat/dump.c if (sd->size < sizeof(*stereo)) { size 333 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 287 libavformat/dv.c int size = 0; size 305 libavformat/dv.c size = c->sys->frame_size; size 307 libavformat/dv.c return size; size 353 libavformat/dv.c int size = -1; size 357 libavformat/dv.c if (c->ast[i] && c->audio_pkt[i].size) { size 359 libavformat/dv.c c->audio_pkt[i].size = 0; size 360 libavformat/dv.c size = pkt->size; size 365 libavformat/dv.c return size; size 371 libavformat/dv.c int size, i; size 382 libavformat/dv.c size = dv_extract_audio_info(c, buf); size 385 libavformat/dv.c c->audio_pkt[i].size = size; size 397 libavformat/dv.c c->audio_pkt[2].size = c->audio_pkt[3].size = 0; size 399 libavformat/dv.c c->audio_pkt[0].size = c->audio_pkt[1].size = 0; size 400 libavformat/dv.c c->abytes += size; size 403 libavformat/dv.c c->abytes += size; size 407 libavformat/dv.c size = dv_extract_video_info(c, buf); size 411 libavformat/dv.c pkt->size = size; size 418 libavformat/dv.c return size; size 428 libavformat/dv.c int64_t size = avio_size(s->pb) - s->internal->data_offset; size 429 libavformat/dv.c int64_t max_offset = ((size - 1) / sys->frame_size) * sys->frame_size; size 433 libavformat/dv.c if (size >= 0 && offset > max_offset) size 451 libavformat/dv.c c->audio_pkt[0].size = c->audio_pkt[1].size = 0; size 452 libavformat/dv.c c->audio_pkt[2].size = c->audio_pkt[3].size = 0; size 550 libavformat/dv.c int size; size 553 libavformat/dv.c size = avpriv_dv_get_packet(c->dv_demux, pkt); size 555 libavformat/dv.c if (size < 0) { size 559 libavformat/dv.c size = c->dv_demux->sys->frame_size; size 560 libavformat/dv.c if (avio_read(s->pb, c->buf, size) <= 0) size 563 libavformat/dv.c size = avpriv_dv_produce_packet(c->dv_demux, pkt, c->buf, size, pos); size 566 libavformat/dv.c return size; size 188 libavformat/dvenc.c int i, j, d, of, size; size 189 libavformat/dvenc.c size = 4 * dv_audio_frame_size(c->sys, c->frames, c->ast[channel]->codec->sample_rate); size 197 libavformat/dvenc.c if (of*2 >= size) size 421 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 199 libavformat/dxa.c size = AV_RB32(buf + 5); size 200 libavformat/dxa.c if(size > 0xFFFFFF){ size 202 libavformat/dxa.c size); size 205 libavformat/dxa.c if(av_new_packet(pkt, size + DXA_EXTRA_SIZE + pal_size) < 0) size 208 libavformat/dxa.c ret = avio_read(s->pb, pkt->data + DXA_EXTRA_SIZE + pal_size, size); size 209 libavformat/dxa.c if(ret != size){ size 85 libavformat/electronicarts.c uint8_t size, byte; size 89 libavformat/electronicarts.c size = avio_r8(pb); size 92 libavformat/electronicarts.c for (i = 0; i < size; i++) { size 350 libavformat/electronicarts.c uint32_t blockid, size = 0; size 360 libavformat/electronicarts.c size = avio_rl32(pb); size 362 libavformat/electronicarts.c ea->big_endian = size > av_bswap32(size); size 364 libavformat/electronicarts.c size = av_bswap32(size); size 366 libavformat/electronicarts.c if (size < 8) { size 439 libavformat/electronicarts.c avio_seek(pb, startpos + size, SEEK_SET); size 449 libavformat/electronicarts.c unsigned big_endian, size; size 465 libavformat/electronicarts.c size = AV_RL32(&p->buf[4]); size 466 libavformat/electronicarts.c big_endian = size > 0x000FFFFF; size 468 libavformat/electronicarts.c size = av_bswap32(size); size 469 libavformat/electronicarts.c if (size > 0xfffff || size < 8) size 605 libavformat/electronicarts.c if (pkt->size < 4) { size 34 libavformat/ffmdec.c static int ffm_is_avail_data(AVFormatContext *s, int size) size 41 libavformat/ffmdec.c if (size <= len) size 59 libavformat/ffmdec.c if (size <= avail_size) size 80 libavformat/ffmdec.c uint8_t *buf, int size, int header) size 87 libavformat/ffmdec.c size1 = size; size 88 libavformat/ffmdec.c while (size > 0) { size 93 libavformat/ffmdec.c if (len > size) size 94 libavformat/ffmdec.c len = size; size 145 libavformat/ffmdec.c size -= len; size 148 libavformat/ffmdec.c return size1 - size; size 293 libavformat/ffmdec.c unsigned size = avio_rb32(pb); size 294 libavformat/ffmdec.c int64_t next = avio_tell(pb) + size; size 404 libavformat/ffmdec.c buffer = av_malloc(size + 1); size 409 libavformat/ffmdec.c avio_get_str(pb, size, buffer, size + 1); size 419 libavformat/ffmdec.c buffer = av_malloc(size); size 424 libavformat/ffmdec.c avio_get_str(pb, INT_MAX, buffer, size); size 434 libavformat/ffmdec.c buffer = av_malloc(size); size 439 libavformat/ffmdec.c avio_get_str(pb, INT_MAX, buffer, size); size 599 libavformat/ffmdec.c int size; size 619 libavformat/ffmdec.c size = AV_RB24(ffm->header + 2); size 620 libavformat/ffmdec.c if ((ret = ffm_is_avail_data(s, size)) < 0) size 625 libavformat/ffmdec.c if (av_new_packet(pkt, size) < 0) { size 640 libavformat/ffmdec.c if (ffm_read_data(s, pkt->data, size, 0) != size) { size 62 libavformat/ffmenc.c const uint8_t *buf, int size, size 74 libavformat/ffmenc.c while (size > 0) { size 76 libavformat/ffmenc.c if (len > size) size 77 libavformat/ffmenc.c len = size; size 82 libavformat/ffmenc.c size -= len; size 338 libavformat/ffmenc.c AV_WB24(header+2, pkt->size); size 347 libavformat/ffmenc.c ffm_write_data(s, pkt->data, pkt->size, dts, 0); size 35 libavformat/ffmetadec.c static void get_line(AVIOContext *s, uint8_t *buf, int size) size 43 libavformat/ffmetadec.c if (i < size - 1) size 49 libavformat/ffmetadec.c if (i < size - 1) size 81 libavformat/ffmetadec.c static uint8_t *unescape(const uint8_t *buf, int size) size 83 libavformat/ffmetadec.c uint8_t *ret = av_malloc(size + 1); size 90 libavformat/ffmetadec.c while (p2 < buf + size) { size 81 libavformat/file.c static int file_read(URLContext *h, unsigned char *buf, int size) size 85 libavformat/file.c size = FFMIN(size, c->blocksize); size 86 libavformat/file.c r = read(c->fd, buf, size); size 90 libavformat/file.c static int file_write(URLContext *h, const unsigned char *buf, int size) size 94 libavformat/file.c size = FFMIN(size, c->blocksize); size 95 libavformat/file.c r = write(c->fd, buf, size); size 92 libavformat/filmstripdec.c pkt->size = av_get_packet(s->pb, pkt, st->codec->width * st->codec->height * 4); size 94 libavformat/filmstripdec.c if (pkt->size < 0) size 95 libavformat/filmstripdec.c return pkt->size; size 48 libavformat/filmstripenc.c avio_write(s->pb, pkt->data, pkt->size); size 130 libavformat/flac_picture.c st->attached_pic.size = len; size 215 libavformat/flacdec.c &out_pkt.data, &out_pkt.size, pkt.data, pkt.size, size 219 libavformat/flacdec.c if (out_pkt.size){ size 220 libavformat/flacdec.c int size = out_pkt.size; size 224 libavformat/flacdec.c *ppos = parser->next_frame_offset - size; size 182 libavformat/flacenc.c if (pkt->size) size 183 libavformat/flacenc.c avio_write(s->pb, pkt->data, pkt->size); size 202 libavformat/flic.c unsigned int size; size 215 libavformat/flic.c size = AV_RL32(&preamble[0]); size 218 libavformat/flic.c if (((magic == FLIC_CHUNK_MAGIC_1) || (magic == FLIC_CHUNK_MAGIC_2)) && size > FLIC_PREAMBLE_SIZE) { size 219 libavformat/flic.c if (av_new_packet(pkt, size)) { size 228 libavformat/flic.c size - FLIC_PREAMBLE_SIZE); size 229 libavformat/flic.c if (ret != size - FLIC_PREAMBLE_SIZE) { size 235 libavformat/flic.c if (av_new_packet(pkt, size)) { size 245 libavformat/flic.c ret = avio_read(pb, pkt->data, size); size 247 libavformat/flic.c if (ret != size) { size 255 libavformat/flic.c avio_skip(pb, size - 6); size 634 libavformat/flvdec.c static int flv_get_extradata(AVFormatContext *s, AVStream *st, int size) size 637 libavformat/flvdec.c if (ff_get_extradata(st->codec, s->pb, size) < 0) size 643 libavformat/flvdec.c int size) size 646 libavformat/flvdec.c flv->new_extradata[stream] = av_mallocz(size + size 650 libavformat/flvdec.c flv->new_extradata_size[stream] = size; size 651 libavformat/flvdec.c avio_read(pb, flv->new_extradata[stream], size); size 692 libavformat/flvdec.c int size = avio_rb16(pb); size 693 libavformat/flvdec.c if (!size) { size 697 libavformat/flvdec.c avio_skip(pb, size); size 765 libavformat/flvdec.c pkt->size = ret; size 779 libavformat/flvdec.c int ret, i, type, size, flags; size 791 libavformat/flvdec.c size = avio_rb24(s->pb); size 794 libavformat/flvdec.c av_dlog(s, "type:%d, size:%d, dts:%"PRId64" pos:%"PRId64"\n", type, size, dts, avio_tell(s->pb)); size 816 libavformat/flvdec.c if (size == 0) size 819 libavformat/flvdec.c next = size + avio_tell(s->pb); size 824 libavformat/flvdec.c size--; size 828 libavformat/flvdec.c size--; size 833 libavformat/flvdec.c if (size > 13 + 1 + 4 && dts == 0) { // Header-type metadata stuff size 843 libavformat/flvdec.c type, size, flags); size 850 libavformat/flvdec.c if (!size) size 881 libavformat/flvdec.c av_add_index_entry(st, pos, dts, size, 0, AVINDEX_KEYFRAME); size 896 libavformat/flvdec.c int size; size 903 libavformat/flvdec.c size = avio_rb32(s->pb); size 906 libavformat/flvdec.c avio_seek(s->pb, fsize - 3 - size, SEEK_SET); size 907 libavformat/flvdec.c if (size == avio_rb24(s->pb) + 11) { size 912 libavformat/flvdec.c else if (fsize >= 8 && fsize - 8 >= size) { size 913 libavformat/flvdec.c fsize -= size+4; size 952 libavformat/flvdec.c size -= flv_set_video_codec(s, st, flags & FLV_VIDEO_CODECID_MASK, 1); size 959 libavformat/flvdec.c size--; size 980 libavformat/flvdec.c if ((ret = flv_queue_extradata(flv, s->pb, stream_type, size)) < 0) size 985 libavformat/flvdec.c if ((ret = flv_get_extradata(s, st, size)) < 0) size 1015 libavformat/flvdec.c if (!size) { size 1020 libavformat/flvdec.c ret = av_get_packet(s->pb, pkt, size); size 513 libavformat/flvenc.c int size = pkt->size; size 552 libavformat/flvenc.c av_assert0(size); size 567 libavformat/flvenc.c if ((ret = ff_avc_parse_nal_units_buf(pkt->data, &data, &size)) < 0) size 569 libavformat/flvenc.c } else if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && size 589 libavformat/flvenc.c if (size + flags_size >= 1<<24) { size 591 libavformat/flvenc.c size + flags_size, 1<<24); size 595 libavformat/flvenc.c avio_wb24(pb, size + flags_size); size 620 libavformat/flvenc.c avio_write(pb, data ? data : pkt->data, size); size 646 libavformat/flvenc.c avio_write(pb, data ? data : pkt->data, size); size 648 libavformat/flvenc.c avio_wb32(pb, size + flags_size + 11); // previous tag size 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%08x", pkt->side_data[i].size, side_data_crc); size 93 libavformat/frmdec.c for (i = 3; i + 1 <= pkt->size; i += 4) size 670 libavformat/ftp.c static int ftp_read(URLContext *h, unsigned char *buf, int size) size 675 libavformat/ftp.c av_dlog(h, "ftp protocol read %d bytes\n", size); size 691 libavformat/ftp.c read = ffurl_read(s->conn_data, buf, size); size 727 libavformat/ftp.c static int ftp_write(URLContext *h, const unsigned char *buf, int size) size 733 libavformat/ftp.c av_dlog(h, "ftp protocol write %d bytes\n", size); size 744 libavformat/ftp.c written = ffurl_write(s->conn_data, buf, size); 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 76 libavformat/g723_1.c return pkt->size; size 143 libavformat/gif.c int size, bcid; size 153 libavformat/gif.c palette = (uint32_t*)av_packet_get_side_data(pkt, AV_PKT_DATA_PALETTE, &size); size 154 libavformat/gif.c if (palette && size != AVPALETTE_SIZE) { size 174 libavformat/gif.c avio_write(pb, pkt->data, pkt->size); size 195 libavformat/gif.c int size; size 196 libavformat/gif.c void *palette = av_packet_get_side_data(pkt, AV_PKT_DATA_PALETTE, &size); size 202 libavformat/gif.c if (size != AVPALETTE_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 109 libavformat/gopher.c static int gopher_read(URLContext *h, uint8_t *buf, int size) size 112 libavformat/gopher.c int len = ffurl_read(s->hd, buf, size); size 39 libavformat/gsmdec.c int ret, size; size 41 libavformat/gsmdec.c size = GSM_BLOCK_SIZE; size 46 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 886 libavformat/gxfenc.c static int gxf_parse_mpeg_frame(GXFStreamContext *sc, const uint8_t *buf, int size) size 890 libavformat/gxfenc.c for(i=0; i<size-4 && c!=0x100; i++){ size 898 libavformat/gxfenc.c static int gxf_write_media_preamble(AVFormatContext *s, AVPacket *pkt, int size) size 920 libavformat/gxfenc.c avio_wb16(pb, size / 2); size 922 libavformat/gxfenc.c int frame_type = gxf_parse_mpeg_frame(sc, pkt->data, pkt->size); size 933 libavformat/gxfenc.c avio_wb24(pb, size); size 935 libavformat/gxfenc.c avio_w8(pb, size / 4096); size 938 libavformat/gxfenc.c avio_wb32(pb, size); size 956 libavformat/gxfenc.c if (st->codec->codec_id == AV_CODEC_ID_MPEG2VIDEO && pkt->size % 4) /* MPEG-2 frames must be padded */ size 957 libavformat/gxfenc.c padding = 4 - pkt->size % 4; size 959 libavformat/gxfenc.c padding = GXF_AUDIO_PACKET_SIZE - pkt->size; size 960 libavformat/gxfenc.c gxf_write_media_preamble(s, pkt, pkt->size + padding); size 961 libavformat/gxfenc.c avio_write(pb, pkt->data, pkt->size); size 88 libavformat/hdsenc.c int size = AV_RB24(&buf[1]) + 11 + 4; size 89 libavformat/hdsenc.c if (size > buf_size) size 94 libavformat/hdsenc.c os->extra_packet_sizes[os->nb_extra_packets] = size; size 95 libavformat/hdsenc.c os->extra_packets[os->nb_extra_packets] = av_malloc(size); size 98 libavformat/hdsenc.c memcpy(os->extra_packets[os->nb_extra_packets], buf, size); size 103 libavformat/hdsenc.c os->metadata_size = size - 11 - 4; size 109 libavformat/hdsenc.c buf += size; size 110 libavformat/hdsenc.c buf_size -= size; size 1018 libavformat/hevc.c int size, int filter_ps, int *ps_count) size 1024 libavformat/hevc.c ret = ff_avc_parse_nal_units(pb, buf_in, size); size 1028 libavformat/hevc.c ret = ff_avc_parse_nal_units_buf(buf_in, &start, &size); size 1034 libavformat/hevc.c end = start + size; size 1066 libavformat/hevc.c int *size, int filter_ps, int *ps_count) size 1075 libavformat/hevc.c ret = ff_hevc_annexb2mp4(pb, buf_in, *size, filter_ps, ps_count); size 1076 libavformat/hevc.c *size = avio_close_dyn_buf(pb, buf_out); size 1082 libavformat/hevc.c int size, int ps_array_completeness) size 1090 libavformat/hevc.c if (size < 6) { size 1096 libavformat/hevc.c avio_write(pb, data, size); size 1104 libavformat/hevc.c ret = ff_avc_parse_nal_units_buf(data, &start, &size); size 1109 libavformat/hevc.c end = start + size; size 52 libavformat/hevc.h int size, int filter_ps, int *ps_count); size 78 libavformat/hevc.h int *size, int filter_ps, int *ps_count); size 96 libavformat/hevc.h int size, int ps_array_completeness); size 71 libavformat/hls.c int64_t size; size 659 libavformat/hls.c seg->size = seg_size; size 694 libavformat/hls.c if (seg->size >= 0) size 695 libavformat/hls.c buf_size = FFMIN(buf_size, seg->size - pls->cur_seg_offset); size 752 libavformat/hls.c int size = pls->ctx->streams[1]->attached_pic.size; size 753 libavformat/hls.c if (size != apic->buf->size - FF_INPUT_BUFFER_PADDING_SIZE) size 756 libavformat/hls.c if (memcmp(apic->buf->data, pls->ctx->streams[1]->attached_pic.data, size) != 0) size 841 libavformat/hls.c int64_t maxsize = seg->size >= 0 ? seg->size : 1024*1024; size 930 libavformat/hls.c if (seg->size >= 0) { size 934 libavformat/hls.c av_dict_set_int(&opts, "end_offset", seg->url_offset + seg->size, 0); size 44 libavformat/hlsenc.c int64_t size; size 77 libavformat/hlsenc.c int64_t size; // last segment size size 186 libavformat/hlsenc.c int64_t size) size 198 libavformat/hlsenc.c en->size = size; size 280 libavformat/hlsenc.c en->size, en->pos); size 447 libavformat/hlsenc.c hls->size = new_start_pos - hls->start_pos; size 448 libavformat/hlsenc.c ret = hls_append_segment(hls, hls->duration, hls->start_pos, hls->size); size 487 libavformat/hlsenc.c hls->size = avio_tell(hls->avf->pb) - hls->start_pos; size 489 libavformat/hlsenc.c hls_append_segment(hls, hls->duration, hls->start_pos, hls->size); size 255 libavformat/hlsproto.c static int hls_read(URLContext *h, uint8_t *buf, int size) size 264 libavformat/hlsproto.c ret = ffurl_read(s->seg_hd, buf, size); size 78 libavformat/hnm.c hnm->vpkt.size = 0; size 192 libavformat/hnm.c if (hnm->vpkt.size > 0) size 892 libavformat/http.c static int http_buf_read(URLContext *h, uint8_t *buf, int size) size 899 libavformat/http.c if (len > size) size 900 libavformat/http.c len = size; size 907 libavformat/http.c len = ffurl_read(s->hd, buf, size); size 919 libavformat/http.c static int http_buf_read_compressed(URLContext *h, uint8_t *buf, int size) size 938 libavformat/http.c s->inflate_stream.avail_out = size; size 946 libavformat/http.c return size - s->inflate_stream.avail_out; size 950 libavformat/http.c static int http_read_stream(URLContext *h, uint8_t *buf, int size) size 981 libavformat/http.c size = FFMIN(size, s->chunksize); size 985 libavformat/http.c return http_buf_read_compressed(h, buf, size); size 987 libavformat/http.c return http_buf_read(h, buf, size); size 992 libavformat/http.c static int http_read_stream_all(URLContext *h, uint8_t *buf, int size) size 995 libavformat/http.c while (pos < size) { size 996 libavformat/http.c int len = http_read_stream(h, buf + pos, size - pos); size 1030 libavformat/http.c static int store_icy(URLContext *h, int size) size 1064 libavformat/http.c return FFMIN(size, remaining); size 1067 libavformat/http.c static int http_read(URLContext *h, uint8_t *buf, int size) size 1072 libavformat/http.c size = store_icy(h, size); size 1073 libavformat/http.c if (size < 0) size 1074 libavformat/http.c return size; size 1077 libavformat/http.c size = http_read_stream(h, buf, size); size 1078 libavformat/http.c if (size > 0) size 1079 libavformat/http.c s->icy_data_read += size; size 1080 libavformat/http.c return size; size 1084 libavformat/http.c static int http_write(URLContext *h, const uint8_t *buf, int size) size 1093 libavformat/http.c return ffurl_write(s->hd, buf, size); size 1098 libavformat/http.c if (size > 0) { size 1100 libavformat/http.c snprintf(temp, sizeof(temp), "%x\r\n", size); size 1103 libavformat/http.c (ret = ffurl_write(s->hd, buf, size)) < 0 || size 1107 libavformat/http.c return size; size 1335 libavformat/http.c static int http_proxy_write(URLContext *h, const uint8_t *buf, int size) size 1338 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 35 libavformat/icodec.c int size; size 85 libavformat/icodec.c ico->images[i].size = avio_rl32(pb); size 99 libavformat/icodec.c if (ico->images[i].size < 40) size 135 libavformat/icodec.c if ((ret = av_get_packet(pb, pkt, image->size)) < 0) size 139 libavformat/icodec.c if ((ret = av_new_packet(pkt, 14 + image->size)) < 0) size 146 libavformat/icodec.c bytestream_put_le32(&buf, pkt->size); size 151 libavformat/icodec.c if ((ret = avio_read(pb, buf, image->size)) < 0) size 33 libavformat/icoenc.c int size; size 135 libavformat/icoenc.c image->size = pkt->size; size 137 libavformat/icoenc.c avio_write(pb, pkt->data, pkt->size); size 145 libavformat/icoenc.c image->size = pkt->size - 14 + c->height * (c->width + 7) / 8; size 149 libavformat/icoenc.c avio_write(pb, pkt->data + 26, pkt->size - 26); size 182 libavformat/icoenc.c avio_wl32(pb, ico->images[i].size); size 174 libavformat/id3v2.c static unsigned int size_to_syncsafe(unsigned int size) size 176 libavformat/id3v2.c return (((size) & (0x7f << 0)) >> 0) + size 177 libavformat/id3v2.c (((size) & (0x7f << 8)) >> 1) + size 178 libavformat/id3v2.c (((size) & (0x7f << 16)) >> 2) + size 179 libavformat/id3v2.c (((size) & (0x7f << 24)) >> 3); size 1091 libavformat/id3v2.c st->attached_pic.size = apic->buf->size - FF_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 308 libavformat/id3v2enc.c avio_write(dyn_buf, pkt->data, pkt->size); size 214 libavformat/iff.c uint64_t size = avio_rb64(pb); size 223 libavformat/iff.c if (metadata_tag && size > 4) { size 225 libavformat/iff.c int ret = get_metadata(s, metadata_tag, FFMIN(tag_size, size - 4)); size 232 libavformat/iff.c avio_skip(pb, size - (avio_tell(pb) - orig_pos) + (size & 1)); size 248 libavformat/iff.c uint64_t size = avio_rb64(pb); size 253 libavformat/iff.c if (size < 8) size 263 libavformat/iff.c if (size < 2) size 266 libavformat/iff.c if (size < 2 + st->codec->channels * 4) size 286 libavformat/iff.c if (size < 4) size 298 libavformat/iff.c if (size < 4) size 305 libavformat/iff.c ff_id3v2_read(s, ID3v2_DEFAULT_MAGIC, &id3v2_extra_meta, size); size 314 libavformat/iff.c if (size < avio_tell(pb) - orig_pos) { size 321 libavformat/iff.c if (size < 2) size 333 libavformat/iff.c avio_skip(pb, size - (avio_tell(pb) - orig_pos) + (size & 1)); size 58 libavformat/ilbc.c avio_write(s->pb, pkt->data, pkt->size); size 60 libavformat/img2dec.c static int infer_size(int *width_ptr, int *height_ptr, int size) size 65 libavformat/img2dec.c if ((sizes[i][0] * sizes[i][1]) == size) { size 366 libavformat/img2dec.c int size[3] = { 0 }, ret[3] = { 0 }; size 396 libavformat/img2dec.c size[i] = avio_size(f[i]); size 425 libavformat/img2dec.c infer_size(&codec->width, &codec->height, size[0]); size 433 libavformat/img2dec.c size[0] = s->frame_size; size 435 libavformat/img2dec.c size[0] = avio_size(s1->pb); size 437 libavformat/img2dec.c size[0] = 4096; size 441 libavformat/img2dec.c res = av_new_packet(pkt, size[0] + size[1] + size[2]); size 463 libavformat/img2dec.c pkt->size = 0; size 466 libavformat/img2dec.c ret[i] = avio_read(f[i], pkt->data + pkt->size, size[i]); size 470 libavformat/img2dec.c ret[i] = avio_read(f[i], pkt->data + pkt->size, size[i]); size 476 libavformat/img2dec.c pkt->size += ret[i]; size 164 libavformat/img2enc.c avio_write(pb[0], pkt->data, pkt->size); size 28 libavformat/ingenientdec.c int ret, size, w, h, unk1, unk2; size 33 libavformat/ingenientdec.c size = avio_rl32(s->pb); size 45 libavformat/ingenientdec.c size, w, h, unk1, unk2); size 47 libavformat/ingenientdec.c ret = av_get_packet(s->pb, pkt, size); size 35 libavformat/internal.h # define hex_dump_debug(class, buf, size) av_hex_dump_log(class, AV_LOG_DEBUG, buf, size) size 37 libavformat/internal.h # define hex_dump_debug(class, buf, size) size 119 libavformat/internal.h char *ff_data_to_hex(char *buf, const uint8_t *src, int size, int lowercase); size 167 libavformat/internal.h void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 253 libavformat/internal.h int64_t pos, int64_t timestamp, int size, int distance, int flags); size 440 libavformat/internal.h int size); size 449 libavformat/internal.h int ff_alloc_extradata(AVCodecContext *avctx, int size); size 458 libavformat/internal.h int ff_get_extradata(AVCodecContext *avctx, AVIOContext *pb, int size); size 528 libavformat/isom.c int ff_mov_read_chan(AVFormatContext *s, AVStream *st, int64_t size) size 535 libavformat/isom.c if (size < 12) size 539 libavformat/isom.c size -= 4; size 543 libavformat/isom.c avio_skip(pb, size); size 548 libavformat/isom.c size -= 4; size 549 libavformat/isom.c avio_skip(pb, size); size 561 libavformat/isom.c avio_skip(pb, size); size 73 libavformat/isom.h int64_t size; /* total size (excluding the size and type fields) */ size 85 libavformat/isom.h unsigned size; size 94 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 99 libavformat/iv8.c if (ret < size) { size 101 libavformat/iv8.c ret, size); size 72 libavformat/ivfdec.c int ret, size = avio_rl32(s->pb); size 75 libavformat/ivfdec.c ret = av_get_packet(s->pb, pkt, size); size 54 libavformat/ivfenc.c avio_wl32(pb, pkt->size); size 56 libavformat/ivfenc.c avio_write(pb, pkt->data, pkt->size); size 125 libavformat/jvdec.c e->size = avio_rl32(pb); size 128 libavformat/jvdec.c offset += e->size; size 135 libavformat/jvdec.c e->size - jvf->audio_size size 188 libavformat/jvdec.c int size = jvf->video_size + jvf->palette_size; size 189 libavformat/jvdec.c if (av_new_packet(pkt, size + JV_PREAMBLE_SIZE)) size 194 libavformat/jvdec.c ret = avio_read(pb, pkt->data + JV_PREAMBLE_SIZE, size); size 197 libavformat/jvdec.c if (ret < size) { size 202 libavformat/jvdec.c pkt->size = ret + JV_PREAMBLE_SIZE; size 210 libavformat/jvdec.c avio_skip(pb, FFMAX(e->size - jvf->audio_size - jvf->video_size size 55 libavformat/latmenc.c static int latm_decode_extradata(LATMContext *ctx, uint8_t *buf, int size) size 59 libavformat/latmenc.c if (size > MAX_EXTRADATA_SIZE) { size 63 libavformat/latmenc.c ctx->off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1); size 155 libavformat/latmenc.c if (pkt->size > 2 && pkt->data[0] == 0xff && (pkt->data[1] >> 4) == 0xf) { size 161 libavformat/latmenc.c if(pkt->size > 2 && pkt->data[0] == 0x56 && (pkt->data[1] >> 4) == 0xe && size 162 libavformat/latmenc.c (AV_RB16(pkt->data + 1) & 0x1FFF) + 3 == pkt->size) size 168 libavformat/latmenc.c if (pkt->size > 0x1fff) size 171 libavformat/latmenc.c init_put_bits(&bs, ctx->buffer, pkt->size+1024+MAX_EXTRADATA_SIZE); size 176 libavformat/latmenc.c for (i = 0; i <= pkt->size-255; i+=255) size 179 libavformat/latmenc.c put_bits(&bs, 8, pkt->size-i); size 184 libavformat/latmenc.c if (pkt->size && (pkt->data[0] & 0xe1) == 0x81) { size 194 libavformat/latmenc.c avpriv_copy_bits(&bs, pkt->data + 1, 8*pkt->size - 8); size 196 libavformat/latmenc.c avpriv_copy_bits(&bs, pkt->data, 8*pkt->size); size 151 libavformat/libgme.c pkt->size = AUDIO_PKT_SIZE; size 326 libavformat/libmodplug.c pkt->size = ModPlug_Read(modplug->f, pkt->data, AUDIO_PKT_SIZE); size 327 libavformat/libmodplug.c if (pkt->size <= 0) { size 329 libavformat/libmodplug.c return pkt->size == 0 ? AVERROR_EOF : AVERROR(EIO); size 131 libavformat/libnut.c p.len = pkt->size; size 254 libavformat/librtmp.c static int rtmp_write(URLContext *s, const uint8_t *buf, int size) size 259 libavformat/librtmp.c return RTMP_Write(r, buf, size); size 262 libavformat/librtmp.c static int rtmp_read(URLContext *s, uint8_t *buf, int size) size 267 libavformat/librtmp.c return RTMP_Read(r, buf, size); size 157 libavformat/libsmbclient.c static int libsmbc_read(URLContext *h, unsigned char *buf, int size) size 162 libavformat/libsmbclient.c if ((bytes_read = smbc_read(libsmbc->fd, buf, size)) < 0) { size 171 libavformat/libsmbclient.c static int libsmbc_write(URLContext *h, const unsigned char *buf, int size) size 176 libavformat/libsmbclient.c if ((bytes_written = smbc_write(libsmbc->fd, buf, size)) < 0) { size 162 libavformat/libssh.c libssh->filesize = stat->size; size 267 libavformat/libssh.c static int libssh_read(URLContext *h, unsigned char *buf, int size) size 272 libavformat/libssh.c if ((bytes_read = sftp_read(libssh->file, buf, size)) < 0) { size 279 libavformat/libssh.c static int libssh_write(URLContext *h, const unsigned char *buf, int size) size 284 libavformat/libssh.c if ((bytes_written = sftp_write(libssh->file, buf, size)) < 0) { size 88 libavformat/lrcenc.c char *data = av_malloc(pkt->size + 1); size 95 libavformat/lrcenc.c memcpy(data, pkt->data, pkt->size); size 96 libavformat/lrcenc.c data[pkt->size] = '\0'; size 98 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 166 libavformat/matroska.c sd->size = sizeof(*stereo); size 100 libavformat/matroskadec.c int size; size 771 libavformat/matroskadec.c static int ebml_read_uint(AVIOContext *pb, int size, uint64_t *num) size 775 libavformat/matroskadec.c if (size > 8) size 780 libavformat/matroskadec.c while (n++ < size) size 790 libavformat/matroskadec.c static int ebml_read_sint(AVIOContext *pb, int size, int64_t *num) size 794 libavformat/matroskadec.c if (size > 8) size 797 libavformat/matroskadec.c if (size == 0) { size 803 libavformat/matroskadec.c while (n++ < size) size 814 libavformat/matroskadec.c static int ebml_read_float(AVIOContext *pb, int size, double *num) size 816 libavformat/matroskadec.c if (size == 0) size 818 libavformat/matroskadec.c else if (size == 4) size 820 libavformat/matroskadec.c else if (size == 8) size 832 libavformat/matroskadec.c static int ebml_read_ascii(AVIOContext *pb, int size, char **str) size 838 libavformat/matroskadec.c if (!(res = av_malloc(size + 1))) size 840 libavformat/matroskadec.c if (avio_read(pb, (uint8_t *) res, size) != size) { size 844 libavformat/matroskadec.c (res)[size] = '\0'; size 857 libavformat/matroskadec.c av_fast_padded_malloc(&bin->data, &bin->size, length); size 861 libavformat/matroskadec.c bin->size = length; size 865 libavformat/matroskadec.c bin->size = 0; size 900 libavformat/matroskadec.c uint8_t *data, uint32_t size, uint64_t *num) size 903 libavformat/matroskadec.c ffio_init_context(&pb, data, size, 0, NULL, NULL, NULL, NULL); size 904 libavformat/matroskadec.c return ebml_read_num(matroska, &pb, FFMIN(size, 8), num); size 911 libavformat/matroskadec.c uint8_t *data, uint32_t size, int64_t *num) size 917 libavformat/matroskadec.c if ((res = matroska_ebmlnum_uint(matroska, data, size, &unum)) < 0) size 1154 libavformat/matroskadec.c int len_mask = 0x80, size = 1, n = 1, i; size 1162 libavformat/matroskadec.c while (size <= 8 && !(total & len_mask)) { size 1163 libavformat/matroskadec.c size++; size 1166 libavformat/matroskadec.c if (size > 8) size 1169 libavformat/matroskadec.c while (n < size) size 1173 libavformat/matroskadec.c if (p->buf_size < 4 + size + total) size 1184 libavformat/matroskadec.c for (n = 4 + size; n <= 4 + size + total - probelen; n++) size 1225 libavformat/matroskadec.c int header_size = encodings[0].compression.settings.size; size 1584 libavformat/matroskadec.c int size = track->codec_priv.size; size 1586 libavformat/matroskadec.c if (size < 8 + FLAC_STREAMINFO_SIZE || p[4] & 0x7f) { size 1588 libavformat/matroskadec.c track->codec_priv.size = 0; size 1592 libavformat/matroskadec.c track->codec_priv.size = 8 + FLAC_STREAMINFO_SIZE; size 1594 libavformat/matroskadec.c p += track->codec_priv.size; size 1595 libavformat/matroskadec.c size -= track->codec_priv.size; size 1598 libavformat/matroskadec.c while (size >= 4) { size 1604 libavformat/matroskadec.c size -= 4; size 1605 libavformat/matroskadec.c if (block_size > size) size 1627 libavformat/matroskadec.c size -= block_size; size 1674 libavformat/matroskadec.c if (track->video.color_space.size == 4) size 1685 libavformat/matroskadec.c if (encodings[0].encryption.key_id.size > 0) { size 1688 libavformat/matroskadec.c const int b64_size = AV_BASE64_SIZE(encodings[0].encryption.key_id.size); size 1695 libavformat/matroskadec.c encodings[0].encryption.key_id.size); size 1715 libavformat/matroskadec.c } else if (track->codec_priv.size && encodings[0].scope & 2) { size 1718 libavformat/matroskadec.c &track->codec_priv.size, size 1722 libavformat/matroskadec.c track->codec_priv.size = 0; size 1753 libavformat/matroskadec.c track->codec_priv.size >= 40 && size 1765 libavformat/matroskadec.c track->codec_priv.size >= 14 && size 1769 libavformat/matroskadec.c track->codec_priv.size, size 1771 libavformat/matroskadec.c ret = ff_get_wav_header(&b, st->codec, track->codec_priv.size, 0); size 1775 libavformat/matroskadec.c extradata_offset = FFMIN(track->codec_priv.size, 18); size 1777 libavformat/matroskadec.c && (track->codec_priv.size >= 86) size 1786 libavformat/matroskadec.c (track->codec_priv.size >= 21) && size 1823 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_AAC && !track->codec_priv.size) { size 1839 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_ALAC && track->codec_priv.size && track->codec_priv.size < INT_MAX - 12 - FF_INPUT_BUFFER_PADDING_SIZE) { size 1843 libavformat/matroskadec.c extradata_size = 12 + track->codec_priv.size; size 1852 libavformat/matroskadec.c track->codec_priv.size); size 1886 libavformat/matroskadec.c track->codec_priv.size, size 1907 libavformat/matroskadec.c track->codec_priv.size = 0; size 1917 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_FLAC && track->codec_priv.size) { size 1921 libavformat/matroskadec.c } else if (codec_id == AV_CODEC_ID_PRORES && track->codec_priv.size == 4) { size 1924 libavformat/matroskadec.c track->codec_priv.size -= extradata_offset; size 1955 libavformat/matroskadec.c } else if (track->codec_priv.data && track->codec_priv.size > 0) { size 1956 libavformat/matroskadec.c if (ff_alloc_extradata(st->codec, track->codec_priv.size)) size 1960 libavformat/matroskadec.c track->codec_priv.size); size 2126 libavformat/matroskadec.c if (matroska->date_utc.size == 8) size 2136 libavformat/matroskadec.c attachments[j].bin.data && attachments[j].bin.size > 0)) { size 2146 libavformat/matroskadec.c if (ff_alloc_extradata(st->codec, attachments[j].bin.size)) size 2149 libavformat/matroskadec.c attachments[j].bin.size); size 2236 libavformat/matroskadec.c int res = 0, n, size = *buf_size; size 2246 libavformat/matroskadec.c *lace_buf[0] = size; size 2250 libavformat/matroskadec.c av_assert0(size > 0); size 2253 libavformat/matroskadec.c size -= 1; size 2265 libavformat/matroskadec.c if (size <= total) { size 2273 libavformat/matroskadec.c size -= 1; size 2278 libavformat/matroskadec.c if (size <= total) { size 2283 libavformat/matroskadec.c lace_size[n] = size - total; size 2288 libavformat/matroskadec.c if (size % (*laces)) { size 2293 libavformat/matroskadec.c lace_size[n] = size / *laces; size 2300 libavformat/matroskadec.c n = matroska_ebmlnum_uint(matroska, data, size, &num); size 2308 libavformat/matroskadec.c size -= n; size 2313 libavformat/matroskadec.c r = matroska_ebmlnum_sint(matroska, data, size, &snum); size 2321 libavformat/matroskadec.c size -= r; size 2325 libavformat/matroskadec.c if (size <= total) { size 2329 libavformat/matroskadec.c lace_size[*laces - 1] = size - total; size 2336 libavformat/matroskadec.c *buf_size = size; size 2343 libavformat/matroskadec.c uint8_t *data, int size, uint64_t timecode, size 2358 libavformat/matroskadec.c if (size < cfs * h / 2) { size 2367 libavformat/matroskadec.c if (size < w) { size 2374 libavformat/matroskadec.c if (size < sps * w / sps || h<=0 || w%sps) { size 2419 libavformat/matroskadec.c uint8_t **pdst, int *size) size 2423 libavformat/matroskadec.c int srclen = *size; size 2489 libavformat/matroskadec.c *size = dstlen; size 2743 libavformat/matroskadec.c int size, int64_t pos, uint64_t cluster_time, size 2758 libavformat/matroskadec.c if ((n = matroska_ebmlnum_uint(matroska, data, size, &num)) < 0) { size 2763 libavformat/matroskadec.c size -= n; size 2768 libavformat/matroskadec.c "Invalid stream %"PRIu64" or size %u\n", num, size); size 2770 libavformat/matroskadec.c } else if (size <= 3) size 2780 libavformat/matroskadec.c size -= 3; size 2807 libavformat/matroskadec.c res = matroska_parse_laces(matroska, &data, &size, (flags & 0x06) >> 1, size 2831 libavformat/matroskadec.c if (lace_size[n] > size) { size 2867 libavformat/matroskadec.c size -= lace_size[n]; size 2913 libavformat/matroskadec.c if (blocks[i].bin.size > 0 && blocks[i].bin.data) { size 2915 libavformat/matroskadec.c uint8_t* additional = blocks[i].additional.size > 0 ? size 2920 libavformat/matroskadec.c blocks[i].bin.size, blocks[i].bin.pos, size 2924 libavformat/matroskadec.c blocks[i].additional.size, size 2951 libavformat/matroskadec.c if (blocks[i].bin.size > 0 && blocks[i].bin.data) { size 2954 libavformat/matroskadec.c blocks[i].bin.size, blocks[i].bin.pos, size 239 libavformat/matroskaenc.c const void *buf, int size) size 242 libavformat/matroskaenc.c put_ebml_num(pb, size, 0); size 243 libavformat/matroskaenc.c avio_write(pb, buf, size); size 258 libavformat/matroskaenc.c static void put_ebml_void(AVIOContext *pb, uint64_t size) size 262 libavformat/matroskaenc.c av_assert0(size >= 2); size 268 libavformat/matroskaenc.c if (size < 10) size 269 libavformat/matroskaenc.c put_ebml_num(pb, size - 1, 0); size 271 libavformat/matroskaenc.c put_ebml_num(pb, size - 9, 8); size 272 libavformat/matroskaenc.c ffio_fill(pb, 0, currentpos + size - avio_tell(pb)); size 294 libavformat/matroskaenc.c static void put_xiph_size(AVIOContext *pb, int size) size 296 libavformat/matroskaenc.c ffio_fill(pb, 255, size / 255); size 297 libavformat/matroskaenc.c avio_w8(pb, size % 255); size 1442 libavformat/matroskaenc.c mkv->cur_audio_pkt.size = 0; size 1466 libavformat/matroskaenc.c int size = pkt_size + 4; size 1467 libavformat/matroskaenc.c size += ebml_num_size(size); size 1468 libavformat/matroskaenc.c size += 2; // EBML ID for block and block duration size 1469 libavformat/matroskaenc.c size += 8; // max size of block duration size 1470 libavformat/matroskaenc.c size += ebml_num_size(size); size 1471 libavformat/matroskaenc.c size += 1; // blockgroup EBML ID size 1472 libavformat/matroskaenc.c return size; size 1475 libavformat/matroskaenc.c static int mkv_strip_wavpack(const uint8_t *src, uint8_t **pdst, int *size) size 1478 libavformat/matroskaenc.c int srclen = *size; size 1520 libavformat/matroskaenc.c *size = offset; size 1534 libavformat/matroskaenc.c int offset = 0, size = pkt->size, side_data_size = 0; size 1542 libavformat/matroskaenc.c avio_tell(pb), pkt->size, pkt->pts, pkt->dts, pkt->duration, flags); size 1545 libavformat/matroskaenc.c ff_avc_parse_nal_units_buf(pkt->data, &data, &size); size 1549 libavformat/matroskaenc.c ff_hevc_annexb2mp4_buf(pkt->data, &data, &size, 0, NULL); size 1551 libavformat/matroskaenc.c int ret = mkv_strip_wavpack(pkt->data, &data, &size); size 1562 libavformat/matroskaenc.c size -= 8; size 1591 libavformat/matroskaenc.c put_ebml_num(pb, size + 4, 0); size 1596 libavformat/matroskaenc.c avio_write(pb, data + offset, size); size 1623 libavformat/matroskaenc.c int id_size, settings_size, size; size 1636 libavformat/matroskaenc.c size = id_size + 1 + settings_size + 1 + pkt->size; size 1640 libavformat/matroskaenc.c avio_tell(pb), size, pkt->pts, pkt->dts, pkt->duration, flags); size 1642 libavformat/matroskaenc.c blockgroup = start_ebml_master(pb, MATROSKA_ID_BLOCKGROUP, mkv_blockgroup_size(size)); size 1645 libavformat/matroskaenc.c put_ebml_num(pb, size + 4, 0); size 1649 libavformat/matroskaenc.c avio_printf(pb, "%.*s\n%.*s\n%.*s", id_size, id, settings_size, settings, pkt->size, pkt->data); size 1751 libavformat/matroskaenc.c mkv_blockgroup_size(pkt->size)); size 1820 libavformat/matroskaenc.c if (mkv->cur_audio_pkt.size > 0) { size 1881 libavformat/matroskaenc.c if (mkv->cur_audio_pkt.size > 0) { size 84 libavformat/md5enc.c av_hash_update(c->hash, pkt->data, pkt->size); size 135 libavformat/md5enc.c av_hash_update(c->hash, pkt->data, pkt->size); size 138 libavformat/md5enc.c pkt->stream_index, pkt->dts, pkt->pts, pkt->duration, pkt->size); 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 53 libavformat/microdvdenc.c avio_write(avf->pb, pkt->data, pkt->size); size 64 libavformat/mlvdec.c unsigned int size; size 68 libavformat/mlvdec.c size = avio_rl32(pb); size 69 libavformat/mlvdec.c if (size < 52) size 74 libavformat/mlvdec.c avio_skip(pb, size - 24); size 78 libavformat/mlvdec.c static void read_string(AVFormatContext *avctx, AVIOContext *pb, const char *tag, int size) size 80 libavformat/mlvdec.c char * value = av_malloc(size + 1); size 82 libavformat/mlvdec.c avio_skip(pb, size); size 86 libavformat/mlvdec.c avio_read(pb, value, size); size 92 libavformat/mlvdec.c value[size] = 0; size 123 libavformat/mlvdec.c unsigned int size; size 125 libavformat/mlvdec.c size = avio_rl32(pb); size 127 libavformat/mlvdec.c if (size < 16) size 129 libavformat/mlvdec.c size -= 16; size 130 libavformat/mlvdec.c if (vst && type == MKTAG('R','A','W','I') && size >= 164) { size 143 libavformat/mlvdec.c size -= 164; size 144 libavformat/mlvdec.c } else if (ast && type == MKTAG('W', 'A', 'V', 'I') && size >= 16) { size 148 libavformat/mlvdec.c size -= 16; size 150 libavformat/mlvdec.c if (size > 0) size 151 libavformat/mlvdec.c read_string(avctx, pb, "info", size); size 153 libavformat/mlvdec.c } else if (type == MKTAG('I','D','N','T') && size >= 36) { size 156 libavformat/mlvdec.c size -= 36; size 157 libavformat/mlvdec.c if (size >= 32) { size 159 libavformat/mlvdec.c size -= 32; size 161 libavformat/mlvdec.c } else if (type == MKTAG('L','E','N','S') && size >= 48) { size 170 libavformat/mlvdec.c size -= 48; size 171 libavformat/mlvdec.c if (size >= 32) { size 173 libavformat/mlvdec.c size -= 32; size 175 libavformat/mlvdec.c } else if (vst && type == MKTAG('V', 'I', 'D', 'F') && size >= 4) { size 179 libavformat/mlvdec.c size -= 4; size 180 libavformat/mlvdec.c } else if (ast && type == MKTAG('A', 'U', 'D', 'F') && size >= 4) { size 184 libavformat/mlvdec.c size -= 4; size 185 libavformat/mlvdec.c } else if (vst && type == MKTAG('W','B','A','L') && size >= 28) { size 193 libavformat/mlvdec.c size -= 28; size 194 libavformat/mlvdec.c } else if (type == MKTAG('R','T','C','I') && size >= 20) { size 209 libavformat/mlvdec.c size -= 20; size 210 libavformat/mlvdec.c } else if (type == MKTAG('E','X','P','O') && size >= 16) { size 215 libavformat/mlvdec.c size -= 16; size 216 libavformat/mlvdec.c if (size >= 8) { size 218 libavformat/mlvdec.c size -= 8; size 220 libavformat/mlvdec.c } else if (type == MKTAG('S','T','Y','L') && size >= 36) { size 227 libavformat/mlvdec.c size -= 36; size 232 libavformat/mlvdec.c av_log(avctx, AV_LOG_INFO, "unsupported tag %c%c%c%c, size %u\n", type&0xFF, (type>>8)&0xFF, (type>>16)&0xFF, (type>>24)&0xFF, size); size 234 libavformat/mlvdec.c avio_skip(pb, size); size 244 libavformat/mlvdec.c int size, ret; size 250 libavformat/mlvdec.c size = avio_rl32(pb); size 251 libavformat/mlvdec.c if (size < 52) size 322 libavformat/mlvdec.c avio_skip(pb, size - 52); size 377 libavformat/mlvdec.c unsigned int size, space; size 388 libavformat/mlvdec.c pb = mlv->pb[st->index_entries[index].size]; size 392 libavformat/mlvdec.c size = avio_rl32(pb); size 393 libavformat/mlvdec.c if (size < 16) size 406 libavformat/mlvdec.c if (space > UINT_MAX - 24 || size < (24 + space)) size 408 libavformat/mlvdec.c ret = av_get_packet(pb, pkt, size - (24 + space)); size 169 libavformat/mm.c pkt->size = length + MM_PREAMBLE_SIZE; size 147 libavformat/mmf.c int64_t pos, size; size 157 libavformat/mmf.c size = pos - mmf->awapos; size 165 libavformat/mmf.c gatetime = size * 500 / s->streams[0]->codec->sample_rate; size 202 libavformat/mmf.c int64_t size; size 211 libavformat/mmf.c for (;; avio_skip(pb, size)) { size 213 libavformat/mmf.c size = avio_rb32(pb); size 244 libavformat/mmf.c for (;; avio_skip(pb, size)) { size 246 libavformat/mmf.c size = avio_rb32(pb); size 259 libavformat/mmf.c mmf->data_end = avio_tell(pb) + size; size 284 libavformat/mmf.c int64_t left, size; size 288 libavformat/mmf.c size = FFMIN(left, MAX_SIZE); size 289 libavformat/mmf.c if (avio_feof(s->pb) || size <= 0) size 292 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 350 libavformat/mmsh.c static int mmsh_read(URLContext *h, uint8_t *buf, int size) size 358 libavformat/mmsh.c res = ff_mms_read_header(mms, buf, size); size 362 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 590 libavformat/mmst.c static int mms_read(URLContext *h, uint8_t *buf, int size) size 600 libavformat/mmst.c result = ff_mms_read_header(mms, buf, size); size 604 libavformat/mmst.c result = ff_mms_read_data(mms, buf, size); size 616 libavformat/mmst.c result = ff_mms_read_data(mms, buf, size); size 280 libavformat/mov.c return mov_metadata_loci(c, pb, atom.size); size 342 libavformat/mov.c if (c->itunes_metadata && atom.size > 8) { size 349 libavformat/mov.c atom.size -= 16; size 359 libavformat/mov.c } else if (atom.size > 4 && key && !c->itunes_metadata && !raw) { size 361 libavformat/mov.c if (str_size > atom.size) { size 369 libavformat/mov.c atom.size -= 4; size 371 libavformat/mov.c str_size = atom.size; size 380 libavformat/mov.c if (atom.size < 0 || str_size >= INT_MAX/2) size 411 libavformat/mov.c key, str, (char*)&atom.type, str_size_alloc, atom.size); size 423 libavformat/mov.c if ((atom.size -= 5) < 0) size 433 libavformat/mov.c if (atom.size < 9) size 439 libavformat/mov.c if ((atom.size -= 9+str_len) < 0) size 463 libavformat/mov.c if (entries > (atom.size - 1) / MIN_DATA_ENTRY_BOX_SIZE + 1 || size 475 libavformat/mov.c uint32_t size = avio_rb32(pb); size 476 libavformat/mov.c int64_t next = avio_tell(pb) + size - 4; size 478 libavformat/mov.c if (size < 12) size 483 libavformat/mov.c av_dlog(c->fc, "type %.4s size %d\n", (char*)&dref->type, size); size 485 libavformat/mov.c if (dref->type == MKTAG('a','l','i','s') && size > 150) { size 596 libavformat/mov.c title_size = atom.size - 24; size 716 libavformat/mov.c if (atom.size < 16) size 722 libavformat/mov.c ff_mov_read_chan(c->fc, pb, st, atom.size - 4); size 736 libavformat/mov.c if ((ret = ff_get_wav_header(pb, st->codec, atom.size, 0)) < 0) size 768 libavformat/mov.c if (atom.size == 0) /* wrong one (MP4) */ size 790 libavformat/mov.c comp_brand_size = atom.size - 8; size 811 libavformat/mov.c avio_skip(pb, atom.size); size 1057 libavformat/mov.c if (atom.size < 2) size 1085 libavformat/mov.c uint64_t size = (uint64_t)codec->extradata_size + atom.size + 8 + FF_INPUT_BUFFER_PADDING_SIZE; size 1086 libavformat/mov.c if (size > INT_MAX || (uint64_t)atom.size > INT_MAX) size 1088 libavformat/mov.c if ((err = av_reallocp(&codec->extradata, size)) < 0) { size 1092 libavformat/mov.c codec->extradata_size = size - FF_INPUT_BUFFER_PADDING_SIZE; size 1100 libavformat/mov.c int64_t result = atom.size; size 1103 libavformat/mov.c AV_WB32(buf , atom.size + 8); size 1105 libavformat/mov.c err = avio_read(pb, buf + 8, atom.size); size 1107 libavformat/mov.c codec->extradata_size -= atom.size; size 1109 libavformat/mov.c } else if (err < atom.size) { size 1111 libavformat/mov.c codec->extradata_size -= atom.size - err; size 1193 libavformat/mov.c atom.size > 11) { size 1212 libavformat/mov.c if (atom.size == 16) { size 1217 libavformat/mov.c if (length == atom.size) { size 1239 libavformat/mov.c av_log(c, AV_LOG_WARNING, "aclr not decoded - unexpected size %"PRId64"\n", atom.size); size 1259 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1267 libavformat/mov.c if (ff_get_extradata(st->codec, pb, atom.size) < 0) size 1269 libavformat/mov.c } else if (atom.size > 8) { /* to read frma, esds atoms */ size 1274 libavformat/mov.c avio_skip(pb, atom.size); size 1290 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1293 libavformat/mov.c if (atom.size >= 10) { size 1296 libavformat/mov.c unsigned size = avio_rb32(pb); size 1299 libavformat/mov.c if (type == MKTAG('f','i','e','l') && size == atom.size) size 1307 libavformat/mov.c if (ff_get_extradata(st->codec, pb, atom.size) < 0) size 1323 libavformat/mov.c if (atom.size >= (1<<28) || atom.size < 7) size 1332 libavformat/mov.c if ((ret = ff_get_extradata(st->codec, pb, atom.size - 7)) < 0) size 1349 libavformat/mov.c if (atom.size <= 40) size 1353 libavformat/mov.c if ((uint64_t)atom.size > (1<<30)) size 1358 libavformat/mov.c if (ff_get_extradata(st->codec, pb, atom.size - 40) < 0) size 1666 libavformat/mov.c int64_t size) size 1670 libavformat/mov.c MOVAtom fake_atom = { .size = size }; size 1731 libavformat/mov.c int64_t size) size 1734 libavformat/mov.c if ((int)size != size || ff_get_extradata(st->codec, pb, size) < 0) size 1736 libavformat/mov.c if (size > 16) { size 1752 libavformat/mov.c if (size > 30) { size 1755 libavformat/mov.c if (format == AV_RB32("name") && (int64_t)size >= (int64_t)len + 18) { size 1757 libavformat/mov.c if (str_size > 0 && size >= (int)str_size + 26) { size 1775 libavformat/mov.c avio_skip(pb, size); size 1856 libavformat/mov.c int64_t size) size 1869 libavformat/mov.c avio_skip(pb, size); size 1900 libavformat/mov.c int64_t size = avio_rb32(pb); /* size */ size 1903 libavformat/mov.c if (size >= 16) { size 1907 libavformat/mov.c }else if (size <= 7){ size 1908 libavformat/mov.c av_log(c->fc, AV_LOG_ERROR, "invalid size %"PRId64" in stsd\n", size); size 1913 libavformat/mov.c size - (avio_tell(pb) - start_pos))) size 1921 libavformat/mov.c av_dlog(c->fc, "size=%"PRId64" 4CC= %c%c%c%c codec_type=%d\n", size, size 1934 libavformat/mov.c size - (avio_tell(pb) - start_pos)); size 1937 libavformat/mov.c size - (avio_tell(pb) - start_pos)); size 1942 libavformat/mov.c a.size = size - (avio_tell(pb) - start_pos); size 1943 libavformat/mov.c if (a.size > 8) { size 1946 libavformat/mov.c } else if (a.size > 0) size 1947 libavformat/mov.c avio_skip(pb, a.size); size 2484 libavformat/mov.c e->size = sample_size; size 2559 libavformat/mov.c unsigned size, samples; size 2563 libavformat/mov.c size = sc->bytes_per_frame; size 2568 libavformat/mov.c size = (samples / sc->samples_per_frame) * sc->bytes_per_frame; size 2571 libavformat/mov.c size = samples * sc->sample_size; size 2582 libavformat/mov.c e->size = size; size 2587 libavformat/mov.c size, samples); size 2589 libavformat/mov.c current_offset += size; size 2768 libavformat/mov.c static int mov_read_custom_2plus(MOVContext *c, AVIOContext *pb, int size) size 2770 libavformat/mov.c int64_t end = avio_tell(pb) + size; size 2835 libavformat/mov.c int64_t end = avio_tell(pb) + atom.size; size 2838 libavformat/mov.c if (atom.size < 8) size 2844 libavformat/mov.c if (len > atom.size) size 2861 libavformat/mov.c "Unhandled or malformed custom metadata of size %"PRId64"\n", atom.size); size 2867 libavformat/mov.c while (atom.size > 8) { size 2869 libavformat/mov.c atom.size -= 4; size 2872 libavformat/mov.c atom.size += 8; size 3024 libavformat/mov.c frag->size = flags & MOV_TFHD_DEFAULT_SIZE ? size 3025 libavformat/mov.c avio_rb32(pb) : trex->size; size 3078 libavformat/mov.c trex->size = avio_rb32(pb); size 3173 libavformat/mov.c unsigned sample_size = frag->size; size 3247 libavformat/mov.c if (atom.size < 8) size 3250 libavformat/mov.c avio_skip(pb, atom.size - 4); size 3254 libavformat/mov.c atom.size -= 8; size 3256 libavformat/mov.c avio_skip(pb, atom.size); size 3283 libavformat/mov.c cmov_len = atom.size - 6 * 4; size 3299 libavformat/mov.c atom.size = moov_len; size 3375 libavformat/mov.c if (atom.size < sizeof(uuid) || atom.size == INT64_MAX) size 3387 libavformat/mov.c size_t len = atom.size - sizeof(uuid); size 3437 libavformat/mov.c if (atom.size < 8) size 3440 libavformat/mov.c ret = avio_read(pb, content, FFMIN(sizeof(content), atom.size)); size 3540 libavformat/mov.c if (atom.size < 0) size 3541 libavformat/mov.c atom.size = INT64_MAX; size 3542 libavformat/mov.c while (total_size + 8 <= atom.size && !avio_feof(pb)) { size 3544 libavformat/mov.c a.size = atom.size; size 3546 libavformat/mov.c if (atom.size >= 8) { size 3547 libavformat/mov.c a.size = avio_rb32(pb); size 3550 libavformat/mov.c a.size >= 8 && size 3574 libavformat/mov.c if (a.size == 1 && total_size + 8 <= atom.size) { /* 64 bit extended size */ size 3575 libavformat/mov.c a.size = avio_rb64(pb) - 8; size 3580 libavformat/mov.c a.type, (char*)&a.type, (char*)&atom.type, a.size, total_size, atom.size); size 3581 libavformat/mov.c if (a.size == 0) { size 3582 libavformat/mov.c a.size = atom.size - total_size + 8; size 3584 libavformat/mov.c a.size -= 8; size 3585 libavformat/mov.c if (a.size < 0) size 3587 libavformat/mov.c a.size = FFMIN(a.size, atom.size - total_size); size 3601 libavformat/mov.c avio_skip(pb, a.size); size 3612 libavformat/mov.c start_pos + a.size == avio_size(pb))) { size 3614 libavformat/mov.c c->next_root_atom = start_pos + a.size; size 3618 libavformat/mov.c left = a.size - avio_tell(pb) + start_pos; size 3629 libavformat/mov.c total_size += a.size; size 3632 libavformat/mov.c if (total_size < atom.size && atom.size < 0x7ffff) size 3633 libavformat/mov.c avio_skip(pb, atom.size - total_size); size 3762 libavformat/mov.c if (len > sample->size-2) size 3928 libavformat/mov.c uint32_t size = avio_rb32(f); size 3980 libavformat/mov.c avio_seek(f, pos + size, SEEK_SET); size 4040 libavformat/mov.c atom.size = avio_size(pb); size 4042 libavformat/mov.c atom.size = INT64_MAX; size 4166 libavformat/mov.c sd->size = sizeof(int32_t) * 9; size 4231 libavformat/mov.c sample->size = FFMIN(sample->size, (mov->next_root_atom - sample->pos)); size 4240 libavformat/mov.c ret = av_get_packet(sc->pb, pkt, sample->size); size 4256 libavformat/mov.c avpriv_dv_produce_packet(mov->dv_demux, pkt, pkt->data, pkt->size, pkt->pos); size 4258 libavformat/mov.c pkt->size = 0; size 548 libavformat/mov_chan.c int64_t size) size 553 libavformat/mov_chan.c if (size < 12) size 563 libavformat/mov_chan.c if (size < 12ULL + num_descr * 20ULL) size 574 libavformat/mov_chan.c size -= 20; size 589 libavformat/mov_chan.c avio_skip(pb, size - 12); size 66 libavformat/mov_chan.h int64_t size); size 162 libavformat/movenc.c tst = track->cluster[i].size / track->cluster[i].entries; size 169 libavformat/movenc.c int sSize = track->entry ? track->cluster[0].size / track->cluster[0].entries : 0; size 178 libavformat/movenc.c avio_wb32(pb, track->cluster[i].size / size 341 libavformat/movenc.c init_get_bits(&gbc, pkt->data, pkt->size * 8); size 385 libavformat/movenc.c if (pkt->size != hdr->frame_size) { size 389 libavformat/movenc.c while (cumul_size != pkt->size) { size 391 libavformat/movenc.c init_get_bits(&gbc, pkt->data + cumul_size, (pkt->size - cumul_size) * 8); size 420 libavformat/movenc.c return pkt->size; size 432 libavformat/movenc.c if ((ret = av_grow_packet(&info->pkt, pkt->size)) < 0) size 434 libavformat/movenc.c memcpy(info->pkt.data + info->pkt.size - pkt->size, pkt->data, pkt->size); size 448 libavformat/movenc.c return pkt->size; size 457 libavformat/movenc.c int size, i; size 463 libavformat/movenc.c size = 2 + 4 * (info->num_ind_sub + 1); size 464 libavformat/movenc.c buf = av_malloc(size); size 466 libavformat/movenc.c size = AVERROR(ENOMEM); size 470 libavformat/movenc.c init_put_bits(&pbc, buf, size); size 485 libavformat/movenc.c size--; size 492 libavformat/movenc.c avio_wb32(pb, size + 8); size 494 libavformat/movenc.c avio_write(pb, buf, size); size 502 libavformat/movenc.c return size; size 531 libavformat/movenc.c static void put_descr(AVIOContext *pb, int tag, unsigned int size) size 536 libavformat/movenc.c avio_w8(pb, (size >> (7 * i)) | 0x80); size 537 libavformat/movenc.c avio_w8(pb, size & 0x7F); size 542 libavformat/movenc.c uint64_t size = 0; size 547 libavformat/movenc.c size += track->cluster[i].size; size 548 libavformat/movenc.c return size * 8 * track->timescale / track->track_duration; size 741 libavformat/movenc.c int size; size 743 libavformat/movenc.c size = next - start - 4; size 744 libavformat/movenc.c if (size <= 0) size 746 libavformat/movenc.c unescaped_size = vc1_unescape_buffer(start + 4, size, unescaped); size 2410 libavformat/movenc.c int entry_size, entry_count, size; size 2432 libavformat/movenc.c size = 24 + entry_count * entry_size; size 2435 libavformat/movenc.c avio_wb32(pb, size); size 2437 libavformat/movenc.c avio_wb32(pb, size - 8); size 2486 libavformat/movenc.c return size; size 2557 libavformat/movenc.c int ret, size; size 2570 libavformat/movenc.c if ((size = avio_close_dyn_buf(pb_buf, &buf)) > 0) { size 2571 libavformat/movenc.c avio_wb32(pb, size + 8); size 2573 libavformat/movenc.c avio_write(pb, buf, size); size 2765 libavformat/movenc.c int size = 16 + strlen(data); size 2766 libavformat/movenc.c avio_wb32(pb, size); /* size */ size 2771 libavformat/movenc.c return size; size 2785 libavformat/movenc.c int size = 0; size 2791 libavformat/movenc.c size = update_size(pb, pos); size 2793 libavformat/movenc.c return size; size 2824 libavformat/movenc.c int size = 0, tmpo = t ? atoi(t->value) : 0; size 2826 libavformat/movenc.c size = 26; size 2827 libavformat/movenc.c avio_wb32(pb, size); size 2829 libavformat/movenc.c avio_wb32(pb, size-8); /* size */ size 2835 libavformat/movenc.c return size; size 2845 libavformat/movenc.c int size = 0, track = t ? atoi(t->value) : 0; size 2861 libavformat/movenc.c size = 32; size 2863 libavformat/movenc.c return size; size 2872 libavformat/movenc.c int size = 24 + len; size 2881 libavformat/movenc.c avio_wb32(pb, size); size 2883 libavformat/movenc.c avio_wb32(pb, size - 8); size 2890 libavformat/movenc.c return size; size 2935 libavformat/movenc.c int size = 0; size 2942 libavformat/movenc.c size = update_size(pb, pos); size 2943 libavformat/movenc.c return size; size 2957 libavformat/movenc.c int size = len + 8; size 2958 libavformat/movenc.c avio_wb32(pb, size); size 2961 libavformat/movenc.c return size; size 3036 libavformat/movenc.c int ret, size; size 3074 libavformat/movenc.c if ((size = avio_close_dyn_buf(pb_buf, &buf)) > 0) { size 3075 libavformat/movenc.c avio_wb32(pb, size + 8); size 3077 libavformat/movenc.c avio_write(pb, buf, size); size 3140 libavformat/movenc.c uint64_t chunkSize = chunk->size; size 3147 libavformat/movenc.c chunkSize + trk->cluster[i].size < (1<<20)){ size 3148 libavformat/movenc.c chunkSize += trk->cluster[i].size; size 3153 libavformat/movenc.c chunkSize = chunk->size; size 3286 libavformat/movenc.c int size = track->enc->extradata_size; size 3288 libavformat/movenc.c &size)) { size 3291 libavformat/movenc.c size); size 3377 libavformat/movenc.c track->default_size = track->entry ? track->cluster[0].size : 1; size 3409 libavformat/movenc.c if (track->cluster[i].size != track->default_size) size 3439 libavformat/movenc.c avio_wb32(pb, track->cluster[i].size); size 3474 libavformat/movenc.c int size = 8 + 16 + 4 + 1 + 16*n; size 3484 libavformat/movenc.c avio_wb32(pb, size); size 3520 libavformat/movenc.c int size) size 3539 libavformat/movenc.c info->size = size; size 3585 libavformat/movenc.c int i, size = 16 + 4 + 1 + 16 * mov->ism_lookahead; size 3592 libavformat/movenc.c avio_wb32(pb, 8 + size); size 3594 libavformat/movenc.c for (i = 0; i < size; i++) size 3662 libavformat/movenc.c if (i > 1 && track->frag_info[i].offset != track->frag_info[i - 1].offset + track->frag_info[i - 1].size) { size 3666 libavformat/movenc.c ref_size = track->frag_info[i].size; size 3969 libavformat/movenc.c for (i = 0; i < pkt->size - 4; i++) { size 3987 libavformat/movenc.c const uint8_t *start, *next, *end = pkt->data + pkt->size; size 4183 libavformat/movenc.c int size = pkt->size, ret = 0; size 4224 libavformat/movenc.c while (len < size && samples_in_chunk < 100) { size 4236 libavformat/movenc.c samples_in_chunk = size / trk->sample_size; size 4253 libavformat/movenc.c if (enc->codec_id == AV_CODEC_ID_AAC && pkt->size > 2 && size 4268 libavformat/movenc.c &size); size 4269 libavformat/movenc.c avio_write(pb, reformatted_data, size); size 4271 libavformat/movenc.c size = ff_avc_parse_nal_units(pb, pkt->data, pkt->size); size 4277 libavformat/movenc.c ff_hevc_annexb2mp4_buf(pkt->data, &reformatted_data, &size, 0, NULL); size 4278 libavformat/movenc.c avio_write(pb, reformatted_data, size); size 4280 libavformat/movenc.c size = ff_hevc_annexb2mp4(pb, pkt->data, pkt->size, 0, NULL); size 4284 libavformat/movenc.c size = handle_eac3(mov, pkt, trk); size 4285 libavformat/movenc.c if (size < 0) size 4286 libavformat/movenc.c return size; size 4287 libavformat/movenc.c else if (!size) size 4289 libavformat/movenc.c avio_write(pb, pkt->data, size); size 4292 libavformat/movenc.c avio_write(pb, pkt->data, size); size 4298 libavformat/movenc.c trk->vos_len = size; size 4299 libavformat/movenc.c trk->vos_data = av_malloc(size); size 4304 libavformat/movenc.c memcpy(trk->vos_data, pkt->data, size); size 4317 libavformat/movenc.c trk->cluster[trk->entry].pos = avio_tell(pb) - size; size 4320 libavformat/movenc.c trk->cluster[trk->entry].size = size; size 4398 libavformat/movenc.c mov->mdat_size += size; size 4402 libavformat/movenc.c reformatted_data, size); size 4417 libavformat/movenc.c int size = pkt->size; size 4419 libavformat/movenc.c if (!pkt->size) size 4435 libavformat/movenc.c (mov->max_fragment_size && mov->mdat_size + size >= mov->max_fragment_size) || size 4454 libavformat/movenc.c end.size = sizeof(data); size 4476 libavformat/movenc.c if (!pkt->size) return 0; /* Discard 0 sized packets */ size 4540 libavformat/movenc.c int size; size 4575 libavformat/movenc.c if ((size = avio_close_dyn_buf(pb, &buf)) > 0) { size 4577 libavformat/movenc.c track->enc->extradata_size = size; size 4598 libavformat/movenc.c pkt.size = len + 2 + 12; size 4599 libavformat/movenc.c pkt.data = av_malloc(pkt.size); size 4620 libavformat/movenc.c AVPacket pkt = {.stream_index = index, .flags = AV_PKT_FLAG_KEY, .size = 4}; size 4648 libavformat/movenc.c pkt.data = av_malloc(pkt.size); size 5344 libavformat/movenc.c int64_t size; size 5347 libavformat/movenc.c size = mov->reserved_moov_size - (avio_tell(pb) - mov->reserved_moov_pos); size 5348 libavformat/movenc.c if (size < 8){ size 5349 libavformat/movenc.c av_log(s, AV_LOG_ERROR, "reserved_moov_size is too small, needed %"PRId64" additional\n", 8-size); size 5353 libavformat/movenc.c avio_wb32(pb, size); size 5355 libavformat/movenc.c ffio_fill(pb, 0, size - 8); size 48 libavformat/movenc.h unsigned int size; size 60 libavformat/movenc.h int size; size 67 libavformat/movenc.h int size; size 77 libavformat/movenc.h 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 373 libavformat/mp3dec.c int ret, size; size 376 libavformat/mp3dec.c size= MP3_PACKET_SIZE; size 379 libavformat/mp3dec.c size= FFMIN(size, mp3->filesize - pos); size 381 libavformat/mp3dec.c ret= av_get_packet(s->pb, pkt, size); size 397 libavformat/mp3dec.c pkt->size = ret; size 107 libavformat/mp3enc.c int32_t size; size 215 libavformat/mp3enc.c mp3->size = mpah.frame_size; size 286 libavformat/mp3enc.c mp3->size += pkt->size; size 289 libavformat/mp3enc.c mp3->bag[mp3->pos] = mp3->size; size 310 libavformat/mp3enc.c if (pkt->data && pkt->size >= 4) { size 324 libavformat/mp3enc.c "is invalid, writing it anyway.\n", pkt->size, h); size 331 libavformat/mp3enc.c if (base + 4 <= pkt->size) { size 341 libavformat/mp3enc.c if (base + 4 <= pkt->size && MKBETAG('V','B','R','I') == AV_RB32(pkt->data + base)) size 347 libavformat/mp3enc.c mp3->audio_size += pkt->size; size 349 libavformat/mp3enc.c mp3->audio_crc, pkt->data, pkt->size); size 389 libavformat/mp3enc.c AV_WB32(mp3->xing_frame + mp3->xing_offset + 12, mp3->size); size 395 libavformat/mp3enc.c int seek_point = 256LL * mp3->bag[j] / mp3->size; size 36 libavformat/mpc.c int size, skip; size 121 libavformat/mpc.c int ret, size, size2, curbits, cur = c->curframe; size 145 libavformat/mpc.c size = ((size2 + curbits + 31) & ~31) >> 3; size 148 libavformat/mpc.c c->frames[cur].size = size; size 150 libavformat/mpc.c av_add_index_entry(s->streams[0], cur, cur, size, 0, AVINDEX_KEYFRAME); size 155 libavformat/mpc.c if ((ret = av_new_packet(pkt, size + 4)) < 0) size 165 libavformat/mpc.c ret = avio_read(s->pb, pkt->data + 4, size); size 168 libavformat/mpc.c if(ret < size){ size 172 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 + FF_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, FF_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 179 libavformat/mpc8.c for(; i < size; i++){ size 192 libavformat/mpc8.c static void mpc8_handle_chunk(AVFormatContext *s, int tag, int64_t chunk_pos, int64_t size) size 199 libavformat/mpc8.c pos = avio_tell(pb) + size; size 205 libavformat/mpc8.c avio_skip(pb, size); size 215 libavformat/mpc8.c int64_t size, pos; size 225 libavformat/mpc8.c mpc8_get_chunk_header(pb, &tag, &size); size 226 libavformat/mpc8.c if (size < 0) { size 232 libavformat/mpc8.c mpc8_handle_chunk(s, tag, pos, size); size 263 libavformat/mpc8.c size -= avio_tell(pb) - pos; size 264 libavformat/mpc8.c if (size > 0) size 265 libavformat/mpc8.c avio_skip(pb, size); size 280 libavformat/mpc8.c int64_t pos, size; size 289 libavformat/mpc8.c mpc8_get_chunk_header(s->pb, &tag, &size); size 290 libavformat/mpc8.c if (size < 0) size 293 libavformat/mpc8.c if(av_get_packet(s->pb, pkt, size) < 0) size 301 libavformat/mpc8.c mpc8_handle_chunk(s, tag, pos, size); size 239 libavformat/mpeg.c int len, size, startcode, c, flags, header_len; size 249 libavformat/mpeg.c size = MAX_SYNC_SIZE; size 250 libavformat/mpeg.c startcode = find_next_start_code(s->pb, &size, &m->header_state); size 621 libavformat/mpeg.c pkt->size); size 898 libavformat/mpeg.c pkt->size = 0; size 909 libavformat/mpeg.c if (pkt->size) // raise packet even if incomplete size 930 libavformat/mpeg.c n = avio_read(pb, pkt->data + (pkt->size - to_read), to_read); size 932 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 579 libavformat/mpegenc.c if (pkt_desc->size == pkt_desc->unwritten_size) size 595 libavformat/mpegenc.c int size, payload_size, startcode, id, stuffing_size, i, header_len; size 613 libavformat/mpegenc.c size = put_pack_header(ctx, buf_ptr, scr); size 614 libavformat/mpegenc.c buf_ptr += size; size 623 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, id); size 624 libavformat/mpegenc.c buf_ptr += size; size 628 libavformat/mpegenc.c int PES_bytes_to_fill = s->packet_size - size - 10; size 638 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, 0); size 639 libavformat/mpegenc.c buf_ptr += size; size 640 libavformat/mpegenc.c size = buf_ptr - buffer; size 641 libavformat/mpegenc.c avio_write(ctx->pb, buffer, size); size 662 libavformat/mpegenc.c size = put_pack_header(ctx, buf_ptr, scr); size 664 libavformat/mpegenc.c buf_ptr += size; size 673 libavformat/mpegenc.c size = put_system_header(ctx, buf_ptr, 0); size 674 libavformat/mpegenc.c buf_ptr += size; size 678 libavformat/mpegenc.c size = buf_ptr - buffer; size 679 libavformat/mpegenc.c avio_write(ctx->pb, buffer, size); size 681 libavformat/mpegenc.c packet_size = s->packet_size - size; size 938 libavformat/mpegenc.c if (stream->buffer_index < pkt_desc->size || size 942 libavformat/mpegenc.c i, stream->buffer_index, pkt_desc->size); size 945 libavformat/mpegenc.c stream->buffer_index -= pkt_desc->size; size 992 libavformat/mpegenc.c && stream->predecode_packet->size > stream->buffer_index) size 1047 libavformat/mpegenc.c if (timestamp_packet->unwritten_size == timestamp_packet->size) { size 1103 libavformat/mpegenc.c int size = pkt->size; size 1145 libavformat/mpegenc.c pkt_desc->size = size; size 1150 libavformat/mpegenc.c if (av_fifo_realloc2(stream->fifo, av_fifo_size(stream->fifo) + size) < 0) size 1164 libavformat/mpegenc.c av_fifo_generic_write(stream->fifo, buf, size, NULL); size 521 libavformat/mpegts.c static int analyze(const uint8_t *buf, int size, int packet_size, int *index, size 531 libavformat/mpegts.c for (i = 0; i < size - 3; i++) { size 549 libavformat/mpegts.c static int get_packet_size(const uint8_t *buf, int size) size 553 libavformat/mpegts.c if (size < (TS_FEC_PACKET_SIZE * 5 + 1)) size 556 libavformat/mpegts.c score = analyze(buf, size, TS_PACKET_SIZE, NULL, 0); size 557 libavformat/mpegts.c dvhs_score = analyze(buf, size, TS_DVHS_PACKET_SIZE, NULL, 0); size 558 libavformat/mpegts.c fec_score = analyze(buf, size, TS_FEC_PACKET_SIZE, NULL, 0); size 835 libavformat/mpegts.c pkt->size = pes->data_index; size 843 libavformat/mpegts.c memset(pkt->data + pkt->size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 1230 libavformat/mpegts.c const uint8_t *buf, unsigned size, size 1234 libavformat/mpegts.c if (size > (1 << 30)) size 1237 libavformat/mpegts.c if ((ret = ffio_init_context(&d->pb, (unsigned char *)buf, size, 0, size 1418 libavformat/mpegts.c static int mp4_read_iods(AVFormatContext *s, const uint8_t *buf, unsigned size, size 1424 libavformat/mpegts.c ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count); size 1428 libavformat/mpegts.c ret = parse_mp4_descr(&d, avio_tell(&d.pb), size, MP4IODescrTag); size 1434 libavformat/mpegts.c static int mp4_read_od(AVFormatContext *s, const uint8_t *buf, unsigned size, size 1440 libavformat/mpegts.c ret = init_MP4DescrParseContext(&d, s, buf, size, descr, max_descr_count); size 1444 libavformat/mpegts.c ret = parse_mp4_descr_arr(&d, avio_tell(&d.pb), size); size 2386 libavformat/mpegts.c const int size = p->buf_size; size 2390 libavformat/mpegts.c int check_count = size / TS_FEC_PACKET_SIZE; size 2606 libavformat/mpegts.c pkt->size = -1; size 2624 libavformat/mpegts.c if (!ret && pkt->size < 0) size 940 libavformat/mpegtsenc.c static void extend_af(uint8_t *pkt, int size) size 944 libavformat/mpegtsenc.c pkt[4] += size; size 1206 libavformat/mpegtsenc.c if (pkt->size < 5 || AV_RB32(pkt->data) != 0x0000001 && AV_RB24(pkt->data) != 0x000001) { size 1213 libavformat/mpegtsenc.c av_log(s, AV_LOG_WARNING, "H.264 bitstream error, startcode missing, size %d", pkt->size); size 1214 libavformat/mpegtsenc.c if (pkt->size) av_log(s, AV_LOG_WARNING, " data %08X", AV_RB32(pkt->data)); size 1222 libavformat/mpegtsenc.c if (pkt->size < 5 || AV_RB32(pkt->data) != 0x0000001) { size 1227 libavformat/mpegtsenc.c av_log(s, AV_LOG_WARNING, "HEVC bitstream error, startcode missing, size %d", pkt->size); size 1228 libavformat/mpegtsenc.c if (pkt->size) av_log(s, AV_LOG_WARNING, " data %08X", AV_RB32(pkt->data)); size 1237 libavformat/mpegtsenc.c int size = pkt->size; size 1272 libavformat/mpegtsenc.c const uint8_t *p = buf, *buf_end = p + size; size 1293 libavformat/mpegtsenc.c data = av_malloc(pkt->size + 6 + extradd); size 1297 libavformat/mpegtsenc.c memcpy(data + 6 + extradd, pkt->data, pkt->size); size 1302 libavformat/mpegtsenc.c size = pkt->size + 6 + extradd; size 1305 libavformat/mpegtsenc.c if (pkt->size < 2) { size 1321 libavformat/mpegtsenc.c pkt2.size = pkt->size; size 1334 libavformat/mpegtsenc.c size = avio_close_dyn_buf(ts_st->amux->pb, &data); size 1359 libavformat/mpegtsenc.c if (ts_st->payload_size && ts_st->payload_size + size > ts->pes_payload_size) { size 1366 libavformat/mpegtsenc.c if (st->codec->codec_type != AVMEDIA_TYPE_AUDIO || size > ts->pes_payload_size) { size 1369 libavformat/mpegtsenc.c mpegts_write_pes(s, st, buf, size, pts, dts, size 1381 libavformat/mpegtsenc.c memcpy(ts_st->payload + ts_st->payload_size, buf, size); size 1382 libavformat/mpegtsenc.c ts_st->payload_size += size; size 52 libavformat/mpjpeg.c snprintf(buf1, sizeof(buf1), "Content-length: %d\r\n\r\n", pkt->size); size 54 libavformat/mpjpeg.c avio_write(s->pb, pkt->data, pkt->size); size 106 libavformat/msnwc_tcp.c uint32_t size, timestamp; size 112 libavformat/msnwc_tcp.c size = avio_rl32(pb); size 117 libavformat/msnwc_tcp.c if(!size || av_get_packet(pb, pkt, size) != size) size 131 libavformat/msnwc_tcp.c return HEADER_SIZE + size; size 446 libavformat/mux.c av_ts2str(pkt->pts), av_ts2str(pkt->dts), av_ts2str(st->cur_dts), delay, pkt->size, pkt->stream_index); size 515 libavformat/mux.c av_get_audio_frame_duration(st->codec, pkt->size); size 520 libavformat/mux.c if (frame_size >= 0 && (pkt->size || st->pts.num != st->pts.den >> 1 || st->pts.val)) { size 592 libavformat/mux.c av_assert0(pkt->size == UNCODED_FRAME_PACKET_SIZE); size 684 libavformat/mux.c av_assert0(pkt->size == UNCODED_FRAME_PACKET_SIZE); size 702 libavformat/mux.c st->interleaver_chunk_size += pkt->size; size 880 libavformat/mux.c pkt->size, av_ts2str(pkt->dts), av_ts2str(pkt->pts)); size 1018 libavformat/mux.c pkt.size = UNCODED_FRAME_PACKET_SIZE; 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->codec->sample_rate = var_read_int(pb, size); size 162 libavformat/mvdec.c st->codec->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->codec->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->codec->width = var_read_int(pb, size); size 212 libavformat/mvdec.c if (var_read_int(pb, size) == 1101) { size 217 libavformat/mvdec.c var_read_metadata(avctx, name, size); size 219 libavformat/mvdec.c avio_skip(pb, size); // ignore size 228 libavformat/mvdec.c const char *name, int size)) size 237 libavformat/mvdec.c int size; size 240 libavformat/mvdec.c size = avio_rb32(pb); size 241 libavformat/mvdec.c if (size < 0) { size 242 libavformat/mvdec.c av_log(avctx, AV_LOG_ERROR, "entry size %d is invalid\n", size); size 245 libavformat/mvdec.c if (parse(avctx, st, name, size) < 0) { size 247 libavformat/mvdec.c avio_skip(pb, size); size 259 libavformat/mvdec.c uint32_t size = avio_rb32(pb); size 261 libavformat/mvdec.c av_add_index_entry(st, pos, timestamp, size, 0, AVINDEX_KEYFRAME); size 263 libavformat/mvdec.c timestamp += size / (st->codec->channels * 2); size 426 libavformat/mvdec.c ret = av_get_packet(pb, pkt, index->size); size 260 libavformat/mxfdec.c typedef int MXFMetadataReadFunc(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset); size 323 libavformat/mxfdec.c uint64_t size = avio_r8(pb); size 324 libavformat/mxfdec.c if (size & 0x80) { /* long form */ size 325 libavformat/mxfdec.c int bytes_num = size & 0x7f; size 329 libavformat/mxfdec.c size = 0; size 331 libavformat/mxfdec.c size = size << 8 | avio_r8(pb); size 333 libavformat/mxfdec.c return size; size 336 libavformat/mxfdec.c static int mxf_read_sync(AVIOContext *pb, const uint8_t *key, unsigned size) size 339 libavformat/mxfdec.c for (i = 0; i < size && !avio_feof(pb); i++) { size 346 libavformat/mxfdec.c return i == size; size 409 libavformat/mxfdec.c int64_t size; size 441 libavformat/mxfdec.c size = klv_decode_ber_length(pb); size 442 libavformat/mxfdec.c if (size < 32 || size - 32 < orig_size) size 450 libavformat/mxfdec.c size -= 32; size 451 libavformat/mxfdec.c size = av_get_packet(pb, pkt, size); size 452 libavformat/mxfdec.c if (size < 0) size 453 libavformat/mxfdec.c return size; size 454 libavformat/mxfdec.c else if (size < plaintext_size) size 456 libavformat/mxfdec.c size -= plaintext_size; size 459 libavformat/mxfdec.c &pkt->data[plaintext_size], size >> 4, ivec, 1); size 466 libavformat/mxfdec.c static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 492 libavformat/mxfdec.c static int mxf_read_partition_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 519 libavformat/mxfdec.c partition->pack_length = avio_tell(pb) - klv_offset + size; size 665 libavformat/mxfdec.c static int mxf_read_cryptographic_context(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 668 libavformat/mxfdec.c if (size != 16) size 688 libavformat/mxfdec.c static int mxf_read_content_storage(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 701 libavformat/mxfdec.c static int mxf_read_source_clip(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 723 libavformat/mxfdec.c static int mxf_read_timecode_component(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 740 libavformat/mxfdec.c static int mxf_read_pulldown_component(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 751 libavformat/mxfdec.c static int mxf_read_track(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 772 libavformat/mxfdec.c static int mxf_read_sequence(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 792 libavformat/mxfdec.c static int mxf_read_essence_group(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 806 libavformat/mxfdec.c static int mxf_read_utf16_string(AVIOContext *pb, int size, char** str) size 811 libavformat/mxfdec.c if (size < 0) size 814 libavformat/mxfdec.c buf_size = size + size / 2 + 1; size 819 libavformat/mxfdec.c if ((ret = avio_get_str16be(pb, size, *str, buf_size)) < 0) { size 827 libavformat/mxfdec.c static int mxf_read_package(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 843 libavformat/mxfdec.c return mxf_read_utf16_string(pb, size, &package->name); size 874 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 931 libavformat/mxfdec.c static int mxf_read_generic_descriptor(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 998 libavformat/mxfdec.c descriptor->extradata = av_malloc(size); size 1001 libavformat/mxfdec.c descriptor->extradata_size = size; size 1002 libavformat/mxfdec.c avio_read(pb, descriptor->extradata, size); size 2050 libavformat/mxfdec.c if ((ret = mxf_read_utf16_string(pb, size, &str)) < 0) \ size 2069 libavformat/mxfdec.c static int mxf_read_identification_metadata(void *arg, AVIOContext *pb, int tag, int size, UID _uid, int64_t klv_offset) size 2106 libavformat/mxfdec.c static int mxf_read_preface_metadata(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) size 2184 libavformat/mxfdec.c int size = avio_rb16(pb); /* KLV specified by 0x53 */ size 2185 libavformat/mxfdec.c uint64_t next = avio_tell(pb) + size; size 2188 libavformat/mxfdec.c av_dlog(mxf->fc, "local tag %#04x size %d\n", tag, size); size 2189 libavformat/mxfdec.c if (!size) { /* ignore empty tag, needed for some files with empty UMID tag */ size 2206 libavformat/mxfdec.c } else if ((ret = read_child(ctx, pb, tag, size, uid, -1)) < 0) { size 2742 libavformat/mxfdec.c int i, total = 0, size = 0; size 2765 libavformat/mxfdec.c while (spf->samples_per_frame[size]) { size 2766 libavformat/mxfdec.c total += spf->samples_per_frame[size]; size 2767 libavformat/mxfdec.c size++; size 2770 libavformat/mxfdec.c av_assert2(size); size 2772 libavformat/mxfdec.c *sample_count = (mxf->current_edit_unit / size) * (uint64_t)total; size 2773 libavformat/mxfdec.c for (i = 0; i < mxf->current_edit_unit % size; i++) { size 2795 libavformat/mxfdec.c track->sample_count += pkt->size / (codec->channels * (int64_t)bits_per_sample / 8); size 2902 libavformat/mxfdec.c int ret, size; size 2932 libavformat/mxfdec.c if ((size = next_pos - pos) <= 0) { size 2933 libavformat/mxfdec.c av_log(s, AV_LOG_ERROR, "bad size: %i\n", size); size 2940 libavformat/mxfdec.c if ((size = av_get_packet(s->pb, pkt, size)) < 0) size 2941 libavformat/mxfdec.c return size; size 464 libavformat/mxfenc.c int size; size 471 libavformat/mxfenc.c size = (av_log2(len) >> 3) + 1; size 474 libavformat/mxfenc.c avio_w8(pb, 0x80 + size); size 475 libavformat/mxfenc.c while(size) { size 476 libavformat/mxfenc.c size--; size 477 libavformat/mxfenc.c avio_w8(pb, len >> 8 * size & 0xff); size 525 libavformat/mxfenc.c static void mxf_write_local_tag(AVIOContext *pb, int size, int tag) size 528 libavformat/mxfenc.c avio_wb16(pb, size); size 631 libavformat/mxfenc.c int i, size = strlen(value); size 632 libavformat/mxfenc.c mxf_write_local_tag(pb, size*2, tag); size 633 libavformat/mxfenc.c for (i = 0; i < size; i++) size 890 libavformat/mxfenc.c static void mxf_write_generic_desc(AVFormatContext *s, AVStream *st, const UID key, unsigned size) size 897 libavformat/mxfenc.c klv_encode_ber4_length(pb, size+20+8+12+20); size 919 libavformat/mxfenc.c static void mxf_write_cdci_common(AVFormatContext *s, AVStream *st, const UID key, unsigned size) size 926 libavformat/mxfenc.c unsigned desc_size = size+8+8+8+8+8+8+5+16+sc->interlaced*4+12+20; size 1028 libavformat/mxfenc.c static void mxf_write_generic_sound_common(AVFormatContext *s, AVStream *st, const UID key, unsigned size) size 1034 libavformat/mxfenc.c mxf_write_generic_desc(s, st, key, size+5+12+8+8); size 1066 libavformat/mxfenc.c static void mxf_write_wav_common(AVFormatContext *s, AVStream *st, const UID key, unsigned size) size 1070 libavformat/mxfenc.c mxf_write_generic_sound_common(s, st, key, size+6+8); size 1199 libavformat/mxfenc.c static unsigned klv_fill_size(uint64_t size) size 1201 libavformat/mxfenc.c unsigned pad = KAG_SIZE - (size & (KAG_SIZE-1)); size 1470 libavformat/mxfenc.c if (pkt->size < 43) size 1552 libavformat/mxfenc.c if (pkt->size < 120000) size 1645 libavformat/mxfenc.c const uint8_t *buf_end = pkt->data + pkt->size; size 1651 libavformat/mxfenc.c if (pkt->size > extra_size) size 1652 libavformat/mxfenc.c buf_end -= pkt->size - extra_size; // no need to parse beyond SPS/PPS header size 1686 libavformat/mxfenc.c frame_size = pkt->size + extra_size; size 1745 libavformat/mxfenc.c for(i = 0; i < pkt->size - 4; i++) { size 1751 libavformat/mxfenc.c } else if (i + 5 < pkt->size && (pkt->data[i+1] & 0xf0) == 0x80) { // pict coding ext size 2034 libavformat/mxfenc.c klv_encode_ber4_length(pb, pkt->size); size 2035 libavformat/mxfenc.c avio_write(pb, pkt->data, pkt->size); size 2038 libavformat/mxfenc.c pad = packet_size - pkt->size - 16 - 4; size 2055 libavformat/mxfenc.c int frame_size = pkt->size / st->codec->block_align; size 2057 libavformat/mxfenc.c uint8_t *end = pkt->data + pkt->size; size 2127 libavformat/mxfenc.c avio_write(pb, pkt->data, pkt->size); size 2128 libavformat/mxfenc.c mxf->body_offset += pkt->size; size 2225 libavformat/mxfenc.c klv_encode_ber4_length(pb, pkt->size); // write length size 2226 libavformat/mxfenc.c avio_write(pb, pkt->data, pkt->size); size 2227 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 180 libavformat/mxg.c pkt->size = mxg->buffer_ptr - mxg->soi_ptr; size 192 libavformat/mxg.c return pkt->size; size 197 libavformat/mxg.c size = AV_RB16(mxg->buffer_ptr); size 198 libavformat/mxg.c if (size < 2) size 201 libavformat/mxg.c if (mxg->cache_size < size) { size 202 libavformat/mxg.c ret = mxg_update_cache(s, size); size 208 libavformat/mxg.c mxg->cache_size -= size; size 211 libavformat/mxg.c mxg->buffer_ptr += size; size 213 libavformat/mxg.c if (marker == APP13 && size >= 16) { /* audio data */ size 223 libavformat/mxg.c pkt->size = size - 14; size 233 libavformat/mxg.c return pkt->size; size 234 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 91 libavformat/ncdec.c return size; size 215 libavformat/nsvdec.c #define print_tag(str, tag, size) \ size 273 libavformat/nsvdec.c unsigned int size; size 283 libavformat/nsvdec.c size = avio_rl32(pb); size 284 libavformat/nsvdec.c if (size < 28) size 286 libavformat/nsvdec.c nsv->NSVf_end = size; size 290 libavformat/nsvdec.c av_dlog(s, "NSV NSVf chunk_size %u\n", size); size 354 libavformat/nsvdec.c nsv->nsvs_file_offset[i] = avio_rl32(pb) + size; size 369 libavformat/nsvdec.c avio_seek(pb, nsv->base_offset + size, SEEK_SET); /* required for dumbdriving-271.nsv (2 extra bytes) */ size 682 libavformat/nsvdec.c return pkt->size; size 123 libavformat/nutdec.c int64_t size; size 130 libavformat/nutdec.c size = ffio_read_varlen(bc); size 131 libavformat/nutdec.c if (size > 4096) size 133 libavformat/nutdec.c if (ffio_get_checksum(bc) && size > 4096) size 138 libavformat/nutdec.c return size; size 923 libavformat/nutdec.c int size, flags, size_mul, pts_delta, i, reserved_count; size 936 libavformat/nutdec.c size = nut->frame_code[frame_code].size_lsb; size 960 libavformat/nutdec.c size += size_mul * ffio_read_varlen(bc); size 974 libavformat/nutdec.c if (size > 4096) size 976 libavformat/nutdec.c size -= nut->header_len[*header_idx]; size 981 libavformat/nutdec.c size > 2 * nut->max_distance || size 990 libavformat/nutdec.c return size; size 997 libavformat/nutdec.c int size, stream_id, discard, ret; size 1002 libavformat/nutdec.c size = decode_frame_header(nut, &pts, &stream_id, &header_idx, frame_code); size 1003 libavformat/nutdec.c if (size < 0) size 1004 libavformat/nutdec.c return size; size 1018 libavformat/nutdec.c avio_skip(bc, size); size 1022 libavformat/nutdec.c ret = av_new_packet(pkt, size + nut->header_len[header_idx]); size 1029 libavformat/nutdec.c if (read_sm_data(s, bc, pkt, 0, pkt->pos + size) < 0) size 1031 libavformat/nutdec.c if (read_sm_data(s, bc, pkt, 1, pkt->pos + size) < 0) size 1034 libavformat/nutdec.c size -= sm_size; size 1035 libavformat/nutdec.c pkt->size -= sm_size; size 1038 libavformat/nutdec.c ret = avio_read(bc, pkt->data + nut->header_len[header_idx], size); size 1039 libavformat/nutdec.c if (ret != size) { size 38 libavformat/nutenc.c static int find_expected_header(AVCodecContext *c, 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, AVCodecContext *c, int size, int frame_type) size 110 libavformat/nutenc.c int len = find_expected_header(c, 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 801 libavformat/nutenc.c if (pkt->size < nut->header_len[fc->header_idx] || size 802 libavformat/nutenc.c (pkt->size > 4096 && fc->header_idx) || size 816 libavformat/nutenc.c if (pkt->size > 4096) size 820 libavformat/nutenc.c if (pkt->size >= nut->header_len[i] size 844 libavformat/nutenc.c int size = pkt->side_data[i].size; size 845 libavformat/nutenc.c const uint8_t *data_end = data + size; size 850 libavformat/nutenc.c if (!size || data[size-1]) { size 890 libavformat/nutenc.c ff_put_v(dyn_bc, pkt->side_data[i].size); size 891 libavformat/nutenc.c avio_write(dyn_bc, data, pkt->side_data[i].size); size 964 libavformat/nutenc.c int data_size = pkt->size; size 1143 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; size 84 libavformat/nuv.c size = PKTSIZE(avio_rl32(pb)); size 90 libavformat/nuv.c if (ff_get_extradata(vst->codec, pb, size) < 0) size 92 libavformat/nuv.c size = 0; size 99 libavformat/nuv.c size = PKTSIZE(avio_rl32(pb)); size 100 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 242 libavformat/nuv.c int ret, size; size 253 libavformat/nuv.c size = PKTSIZE(AV_RL32(&hdr[8])); size 258 libavformat/nuv.c avio_skip(pb, size); size 264 libavformat/nuv.c avio_skip(pb, size); size 267 libavformat/nuv.c ret = av_new_packet(pkt, copyhdrsize + size); size 276 libavformat/nuv.c ret = avio_read(pb, pkt->data + copyhdrsize, size); size 281 libavformat/nuv.c if (ret < size) size 287 libavformat/nuv.c avio_skip(pb, size); size 290 libavformat/nuv.c ret = av_get_packet(pb, pkt, size); size 302 libavformat/nuv.c avio_skip(pb, size); size 338 libavformat/nuv.c int size, key, idx; size 351 libavformat/nuv.c size = PKTSIZE(AV_RL32(&hdr[8])); size 370 libavformat/nuv.c av_add_index_entry(s->streams[stream_index], pos, dts, size + HDRSIZE, 0, size 377 libavformat/nuv.c avio_skip(pb, size); size 163 libavformat/oggdec.c static const struct ogg_codec *ogg_find_codec(uint8_t *buf, int size) size 168 libavformat/oggdec.c if (size >= ogg_codecs[i]->magicsize && size 241 libavformat/oggdec.c size_t size; size 250 libavformat/oggdec.c if (av_size_mult(ogg->nstreams + 1, sizeof(*ogg->streams), &size) < 0 || size 251 libavformat/oggdec.c !(os = av_realloc(ogg->streams, size))) size 281 libavformat/oggdec.c int size = os->bufpos - os->pstart; size 287 libavformat/oggdec.c memcpy(nb, os->buf + os->pstart, size); size 292 libavformat/oggdec.c os->bufpos = size; size 317 libavformat/oggdec.c int size, idx; size 393 libavformat/oggdec.c size = 0; size 395 libavformat/oggdec.c size += os->segments[i]; size 418 libavformat/oggdec.c if (os->bufsize - os->bufpos < size) { size 427 libavformat/oggdec.c ret = avio_read(bc, os->buf + os->bufpos, size); size 428 libavformat/oggdec.c if (ret < size) size 431 libavformat/oggdec.c os->bufpos += size; size 588 libavformat/oggdec.c int64_t size, end; size 599 libavformat/oggdec.c size = avio_size(s->pb); size 600 libavformat/oggdec.c if (size < 0) size 602 libavformat/oggdec.c end = size > MAX_PAGE_SIZE ? size - MAX_PAGE_SIZE : 0; size 133 libavformat/oggdec.h const uint8_t *buf, int size, int parse_picture); size 136 libavformat/oggdec.h const uint8_t *buf, int size); size 46 libavformat/oggenc.c uint16_t size; size 114 libavformat/oggenc.c int ret, size; size 131 libavformat/oggenc.c avio_write(pb, page->data, page->size); size 136 libavformat/oggenc.c size = avio_close_dyn_buf(pb, &buf); size 137 libavformat/oggenc.c if (size < 0) size 138 libavformat/oggenc.c return size; size 140 libavformat/oggenc.c avio_write(s->pb, buf, size); size 182 libavformat/oggenc.c oggstream->page.size = 0; size 212 libavformat/oggenc.c uint8_t *data, unsigned size, int64_t granule, size 217 libavformat/oggenc.c int total_segments = size / 255 + 1; size 236 libavformat/oggenc.c if (!header && oggstream->page.size > 0 && size 237 libavformat/oggenc.c MAX_PAGE_SIZE - oggstream->page.size < size) { size 252 libavformat/oggenc.c len = FFMIN(size, segments*255); size 254 libavformat/oggenc.c memcpy(page->data+page->size, p, len); size 256 libavformat/oggenc.c size -= len; size 258 libavformat/oggenc.c page->size += len; size 272 libavformat/oggenc.c (ogg->pref_size > 0 && page->size >= ogg->pref_size) || size 289 libavformat/oggenc.c int size; size 294 libavformat/oggenc.c size = offset + ff_vorbiscomment_length(*m, vendor) + framing_bit; size 295 libavformat/oggenc.c p = av_mallocz(size); size 305 libavformat/oggenc.c *header_len = size; size 596 libavformat/oggenc.c ret = ogg_buffer_data(s, st, pkt->data, pkt->size, granule, 0); size 632 libavformat/oggenc.c if (oggstream->page.size > 0) size 87 libavformat/oggparseflac.c int size; size 98 libavformat/oggparseflac.c &data, &size, os->buf + os->pstart, os->psize, size 44 libavformat/oggparseogm.c uint32_t size; size 78 libavformat/oggparseogm.c size = bytestream2_get_le32(&p); size 79 libavformat/oggparseogm.c size = FFMIN(size, os->psize); size 100 libavformat/oggparseogm.c if (size >= 56 && st->codec->codec_id == AV_CODEC_ID_AAC) { size 102 libavformat/oggparseogm.c size -= 4; size 104 libavformat/oggparseogm.c if (size > 52) { size 106 libavformat/oggparseogm.c size -= 52; size 107 libavformat/oggparseogm.c ff_alloc_extradata(st->codec, size); size 89 libavformat/oggparseopus.c static int opus_duration(uint8_t *src, int size) size 99 libavformat/oggparseopus.c if (size<2) size 75 libavformat/oggparsevorbis.c const uint8_t *buf, int size) size 77 libavformat/oggparsevorbis.c int updates = ff_vorbis_comment(as, &st->metadata, buf, size, 1); size 87 libavformat/oggparsevorbis.c const uint8_t *buf, int size, size 91 libavformat/oggparsevorbis.c const uint8_t *end = buf + size; size 97 libavformat/oggparsevorbis.c if (size < 8) size 123 libavformat/omadec.c static int rprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, size 131 libavformat/omadec.c size < OMA_ENC_HEADER_SIZE + oc->k_size + oc->e_size + oc->i_size || size 132 libavformat/omadec.c size < OMA_RPROBE_M_VAL) size 153 libavformat/omadec.c static int nprobe(AVFormatContext *s, uint8_t *enc_header, unsigned size, size 162 libavformat/omadec.c size < OMA_ENC_HEADER_SIZE + oc->k_size + 4) size 169 libavformat/omadec.c if (size < pos + 44) size 180 libavformat/omadec.c if (pos + (((uint64_t)datalen) << 4) > size) size 187 libavformat/omadec.c if (!rprobe(s, enc_header, size, oc->r_val)) size 197 libavformat/paf.c int size, i; 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 (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 31 libavformat/pcm.c int ret, size; size 33 libavformat/pcm.c size= RAW_SAMPLES*s->streams[0]->codec->block_align; size 34 libavformat/pcm.c if (size <= 0) size 37 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 218 libavformat/psxstr.c if(pkt->size != sector_count*VIDEO_DATA_CHUNK_SIZE){ size 236 libavformat/psxstr.c pkt->size= frame_size; size 239 libavformat/psxstr.c pkt->size= -1; size 126 libavformat/qcp.c int size = avio_r8(pb); size 129 libavformat/qcp.c av_log(s, AV_LOG_WARNING, "Unknown entry %d=>%d in rate-map-table.\n ", mode, size); size 131 libavformat/qcp.c c->rates_per_mode[mode] = size; size 35 libavformat/r3d.c unsigned size; size 43 libavformat/r3d.c atom->size = avio_rb32(s->pb); size 44 libavformat/r3d.c if (atom->size < 8) size 48 libavformat/r3d.c atom->size, (char*)&atom->tag, atom->offset); size 49 libavformat/r3d.c return atom->size; size 126 libavformat/r3d.c r3d->video_offsets_count = (atom->size - 8) / 4; size 127 libavformat/r3d.c r3d->video_offsets = av_malloc(atom->size); size 255 libavformat/r3d.c tmp = atom->size - 8 - (avio_tell(s->pb) - pos); size 278 libavformat/r3d.c int samples, size; size 306 libavformat/r3d.c size = atom->size - 8 - (avio_tell(s->pb) - pos); size 307 libavformat/r3d.c if (size < 0) size 309 libavformat/r3d.c ret = av_get_packet(s->pb, pkt, size); size 352 libavformat/r3d.c avio_skip(s->pb, atom.size-8); size 37 libavformat/rawdec.c int ret, size; size 39 libavformat/rawdec.c size = RAW_PACKET_SIZE; size 41 libavformat/rawdec.c if (av_new_packet(pkt, size) < 0) size 46 libavformat/rawdec.c ret = ffio_read_partial(s->pb, pkt->data, size); size 28 libavformat/rawenc.c avio_write(s->pb, pkt->data, pkt->size); 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 75 libavformat/rdt.h void ff_rdt_subscribe_rule(char *cmd, int size, size 143 libavformat/redspark.c uint32_t size = 8 * codec->channels; size 149 libavformat/redspark.c ret = av_get_packet(s->pb, pkt, size); size 150 libavformat/redspark.c if (ret != size) { size 65 libavformat/riff.h int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size, int big_endian); size 72 libavformat/riff.h int ff_read_riff_info(AVFormatContext *s, int64_t size); size 84 libavformat/riffdec.c int ff_get_wav_header(AVIOContext *pb, AVCodecContext *codec, int size, int big_endian) size 88 libavformat/riffdec.c if (size < 14) size 105 libavformat/riffdec.c if (size == 14) { /* We're dealing with plain vanilla WAVEFORMAT */ size 121 libavformat/riffdec.c if (size >= 18) { /* We're obviously dealing with WAVEFORMATEX */ size 127 libavformat/riffdec.c size -= 18; size 128 libavformat/riffdec.c cbSize = FFMIN(size, cbSize); size 132 libavformat/riffdec.c size -= 22; size 138 libavformat/riffdec.c size -= cbSize; size 142 libavformat/riffdec.c if (size > 0) size 143 libavformat/riffdec.c avio_skip(pb, size); size 198 libavformat/riffdec.c int ff_read_riff_info(AVFormatContext *s, int64_t size) size 204 libavformat/riffdec.c end = start + size; size 241 libavformat/rl2.c ret = av_get_packet(pb, pkt, sample->size); size 242 libavformat/rl2.c if(ret != sample->size){ size 89 libavformat/rmdec.c static int rm_read_extradata(AVIOContext *pb, AVCodecContext *avctx, unsigned size) size 91 libavformat/rmdec.c if (size >= 1<<24) { size 92 libavformat/rmdec.c av_log(avctx, AV_LOG_ERROR, "extradata size %u too large\n", size); size 95 libavformat/rmdec.c if (ff_get_extradata(avctx, pb, size) < 0) size 317 libavformat/rmdec.c int size; size 422 libavformat/rmdec.c size = avio_tell(pb) - codec_pos; size 423 libavformat/rmdec.c if (codec_data_size >= size) { size 424 libavformat/rmdec.c avio_skip(pb, codec_data_size - size); size 426 libavformat/rmdec.c av_log(s, AV_LOG_WARNING, "codec_data_size %u < size %d\n", codec_data_size, size); size 437 libavformat/rmdec.c unsigned int size, n_pkts, str_id, next_off, n, pos, pts; size 443 libavformat/rmdec.c size = avio_rb32(pb); size 444 libavformat/rmdec.c if (size < 20) size 768 libavformat/rmdec.c memset(vst->pkt.data, 0, vst->pkt.size); size 798 libavformat/rmdec.c vst->pkt.size= 0; size 808 libavformat/rmdec.c pkt->size = vst->videobufpos + 8*(vst->cur_slice - vst->slices); size 826 libavformat/rmdec.c for (j=0;j<pkt->size;j+=2) { size 77 libavformat/rmenc.c int nb_packets, packet_total_size, packet_max_size, size, packet_avg_size, i; size 133 libavformat/rmenc.c size = 4 * 2 + 10; size 136 libavformat/rmenc.c if(tag) size += strlen(tag->value); size 138 libavformat/rmenc.c avio_wb32(s,size); size 161 libavformat/rmenc.c size = 10 + 9 * 4 + strlen(desc) + strlen(mimetype) + codec_data_size; size 162 libavformat/rmenc.c avio_wb32(s, size); size 361 libavformat/rmenc.c static int rm_write_audio(AVFormatContext *s, const uint8_t *buf, int size, int flags) size 370 libavformat/rmenc.c buf1 = av_malloc(size * sizeof(uint8_t)); size 374 libavformat/rmenc.c write_packet_header(s, stream, size, !!(flags & AV_PKT_FLAG_KEY)); size 378 libavformat/rmenc.c for(i=0;i<size;i+=2) { size 382 libavformat/rmenc.c avio_write(pb, buf1, size); size 384 libavformat/rmenc.c avio_write(pb, buf, size); size 391 libavformat/rmenc.c static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int flags) size 403 libavformat/rmenc.c if (size > MAX_PACKET_SIZE) { size 404 libavformat/rmenc.c av_log(s, AV_LOG_ERROR, "Muxing packets larger than 64 kB (%d) is not supported\n", size); size 407 libavformat/rmenc.c write_packet_header(s, stream, size + 7 + (size >= 0x4000)*4, key_frame); size 417 libavformat/rmenc.c if(size >= 0x4000){ size 418 libavformat/rmenc.c avio_wb32(pb, size); /* total frame size */ size 419 libavformat/rmenc.c avio_wb32(pb, size); /* offset from the start or the end */ size 421 libavformat/rmenc.c avio_wb16(pb, 0x4000 | size); /* total frame size */ size 422 libavformat/rmenc.c avio_wb16(pb, 0x4000 | size); /* offset from the start or the end */ size 426 libavformat/rmenc.c write_packet_header(s, size + 6); size 428 libavformat/rmenc.c avio_wb16(pb, 0x4000 + size); /* total frame size */ size 433 libavformat/rmenc.c avio_write(pb, buf, size); size 443 libavformat/rmenc.c return rm_write_audio(s, pkt->data, pkt->size, pkt->flags); size 445 libavformat/rmenc.c return rm_write_video(s, pkt->data, pkt->size, pkt->flags); size 327 libavformat/rpl.c ret = av_get_packet(pb, pkt, index_entry->size); size 330 libavformat/rpl.c if (ret != index_entry->size) { size 138 libavformat/rsd.c int ret, size = 1024; size 146 libavformat/rsd.c ret = av_get_packet(s->pb, pkt, size); size 148 libavformat/rsd.c if (ret != size) { 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 70 libavformat/rsoenc.c avio_write(s->pb, pkt->data, pkt->size); size 276 libavformat/rtmpcrypt.c static int rtmpe_read(URLContext *h, uint8_t *buf, int size) size 282 libavformat/rtmpcrypt.c ret = ffurl_read(rt->stream, buf, size); size 296 libavformat/rtmpcrypt.c static int rtmpe_write(URLContext *h, const uint8_t *buf, int size) size 303 libavformat/rtmpcrypt.c av_rc4_crypt(&rt->key_out, buf, buf, size, NULL, 1); size 306 libavformat/rtmpcrypt.c if ((ret = ffurl_write(rt->stream, buf, size)) < 0) size 309 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 240 libavformat/rtmppkt.c size)) < 0) size 250 libavformat/rtmppkt.c p->size = prev->size; size 264 libavformat/rtmppkt.c prev_pkt[channel_id].size = size; size 266 libavformat/rtmppkt.c size = size - p->offset; size 268 libavformat/rtmppkt.c toread = FFMIN(size, chunk_size); size 273 libavformat/rtmppkt.c size -= toread; size 277 libavformat/rtmppkt.c if (size > 0) { size 340 libavformat/rtmppkt.c pkt->size == prev_pkt[pkt->channel_id].size) { size 361 libavformat/rtmppkt.c bytestream_put_be24(&p, pkt->size); size 372 libavformat/rtmppkt.c prev_pkt[pkt->channel_id].size = pkt->size; size 379 libavformat/rtmppkt.c written = p - pkt_hdr + pkt->size; size 380 libavformat/rtmppkt.c while (off < pkt->size) { size 381 libavformat/rtmppkt.c int towrite = FFMIN(chunk_size, pkt->size - off); size 385 libavformat/rtmppkt.c if (off < pkt->size) { size 403 libavformat/rtmppkt.c int timestamp, int size) size 405 libavformat/rtmppkt.c if (size) { size 406 libavformat/rtmppkt.c pkt->data = av_realloc(NULL, size); size 410 libavformat/rtmppkt.c pkt->size = size; size 425 libavformat/rtmppkt.c pkt->size = 0; size 451 libavformat/rtmppkt.c int size = bytestream_get_be16(&data); size 452 libavformat/rtmppkt.c if (!size) { size 456 libavformat/rtmppkt.c if (size < 0 || size >= data_end - data) size 458 libavformat/rtmppkt.c data += size; size 487 libavformat/rtmppkt.c int size = bytestream_get_be16(&data); size 488 libavformat/rtmppkt.c if (!size) size 490 libavformat/rtmppkt.c if (size < 0 || size >= data_end - data) size 492 libavformat/rtmppkt.c data += size; size 493 libavformat/rtmppkt.c if (size == namelen && !memcmp(data-size, name, namelen)) { size 542 libavformat/rtmppkt.c unsigned int size, nb = -1; size 559 libavformat/rtmppkt.c size = bytestream_get_be16(&data); size 561 libavformat/rtmppkt.c size = bytestream_get_be32(&data); size 563 libavformat/rtmppkt.c size = FFMIN(size, sizeof(buf) - 1); size 564 libavformat/rtmppkt.c memcpy(buf, data, size); size 565 libavformat/rtmppkt.c buf[size] = 0; size 580 libavformat/rtmppkt.c size = bytestream_get_be16(&data); size 581 libavformat/rtmppkt.c size = FFMIN(size, sizeof(buf) - 1); size 582 libavformat/rtmppkt.c if (!size) { size 587 libavformat/rtmppkt.c memcpy(buf, data, size); size 588 libavformat/rtmppkt.c buf[size] = 0; size 589 libavformat/rtmppkt.c if (size >= data_end - data) size 591 libavformat/rtmppkt.c data += size; size 612 libavformat/rtmppkt.c rtmp_packet_type(p->type), p->type, p->channel_id, p->timestamp, p->extra, p->size); size 614 libavformat/rtmppkt.c uint8_t *src = p->data, *src_end = p->data + p->size; size 629 libavformat/rtmppkt.c for (i = 0; i < p->size; i++) size 635 libavformat/rtmppkt.c int ff_amf_match_string(const uint8_t *data, int size, const char *str) size 640 libavformat/rtmppkt.c if (size < 1) size 650 libavformat/rtmppkt.c if ((size -= 4 + 1) < 0) size 654 libavformat/rtmppkt.c if ((size -= 2 + 1) < 0) size 659 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 397 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 429 libavformat/rtmpproto.c bytestream2_init(&gbc, cp, pkt.size); size 460 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 473 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 535 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 550 libavformat/rtmpproto.c pkt.size = p - pkt.data; size 839 libavformat/rtmpproto.c if (ppkt->size < 6) { size 841 libavformat/rtmpproto.c ppkt->size); size 1091 libavformat/rtmpproto.c int size; size 1112 libavformat/rtmpproto.c size = sizeof(tmp_buf) - zs.avail_out; size 1113 libavformat/rtmpproto.c if (!(ptr = av_realloc(*out_data, *out_size + size))) { size 1119 libavformat/rtmpproto.c memcpy(*out_data + *out_size, tmp_buf, size); size 1120 libavformat/rtmpproto.c *out_size += size; size 1395 libavformat/rtmpproto.c int size) size 1415 libavformat/rtmpproto.c uint32_t second_int, char *arraydata, int size) size 1513 libavformat/rtmpproto.c if (pkt->size < 4) { size 1516 libavformat/rtmpproto.c pkt->size); size 1546 libavformat/rtmpproto.c if (pkt->size < 2) { size 1548 libavformat/rtmpproto.c pkt->size); size 1572 libavformat/rtmpproto.c if (pkt->size < 4) { size 1575 libavformat/rtmpproto.c pkt->size); size 1596 libavformat/rtmpproto.c if (pkt->size < 4) { size 1599 libavformat/rtmpproto.c pkt->size); size 1806 libavformat/rtmpproto.c const uint8_t *data_end = pkt->data + pkt->size; size 1856 libavformat/rtmpproto.c bytestream2_init_writer(&pbc, spkt.data, spkt.size); size 1906 libavformat/rtmpproto.c spkt.size = pp - spkt.data; size 1928 libavformat/rtmpproto.c bytestream2_init(&gbc, p, pkt->size); size 2007 libavformat/rtmpproto.c spkt.size = pp - spkt.data; size 2031 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data, pkt->size); size 2128 libavformat/rtmpproto.c const uint8_t *data_end = pkt->data + pkt->size; size 2168 libavformat/rtmpproto.c if (ff_amf_match_string(pkt->data, pkt->size, "_error")) { size 2171 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "_result")) { size 2174 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "onStatus")) { size 2177 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "onBWDone")) { size 2180 libavformat/rtmpproto.c } else if (ff_amf_match_string(pkt->data, pkt->size, "releaseStream") || size 2181 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "FCPublish") || size 2182 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "publish") || size 2183 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "play") || size 2184 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "_checkbw") || size 2185 libavformat/rtmpproto.c ff_amf_match_string(pkt->data, pkt->size, "createStream")) { size 2193 libavformat/rtmpproto.c static int update_offset(RTMPContext *rt, int size) size 2201 libavformat/rtmpproto.c rt->flv_size += size; size 2205 libavformat/rtmpproto.c rt->flv_size = size; size 2217 libavformat/rtmpproto.c const int size = pkt->size - skip; size 2226 libavformat/rtmpproto.c old_flv_size = update_offset(rt, size + 15); size 2235 libavformat/rtmpproto.c bytestream2_put_be24(&pbc, size); size 2239 libavformat/rtmpproto.c bytestream2_put_buffer(&pbc, data, size); size 2253 libavformat/rtmpproto.c bytestream2_init(&gbc, pkt->data, pkt->size); size 2358 libavformat/rtmpproto.c uint32_t size; size 2361 libavformat/rtmpproto.c old_flv_size = update_offset(rt, pkt->size); size 2374 libavformat/rtmpproto.c while (next - pkt->data < pkt->size - RTMP_HEADER) { size 2376 libavformat/rtmpproto.c size = bytestream_get_be24(&next); size 2383 libavformat/rtmpproto.c if (size + 3 + 4 > pkt->data + pkt->size - next) size 2386 libavformat/rtmpproto.c bytestream_put_be24(&p, size); size 2389 libavformat/rtmpproto.c memcpy(p, next, size + 3 + 4); size 2390 libavformat/rtmpproto.c next += size + 3 + 4; size 2391 libavformat/rtmpproto.c p += size + 3 + 4; size 2475 libavformat/rtmpproto.c if (!rpkt.size || !rt->is_input) { size 2503 libavformat/rtmpproto.c if (rt->out_pkt.size) size 2891 libavformat/rtmpproto.c static int rtmp_read(URLContext *s, uint8_t *buf, int size) size 2894 libavformat/rtmpproto.c int orig_size = size; size 2897 libavformat/rtmpproto.c while (size > 0) { size 2900 libavformat/rtmpproto.c if (data_left >= size) { size 2901 libavformat/rtmpproto.c memcpy(buf, rt->flv_data + rt->flv_off, size); size 2902 libavformat/rtmpproto.c rt->flv_off += size; size 2908 libavformat/rtmpproto.c size -= data_left; size 2952 libavformat/rtmpproto.c static int rtmp_write(URLContext *s, const uint8_t *buf, int size) size 2955 libavformat/rtmpproto.c int size_temp = size; size 3036 libavformat/rtmpproto.c if ((ret = av_reallocp(&rt->out_pkt.data, rt->out_pkt.size + 16)) < 0) { size 3040 libavformat/rtmpproto.c memmove(rt->out_pkt.data + 16, rt->out_pkt.data, rt->out_pkt.size); size 3041 libavformat/rtmpproto.c rt->out_pkt.size += 16; size 3055 libavformat/rtmpproto.c } while (buf_temp - buf < size); size 3058 libavformat/rtmpproto.c return size; size 3072 libavformat/rtmpproto.c return size; size 3090 libavformat/rtmpproto.c return size; size 893 libavformat/rtpdec.c pkt->size = avio_close_dyn_buf(*dyn_buf, &pkt->data); size 896 libavformat/rtpdec.c if ((ret = av_packet_from_data(pkt, pkt->data, pkt->size)) < 0) { size 900 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 93 libavformat/rtpdec_jpeg.c static int jpeg_create_header(uint8_t *buf, int size, uint32_t type, uint32_t w, size 101 libavformat/rtpdec_jpeg.c bytestream2_init_writer(&pbc, buf, size); size 50 libavformat/rtpdec_mpeg4.c int size; size 152 libavformat/rtpdec_mpeg4.c data->au_headers[i].size = get_bits_long(&getbitcontext, data->sizelength); size 174 libavformat/rtpdec_mpeg4.c if (data->buf_size - data->buf_pos < data->au_headers[data->cur_au_index].size) { size 178 libavformat/rtpdec_mpeg4.c if ((ret = av_new_packet(pkt, data->au_headers[data->cur_au_index].size)) < 0) { size 182 libavformat/rtpdec_mpeg4.c memcpy(pkt->data, &data->buf[data->buf_pos], data->au_headers[data->cur_au_index].size); size 183 libavformat/rtpdec_mpeg4.c data->buf_pos += data->au_headers[data->cur_au_index].size; size 202 libavformat/rtpdec_mpeg4.c if (data->nb_au_headers == 1 && len < data->au_headers[0].size) { size 206 libavformat/rtpdec_mpeg4.c if (data->au_headers[0].size > MAX_AAC_HBR_FRAME_SIZE) { size 211 libavformat/rtpdec_mpeg4.c data->buf_size = data->au_headers[0].size; size 216 libavformat/rtpdec_mpeg4.c data->au_headers[0].size != data->buf_size || size 249 libavformat/rtpdec_mpeg4.c if (len < data->au_headers[0].size) { size 253 libavformat/rtpdec_mpeg4.c if ((ret = av_new_packet(pkt, data->au_headers[0].size)) < 0) { size 257 libavformat/rtpdec_mpeg4.c memcpy(pkt->data, buf, data->au_headers[0].size); size 258 libavformat/rtpdec_mpeg4.c len -= data->au_headers[0].size; size 259 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 200 libavformat/rtpdec_qdm2.c memset(pkt->data, 0, pkt->size); size 219 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, FF_INPUT_BUFFER_PADDING_SIZE); size 223 libavformat/rtpdec_qt.c qt->pkt.size = qt->remaining * qt->bytes_per_frame; size 330 libavformat/rtpenc.c const uint8_t *buf1, int size, int sample_size_bits) size 339 libavformat/rtpenc.c if ((sample_size_bits % 8) == 0 && ((8 * size) % sample_size_bits) != 0) size 342 libavformat/rtpenc.c while (size > 0) { size 344 libavformat/rtpenc.c len = FFMIN(max_packet_size, size); size 350 libavformat/rtpenc.c size -= len; size 359 libavformat/rtpenc.c const uint8_t *buf1, int size) size 368 libavformat/rtpenc.c if ((len + size) > max_packet_size) { size 379 libavformat/rtpenc.c if (size > max_packet_size) { size 382 libavformat/rtpenc.c while (size > 0) { size 384 libavformat/rtpenc.c if (len > size) size 385 libavformat/rtpenc.c len = size; size 393 libavformat/rtpenc.c size -= len; size 405 libavformat/rtpenc.c memcpy(s->buf_ptr, buf1, size); size 406 libavformat/rtpenc.c s->buf_ptr += size; size 411 libavformat/rtpenc.c const uint8_t *buf1, int size) size 418 libavformat/rtpenc.c while (size > 0) { size 420 libavformat/rtpenc.c if (len > size) size 421 libavformat/rtpenc.c len = size; size 424 libavformat/rtpenc.c ff_rtp_send_data(s1, buf1, len, (len == size)); size 427 libavformat/rtpenc.c size -= len; size 433 libavformat/rtpenc.c const uint8_t *buf1, int size) size 439 libavformat/rtpenc.c while (size >= TS_PACKET_SIZE) { size 441 libavformat/rtpenc.c if (len > size) size 442 libavformat/rtpenc.c len = size; size 445 libavformat/rtpenc.c size -= len; size 456 libavformat/rtpenc.c static int rtp_send_ilbc(AVFormatContext *s1, const uint8_t *buf, int size) size 462 libavformat/rtpenc.c int frames = size / frame_size; size 496 libavformat/rtpenc.c int size= pkt->size; size 498 libavformat/rtpenc.c av_dlog(s1, "%d: write len=%d\n", pkt->stream_index, size); size 516 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 8 * st->codec->channels); size 521 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 16 * st->codec->channels); size 527 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, 8 * st->codec->channels); size 529 libavformat/rtpenc.c return rtp_send_samples(s1, pkt->data, size, size 533 libavformat/rtpenc.c rtp_send_mpegaudio(s1, pkt->data, size); size 537 libavformat/rtpenc.c ff_rtp_send_mpegvideo(s1, pkt->data, size); size 541 libavformat/rtpenc.c ff_rtp_send_latm(s1, pkt->data, size); size 543 libavformat/rtpenc.c ff_rtp_send_aac(s1, pkt->data, size); size 547 libavformat/rtpenc.c ff_rtp_send_amr(s1, pkt->data, size); size 550 libavformat/rtpenc.c rtp_send_mpegts_raw(s1, pkt->data, size); size 553 libavformat/rtpenc.c ff_rtp_send_h264_hevc(s1, pkt->data, size); size 556 libavformat/rtpenc.c ff_rtp_send_h261(s1, pkt->data, size); size 568 libavformat/rtpenc.c ff_rtp_send_h263_rfc2190(s1, pkt->data, size, mb_info, mb_info_size); size 573 libavformat/rtpenc.c ff_rtp_send_h263(s1, pkt->data, size); size 576 libavformat/rtpenc.c ff_rtp_send_h264_hevc(s1, pkt->data, size); size 580 libavformat/rtpenc.c ff_rtp_send_xiph(s1, pkt->data, size); size 583 libavformat/rtpenc.c ff_rtp_send_vp8(s1, pkt->data, size); size 586 libavformat/rtpenc.c rtp_send_ilbc(s1, pkt->data, size); size 589 libavformat/rtpenc.c ff_rtp_send_jpeg(s1, pkt->data, size); size 592 libavformat/rtpenc.c if (size > s->max_payload_size) { size 595 libavformat/rtpenc.c size, s->max_payload_size); size 601 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_vp8(AVFormatContext *s1, const uint8_t *buff, int size); size 95 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 27 libavformat/rtpenc_jpeg.c void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buf, int size) size 61 libavformat/rtpenc_jpeg.c for (i = 0; i < size; i++) { size 72 libavformat/rtpenc_jpeg.c if (i + 4 + nb_qtables * 65 > size) { size 93 libavformat/rtpenc_jpeg.c size -= i; size 95 libavformat/rtpenc_jpeg.c for (i = size - 2; i >= 0; i--) { size 98 libavformat/rtpenc_jpeg.c size = i; size 104 libavformat/rtpenc_jpeg.c while (size > 0) { size 111 libavformat/rtpenc_jpeg.c len = FFMIN(size, s->max_payload_size - hdr_size); size 135 libavformat/rtpenc_jpeg.c ff_rtp_send_data(s1, s->buf, len + hdr_size, size == len); size 138 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 113 libavformat/rtpenc_mpegts.c int ret = 0, size; size 123 libavformat/rtpenc_mpegts.c size = avio_close_dyn_buf(chain->mpegts_ctx->pb, &buf); size 125 libavformat/rtpenc_mpegts.c if (size == 0) { size 131 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 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 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 389 libavformat/rtpproto.c static int rtp_read(URLContext *h, uint8_t *buf, int size) size 408 libavformat/rtpproto.c len = recvfrom(p[i].fd, buf, size, 0, size 431 libavformat/rtpproto.c static int rtp_write(URLContext *h, const uint8_t *buf, int size) size 437 libavformat/rtpproto.c if (size < 2) size 452 libavformat/rtpproto.c return size; size 489 libavformat/rtpproto.c ret = sendto(fd, buf, size, 0, (struct sockaddr *) source, size 503 libavformat/rtpproto.c ret = ffurl_write(hd, buf, size); size 2212 libavformat/rtsp.c static void append_source_addrs(char *buf, int size, const char *name, size 2218 libavformat/rtsp.c av_strlcatf(buf, size, "&%s=%s", name, addrs[0]->addr); size 2220 libavformat/rtsp.c av_strlcatf(buf, size, ",%s", addrs[i]->addr); size 2227 libavformat/rtsp.c int size, i, err; size 2242 libavformat/rtsp.c size = avio_read(s->pb, content, SDP_MAX_SIZE - 1); size 2243 libavformat/rtsp.c if (size <= 0) { size 2247 libavformat/rtsp.c content[size] ='\0'; size 145 libavformat/rtspenc.c int size; size 148 libavformat/rtspenc.c size = avio_close_dyn_buf(rtpctx->pb, &buf); size 151 libavformat/rtspenc.c while (size > 4) { size 161 libavformat/rtspenc.c size -= 4; size 162 libavformat/rtspenc.c if (packet_len > size || packet_len < 2) size 173 libavformat/rtspenc.c size -= packet_len; 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 1461 libavformat/sbgdec.c return packet->size; size 261 libavformat/sctp.c static int sctp_read(URLContext *h, uint8_t *buf, int size) size 275 libavformat/sctp.c ret = ff_sctp_recvmsg(s->fd, buf + 2, size - 2, NULL, 0, &info, 0); size 279 libavformat/sctp.c ret = recv(s->fd, buf, size, 0); size 284 libavformat/sctp.c static int sctp_write(URLContext *h, const uint8_t *buf, int size) size 303 libavformat/sctp.c ret = ff_sctp_send(s->fd, buf + 2, size - 2, &info, MSG_EOR); size 305 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 482 libavformat/sdp.c static char *sdp_write_media_attributes(char *buff, int size, AVCodecContext *c, int payload_type, AVFormatContext *fmt) size 495 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H264/90000\r\n" size 510 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H261/90000\r\n", payload_type); size 512 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", payload_type, pic_fmt); size 524 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H263-2000/90000\r\n" size 532 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d H265/90000\r\n", payload_type); size 534 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d %s\r\n", size 541 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MP4V-ES/90000\r\n" size 552 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MP4A-LATM/%d/%d\r\n" size 569 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d MPEG4-GENERIC/%d/%d\r\n" size 579 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d L16/%d/%d\r\n", size 585 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d PCMU/%d/%d\r\n", size 591 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d PCMA/%d/%d\r\n", size 596 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d AMR/%d/%d\r\n" size 602 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d AMR-WB/%d/%d\r\n" size 615 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d vorbis/%d/%d\r\n" size 644 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d theora/90000\r\n" size 653 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d VP8/90000\r\n", size 658 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d JPEG/90000\r\n", size 663 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d G722/%d/%d\r\n", size 669 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d G726-%d/%d\r\n", size 676 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d iLBC/%d\r\n" size 682 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d speex/%d\r\n", size 695 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d vbr=%s\r\n", size 706 libavformat/sdp.c av_strlcatf(buff, size, "a=rtpmap:%d opus/48000/2\r\n", size 709 libavformat/sdp.c av_strlcatf(buff, size, "a=fmtp:%d sprop-stereo:1\r\n", size 723 libavformat/sdp.c void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 740 libavformat/sdp.c av_strlcatf(buff, size, "m=%s %d RTP/AVP %d\r\n", type, port, payload_type); size 741 libavformat/sdp.c sdp_write_address(buff, size, dest_addr, dest_type, ttl); size 743 libavformat/sdp.c av_strlcatf(buff, size, "b=AS:%d\r\n", c->bit_rate / 1000); size 746 libavformat/sdp.c sdp_write_media_attributes(buff, size, c, payload_type, fmt); size 749 libavformat/sdp.c int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) size 756 libavformat/sdp.c memset(buf, 0, size); size 780 libavformat/sdp.c sdp_write_header(buf, size, &s); size 792 libavformat/sdp.c ff_sdp_write_media(buf, size, ac[i]->streams[j], index++, size 797 libavformat/sdp.c av_strlcatf(buf, size, size 807 libavformat/sdp.c av_strlcatf(buf, size, size 819 libavformat/sdp.c int av_sdp_create(AVFormatContext *ac[], int n_files, char *buf, int size) size 824 libavformat/sdp.c void ff_sdp_write_media(char *buff, int size, AVStream *st, int idx, size 128 libavformat/seek-test.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 179 libavformat/segment.c size_t size; size 199 libavformat/segment.c size = strlen(av_basename(oc->filename)) + 1; size 201 libavformat/segment.c size += strlen(seg->entry_prefix); size 203 libavformat/segment.c seg->cur_entry.filename = av_mallocz(size); size 206 libavformat/segment.c snprintf(seg->cur_entry.filename, size, "%s%s", size 205 libavformat/sierravmd.c uint32_t size; size 214 libavformat/sierravmd.c size = AV_RL32(&chunk[2]); size 215 libavformat/sierravmd.c if (size > INT_MAX / 2) { size 220 libavformat/sierravmd.c if(!size && type != 1) size 228 libavformat/sierravmd.c vmd->frame_table[total_frames].frame_size = size; size 240 libavformat/sierravmd.c vmd->frame_table[total_frames].frame_size = size; size 246 libavformat/sierravmd.c current_offset += size; size 195 libavformat/siff.c int size; size 211 libavformat/siff.c size = c->pktsize - c->sndsize - c->gmcsize - 2; size 212 libavformat/siff.c size = ffio_limit(s->pb, size); size 213 libavformat/siff.c if (size < 0 || c->pktsize < c->sndsize) size 215 libavformat/siff.c if (av_new_packet(pkt, size + c->gmcsize + 2) < 0) size 220 libavformat/siff.c if (avio_read(s->pb, pkt->data + 2 + c->gmcsize, size) != size) { size 227 libavformat/siff.c if ((size = av_get_packet(s->pb, pkt, c->sndsize - 4)) < 0) size 230 libavformat/siff.c pkt->duration = size; size 238 libavformat/siff.c size = av_get_packet(s->pb, pkt, c->block_align); size 239 libavformat/siff.c if (!size) size 241 libavformat/siff.c if (size < 0) size 243 libavformat/siff.c pkt->duration = size; size 245 libavformat/siff.c return pkt->size; size 270 libavformat/smacker.c int size, sz, t, off, j, pos; size 275 libavformat/smacker.c size = avio_r8(s->pb); size 276 libavformat/smacker.c size = size * 4 - 1; size 277 libavformat/smacker.c if(size + 1 > frame_size) size 279 libavformat/smacker.c frame_size -= size; size 282 libavformat/smacker.c pos = avio_tell(s->pb) + size; size 320 libavformat/smacker.c uint32_t size; size 323 libavformat/smacker.c size = avio_rl32(s->pb) - 4; size 324 libavformat/smacker.c if (!size || size + 4LL > frame_size) { size 328 libavformat/smacker.c frame_size -= size; size 331 libavformat/smacker.c if ((err = av_reallocp(&smk->bufs[smk->curstream], size)) < 0) { size 335 libavformat/smacker.c smk->buf_sizes[smk->curstream] = size; size 336 libavformat/smacker.c ret = avio_read(s->pb, smk->bufs[smk->curstream], size); size 337 libavformat/smacker.c if(ret != size) size 356 libavformat/smacker.c pkt->size = ret + 769; size 365 libavformat/smacker.c pkt->size = smk->buf_sizes[smk->curstream]; size 140 libavformat/smjpegdec.c uint32_t dtype, size, timestamp; size 151 libavformat/smjpegdec.c size = avio_rb32(s->pb); size 152 libavformat/smjpegdec.c ret = av_get_packet(s->pb, pkt, size); size 159 libavformat/smjpegdec.c size = avio_rb32(s->pb); size 160 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 46 libavformat/smoothstreamingenc.c int64_t start_pos, size; size 119 libavformat/smoothstreamingenc.c if (offset >= frag->start_pos && offset < frag->start_pos + frag->size) { size 148 libavformat/smoothstreamingenc.c int size = codec->extradata_size; size 151 libavformat/smoothstreamingenc.c ff_avc_write_annexb_extradata(ptr, &ptr, &size); size 157 libavformat/smoothstreamingenc.c os->private_str = av_mallocz(2*size + 1); size 160 libavformat/smoothstreamingenc.c for (i = 0; i < size; i++) size 407 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 416 libavformat/smoothstreamingenc.c if (*moof_size < 8 || *moof_size > size) size 457 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 478 libavformat/smoothstreamingenc.c frag->size = size; size 485 libavformat/smoothstreamingenc.c static int copy_moof(AVFormatContext *s, const char* infile, const char *outfile, int64_t size) size 495 libavformat/smoothstreamingenc.c while (size > 0) { size 497 libavformat/smoothstreamingenc.c int n = FFMIN(size, sizeof(buf)); size 504 libavformat/smoothstreamingenc.c size -= n; size 520 libavformat/smoothstreamingenc.c int64_t size; size 538 libavformat/smoothstreamingenc.c size = os->tail_pos - os->cur_start_pos; size 539 libavformat/smoothstreamingenc.c if ((ret = parse_fragment(s, filename, &start_ts, &duration, &moof_size, size)) < 0) size 548 libavformat/smoothstreamingenc.c os->cur_start_pos, size); size 51 libavformat/smush.c uint32_t magic, nframes, size, subversion, i; size 62 libavformat/smush.c size = avio_rb32(pb); size 63 libavformat/smush.c if (size < 3 * 256 + 6) size 77 libavformat/smush.c avio_skip(pb, size - (3 * 256 + 6)); size 82 libavformat/smush.c size = avio_rb32(pb); size 83 libavformat/smush.c if (size < 14) size 96 libavformat/smush.c avio_skip(pb, size - 14); size 101 libavformat/smush.c size = avio_rb32(pb); size 102 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 195 libavformat/spdifdec.c if (avio_read(pb, pkt->data, pkt->size) < pkt->size) { size 199 libavformat/spdifdec.c ff_spdif_bswap_buf16((uint16_t *)pkt->data, (uint16_t *)pkt->data, pkt->size >> 1); size 209 libavformat/spdifdec.c avio_skip(pb, offset - pkt->size - BURST_HEADER_SIZE); size 124 libavformat/spdifenc.c ctx->hd_buf = av_fast_realloc(ctx->hd_buf, &ctx->hd_buf_size, ctx->hd_buf_filled + pkt->size); size 128 libavformat/spdifenc.c memcpy(&ctx->hd_buf[ctx->hd_buf_filled], pkt->data, pkt->size); size 130 libavformat/spdifenc.c ctx->hd_buf_filled += pkt->size; size 171 libavformat/spdifenc.c int pkt_size = pkt->size; size 251 libavformat/spdifenc.c if (pkt->size < 9) size 300 libavformat/spdifenc.c if (core_size && core_size < pkt->size) { size 415 libavformat/spdifenc.c if (pkt->size > TRUEHD_FRAME_OFFSET - mat_code_length) { size 419 libavformat/spdifenc.c pkt->size); size 424 libavformat/spdifenc.c pkt->data, pkt->size); size 425 libavformat/spdifenc.c memset(&ctx->hd_buf[ctx->hd_buf_count * TRUEHD_FRAME_OFFSET - BURST_HEADER_SIZE + mat_code_length + pkt->size], size 426 libavformat/spdifenc.c 0, TRUEHD_FRAME_OFFSET - pkt->size - mat_code_length); size 501 libavformat/spdifenc.c ctx->out_bytes = pkt->size; size 502 libavformat/spdifenc.c ctx->length_code = FFALIGN(pkt->size, 2) << 3; size 65 libavformat/srtenc.c int size, x1 = -1, y1 = -1, x2 = -1, y2 = -1; size 68 libavformat/srtenc.c p = av_packet_get_side_data(pkt, AV_PKT_DATA_SUBTITLE_POSITION, &size); size 69 libavformat/srtenc.c if (p && size == 16) { size 96 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 97 libavformat/subfile.c static int subfile_read(URLContext *h, unsigned char *buf, int size) size 105 libavformat/subfile.c size = FFMIN(size, rest); size 106 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 379 libavformat/subtitles.c ptrdiff_t ff_subtitles_read_line(FFTextReader *tr, char *buf, size_t size) size 382 libavformat/subtitles.c if (!size) size 384 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 208 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 277 libavformat/swfdec.c return pkt->size; size 293 libavformat/swfdec.c return pkt->size; size 415 libavformat/swfdec.c if (linesize * height > pkt->size) { size 421 libavformat/swfdec.c res = pkt->size; size 452 libavformat/swfdec.c return pkt->size; size 485 libavformat/swfdec.c pkt->size -= 4; size 486 libavformat/swfdec.c memset(pkt->data+pkt->size, 0, 4); size 487 libavformat/swfdec.c res = avio_read(pb, pkt->data, pkt->size); size 489 libavformat/swfdec.c res = avio_read(pb, pkt->data + 4, pkt->size - 4); size 493 libavformat/swfdec.c if (res != pkt->size) { size 503 libavformat/swfdec.c return pkt->size; size 345 libavformat/swfenc.c AVCodecContext *enc, const uint8_t *buf, int size) size 391 libavformat/swfenc.c avio_write(pb, buf, size); size 414 libavformat/swfenc.c avio_write(pb, buf, size); size 450 libavformat/swfenc.c AVCodecContext *enc, uint8_t *buf, int size) size 458 libavformat/swfenc.c if (av_fifo_size(swf->audio_fifo) + size > AUDIO_FIFO_SIZE) { size 463 libavformat/swfenc.c av_fifo_generic_write(swf->audio_fifo, buf, size, NULL); size 477 libavformat/swfenc.c return swf_write_audio(s, codec, pkt->data, pkt->size); size 479 libavformat/swfenc.c return swf_write_video(s, codec, pkt->data, pkt->size); size 73 libavformat/takdec.c int size; size 76 libavformat/takdec.c size = avio_rl24(pb); size 82 libavformat/takdec.c if (size <= 3) size 85 libavformat/takdec.c buffer = av_malloc(size - 3 + FF_INPUT_BUFFER_PADDING_SIZE); size 88 libavformat/takdec.c memset(buffer + size - 3, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 91 libavformat/takdec.c if (avio_read(pb, buffer, size - 3) != size - 3) { size 103 libavformat/takdec.c init_get_bits8(&gb, buffer, size - 3); size 109 libavformat/takdec.c if (size != 19) size 137 libavformat/takdec.c ret = avio_skip(pb, size); size 156 libavformat/takdec.c st->codec->extradata_size = size - 3; size 159 libavformat/takdec.c if (size != 11) size 182 libavformat/takdec.c int64_t size, left; size 185 libavformat/takdec.c size = FFMIN(left, 1024); size 186 libavformat/takdec.c if (size <= 0) size 189 libavformat/takdec.c ret = av_get_packet(pb, pkt, size); size 166 libavformat/tcp.c static int tcp_read(URLContext *h, uint8_t *buf, int size) size 176 libavformat/tcp.c ret = recv(s->fd, buf, size, 0); size 180 libavformat/tcp.c static int tcp_write(URLContext *h, const uint8_t *buf, int size) size 190 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 396 libavformat/tee.c &new_pkt.data, &new_pkt.size, size 397 libavformat/tee.c pkt->data, pkt->size, size 407 libavformat/tee.c new_pkt.buf = av_buffer_create(new_pkt.data, new_pkt.size, size 154 libavformat/thp.c unsigned int size; size 169 libavformat/thp.c size = avio_rb32(pb); /* Total size of this frame. */ size 178 libavformat/thp.c ret = av_get_packet(pb, pkt, size); size 181 libavformat/thp.c if (ret != size) { size 33 libavformat/tls.c #define TLS_read(c, buf, size) gnutls_record_recv((c)->session, (buf), (size)) size 34 libavformat/tls.c #define TLS_write(c, buf, size) gnutls_record_send((c)->session, (buf), (size)) size 46 libavformat/tls.c #define TLS_read(c, buf, size) SSL_read((c)->ssl, (buf), (size)) size 47 libavformat/tls.c #define TLS_write(c, buf, size) SSL_write((c)->ssl, (buf), (size)) size 356 libavformat/tls.c static int tls_read(URLContext *h, uint8_t *buf, int size) size 360 libavformat/tls.c int ret = TLS_read(c, buf, size); size 371 libavformat/tls.c static int tls_write(URLContext *h, const uint8_t *buf, int size) size 375 libavformat/tls.c int ret = TLS_write(c, buf, size); size 125 libavformat/tta.c uint32_t size = avio_rl32(s->pb); size 127 libavformat/tta.c if ((r = av_add_index_entry(st, framepos, i * c->frame_size, size, 0, size 130 libavformat/tta.c framepos += size; size 157 libavformat/tta.c int size, ret; size 168 libavformat/tta.c size = st->index_entries[c->currentframe].size; size 170 libavformat/tta.c ret = av_get_packet(s->pb, pkt, size); size 59 libavformat/tty.c #define GET_EFI_META(name,size) \ size 61 libavformat/tty.c if (len < 1 || len > size) \ size 63 libavformat/tty.c if (avio_read(pb, buf, size) == size) { \ size 129 libavformat/tty.c pkt->size = av_get_packet(avctx->pb, pkt, n); size 130 libavformat/tty.c if (pkt->size < 0) size 131 libavformat/tty.c return pkt->size; size 844 libavformat/udp.c static int udp_read(URLContext *h, uint8_t *buf, int size) size 860 libavformat/udp.c if(avail > size){ size 862 libavformat/udp.c avail= size; size 898 libavformat/udp.c ret = recv(s->udp_fd, buf, size, 0); size 903 libavformat/udp.c static int udp_write(URLContext *h, const uint8_t *buf, int size) size 915 libavformat/udp.c ret = sendto (s->udp_fd, buf, size, 0, size 919 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 102 libavformat/unix.c static int unix_read(URLContext *h, uint8_t *buf, int size) size 112 libavformat/unix.c ret = recv(s->fd, buf, size, 0); size 116 libavformat/unix.c static int unix_write(URLContext *h, const uint8_t *buf, int size) size 126 libavformat/unix.c ret = send(s->fd, buf, size, MSG_NOSIGNAL); size 36 libavformat/url.c int ff_url_join(char *str, int size, const char *proto, size 46 libavformat/url.c av_strlcatf(str, size, "%s://", proto); size 48 libavformat/url.c av_strlcatf(str, size, "%s@", authorization); size 55 libavformat/url.c av_strlcat(str, "[", size); size 56 libavformat/url.c av_strlcat(str, hostname, size); size 57 libavformat/url.c av_strlcat(str, "]", size); size 59 libavformat/url.c av_strlcat(str, hostname, size); size 65 libavformat/url.c av_strlcat(str, hostname, size); size 68 libavformat/url.c av_strlcatf(str, size, ":%d", port); size 74 libavformat/url.c vsnprintf(str + len, size > len ? size - len : 0, fmt, vl); size 80 libavformat/url.c void ff_make_absolute_url(char *buf, int size, const char *base, size 87 libavformat/url.c av_strlcpy(buf, base, size); size 101 libavformat/url.c av_strlcat(buf, rel, size); size 106 libavformat/url.c av_strlcpy(buf, rel, size); size 110 libavformat/url.c av_strlcpy(buf, base, size); size 119 libavformat/url.c av_strlcat(buf, rel, size); size 136 libavformat/url.c av_strlcat(buf, "/", size); size 146 libavformat/url.c av_strlcat(buf, rel, size); size 74 libavformat/url.h int (*url_read)( URLContext *h, unsigned char *buf, int size); size 75 libavformat/url.h int (*url_write)(URLContext *h, const unsigned char *buf, int size); size 146 libavformat/url.h int ffurl_read(URLContext *h, unsigned char *buf, int size); size 155 libavformat/url.h int ffurl_read_complete(URLContext *h, unsigned char *buf, int size); size 163 libavformat/url.h int ffurl_write(URLContext *h, const unsigned char *buf, int size); size 268 libavformat/url.h int ff_url_join(char *str, int size, const char *proto, size 280 libavformat/url.h void ff_make_absolute_url(char *buf, int size, const char *base, size 177 libavformat/utils.c int ffio_limit(AVIOContext *s, int size) size 181 libavformat/utils.c if (remaining < size) { size 189 libavformat/utils.c if (s->maxsize>= 0 && remaining+1 < size) { size 190 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 191 libavformat/utils.c size = remaining+1; size 194 libavformat/utils.c return size; size 199 libavformat/utils.c static int append_packet_chunked(AVIOContext *s, AVPacket *pkt, int size) size 202 libavformat/utils.c int orig_size = pkt->size; size 206 libavformat/utils.c int prev_size = pkt->size; size 211 libavformat/utils.c read_size = size; size 229 libavformat/utils.c size -= read_size; size 230 libavformat/utils.c } while (size > 0); size 231 libavformat/utils.c if (size > 0) size 235 libavformat/utils.c if (!pkt->size) size 237 libavformat/utils.c return pkt->size > orig_size ? pkt->size - orig_size : ret; size 240 libavformat/utils.c int av_get_packet(AVIOContext *s, AVPacket *pkt, int size) size 244 libavformat/utils.c pkt->size = 0; size 247 libavformat/utils.c return append_packet_chunked(s, pkt, size); size 250 libavformat/utils.c int av_append_packet(AVIOContext *s, AVPacket *pkt, int size) size 252 libavformat/utils.c if (!pkt->size) size 253 libavformat/utils.c return av_get_packet(s, pkt, size); size 254 libavformat/utils.c return append_packet_chunked(s, pkt, size); size 385 libavformat/utils.c if (copy.size <= 0) { size 533 libavformat/utils.c uint8_t *new_buf = av_realloc(pd->buf, pd->buf_size+pkt->size+AVPROBE_PADDING_SIZE); size 541 libavformat/utils.c memcpy(pd->buf + pd->buf_size, pkt->data, pkt->size); size 542 libavformat/utils.c pd->buf_size += pkt->size; size 556 libavformat/utils.c if (end || av_log2(pd->buf_size) != av_log2(pd->buf_size - pkt->size)) { size 656 libavformat/utils.c s->internal->raw_packet_buffer_remaining_size += pkt->size; size 663 libavformat/utils.c pkt->size = 0; size 719 libavformat/utils.c s->internal->raw_packet_buffer_remaining_size -= pkt->size; size 782 libavformat/utils.c frame_size = av_get_audio_frame_duration(st->codec, pkt->size); size 1073 libavformat/utils.c if (pc && st->need_parsing == AVSTREAM_PARSE_TIMESTAMPS && pkt->size) { size 1075 libavformat/utils.c offset = av_rescale(pc->offset, pkt->duration, pkt->size); size 1185 libavformat/utils.c int size = pkt ? pkt->size : 0; size 1192 libavformat/utils.c } else if (!size && st->parser->flags & PARSER_FLAG_COMPLETE_FRAMES) { size 1197 libavformat/utils.c while (size > 0 || (pkt == &flush_pkt && got_output)) { size 1204 libavformat/utils.c &out_pkt.data, &out_pkt.size, data, size, size 1211 libavformat/utils.c size -= len; size 1213 libavformat/utils.c got_output = !!out_pkt.size; size 1215 libavformat/utils.c if (!out_pkt.size) size 1255 libavformat/utils.c if (out_pkt.data == pkt->data && out_pkt.size == pkt->size) { size 1343 libavformat/utils.c cur_pkt.size); size 1351 libavformat/utils.c cur_pkt.size, cur_pkt.duration, cur_pkt.flags); size 1431 libavformat/utils.c dst_data = av_packet_new_side_data(pkt, src_sd->type, src_sd->size); size 1437 libavformat/utils.c memcpy(dst_data, src_sd->data, src_sd->size); size 1461 libavformat/utils.c pkt->size, pkt->duration, pkt->flags); size 1676 libavformat/utils.c int size, int distance, int flags) size 1687 libavformat/utils.c if (size < 0 || size > 0x3FFFFFFF) size 1725 libavformat/utils.c ie->size = size; size 1732 libavformat/utils.c int size, int distance, int flags) size 1737 libavformat/utils.c timestamp, size, distance, flags); size 2434 libavformat/utils.c read_size += pkt->size; size 2653 libavformat/utils.c while ((pkt.size > 0 || (!pkt.data && got_picture)) && size 2670 libavformat/utils.c ret = pkt.size; size 2679 libavformat/utils.c pkt.size -= ret; size 2852 libavformat/utils.c int ff_alloc_extradata(AVCodecContext *avctx, int size) size 2856 libavformat/utils.c if (size < 0 || size >= INT32_MAX - FF_INPUT_BUFFER_PADDING_SIZE) { size 2861 libavformat/utils.c avctx->extradata = av_malloc(size + FF_INPUT_BUFFER_PADDING_SIZE); size 2863 libavformat/utils.c memset(avctx->extradata + size, 0, FF_INPUT_BUFFER_PADDING_SIZE); size 2864 libavformat/utils.c avctx->extradata_size = size; size 2873 libavformat/utils.c int ff_get_extradata(AVCodecContext *avctx, AVIOContext *pb, int size) size 2875 libavformat/utils.c int ret = ff_alloc_extradata(avctx, size); size 2878 libavformat/utils.c ret = avio_read(pb, avctx->extradata, size); size 2879 libavformat/utils.c if (ret != size) { size 2882 libavformat/utils.c av_log(avctx, AV_LOG_ERROR, "Failed to read extradata of size %d\n", size); size 3208 libavformat/utils.c read_size += pkt->size; size 3281 libavformat/utils.c int i = st->parser->parser->split(st->codec, pkt->data, pkt->size); size 4133 libavformat/utils.c int size = 4; size 4138 libavformat/utils.c size += 4; size 4142 libavformat/utils.c size += 8; size 4146 libavformat/utils.c size += 4; size 4150 libavformat/utils.c size += 8; size 4153 libavformat/utils.c data = av_packet_new_side_data(pkt, AV_PKT_DATA_PARAM_CHANGE, size); size 4399 libavformat/utils.c int size = 0; size 4404 libavformat/utils.c size = sizeof(avci100_1080p_extradata); size 4407 libavformat/utils.c size = sizeof(avci100_1080i_extradata); size 4412 libavformat/utils.c size = sizeof(avci50_1080p_extradata); size 4415 libavformat/utils.c size = sizeof(avci50_1080i_extradata); size 4419 libavformat/utils.c size = sizeof(avci100_720p_extradata); size 4422 libavformat/utils.c size = sizeof(avci50_720p_extradata); size 4425 libavformat/utils.c if (!size) size 4429 libavformat/utils.c if (ff_alloc_extradata(st->codec, size)) size 4431 libavformat/utils.c memcpy(st->codec->extradata, data, size); size 4437 libavformat/utils.c int *size) size 4443 libavformat/utils.c if (size) size 4444 libavformat/utils.c *size = st->side_data[i].size; size 4452 libavformat/utils.c int size) size 4456 libavformat/utils.c uint8_t *data = av_malloc(size); size 4467 libavformat/utils.c sd->size = size; size 4484 libavformat/utils.c sd->size = size; size 108 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 71 libavformat/vocdec.c int size, tmp_codec=-1; size 166 libavformat/vocdec.c size = FFMIN(voc->remaining_size, max_size); size 167 libavformat/vocdec.c voc->remaining_size -= size; size 169 libavformat/vocdec.c ret = av_get_packet(pb, pkt, size); size 172 libavformat/vocdec.c duration = av_get_audio_frame_duration(st->codec, size); size 197 libavformat/vocdec.c voc->remaining_size = e->size; size 203 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 100 libavformat/vqf.c int size; size 202 libavformat/vqf.c size = 512; size 207 libavformat/vqf.c size = 1024; size 211 libavformat/vqf.c size = 2048; size 218 libavformat/vqf.c c->frame_bit_len = st->codec->bit_rate*size/st->codec->sample_rate; size 219 libavformat/vqf.c avpriv_set_pts_info(st, 64, size, st->codec->sample_rate); size 235 libavformat/vqf.c int size = (c->frame_bit_len - c->remaining_bits + 7)>>3; size 237 libavformat/vqf.c if (av_new_packet(pkt, size+2) < 0) size 246 libavformat/vqf.c ret = avio_read(s->pb, pkt->data+2, size); size 248 libavformat/vqf.c if (ret != size) { size 253 libavformat/vqf.c c->last_frame_bits = pkt->data[size+1]; size 254 libavformat/vqf.c c->remaining_bits = (size << 3) - c->frame_bit_len + c->remaining_bits; size 256 libavformat/vqf.c return size+2; size 87 libavformat/wavdec.c int64_t size; size 92 libavformat/wavdec.c size = next_tag(pb, &tag, wav->rifx); size 95 libavformat/wavdec.c wav_seek_tag(wav, pb, size, SEEK_CUR); size 97 libavformat/wavdec.c return size; size 126 libavformat/wavdec.c static int wav_parse_fmt_tag(AVFormatContext *s, int64_t size, AVStream **st) size 137 libavformat/wavdec.c ret = ff_get_wav_header(pb, (*st)->codec, size, wav->rifx); size 167 libavformat/wavdec.c static int wav_parse_bext_tag(AVFormatContext *s, int64_t size) size 219 libavformat/wavdec.c if (size > 602) { size 221 libavformat/wavdec.c size -= 602; size 223 libavformat/wavdec.c if (!(coding_history = av_malloc(size + 1))) size 226 libavformat/wavdec.c if ((ret = avio_read(s->pb, coding_history, size)) < 0) size 229 libavformat/wavdec.c coding_history[size] = 0; size 249 libavformat/wavdec.c int64_t size, av_uninit(data_size); size 293 libavformat/wavdec.c size = avio_rl32(pb); size 294 libavformat/wavdec.c if (size < 24) size 307 libavformat/wavdec.c avio_skip(pb, size - 24); /* skip rest of ds64 chunk */ size 313 libavformat/wavdec.c size = next_tag(pb, &tag, wav->rifx); size 314 libavformat/wavdec.c next_tag_ofs = avio_tell(pb) + size; size 322 libavformat/wavdec.c if (!got_fmt && (ret = wav_parse_fmt_tag(s, size, &st)) < 0) { size 339 libavformat/wavdec.c data_size = size; size 340 libavformat/wavdec.c next_tag_ofs = wav->data_end = size ? next_tag_ofs : INT64_MAX; size 348 libavformat/wavdec.c if (!pb->seekable || (!rf64 && !size)) size 356 libavformat/wavdec.c if ((ret = wav_parse_bext_tag(s, size)) < 0) size 365 libavformat/wavdec.c if (size != MKTAG('0','2','0','0')) { size 384 libavformat/wavdec.c size = avio_rl24(pb); size 385 libavformat/wavdec.c wav->smv_data_ofs = avio_tell(pb) + (size - 5) * 3; size 401 libavformat/wavdec.c if (size < 4) { size 407 libavformat/wavdec.c ff_read_riff_info(s, size - 4); size 458 libavformat/wavdec.c int64_t size; size 462 libavformat/wavdec.c size = avio_rl64(pb); size 463 libavformat/wavdec.c if (size <= 24) size 466 libavformat/wavdec.c return size; size 467 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - 24); size 476 libavformat/wavdec.c int ret, size; size 520 libavformat/wavdec.c size = avio_rl24(s->pb); size 521 libavformat/wavdec.c ret = av_get_packet(s->pb, pkt, size); size 562 libavformat/wavdec.c size = MAX_SIZE; size 564 libavformat/wavdec.c if (size < st->codec->block_align) size 565 libavformat/wavdec.c size = st->codec->block_align; size 566 libavformat/wavdec.c size = (size / st->codec->block_align) * st->codec->block_align; size 568 libavformat/wavdec.c size = FFMIN(size, left); size 569 libavformat/wavdec.c ret = av_get_packet(s->pb, pkt, size); size 651 libavformat/wavdec.c int64_t size, data_ofs = 0; size 681 libavformat/wavdec.c size = avio_rl64(pb); size 682 libavformat/wavdec.c if (size <= 24 || INT64_MAX - size < avio_tell(pb)) size 687 libavformat/wavdec.c ret = ff_get_wav_header(pb, st->codec, size - 24, 0); size 690 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - size); size 700 libavformat/wavdec.c wav->data_end = avio_tell(pb) + size - 24; size 706 libavformat/wavdec.c avio_skip(pb, size - 24); size 712 libavformat/wavdec.c end = start + FFALIGN(size, INT64_C(8)) - 24; size 738 libavformat/wavdec.c avio_skip(pb, FFALIGN(size, INT64_C(8)) - 24); size 384 libavformat/wavenc.c avio_write(pb, pkt->data, pkt->size); size 389 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 135 libavformat/wc3movie.c buffer[size] = 0; size 161 libavformat/wc3movie.c size = (avio_rb32(pb) + 1) & (~1); size 204 libavformat/wc3movie.c unsigned int size; size 213 libavformat/wc3movie.c size = (avio_rb32(pb) + 1) & (~1); size 232 libavformat/wc3movie.c ret= av_append_packet(pb, &wc3->vpkt, 8 + size); size 234 libavformat/wc3movie.c if (wc3->vpkt.size > 0) size 237 libavformat/wc3movie.c wc3->vpkt.data = NULL; wc3->vpkt.size = 0; size 246 libavformat/wc3movie.c avio_skip(pb, size); size 248 libavformat/wc3movie.c if ((unsigned)size > sizeof(text) || (ret = avio_read(pb, text, size)) != size) size 253 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 257 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 261 libavformat/wc3movie.c if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1) size 270 libavformat/wc3movie.c ret= av_get_packet(pb, pkt, size); size 297 libavformat/wc3movie.c if (wc3->vpkt.size > 0) size 59 libavformat/webpenc.c if (w->last_pkt.size) { size 98 libavformat/webpenc.c avio_wl32(s->pb, 16 + w->last_pkt.size - skip); size 109 libavformat/webpenc.c avio_write(s->pb, w->last_pkt.data + skip, w->last_pkt.size - skip); size 85 libavformat/webvttenc.c avio_write(pb, pkt->data, pkt->size); size 159 libavformat/wtvdec.c int64_t size; size 212 libavformat/wtvdec.c size = avio_size(s->pb); size 213 libavformat/wtvdec.c if (size >= 0 && (int64_t)wf->sectors[wf->nb_sectors - 1] << WTV_SECTOR_BITS > size) size 645 libavformat/wtvdec.c ff_asf_guid formattype, uint64_t size) size 654 libavformat/wtvdec.c if (size < 32) { size 656 libavformat/wtvdec.c avio_skip(pb, size); size 660 libavformat/wtvdec.c avio_skip(pb, size - 32); size 663 libavformat/wtvdec.c avio_seek(pb, -size, SEEK_CUR); size 665 libavformat/wtvdec.c st = parse_media_type(s, st, sid, mediatype, actual_subtype, actual_formattype, size - 32); size 673 libavformat/wtvdec.c int ret = ff_get_wav_header(pb, st->codec, size, 0); size 679 libavformat/wtvdec.c avio_skip(pb, size); size 701 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); size 705 libavformat/wtvdec.c avio_skip(pb, FFMAX(size - consumed, 0)); size 709 libavformat/wtvdec.c avio_skip(pb, size); size 727 libavformat/wtvdec.c avio_skip(pb, size); size 737 libavformat/wtvdec.c avio_skip(pb, size); size 744 libavformat/wtvdec.c avio_skip(pb, size); size 751 libavformat/wtvdec.c avio_skip(pb, size); size 813 libavformat/wtvdec.c int size; size 819 libavformat/wtvdec.c size = avio_rl32(pb); size 820 libavformat/wtvdec.c parse_media_type(s, 0, sid, mediatype, subtype, formattype, size); size 821 libavformat/wtvdec.c consumed += 92 + size; size 827 libavformat/wtvdec.c int size; size 833 libavformat/wtvdec.c size = avio_rl32(pb); size 834 libavformat/wtvdec.c parse_media_type(s, s->streams[stream_index], sid, mediatype, subtype, formattype, size); size 835 libavformat/wtvdec.c consumed += 76 + size; size 1038 libavformat/wtvdec.c if (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->codec->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 680 libavformat/wtvenc.c if (wctx->thumbnail.size) { size 689 libavformat/wtvenc.c avio_wl32(pb, wctx->thumbnail.size); size 690 libavformat/wtvenc.c avio_write(pb, wctx->thumbnail.data, wctx->thumbnail.size); size 709 libavformat/wtvenc.c if (wctx->thumbnail.size) { size 128 libavformat/wvdec.c int id, size; size 130 libavformat/wvdec.c size = (id & 0x80) ? avio_rl24(pb) : avio_r8(pb); size 131 libavformat/wvdec.c size <<= 1; size 133 libavformat/wvdec.c size--; size 136 libavformat/wvdec.c if (size <= 1) { size 142 libavformat/wvdec.c switch (size - 2) { size 162 libavformat/wvdec.c "Invalid channel info size %d\n", size); size 170 libavformat/wvdec.c avio_skip(pb, size); size 285 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(pb, st->codec, size, 0); size 139 libavformat/xwma.c size = avio_rl32(pb); size 162 libavformat/xwma.c if (size & 3) { /* Size should be divisible by four */ size 164 libavformat/xwma.c "dpds chunk size %"PRId64" not divisible by 4\n", size); size 166 libavformat/xwma.c dpds_table_size = size / 4; size 169 libavformat/xwma.c "dpds chunk size %"PRId64" invalid\n", size); size 183 libavformat/xwma.c size -= 4; size 186 libavformat/xwma.c avio_skip(pb, size); size 190 libavformat/xwma.c if (size < 0) { size 194 libavformat/xwma.c if (!size) { size 197 libavformat/xwma.c xwma->data_end = avio_tell(pb) + size; size 245 libavformat/xwma.c st->duration = (size<<3) * st->codec->sample_rate / st->codec->bit_rate; size 256 libavformat/xwma.c int ret, size; size 269 libavformat/xwma.c size = (st->codec->block_align > 1) ? st->codec->block_align : 2230; size 270 libavformat/xwma.c size = FFMIN(size, left); size 272 libavformat/xwma.c ret = av_get_packet(s->pb, pkt, size); size 140 libavformat/yop.c yop->video_packet.size = 0; size 144 libavformat/yop.c return pkt->size; size 115 libavutil/audio_fifo.c int i, ret, size; size 128 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 130 libavutil/audio_fifo.c ret = av_fifo_generic_write(af->buf[i], data[i], size, NULL); size 131 libavutil/audio_fifo.c if (ret != size) size 141 libavutil/audio_fifo.c int i, ret, size; size 149 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 151 libavutil/audio_fifo.c if ((ret = av_fifo_generic_read(af->buf[i], data[i], size, NULL)) < 0) size 161 libavutil/audio_fifo.c int i, size; size 168 libavutil/audio_fifo.c size = nb_samples * af->sample_size; size 170 libavutil/audio_fifo.c av_fifo_drain(af->buf[i], 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 311 libavutil/bprint.c static void bprint_pascal(AVBPrint *b, unsigned size) size 316 libavutil/bprint.c av_assert0(size < FF_ARRAY_ELEMS(p)); size 320 libavutil/bprint.c for (i = 1; i <= size; i++) { 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 28 libavutil/buffer.c AVBufferRef *av_buffer_create(uint8_t *data, int size, size 40 libavutil/buffer.c buf->size = size; size 56 libavutil/buffer.c ref->size = size; size 66 libavutil/buffer.c AVBufferRef *av_buffer_alloc(int size) size 71 libavutil/buffer.c data = av_malloc(size); size 75 libavutil/buffer.c ret = av_buffer_create(data, size, av_buffer_default_free, NULL, 0); size 82 libavutil/buffer.c AVBufferRef *av_buffer_allocz(int size) size 84 libavutil/buffer.c AVBufferRef *ret = av_buffer_alloc(size); size 88 libavutil/buffer.c memset(ret->data, 0, size); size 157 libavutil/buffer.c newbuf = av_buffer_alloc(buf->size); size 161 libavutil/buffer.c memcpy(newbuf->data, buf->data, buf->size); size 168 libavutil/buffer.c int av_buffer_realloc(AVBufferRef **pbuf, int size) size 176 libavutil/buffer.c uint8_t *data = av_realloc(NULL, size); size 180 libavutil/buffer.c buf = av_buffer_create(data, size, av_buffer_default_free, NULL, 0); size 190 libavutil/buffer.c } else if (buf->size == size) size 198 libavutil/buffer.c av_buffer_realloc(&new, size); size 202 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_init(int size, AVBufferRef* (*alloc)(int size)) size 226 libavutil/buffer.c pool->size = size; size 308 libavutil/buffer.c memset(buf->data, FF_MEMORY_POISON, pool->size); size 330 libavutil/buffer.c ret = pool->alloc(pool->size); size 377 libavutil/buffer.c ret = av_buffer_create(buf->data, pool->size, pool_release_buffer, size 387 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 38 libavutil/buffer_internal.h int size; /**< size of data in bytes */ size 92 libavutil/buffer_internal.h int size; size 93 libavutil/buffer_internal.h AVBufferRef* (*alloc)(int size); 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*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 143 libavutil/fifo.c size -= len; size 144 libavutil/fifo.c } while (size > 0); size 147 libavutil/fifo.c return total - size; size 170 libavutil/fifo.c void av_fifo_drain(AVFifoBuffer *f, int size) size 172 libavutil/fifo.c av_assert2(av_fifo_size(f) >= size); size 173 libavutil/fifo.c f->rptr += size; size 176 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 108 libavutil/fifo.h int av_fifo_generic_write(AVFifoBuffer *f, void *src, int size, int (*func)(void*, void*, int)); size 118 libavutil/fifo.h int av_fifo_realloc2(AVFifoBuffer *f, unsigned int size); size 136 libavutil/fifo.h void av_fifo_drain(AVFifoBuffer *f, int size); size 49 libavutil/file.c int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, size 82 libavutil/file.c *size = off_size; size 85 libavutil/file.c ptr = mmap(NULL, *size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); size 105 libavutil/file.c ptr = MapViewOfFile(mh, FILE_MAP_READ, 0, 0, *size); size 116 libavutil/file.c *bufptr = av_malloc(*size); size 122 libavutil/file.c read(fd, *bufptr, *size); size 129 libavutil/file.c void av_file_unmap(uint8_t *bufptr, size_t size) size 132 libavutil/file.c munmap(bufptr, size); size 195 libavutil/file.c size_t size; size 196 libavutil/file.c if (av_file_map("file.c", &buf, &size, 0, NULL) < 0) size 201 libavutil/file.c av_file_unmap(buf, size); size 43 libavutil/file.h int av_file_map(const char *filename, uint8_t **bufptr, size_t *size, size 52 libavutil/file.h void av_file_unmap(uint8_t *bufptr, size_t size); size 509 libavutil/frame.c sd_src->size); size 514 libavutil/frame.c memcpy(sd_dst->data, sd_src->data, sd_src->size); size 553 libavutil/frame.c if (data >= buf->data && data < buf->data + buf->size) size 558 libavutil/frame.c if (data >= buf->data && data < buf->data + buf->size) size 566 libavutil/frame.c int size) size 583 libavutil/frame.c ret->data = av_malloc(size); size 589 libavutil/frame.c ret->size = size; size 130 libavutil/frame.h int size; size 755 libavutil/frame.h int size); size 65 libavutil/hash.c int size; size 97 libavutil/hash.c return hashdesc[ctx->type].size; size 200 libavutil/hash.c void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size) size 206 libavutil/hash.c memcpy(dst, buf, FFMIN(size, rsize)); size 207 libavutil/hash.c if (size > rsize) size 208 libavutil/hash.c memset(dst + rsize, 0, size - rsize); size 211 libavutil/hash.c void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size) size 217 libavutil/hash.c for (i = 0; i < FFMIN(rsize, size / 2); i++) size 218 libavutil/hash.c snprintf(dst + i * 2, size - i * 2, "%02x", buf[i]); size 221 libavutil/hash.c void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size) size 229 libavutil/hash.c memcpy(dst, b64, FFMIN(osize, size)); size 230 libavutil/hash.c if (size < osize) size 231 libavutil/hash.c dst[size - 1] = 0; size 90 libavutil/hash.h void av_hash_final_bin(struct AVHashContext *ctx, uint8_t *dst, int size); size 97 libavutil/hash.h void av_hash_final_hex(struct AVHashContext *ctx, uint8_t *dst, int size); size 105 libavutil/hash.h void av_hash_final_b64(struct AVHashContext *ctx, uint8_t *dst, int size); size 113 libavutil/imgutils.c int i, total_size, size[4] = { 0 }, has_plane[4] = { 0 }; size 124 libavutil/imgutils.c size[0] = linesizes[0] * height; size 128 libavutil/imgutils.c size[0] = (size[0] + 3) & ~3; 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 368 libavutil/imgutils.c int size = av_image_get_buffer_size(pix_fmt, width, height, align); size 371 libavutil/imgutils.c if (size > dst_size || size < 0 || !desc) size 398 libavutil/imgutils.c return size; size 129 libavutil/internal.h #define FF_ALLOC_OR_GOTO(ctx, p, size, label)\ size 131 libavutil/internal.h p = av_malloc(size);\ size 132 libavutil/internal.h if (!(p) && (size) != 0) {\ size 138 libavutil/internal.h #define FF_ALLOCZ_OR_GOTO(ctx, p, size, label)\ size 140 libavutil/internal.h p = av_mallocz(size);\ size 141 libavutil/internal.h if (!(p) && (size) != 0) {\ size 270 libavutil/log.c char lastc = part[3].len && part[3].len <= part[3].size ? part[3].str[part[3].len - 1] : 0; 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 75 libavutil/mem.c void *av_malloc(size_t size) size 83 libavutil/mem.c if (size > (max_alloc_size - 32)) size 87 libavutil/mem.c ptr = malloc(size + ALIGN); size 94 libavutil/mem.c if (size) //OS X on SDK 10.6 has a broken posix_memalign implementation size 95 libavutil/mem.c if (posix_memalign(&ptr, ALIGN, size)) size 98 libavutil/mem.c ptr = _aligned_malloc(size, ALIGN); size 101 libavutil/mem.c ptr = memalign(ALIGN, size); size 103 libavutil/mem.c ptr = memalign(size, ALIGN); size 130 libavutil/mem.c ptr = malloc(size); size 132 libavutil/mem.c if(!ptr && !size) { size 133 libavutil/mem.c size = 1; size 138 libavutil/mem.c memset(ptr, FF_MEMORY_POISON, size); size 143 libavutil/mem.c void *av_realloc(void *ptr, size_t size) size 150 libavutil/mem.c if (size > (max_alloc_size - 32)) size 156 libavutil/mem.c return av_malloc(size); size 159 libavutil/mem.c ptr = realloc((char *)ptr - diff, size + diff); size 164 libavutil/mem.c return _aligned_realloc(ptr, size + !size, ALIGN); size 166 libavutil/mem.c return realloc(ptr, size + !size); size 172 libavutil/mem.c size_t size; size 175 libavutil/mem.c if (av_size_mult(elsize, nelem, &size)) { size 179 libavutil/mem.c r = av_realloc(ptr, size); size 180 libavutil/mem.c if (!r && size) size 185 libavutil/mem.c int av_reallocp(void *ptr, size_t size) size 189 libavutil/mem.c if (!size) { size 195 libavutil/mem.c val = av_realloc(val, size); size 206 libavutil/mem.c void *av_realloc_array(void *ptr, size_t nmemb, size_t size) size 208 libavutil/mem.c if (!size || nmemb >= INT_MAX / size) size 210 libavutil/mem.c return av_realloc(ptr, nmemb * size); size 213 libavutil/mem.c int av_reallocp_array(void *ptr, size_t nmemb, size_t size) size 218 libavutil/mem.c val = av_realloc_f(val, nmemb, size); size 220 libavutil/mem.c if (!val && nmemb && size) size 250 libavutil/mem.c void *av_mallocz(size_t size) size 252 libavutil/mem.c void *ptr = av_malloc(size); size 254 libavutil/mem.c memset(ptr, 0, size); size 258 libavutil/mem.c void *av_calloc(size_t nmemb, size_t size) size 260 libavutil/mem.c if (size <= 0 || nmemb >= INT_MAX / size) size 262 libavutil/mem.c return av_mallocz(nmemb * size); size 297 libavutil/mem.c void *av_memdup(const void *p, size_t size) size 301 libavutil/mem.c ptr = av_malloc(size); size 303 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 492 libavutil/mem.c *size = min_size; size 497 libavutil/mem.c static inline int ff_fast_malloc(void *ptr, unsigned int *size, size_t min_size, int zero_realloc) size 501 libavutil/mem.c if (min_size < *size) size 509 libavutil/mem.c *size = min_size; size 513 libavutil/mem.c void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size) size 515 libavutil/mem.c ff_fast_malloc(ptr, size, min_size, 0); size 83 libavutil/mem.h void *av_malloc(size_t size) av_malloc_attrib av_alloc_size(1); size 93 libavutil/mem.h av_alloc_size(1, 2) static inline void *av_malloc_array(size_t nmemb, size_t size) size 95 libavutil/mem.h if (!size || nmemb >= INT_MAX / size) size 97 libavutil/mem.h return av_malloc(nmemb * size); size 118 libavutil/mem.h void *av_realloc(void *ptr, size_t size) av_alloc_size(2); size 147 libavutil/mem.h int av_reallocp(void *ptr, size_t size); size 166 libavutil/mem.h av_alloc_size(2, 3) void *av_realloc_array(void *ptr, size_t nmemb, size_t size); size 185 libavutil/mem.h av_alloc_size(2, 3) int av_reallocp_array(void *ptr, size_t nmemb, size_t size); size 205 libavutil/mem.h void *av_mallocz(size_t size) av_malloc_attrib av_alloc_size(1); size 217 libavutil/mem.h void *av_calloc(size_t nmemb, size_t size) av_malloc_attrib; size 228 libavutil/mem.h av_alloc_size(1, 2) static inline void *av_mallocz_array(size_t nmemb, size_t size) size 230 libavutil/mem.h if (!size || nmemb >= INT_MAX / size) size 232 libavutil/mem.h return av_mallocz(nmemb * size); size 259 libavutil/mem.h void *av_memdup(const void *p, size_t size); size 369 libavutil/mem.h void *av_fast_realloc(void *ptr, unsigned int *size, size_t min_size); size 383 libavutil/mem.h void av_fast_malloc(void *ptr, unsigned int *size, size_t min_size); size 1789 libavutil/opt.c int size; size 1801 libavutil/opt.c ret = !memcmp(opt_ptr, tmp.data, tmp.size); size 725 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 157 libavutil/pixelutils.c #define RANDOM_INIT(buf, size) do { \ size 159 libavutil/pixelutils.c for (k = 0; k < size; k++) { \ size 175 libavutil/samplefmt.c int size = av_samples_get_buffer_size(NULL, nb_channels, nb_samples, size 177 libavutil/samplefmt.c if (size < 0) size 178 libavutil/samplefmt.c return size; size 180 libavutil/samplefmt.c buf = av_malloc(size); size 184 libavutil/samplefmt.c size = av_samples_fill_arrays(audio_data, linesize, buf, nb_channels, size 186 libavutil/samplefmt.c if (size < 0) { size 188 libavutil/samplefmt.c return size; size 193 libavutil/samplefmt.c return size; size 879 libpostproc/postprocess.c static void reallocAlign(void **p, int size){ size 881 libpostproc/postprocess.c *p= av_mallocz(size); size 451 libswresample/swresample.c int ret, size, consumed; size 483 libswresample/swresample.c size= s->in_buffer_index + s->in_buffer_count + in_count; size 484 libswresample/swresample.c if( size > s->in_buffer.count size 490 libswresample/swresample.c if((ret=swri_realloc_audio(&s->in_buffer, size)) < 0) size 705 libswresample/swresample.c int ret, size; size 706 libswresample/swresample.c size = FFMIN(out_count, s->in_buffer_count); size 707 libswresample/swresample.c if(size){ size 709 libswresample/swresample.c ret= swr_convert_internal(s, out, size, &tmp, size); size 722 libswresample/swresample.c size= s->in_buffer_index + s->in_buffer_count + in_count - out_count; size 725 libswresample/swresample.c if( size > s->in_buffer.count size 731 libswresample/swresample.c if((ret=swri_realloc_audio(&s->in_buffer, size)) < 0) size 736 libswresample/swresample.c size = FFMIN(in_count, out_count); size 737 libswresample/swresample.c ret= swr_convert_internal(s, out, size, in, size); 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 142 tests/tiny_ssim.c uint64_t ssd_plane( const uint8_t *pix1, const uint8_t *pix2, int size ) size 146 tests/tiny_ssim.c for( i=0; i<size; i++ ) size 70 tools/aviocat.c int64_t size = avio_size(input); size 71 tools/aviocat.c if (size < 0) { size 76 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 return __coverity_alloc__(size); size 65 tools/crypto_bench.c void (*run)(uint8_t *output, const uint8_t *input, unsigned size); size 85 tools/crypto_bench.c const uint8_t *input, unsigned size) size 87 tools/crypto_bench.c av_md5_sum(output, input, size); size 92 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 98 tools/crypto_bench.c av_ ## namespace ## _update(h, input, size); \ size 108 tools/crypto_bench.c const uint8_t *input, unsigned size) size 114 tools/crypto_bench.c av_aes_crypt(aes, output, input, size >> 4, NULL, 0); size 118 tools/crypto_bench.c const uint8_t *input, unsigned size) size 124 tools/crypto_bench.c av_camellia_crypt(camellia, output, input, size >> 4, NULL, 0); size 128 tools/crypto_bench.c const uint8_t *input, unsigned size) size 134 tools/crypto_bench.c av_cast5_crypt(cast, output, input, size >> 3, 0); size 138 tools/crypto_bench.c const uint8_t *input, unsigned size) size 144 tools/crypto_bench.c av_twofish_crypt(twofish, output, input, size >> 4, NULL, 0); size 161 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 163 tools/crypto_bench.c function(input, size, output); \ size 173 tools/crypto_bench.c const uint8_t *input, unsigned size) size 179 tools/crypto_bench.c size -= 15; size 180 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 185 tools/crypto_bench.c const uint8_t *input, unsigned size) size 191 tools/crypto_bench.c size -= 15; size 192 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 197 tools/crypto_bench.c const uint8_t *input, unsigned size) size 203 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 222 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 224 tools/crypto_bench.c gcry_md_hash_buffer(GCRY_MD_ ## algo, output, input, size); \ size 234 tools/crypto_bench.c const uint8_t *input, unsigned size) size 240 tools/crypto_bench.c gcry_cipher_encrypt(aes, output, size, input, size); size 244 tools/crypto_bench.c const uint8_t *input, unsigned size) size 250 tools/crypto_bench.c gcry_cipher_encrypt(camellia, output, size, input, size); size 254 tools/crypto_bench.c const uint8_t *input, unsigned size) size 260 tools/crypto_bench.c gcry_cipher_encrypt(cast, output, size, input, size); size 264 tools/crypto_bench.c const uint8_t *input, unsigned size) size 270 tools/crypto_bench.c gcry_cipher_encrypt(twofish, output, size, input, size); size 288 tools/crypto_bench.c const uint8_t *input, unsigned size) \ size 292 tools/crypto_bench.c namespace ## _process(&md, input, size); \ size 303 tools/crypto_bench.c const uint8_t *input, unsigned size) size 309 tools/crypto_bench.c size -= 15; size 310 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 315 tools/crypto_bench.c const uint8_t *input, unsigned size) size 321 tools/crypto_bench.c size -= 15; size 322 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 327 tools/crypto_bench.c const uint8_t *input, unsigned size) size 333 tools/crypto_bench.c for (i = 0; i < size; i += 8) size 338 tools/crypto_bench.c const uint8_t *input, unsigned size) size 344 tools/crypto_bench.c size -= 15; size 345 tools/crypto_bench.c for (i = 0; i < size; i += 16) size 359 tools/crypto_bench.c static unsigned crc32(const uint8_t *data, unsigned size) size 361 tools/crypto_bench.c return av_crc(av_crc_get_table(AV_CRC_32_IEEE), 0, data, size); size 365 tools/crypto_bench.c struct hash_impl *impl, unsigned size) size 368 tools/crypto_bench.c unsigned nruns = specified_runs ? specified_runs : (1 << 30) / size; size 385 tools/crypto_bench.c impl->run(output, input, size); size 387 tools/crypto_bench.c memset(output, 0, size); /* avoid leftovers from previous runs */ size 389 tools/crypto_bench.c impl->run(output, input, size); size 392 tools/crypto_bench.c crc32(output, size) != outcrc) { size 398 tools/crypto_bench.c fprintf(stderr, "%08x", crc32(output, size)); size 402 tools/crypto_bench.c mtime = (double)(t1 - t0) / size; size 411 tools/crypto_bench.c impl->lib, impl->name, size, nruns, ttime, stime); size 443 tools/crypto_bench.c unsigned i, impl, size; size 483 tools/crypto_bench.c size = MAX_INPUT_SIZE; size 485 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 111 tools/ismindex.c int32_t size, tag; size 113 tools/ismindex.c size = avio_rb32(in); size 115 tools/ismindex.c avio_wb32(out, size); size 119 tools/ismindex.c size -= 8; size 120 tools/ismindex.c while (size > 0) { size 122 tools/ismindex.c int len = FFMIN(sizeof(buf), size); size 129 tools/ismindex.c size -= len; size 137 tools/ismindex.c int32_t size, tag; size 139 tools/ismindex.c size = avio_rb32(in); size 143 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 269 tools/ismindex.c int32_t moof_size, size, tag; size 280 tools/ismindex.c size = avio_rb32(in); size 284 tools/ismindex.c int64_t traf_size = size; size 287 tools/ismindex.c size = avio_rb32(in); size 303 tools/ismindex.c pos + size); size 305 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 310 tools/ismindex.c avio_seek(in, pos + size, SEEK_SET); size 323 tools/ismindex.c uint32_t size = avio_rb32(f); size 405 tools/ismindex.c avio_seek(f, pos + size, SEEK_SET); size 112 tools/pktdumper.c pkt.stream_index, pkt.pts, pkt.size, size 114 tools/pktdumper.c printf(PKTFILESUFF "\n", pktnum, pkt.stream_index, pkt.pts, pkt.size, size 118 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 57 tools/probetest.c fmt->name, score, type, p, size); size 94 tools/probetest.c unsigned int p, i, type, size, retry; size 133 tools/probetest.c for (size = 1; size < max_size; size *= 2) { size 134 tools/probetest.c pd.buf_size = size; size 135 tools/probetest.c pd.buf = av_realloc(pd.buf, size + AVPROBE_PADDING_SIZE); size 143 tools/probetest.c memset(pd.buf, 0, size + AVPROBE_PADDING_SIZE); size 145 tools/probetest.c fprintf(stderr, "testing size=%d\n", size); size 147 tools/probetest.c for (retry = 0; retry < retry_count; retry += FFMAX(size, 32)) { size 151 tools/probetest.c init_put_bits(&pb, pd.buf, size); size 154 tools/probetest.c for (i = 0; i < size * 8; i++) size 158 tools/probetest.c for (i = 0; i < size * 8; i++) { size 166 tools/probetest.c for (i = 0; i < size * 8; i++) { size 174 tools/probetest.c for (i = 0; i < size; i++) { size 195 tools/probetest.c probe(&pd, type, p, size); size 87 tools/seek_print.c ret, packet.size, packet.stream_index, size 55 tools/sidxindex.c static void set_codec_str(AVCodecContext *codec, 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 66 tools/sidxindex.c snprintf(str, size, "mp4a.40"); // 0x40 is the mp4 object type for AAC size 71 tools/sidxindex.c av_strlcatf(str, size, ".%d", aot); size 89 tools/sidxindex.c int32_t size, tag; size 91 tools/sidxindex.c size = avio_rb32(f); size 93 tools/sidxindex.c if (size < 8) size 100 tools/sidxindex.c track->sidx_length = size; size 102 tools/sidxindex.c track->sidx_length = pos + size - track->sidx_start; size 106 tools/sidxindex.c if (avio_seek(f, pos + size, SEEK_SET) != pos + size)