diff options
author | wm4 <wm4@nowhere> | 2019-10-17 22:49:26 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-10-17 22:49:26 +0200 |
commit | 60ab82df322bd91fd1c999dfaa3dd1784617734b (patch) | |
tree | 6d485985218e2728dc09105e2d9aef391cca5a15 /video/filter | |
parent | c75e0320f60f93f0db40c949320fd9cee27cb52e (diff) | |
download | mpv-60ab82df322bd91fd1c999dfaa3dd1784617734b.tar.bz2 mpv-60ab82df322bd91fd1c999dfaa3dd1784617734b.tar.xz |
video, demux: rip out unused spherical metadata code
This was preparation into something that never happened.
Spherical video is a shit idea anyway.
Diffstat (limited to 'video/filter')
-rw-r--r-- | video/filter/vf_format.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/video/filter/vf_format.c b/video/filter/vf_format.c index 3e44e379e2..1700f002ab 100644 --- a/video/filter/vf_format.c +++ b/video/filter/vf_format.c @@ -53,8 +53,6 @@ struct vf_format_opts { int rotate; int dw, dh; double dar; - int spherical; - float spherical_ref_angles[3]; }; static void vf_format_process(struct mp_filter *f) @@ -121,13 +119,6 @@ static void vf_format_process(struct mp_filter *f) dsize = av_d2q(p->dar, INT_MAX); mp_image_params_set_dsize(out, dsize.num, dsize.den); - if (p->spherical) - out->spherical.type = p->spherical; - for (int n = 0; n < 3; n++) { - if (isfinite(p->spherical_ref_angles[n])) - out->spherical.ref_angles[n] = p->spherical_ref_angles[n]; - } - // Make sure the user-overrides are consistent (no RGB csp for YUV, etc.). mp_image_params_guess_csp(out); @@ -184,10 +175,6 @@ static const m_option_t vf_opts_fields[] = { OPT_INT("dw", dw, 0), OPT_INT("dh", dh, 0), OPT_DOUBLE("dar", dar, 0), - OPT_CHOICE_C("spherical", spherical, 0, mp_spherical_names), - OPT_FLOAT("spherical-yaw", spherical_ref_angles[0], 0), - OPT_FLOAT("spherical-pitch", spherical_ref_angles[1], 0), - OPT_FLOAT("spherical-roll", spherical_ref_angles[2], 0), OPT_REMOVED("outputlevels", "use the --video-output-levels global option"), OPT_REMOVED("peak", "use sig-peak instead (changed value scale!)"), {0} @@ -200,7 +187,6 @@ const struct mp_user_filter_entry vf_format = { .priv_size = sizeof(OPT_BASE_STRUCT), .priv_defaults = &(const OPT_BASE_STRUCT){ .rotate = -1, - .spherical_ref_angles = {NAN, NAN, NAN}, }, .options = vf_opts_fields, }, |