aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2018-06-23 17:52:08 +0100
committerMark Thompson <sw@jkqxz.net>2018-06-25 21:00:54 +0100
commitbd02b2c05df1fa8c515b9d8fbe3b8c0c14fed1a4 (patch)
treeb3804201e35f0e063c80c47c476ac86c900b68c6
parenta0ac49e38ee1d1011c394d7be67d0f08b2281526 (diff)
downloadffmpeg-bd02b2c05df1fa8c515b9d8fbe3b8c0c14fed1a4.tar.gz
lavfi/vf_tonemap_opencl: Mark local tables static
-rw-r--r--libavfilter/vf_tonemap_opencl.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/vf_tonemap_opencl.c b/libavfilter/vf_tonemap_opencl.c
index 6b8bbeea7b..6063456d28 100644
--- a/libavfilter/vf_tonemap_opencl.c
+++ b/libavfilter/vf_tonemap_opencl.c
@@ -75,22 +75,22 @@ typedef struct TonemapOpenCLContext {
cl_mem util_mem;
} TonemapOpenCLContext;
-const char *yuv_coff[AVCOL_SPC_NB] = {
+static const char *yuv_coff[AVCOL_SPC_NB] = {
[AVCOL_SPC_BT709] = "rgb2yuv_bt709",
[AVCOL_SPC_BT2020_NCL] = "rgb2yuv_bt2020",
};
-const char *rgb_coff[AVCOL_SPC_NB] = {
+static const char *rgb_coff[AVCOL_SPC_NB] = {
[AVCOL_SPC_BT709] = "yuv2rgb_bt709",
[AVCOL_SPC_BT2020_NCL] = "yuv2rgb_bt2020",
};
-const char *linearize_funcs[AVCOL_TRC_NB] = {
+static const char *linearize_funcs[AVCOL_TRC_NB] = {
[AVCOL_TRC_SMPTE2084] = "eotf_st2084",
[AVCOL_TRC_ARIB_STD_B67] = "inverse_oetf_hlg",
};
-const char *delinearize_funcs[AVCOL_TRC_NB] = {
+static const char *delinearize_funcs[AVCOL_TRC_NB] = {
[AVCOL_TRC_BT709] = "inverse_eotf_bt1886",
[AVCOL_TRC_BT2020_10] = "inverse_eotf_bt1886",
};
@@ -100,17 +100,17 @@ static const struct LumaCoefficients luma_coefficients[AVCOL_SPC_NB] = {
[AVCOL_SPC_BT2020_NCL] = { 0.2627, 0.6780, 0.0593 },
};
-struct PrimaryCoefficients primaries_table[AVCOL_PRI_NB] = {
+static struct PrimaryCoefficients primaries_table[AVCOL_PRI_NB] = {
[AVCOL_PRI_BT709] = { 0.640, 0.330, 0.300, 0.600, 0.150, 0.060 },
[AVCOL_PRI_BT2020] = { 0.708, 0.292, 0.170, 0.797, 0.131, 0.046 },
};
-struct WhitepointCoefficients whitepoint_table[AVCOL_PRI_NB] = {
+static struct WhitepointCoefficients whitepoint_table[AVCOL_PRI_NB] = {
[AVCOL_PRI_BT709] = { 0.3127, 0.3290 },
[AVCOL_PRI_BT2020] = { 0.3127, 0.3290 },
};
-const char *tonemap_func[TONEMAP_MAX] = {
+static const char *tonemap_func[TONEMAP_MAX] = {
[TONEMAP_NONE] = "direct",
[TONEMAP_LINEAR] = "linear",
[TONEMAP_GAMMA] = "gamma",