Shaka Packager SDK
Loading...
Searching...
No Matches
packager
media
codecs
h264_byte_to_unit_stream_converter.h
1
// Copyright 2014 Google LLC. All rights reserved.
2
//
3
// Use of this source code is governed by a BSD-style
4
// license that can be found in the LICENSE file or at
5
// https://developers.google.com/open-source/licenses/bsd
6
7
#ifndef PACKAGER_MEDIA_CODECS_H264_BYTE_TO_UNIT_STREAM_CONVERTER_H_
8
#define PACKAGER_MEDIA_CODECS_H264_BYTE_TO_UNIT_STREAM_CONVERTER_H_
9
10
#include <cstdint>
11
#include <vector>
12
13
#include <packager/macros/classes.h>
14
#include <packager/media/base/video_stream_info.h>
15
#include <packager/media/codecs/h26x_byte_to_unit_stream_converter.h>
16
#include <packager/media/codecs/nalu_reader.h>
17
18
namespace
shaka
{
19
namespace
media {
20
23
class
H264ByteToUnitStreamConverter
:
public
H26xByteToUnitStreamConverter
{
24
public
:
27
H264ByteToUnitStreamConverter
();
28
31
explicit
H264ByteToUnitStreamConverter
(H26xStreamFormat stream_format);
32
33
~H264ByteToUnitStreamConverter
()
override
;
34
37
bool
GetDecoderConfigurationRecord
(
38
std::vector<uint8_t>* decoder_config)
const override
;
40
41
private
:
42
bool
ProcessNalu(
const
Nalu
& nalu)
override
;
43
44
std::vector<uint8_t> last_sps_;
45
std::vector<uint8_t> last_pps_;
46
std::vector<uint8_t> last_sps_ext_;
47
48
DISALLOW_COPY_AND_ASSIGN(
H264ByteToUnitStreamConverter
);
49
};
50
51
}
// namespace media
52
}
// namespace shaka
53
54
#endif
// PACKAGER_MEDIA_CODECS_H264_BYTE_TO_UNIT_STREAM_CONVERTER_H_
shaka::media::H264ByteToUnitStreamConverter
Definition
h264_byte_to_unit_stream_converter.h:23
shaka::media::H264ByteToUnitStreamConverter::H264ByteToUnitStreamConverter
H264ByteToUnitStreamConverter()
Definition
h264_byte_to_unit_stream_converter.cc:38
shaka::media::H264ByteToUnitStreamConverter::GetDecoderConfigurationRecord
bool GetDecoderConfigurationRecord(std::vector< uint8_t > *decoder_config) const override
Definition
h264_byte_to_unit_stream_converter.cc:47
shaka::media::H26xByteToUnitStreamConverter
A base class that is used to convert H.26x byte streams to NAL unit streams.
Definition
h26x_byte_to_unit_stream_converter.h:24
shaka::media::Nalu
Definition
nalu_reader.h:27
shaka
All the methods that are virtual are virtual for mocking.
Definition
cpix_encryption_flags.cc:51
Generated on Mon Jul 27 2026 18:29:59 for Shaka Packager SDK by
1.9.8