|
| MediaSegmentVideo (int32_t sourceId=0, int64_t timeStamp=0, int64_t duration=0, int32_t width=firebolt::rialto::kUndefinedSize, int32_t height=firebolt::rialto::kUndefinedSize, firebolt::rialto::Fraction frameRate={firebolt::rialto::kUndefinedSize, firebolt::rialto::kUndefinedSize}) |
| Default constructor. More...
|
|
| MediaSegmentVideo (const MediaSegmentVideo &other) |
| Copy constructor.
|
|
std::unique_ptr< MediaSegment > | copy () const override |
| Makes a shallow copy of the segment. More...
|
|
int32_t | getWidth () const |
| Return the video width. More...
|
|
int32_t | getHeight () const |
| Return the video height. More...
|
|
firebolt::rialto::Fraction | getFrameRate () const |
| Return the video frameRate. More...
|
|
MediaSegmentVideo & | operator= (const MediaSegmentVideo &other) |
| Copy assignment operator. More...
|
|
| MediaSegment (int32_t sourceId=0, MediaSourceType type=MediaSourceType::UNKNOWN, int64_t timeStamp=0, int64_t duration=0) |
| Default constructor. More...
|
|
virtual | ~MediaSegment () |
| Virtual destructor.
|
|
int32_t | getId () const |
| Return the source id. More...
|
|
MediaSourceType | getType () const |
| The source type for the data. More...
|
|
const uint8_t * | getData () const |
| Returns a pointer to the data. More...
|
|
uint32_t | getDataLength () const |
| Returns a the data length. More...
|
|
int64_t | getTimeStamp () const |
| Returns the time stamp. More...
|
|
void | setTimeStamp (int64_t timeStamp) |
| Sets the time stamp (value in nanoseconds).
|
|
int64_t | getDuration () const |
| Returns the duration. More...
|
|
const std::vector< uint8_t > & | getExtraData () const |
| Returns a pointer to the extra data. More...
|
|
bool | isEncrypted () const |
| Indicates that the data is encrypted. More...
|
|
const int32_t | getMediaKeySessionId () const |
| Returns the media key session id. Empty if unencrypted. More...
|
|
const std::vector< uint8_t > & | getKeyId () const |
| Returns the key id. Empty if unencrypted. More...
|
|
const std::vector< uint8_t > & | getInitVector () const |
| Returns the initialisation vector. Empty if unencrypted. More...
|
|
const std::vector< SubSamplePair > & | getSubSamples () const |
| Returns the sub samples. Empty if unencrypted. More...
|
|
const uint32_t | getInitWithLast15 () const |
| Returns the initWithLast15 value. More...
|
|
const SegmentAlignment | getSegmentAlignment () const |
| Returns the segment alignment. More...
|
|
const std::shared_ptr< CodecData > & | getCodecData () const |
| Gets the codec data. More...
|
|
const CipherMode & | getCipherMode () const |
| Gets the cipher mode for common encryption. More...
|
|
const bool | getEncryptionPattern (uint32_t &crypt, uint32_t &skip) const |
| Gets the crypt & skip byte block for pattern encryption. More...
|
|
bool | setData (uint32_t dataLength, const uint8_t *data) |
| Sets the segment data. More...
|
|
bool | setExtraData (const std::vector< uint8_t > &extraData) |
| Sets the extra data. More...
|
|
void | setSegmentAlignment (const SegmentAlignment &alignment) |
| Sets the segment alignment. More...
|
|
void | setCodecData (const std::shared_ptr< CodecData > &codecData) |
| Sets new codec_data for the segment. More...
|
|
void | setEncrypted (bool encrypted) |
| Sets the encrypted flag. More...
|
|
void | setMediaKeySessionId (int32_t mksId) |
| Sets the media key session id. More...
|
|
void | setKeyId (const std::vector< uint8_t > &keyId) |
| Sets the key id. More...
|
|
void | setInitVector (const std::vector< uint8_t > &initVector) |
| Sets the encryption initialisation vector. More...
|
|
void | addSubSample (size_t numClearBytes, size_t numEncryptedBytes) |
| Adds a sub-sample pair to the sub samples. More...
|
|
void | setInitWithLast15 (uint32_t initWithLast15) |
| Sets initWithLast15 value. More...
|
|
void | setCipherMode (CipherMode cipherMode) |
| Sets the cipher mode for common encryption. More...
|
|
void | setEncryptionPattern (uint32_t crypt, uint32_t skip) |
| Sets the crypt & skip byte block for pattern encryption. More...
|
|
void | copy (const MediaSegment &other) |
| Copies the data from other to this.
|
|
A class that represents media source video data.