Definition at line 133 of file packager.h.
◆ DefaultStreamLabelFunction()
Default stream label function implementation.
- Parameters
-
max_sd_pixels | The threshold to determine whether a video track should be considered as SD. If the max pixels per frame is no higher than max_sd_pixels, i.e. [0, max_sd_pixels], it is SD. |
max_hd_pixels | The threshold to determine whether a video track should be considered as HD. If the max pixels per frame is higher than max_sd_pixels, but no higher than max_hd_pixels, i.e. (max_sd_pixels, max_hd_pixels], it is HD. |
max_uhd1_pixels | The threshold to determine whether a video track should be considered as UHD1. If the max pixels per frame is higher than max_hd_pixels, but no higher than max_uhd1_pixels, i.e. (max_hd_pixels, max_uhd1_pixels], it is UHD1. Otherwise it is UHD2. |
stream_info | Encrypted stream info. |
- Returns
- the stream label associated with
stream_info
. Can be "AUDIO", "SD", "HD", "UHD1" or "UHD2".
Definition at line 1033 of file packager.cc.
◆ GetLibraryVersion()
std::string shaka::Packager::GetLibraryVersion |
( |
| ) |
|
|
static |
- Returns
- The version of the library.
Definition at line 1029 of file packager.cc.
◆ Initialize()
Initialize packaging pipeline.
- Parameters
-
packaging_params | contains the packaging parameters. |
stream_descriptors | a list of stream descriptors. |
- Returns
- OK on success, an appropriate error code on failure.
Definition at line 869 of file packager.cc.
◆ Run()
Status shaka::Packager::Run |
( |
| ) |
|
Run the pipeline to completion (or failed / been cancelled). Note that it blocks until completion.
- Returns
- OK on success, an appropriate error code on failure.
Definition at line 1004 of file packager.cc.
The documentation for this class was generated from the following files: