Lines Matching refs:tmpl
217 const struct pipe_video_buffer *tmpl,
224 templ->width0 = tmpl->width;
225 templ->height0 = tmpl->height;
232 if (tmpl->chroma_format == PIPE_VIDEO_CHROMA_FORMAT_420) {
235 } else if (tmpl->chroma_format == PIPE_VIDEO_CHROMA_FORMAT_422) {
391 const struct pipe_video_buffer *tmpl)
398 assert(tmpl->width > 0 && tmpl->height > 0);
407 resource_formats = vl_video_buffer_formats(pipe->screen, tmpl->buffer_format);
411 templat = *tmpl;
412 templat.width = pot_buffers ? util_next_power_of_two(tmpl->width)
413 : align(tmpl->width, VL_MACROBLOCK_WIDTH);
414 templat.height = pot_buffers ? util_next_power_of_two(tmpl->height)
415 : align(tmpl->height, VL_MACROBLOCK_HEIGHT);
417 if (tmpl->interlaced)
423 tmpl->interlaced ? 2 : 1, PIPE_USAGE_STATIC
427 if (result && tmpl->interlaced)
435 const struct pipe_video_buffer *tmpl,
447 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[0], depth, usage, 0);
454 return vl_video_buffer_create_ex2(pipe, tmpl, resources);
457 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[1], depth, usage, 1);
463 return vl_video_buffer_create_ex2(pipe, tmpl, resources);
465 vl_vide_buffer_template(&res_tmpl, tmpl, resource_formats[2], depth, usage, 2);
470 return vl_video_buffer_create_ex2(pipe, tmpl, resources);
481 const struct pipe_video_buffer *tmpl,
489 buffer->base = *tmpl;