[vlc-devel] [PATCH] vmem: client should get display resolution too

Rémi Denis-Courmont remi at remlab.net
Fri Apr 26 06:35:46 CEST 2019


Hi,

IMO, it needs to mention  that that's only available from v4.0

Le 26 avril 2019 06:22:32 GMT+03:00, sergey radionov <rsatom at gmail.com> a écrit :
>Is it OK write something like this?
>
>* \param width pointer to the buffer width in pixels[IN/OUT], (width+1)
>-
>pointer to display width in pixels[IN]
>* \param height pointer to the buffer height in pixels[IN/OUT],
>(height+1)
>-  pointer to display height in pixels[IN]
>
>
>чт, 25 апр. 2019 г. в 22:44, Rémi Denis-Courmont <remi at remlab.net>:
>
>> Le torstaina 25. huhtikuuta 2019, 18.37.54 EEST sergey radionov a
>écrit :
>> > to be able display frames correctly
>>
>> Please update the Doxygen.
>>
>> > ---
>> >  modules/video_output/vmem.c | 11 ++++++++++-
>> >  1 file changed, 10 insertions(+), 1 deletion(-)
>> >
>> > diff --git a/modules/video_output/vmem.c
>b/modules/video_output/vmem.c
>> > index 87ea3244f4..ee5e544656 100644
>> > --- a/modules/video_output/vmem.c
>> > +++ b/modules/video_output/vmem.c
>> > @@ -144,13 +144,22 @@ static int Open(vout_display_t *vd, const
>> > vout_display_cfg_t *cfg, memset(sys->pitches, 0,
>sizeof(sys->pitches));
>> >          memset(sys->lines, 0, sizeof(sys->lines));
>> >
>> > -        if (setup(&sys->opaque, chroma, &fmt.i_width,
>&fmt.i_height,
>> > +        unsigned widths[2], heights[2];
>> > +        widths[0] = fmt.i_width;
>> > +        widths[1] = fmt.i_visible_width;
>> > +
>> > +        heights[0] = fmt.i_height;
>> > +        heights[1] = fmt.i_visible_height;
>> > +
>> > +        if (setup(&sys->opaque, chroma, widths, heights,
>> >                             sys->pitches, sys->lines) == 0) {
>> >              msg_Err(vd, "video format setup failure (no
>pictures)");
>> >              free(sys);
>> >              return VLC_EGENERIC;
>> >          }
>> >          fmt.i_chroma = vlc_fourcc_GetCodecFromString(VIDEO_ES,
>chroma);
>> > +        fmt.i_width = widths[0];
>> > +        fmt.i_height = heights[0];
>> >
>> >      } else {
>> >          char *chroma = var_InheritString(vd, "vmem-chroma");
>>
>>
>> --
>> 雷米‧德尼-库尔蒙
>> http://www.remlab.net/
>>
>>
>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel

-- 
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190426/3a87f500/attachment.html>


More information about the vlc-devel mailing list