Definition at line 27 of file ts_segmenter.h.
◆ TsSegmenter()
- Parameters
-
| options | is the options for this muxer. This must stay valid throughout the life time of the instance. |
| listener | is the MuxerListener that should be used to notify events. This may be null, in which case no events are sent. |
Definition at line 39 of file ts_segmenter.cc.
◆ ~TsSegmenter()
| shaka::media::mp2t::TsSegmenter::~TsSegmenter |
( |
| ) |
|
◆ AddSample()
| Status shaka::media::mp2t::TsSegmenter::AddSample |
( |
const MediaSample & |
sample | ) |
|
- Parameters
-
| sample | gets added to this object. |
- Returns
- OK on success.
Definition at line 74 of file ts_segmenter.cc.
◆ Finalize()
| Status shaka::media::mp2t::TsSegmenter::Finalize |
( |
| ) |
|
Finalize the segmenter.
- Returns
- OK on success.
Definition at line 70 of file ts_segmenter.cc.
◆ FinalizeSegment()
| Status shaka::media::mp2t::TsSegmenter::FinalizeSegment |
( |
int64_t |
start_timestamp, |
|
|
int64_t |
duration |
|
) |
| |
Flush all the samples that are (possibly) buffered and write them to the current segment, this will close the file. If a file is not already opened before calling this, this will open one and write them to file.
- Parameters
-
| start_timestamp | is the segment's start timestamp in the input stream's time scale. |
| duration | is the segment's duration in the input stream's time scale. |
| segment_number | is the segment number. |
Definition at line 165 of file ts_segmenter.cc.
◆ Initialize()
| Status shaka::media::mp2t::TsSegmenter::Initialize |
( |
const StreamInfo & |
stream_info | ) |
|
Initialize the object.
- Parameters
-
| stream_info | is the stream info for the segmenter. |
- Returns
- OK on success.
Definition at line 48 of file ts_segmenter.cc.
◆ InjectPesPacketGeneratorForTesting()
| void shaka::media::mp2t::TsSegmenter::InjectPesPacketGeneratorForTesting |
( |
std::unique_ptr< PesPacketGenerator > |
generator | ) |
|
◆ InjectTsWriterForTesting()
| void shaka::media::mp2t::TsSegmenter::InjectTsWriterForTesting |
( |
std::unique_ptr< TsWriter > |
writer | ) |
|
◆ segment_buffer()
| BufferWriter * shaka::media::mp2t::TsSegmenter::segment_buffer |
( |
| ) |
|
|
inline |
◆ segment_start_timestamp()
| int64_t shaka::media::mp2t::TsSegmenter::segment_start_timestamp |
( |
| ) |
const |
|
inline |
◆ segment_started()
| bool shaka::media::mp2t::TsSegmenter::segment_started |
( |
| ) |
const |
|
inline |
◆ set_segment_started()
| void shaka::media::mp2t::TsSegmenter::set_segment_started |
( |
bool |
value | ) |
|
|
inline |
◆ SetSegmentStartedForTesting()
| void shaka::media::mp2t::TsSegmenter::SetSegmentStartedForTesting |
( |
bool |
value | ) |
|
◆ timescale()
| double shaka::media::mp2t::TsSegmenter::timescale |
( |
| ) |
const |
|
inline |
◆ transport_stream_timestamp_offset()
| uint32_t shaka::media::mp2t::TsSegmenter::transport_stream_timestamp_offset |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: