[1/6] wined3d: YUV formats are block-based

Henri Verbeet hverbeet at gmail.com
Thu Oct 13 07:39:38 CDT 2011


On 13 October 2011 01:07, Stefan Dösinger <stefan at codeweavers.com> wrote:
> diff --git a/dlls/d3d9/tests/surface.c b/dlls/d3d9/tests/surface.c
> diff --git a/dlls/ddraw/tests/overlay.c b/dlls/ddraw/tests/overlay.c
These tests don't prove anything,  they pass on current Wine as well.

> +    {WINED3DFMT_YUY2,   2,  1,  4, FALSE    },
> +    {WINED3DFMT_UYVY,   2,  1,  4, FALSE    },
> +    /* YV12 actually has 2x2 blocks with 6 bytes per block, but the blocks
> +     * are spread across the surface. */
> +    {WINED3DFMT_YV12,   1,  1,  1, FALSE},
Blocks with 1 height aren't really blocks.



More information about the wine-devel mailing list