Lines Matching refs:h264
389 VAEncSequenceParameterBufferH264 *h264 = (VAEncSequenceParameterBufferH264 *)buf->data; in handleVAEncSequenceParameterBufferType() local
391 context->templat.max_references = h264->max_num_ref_frames; in handleVAEncSequenceParameterBufferType()
392 context->templat.level = h264->level_idc; in handleVAEncSequenceParameterBufferType()
398 context->gop_coeff = ((1024 + h264->intra_idr_period - 1) / h264->intra_idr_period + 1) / 2 * 2; in handleVAEncSequenceParameterBufferType()
401 context->desc.h264enc.gop_size = h264->intra_idr_period * context->gop_coeff; in handleVAEncSequenceParameterBufferType()
402 context->desc.h264enc.rate_ctrl.frame_rate_num = h264->time_scale / 2; in handleVAEncSequenceParameterBufferType()
403 context->desc.h264enc.rate_ctrl.frame_rate_den = h264->num_units_in_tick; in handleVAEncSequenceParameterBufferType()
404 context->desc.h264enc.pic_order_cnt_type = h264->seq_fields.bits.pic_order_cnt_type; in handleVAEncSequenceParameterBufferType()
434 VAEncPictureParameterBufferH264 *h264; in handleVAEncPictureParameterBufferType() local
437 h264 = buf->data; in handleVAEncPictureParameterBufferType()
438 context->desc.h264enc.frame_num = h264->frame_num; in handleVAEncPictureParameterBufferType()
440 context->desc.h264enc.pic_order_cnt = h264->CurrPic.TopFieldOrderCnt; in handleVAEncPictureParameterBufferType()
448 coded_buf = handle_table_get(drv->htab, h264->coded_buf); in handleVAEncPictureParameterBufferType()
455 UINT_TO_PTR(h264->CurrPic.picture_id), in handleVAEncPictureParameterBufferType()
456 UINT_TO_PTR(h264->frame_num)); in handleVAEncPictureParameterBufferType()
458 if (h264->pic_fields.bits.idr_pic_flag == 1) in handleVAEncPictureParameterBufferType()
463 context->desc.h264enc.quant_i_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
464 context->desc.h264enc.quant_b_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
465 context->desc.h264enc.quant_p_frames = h264->pic_init_qp; in handleVAEncPictureParameterBufferType()
476 VAEncSliceParameterBufferH264 *h264; in handleVAEncSliceParameterBufferType() local
478 h264 = buf->data; in handleVAEncSliceParameterBufferType()
483 if (h264->RefPicList0[i].picture_id != VA_INVALID_ID) { in handleVAEncSliceParameterBufferType()
486 UINT_TO_PTR(h264->RefPicList0[i].picture_id))); in handleVAEncSliceParameterBufferType()
488 if (h264->RefPicList1[i].picture_id != VA_INVALID_ID && h264->slice_type == 1) { in handleVAEncSliceParameterBufferType()
491 UINT_TO_PTR(h264->RefPicList1[i].picture_id))); in handleVAEncSliceParameterBufferType()
495 if (h264->slice_type == 1) in handleVAEncSliceParameterBufferType()
497 else if (h264->slice_type == 0) in handleVAEncSliceParameterBufferType()
499 else if (h264->slice_type == 2) { in handleVAEncSliceParameterBufferType()