[vlc-devel] libvlc_video_set_format_callbacks() and "cyuv" chroma

Jérôme FORISSIER jerome at taodyne.com
Thu Mar 8 16:37:03 CET 2012


Hello,

I'm having a problem with the setup callback of libvlc_video_set_format_callbacks().
When I set *chroma to "cyuv" (input is I420)., I get no picture and the logs show :
i420_yuy2_sse2 filter warning: can't get output picture

Here is the callback code:

    pitches[0] = pitches[1] = pitches[2] = *width * 2;
    lines  [0] = lines  [1] = lines  [2] = *height;
    strcpy(chroma, "cyuv");  // "UYVY" here works fine
    return 1;

This is on MacOSX, VLC 2.0.0-250-g23b55ad (intel 64bit). My intent is to create a GL texture from the vmem out with format  = GL_YCBCR_422_APPLE to reduce the CPU overhead caused by multiple colorspace conversions in my current code.

Any idea what might be going wrong?

Thanks,

-- 
Jérôme




More information about the vlc-devel mailing list