Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
elementary_video_track_config.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_VIDEO_TRACK_CONFIG_H_
7 #define INCLUDE_SAMSUNG_WASM_ELEMENTARY_VIDEO_TRACK_CONFIG_H_
8 
9 #include <cstdint>
10 #include <string>
11 #include <vector>
12 
14 
15 namespace samsung {
16 namespace wasm {
17 
21 
23  std::vector<uint8_t> extradata,
24  uint32_t width,
25  uint32_t height,
26  uint32_t framerate_num,
27  uint32_t framerate_den)
28  : ElementaryMediaTrackConfig(mime_type, extradata),
29  width(width),
30  height(height),
31  framerate_num(framerate_num),
32  framerate_den(framerate_den) {}
33 
36  uint32_t width;
37 
40  uint32_t height;
41 
46  uint32_t framerate_num;
47 
52  uint32_t framerate_den;
53 };
54 
55 } // namespace wasm
56 } // namespace samsung
57 
58 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_VIDEO_TRACK_CONFIG_H_
std::vector< uint8_t > extradata
Extra data for codec.
ElementaryVideoTrackConfig(std::string mime_type, std::vector< uint8_t > extradata, uint32_t width, uint32_t height, uint32_t framerate_num, uint32_t framerate_den)
std::string mime_type
MIME containing codec and profile.
Common part of audio and video configs.
Contains video ElementaryMediaTrack config.