[vlc-devel] How to obtain the screen and movie dimensions?
Kaarlo Räihä
kaarlo.raiha at gmail.com
Sun Apr 29 14:41:58 CEST 2012
2012/4/29 Peter Tap <ptrtap at yahoo.com>
> Hi Kaarlo,
>
> Thank you very much for your help.
>
> I tried it However, it appears, p_filter->fmt_in.video.i_width, i_height,
> etc., everything is 0.
>
> I am using version 2.0.1 of vlc.
>
> The category for my module is CAT_VIDEO and subcategory is
> SUBCAT_VIDEO_SUBPIC. Is it possible that this subcategory gets a dummy
> fmt_in object?
>
At least logo (
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/video_filter/logo.c)
does the same and p_filter->fmt_in.video.i_width seems to work inside
static int Mouse(...
>
> Regards,
> Peter
>
> ------------------------------
> *From:* Kaarlo Räihä <kaarlo.raiha at gmail.com>
>
> *To:* Mailing list for VLC media player developers <vlc-devel at videolan.org>
>
> *Sent:* Sunday, April 29, 2012 12:03 AM
> *Subject:* Re: [vlc-devel] How to obtain the screen and movie dimensions?
>
>
>
> 2012/4/28 Peter Tap <ptrtap at yahoo.com>
>
> Folks,
>
> In my video filter module, I need to obtain the screen width and height as
> well as the movie width and height (based on the selected aspect ratio). I
> am wondering if someone can guide me or point me in the right direction on
> how to obtain this information.
>
>
> You can find video_format_t definition in include\vlc_es.h, it contains
> width, height etc. You can access e.g. width
> via p_filter->fmt_in.video.i_width
>
>
>
> Thank you in advance for your help.
>
> Regards,
> Peter
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20120429/9dea3633/attachment.html>
More information about the vlc-devel
mailing list