[vlc-commits] avcodec: add frame sequential handling
Mohammed (Shaan) Huzaifa Danish
git at videolan.org
Thu Apr 26 08:53:16 CEST 2018
vlc | branch: master | Mohammed (Shaan) Huzaifa Danish <shaan3 at gmail.com> | Fri Aug 11 10:25:14 2017 +0200| [5f48e33c67bc745af90aaa4e87240a2d6e2521a2] | committer: Steve Lhomme
avcodec: add frame sequential handling
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f48e33c67bc745af90aaa4e87240a2d6e2521a2
---
include/vlc_es.h | 2 ++
modules/codec/avcodec/video.c | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/include/vlc_es.h b/include/vlc_es.h
index 718dfc42b1..3f867641cc 100644
--- a/include/vlc_es.h
+++ b/include/vlc_es.h
@@ -353,6 +353,8 @@ struct video_format_t
video_chroma_location_t chroma_location; /**< YCbCr chroma location */
video_multiview_mode_t multiview_mode; /** Multiview mode, 2D, 3D */
+ bool b_multiview_right_eye_first; /** Multiview left or right eye first*/
+ bool b_multiview_left_eye;
video_projection_mode_t projection_mode; /**< projection mode */
vlc_viewpoint_t pose;
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 8b4f6252b7..e10fcf372b 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -901,6 +901,11 @@ static int DecodeSidedata( decoder_t *p_dec, const AVFrame *frame, picture_t *p_
p_pic->format.multiview_mode = MULTIVIEW_2D;
break;
}
+ p_pic->format.b_multiview_right_eye_first = stereo_data->flags & AV_STEREO3D_FLAG_INVERT;
+ p_pic->format.b_multiview_left_eye = stereo_data->flags & AV_STEREO3D_VIEW_LEFT;
+
+ p_dec->fmt_out.video.b_multiview_right_eye_first = p_pic->format.b_multiview_right_eye_first;
+
if (p_dec->fmt_out.video.multiview_mode != p_pic->format.multiview_mode)
{
p_dec->fmt_out.video.multiview_mode = p_pic->format.multiview_mode;
More information about the vlc-commits
mailing list