diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-09-25 15:09:21 +0200 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-11-28 14:56:51 -0500 |
commit | 99e9697e3a12ab4a6638a36b95edafd6a98f9eaa (patch) | |
tree | 6d25232267e3d7822aa3a1b5e080c06b96d6cce6 /libavcodec/h264_slice.c | |
parent | 45d7be7f930cf707ead07416e10e2d0e061e99ce (diff) |
stereo3d: Support view type for frame sequence type
Implement detection in h264 and hevc and insertion in framepack filter.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r-- | libavcodec/h264_slice.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c index 5dd01d836e..1b968ebd50 100644 --- a/libavcodec/h264_slice.c +++ b/libavcodec/h264_slice.c @@ -1112,6 +1112,13 @@ static int h264_export_frame_props(H264Context *h) if (fp->content_interpretation_type == 2) stereo->flags = AV_STEREO3D_FLAG_INVERT; + + if (fp->arrangement_type == 5) { + if (fp->current_frame_is_frame0_flag) + stereo->view = AV_STEREO3D_VIEW_LEFT; + else + stereo->view = AV_STEREO3D_VIEW_RIGHT; + } } if (h->sei.display_orientation.present && |