Quoting Zhao Junping:
>    So I want to scale the video to a surface with specified size(like
>    500x400)
>    I test a demo code, like:
>    1.dfb->CreateVideoProvider(dfb,"/1.mpg",&videoprovider);
>    2.Set the value of  WindowDescription (desc);
>    3.layer->CreateWindow(layer,&desc,&videowindow);
>    4.videowindow->GetSurface(videowindow,&videosurface);
>    5.videoprovider->PlayTo(videoprovider,videosurface,NULL,NULL,NULL);
>    If give the the rectangle parameter (with different values from the
>    video's size) to the PlayTo function,
>    there's a running error

If the video provider doesn't support scaling you can play to a
temporary surface and use StretchBlit().

-- 
Best regards,
  Denis Oliver Kropp
 
.------------------------------------------.
| DirectFB - Hardware accelerated graphics |
| http://www.directfb.org/                 |
"------------------------------------------"

_______________________________________________
directfb-users mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

Reply via email to