/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/media/video/ |
H A D | h265_parser.cc | 78 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 D | h264_parser.cc | 371 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 D | h264_mp4toannexb_bsf.c | 49 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 D | dxva2_vc1.c | 192 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 D | h264_mp4toannexb_bsf.c | 49 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 D | dxva2_vc1.c | 192 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 D | h264_mp4toannexb_bsf.c | 49 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 D | dxva2_vc1.c | 190 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 D | dxva2_vc1.c | 190 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 D | h264_parser.cc | 372 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 D | xtr_hevc.cpp | 102 …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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | picture_mpeg4.c | 154 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 D | h264_mp4toannexb_bsf.c | 46 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 D | dxva2_vc1.c | 192 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 D | h264_mp4toannexb_bsf.c | 47 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()
|