Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
elementary_media_packet.h
Go to the documentation of this file.
1 // Copyright 2020 Samsung Electronics
2 // TizenTV Emscripten extensions are available under two separate licenses, the
3 // MIT license and the University of Illinois/NCSA Open Source License. Both
4 // these licenses can be found in the LICENSE file.
5 
6 #ifndef INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_PACKET_H_
7 #define INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_PACKET_H_
8 
9 #include <cstddef>
10 #include <cstdint>
11 
12 #include "samsung/wasm/common.h"
14 
15 namespace samsung {
16 namespace wasm {
17 
23 
27 
30 
33 
35  size_t data_size;
36 
38  const void* data;
39 
47  uint32_t width;
48 
56  uint32_t height;
57 
66  uint32_t framerate_num;
67 
76  uint32_t framerate_den;
77 
100 };
101 
102 } // namespace wasm
103 } // namespace samsung
104 
105 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_PACKET_H_
bool is_key_frame
Whether the packet represents a key frame.
Seconds duration
Duration of the packet.
std::chrono::duration< double > Seconds
Default duration type used throughout the API.
Definition: common.h:53
size_t data_size
Size of data in bytes.
const void * data
Base address of buffer containing data of the packet.
int32_t SessionId
Definition: session_id.h:25
Type representing a single packet (video or audio).