/dports/games/retroarch/RetroArch-1.9.7/gfx/include/userland/containers/h264/ |
H A D | avc1_packetizer.c | 120 unsigned int nal_size; in avc1_packetizer_packetize() local 125 nal_size = data[0]; in avc1_packetizer_packetize() 127 nal_size = (nal_size << 8)|data[1]; in avc1_packetizer_packetize() 129 nal_size = (nal_size << 8)|data[2]; in avc1_packetizer_packetize() 131 nal_size = (nal_size << 8)|data[3]; in avc1_packetizer_packetize() 132 if (offset + nal_size > size) in avc1_packetizer_packetize() 133 nal_size = size - offset; in avc1_packetizer_packetize() 135 offset += nal_size; in avc1_packetizer_packetize() 288 if (extra + nal_size > extra_end) in avc1_packetizer_codecconfig() 296 out += nal_size + 4; extra += nal_size; in avc1_packetizer_codecconfig() [all …]
|
/dports/multimedia/gstreamer1-vaapi/gstreamer-vaapi-1.16.2/gst/vaapi/ |
H A D | gstvaapiencode_h265.c | 284 g_assert (len != 0U && buffer && nal_size); in _h265_byte_stream_next_nal() 286 *nal_size = len; in _h265_byte_stream_next_nal() 307 *nal_size = cur - 4 - nal_start; in _h265_byte_stream_next_nal() 309 *nal_size = cur - 3 - nal_start; in _h265_byte_stream_next_nal() 314 *nal_size = end - nal_start; in _h265_byte_stream_next_nal() 327 nal_start_code[2] = ((nal_size >> 8) & 0xFF); in _start_code_to_size() 328 nal_start_code[3] = (nal_size & 0xFF); in _start_code_to_size() 335 guint32 nal_size; in _h265_convert_byte_stream_to_hvc() local 346 nal_size = 0; in _h265_convert_byte_stream_to_hvc() 351 if (!nal_size) in _h265_convert_byte_stream_to_hvc() [all …]
|
H A D | gstvaapiencode_h264_fei.c | 273 g_assert (len >= 0 && buffer && nal_size); in _h264_byte_stream_next_nal() 275 *nal_size = len; in _h264_byte_stream_next_nal() 296 *nal_size = cur - 4 - nal_start; in _h264_byte_stream_next_nal() 298 *nal_size = cur - 3 - nal_start; in _h264_byte_stream_next_nal() 303 *nal_size = end - nal_start; in _h264_byte_stream_next_nal() 316 nal_start_code[2] = ((nal_size >> 8) & 0xFF); in _start_code_to_size() 317 nal_start_code[3] = (nal_size & 0xFF); in _start_code_to_size() 324 guint32 nal_size; in _h264_convert_byte_stream_to_avc() local 335 nal_size = 0; in _h264_convert_byte_stream_to_avc() 340 if (!nal_size) in _h264_convert_byte_stream_to_avc() [all …]
|
H A D | gstvaapiencode_h264.c | 454 g_assert (buffer && nal_size); in _h264_byte_stream_next_nal() 456 *nal_size = len; in _h264_byte_stream_next_nal() 477 *nal_size = cur - 4 - nal_start; in _h264_byte_stream_next_nal() 479 *nal_size = cur - 3 - nal_start; in _h264_byte_stream_next_nal() 484 *nal_size = end - nal_start; in _h264_byte_stream_next_nal() 497 nal_start_code[2] = ((nal_size >> 8) & 0xFF); in _start_code_to_size() 498 nal_start_code[3] = (nal_size & 0xFF); in _start_code_to_size() 505 guint32 nal_size; in _h264_convert_byte_stream_to_avc() local 516 nal_size = 0; in _h264_convert_byte_stream_to_avc() 521 if (!nal_size) in _h264_convert_byte_stream_to_avc() [all …]
|
/dports/multimedia/mkvtoolnix/mkvtoolnix-65.0.0/src/extract/ |
H A D | xtr_avc.cpp | 35 size_t nal_size = 0; in write_nal() local 41 nal_size = (nal_size << 8) | data[pos++]; in write_nal() 43 if ((pos + nal_size) > data_size) { in write_nal() 44 …tes in packet: {2}. This NAL is defect and will be skipped.\n"), m_tid, nal_size, data_size - pos)… in write_nal() 48 if (nal_size) { in write_nal() 50 m_out->write(data + pos, nal_size); in write_nal() 52 pos += nal_size; in write_nal() 176 auto nal_size = get_uint_be(&buf[pos], m_nal_size_size); in find_nal_units() local 177 auto actual_nal_unit_type = get_nalu_type(&buf[pos + m_nal_size_size], nal_size); in find_nal_units() 179 … list.emplace_back(memory_c::borrow(&buf[pos], m_nal_size_size + nal_size), actual_nal_unit_type); in find_nal_units() [all …]
|
H A D | xtr_hevc.cpp | 67 auto nal_size = get_uint_be(&buf[pos], 2); in unwrap_write_hevcc() local 71 …vcc: pos {0} nal_size {1} type 0x{2:02x} skip_this_nal {3}\n", pos, nal_size, static_cast<unsi… in unwrap_write_hevcc() 74 pos += nal_size + 2; in unwrap_write_hevcc() 93 auto nal_size = get_uint_be(&data[pos], write_nal_size_size); in write_nal() local 96 if ((pos + nal_size) > data_size) { in write_nal() 97 …tes in packet: {2}. This NAL is defect and will be skipped.\n"), m_tid, nal_size, data_size - pos)… in write_nal() 106 m_out->write(data + pos, nal_size); in write_nal() 108 pos += nal_size; in write_nal()
|
/dports/emulators/vice/vice-3.5/src/lib/libffmpeg/libavcodec/ |
H A D | h264_mp4toannexb_bsf.c | 140 int32_t nal_size; in h264_mp4toannexb_filter() local 170 for (nal_size = 0, i = 0; i<ctx->length_size; i++) in h264_mp4toannexb_filter() 171 nal_size = (nal_size << 8) | buf[i]; in h264_mp4toannexb_filter() 176 if (buf + nal_size > buf_end || nal_size < 0) in h264_mp4toannexb_filter() 192 buf, nal_size)) < 0) in h264_mp4toannexb_filter() 197 NULL, 0, buf, nal_size)) < 0) in h264_mp4toannexb_filter() 205 buf += nal_size; in h264_mp4toannexb_filter() 206 cumul_size += nal_size + ctx->length_size; in h264_mp4toannexb_filter()
|
/dports/emulators/libretro-vice/vice-libretro-5725415/vice/src/lib/libffmpeg/libavcodec/ |
H A D | h264_mp4toannexb_bsf.c | 140 int32_t nal_size; in h264_mp4toannexb_filter() local 170 for (nal_size = 0, i = 0; i<ctx->length_size; i++) in h264_mp4toannexb_filter() 171 nal_size = (nal_size << 8) | buf[i]; in h264_mp4toannexb_filter() 176 if (buf + nal_size > buf_end || nal_size < 0) in h264_mp4toannexb_filter() 192 buf, nal_size)) < 0) in h264_mp4toannexb_filter() 197 NULL, 0, buf, nal_size)) < 0) in h264_mp4toannexb_filter() 205 buf += nal_size; in h264_mp4toannexb_filter() 206 cumul_size += nal_size + ctx->length_size; in h264_mp4toannexb_filter()
|
/dports/multimedia/handbrake/HandBrake-1.4.2/libhb/ |
H A D | nal_units.c | 156 size_t out_size, nal_size; in hb_nal_bitstream_mp4_to_annexb() local 164 buf += mp4_nal_unit_length(buf, nal_length_size, &nal_size); in hb_nal_bitstream_mp4_to_annexb() 165 if (end - buf < nal_size) in hb_nal_bitstream_mp4_to_annexb() 168 " (remaining: %lu, expected: %lu)", end - buf, nal_size); in hb_nal_bitstream_mp4_to_annexb() 172 out_size += hb_nal_unit_write_annexb(NULL, buf, nal_size); in hb_nal_bitstream_mp4_to_annexb() 173 buf += nal_size; in hb_nal_bitstream_mp4_to_annexb() 189 buf += mp4_nal_unit_length(buf, nal_length_size, &nal_size); in hb_nal_bitstream_mp4_to_annexb() 190 out_size += hb_nal_unit_write_annexb(out->data + out_size, buf, nal_size); in hb_nal_bitstream_mp4_to_annexb() 191 buf += nal_size; in hb_nal_bitstream_mp4_to_annexb()
|
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavcodec/ |
H A D | h264_mp4toannexb_bsf.c | 177 int32_t nal_size; in h264_mp4toannexb_filter() local 204 for (nal_size = 0, i = 0; i<s->length_size; i++) in h264_mp4toannexb_filter() 205 nal_size = (nal_size << 8) | buf[i]; in h264_mp4toannexb_filter() 210 if (nal_size > buf_end - buf || nal_size < 0) in h264_mp4toannexb_filter() 225 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 243 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 250 if ((ret = alloc_and_copy(out, NULL, 0, buf, nal_size, 0)) < 0) in h264_mp4toannexb_filter() 254 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 257 …if ((ret=alloc_and_copy(out, NULL, 0, buf, nal_size, unit_type == H264_NAL_SPS || unit_type == H26… in h264_mp4toannexb_filter() 267 buf += nal_size; in h264_mp4toannexb_filter() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/ffmpeg/libavcodec/ |
H A D | h264_mp4toannexb_bsf.c | 173 int32_t nal_size; in h264_mp4toannexb_filter() local 200 for (nal_size = 0, i = 0; i<s->length_size; i++) in h264_mp4toannexb_filter() 201 nal_size = (nal_size << 8) | buf[i]; in h264_mp4toannexb_filter() 206 if (nal_size > buf_end - buf || nal_size < 0) in h264_mp4toannexb_filter() 221 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 239 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 246 if ((ret = alloc_and_copy(out, NULL, 0, buf, nal_size, 0)) < 0) in h264_mp4toannexb_filter() 250 buf, nal_size, 1)) < 0) in h264_mp4toannexb_filter() 253 …if ((ret=alloc_and_copy(out, NULL, 0, buf, nal_size, unit_type == H264_NAL_SPS || unit_type == H26… in h264_mp4toannexb_filter() 263 buf += nal_size; in h264_mp4toannexb_filter() [all …]
|
/dports/sysutils/xvidcap/xvidcap-1.1.7/ffmpeg/libavcodec/ |
H A D | h264_mp4toannexb_bsf.c | 56 uint32_t nal_size, cumul_size = 0; in h264_mp4toannexb_filter() local 111 nal_size = buf[0]; in h264_mp4toannexb_filter() 113 nal_size = AV_RB16(buf); in h264_mp4toannexb_filter() 115 nal_size = AV_RB32(buf); in h264_mp4toannexb_filter() 124 buf, nal_size); in h264_mp4toannexb_filter() 130 buf, nal_size); in h264_mp4toannexb_filter() 135 buf += nal_size; in h264_mp4toannexb_filter() 136 cumul_size += nal_size + ctx->length_size; in h264_mp4toannexb_filter()
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/src/filters/ |
H A D | bsrw.c | 115 u32 nal_size = 0; in avc_rewrite_packet() local 121 nal_size<<=8; in avc_rewrite_packet() 128 size += nal_size; in avc_rewrite_packet() 140 u32 nal_size = 0; in avc_rewrite_packet() local 146 nal_size<<=8; in avc_rewrite_packet() 156 size += nal_size; in avc_rewrite_packet() 230 u32 nal_size = 0; in hevc_rewrite_packet() local 236 nal_size<<=8; in hevc_rewrite_packet() 243 size += nal_size; in hevc_rewrite_packet() 255 u32 nal_size = 0; in hevc_rewrite_packet() local [all …]
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/src/filters/ |
H A D | bsrw.c | 115 u32 nal_size = 0; in avc_rewrite_packet() local 121 nal_size<<=8; in avc_rewrite_packet() 128 size += nal_size; in avc_rewrite_packet() 140 u32 nal_size = 0; in avc_rewrite_packet() local 146 nal_size<<=8; in avc_rewrite_packet() 156 size += nal_size; in avc_rewrite_packet() 230 u32 nal_size = 0; in hevc_rewrite_packet() local 236 nal_size<<=8; in hevc_rewrite_packet() 243 size += nal_size; in hevc_rewrite_packet() 255 u32 nal_size = 0; in hevc_rewrite_packet() local [all …]
|
/dports/multimedia/gpac-libgpac/gpac-1.0.0/applications/deprecated/old_arch/dashcast/ |
H A D | video_muxer.c | 43 u8 nal_size; in avc_import_ffextradata() 66 buffer = (char*)gf_malloc(nal_size); in avc_import_ffextradata() 92 slc->size = nal_size; in avc_import_ffextradata() 128 slc->size = nal_size; in avc_import_ffextradata() 171 u32 nal_size; in hevc_import_ffextradata() 192 if (nal_size > buffer_size) { in hevc_import_ffextradata() 194 buffer_size = nal_size; in hevc_import_ffextradata() 236 slc->size = nal_size; in hevc_import_ffextradata() 290 slc->size = nal_size; in hevc_import_ffextradata() 324 slc->size = nal_size; in hevc_import_ffextradata() [all …]
|
/dports/multimedia/gpac-mp4box/gpac-1.0.0/applications/deprecated/old_arch/dashcast/ |
H A D | video_muxer.c | 43 u8 nal_size; in avc_import_ffextradata() 66 buffer = (char*)gf_malloc(nal_size); in avc_import_ffextradata() 92 slc->size = nal_size; in avc_import_ffextradata() 128 slc->size = nal_size; in avc_import_ffextradata() 171 u32 nal_size; in hevc_import_ffextradata() 192 if (nal_size > buffer_size) { in hevc_import_ffextradata() 194 buffer_size = nal_size; in hevc_import_ffextradata() 236 slc->size = nal_size; in hevc_import_ffextradata() 290 slc->size = nal_size; in hevc_import_ffextradata() 324 slc->size = nal_size; in hevc_import_ffextradata() [all …]
|
/dports/net/gstreamer1-plugins-srtp/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-x265/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-rtmp/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-msdk/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-mplex/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-openh264/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-resindvd/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-ttml/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|
/dports/multimedia/gstreamer1-plugins-smoothstreaming/gst-plugins-bad-1.16.2/gst/mpegpsmux/ |
H A D | mpegpsmux_h264.c | 175 guint32 nal_size = 0; in mpegpsmux_prepare_h264() local 179 nal_size = GST_READ_UINT8 (map.data + in_offset); in mpegpsmux_prepare_h264() 182 nal_size = GST_READ_UINT16_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 185 nal_size = GST_READ_UINT32_BE (map.data + in_offset); in mpegpsmux_prepare_h264() 197 MIN (nal_size, map.size - in_offset)); in mpegpsmux_prepare_h264() 198 in_offset += nal_size; in mpegpsmux_prepare_h264()
|