Lines Matching refs:max_references
236 unsigned max_references = dec->base.max_references + 1;
239 max_references = MAX2(max_references, 8);
241 max_references = MAX2(max_references, 17);
245 return ((width + 255) / 16) * ((height + 255) / 16) * 16 * max_references + 52 * 1024;
258 unsigned max_references = dec->base.max_references + 1;
261 max_references = MAX2(max_references, 8);
263 max_references = MAX2(max_references, 17);
275 cm_buffer_size = max_references * context_buffer_size_per_ctb_row * height_in_ctb;
296 unsigned max_references = dec->base.max_references + 1;
342 max_references = MAX2(MIN2(NUM_H264_REFS, num_dpb_buffer), max_references);
343 dpb_size = image_size * max_references;
345 dpb_size += max_references * align(width_in_mb * height_in_mb * 192, alignment);
350 max_references = MAX2(NUM_H264_REFS, max_references);
352 dpb_size = image_size * max_references;
355 dpb_size += width_in_mb * height_in_mb * max_references * 192;
365 max_references = MAX2(max_references, 8);
367 max_references = MAX2(max_references, 17);
372 dpb_size = align((align(width, get_db_pitch_alignment(dec)) * height * 9) / 4, 256) * max_references;
374 dpb_size = align((align(width, get_db_pitch_alignment(dec)) * height * 3) / 2, 256) * max_references;
379 max_references = MAX2(NUM_VC1_REFS, max_references);
382 dpb_size = image_size * max_references;
404 dpb_size = image_size * max_references;