A base class that is used to convert H.26x byte streams to NAL unit streams.
More...
#include <h26x_byte_to_unit_stream_converter.h>
A base class that is used to convert H.26x byte streams to NAL unit streams.
Definition at line 23 of file h26x_byte_to_unit_stream_converter.h.
◆ H26xByteToUnitStreamConverter() [1/2]
| shaka::media::H26xByteToUnitStreamConverter::H26xByteToUnitStreamConverter |
( |
Nalu::CodecType |
type | ) |
|
|
explicit |
◆ H26xByteToUnitStreamConverter() [2/2]
| shaka::media::H26xByteToUnitStreamConverter::H26xByteToUnitStreamConverter |
( |
Nalu::CodecType |
type, |
|
|
H26xStreamFormat |
stream_format |
|
) |
| |
Create a byte to unit stream converter with specified codec type and desired output stream format (whether to include parameter set nal units).
Definition at line 48 of file h26x_byte_to_unit_stream_converter.cc.
◆ ~H26xByteToUnitStreamConverter()
| shaka::media::H26xByteToUnitStreamConverter::~H26xByteToUnitStreamConverter |
( |
| ) |
|
|
virtual |
◆ ConvertByteStreamToNalUnitStream()
| bool shaka::media::H26xByteToUnitStreamConverter::ConvertByteStreamToNalUnitStream |
( |
const uint8_t * |
input_frame, |
|
|
size_t |
input_frame_size, |
|
|
std::vector< uint8_t > * |
output_frame |
|
) |
| |
Converts a whole byte stream encoded video frame to NAL unit stream format.
- Parameters
-
| input_frame | is a buffer containing a whole H.26x frame in byte stream format. |
| input_frame_size | is the size of the H.26x frame, in bytes. |
| output_frame | is a pointer to a vector which will receive the converted frame. |
- Returns
- true if successful, false otherwise.
Definition at line 55 of file h26x_byte_to_unit_stream_converter.cc.
◆ GetDecoderConfigurationRecord()
| virtual bool shaka::media::H26xByteToUnitStreamConverter::GetDecoderConfigurationRecord |
( |
std::vector< uint8_t > * |
decoder_config | ) |
const |
|
pure virtual |
◆ stream_format()
| H26xStreamFormat shaka::media::H26xByteToUnitStreamConverter::stream_format |
( |
| ) |
const |
|
inline |
◆ strip_parameter_set_nalus()
| bool shaka::media::H26xByteToUnitStreamConverter::strip_parameter_set_nalus |
( |
| ) |
const |
|
inlineprotected |
◆ WarnIfNotMatch()
| void shaka::media::H26xByteToUnitStreamConverter::WarnIfNotMatch |
( |
int |
nalu_type, |
|
|
const uint8_t * |
nalu_ptr, |
|
|
size_t |
nalu_size, |
|
|
const std::vector< uint8_t > & |
vector |
|
) |
| |
|
protected |
◆ kUnitStreamNaluLengthSize
| constexpr size_t shaka::media::H26xByteToUnitStreamConverter::kUnitStreamNaluLengthSize = 4 |
|
staticconstexpr |
The documentation for this class was generated from the following files: