Shaka Packager SDK
Loading...
Searching...
No Matches
ac4_audio_util.h
1// Copyright 2020 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6//
7// AC4 audio utility functions.
8
9#ifndef PACKAGER_MEDIA_CODECS_AC4_AUDIO_UTIL_H_
10#define PACKAGER_MEDIA_CODECS_AC4_AUDIO_UTIL_H_
11
12#include <cstdint>
13#include <vector>
14
15namespace shaka {
16namespace media {
17
22bool CalculateAC4ChannelMask(const std::vector<uint8_t>& ac4_data,
23 uint32_t* ac4_channel_mask);
24
30bool CalculateAC4ChannelMPEGValue(const std::vector<uint8_t>& ac4_data,
31 uint32_t* ac4_channel_mpeg_value);
32
38bool GetAc4CodecInfo(const std::vector<uint8_t>& ac4_data,
39 uint8_t* ac4_codec_info);
40
44bool GetAc4ImmersiveInfo(const std::vector<uint8_t>& ac4_data,
45 bool* ac4_ims_flag,
46 bool* ac4_cbi_flag);
47
48} // namespace media
49} // namespace shaka
50
51#endif // PACKAGER_MEDIA_CODECS_AC4_AUDIO_UTIL_H_
All the methods that are virtual are virtual for mocking.