[Bug 795235] xvimagesink fails: unexpected XShm image size

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Tue Apr 17 19:21:21 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=795235

--- Comment #3 from David Woodhouse <dwmw2 at infradead.org> ---
The conflicting information ultimately, in my two test cases, comes from
intel_video_query_image_attributes():

https://cgit.freedesktop.org/xorg/driver/xf86-video-intel/tree/src/uxa/intel_video.c#n769

    case FOURCC_YV12:
    case FOURCC_I420:
        *h = (*h + 1) & ~1;
        size = (*w + 3) & ~3;
        if (pitches)
            pitches[0] = size;
        size *= *h;
        if (offsets)
            offsets[1] = size;
        tmp = ((*w >> 1) + 3) & ~3;
        if (pitches)
            pitches[1] = pitches[2] = tmp;
        tmp *= (*h >> 1);
        size += tmp;
        if (offsets)
            offsets[2] = size;
        size += tmp;

FWIW if I bypass the sanity check and force it to display anyway, it looks
wrong. I think that the xorg-video-intel driver does have it right. Even though
452 is less than half of 905.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list