Tizen WASM Player
Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
elementary_media_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_MEDIA_TRACK_CONFIG_H_
7 #define INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_TRACK_CONFIG_H_
8 
9 #include <cstdint>
10 #include <string>
11 #include <vector>
12 
13 namespace samsung {
14 namespace wasm {
15 
16 enum class DecodingMode {
17  kHardware,
25  kSoftware
26 };
27 
31 
32  ElementaryMediaTrackConfig(std::string mime_type,
33  std::vector<uint8_t> extradata)
34  : ElementaryMediaTrackConfig(std::move(mime_type),
35  std::move(extradata),
37 
38  ElementaryMediaTrackConfig(std::string mime_type,
39  std::vector<uint8_t> extradata,
40  DecodingMode decoding_mode)
41  : mime_type(std::move(mime_type)),
42  extradata(std::move(extradata)),
43  decoding_mode(decoding_mode) {}
44 
46  std::string mime_type;
47 
49  std::vector<uint8_t> extradata;
50 
58 };
59 
60 } // namespace wasm
61 } // namespace samsung
62 
63 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_MEDIA_TRACK_CONFIG_H_
ElementaryMediaTrackConfig(std::string mime_type, std::vector< uint8_t > extradata, DecodingMode decoding_mode)
ElementaryMediaTrackConfig(std::string mime_type, std::vector< uint8_t > extradata)
std::vector< uint8_t > extradata
Extra data for codec.
std::string mime_type
MIME containing codec and profile.
Common part of audio and video configs.