Skip to content

YUV to RGB conversion broken for odd widths #445

Description

@SDLBugzilla

This bug report was migrated from our old Bugzilla tracker.

Reported in version: HG 1.2
Reported for operating system, platform: Linux, x86

Comments on the original bug report:

On 2008-12-08 23:09:01 +0000, Daniel Verkamp wrote:

Example of this problem is ffplay from FFmpeg:

Input to ffplay is bitmap at http://samples.mplayerhq.hu/bmp-files/test32bf.bmp (width = 127); ffplay internally converts to YUV and displays it (incorrectly) as http://drv.nu/stuff/ffplay-test32bf.png

Looks like one of the channels is misaligned.

Other ffmpeg tools and mplayer -vf format=bgr32 -vo sdl can convert or display this file correctly, so it seems to be a problem with SDL_DisplayYUVOverlay.

The ffplay source is available in FFmpeg SVN as ffplay.c

See also relevant FFmpeg bug http://roundup.mplayerhq.hu/roundup/ffmpeg/issue731

Tested with Gentoo amd64 media-libs/libsdl-1.2.13

On 2009-09-13 16:33:07 +0000, Ryan C. Gordon wrote:

Tagging this bug with "target-1.2.14" so we can try to resolve it for SDL 1.2.14.

Please note that we may choose to resolve it as WONTFIX. This tag is largely so we have a comprehensive wishlist of bugs to examine for 1.2.14 (and so we can close bugs that we'll never fix, rather than have them live forever in Bugzilla).

--ryan.

On 2009-09-27 15:04:50 +0000, Sam Lantinga wrote:

SDL 1.2 YUV code only supports even width and height. You're welcome to submit a patch for SDL 1.3 however.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions