3 #include <bnb/types/full_image.hpp>
5 namespace bnb::player_api
8 constexpr uint32_t yuv_offset_to_y_coeffs = 0;
9 constexpr uint32_t yuv_offset_to_u_coeffs = 8;
10 constexpr uint32_t yuv_offset_to_v_coeffs = 4;
12 constexpr uint32_t yuv_offset_to_r_coeffs = 0;
13 constexpr uint32_t yuv_offset_to_g_coeffs = 4;
14 constexpr uint32_t yuv_offset_to_b_coeffs = 8;
20 [[nodiscard]]
inline int32_t uv_plane_width(int32_t width)
22 return (width + 1) / 2;
25 [[nodiscard]]
inline int32_t uv_plane_height(int32_t height)
27 return (height + 1) / 2;