mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-29 07:06:59 +08:00
vo_gpu_next: fixes to allow using dllimport
Address of variables can't be used for constant initialization in C language modes. See https://github.com/llvm/llvm-project/commit/0c43d8077e605ab78d85180f0dcaa4df1ae37607
This commit is contained in:
committed by
Niklas Haas
parent
71f9e97fc0
commit
4fd0a39fc8
@@ -1462,7 +1462,7 @@ err_out:
|
||||
static const struct pl_filter_config *map_scaler(struct priv *p,
|
||||
enum scaler_unit unit)
|
||||
{
|
||||
static const struct pl_filter_preset fixed_scalers[] = {
|
||||
const struct pl_filter_preset fixed_scalers[] = {
|
||||
{ "bilinear", &pl_filter_bilinear },
|
||||
{ "bicubic_fast", &pl_filter_bicubic },
|
||||
{ "nearest", &pl_filter_nearest },
|
||||
@@ -1470,7 +1470,7 @@ static const struct pl_filter_config *map_scaler(struct priv *p,
|
||||
{0},
|
||||
};
|
||||
|
||||
static const struct pl_filter_preset fixed_frame_mixers[] = {
|
||||
const struct pl_filter_preset fixed_frame_mixers[] = {
|
||||
{ "linear", &pl_filter_bilinear },
|
||||
{ "oversample", &pl_filter_oversample },
|
||||
{0},
|
||||
@@ -1812,7 +1812,7 @@ static void update_render_options(struct vo *vo)
|
||||
p->peak_detect.scene_threshold_low = opts->tone_map.scene_threshold_low;
|
||||
p->peak_detect.scene_threshold_high = opts->tone_map.scene_threshold_high;
|
||||
|
||||
static const struct pl_tone_map_function * const tone_map_funs[] = {
|
||||
const struct pl_tone_map_function * const tone_map_funs[] = {
|
||||
[TONE_MAPPING_AUTO] = &pl_tone_map_auto,
|
||||
[TONE_MAPPING_CLIP] = &pl_tone_map_clip,
|
||||
[TONE_MAPPING_MOBIUS] = &pl_tone_map_mobius,
|
||||
|
||||
Reference in New Issue
Block a user