From 45bb80dccc558a38a3539496575694995b38ff64 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Sat, 14 Sep 2019 18:16:02 +0200 Subject: avfilter/vf_v360: implement stereo 3D support --- libavfilter/v360.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'libavfilter/v360.h') diff --git a/libavfilter/v360.h b/libavfilter/v360.h index 11c1e27e4b..8e8799a89e 100644 --- a/libavfilter/v360.h +++ b/libavfilter/v360.h @@ -22,6 +22,13 @@ #define AVFILTER_V360_H #include "avfilter.h" +enum StereoFormats { + STEREO_2D, + STEREO_SBS, + STEREO_TB, + NB_STEREO_FMTS, +}; + enum Projections { EQUIRECTANGULAR, CUBEMAP_3_2, @@ -95,6 +102,8 @@ typedef struct V360Context { int out_cubemap_face_rotation[6]; int rotation_order[3]; + int in_stereo, out_stereo; + float in_pad, out_pad; float yaw, pitch, roll; @@ -108,6 +117,11 @@ typedef struct V360Context { float input_mirror_modifier[2]; + int pr_width[4], pr_height[4]; + + int in_offset_w[4], in_offset_h[4]; + int out_offset_w[4], out_offset_h[4]; + int planewidth[4], planeheight[4]; int inplanewidth[4], inplaneheight[4]; int uv_linesize[4]; -- cgit v1.2.3