Home
last modified time | relevance | path

Searched refs:vui (Results 1 – 15 of 15) sorted by relevance

/rockchip-linux_mpp/mpp/codec/enc/h264/
H A Dh264e_sps.c63 H264eVui *vui = &sps->vui; in h264e_sps_update() local
217 memset(vui, 0, sizeof(*vui)); in h264e_sps_update()
218 vui->vui_en = h264->vui.vui_en; in h264e_sps_update()
219 vui->timing_info_present = 1; in h264e_sps_update()
220 vui->time_scale = rc->fps_out_num * 2; in h264e_sps_update()
221 vui->num_units_in_tick = rc->fps_out_denom; in h264e_sps_update()
222 vui->fixed_frame_rate = !rc->fps_out_flex; in h264e_sps_update()
223 vui->vidformat = MPP_FRAME_VIDEO_FMT_UNSPECIFIED; in h264e_sps_update()
226 vui->signal_type_present = 1; in h264e_sps_update()
227 vui->fullrange = 1; in h264e_sps_update()
[all …]
H A Dh264e_sps.h121 H264eVui vui; member
H A Dh264e_api_v2.c107 h264->vui.vui_en = 1; in init_h264e_cfg_set()
/rockchip-linux_mpp/mpp/codec/dec/h264/
H A Dh264d_sps.c75 static void init_VUI(H264_VUI_t *vui) in init_VUI() argument
77 vui->matrix_coefficients = 2; in init_VUI()
80 static MPP_RET read_VUI(BitReadCtx_t *p_bitctx, H264_VUI_t *vui) in read_VUI() argument
84 READ_ONEBIT(p_bitctx, &vui->aspect_ratio_info_present_flag); in read_VUI()
85 if (vui->aspect_ratio_info_present_flag) { in read_VUI()
86 READ_BITS(p_bitctx, 8, &vui->aspect_ratio_idc); in read_VUI()
87 if (255 == vui->aspect_ratio_idc) { in read_VUI()
88 READ_BITS(p_bitctx, 16, &vui->sar_width); in read_VUI()
89 READ_BITS(p_bitctx, 16, &vui->sar_height); in read_VUI()
92 READ_ONEBIT(p_bitctx, &vui->overscan_info_present_flag); in read_VUI()
[all …]
/rockchip-linux_mpp/mpp/codec/enc/h265/
H A Dh265e_ps.c187 MppEncVuiCfg *vui = &codec->vui; in h265e_set_sps() local
338 sps->m_vuiParametersPresentFlag = vui->vui_en; in h265e_set_sps()
340 sps->vui.m_aspectRatioInfoPresentFlag = 0; in h265e_set_sps()
341 sps->vui.m_aspectRatioIdc = 0; in h265e_set_sps()
342 sps->vui.m_sarWidth = 0; in h265e_set_sps()
343 sps->vui.m_sarHeight = 0; in h265e_set_sps()
344 sps->vui.m_overscanInfoPresentFlag = 0; in h265e_set_sps()
345 sps->vui.m_overscanAppropriateFlag = 0; in h265e_set_sps()
346 sps->vui.m_videoSignalTypePresentFlag = 0; in h265e_set_sps()
347 sps->vui.m_videoFormat = MPP_FRAME_VIDEO_FMT_UNSPECIFIED; in h265e_set_sps()
[all …]
H A Dh265e_header_gen.c373 void codeVUI(H265eStream *s, H265eVuiInfo *vui) in codeVUI() argument
375 …h265e_stream_write1_with_log(s, vui->m_aspectRatioInfoPresentFlag, "aspect_ratio_info_present_fla… in codeVUI()
376 if (vui->m_aspectRatioInfoPresentFlag) { in codeVUI()
377 h265e_stream_write_with_log(s, vui->m_aspectRatioIdc, 8, "aspect_ratio_idc"); in codeVUI()
378 if (vui->m_aspectRatioIdc == 255) { in codeVUI()
379 h265e_stream_write_with_log(s, vui->m_sarWidth, 16, "sar_width"); in codeVUI()
380 h265e_stream_write_with_log(s, vui->m_sarHeight, 16, "sar_height"); in codeVUI()
383 … h265e_stream_write1_with_log(s, vui->m_overscanInfoPresentFlag, "overscan_info_present_flag"); in codeVUI()
384 if (vui->m_overscanInfoPresentFlag) { in codeVUI()
385 … h265e_stream_write1_with_log(s, vui->m_overscanAppropriateFlag, "overscan_appropriate_flag"); in codeVUI()
[all …]
H A Dh265e_slice.h298 H265eVuiInfo vui; member
H A Dh265e_api.c98 h265->vui.vui_en = 1; in h265e_init()
/rockchip-linux_mpp/mpp/codec/dec/h265/
H A Dh265d_ps.c1181 VUI *vui = &sps->vui; in decode_vui() local
1187 vui->colour_primaries = MPP_FRAME_PRI_UNSPECIFIED; in decode_vui()
1188 vui->transfer_characteristic = MPP_FRAME_TRC_UNSPECIFIED; in decode_vui()
1189 vui->matrix_coeffs = MPP_FRAME_SPC_UNSPECIFIED; in decode_vui()
1196 vui->sar = vui_sar[sar_idx]; in decode_vui()
1198 READ_BITS(gb, 16, &vui->sar.num); in decode_vui()
1199 READ_BITS(gb, 16, &vui->sar.den); in decode_vui()
1204 READ_ONEBIT(gb, &vui->overscan_info_present_flag); in decode_vui()
1205 if (vui->overscan_info_present_flag) in decode_vui()
1206 READ_ONEBIT(gb, &vui->overscan_appropriate_flag); in decode_vui()
[all …]
H A Dh265d_refs.c140 mpp_frame_set_color_primaries(frame->frame, s->sps->vui.colour_primaries); in alloc_frame()
145 mpp_frame_set_color_trc(frame->frame, s->sps->vui.transfer_characteristic); in alloc_frame()
H A Dh265d_parser.c499 s->h265dctx->sample_aspect_ratio = sps->vui.sar; in set_sps()
501 if (sps->vui.video_signal_type_present_flag) in set_sps()
502 s->h265dctx->color_range = sps->vui.video_full_range_flag ? in set_sps()
507 if (sps->vui.colour_description_present_flag) { in set_sps()
508 s->h265dctx->colorspace = sps->vui.matrix_coeffs; in set_sps()
519 } else if (sps->vui.vui_timing_info_present_flag) { in set_sps()
520 num = sps->vui.vui_num_units_in_tick; in set_sps()
521 den = sps->vui.vui_time_scale; in set_sps()
H A Dh265d_parser.h228 VUI vui; member
H A Dh265d_sei.c95 if (sps->vui.frame_field_info_present_flag) { in decode_pic_timing()
/rockchip-linux_mpp/inc/
H A Drk_venc_cmd.h775 MppEncVuiCfg vui; member
915 MppEncVuiCfg vui; member
/rockchip-linux_mpp/mpp/base/
H A Dmpp_enc_cfg.c155 …u32, rk_u32, vui_en, FLAG_INCR, h264, vui, vui_en); \
187 …s32, rk_s32, vui_en, FLAG_INCR, h265, vui, vui_en); \