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