MXL : Media eXchange Layer
MXL
Loading...
Searching...
No Matches
MediaUtils.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2025 Contributors to the Media eXchange Layer project.
2
// SPDX-License-Identifier: Apache-2.0
3
4
#include "
mxl-internal/MediaUtils.hpp
"
5
#include <
mxl/platform.h
>
6
7
MXL_EXPORT
8
std::uint32_t
mxl::lib::getV210LineLength
(std::size_t width)
9
{
10
return
static_cast<
std::uint32_t
>
((width + 47) / 48 * 128);
11
}
12
13
MXL_EXPORT
14
std::uint32_t
mxl::lib::get10BitAlphaLineLength
(std::size_t width)
15
{
16
return
static_cast<
std::uint32_t
>
((width + 2) / 3 * 4);
17
}
MediaUtils.hpp
mxl::lib::get10BitAlphaLineLength
std::uint32_t get10BitAlphaLineLength(std::size_t width)
Definition
MediaUtils.cpp:14
mxl::lib::getV210LineLength
std::uint32_t getV210LineLength(std::size_t width)
Definition
MediaUtils.cpp:8
platform.h
MXL_EXPORT
#define MXL_EXPORT
Definition
platform.h:9
lib
internal
src
MediaUtils.cpp
Generated by
1.15.0