[vlc-devel] [PATCH] avcodec: pass the VR pose information through the decoder

Steve Lhomme robux4 at gmail.com
Tue Nov 22 17:47:47 CET 2016


+1 and it's coming.

On Tue, Nov 22, 2016 at 4:50 PM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
>
>
> On Tue, 22 Nov 2016, at 16:48, Thomas Guillem wrote:
>> On Tue, Nov 22, 2016, at 16:11, RĂ©mi Denis-Courmont wrote:
>> > On November 22, 2016 4:15:50 PM GMT+02:00, Steve Lhomme
>> > <robux4 at videolabs.io> wrote:
>> > >---
>> > > modules/codec/avcodec/video.c | 4 ++++
>> > > 1 file changed, 4 insertions(+)
>> > >
>> > >diff --git a/modules/codec/avcodec/video.c
>> > >b/modules/codec/avcodec/video.c
>> > >index 19442d4..9f9c44a 100644
>> > >--- a/modules/codec/avcodec/video.c
>> > >+++ b/modules/codec/avcodec/video.c
>> > >@@ -291,6 +291,10 @@ static int lavc_UpdateVideoFormat(decoder_t *dec,
>> > >AVCodecContext *ctx,
>> > >     dec->fmt_out.video = fmt_out;
>> > >     dec->fmt_out.video.orientation = dec->fmt_in.video.orientation;
>> > >dec->fmt_out.video.projection_mode = dec->fmt_in.video.projection_mode;
>> > >+    dec->fmt_out.video.f_pose_fov_degrees   =
>> > >dec->fmt_in.video.f_pose_fov_degrees;
>> > >+    dec->fmt_out.video.f_pose_yaw_degrees   =
>> > >dec->fmt_in.video.f_pose_yaw_degrees;
>> > >+    dec->fmt_out.video.f_pose_pitch_degrees =
>> > >dec->fmt_in.video.f_pose_pitch_degrees;
>> > >+    dec->fmt_out.video.f_pose_roll_degrees  =
>> > >dec->fmt_in.video.f_pose_roll_degrees;
>> > >     return decoder_UpdateVideoFormat(dec);
>> > > }
>> > >
>> > >--
>> > >2.10.1
>> > >
>> > >_______________________________________________
>> > >vlc-devel mailing list
>> > >To unsubscribe or modify your subscription options:
>> > >https://mailman.videolan.org/listinfo/vlc-devel
>> >
>> > Would be much simpler if pose was a struct within video format...
>>
>> +1
>
> +1
>
>
> --
> Jean-Baptiste Kempf -  President
> +33 672 704 734
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list