Tizen WASM Player
Tizen WASM Player: Tizen TV WebAssembly Media Player extension allowing for a low-level elementary media stream playback.
elementary_audio_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_AUDIO_TRACK_CONFIG_H_
7 #define INCLUDE_SAMSUNG_WASM_ELEMENTARY_AUDIO_TRACK_CONFIG_H_
8 
9 #include <cstdint>
10 #include <string>
11 #include <vector>
12 
14 
15 namespace samsung {
16 namespace wasm {
17 
19 enum class SampleFormat {
20  kUnknown,
21  kU8,
22  kS16,
23  kS32,
24  kF32,
25  kPlanarS16,
26  kPlanarF32,
27  kPlanarS32,
28  kS24,
29  kAc3,
30  kEac3,
31 };
32 
34 enum class ChannelLayout {
35  kNone,
36  kUnsupported,
37  kMono,
38  kStereo,
39  k2Point1,
40  k2_1,
41  k2_2,
42  k3_1,
43  k4_0,
44  k4_1,
45  k4_1QuadSide,
46  k5_0,
47  k5_0Back,
48  k5_1,
49  k5_1Back,
50  k6_0,
51  k6_0Front,
52  k6_1,
53  k6_1Back,
54  k6_1Front,
55  k7_0,
56  k7_0Front,
57  k7_1,
58  k7_1Wide,
59  k7_1WideBack,
60  kDiscrete,
61  kHexagonal,
62  kOctagonal,
63  kQuad,
65  kSurround,
66 };
67 
71 
73  std::vector<uint8_t> extradata,
76  uint32_t samples_per_second)
81 
85 };
86 
87 } // namespace wasm
88 } // namespace samsung
89 
90 #endif // INCLUDE_SAMSUNG_WASM_ELEMENTARY_AUDIO_TRACK_CONFIG_H_
samsung::wasm::ElementaryMediaTrackConfig::extradata
std::vector< uint8_t > extradata
Extra data for codec.
Definition: elementary_media_track_config.h:28
samsung::wasm::ChannelLayout::k6_1Back
@ k6_1Back
Stereo L + R, Front C, LFE, Back L + R, Rear Center.
samsung::wasm::SampleFormat::kAc3
@ kAc3
Compressed AC3 bitstream.
samsung::wasm::ChannelLayout::kOctagonal
@ kOctagonal
Front L + R + C, Side L + R, Back L + R + C.
samsung::wasm::ChannelLayout::kHexagonal
@ kHexagonal
Stereo L + R, Front C, Back L + R + C.
samsung::wasm::ChannelLayout::k5_0
@ k5_0
Front L + R + C, Side L + R.
samsung::wasm::ElementaryMediaTrackConfig
Common part of audio and video configs.
Definition: elementary_media_track_config.h:17
samsung::wasm::ChannelLayout::k4_0
@ k4_0
Front L + R + C, Back C.
samsung::wasm::ChannelLayout::kQuad
@ kQuad
Front L + R, Back L + R.
samsung::wasm::ChannelLayout::k2_1
@ k2_1
Front L + R, Back C.
samsung::wasm::SampleFormat
SampleFormat
Enum representing supported audio formats.
Definition: elementary_audio_track_config.h:19
samsung::wasm::ChannelLayout::k7_1Wide
@ k7_1Wide
Front L + R + C, LFE, Side L + R, Front LofC + RofC.
samsung::wasm::ChannelLayout::k5_1
@ k5_1
Front L + R + C, LFE, Side L + R.
samsung::wasm::SampleFormat::kS16
@ kS16
Signed 16-bit.
samsung::wasm::SampleFormat::kPlanarS16
@ kPlanarS16
Signed 16-bit planar.
samsung::wasm::SampleFormat::kS32
@ kS32
Signed 32-bit.
samsung::wasm::SampleFormat::kF32
@ kF32
Float 32-bit.
samsung::wasm::ChannelLayout::kSurround
@ kSurround
Front L + R + C.
samsung::wasm::SampleFormat::kPlanarS32
@ kPlanarS32
Signed 32-bit planar.
samsung::wasm::ChannelLayout
ChannelLayout
Lists representations of ordering of audio channels.
Definition: elementary_audio_track_config.h:34
samsung::wasm::ChannelLayout::k2_2
@ k2_2
Front L + R, Side L + R.
samsung::wasm::ChannelLayout::k4_1
@ k4_1
Stereo L + R, Front C, Rear C, LFE.
samsung::wasm::ChannelLayout::kUnsupported
@ kUnsupported
Channel Layout is unsupported.
samsung::wasm::ChannelLayout::k6_0
@ k6_0
Stereo L + R, Front C, Side L + R, Back C.
samsung::wasm::ChannelLayout::k3_1
@ k3_1
Stereo L + R, Front C, LFE.
samsung::wasm::ChannelLayout::k2Point1
@ k2Point1
Stereo L + R, LFE.
samsung::wasm::ChannelLayout::k7_0
@ k7_0
Front L + R + C, Side L + R, Back L + R.
samsung::wasm::ElementaryAudioTrackConfig::ElementaryAudioTrackConfig
ElementaryAudioTrackConfig(std::string mime_type, std::vector< uint8_t > extradata, SampleFormat sample_format, ChannelLayout channel_layout, uint32_t samples_per_second)
Definition: elementary_audio_track_config.h:72
samsung::wasm::ElementaryAudioTrackConfig
Contains audio ElementaryMediaTrack config.
Definition: elementary_audio_track_config.h:69
samsung::wasm::ChannelLayout::kStereo
@ kStereo
Front L + R.
samsung::wasm::ElementaryMediaTrackConfig::mime_type
std::string mime_type
MIME containing codec and profile.
Definition: elementary_media_track_config.h:25
elementary_media_track_config.h
samsung::wasm::SampleFormat::kUnknown
@ kUnknown
Unknown sample format.
samsung::wasm::ChannelLayout::k5_1Back
@ k5_1Back
Front L, Front R, Front C, LFE, Back L + R.
samsung::wasm::ElementaryAudioTrackConfig::samples_per_second
uint32_t samples_per_second
Definition: elementary_audio_track_config.h:84
samsung::wasm::ChannelLayout::kNone
@ kNone
Channel Layout is unspecified.
samsung::wasm::SampleFormat::kU8
@ kU8
Unsigned 8-bit w/ bias of 128.
samsung::wasm::ChannelLayout::k6_1Front
@ k6_1Front
Stereo L + R, Side L, Side R, Front LofC + RofC, LFE.
samsung::wasm::ChannelLayout::k6_0Front
@ k6_0Front
Stereo L + R, Side L + R, Front LofC + RofC.
samsung::wasm::ChannelLayout::kMono
@ kMono
Front C.
samsung::wasm::ElementaryAudioTrackConfig::ElementaryAudioTrackConfig
ElementaryAudioTrackConfig()
Definition: elementary_audio_track_config.h:70
samsung::wasm::ChannelLayout::k4_1QuadSide
@ k4_1QuadSide
Front L + R, Side L + R, LFE.
samsung::wasm::SampleFormat::kEac3
@ kEac3
Compressed E-AC3 bitstream.
samsung::wasm::SampleFormat::kS24
@ kS24
Signed 24-bit.
samsung::wasm::ChannelLayout::k5_0Back
@ k5_0Back
Front L + R + C, Back L + R.
samsung::wasm::ChannelLayout::k6_1
@ k6_1
Stereo L + R, Front C, LFE, Side L + R, Rear, Center.
samsung::wasm::ChannelLayout::k7_1
@ k7_1
Front L + R + C, LFE, Side L + R, Back L + R.
samsung::wasm::ElementaryAudioTrackConfig::sample_format
SampleFormat sample_format
Definition: elementary_audio_track_config.h:82
samsung::wasm::ChannelLayout::k7_1WideBack
@ k7_1WideBack
Front L + R + C, LFE, Back L + R, Front LofC + RofC.
samsung::wasm::ChannelLayout::kDiscrete
@ kDiscrete
Channels are not explicitly mapped to speakers.
samsung::wasm::ChannelLayout::kStereoDownmix
@ kStereoDownmix
Stereo L + R.
samsung::wasm::SampleFormat::kPlanarF32
@ kPlanarF32
Float 32-bit planar.
samsung::wasm::ChannelLayout::k7_0Front
@ k7_0Front
Front L + R + C, Side L + R, Front LofC, Front RofC.
samsung::wasm::ElementaryAudioTrackConfig::channel_layout
ChannelLayout channel_layout
Definition: elementary_audio_track_config.h:83
samsung
Definition: html_media_element.h:15