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.
◆ 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.
The documentation for this class was generated from the following files: