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
"
13
#include "
samsung/wasm/session_id.h
"
14
15
namespace
samsung
{
16
namespace
wasm {
17
19
struct
ElementaryMediaPacket
{
22
Seconds
pts
;
23
26
Seconds
dts
;
27
29
Seconds
duration
;
30
32
bool
is_key_frame
;
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
99
SessionId
session_id
;
100
};
101
102
}
// namespace wasm
103
}
// namespace samsung
104
105
#endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_PACKET_H_
samsung::wasm::ElementaryMediaPacket::height
uint32_t height
Definition:
elementary_media_packet.h:56
samsung::wasm::ElementaryMediaPacket::is_key_frame
bool is_key_frame
Whether the packet represents a key frame.
Definition:
elementary_media_packet.h:32
samsung::wasm::ElementaryMediaPacket::framerate_num
uint32_t framerate_num
Definition:
elementary_media_packet.h:66
samsung::wasm::ElementaryMediaPacket::duration
Seconds duration
Duration of the packet.
Definition:
elementary_media_packet.h:29
samsung
Definition:
html_media_element.h:15
samsung::wasm::Seconds
std::chrono::duration< double > Seconds
Default duration type used throughout the API.
Definition:
common.h:53
samsung::wasm::ElementaryMediaPacket::data_size
size_t data_size
Size of data in bytes.
Definition:
elementary_media_packet.h:35
session_id.h
samsung::wasm::ElementaryMediaPacket::data
const void * data
Base address of buffer containing data of the packet.
Definition:
elementary_media_packet.h:38
samsung::wasm::ElementaryMediaPacket::width
uint32_t width
Definition:
elementary_media_packet.h:47
samsung::wasm::ElementaryMediaPacket::session_id
SessionId session_id
Definition:
elementary_media_packet.h:99
samsung::wasm::SessionId
int32_t SessionId
Definition:
session_id.h:25
samsung::wasm::ElementaryMediaPacket::pts
Seconds pts
Definition:
elementary_media_packet.h:22
samsung::wasm::ElementaryMediaPacket
Type representing a single packet (video or audio).
Definition:
elementary_media_packet.h:19
samsung::wasm::ElementaryMediaPacket::dts
Seconds dts
Definition:
elementary_media_packet.h:26
common.h
samsung::wasm::ElementaryMediaPacket::framerate_den
uint32_t framerate_den
Definition:
elementary_media_packet.h:76
third_party
emscripten
system
include
samsung
wasm
elementary_media_packet.h
Generated by
1.8.13