Quoting "Andrew Skiba" :
> Hello!
> I'm trying to use IDirectFBVideoProvider over vesafb. An mpeg1 video, that I can get 
> from my camcorder, seems to have YUV channels, so it's impossible to Blit the video 
> surface to the primary surface, which is RGB. When I try, nothing gets copied, and I 
> have the following on my console:
> *** [only copying blits supported for YUV in software] *** generic.c (3137)

Hi, as the message says, conversion from YUV to RGB is not supported by
the software driver.

> The corresponding code in generic.c is:
> 
>      if (DFB_BLITTING_FUNCTION( accel )) {
>           switch (gfxs->src_format) {
>                case DSPF_YUY2:
>                case DSPF_UYVY:
>                case DSPF_I420:
>                case DSPF_YV12:
>                     if (accel != DFXL_BLIT ||
>                         gfxs->src_format != gfxs->dst_format ||
>                         state->blittingflags != DSBLIT_NOFX) {
>                          ONCE("only copying blits supported for YUV in software");
>                          return false;
> 
> BTW, I can hear the sound, so it seems, that video is played somewhere on my video 
> surface :-)
> In my case, I can convert video to any format, for the purpose of a demonstration, 
> but it seems that IDirectFBVideoProvider supports only mpeg videos, which are YUV. 
> So I need to make any of the following:
> 1. Play video on RGB surface.

Did you try PlayTo() with an RGB surface as the destination?

> 2. Copy from YUV surface to RGB surface.

Blit() from YUV to RGB is only supported by the Matrox driver, yet.

> 3. Find/make a video which is recognized by video provider AND can be played on RGB 
> surface, or has surface descriptor which allows to copy to RGB surface.

You may add YUV to RGB conversion to your application,
but it should be implemented in the software driver some day.

-- 
Best regards,
  Denis Oliver Kropp

.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

                            Convergence GmbH


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to