Shaka Packager SDK
Loading...
Searching...
No Matches
video_util.h
1// Copyright 2019 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#ifndef PACKAGER_MEDIA_BASE_VIDEO_UTIL_H_
8#define PACKAGER_MEDIA_BASE_VIDEO_UTIL_H_
9
10#include <cstdint>
11
12namespace shaka {
13namespace media {
14
15// Derive pixel aspect ratio from Display Aspect Ratio and Frame Aspect Ratio.
16void DerivePixelWidthHeight(uint32_t frame_width,
17 uint32_t frame_height,
18 uint32_t display_width,
19 uint32_t display_height,
20 uint32_t* pixel_width,
21 uint32_t* pixel_height);
22
23} // namespace media
24} // namespace shaka
25
26#endif // PACKAGER_MEDIA_BASE_VIDEO_UTIL_H_
All the methods that are virtual are virtual for mocking.