mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-05 14:30:00 +01:00
avfilter/vf_tonemap_opencl: Make array smaller
Also makes the code more independent of AVCOL_TRC_NB. Reviewed-by: Niklas Haas <ffmpeg@haasn.dev> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@@ -70,12 +70,12 @@ typedef struct TonemapOpenCLContext {
|
||||
cl_mem util_mem;
|
||||
} TonemapOpenCLContext;
|
||||
|
||||
static const char *const linearize_funcs[AVCOL_TRC_NB] = {
|
||||
static const char *const linearize_funcs[] = {
|
||||
[AVCOL_TRC_SMPTE2084] = "eotf_st2084",
|
||||
[AVCOL_TRC_ARIB_STD_B67] = "inverse_oetf_hlg",
|
||||
};
|
||||
|
||||
static const char *const delinearize_funcs[AVCOL_TRC_NB] = {
|
||||
static const char *const delinearize_funcs[] = {
|
||||
[AVCOL_TRC_BT709] = "inverse_eotf_bt1886",
|
||||
[AVCOL_TRC_BT2020_10] = "inverse_eotf_bt1886",
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user