Home
last modified time | relevance | path

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

123

/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/video/
H A Dh265_parser.cc78 bool H265Parser::LocateNALU(off_t* nalu_size, off_t* start_code_size) { in LocateNALU() argument
115 *start_code_size = annexb_start_code_size; in LocateNALU()
120 off_t start_code_size; in AdvanceToNextNALU() local
122 if (!LocateNALU(&nalu_size_with_start_code, &start_code_size)) { in AdvanceToNextNALU()
128 nalu->data = stream_ + start_code_size; in AdvanceToNextNALU()
129 nalu->size = nalu_size_with_start_code - start_code_size; in AdvanceToNextNALU()
H A Dh264_parser.cc371 off_t* start_code_size) { in FindStartCode() argument
392 *start_code_size = 3; in FindStartCode()
398 ++(*start_code_size); in FindStartCode()
414 *start_code_size = 0; in FindStartCode()
454 *start_code_size = annexb_start_code_size; in LocateNALU()
464 off_t* start_code_size) { in FindStartCodeInClearRanges() argument
486 *start_code_size = 0; in FindStartCodeInClearRanges()
489 } while (*start_code_size == 0); in FindStartCodeInClearRanges()
599 off_t start_code_size; in AdvanceToNextNALU() local
609 nalu->data = stream_ + start_code_size; in AdvanceToNextNALU()
[all …]
/dports/multimedia/handbrake/ffmpeg-4.4/libavcodec/
H A Dh264_mp4toannexb_bsf.c49 uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3; in count_or_copy() local
52 memcpy(*out + start_code_size, in, in_size); in count_or_copy()
53 if (start_code_size == 4) { in count_or_copy()
55 } else if (start_code_size) { in count_or_copy()
60 *out += start_code_size + in_size; in count_or_copy()
62 *out_size += start_code_size + in_size; in count_or_copy()
H A Ddxva2_vc1.c192 const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0; in commit_bitstream_and_slice_buffer() local
231 if (start_code_size + size > end - current) { in commit_bitstream_and_slice_buffer()
245 if (start_code_size) { in commit_bitstream_and_slice_buffer()
246 memcpy(current, start_code, start_code_size); in commit_bitstream_and_slice_buffer()
252 current += start_code_size; in commit_bitstream_and_slice_buffer()
253 slice->dwSliceBitsInBuffer += start_code_size * 8; in commit_bitstream_and_slice_buffer()
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavcodec/
H A Dh264_mp4toannexb_bsf.c49 uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3; in count_or_copy() local
52 memcpy(*out + start_code_size, in, in_size); in count_or_copy()
53 if (start_code_size == 4) { in count_or_copy()
55 } else if (start_code_size) { in count_or_copy()
60 *out += start_code_size + in_size; in count_or_copy()
62 *out_size += start_code_size + in_size; in count_or_copy()
H A Ddxva2_vc1.c192 const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0; in commit_bitstream_and_slice_buffer() local
231 if (start_code_size + size > end - current) { in commit_bitstream_and_slice_buffer()
245 if (start_code_size) { in commit_bitstream_and_slice_buffer()
246 memcpy(current, start_code, start_code_size); in commit_bitstream_and_slice_buffer()
252 current += start_code_size; in commit_bitstream_and_slice_buffer()
253 slice->dwSliceBitsInBuffer += start_code_size * 8; in commit_bitstream_and_slice_buffer()
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavcodec/
H A Dh264_mp4toannexb_bsf.c49 uint8_t start_code_size = ps < 0 ? 0 : *out_size == 0 || ps ? 4 : 3; in count_or_copy() local
52 memcpy(*out + start_code_size, in, in_size); in count_or_copy()
53 if (start_code_size == 4) { in count_or_copy()
55 } else if (start_code_size) { in count_or_copy()
60 *out += start_code_size + in_size; in count_or_copy()
62 *out_size += start_code_size + in_size; in count_or_copy()
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavcodec/
H A Ddxva2_vc1.c190 const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0; in commit_bitstream_and_slice_buffer() local
192 const unsigned padding = 128 - ((start_code_size + slice_size) & 127); in commit_bitstream_and_slice_buffer()
193 const unsigned data_size = start_code_size + slice_size + padding; in commit_bitstream_and_slice_buffer()
208 if (start_code_size > 0) { in commit_bitstream_and_slice_buffer()
209 memcpy(dxva_data, start_code, start_code_size); in commit_bitstream_and_slice_buffer()
213 memcpy(dxva_data + start_code_size, in commit_bitstream_and_slice_buffer()
216 memset(dxva_data + start_code_size + slice_size, 0, padding); in commit_bitstream_and_slice_buffer()
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavcodec/
H A Ddxva2_vc1.c190 const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0; in commit_bitstream_and_slice_buffer() local
192 const unsigned padding = 128 - ((start_code_size + slice_size) & 127); in commit_bitstream_and_slice_buffer()
193 const unsigned data_size = start_code_size + slice_size + padding; in commit_bitstream_and_slice_buffer()
208 if (start_code_size > 0) { in commit_bitstream_and_slice_buffer()
209 memcpy(dxva_data, start_code, start_code_size); in commit_bitstream_and_slice_buffer()
213 memcpy(dxva_data + start_code_size, in commit_bitstream_and_slice_buffer()
216 memset(dxva_data + start_code_size + slice_size, 0, padding); in commit_bitstream_and_slice_buffer()
/dports/www/chromium-legacy/chromium-88.0.4324.182/media/video/
H A Dh264_parser.cc372 off_t* start_code_size) { in FindStartCode() argument
393 *start_code_size = 3; in FindStartCode()
399 ++(*start_code_size); in FindStartCode()
415 *start_code_size = 0; in FindStartCode()
455 *start_code_size = annexb_start_code_size; in LocateNALU()
465 off_t* start_code_size) { in FindStartCodeInClearRanges() argument
487 *start_code_size = 0; in FindStartCodeInClearRanges()
490 } while (*start_code_size == 0); in FindStartCodeInClearRanges()
600 off_t start_code_size; in AdvanceToNextNALU() local
610 nalu->data = stream_ + start_code_size; in AdvanceToNextNALU()
[all …]
/dports/multimedia/mkvtoolnix/mkvtoolnix-65.0.0/src/extract/
H A Dxtr_hevc.cpp102 …auto start_code_size = m_first_nalu || mtx::included_in(nal_unit_type, mtx::hevc::NALU_TYPE_VIDEO_… in write_nal() local
105 m_out->write(ms_start_code + (4 - start_code_size), start_code_size); in write_nal()
/dports/graphics/libosmesa-gallium/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/lang/clover/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/libosmesa/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-gallium-xa/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-libs/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-dri-gallium/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-gallium-va/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-devel/mesa-22.0-branchpoint-2059-ge8a63cf61ec/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-gallium-vdpau/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-dri-classic/mesa-20.2.3/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/graphics/mesa-dri/mesa-21.3.6/src/gallium/frontends/va/
H A Dpicture_mpeg4.c154 context->mpeg4.start_code_size = 0; in vlVaDecoderFixMPEG4Startcode()
175 context->mpeg4.start_code_size += sizeof(group_of_vop); in vlVaDecoderFixMPEG4Startcode()
207 memcpy(context->mpeg4.start_code + context->mpeg4.start_code_size, vop, vop_size); in vlVaDecoderFixMPEG4Startcode()
208 context->mpeg4.start_code_size += vop_size; in vlVaDecoderFixMPEG4Startcode()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavcodec/
H A Dh264_mp4toannexb_bsf.c46 uint8_t start_code_size = offset == 0 || ps ? 4 : 3; in alloc_and_copy() local
49 err = av_grow_packet(out, sps_pps_size + in_size + start_code_size); in alloc_and_copy()
55 memcpy(out->data + sps_pps_size + start_code_size + offset, in, in_size); in alloc_and_copy()
56 if (start_code_size == 4) { in alloc_and_copy()
H A Ddxva2_vc1.c192 const unsigned start_code_size = avctx->codec_id == AV_CODEC_ID_VC1 ? sizeof(start_code) : 0; in commit_bitstream_and_slice_buffer() local
231 if (start_code_size + size > end - current) { in commit_bitstream_and_slice_buffer()
245 if (start_code_size) { in commit_bitstream_and_slice_buffer()
246 memcpy(current, start_code, start_code_size); in commit_bitstream_and_slice_buffer()
252 current += start_code_size; in commit_bitstream_and_slice_buffer()
253 slice->dwSliceBitsInBuffer += start_code_size * 8; in commit_bitstream_and_slice_buffer()
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/
H A Dh264_mp4toannexb_bsf.c47 uint8_t start_code_size = offset == 0 || ps ? 4 : 3; in alloc_and_copy() local
50 err = av_grow_packet(out, sps_pps_size + in_size + start_code_size); in alloc_and_copy()
56 memcpy(out->data + sps_pps_size + start_code_size + offset, in, in_size); in alloc_and_copy()
57 if (start_code_size == 4) { in alloc_and_copy()

123