Home
last modified time | relevance | path

Searched refs:max_references (Results 1 – 23 of 23) sorted by relevance

/external/mesa3d/src/gallium/drivers/radeon/
Dradeon_uvd.c234 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h264_perf() local
270 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references); in calc_ctx_size_h264_perf()
271 ctx_size = max_references * align(width_in_mb * height_in_mb * 192, 256); in calc_ctx_size_h264_perf()
274 max_references = MAX2(NUM_H264_REFS, max_references); in calc_ctx_size_h264_perf()
276 ctx_size = align(width_in_mb * height_in_mb * max_references * 192, 256); in calc_ctx_size_h264_perf()
287 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main() local
290 max_references = MAX2(max_references, 8); in calc_ctx_size_h265_main()
292 max_references = MAX2(max_references, 17); in calc_ctx_size_h265_main()
296 return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024; in calc_ctx_size_h265_main()
309 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main10() local
[all …]
Dradeon_vcn_dec.c366 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main() local
369 max_references = MAX2(max_references, 8); in calc_ctx_size_h265_main()
371 max_references = MAX2(max_references, 17); in calc_ctx_size_h265_main()
375 return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024; in calc_ctx_size_h265_main()
389 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main10() local
392 max_references = MAX2(max_references, 8); in calc_ctx_size_h265_main10()
394 max_references = MAX2(max_references, 17); in calc_ctx_size_h265_main10()
406 cm_buffer_size = max_references * context_buffer_size_per_ctb_row * height_in_ctb; in calc_ctx_size_h265_main10()
871 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h264_perf() local
906 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references); in calc_ctx_size_h264_perf()
[all …]
Dradeon_vce_40_2_2.c162 RVCE_CS(MAX2(enc->base.max_references, 1) - 1); // encBPicPattern in pic_control()
164 RVCE_CS(MIN2(enc->base.max_references, 2)); // encNumberOfReferenceFrames in pic_control()
165 RVCE_CS(enc->base.max_references + 1); // encMaxNumRefFrames in pic_control()
Dradeon_vce_52.c89 enc->enc_pic.pc.enc_b_pic_pattern = MAX2(enc->base.max_references, 1) - 1; in get_pic_control_param()
90 enc->enc_pic.pc.enc_number_of_reference_frames = MIN2(enc->base.max_references, 2); in get_pic_control_param()
91 enc->enc_pic.pc.enc_max_num_ref_frames = enc->base.max_references + 1; in get_pic_control_param()
Dradeon_vcn_enc_1_2.c397 radeon_enc_code_ue(enc, (enc->base.max_references + 1)); in radeon_enc_nalu_sps()
435 radeon_enc_code_ue(enc, (enc->base.max_references + 1)); in radeon_enc_nalu_sps()
Dradeon_vce.c423 (templ->max_references == 1) && in si_vce_create_encoder()
/external/mesa3d/src/gallium/drivers/r600/
Dradeon_uvd.c236 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main() local
239 max_references = MAX2(max_references, 8); in calc_ctx_size_h265_main()
241 max_references = MAX2(max_references, 17); in calc_ctx_size_h265_main()
245 return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024; in calc_ctx_size_h265_main()
258 unsigned max_references = dec->base.max_references + 1; in calc_ctx_size_h265_main10() local
261 max_references = MAX2(max_references, 8); in calc_ctx_size_h265_main10()
263 max_references = MAX2(max_references, 17); in calc_ctx_size_h265_main10()
275 cm_buffer_size = max_references * context_buffer_size_per_ctb_row * height_in_ctb; in calc_ctx_size_h265_main10()
296 unsigned max_references = dec->base.max_references + 1; in calc_dpb_size() local
342 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references); in calc_dpb_size()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/
Dnvc0_video_vp.c97 if (dec->base.max_references > 2) in nvc0_decoder_vp()
98 codec_extra += 1 + (dec->base.max_references - 2); in nvc0_decoder_vp()
103 for (i = 0; i < dec->base.max_references; ++i) { in nvc0_decoder_vp()
140 uint64_t tmpimg_addr = dec->ref_bo->offset + dec->ref_stride * (dec->base.max_references+2); in nvc0_decoder_vp()
154 if (dec->base.max_references > 2) { in nvc0_decoder_vp()
157 BEGIN_NVC0(push, SUBC_VP(0x400), dec->base.max_references - 2); in nvc0_decoder_vp()
158 for (i = 2; i < dec->base.max_references; ++i) { in nvc0_decoder_vp()
Dnvc0_video.c221 assert(templ->max_references <= 2); in nvc0_create_decoder()
227 assert(templ->max_references <= 2); in nvc0_create_decoder()
233 assert(templ->max_references <= 2); in nvc0_create_decoder()
239 tmp_size = dec->tmp_stride * (templ->max_references + 1); in nvc0_create_decoder()
240 assert(templ->max_references <= 16); in nvc0_create_decoder()
268 dec->ref_stride * (templ->max_references+2) + tmp_size, in nvc0_create_decoder()
/external/mesa3d/src/gallium/drivers/nouveau/nv50/
Dnv98_video_vp.c97 if (dec->base.max_references > 2) in nv98_decoder_vp()
98 codec_extra += 1 + (dec->base.max_references - 2); in nv98_decoder_vp()
103 for (i = 0; i < dec->base.max_references; ++i) { in nv98_decoder_vp()
140 uint64_t tmpimg_addr = dec->ref_bo->offset + dec->ref_stride * (dec->base.max_references+2); in nv98_decoder_vp()
154 if (dec->base.max_references > 2) { in nv98_decoder_vp()
157 BEGIN_NV04(push, SUBC_VP(0x400), dec->base.max_references - 2); in nv98_decoder_vp()
158 for (i = 2; i < dec->base.max_references; ++i) { in nv98_decoder_vp()
Dnv98_video.c199 assert(templ->max_references <= 2); in nv98_create_decoder()
205 assert(templ->max_references <= 2); in nv98_create_decoder()
211 assert(templ->max_references <= 2); in nv98_create_decoder()
217 tmp_size = dec->tmp_stride * (templ->max_references + 1); in nv98_create_decoder()
218 assert(templ->max_references <= 16); in nv98_create_decoder()
244 dec->ref_stride * (templ->max_references+2) + tmp_size, in nv98_create_decoder()
Dnv84_video.c399 (templ->max_references + 1) * dec->frame_mbs * 0x40 + in nv84_create_decoder()
475 surf.height = (templ->max_references + 1) * dec->frame_mbs / 4; in nv84_create_decoder()
/external/mesa3d/src/gallium/state_trackers/va/
Dcontext.c250 context->templat.max_references = 2; in vlVaCreateContext()
254 context->templat.max_references = 0; in vlVaCreateContext()
271 context->templat.max_references = num_render_targets; in vlVaCreateContext()
Dpicture_h264.c115 context->templat.max_references = MIN2(context->desc.h264.num_ref_frames, 16); in vlVaHandlePictureParameterBufferH264()
117 for (i = 0; i < context->templat.max_references; ++i) { in vlVaHandlePictureParameterBufferH264()
Dpicture.c189 if (context->templat.max_references == 0 && in handlePictureParameterBuffer()
195 context->templat.height, &context->templat.max_references); in handlePictureParameterBuffer()
391 context->templat.max_references = h264->max_num_ref_frames; in handleVAEncSequenceParameterBufferType()
/external/mesa3d/src/gallium/include/pipe/
Dp_video_codec.h56 unsigned max_references; member
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_vp3_video_vp.c174 for (i = 0; i < dec->base.max_references; ++i) { in nouveau_vp3_handle_references()
198 for (i = 0; i < dec->base.max_references + 1; ++i) { in nouveau_vp3_handle_references()
208 assert(empty_spot < dec->base.max_references+1); in nouveau_vp3_handle_references()
390 assert(d->num_ref_frames <= dec->base.max_references); in nouveau_vp3_fill_picparm_h264_vp()
Dnouveau_vp3_video.h165 ret = dec->ref_stride * (dec->base.max_references+1); in nouveau_vp3_video_addr()
/external/mesa3d/src/gallium/state_trackers/vdpau/
Ddecode.c44 uint32_t max_references, in vlVdpDecoderCreate() argument
119 templat.max_references = max_references; in vlVdpDecoderCreate()
124 &templat.max_references); in vlVdpDecoderCreate()
/external/mesa3d/src/gallium/state_trackers/xvmc/
Dcontext.c255 templat.max_references = 2; in XvMCCreateContext()
/external/mesa3d/src/gallium/state_trackers/omx_bellagio/
Dvid_dec_mpeg12.c75 templat.max_references = 2; in vid_dec_mpeg12_Init()
Dvid_enc.c701 templat.max_references = 1; in vid_enc_MessageHandler()
708 templat.max_references = OMX_VID_ENC_P_PERIOD_DEFAULT; in vid_enc_MessageHandler()
Dvid_dec_h264.c116 templat.max_references = priv->picture.h264.num_ref_frames; in vid_dec_h264_BeginFrame()