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  : ElementaryVideoTrackConfig(std::move(mime_type),
29  std::move(extradata),
31  width,
32  height,
33  framerate_num,
34  framerate_den) {}
35 
37  std::vector<uint8_t> extradata,
39  uint32_t width,
40  uint32_t height,
41  uint32_t framerate_num,
42  uint32_t framerate_den)
43  : ElementaryMediaTrackConfig(std::move(mime_type),
44  std::move(extradata),
45  decoding_mode),
46  width(width),
47  height(height),
48  framerate_num(framerate_num),
49  framerate_den(framerate_den) {}
50 
53  uint32_t width;
54 
57  uint32_t height;
58 
63  uint32_t framerate_num;
64 
69  uint32_t framerate_den;
70 };
71 
72 } // namespace wasm
73 } // namespace samsung
74 
75 #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.
ElementaryVideoTrackConfig(std::string mime_type, std::vector< uint8_t > extradata, DecodingMode decoding_mode, uint32_t width, uint32_t height, uint32_t framerate_num, uint32_t framerate_den)