summaryrefslogtreecommitdiffstats
path: root/contrib/x265/A00-animation-tune.patch
diff options
context:
space:
mode:
authorNomis101 <[email protected]>2019-02-14 15:42:33 -0500
committerBradley Sepos <[email protected]>2019-02-14 15:42:33 -0500
commit9e6cfe80e761c8a5489b0d34ea67cb2f0b576ed5 (patch)
tree68242e426203e30b4ce2ddab725165cf7542f2f7 /contrib/x265/A00-animation-tune.patch
parenta058133585c9672d5737fbdda355c9c562e8c289 (diff)
contrib: Add local patch to fix missing x265 animation tune.
Diffstat (limited to 'contrib/x265/A00-animation-tune.patch')
-rw-r--r--contrib/x265/A00-animation-tune.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/contrib/x265/A00-animation-tune.patch b/contrib/x265/A00-animation-tune.patch
new file mode 100644
index 000000000..1067da43b
--- /dev/null
+++ b/contrib/x265/A00-animation-tune.patch
@@ -0,0 +1,22 @@
+diff --git a/source/x265.h b/source/x265.h
+--- a/source/x265.h
++++ b/source/x265.h
+@@ -1835,17 +1835,17 @@ static const char * const x265_preset_na
+ * with ultrafast mapping to "0" and placebo mapping to "9". This mapping may
+ * of course change if new presets are added in between, but will always be
+ * ordered from fastest to slowest.
+ *
+ * Warning: the speed of these presets scales dramatically. Ultrafast is a full
+ * 100 times faster than placebo!
+ *
+ * Currently available tunings are: */
+-static const char * const x265_tune_names[] = { "psnr", "ssim", "grain", "zerolatency", "fastdecode", 0 };
++static const char * const x265_tune_names[] = { "psnr", "ssim", "grain", "zerolatency", "animation", "fastdecode", 0 };
+
+ /* returns 0 on success, negative on failure (e.g. invalid preset/tune name). */
+ int x265_param_default_preset(x265_param *, const char *preset, const char *tune);
+
+ /* x265_picture_alloc:
+ * Allocates an x265_picture instance. The returned picture structure is not
+ * special in any way, but using this method together with x265_picture_free()
+ * and x265_picture_init() allows some version safety. New picture fields will