Commit c2fe1c0a authored by Mohammed Huzaifa Danish's avatar Mohammed Huzaifa Danish Committed by Steve Lhomme

avcodec: add frame sequential handling

Signed-off-by: Steve Lhomme's avatarSteve Lhomme <robux4@ycbcr.xyz>
parent 638f05ac
......@@ -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;
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment