1 /* 2 * Copyright (c) 2021 Rockchip Electronics Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 #ifndef __MPP_FRAME_H__ 17 #define __MPP_FRAME_H__ 18 19 #include "mpp_buffer.h" 20 21 /* 22 * bit definition for mode flag in MppFrame 23 */ 24 /* progressive frame */ 25 #define MPP_FRAME_FLAG_FRAME (0x00000000) 26 /* top field only */ 27 #define MPP_FRAME_FLAG_TOP_FIELD (0x00000001) 28 /* bottom field only */ 29 #define MPP_FRAME_FLAG_BOT_FIELD (0x00000002) 30 /* paired field */ 31 #define MPP_FRAME_FLAG_PAIRED_FIELD (MPP_FRAME_FLAG_TOP_FIELD|MPP_FRAME_FLAG_BOT_FIELD) 32 /* paired field with field order of top first */ 33 #define MPP_FRAME_FLAG_TOP_FIRST (0x00000004) 34 /* paired field with field order of bottom first */ 35 #define MPP_FRAME_FLAG_BOT_FIRST (0x00000008) 36 /* paired field with unknown field order (MBAFF) */ 37 #define MPP_FRAME_FLAG_DEINTERLACED (MPP_FRAME_FLAG_TOP_FIRST|MPP_FRAME_FLAG_BOT_FIRST) 38 #define MPP_FRAME_FLAG_FIELD_ORDER_MASK (0x0000000C) 39 // for multiview stream 40 #define MPP_FRAME_FLAG_VIEW_ID_MASK (0x000000f0) 41 42 #define MPP_FRAME_FLAG_IEP_DEI_MASK (0x00000f00) 43 #define MPP_FRAME_FLAG_IEP_DEI_I2O1 (0x00000100) 44 #define MPP_FRAME_FLAG_IEP_DEI_I4O2 (0x00000200) 45 #define MPP_FRAME_FLAG_IEP_DEI_I4O1 (0x00000300) 46 47 /* 48 * MPEG vs JPEG YUV range. 49 */ 50 typedef enum { 51 MPP_FRAME_RANGE_UNSPECIFIED = 0, 52 MPP_FRAME_RANGE_MPEG = 1, ///< the normal 219*2^(n-8) "MPEG" YUV ranges 53 MPP_FRAME_RANGE_JPEG = 2, ///< the normal 2^n-1 "JPEG" YUV ranges 54 MPP_FRAME_RANGE_NB, ///< Not part of ABI 55 } MppFrameColorRange; 56 57 typedef enum { 58 MPP_FRAME_VIDEO_FMT_COMPONEMT = 0, 59 MPP_FRAME_VIDEO_FMT_PAL = 1, 60 MPP_FRAME_VIDEO_FMT_NTSC = 2, 61 MPP_FRAME_VIDEO_FMT_SECAM = 3, 62 MPP_FRAME_VIDEO_FMT_MAC = 4, 63 MPP_FRAME_VIDEO_FMT_UNSPECIFIED = 5, 64 MPP_FRAME_VIDEO_FMT_RESERVED0 = 6, 65 MPP_FRAME_VIDEO_FMT_RESERVED1 = 7, 66 } MppFrameVideoFormat; 67 68 /* 69 * Chromaticity coordinates of the source primaries. 70 */ 71 typedef enum { 72 MPP_FRAME_PRI_RESERVED0 = 0, 73 MPP_FRAME_PRI_BT709 = 1, ///< also ITU-R BT1361 / IEC 61966-2-4 / SMPTE RP177 Annex B 74 MPP_FRAME_PRI_UNSPECIFIED = 2, 75 MPP_FRAME_PRI_RESERVED = 3, 76 MPP_FRAME_PRI_BT470M = 4, ///< also FCC Title 47 Code of Federal Regulations 73.682 (a)(20) 77 78 MPP_FRAME_PRI_BT470BG = 5, ///< also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM 79 MPP_FRAME_PRI_SMPTE170M = 6, ///< also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC 80 MPP_FRAME_PRI_SMPTE240M = 7, ///< functionally identical to above 81 MPP_FRAME_PRI_FILM = 8, ///< colour filters using Illuminant C 82 MPP_FRAME_PRI_BT2020 = 9, ///< ITU-R BT2020 83 MPP_FRAME_PRI_SMPTEST428_1 = 10, ///< SMPTE ST 428-1 (CIE 1931 XYZ) 84 MPP_FRAME_PRI_SMPTE431 = 11, ///< SMPTE ST 431-2 (2011) / DCI P3 85 MPP_FRAME_PRI_SMPTE432 = 12, ///< SMPTE ST 432-1 (2010) / P3 D65 / Display P3 86 MPP_FRAME_PRI_JEDEC_P22 = 22, ///< JEDEC P22 phosphors 87 MPP_FRAME_PRI_NB, ///< Not part of ABI 88 } MppFrameColorPrimaries; 89 90 /* 91 * Color Transfer Characteristic. 92 */ 93 typedef enum { 94 MPP_FRAME_TRC_RESERVED0 = 0, 95 MPP_FRAME_TRC_BT709 = 1, ///< also ITU-R BT1361 96 MPP_FRAME_TRC_UNSPECIFIED = 2, 97 MPP_FRAME_TRC_RESERVED = 3, 98 MPP_FRAME_TRC_GAMMA22 = 4, ///< also ITU-R BT470M / ITU-R BT1700 625 PAL & SECAM 99 MPP_FRAME_TRC_GAMMA28 = 5, ///< also ITU-R BT470BG 100 ///< also ITU-R BT601-6 525 or 625 / ITU-R BT1358 525 or 625 / ITU-R BT1700 NTSC 101 MPP_FRAME_TRC_SMPTE170M = 6, 102 MPP_FRAME_TRC_SMPTE240M = 7, 103 MPP_FRAME_TRC_LINEAR = 8, ///< "Linear transfer characteristics" 104 MPP_FRAME_TRC_LOG = 9, ///< "Logarithmic transfer characteristic (100:1 range)" 105 MPP_FRAME_TRC_LOG_SQRT = 10, ///< "Logarithmic transfer characteristic (100 * Sqrt(10) : 1 range)" 106 MPP_FRAME_TRC_IEC61966_2_4 = 11, ///< IEC 61966-2-4 107 MPP_FRAME_TRC_BT1361_ECG = 12, ///< ITU-R BT1361 Extended Colour Gamut 108 MPP_FRAME_TRC_IEC61966_2_1 = 13, ///< IEC 61966-2-1 (sRGB or sYCC) 109 MPP_FRAME_TRC_BT2020_10 = 14, ///< ITU-R BT2020 for 10 bit system 110 MPP_FRAME_TRC_BT2020_12 = 15, ///< ITU-R BT2020 for 12 bit system 111 MPP_FRAME_TRC_SMPTEST2084 = 16, ///< SMPTE ST 2084 for 10-, 12-, 14- and 16-bit systems 112 MPP_FRAME_TRC_SMPTEST428_1 = 17, ///< SMPTE ST 428-1 113 MPP_FRAME_TRC_ARIB_STD_B67 = 18, ///< ARIB STD-B67, known as "Hybrid log-gamma" 114 MPP_FRAME_TRC_NB, ///< Not part of ABI 115 } MppFrameColorTransferCharacteristic; 116 117 /* 118 * YUV colorspace type. 119 */ 120 typedef enum { 121 MPP_FRAME_SPC_RGB = 0, ///< order of coefficients is actually GBR, also IEC 61966-2-1 (sRGB) 122 MPP_FRAME_SPC_BT709 = 1, ///< also ITU-R BT1361 / IEC 61966-2-4 xvYCC709 / SMPTE RP177 Annex B 123 MPP_FRAME_SPC_UNSPECIFIED = 2, 124 MPP_FRAME_SPC_RESERVED = 3, 125 MPP_FRAME_SPC_FCC = 4, ///< FCC Title 47 Code of Federal Regulations 73.682 (a)(20) 126 ///< also ITU-R BT601-6 625 / ITU-R BT1358 625 / ITU-R BT1700 625 PAL & SECAM / IEC 61966-2-4 xvYCC601 127 MPP_FRAME_SPC_BT470BG = 5, 128 ///< also ITU-R BT601-6 525 / ITU-R BT1358 525 / ITU-R BT1700 NTSC / functionally identical to above 129 MPP_FRAME_SPC_SMPTE170M = 6, 130 MPP_FRAME_SPC_SMPTE240M = 7, 131 MPP_FRAME_SPC_YCOCG = 8, ///< Used by Dirac / VC-2 and H.264 FRext, see ITU-T SG16 132 MPP_FRAME_SPC_BT2020_NCL = 9, ///< ITU-R BT2020 non-constant luminance system 133 MPP_FRAME_SPC_BT2020_CL = 10, ///< ITU-R BT2020 constant luminance system 134 MPP_FRAME_SPC_SMPTE2085 = 11, ///< SMPTE 2085, Y'D'zD'x 135 MPP_FRAME_SPC_CHROMA_DERIVED_NCL = 12, ///< Chromaticity-derived non-constant luminance system 136 MPP_FRAME_SPC_CHROMA_DERIVED_CL = 13, ///< Chromaticity-derived constant luminance system 137 MPP_FRAME_SPC_ICTCP = 14, ///< ITU-R BT.2100-0, ICtCp 138 MPP_FRAME_SPC_NB, ///< Not part of ABI 139 } MppFrameColorSpace; 140 141 /* 142 * Location of chroma samples. 143 * 144 * Illustration showing the location of the first (top left) chroma sample of the 145 * image, the left shows only luma, the right 146 * shows the location of the chroma sample, the 2 could be imagined to overlay 147 * each other but are drawn separately due to limitations of ASCII 148 * 149 * 1st 2nd 1st 2nd horizontal luma sample positions 150 * v v v v 151 * ______ ______ 152 * 1st luma line > |X X ... |3 4 X ... X are luma samples, 153 * | |1 2 1-6 are possible chroma positions 154 * 2nd luma line > |X X ... |5 6 X ... 0 is undefined/unknown position 155 */ 156 typedef enum { 157 MPP_CHROMA_LOC_UNSPECIFIED = 0, 158 MPP_CHROMA_LOC_LEFT = 1, ///< mpeg2/4 4:2:0, h264 default for 4:2:0 159 MPP_CHROMA_LOC_CENTER = 2, ///< mpeg1 4:2:0, jpeg 4:2:0, h263 4:2:0 160 MPP_CHROMA_LOC_TOPLEFT = 3, ///< ITU-R 601, SMPTE 274M 296M S314M(DV 4:1:1), mpeg2 4:2:2 161 MPP_CHROMA_LOC_TOP = 4, 162 MPP_CHROMA_LOC_BOTTOMLEFT = 5, 163 MPP_CHROMA_LOC_BOTTOM = 6, 164 MPP_CHROMA_LOC_NB, ///< Not part of ABI 165 } MppFrameChromaLocation; 166 167 #define MPP_FRAME_FMT_MASK (0x000fffff) 168 169 #define MPP_FRAME_FMT_COLOR_MASK (0x000f0000) 170 #define MPP_FRAME_FMT_YUV (0x00000000) 171 #define MPP_FRAME_FMT_RGB (0x00010000) 172 173 #define MPP_FRAME_FBC_MASK (0x00f00000) 174 #define MPP_FRAME_FBC_NONE (0x00000000) 175 /* 176 * AFBC_V1 is for ISP output. 177 * It has default payload offset to be calculated * from width and height: 178 * Payload offset = MPP_ALIGN(MPP_ALIGN(width, 16) * MPP_ALIGN(height, 16) / 16, SZ_4K) 179 */ 180 #define MPP_FRAME_FBC_AFBC_V1 (0x00100000) 181 /* 182 * AFBC_V2 is for video decoder output. 183 * It stores payload offset in first 32-bit in header address 184 * Payload offset is always set to zero. 185 */ 186 #define MPP_FRAME_FBC_AFBC_V2 (0x00200000) 187 188 #define MPP_FRAME_FMT_LE_MASK (0x01000000) 189 190 #define MPP_FRAME_FMT_IS_YUV(fmt) ((((fmt) & MPP_FRAME_FMT_COLOR_MASK) == MPP_FRAME_FMT_YUV) && \ 191 (((fmt) & MPP_FRAME_FMT_MASK) < MPP_FMT_YUV_BUTT)) 192 #define MPP_FRAME_FMT_IS_RGB(fmt) ((((fmt) & MPP_FRAME_FMT_COLOR_MASK) == MPP_FRAME_FMT_RGB) && \ 193 (((fmt) & MPP_FRAME_FMT_MASK) < MPP_FMT_RGB_BUTT)) 194 195 /* 196 * For MPP_FRAME_FBC_AFBC_V1 the 16byte aligned stride is used. 197 */ 198 #define MPP_FRAME_FMT_IS_FBC(fmt) ((fmt) & MPP_FRAME_FBC_MASK) 199 200 #define MPP_FRAME_FMT_IS_LE(fmt) (((fmt) & MPP_FRAME_FMT_LE_MASK) == MPP_FRAME_FMT_LE_MASK) 201 #define MPP_FRAME_FMT_IS_BE(fmt) (((fmt) & MPP_FRAME_FMT_LE_MASK) == 0) 202 203 /* mpp color format index definition */ 204 typedef enum { 205 MPP_FMT_YUV420SP = (MPP_FRAME_FMT_YUV + 0), /* YYYY... UV... (NV12) */ 206 /* 207 * A rockchip specific pixel format, without gap between pixel aganist 208 * the P010_10LE/P010_10BE 209 */ 210 MPP_FMT_YUV420SP_10BIT = (MPP_FRAME_FMT_YUV + 1), 211 MPP_FMT_YUV422SP = (MPP_FRAME_FMT_YUV + 2), /* YYYY... UVUV... (NV16) */ 212 MPP_FMT_YUV422SP_10BIT = (MPP_FRAME_FMT_YUV + 3), ///< Not part of ABI 213 MPP_FMT_YUV420P = (MPP_FRAME_FMT_YUV + 4), /* YYYY... U...V... (I420) */ 214 MPP_FMT_YUV420SP_VU = (MPP_FRAME_FMT_YUV + 5), /* YYYY... VUVUVU... (NV21) */ 215 MPP_FMT_YUV422P = (MPP_FRAME_FMT_YUV + 6), /* YYYY... UU...VV...(422P) */ 216 MPP_FMT_YUV422SP_VU = (MPP_FRAME_FMT_YUV + 7), /* YYYY... VUVUVU... (NV61) */ 217 MPP_FMT_YUV422_YUYV = (MPP_FRAME_FMT_YUV + 8), /* YUYVYUYV... (YUY2) */ 218 MPP_FMT_YUV422_YVYU = (MPP_FRAME_FMT_YUV + 9), /* YVYUYVYU... (YVY2) */ 219 MPP_FMT_YUV422_UYVY = (MPP_FRAME_FMT_YUV + 10), /* UYVYUYVY... (UYVY) */ 220 MPP_FMT_YUV422_VYUY = (MPP_FRAME_FMT_YUV + 11), /* VYUYVYUY... (VYUY) */ 221 MPP_FMT_YUV400 = (MPP_FRAME_FMT_YUV + 12), /* YYYY... */ 222 MPP_FMT_YUV440SP = (MPP_FRAME_FMT_YUV + 13), /* YYYY... UVUV... */ 223 MPP_FMT_YUV411SP = (MPP_FRAME_FMT_YUV + 14), /* YYYY... UV... */ 224 MPP_FMT_YUV444SP = (MPP_FRAME_FMT_YUV + 15), /* YYYY... UVUVUVUV... */ 225 MPP_FMT_YUV_BUTT, 226 227 MPP_FMT_RGB565 = (MPP_FRAME_FMT_RGB + 0), /* 16-bit RGB */ 228 MPP_FMT_BGR565 = (MPP_FRAME_FMT_RGB + 1), /* 16-bit RGB */ 229 MPP_FMT_RGB555 = (MPP_FRAME_FMT_RGB + 2), /* 15-bit RGB */ 230 MPP_FMT_BGR555 = (MPP_FRAME_FMT_RGB + 3), /* 15-bit RGB */ 231 MPP_FMT_RGB444 = (MPP_FRAME_FMT_RGB + 4), /* 12-bit RGB */ 232 MPP_FMT_BGR444 = (MPP_FRAME_FMT_RGB + 5), /* 12-bit RGB */ 233 MPP_FMT_RGB888 = (MPP_FRAME_FMT_RGB + 6), /* 24-bit RGB */ 234 MPP_FMT_BGR888 = (MPP_FRAME_FMT_RGB + 7), /* 24-bit RGB */ 235 MPP_FMT_RGB101010 = (MPP_FRAME_FMT_RGB + 8), /* 30-bit RGB */ 236 MPP_FMT_BGR101010 = (MPP_FRAME_FMT_RGB + 9), /* 30-bit RGB */ 237 MPP_FMT_ARGB8888 = (MPP_FRAME_FMT_RGB + 10), /* 32-bit RGB */ 238 MPP_FMT_ABGR8888 = (MPP_FRAME_FMT_RGB + 11), /* 32-bit RGB */ 239 MPP_FMT_BGRA8888 = (MPP_FRAME_FMT_RGB + 12), /* 32-bit RGB */ 240 MPP_FMT_RGBA8888 = (MPP_FRAME_FMT_RGB + 13), /* 32-bit RGB */ 241 MPP_FMT_RGB_BUTT, 242 243 MPP_FMT_BUTT, 244 } MppFrameFormat; 245 246 /** 247 * Rational number (pair of numerator and denominator). 248 */ 249 typedef struct MppFrameRational { 250 RK_S32 num; ///< Numerator 251 RK_S32 den; ///< Denominator 252 } MppFrameRational; 253 254 typedef struct MppFrameMasteringDisplayMetadata { 255 RK_U16 display_primaries[3][2]; 256 RK_U16 white_point[2]; 257 RK_U32 max_luminance; 258 RK_U32 min_luminance; 259 } MppFrameMasteringDisplayMetadata; 260 261 typedef struct MppFrameContentLightMetadata { 262 RK_U16 MaxCLL; 263 RK_U16 MaxFALL; 264 } MppFrameContentLightMetadata; 265 266 typedef enum { 267 MPP_FRAME_ERR_UNKNOW = 0x0001, 268 MPP_FRAME_ERR_UNSUPPORT = 0x0002, 269 } MPP_FRAME_ERR; 270 271 #ifdef __cplusplus 272 extern "C" { 273 #endif 274 275 /* 276 * MppFrame interface 277 */ 278 MPP_RET mpp_frame_init(MppFrame *frame); 279 MPP_RET mpp_frame_deinit(MppFrame *frame); 280 MppFrame mpp_frame_get_next(MppFrame frame); 281 282 /* 283 * normal parameter 284 * 285 * offset_x 286 * <--------> 287 * 288 * <---------------+ hor_stride +---------------> 289 * 290 * +------------------------------------------------------+ ^ ^ 291 * | | | | 292 * | | | | offset_y 293 * | | | | 294 * | +--------------------------------+ ^ | | v 295 * | | | | | | 296 * | | | + | + 297 * | | | | 298 * | | valid data area | height | ver_stride 299 * | | | | 300 * | | | + | + 301 * | | | | | | 302 * | +--------------------------------+ v | | 303 * | | | 304 * | <----------+ width +---------> | | 305 * | | | 306 * +------------------------------------------------------+ v 307 * 308 */ 309 RK_U32 mpp_frame_get_width(const MppFrame frame); 310 void mpp_frame_set_width(MppFrame frame, RK_U32 width); 311 RK_U32 mpp_frame_get_height(const MppFrame frame); 312 void mpp_frame_set_height(MppFrame frame, RK_U32 height); 313 RK_U32 mpp_frame_get_hor_stride(const MppFrame frame); 314 void mpp_frame_set_hor_stride(MppFrame frame, RK_U32 hor_stride); 315 RK_U32 mpp_frame_get_ver_stride(const MppFrame frame); 316 void mpp_frame_set_ver_stride(MppFrame frame, RK_U32 ver_stride); 317 void mpp_frame_set_hor_stride_pixel(MppFrame frame, RK_U32 hor_stride_pixel); 318 RK_U32 mpp_frame_get_hor_stride_pixel(const MppFrame frame); 319 320 RK_U32 mpp_frame_get_offset_x(const MppFrame frame); 321 void mpp_frame_set_offset_x(MppFrame frame, RK_U32 offset_x); 322 RK_U32 mpp_frame_get_offset_y(const MppFrame frame); 323 void mpp_frame_set_offset_y(MppFrame frame, RK_U32 offset_y); 324 RK_U32 mpp_frame_get_mode(const MppFrame frame); 325 void mpp_frame_set_mode(MppFrame frame, RK_U32 mode); 326 RK_U32 mpp_frame_get_discard(const MppFrame frame); 327 void mpp_frame_set_discard(MppFrame frame, RK_U32 discard); 328 RK_U32 mpp_frame_get_viewid(const MppFrame frame); 329 void mpp_frame_set_viewid(MppFrame frame, RK_U32 viewid); 330 RK_U32 mpp_frame_get_poc(const MppFrame frame); 331 void mpp_frame_set_poc(MppFrame frame, RK_U32 poc); 332 RK_S64 mpp_frame_get_pts(const MppFrame frame); 333 void mpp_frame_set_pts(MppFrame frame, RK_S64 pts); 334 RK_S64 mpp_frame_get_dts(const MppFrame frame); 335 void mpp_frame_set_dts(MppFrame frame, RK_S64 dts); 336 RK_U32 mpp_frame_get_errinfo(const MppFrame frame); 337 void mpp_frame_set_errinfo(MppFrame frame, RK_U32 errinfo); 338 size_t mpp_frame_get_buf_size(const MppFrame frame); 339 void mpp_frame_set_buf_size(MppFrame frame, size_t buf_size); 340 /* 341 * flow control parmeter 342 */ 343 RK_U32 mpp_frame_get_eos(const MppFrame frame); 344 void mpp_frame_set_eos(MppFrame frame, RK_U32 eos); 345 RK_U32 mpp_frame_get_info_change(const MppFrame frame); 346 void mpp_frame_set_info_change(MppFrame frame, RK_U32 info_change); 347 348 /* 349 * buffer parameter 350 */ 351 MppBuffer mpp_frame_get_buffer(const MppFrame frame); 352 void mpp_frame_set_buffer(MppFrame frame, MppBuffer buffer); 353 354 /* 355 * meta data parameter 356 */ 357 RK_S32 mpp_frame_has_meta(const MppFrame frame); 358 MppMeta mpp_frame_get_meta(const MppFrame frame); 359 void mpp_frame_set_meta(MppFrame frame, MppMeta meta); 360 361 /* 362 * color related parameter 363 */ 364 MppFrameColorRange mpp_frame_get_color_range(const MppFrame frame); 365 void mpp_frame_set_color_range(MppFrame frame, MppFrameColorRange color_range); 366 MppFrameColorPrimaries mpp_frame_get_color_primaries(const MppFrame frame); 367 void mpp_frame_set_color_primaries(MppFrame frame, MppFrameColorPrimaries color_primaries); 368 MppFrameColorTransferCharacteristic mpp_frame_get_color_trc(const MppFrame frame); 369 void mpp_frame_set_color_trc(MppFrame frame, MppFrameColorTransferCharacteristic color_trc); 370 MppFrameColorSpace mpp_frame_get_colorspace(const MppFrame frame); 371 void mpp_frame_set_colorspace(MppFrame frame, MppFrameColorSpace colorspace); 372 MppFrameChromaLocation mpp_frame_get_chroma_location(const MppFrame frame); 373 void mpp_frame_set_chroma_location(MppFrame frame, MppFrameChromaLocation chroma_location); 374 MppFrameFormat mpp_frame_get_fmt(MppFrame frame); 375 void mpp_frame_set_fmt(MppFrame frame, MppFrameFormat fmt); 376 MppFrameRational mpp_frame_get_sar(const MppFrame frame); 377 void mpp_frame_set_sar(MppFrame frame, MppFrameRational sar); 378 MppFrameMasteringDisplayMetadata mpp_frame_get_mastering_display(const MppFrame frame); 379 void mpp_frame_set_mastering_display(MppFrame frame, MppFrameMasteringDisplayMetadata mastering_display); 380 MppFrameContentLightMetadata mpp_frame_get_content_light(const MppFrame frame); 381 void mpp_frame_set_content_light(MppFrame frame, MppFrameContentLightMetadata content_light); 382 383 /* 384 * HDR parameter 385 */ 386 387 #ifdef __cplusplus 388 } 389 #endif 390 391 #endif /* __MPP_FRAME_H__ */ 392