summaryrefslogtreecommitdiff
path: root/libavcodec/hevcdec.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-06-29 12:42:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-12-01 11:00:41 +0100
commit01e775f4b790376cacd44685b824c48639afd355 (patch)
tree90549995513833f83ef77567ebe38f956944127b /libavcodec/hevcdec.c
parent38d0d12c4641746a28656f09e158d5d0bac1d04d (diff)
downloadffmpeg-01e775f4b790376cacd44685b824c48639afd355.tar.gz
avcodec/h2645_sei: Attach AVStereo3D side data generically
There are only slight differences between H.264 and HEVC for this side data, so it makes sense to share the code. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/hevcdec.c')
-rw-r--r--libavcodec/hevcdec.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/libavcodec/hevcdec.c b/libavcodec/hevcdec.c
index 4d633adcca..afe8fe4af2 100644
--- a/libavcodec/hevcdec.c
+++ b/libavcodec/hevcdec.c
@@ -35,7 +35,6 @@
#include "libavutil/md5.h"
#include "libavutil/opt.h"
#include "libavutil/pixdesc.h"
-#include "libavutil/stereo3d.h"
#include "libavutil/timecode.h"
#include "bswapdsp.h"
@@ -2726,41 +2725,6 @@ static int set_side_data(HEVCContext *s)
AVFrame *out = s->ref->frame;
int ret;
- if (s->sei.common.frame_packing.present &&
- s->sei.common.frame_packing.arrangement_type >= 3 &&
- s->sei.common.frame_packing.arrangement_type <= 5 &&
- s->sei.common.frame_packing.content_interpretation_type > 0 &&
- s->sei.common.frame_packing.content_interpretation_type < 3) {
- AVStereo3D *stereo = av_stereo3d_create_side_data(out);
- if (!stereo)
- return AVERROR(ENOMEM);
-
- switch (s->sei.common.frame_packing.arrangement_type) {
- case 3:
- if (s->sei.common.frame_packing.quincunx_sampling_flag)
- stereo->type = AV_STEREO3D_SIDEBYSIDE_QUINCUNX;
- else
- stereo->type = AV_STEREO3D_SIDEBYSIDE;
- break;
- case 4:
- stereo->type = AV_STEREO3D_TOPBOTTOM;
- break;
- case 5:
- stereo->type = AV_STEREO3D_FRAMESEQUENCE;
- break;
- }
-
- if (s->sei.common.frame_packing.content_interpretation_type == 2)
- stereo->flags = AV_STEREO3D_FLAG_INVERT;
-
- if (s->sei.common.frame_packing.arrangement_type == 5) {
- if (s->sei.common.frame_packing.current_frame_is_frame0_flag)
- stereo->view = AV_STEREO3D_VIEW_LEFT;
- else
- stereo->view = AV_STEREO3D_VIEW_RIGHT;
- }
- }
-
// Decrement the mastering display flag when IRAP frame has no_rasl_output_flag=1
// so the side data persists for the entire coded video sequence.
if (s->sei.mastering_display.present > 0 &&