Home
last modified time | relevance | path

Searched refs:bitstream_size (Results 1 – 16 of 16) sorted by relevance

/third_party/ffmpeg/libavcodec/
D4xm.c439 unsigned int bitstream_size, bytestream_size, wordstream_size, extra, in decode_p_frame() local
449 bitstream_size = AV_RL32(buf + 8); in decode_p_frame()
454 bitstream_size = AV_RL16(buf - 4); in decode_p_frame()
456 bytestream_size = FFMAX(length - bitstream_size - wordstream_size, 0); in decode_p_frame()
459 if (bitstream_size > length || bitstream_size >= INT_MAX/8 || in decode_p_frame()
460 bytestream_size > length - bitstream_size || in decode_p_frame()
461 wordstream_size > length - bytestream_size - bitstream_size || in decode_p_frame()
462 extra > length - bytestream_size - bitstream_size - wordstream_size) { in decode_p_frame()
463 …av_log(f->avctx, AV_LOG_ERROR, "lengths %d %d %d %d\n", bitstream_size, bytestream_size, wordstrea… in decode_p_frame()
464 bitstream_size+ bytestream_size+ wordstream_size - length); in decode_p_frame()
[all …]
Ddxva2_av1.c45 unsigned bitstream_size; member
286 ctx_pic->bitstream_size = 0; in dxva2_av1_start_frame()
310 ctx_pic->bitstream_size = size; in dxva2_av1_decode_slice()
325 ctx_pic->bitstream_size + size); in dxva2_av1_decode_slice()
331 memcpy(ctx_pic->bitstream + ctx_pic->bitstream_size, buffer, size); in dxva2_av1_decode_slice()
334 …ctx_pic->tiles[tile_num].DataOffset = ctx_pic->bitstream_size + h->tile_group_info[tile_num].til… in dxva2_av1_decode_slice()
341 ctx_pic->bitstream_size += size; in dxva2_av1_decode_slice()
381 if (ctx_pic->bitstream_size > dxva_size) { in commit_bitstream_and_slice_buffer()
386 memcpy(dxva_data, ctx_pic->bitstream, ctx_pic->bitstream_size); in commit_bitstream_and_slice_buffer()
388 padding = FFMIN(128 - ((ctx_pic->bitstream_size) & 127), dxva_size - ctx_pic->bitstream_size); in commit_bitstream_and_slice_buffer()
[all …]
Dinterplayacm.c44 int bitstream_size; member
564 if (!pkt->size && !s->bitstream_size) { in decode_frame()
569 buf_size = FFMIN(pkt->size, s->max_framesize - s->bitstream_size); in decode_frame()
571 if (s->bitstream_index + s->bitstream_size + buf_size > s->max_framesize) { in decode_frame()
572 memmove(s->bitstream, &s->bitstream[s->bitstream_index], s->bitstream_size); in decode_frame()
576 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], pkt->data, buf_size); in decode_frame()
578 buf_size += s->bitstream_size; in decode_frame()
579 s->bitstream_size = buf_size; in decode_frame()
609 s->bitstream_size = 0; in decode_frame()
614 if (s->bitstream_size > 0) { in decode_frame()
[all …]
Dshorten.c98 int bitstream_size; member
550 buf_size = FFMIN(buf_size, s->max_framesize - s->bitstream_size); in shorten_decode_frame()
553 if (s->bitstream_index + s->bitstream_size + buf_size + AV_INPUT_BUFFER_PADDING_SIZE > in shorten_decode_frame()
556 s->bitstream_size); in shorten_decode_frame()
560 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], buf, in shorten_decode_frame()
563 buf_size += s->bitstream_size; in shorten_decode_frame()
564 s->bitstream_size = buf_size; in shorten_decode_frame()
778 s->bitstream_size = 0; in shorten_decode_frame()
782 if (s->bitstream_size) { in shorten_decode_frame()
784 s->bitstream_size -= i; in shorten_decode_frame()
Ddxva2_mpeg2.c39 unsigned bitstream_size; member
272 ctx_pic->bitstream_size = 0; in dxva2_mpeg2_start_frame()
292 ctx_pic->bitstream_size += size; in dxva2_mpeg2_decode_slice()
307 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_mpeg2_end_frame()
Ddxva2_vp9.c35 unsigned bitstream_size; member
270 ctx_pic->bitstream_size = 0; in dxva2_vp9_start_frame()
285 ctx_pic->bitstream_size += size; in dxva2_vp9_decode_slice()
299 if (ctx_pic->bitstream_size <= 0) in dxva2_vp9_end_frame()
Dvideotoolbox.c88 vtctx->bitstream_size = size; in ff_videotoolbox_buffer_copy()
437 vtctx->bitstream_size+size+4); in videotoolbox_common_decode_slice()
443 AV_WB32(vtctx->bitstream + vtctx->bitstream_size, size); in videotoolbox_common_decode_slice()
444 memcpy(vtctx->bitstream + vtctx->bitstream_size + 4, buffer, size); in videotoolbox_common_decode_slice()
446 vtctx->bitstream_size += size + 4; in videotoolbox_common_decode_slice()
718 vtctx->bitstream_size); in videotoolbox_session_decode_frame()
1018 if (!videotoolbox->session || !vtctx->bitstream || !vtctx->bitstream_size) in ff_videotoolbox_common_end_frame()
1043 vtctx->bitstream_size = 0; in videotoolbox_h264_end_frame()
1082 vtctx->bitstream_size = 0; in videotoolbox_hevc_end_frame()
Ddxva2_vc1.c39 unsigned bitstream_size; member
327 ctx_pic->bitstream_size = 0; in dxva2_vc1_start_frame()
355 ctx_pic->bitstream_size += size; in dxva2_vc1_decode_slice()
368 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_vc1_end_frame()
Ddxva2_hevc.c39 unsigned bitstream_size; member
377 ctx_pic->bitstream_size = 0; in dxva2_hevc_start_frame()
396 ctx_pic->bitstream_size += size; in dxva2_hevc_decode_slice()
412 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_hevc_end_frame()
Ddxva2_h264.c40 unsigned bitstream_size; member
462 ctx_pic->bitstream_size = 0; in dxva2_h264_start_frame()
483 ctx_pic->bitstream_size += size; in dxva2_h264_decode_slice()
507 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_h264_end_frame()
Dvt_internal.h30 int bitstream_size; member
Dimm4.c49 int bitstream_size; member
368 av_fast_padded_malloc(&s->bitstream, &s->bitstream_size, in decode_frame()
530 s->bitstream_size = 0; in decode_close()
Dagm.c68 int bitstream_size; member
1115 s->bitstream_size = s->fflags & 0x1FFFFFFF; in decode_frame()
1118 if (avpkt->size < s->bitstream_size + 8) in decode_frame()
1137 ret = decode_huffman2(avctx, header, (avpkt->size - s->bitstream_size) - 8); in decode_frame()
Dmobiclip.c267 int bitstream_size; member
1219 av_fast_padded_malloc(&s->bitstream, &s->bitstream_size, in mobiclip_decode()
1332 s->bitstream_size = 0; in mobiclip_close()
/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_uvd_enc.h138 uint32_t bitstream_size; member
Dradeon_uvd_enc.c253 *size = fb_data->bitstream_size; in radeon_uvd_enc_get_feedback()