• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching defs:buf_size

150 static void name(AVCodecContext *avctx, uint8_t * dst, const uint8_t *buf, int buf_size, int packed) \
154 for (i = 0; i + 1 < buf_size; i += 2) \
158 init_get_bits(&gb, buf, buf_size * 8); \
175 int buf_size = avpkt->size;
202 frame->buf[0] = av_buffer_alloc(FFMAX(context->frame_size, buf_size));
212 buf_size = context->frame_size - AVPALETTE_SIZE;
214 for (i = 0; 2 * i + 1 < buf_size && i<avpkt->size; i++) {
221 for (i = 0; 4 * i + 3 < buf_size && i<avpkt->size; i++) {
236 av_fast_padded_malloc(&context->bitstream_buf, &context->bitstream_buf_size, buf_size);
240 context->bbdsp.bswap16_buf(context->bitstream_buf, (const uint16_t*)buf, buf_size / 2);
242 context->bbdsp.bswap_buf(context->bitstream_buf, (const uint32_t*)buf, buf_size / 4);
249 scale16be(avctx, dst, buf, buf_size, packed);
251 scale16le(avctx, dst, buf, buf_size, packed);
255 memcpy(frame->buf[0]->data, buf, buf_size);
261 buf += buf_size - context->frame_size;
264 if (buf_size < len && (avctx->codec_tag & 0xFFFFFF) != MKTAG('B','I','T', 0)) {
265 av_log(avctx, AV_LOG_ERROR, "Invalid buffer size, packet size %d < expected frame_size %d\n", buf_size, len);
299 FFALIGN(frame->linesize[0], linesize_align) * avctx->height <= buf_size)
304 FFALIGN(frame->linesize[1], linesize_align) * ((avctx->height + 1) / 2) <= buf_size) {
311 if ((avctx->pix_fmt == AV_PIX_FMT_PAL8 && buf_size < context->frame_size) ||
322 ((frame->linesize[0] + 3) & ~3) * avctx->height <= buf_size)
334 if (avctx->codec_tag == AV_RL32("I420") && (avctx->width+1)*(avctx->height+1) * 3/2 == buf_size) {
357 return buf_size;