Lines Matching refs:pic_param

127     VAEncPictureParameterBufferMPEG2 pic_param;  member
330 const VAEncPictureParameterBufferMPEG2 *pic_param, in pps_rbsp() argument
336 chroma_420_type = pic_param->picture_coding_extension.bits.progressive_frame; in pps_rbsp()
341 bitstream_put_ui(bs, pic_param->temporal_reference, 10); in pps_rbsp()
343 pic_param->picture_type == VAEncPictureTypeIntra ? 1 : in pps_rbsp()
344 pic_param->picture_type == VAEncPictureTypePredictive ? 2 : 3, in pps_rbsp()
348 if (pic_param->picture_type == VAEncPictureTypePredictive || in pps_rbsp()
349 pic_param->picture_type == VAEncPictureTypeBidirectional) { in pps_rbsp()
354 if (pic_param->picture_type == VAEncPictureTypeBidirectional) { in pps_rbsp()
365 bitstream_put_ui(bs, pic_param->f_code[0][0], 4); in pps_rbsp()
366 bitstream_put_ui(bs, pic_param->f_code[0][1], 4); in pps_rbsp()
367 bitstream_put_ui(bs, pic_param->f_code[1][0], 4); in pps_rbsp()
368 bitstream_put_ui(bs, pic_param->f_code[1][1], 4); in pps_rbsp()
370 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.intra_dc_precision, 2); in pps_rbsp()
371 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.picture_structure, 2); in pps_rbsp()
372 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.top_field_first, 1); in pps_rbsp()
373 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.frame_pred_frame_dct, 1); in pps_rbsp()
374 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.concealment_motion_vectors, 1); in pps_rbsp()
375 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.q_scale_type, 1); in pps_rbsp()
376 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.intra_vlc_format, 1); in pps_rbsp()
377 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.alternate_scan, 1); in pps_rbsp()
378 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.repeat_first_field, 1); in pps_rbsp()
380 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.progressive_frame, 1); in pps_rbsp()
381 bitstream_put_ui(bs, pic_param->picture_coding_extension.bits.composite_display_flag, 1); in pps_rbsp()
388 const VAEncPictureParameterBufferMPEG2 *pic_param, in build_packed_pic_buffer() argument
394 pps_rbsp(seq_param, pic_param, &bs); in build_packed_pic_buffer()
790 VAEncPictureParameterBufferMPEG2 *pic_param) in mpeg2enc_init_picture_parameter() argument
792 pic_param->forward_reference_picture = VA_INVALID_ID; in mpeg2enc_init_picture_parameter()
793 pic_param->backward_reference_picture = VA_INVALID_ID; in mpeg2enc_init_picture_parameter()
794 pic_param->reconstructed_picture = VA_INVALID_ID; in mpeg2enc_init_picture_parameter()
795 pic_param->coded_buf = VA_INVALID_ID; in mpeg2enc_init_picture_parameter()
796 pic_param->picture_type = VAEncPictureTypeIntra; in mpeg2enc_init_picture_parameter()
798 pic_param->temporal_reference = 0; in mpeg2enc_init_picture_parameter()
799 pic_param->f_code[0][0] = 0xf; in mpeg2enc_init_picture_parameter()
800 pic_param->f_code[0][1] = 0xf; in mpeg2enc_init_picture_parameter()
801 pic_param->f_code[1][0] = 0xf; in mpeg2enc_init_picture_parameter()
802 pic_param->f_code[1][1] = 0xf; in mpeg2enc_init_picture_parameter()
804 pic_param->picture_coding_extension.bits.intra_dc_precision = 0; /* 8bits */ in mpeg2enc_init_picture_parameter()
805 pic_param->picture_coding_extension.bits.picture_structure = 3; /* frame picture */ in mpeg2enc_init_picture_parameter()
806 pic_param->picture_coding_extension.bits.top_field_first = 0; in mpeg2enc_init_picture_parameter()
807 pic_param->picture_coding_extension.bits.frame_pred_frame_dct = 1; /* FIXME */ in mpeg2enc_init_picture_parameter()
808 pic_param->picture_coding_extension.bits.concealment_motion_vectors = 0; in mpeg2enc_init_picture_parameter()
809 pic_param->picture_coding_extension.bits.q_scale_type = 0; in mpeg2enc_init_picture_parameter()
810 pic_param->picture_coding_extension.bits.intra_vlc_format = 0; in mpeg2enc_init_picture_parameter()
811 pic_param->picture_coding_extension.bits.alternate_scan = 0; in mpeg2enc_init_picture_parameter()
812 pic_param->picture_coding_extension.bits.repeat_first_field = 0; in mpeg2enc_init_picture_parameter()
813 pic_param->picture_coding_extension.bits.progressive_frame = 1; in mpeg2enc_init_picture_parameter()
814 pic_param->picture_coding_extension.bits.composite_display_flag = 0; in mpeg2enc_init_picture_parameter()
946 mpeg2enc_init_picture_parameter(ctx, &ctx->pic_param); in mpeg2enc_init()
1014 VAEncPictureParameterBufferMPEG2 *pic_param = &ctx->pic_param; in mpeg2enc_update_picture_parameter() local
1017 pic_param->picture_type = picture_type; in mpeg2enc_update_picture_parameter()
1018 pic_param->temporal_reference = (display_order - ctx->gop_header_in_display_order) & 0x3FF; in mpeg2enc_update_picture_parameter()
1019 pic_param->reconstructed_picture = surface_ids[SID_RECON_PICTURE]; in mpeg2enc_update_picture_parameter()
1020 pic_param->forward_reference_picture = surface_ids[SID_REFERENCE_PICTURE_L0]; in mpeg2enc_update_picture_parameter()
1021 pic_param->backward_reference_picture = surface_ids[SID_REFERENCE_PICTURE_L1]; in mpeg2enc_update_picture_parameter()
1025 if (pic_param->picture_type != VAEncPictureTypeIntra) { in mpeg2enc_update_picture_parameter()
1038 if (pic_param->picture_type == VAEncPictureTypeIntra) { in mpeg2enc_update_picture_parameter()
1039 pic_param->f_code[0][0] = 0xf; in mpeg2enc_update_picture_parameter()
1040 pic_param->f_code[0][1] = 0xf; in mpeg2enc_update_picture_parameter()
1041 pic_param->f_code[1][0] = 0xf; in mpeg2enc_update_picture_parameter()
1042 pic_param->f_code[1][1] = 0xf; in mpeg2enc_update_picture_parameter()
1043 pic_param->forward_reference_picture = VA_INVALID_SURFACE; in mpeg2enc_update_picture_parameter()
1044 pic_param->backward_reference_picture = VA_INVALID_SURFACE; in mpeg2enc_update_picture_parameter()
1046 } else if (pic_param->picture_type == VAEncPictureTypePredictive) { in mpeg2enc_update_picture_parameter()
1047 pic_param->f_code[0][0] = f_code_x; in mpeg2enc_update_picture_parameter()
1048 pic_param->f_code[0][1] = f_code_y; in mpeg2enc_update_picture_parameter()
1049 pic_param->f_code[1][0] = 0xf; in mpeg2enc_update_picture_parameter()
1050 pic_param->f_code[1][1] = 0xf; in mpeg2enc_update_picture_parameter()
1051 pic_param->forward_reference_picture = surface_ids[SID_REFERENCE_PICTURE_L0]; in mpeg2enc_update_picture_parameter()
1052 pic_param->backward_reference_picture = VA_INVALID_SURFACE; in mpeg2enc_update_picture_parameter()
1053 } else if (pic_param->picture_type == VAEncPictureTypeBidirectional) { in mpeg2enc_update_picture_parameter()
1054 pic_param->f_code[0][0] = f_code_x; in mpeg2enc_update_picture_parameter()
1055 pic_param->f_code[0][1] = f_code_y; in mpeg2enc_update_picture_parameter()
1056 pic_param->f_code[1][0] = f_code_x; in mpeg2enc_update_picture_parameter()
1057 pic_param->f_code[1][1] = f_code_y; in mpeg2enc_update_picture_parameter()
1058 pic_param->forward_reference_picture = surface_ids[SID_REFERENCE_PICTURE_L0]; in mpeg2enc_update_picture_parameter()
1059 pic_param->backward_reference_picture = surface_ids[SID_REFERENCE_PICTURE_L1]; in mpeg2enc_update_picture_parameter()
1071 VAEncPictureParameterBufferMPEG2 *pic_param = &ctx->pic_param; in mpeg2enc_update_picture_parameter_buffer() local
1075 pic_param->coded_buf = ctx->codedbuf_buf_id; in mpeg2enc_update_picture_parameter_buffer()
1079 sizeof(*pic_param), in mpeg2enc_update_picture_parameter_buffer()
1081 pic_param, in mpeg2enc_update_picture_parameter_buffer()
1090 VAEncPictureParameterBufferMPEG2 *pic_param; in mpeg2enc_update_slice_parameter() local
1095 pic_param = &ctx->pic_param; in mpeg2enc_update_slice_parameter()
1096 assert(pic_param->picture_coding_extension.bits.q_scale_type == 0); in mpeg2enc_update_slice_parameter()
1171 length_in_bits = build_packed_pic_buffer(&ctx->seq_param, &ctx->pic_param, &packed_pic_buffer); in begin_picture()