Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
samsung::wasm::ElementaryMediaPacket Struct Reference

Type representing a single packet (video or audio). More...

#include <elementary_media_packet.h>

Inheritance diagram for samsung::wasm::ElementaryMediaPacket:

Public Attributes

Seconds pts
 
Seconds dts
 
Seconds duration
 Duration of the packet. More...
 
bool is_key_frame
 Whether the packet represents a key frame. More...
 
size_t data_size
 Size of data in bytes. More...
 
const void * data
 Base address of buffer containing data of the packet. More...
 
uint32_t width
 
uint32_t height
 
uint32_t framerate_num
 
uint32_t framerate_den
 
SessionId session_id
 

Detailed Description

Type representing a single packet (video or audio).

Definition at line 19 of file elementary_media_packet.h.

Member Data Documentation

◆ data

const void* samsung::wasm::ElementaryMediaPacket::data

Base address of buffer containing data of the packet.

Definition at line 38 of file elementary_media_packet.h.

◆ data_size

size_t samsung::wasm::ElementaryMediaPacket::data_size

Size of data in bytes.

Definition at line 35 of file elementary_media_packet.h.

◆ dts

Seconds samsung::wasm::ElementaryMediaPacket::dts

Decode Timestamp, indicates time relative to the beginning of the stream when a packet must be sent to the decoder.

Definition at line 26 of file elementary_media_packet.h.

◆ duration

Seconds samsung::wasm::ElementaryMediaPacket::duration

Duration of the packet.

Definition at line 29 of file elementary_media_packet.h.

◆ framerate_den

uint32_t samsung::wasm::ElementaryMediaPacket::framerate_den

Framerate denominator, used to perform framerate change.

Remarks
  • Unused in audio packets.
  • This parameter is optional, although it must be set if ElementaryMediaPacket::framerate_num is set. Value 0 means this parameter is unused and no framerate change is being performed.
  • Packets may be stamped with the current video framerate.

Definition at line 76 of file elementary_media_packet.h.

◆ framerate_num

uint32_t samsung::wasm::ElementaryMediaPacket::framerate_num

Framerate numerator, used to perform framerate change.

Remarks
  • Unused in audio packets.
  • This parameter is optional, although must be set if ElementaryMediaPacket::framerate_den is set. Value 0 means this parameter is unused and no framerate change is being performed.
  • Packets may be stamped with the current video framerate.

Definition at line 66 of file elementary_media_packet.h.

◆ height

uint32_t samsung::wasm::ElementaryMediaPacket::height

Height of video frame in pixels, used to perform resolution change.

Remarks
  • Unused in audio packets.
  • This parameter is optional, value 0 means it is unused and no resolution change is being performed.
  • Packets may be stamped with the current video stream resolution.

Definition at line 56 of file elementary_media_packet.h.

◆ is_key_frame

bool samsung::wasm::ElementaryMediaPacket::is_key_frame

Whether the packet represents a key frame.

Definition at line 32 of file elementary_media_packet.h.

◆ pts

Seconds samsung::wasm::ElementaryMediaPacket::pts

Presentation Timestamp, indicates time relative to the beginning of the stream when a packet must be rendered.

Definition at line 22 of file elementary_media_packet.h.

◆ session_id

SessionId samsung::wasm::ElementaryMediaPacket::session_id

Id of a session the packet belongs to. Used to differentiate packets sent to ElementaryMediaTrack before it closes and after it reopens. This is required for multithreaded Apps in some playback scenarios (e.g when seeking or App multitasking happens).

Remarks

Definition at line 99 of file elementary_media_packet.h.

◆ width

uint32_t samsung::wasm::ElementaryMediaPacket::width

Width of video frame in pixels, used to perform resolution change.

Remarks
  • Unused in audio packets.
  • This parameter is optional, value 0 means it is unused and no resolution change is being performed.
  • Packets may be stamped with the current video stream resolution.

Definition at line 47 of file elementary_media_packet.h.


The documentation for this struct was generated from the following file: