Searched refs:mdm (Results 1 – 2 of 2) sorted by relevance
764 AVMasteringDisplayMetadata *mdm = in vaapi_encode_h265_init_picture_params() local768 if (mdm->has_primaries && mdm->has_luminance) { in vaapi_encode_h265_init_picture_params()779 av_q2d(mdm->display_primaries[j][0])), in vaapi_encode_h265_init_picture_params()783 av_q2d(mdm->display_primaries[j][1])), in vaapi_encode_h265_init_picture_params()788 FFMIN(lrint(chroma_den * av_q2d(mdm->white_point[0])), in vaapi_encode_h265_init_picture_params()791 FFMIN(lrint(chroma_den * av_q2d(mdm->white_point[1])), in vaapi_encode_h265_init_picture_params()795 lrint(luma_den * av_q2d(mdm->max_luminance)); in vaapi_encode_h265_init_picture_params()797 FFMIN(lrint(luma_den * av_q2d(mdm->min_luminance)), in vaapi_encode_h265_init_picture_params()
1503 AVMasteringDisplayMetadata *mdm = av_mastering_display_metadata_create_side_data(f); in output_frame() local1504 if (!mdm) { in output_frame()1509 mdm->white_point[0] = av_make_q(s->white_point[0], 100000); in output_frame()1510 mdm->white_point[1] = av_make_q(s->white_point[1], 100000); in output_frame()1514 mdm->display_primaries[i][0] = av_make_q(s->display_primaries[i][0], 100000); in output_frame()1515 mdm->display_primaries[i][1] = av_make_q(s->display_primaries[i][1], 100000); in output_frame()1518 mdm->has_primaries = 1; in output_frame()