[Mesa-dev] [PATCH 7/8] st/va: add NV12 -> NV12 post processing
Emil Velikov
emil.l.velikov at gmail.com
Tue Dec 15 02:16:46 PST 2015
On 11 December 2015 at 12:33, Christian König <deathsimple at vodafone.de> wrote:
> +static void vlVaBoxAdjust(struct pipe_video_buffer *buf, unsigned idx,
> + struct pipe_box *box)
> +{
> + if (buf->interlaced) {
> + box->y /= 2;
> + box->height /= 2;
> + }
> + if (idx > buf->interlaced) {
> + /* we assume chroma format 420 here */
> + box->x /= 2;
> + box->y /= 2;
> + box->width /= 2;
> + box->height /= 2;
> + }
> +}
> +
Can we get a vl (inline) utility function for this ? We already have
it in vdpau, xvmc, omx and even va.
Thanks
Emil
More information about the mesa-dev
mailing list