Home
last modified time | relevance | path

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

/third_party/ffmpeg/libavcodec/
D4xm.c437 unsigned int bitstream_size, bytestream_size, wordstream_size, extra, in decode_p_frame() local
447 bitstream_size = AV_RL32(buf + 8); in decode_p_frame()
452 bitstream_size = AV_RL16(buf - 4); in decode_p_frame()
454 bytestream_size = FFMAX(length - bitstream_size - wordstream_size, 0); in decode_p_frame()
457 if (bitstream_size > length || bitstream_size >= INT_MAX/8 || in decode_p_frame()
458 bytestream_size > length - bitstream_size || in decode_p_frame()
459 wordstream_size > length - bytestream_size - bitstream_size || in decode_p_frame()
460 extra > length - bytestream_size - bitstream_size - wordstream_size) { in decode_p_frame()
461 …av_log(f->avctx, AV_LOG_ERROR, "lengths %d %d %d %d\n", bitstream_size, bytestream_size, wordstrea… in decode_p_frame()
462 bitstream_size+ bytestream_size+ wordstream_size - length); in decode_p_frame()
[all …]
Ddxva2_av1.c43 unsigned bitstream_size; member
284 ctx_pic->bitstream_size = 0; in dxva2_av1_start_frame()
308 ctx_pic->bitstream_size = size; in dxva2_av1_decode_slice()
323 ctx_pic->bitstream_size + size); in dxva2_av1_decode_slice()
329 memcpy(ctx_pic->bitstream + ctx_pic->bitstream_size, buffer, size); in dxva2_av1_decode_slice()
332 …ctx_pic->tiles[tile_num].DataOffset = ctx_pic->bitstream_size + h->tile_group_info[tile_num].til… in dxva2_av1_decode_slice()
339 ctx_pic->bitstream_size += size; in dxva2_av1_decode_slice()
379 if (ctx_pic->bitstream_size > dxva_size) { in commit_bitstream_and_slice_buffer()
384 memcpy(dxva_data, ctx_pic->bitstream, ctx_pic->bitstream_size); in commit_bitstream_and_slice_buffer()
386 padding = FFMIN(128 - ((ctx_pic->bitstream_size) & 127), dxva_size - ctx_pic->bitstream_size); in commit_bitstream_and_slice_buffer()
[all …]
Dinterplayacm.c41 int bitstream_size; member
554 if (!pkt->size && !s->bitstream_size) { in decode_frame()
559 buf_size = FFMIN(pkt->size, s->max_framesize - s->bitstream_size); in decode_frame()
561 if (s->bitstream_index + s->bitstream_size + buf_size > s->max_framesize) { in decode_frame()
562 memmove(s->bitstream, &s->bitstream[s->bitstream_index], s->bitstream_size); in decode_frame()
566 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], pkt->data, buf_size); in decode_frame()
568 buf_size += s->bitstream_size; in decode_frame()
569 s->bitstream_size = buf_size; in decode_frame()
598 s->bitstream_size = 0; in decode_frame()
603 if (s->bitstream_size) { in decode_frame()
[all …]
Dshorten.c97 int bitstream_size; member
546 buf_size = FFMIN(buf_size, s->max_framesize - s->bitstream_size); in shorten_decode_frame()
549 if (s->bitstream_index + s->bitstream_size + buf_size + AV_INPUT_BUFFER_PADDING_SIZE > in shorten_decode_frame()
552 s->bitstream_size); in shorten_decode_frame()
556 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], buf, in shorten_decode_frame()
559 buf_size += s->bitstream_size; in shorten_decode_frame()
560 s->bitstream_size = buf_size; in shorten_decode_frame()
774 s->bitstream_size = 0; in shorten_decode_frame()
778 if (s->bitstream_size) { in shorten_decode_frame()
780 s->bitstream_size -= i; in shorten_decode_frame()
Ddxva2_mpeg2.c37 unsigned bitstream_size; member
270 ctx_pic->bitstream_size = 0; in dxva2_mpeg2_start_frame()
290 ctx_pic->bitstream_size += size; in dxva2_mpeg2_decode_slice()
305 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_mpeg2_end_frame()
Ddxva2_vp9.c33 unsigned bitstream_size; member
268 ctx_pic->bitstream_size = 0; in dxva2_vp9_start_frame()
283 ctx_pic->bitstream_size += size; in dxva2_vp9_decode_slice()
297 if (ctx_pic->bitstream_size <= 0) in dxva2_vp9_end_frame()
Dvideotoolbox.c79 vtctx->bitstream_size = size; in videotoolbox_buffer_copy()
380 vtctx->bitstream_size+size+4); in videotoolbox_common_decode_slice()
386 AV_WB32(vtctx->bitstream + vtctx->bitstream_size, size); in videotoolbox_common_decode_slice()
387 memcpy(vtctx->bitstream + vtctx->bitstream_size + 4, buffer, size); in videotoolbox_common_decode_slice()
389 vtctx->bitstream_size += size + 4; in videotoolbox_common_decode_slice()
636 vtctx->bitstream_size); in videotoolbox_session_decode_frame()
915 if (!videotoolbox->session || !vtctx->bitstream || !vtctx->bitstream_size) in videotoolbox_common_end_frame()
940 vtctx->bitstream_size = 0; in videotoolbox_h264_end_frame()
979 vtctx->bitstream_size = 0; in videotoolbox_hevc_end_frame()
Dvt_internal.h27 int bitstream_size; member
Ddxva2_vc1.c36 unsigned bitstream_size; member
324 ctx_pic->bitstream_size = 0; in dxva2_vc1_start_frame()
352 ctx_pic->bitstream_size += size; in dxva2_vc1_decode_slice()
365 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_vc1_end_frame()
Ddxva2_hevc.c37 unsigned bitstream_size; member
375 ctx_pic->bitstream_size = 0; in dxva2_hevc_start_frame()
394 ctx_pic->bitstream_size += size; in dxva2_hevc_decode_slice()
410 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_hevc_end_frame()
Ddxva2_h264.c38 unsigned bitstream_size; member
460 ctx_pic->bitstream_size = 0; in dxva2_h264_start_frame()
481 ctx_pic->bitstream_size += size; in dxva2_h264_decode_slice()
505 if (ctx_pic->slice_count <= 0 || ctx_pic->bitstream_size <= 0) in dxva2_h264_end_frame()
Dimm4.c48 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.c67 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.c266 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/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11decoder.h66 gsize bitstream_size; member
Dgstd3d11decoder.cpp1154 buffer_desc[2].DataSize = input_args->bitstream_size; in gst_d3d11_decoder_decode_frame()
1230 if (d3d11_buffer_size < input_args->bitstream_size) { in gst_d3d11_decoder_decode_frame()
1239 memcpy (d3d11_buffer, input_args->bitstream, input_args->bitstream_size); in gst_d3d11_decoder_decode_frame()
Dgstd3d11vp8dec.cpp624 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_vp8_dec_end_picture()
Dgstd3d11mpeg2dec.cpp723 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_mpeg2_dec_end_picture()
Dgstd3d11h264dec.cpp857 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_h264_dec_end_picture()
Dgstd3d11vp9dec.cpp762 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_vp9_dec_end_picture()
Dgstd3d11h265dec.cpp901 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_h265_dec_end_picture()
Dgstd3d11av1dec.cpp1205 input_args.bitstream_size = inner->bitstream_buffer.size (); in gst_d3d11_av1_dec_end_picture()
/third_party/mesa3d/src/gallium/drivers/radeon/
Dradeon_uvd_enc.h138 uint32_t bitstream_size; member
Dradeon_uvd_enc.c253 *size = fb_data->bitstream_size; in radeon_uvd_enc_get_feedback()
/third_party/gstreamer/gst_libav/
DChangeLog5506 - 4xm: Check bitstream_size boundary before using it