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 <cstddef>
11
#include <cstdint>
12
#include <vector>
13
14
#include <packager/macros/classes.h>
15
#include <packager/media/codecs/h26x_byte_to_unit_stream_converter.h>
16
17
namespace
shaka
{
18
namespace
media {
19
22
class
H264ByteToUnitStreamConverter
:
public
H26xByteToUnitStreamConverter
{
23
public
:
26
H264ByteToUnitStreamConverter
();
27
30
explicit
H264ByteToUnitStreamConverter
(H26xStreamFormat stream_format);
31
32
~H264ByteToUnitStreamConverter
()
override
;
33
36
bool
GetDecoderConfigurationRecord
(
37
std::vector<uint8_t>* decoder_config)
const override
;
39
40
private
:
41
bool
ProcessNalu(
const
Nalu
& nalu)
override
;
42
43
std::vector<uint8_t> last_sps_;
44
std::vector<uint8_t> last_pps_;
45
std::vector<uint8_t> last_sps_ext_;
46
47
DISALLOW_COPY_AND_ASSIGN(
H264ByteToUnitStreamConverter
);
48
};
49
50
}
// namespace media
51
}
// namespace shaka
52
53
#endif
// PACKAGER_MEDIA_CODECS_H264_BYTE_TO_UNIT_STREAM_CONVERTER_H_
shaka::media::H264ByteToUnitStreamConverter
Definition
h264_byte_to_unit_stream_converter.h:22
shaka::media::H264ByteToUnitStreamConverter::H264ByteToUnitStreamConverter
H264ByteToUnitStreamConverter()
Definition
h264_byte_to_unit_stream_converter.cc:35
shaka::media::H264ByteToUnitStreamConverter::GetDecoderConfigurationRecord
bool GetDecoderConfigurationRecord(std::vector< uint8_t > *decoder_config) const override
Definition
h264_byte_to_unit_stream_converter.cc:44
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:23
shaka::media::Nalu
Definition
nalu_reader.h:26
shaka
All the methods that are virtual are virtual for mocking.
Definition
crypto_flags.cc:66
Generated on Fri Jan 17 2025 22:20:43 for Shaka Packager SDK by
1.9.8