Lines Matching refs:max_references
234 unsigned max_references = dec->base.max_references + 1;
270 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references);
271 ctx_size = max_references * align(width_in_mb * height_in_mb * 192, 256);
274 max_references = MAX2(NUM_H264_REFS, max_references);
276 ctx_size = align(width_in_mb * height_in_mb * max_references * 192, 256);
287 unsigned max_references = dec->base.max_references + 1;
290 max_references = MAX2(max_references, 8);
292 max_references = MAX2(max_references, 17);
296 return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024;
309 unsigned max_references = dec->base.max_references + 1;
312 max_references = MAX2(max_references, 8);
314 max_references = MAX2(max_references, 17);
326 cm_buffer_size = max_references * context_buffer_size_per_ctb_row * height_in_ctb;
350 unsigned max_references = dec->base.max_references + 1;
396 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references);
397 dpb_size = image_size * max_references;
400 dpb_size += max_references * align(width_in_mb * height_in_mb * 192, alignment);
405 max_references = MAX2(NUM_H264_REFS, max_references);
407 dpb_size = image_size * max_references;
411 dpb_size += width_in_mb * height_in_mb * max_references * 192;
421 max_references = MAX2(max_references, 8);
423 max_references = MAX2(max_references, 17);
428 dpb_size = align((align(width, get_db_pitch_alignment(dec)) * height * 9) / 4, 256) * max_references;
430 dpb_size = align((align(width, get_db_pitch_alignment(dec)) * height * 3) / 2, 256) * max_references;
435 max_references = MAX2(NUM_VC1_REFS, max_references);
438 dpb_size = image_size * max_references;
460 dpb_size = image_size * max_references;