This class is a wrapper for both Samsung::NaClPlayer::ESPacket and encryption information.
More...
#include <elementary_stream_packet.h>
This class is a wrapper for both Samsung::NaClPlayer::ESPacket and encryption information.
ElementaryStreamPacket
is used to extract data from StreamDemuxer
and can be used to pass it further.
- See also
- Samsung::NaClPlayer::ESPacket
-
Samsung::NaClPlayer::EncryptedSubsampleDescription
-
Samsung::NaClPlayer::ESPacketEncryptionInfo
Definition at line 46 of file elementary_stream_packet.h.
ElementaryStreamPacket::ElementaryStreamPacket |
( |
uint8_t * |
data, |
|
|
uint32_t |
size |
|
) |
| |
Constructs ElementaryStreamPacket
and initialize Samsung::NaClPlayer::ESPacket with given data.
- Parameters
-
[in] | data | A byte array which helds data of elementary stream packet. It is copied to the internal byte array. |
[in] | size | A size of data array in bytes. |
- See also
- Samsung::NaClPlayer::ESPacket
Move-constructs a ElementaryStreamPacket
object, making it point at the same object that other
was pointing to.
ElementaryStreamPacket::~ElementaryStreamPacket |
( |
| ) |
|
|
default |
void ElementaryStreamPacket::AddSubsample |
( |
uint32_t |
clear_bytes, |
|
|
uint32_t |
cipher_bytes |
|
) |
| |
Adds a subsample information about encrypted bytes in packet.
- Parameters
-
[in] | clear_bytes | A count of unencrypted bytes in elementary stream packet. |
[in] | cipher_bytes | A count of encrypted bytes in elementary stream packet. |
void ElementaryStreamPacket::ClearSubsamples |
( |
| ) |
|
Clears the subsample information about encrypted bytes in packet.
uint32_t ElementaryStreamPacket::GetDataSize |
( |
| ) |
const |
|
inline |
Samsung::NaClPlayer::TimeTicks ElementaryStreamPacket::GetDts |
( |
| ) |
const |
|
inline |
Samsung::NaClPlayer::TimeTicks ElementaryStreamPacket::GetDuration |
( |
| ) |
const |
|
inline |
const Samsung::NaClPlayer::ESPacketEncryptionInfo& ElementaryStreamPacket::GetEncryptionInfo |
( |
| ) |
const |
Returns Encryption information.
const Samsung::NaClPlayer::ESPacket& ElementaryStreamPacket::GetESPacket |
( |
| ) |
const |
Returns Elementary Stream Packet.
Samsung::NaClPlayer::TimeTicks ElementaryStreamPacket::GetPts |
( |
| ) |
const |
|
inline |
bool ElementaryStreamPacket::IsEncrypted |
( |
| ) |
const |
Returns true if packet is encrypted, otherwise false.
bool ElementaryStreamPacket::IsKeyFrame |
( |
| ) |
const |
|
inline |
Returns true if packet is a key frame, otherwise false.
- See also
- Samsung::NaClPlayer::ESPacket::is_key_frame
Definition at line 84 of file elementary_stream_packet.h.
void ElementaryStreamPacket::SetDts |
( |
Samsung::NaClPlayer::TimeTicks |
dts | ) |
|
|
inline |
void ElementaryStreamPacket::SetDuration |
( |
Samsung::NaClPlayer::TimeTicks |
duration | ) |
|
|
inline |
void ElementaryStreamPacket::SetIv |
( |
uint8_t * |
iv, |
|
|
uint32_t |
iv_size |
|
) |
| |
Sets an initialization vector for encrypted data needed to decrypt it.
- Parameters
-
[in] | iv | An byte array which helds data of initialization vector. It is copied to the internal byte array. |
[in] | iv_size | A size of iv array in bytes. |
void ElementaryStreamPacket::SetKeyFrame |
( |
bool |
key_frame | ) |
|
|
inline |
Allows to set if packet is a key frame or not.
- See also
- Samsung::NaClPlayer::ESPacket::is_key_frame
Definition at line 105 of file elementary_stream_packet.h.
void ElementaryStreamPacket::SetKeyId |
( |
uint8_t * |
key_id, |
|
|
uint32_t |
key_id_size |
|
) |
| |
Sets a key id for encrypted data needed to decrypt it.
- Parameters
-
[in] | key_id | An byte array which helds data of key id. It is copied to the internal byte array. |
[in] | key_id_size | A size of key_id array in bytes. |
void ElementaryStreamPacket::SetPts |
( |
Samsung::NaClPlayer::TimeTicks |
pts | ) |
|
|
inline |
The documentation for this class was generated from the following file: