Lines Matching refs:vui

63     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()
236 vui->signal_type_present = 1; in h264e_sps_update()
237 vui->color_description_present = 1; in h264e_sps_update()
238 vui->colorprim = prep->colorprim; in h264e_sps_update()
239 vui->colortrc = prep->colortrc; in h264e_sps_update()
240 vui->colmatrix = prep->color; in h264e_sps_update()
243 vui->bitstream_restriction = 1; in h264e_sps_update()
244 vui->motion_vectors_over_pic_boundaries = 1; in h264e_sps_update()
246 vui->log2_max_mv_length_horizontal = 15; in h264e_sps_update()
247 vui->log2_max_mv_length_vertical = 15; in h264e_sps_update()
248 vui->max_dec_frame_buffering = info->dpb_size; in h264e_sps_update()
355 mpp_writer_put_bits(bit, sps->vui.vui_en, 1); in h264e_sps_to_packet()
356 if (sps->vui.vui_en) { in h264e_sps_to_packet()
357 H264eVui *vui = &sps->vui; in h264e_sps_to_packet() local
360 mpp_writer_put_bits(bit, vui->aspect_ratio_info_present, 1); in h264e_sps_to_packet()
361 if (vui->aspect_ratio_info_present) { in h264e_sps_to_packet()
363 mpp_writer_put_bits(bit, vui->aspect_ratio_idc, 8); in h264e_sps_to_packet()
364 if (H264_EXTENDED_SAR == vui->aspect_ratio_idc) { in h264e_sps_to_packet()
366 mpp_writer_put_bits(bit, vui->sar_width, 16); in h264e_sps_to_packet()
368 mpp_writer_put_bits(bit, vui->sar_height, 16); in h264e_sps_to_packet()
373 mpp_writer_put_bits(bit, vui->overscan_info_present, 1); in h264e_sps_to_packet()
374 if (vui->overscan_info_present) { in h264e_sps_to_packet()
376 mpp_writer_put_bits(bit, vui->overscan_appropriate_flag, 1); in h264e_sps_to_packet()
380 mpp_writer_put_bits(bit, vui->signal_type_present, 1); in h264e_sps_to_packet()
381 if (vui->signal_type_present) { in h264e_sps_to_packet()
383 mpp_writer_put_bits(bit, vui->vidformat, 3); in h264e_sps_to_packet()
385 mpp_writer_put_bits(bit, vui->fullrange, 1); in h264e_sps_to_packet()
387 mpp_writer_put_bits(bit, vui->color_description_present, 1); in h264e_sps_to_packet()
388 if (vui->color_description_present) { in h264e_sps_to_packet()
390 mpp_writer_put_bits(bit, vui->colorprim, 8); in h264e_sps_to_packet()
392 mpp_writer_put_bits(bit, vui->colortrc, 8); in h264e_sps_to_packet()
394 mpp_writer_put_bits(bit, vui->colmatrix, 8); in h264e_sps_to_packet()
399 mpp_writer_put_bits(bit, vui->chroma_loc_info_present, 1); in h264e_sps_to_packet()
400 if (vui->chroma_loc_info_present) { in h264e_sps_to_packet()
402 mpp_writer_put_ue(bit, vui->chroma_loc_top); in h264e_sps_to_packet()
404 mpp_writer_put_ue(bit, vui->chroma_loc_bottom); in h264e_sps_to_packet()
408 mpp_writer_put_bits(bit, vui->timing_info_present, 1); in h264e_sps_to_packet()
409 if (vui->timing_info_present) { in h264e_sps_to_packet()
411 mpp_writer_put_bits(bit, vui->num_units_in_tick >> 16, 16); in h264e_sps_to_packet()
413 mpp_writer_put_bits(bit, vui->num_units_in_tick & 0xffff, 16); in h264e_sps_to_packet()
415 mpp_writer_put_bits(bit, vui->time_scale >> 16, 16); in h264e_sps_to_packet()
417 mpp_writer_put_bits(bit, vui->time_scale & 0xffff, 16); in h264e_sps_to_packet()
419 mpp_writer_put_bits(bit, vui->fixed_frame_rate, 1); in h264e_sps_to_packet()
423 mpp_writer_put_bits(bit, vui->nal_hrd_parameters_present, 1); in h264e_sps_to_packet()
425 mpp_writer_put_bits(bit, vui->vcl_hrd_parameters_present, 1); in h264e_sps_to_packet()
427 mpp_writer_put_bits(bit, vui->pic_struct_present, 1); in h264e_sps_to_packet()
430 mpp_writer_put_bits(bit, vui->bitstream_restriction, 1); in h264e_sps_to_packet()
431 if (vui->bitstream_restriction) { in h264e_sps_to_packet()
433 mpp_writer_put_bits(bit, vui->motion_vectors_over_pic_boundaries, 1); in h264e_sps_to_packet()
435 mpp_writer_put_ue(bit, vui->max_bytes_per_pic_denom); in h264e_sps_to_packet()
437 mpp_writer_put_ue(bit, vui->max_bits_per_mb_denom); in h264e_sps_to_packet()
439 mpp_writer_put_ue(bit, vui->log2_max_mv_length_horizontal); in h264e_sps_to_packet()
441 mpp_writer_put_ue(bit, vui->log2_max_mv_length_vertical); in h264e_sps_to_packet()
443 mpp_writer_put_ue(bit, vui->num_reorder_frames); in h264e_sps_to_packet()
445 mpp_writer_put_ue(bit, vui->max_dec_frame_buffering); in h264e_sps_to_packet()