[vlc-devel] libvlc_video_resize
ChengYQ
crashboat at hotmail.com
Thu Aug 23 22:40:10 CEST 2007
Hi,
Basically, I want to realize the video zoom function in my application using vlclib.
However the libvlc_video_resize function does not work, and exit when I use this function(libary loading is OK), and when I try to use libvlc_video_get_width, the result is always 0.
One more query is that the libvlc.h has many type: libvlc_input_t as input parameters, i.e. libvlc_video_resize function. But when I check the Doxygen websites, the inpurt parameter is libvlc_media_instance. why this two function is different? are both difinition for libvlc?
here is my testing code, please give me some help, thanks a lot!
libvlc_exception_t excp; libvlc_instance_t *inst; int item; char *myarg0 = "-I"; char *myarg1 = "dummy"; char *myarg2 = "--plugin-path=D:test\\plugins"; char *myargs[4] = {myarg0, myarg1, myarg2, NULL}; char *filename = "d:\\MOV02225.MPG";
libvlc_exception_init (&excp); inst = libvlc_new (3, myargs, &excp); quit_on_exception (&excp); item = libvlc_playlist_add (inst, filename, NULL, &excp); quit_on_exception (&excp); libvlc_playlist_play (inst, item, 0, NULL, &excp); Sleep(2000);
int w = libvlc_video_get_width(lit,&excp);//w is always 0.
libvlc_video_resize(lit,100,100,&excp);
Sleep (3000); libvlc_destroy (inst); return 0;
_________________________________________________________________
中国十大热门旅游景点
http://search.msn.com/results.aspx?q=%E4%B8%AD%E5%9B%BD%E5%8D%81%E5%A4%A7%E9%A3%8E%E6%99%AF&mkt=zh-CN&form=QBRE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20070823/56bf9352/attachment.html>
-------------- next part --------------
_______________________________________________
vlc-devel mailing list
To unsubscribe or modify your subscription options:
http://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list