From 9e6cfe80e761c8a5489b0d34ea67cb2f0b576ed5 Mon Sep 17 00:00:00 2001 From: Nomis101 Date: Thu, 14 Feb 2019 15:42:33 -0500 Subject: [PATCH] contrib: Add local patch to fix missing x265 animation tune. --- contrib/x265/A00-animation-tune.patch | 22 +++++++++++++++++++++ contrib/x265_10bit/A00-animation-tune.patch | 22 +++++++++++++++++++++ contrib/x265_12bit/A00-animation-tune.patch | 22 +++++++++++++++++++++ contrib/x265_8bit/A00-animation-tune.patch | 22 +++++++++++++++++++++ 4 files changed, 88 insertions(+) create mode 100644 contrib/x265/A00-animation-tune.patch create mode 100644 contrib/x265_10bit/A00-animation-tune.patch create mode 100644 contrib/x265_12bit/A00-animation-tune.patch create mode 100644 contrib/x265_8bit/A00-animation-tune.patch 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 diff --git a/contrib/x265_10bit/A00-animation-tune.patch b/contrib/x265_10bit/A00-animation-tune.patch new file mode 100644 index 000000000..1067da43b --- /dev/null +++ b/contrib/x265_10bit/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 diff --git a/contrib/x265_12bit/A00-animation-tune.patch b/contrib/x265_12bit/A00-animation-tune.patch new file mode 100644 index 000000000..1067da43b --- /dev/null +++ b/contrib/x265_12bit/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 diff --git a/contrib/x265_8bit/A00-animation-tune.patch b/contrib/x265_8bit/A00-animation-tune.patch new file mode 100644 index 000000000..1067da43b --- /dev/null +++ b/contrib/x265_8bit/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 -- 2.40.0