Home
last modified time | relevance | path

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

12

/third_party/mesa3d/src/gallium/drivers/radeonsi/
Dradeon_vce_52.c130 enc->enc_pic.vui.video_format = 0x00000005; in get_vui_param()
131 enc->enc_pic.vui.color_prim = 0x00000002; in get_vui_param()
132 enc->enc_pic.vui.transfer_char = 0x00000002; in get_vui_param()
133 enc->enc_pic.vui.matrix_coef = 0x00000002; in get_vui_param()
134 enc->enc_pic.vui.timing_info_present_flag = 0x00000001; in get_vui_param()
135 enc->enc_pic.vui.num_units_in_tick = pic->rate_ctrl[0].frame_rate_den; in get_vui_param()
136 enc->enc_pic.vui.time_scale = pic->rate_ctrl[0].frame_rate_num * 2; in get_vui_param()
137 enc->enc_pic.vui.fixed_frame_rate_flag = 0x00000001; in get_vui_param()
138 enc->enc_pic.vui.bit_rate_scale = 0x00000004; in get_vui_param()
139 enc->enc_pic.vui.cpb_size_scale = 0x00000006; in get_vui_param()
[all …]
Dradeon_vce_40_2_2.c220 static void vui(struct rvce_encoder *enc) in vui() function
282 enc->vui(enc); in config()
439 enc->vui = vui; in si_vce_40_2_2_init()
Dradeon_vce.h336 struct rvce_vui vui; member
380 void (*vui)(struct rvce_encoder *enc); member
/third_party/ffmpeg/libavcodec/
Dh265_metadata_bsf.c101 if (sps->vui.vui_hrd_parameters_present_flag) in h265_metadata_guess_level()
102 hrd = &sps->vui.hrd_parameters; in h265_metadata_guess_level()
216 sps->vui.aspect_ratio_idc = 255; in h265_metadata_update_sps()
217 sps->vui.sar_width = num; in h265_metadata_update_sps()
218 sps->vui.sar_height = den; in h265_metadata_update_sps()
220 sps->vui.aspect_ratio_idc = i; in h265_metadata_update_sps()
222 sps->vui.aspect_ratio_info_present_flag = 1; in h265_metadata_update_sps()
240 SET_OR_INFER(sps->vui.video_format, ctx->video_format, in h265_metadata_update_sps()
241 sps->vui.video_signal_type_present_flag, 5); in h265_metadata_update_sps()
243 SET_OR_INFER(sps->vui.video_full_range_flag, in h265_metadata_update_sps()
[all …]
Dh264_metadata_bsf.c166 sps->vui.aspect_ratio_idc = 255; in h264_metadata_update_sps()
167 sps->vui.sar_width = num; in h264_metadata_update_sps()
168 sps->vui.sar_height = den; in h264_metadata_update_sps()
170 sps->vui.aspect_ratio_idc = i; in h264_metadata_update_sps()
172 sps->vui.aspect_ratio_info_present_flag = 1; in h264_metadata_update_sps()
178 sps->vui.field = ctx->field; \ in h264_metadata_update_sps()
185 sps->vui.overscan_info_present_flag = 1; in h264_metadata_update_sps()
206 sps->vui.colour_description_present_flag = 1; in h264_metadata_update_sps()
208 sps->vui.video_signal_type_present_flag = 1; in h264_metadata_update_sps()
212 sps->vui.chroma_sample_loc_type_top_field = in h264_metadata_update_sps()
[all …]
Dhevc_ps.c588 VUI backup_vui, *vui = &sps->vui; in decode_vui() local
598 vui->sar = vui_sar[sar_idx]; in decode_vui()
600 vui->sar.num = get_bits(gb, 16); in decode_vui()
601 vui->sar.den = get_bits(gb, 16); in decode_vui()
607 vui->overscan_info_present_flag = get_bits1(gb); in decode_vui()
608 if (vui->overscan_info_present_flag) in decode_vui()
609 vui->overscan_appropriate_flag = get_bits1(gb); in decode_vui()
611 vui->video_signal_type_present_flag = get_bits1(gb); in decode_vui()
612 if (vui->video_signal_type_present_flag) { in decode_vui()
613 vui->video_format = get_bits(gb, 3); in decode_vui()
[all …]
Dvaapi_encode_h264.c394 sps->vui.aspect_ratio_idc = i; in vaapi_encode_h264_init_sequence_params()
399 sps->vui.aspect_ratio_idc = 255; in vaapi_encode_h264_init_sequence_params()
400 sps->vui.sar_width = num; in vaapi_encode_h264_init_sequence_params()
401 sps->vui.sar_height = den; in vaapi_encode_h264_init_sequence_params()
403 sps->vui.aspect_ratio_info_present_flag = 1; in vaapi_encode_h264_init_sequence_params()
407 sps->vui.video_format = 5; in vaapi_encode_h264_init_sequence_params()
408 sps->vui.video_full_range_flag = in vaapi_encode_h264_init_sequence_params()
410 sps->vui.colour_primaries = avctx->color_primaries; in vaapi_encode_h264_init_sequence_params()
411 sps->vui.transfer_characteristics = avctx->color_trc; in vaapi_encode_h264_init_sequence_params()
412 sps->vui.matrix_coefficients = avctx->colorspace; in vaapi_encode_h264_init_sequence_params()
[all …]
Dvaapi_encode_h265.c257 H265RawVUI *vui = &sps->vui; in vaapi_encode_h265_init_sequence_params() local
512 vui->aspect_ratio_idc = i; in vaapi_encode_h265_init_sequence_params()
517 vui->aspect_ratio_idc = 255; in vaapi_encode_h265_init_sequence_params()
518 vui->sar_width = num; in vaapi_encode_h265_init_sequence_params()
519 vui->sar_height = den; in vaapi_encode_h265_init_sequence_params()
521 vui->aspect_ratio_info_present_flag = 1; in vaapi_encode_h265_init_sequence_params()
525 vui->video_format = 5; in vaapi_encode_h265_init_sequence_params()
526 vui->video_full_range_flag = in vaapi_encode_h265_init_sequence_params()
528 vui->colour_primaries = avctx->color_primaries; in vaapi_encode_h265_init_sequence_params()
529 vui->transfer_characteristics = avctx->color_trc; in vaapi_encode_h265_init_sequence_params()
[all …]
Dcbs_h264_syntax_template.c363 CHECK(FUNC(vui_parameters)(ctx, rw, &current->vui, current)); in FUNC()
365 CHECK(FUNC(vui_parameters_default)(ctx, rw, &current->vui, current)); in FUNC()
533 if (sps->vui.nal_hrd_parameters_present_flag) { in FUNC()
534 for (i = 0; i <= sps->vui.nal_hrd_parameters.cpb_cnt_minus1; i++) { in FUNC()
535 length = sps->vui.nal_hrd_parameters.initial_cpb_removal_delay_length_minus1 + 1; in FUNC()
545 if (sps->vui.vcl_hrd_parameters_present_flag) { in FUNC()
546 for (i = 0; i <= sps->vui.vcl_hrd_parameters.cpb_cnt_minus1; i++) { in FUNC()
547 length = sps->vui.vcl_hrd_parameters.initial_cpb_removal_delay_length_minus1 + 1; in FUNC()
592 if (sps->vui.nal_hrd_parameters_present_flag) in FUNC()
593 time_offset_length = sps->vui.nal_hrd_parameters.time_offset_length; in FUNC()
[all …]
Dlibx265.c185 ctx->params->vui.bEnableVideoSignalTypePresentFlag = 1; in libx265_encode_init()
188 ctx->params->vui.bEnableVideoFullRangeFlag = in libx265_encode_init()
191 ctx->params->vui.bEnableVideoFullRangeFlag = in libx265_encode_init()
204 ctx->params->vui.bEnableColorDescriptionPresentFlag = 1; in libx265_encode_init()
207 ctx->params->vui.colorPrimaries = avctx->color_primaries; in libx265_encode_init()
208 ctx->params->vui.transferCharacteristics = avctx->color_trc; in libx265_encode_init()
211 … ctx->params->preferredTransferCharacteristics = ctx->params->vui.transferCharacteristics; in libx265_encode_init()
213 ctx->params->vui.matrixCoeffs = avctx->colorspace; in libx265_encode_init()
219 ctx->params->vui.bEnableChromaLocInfoPresentFlag = in libx265_encode_init()
223 if (ctx->params->vui.bEnableChromaLocInfoPresentFlag) { in libx265_encode_init()
[all …]
Dqsvenc_hevc.c120 vps.vps_timing_info_present_flag = sps.vui.vui_timing_info_present_flag; in generate_fake_vps()
121 vps.vps_num_units_in_tick = sps.vui.vui_num_units_in_tick; in generate_fake_vps()
122 vps.vps_time_scale = sps.vui.vui_time_scale; in generate_fake_vps()
123 vps.vps_poc_proportional_to_timing_flag = sps.vui.vui_poc_proportional_to_timing_flag; in generate_fake_vps()
124 vps.vps_num_ticks_poc_diff_one = sps.vui.vui_num_ticks_poc_diff_one_minus1 + 1; in generate_fake_vps()
Dnvenc.c1098 NV_ENC_CONFIG_H264_VUI_PARAMETERS *vui = &h264->h264VUIParameters; in nvenc_setup_h264_config() local
1100 vui->colourMatrix = IS_GBRP(ctx->data_pix_fmt) ? AVCOL_SPC_RGB : avctx->colorspace; in nvenc_setup_h264_config()
1101 vui->colourPrimaries = avctx->color_primaries; in nvenc_setup_h264_config()
1102 vui->transferCharacteristics = avctx->color_trc; in nvenc_setup_h264_config()
1103 vui->videoFullRangeFlag = (avctx->color_range == AVCOL_RANGE_JPEG in nvenc_setup_h264_config()
1106 vui->colourDescriptionPresentFlag = in nvenc_setup_h264_config()
1107 (vui->colourMatrix != 2 || vui->colourPrimaries != 2 || vui->transferCharacteristics != 2); in nvenc_setup_h264_config()
1109 vui->videoSignalTypePresentFlag = in nvenc_setup_h264_config()
1110 (vui->colourDescriptionPresentFlag in nvenc_setup_h264_config()
1111 || vui->videoFormat != 5 in nvenc_setup_h264_config()
[all …]
Dlibx264.c214 …if (x4->params.vui.i_sar_height*ctx->sample_aspect_ratio.num != ctx->sample_aspect_ratio.den * x4-… in reconfig_encoder()
215 x4->params.vui.i_sar_height = ctx->sample_aspect_ratio.den; in reconfig_encoder()
216 x4->params.vui.i_sar_width = ctx->sample_aspect_ratio.num; in reconfig_encoder()
888 x4->params.vui.i_sar_width = sw; in X264_init()
889 x4->params.vui.i_sar_height = sh; in X264_init()
913 x4->params.vui.b_fullrange = avctx->color_range == AVCOL_RANGE_JPEG; in X264_init()
917 x4->params.vui.b_fullrange = 1; in X264_init()
920 x4->params.vui.i_colmatrix = avctx->colorspace; in X264_init()
922 x4->params.vui.i_colorprim = avctx->color_primaries; in X264_init()
924 x4->params.vui.i_transfer = avctx->color_trc; in X264_init()
[all …]
Dhevc_parser.c103 } else if (ps->sps->vui.vui_timing_info_present_flag) { in hevc_parse_slice_header()
104 num = ps->sps->vui.vui_num_units_in_tick; in hevc_parse_slice_header()
105 den = ps->sps->vui.vui_time_scale; in hevc_parse_slice_header()
Dcbs_h265_syntax_template.c939 CHECK(FUNC(vui_parameters)(ctx, rw, &current->vui, current)); in FUNC()
941 CHECK(FUNC(vui_parameters_default)(ctx, rw, &current->vui, current)); in FUNC()
1648 !sps->vui.vui_hrd_parameters_present_flag) { in FUNC()
1653 hrd = &sps->vui.hrd_parameters; in FUNC()
1753 if (sps->vui.frame_field_info_present_flag) { in FUNC()
1767 sps->vui.vui_hrd_parameters_present_flag) in FUNC()
1768 hrd = &sps->vui.hrd_parameters; in FUNC()
1881 infer(film_grain_full_range_flag, sps->vui.video_full_range_flag); in FUNC()
1882 infer(film_grain_colour_primaries, sps->vui.colour_primaries); in FUNC()
1883 infer(film_grain_transfer_characteristics, sps->vui.transfer_characteristics); in FUNC()
[all …]
Dlibkvazaar.c97 cfg->vui.sar_width = avctx->sample_aspect_ratio.num; in libkvazaar_init()
98 cfg->vui.sar_height = avctx->sample_aspect_ratio.den; in libkvazaar_init()
Dvideotoolbox.c238 VUI vui = sps->vui; in ff_videotoolbox_hvcc_extradata_create() local
302 AV_W8(p + 13, 0xf0 | (vui.min_spatial_segmentation_idc >> 4)); in ff_videotoolbox_hvcc_extradata_create()
303 AV_W8(p + 14, vui.min_spatial_segmentation_idc & 0xff); in ff_videotoolbox_hvcc_extradata_create()
309 if (!vui.min_spatial_segmentation_idc) in ff_videotoolbox_hvcc_extradata_create()
Dhevcdec.c341 ff_set_sar(avctx, sps->vui.sar); in export_stream_params()
343 if (sps->vui.video_signal_type_present_flag) in export_stream_params()
344 avctx->color_range = sps->vui.video_full_range_flag ? AVCOL_RANGE_JPEG in export_stream_params()
349 if (sps->vui.colour_description_present_flag) { in export_stream_params()
350 avctx->color_primaries = sps->vui.colour_primaries; in export_stream_params()
351 avctx->color_trc = sps->vui.transfer_characteristic; in export_stream_params()
352 avctx->colorspace = sps->vui.matrix_coeffs; in export_stream_params()
361 if (sps->vui.chroma_loc_info_present_flag) { in export_stream_params()
362 if (sps->vui.chroma_sample_loc_type_top_field <= 5) in export_stream_params()
363 avctx->chroma_sample_location = sps->vui.chroma_sample_loc_type_top_field + 1; in export_stream_params()
[all …]
Dlibxavs.c299 x4->params.vui.i_sar_width = avctx->sample_aspect_ratio.num; in XAVS_init()
300 x4->params.vui.i_sar_height = avctx->sample_aspect_ratio.den; in XAVS_init()
Dhevc_ps.h178 VUI vui; member
Dcbs_h264.h154 H264RawVUI vui; member
Dhevc_sei.c143 if (sps->vui.frame_field_info_present_flag) { in decode_nal_sei_pic_timing()
/third_party/mesa3d/src/gallium/drivers/r600/
Dradeon_vce.h334 struct rvce_vui vui; member
378 void (*vui)(struct rvce_encoder *enc); member
/third_party/mesa3d/docs/relnotes/
D10.6.9.rst95 - radeon/vce: fix vui time_scale zero error
D11.0.3.rst99 - radeon/vce: fix vui time_scale zero error

12