diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-09-25 16:09:21 +0300 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2017-11-28 22:56:51 +0300 |
commit | 99e9697e3a12ab4a6638a36b95edafd6a98f9eaa (patch) | |
tree | 6d25232267e3d7822aa3a1b5e080c06b96d6cce6 /libavcodec/hevcdec.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/hevcdec.c')
-rw-r--r-- | libavcodec/hevcdec.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c index a1619cf4bd..f1d1c77497 100644 --- a/libavcodec/hevcdec.c +++ b/libavcodec/hevcdec.c @@ -2397,6 +2397,13 @@ static int set_side_data(HEVCContext *s) if (s->sei.frame_packing.content_interpretation_type == 2) stereo->flags = AV_STEREO3D_FLAG_INVERT; + + if (s->sei.frame_packing.arrangement_type == 5) { + if (s->sei.frame_packing.current_frame_is_frame0_flag) + stereo->view = AV_STEREO3D_VIEW_LEFT; + else + stereo->view = AV_STEREO3D_VIEW_RIGHT; + } } if (s->sei.display_orientation.present && |