summaryrefslogtreecommitdiffstats
path: root/video/out/placebo/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/placebo/utils.c')
-rw-r--r--video/out/placebo/utils.c148
1 files changed, 0 insertions, 148 deletions
diff --git a/video/out/placebo/utils.c b/video/out/placebo/utils.c
index b0f49fb32c..b60e4ff5bc 100644
--- a/video/out/placebo/utils.c
+++ b/video/out/placebo/utils.c
@@ -72,154 +72,6 @@ void mppl_log_set_probing(pl_log log, bool probing)
pl_log_update(log, &params);
}
-enum pl_color_primaries mp_prim_to_pl(enum mp_csp_prim prim)
-{
- switch (prim) {
- case MP_CSP_PRIM_AUTO: return PL_COLOR_PRIM_UNKNOWN;
- case MP_CSP_PRIM_BT_601_525: return PL_COLOR_PRIM_BT_601_525;
- case MP_CSP_PRIM_BT_601_625: return PL_COLOR_PRIM_BT_601_625;
- case MP_CSP_PRIM_BT_709: return PL_COLOR_PRIM_BT_709;
- case MP_CSP_PRIM_BT_2020: return PL_COLOR_PRIM_BT_2020;
- case MP_CSP_PRIM_BT_470M: return PL_COLOR_PRIM_BT_470M;
- case MP_CSP_PRIM_APPLE: return PL_COLOR_PRIM_APPLE;
- case MP_CSP_PRIM_ADOBE: return PL_COLOR_PRIM_ADOBE;
- case MP_CSP_PRIM_PRO_PHOTO: return PL_COLOR_PRIM_PRO_PHOTO;
- case MP_CSP_PRIM_CIE_1931: return PL_COLOR_PRIM_CIE_1931;
- case MP_CSP_PRIM_DCI_P3: return PL_COLOR_PRIM_DCI_P3;
- case MP_CSP_PRIM_DISPLAY_P3: return PL_COLOR_PRIM_DISPLAY_P3;
- case MP_CSP_PRIM_V_GAMUT: return PL_COLOR_PRIM_V_GAMUT;
- case MP_CSP_PRIM_S_GAMUT: return PL_COLOR_PRIM_S_GAMUT;
- case MP_CSP_PRIM_EBU_3213: return PL_COLOR_PRIM_EBU_3213;
- case MP_CSP_PRIM_FILM_C: return PL_COLOR_PRIM_FILM_C;
- case MP_CSP_PRIM_ACES_AP0: return PL_COLOR_PRIM_ACES_AP0;
- case MP_CSP_PRIM_ACES_AP1: return PL_COLOR_PRIM_ACES_AP1;
- case MP_CSP_PRIM_COUNT: return PL_COLOR_PRIM_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum mp_csp_prim mp_prim_from_pl(enum pl_color_primaries prim)
-{
- switch (prim){
- case PL_COLOR_PRIM_UNKNOWN: return MP_CSP_PRIM_AUTO;
- case PL_COLOR_PRIM_BT_601_525: return MP_CSP_PRIM_BT_601_525;
- case PL_COLOR_PRIM_BT_601_625: return MP_CSP_PRIM_BT_601_625;
- case PL_COLOR_PRIM_BT_709: return MP_CSP_PRIM_BT_709;
- case PL_COLOR_PRIM_BT_2020: return MP_CSP_PRIM_BT_2020;
- case PL_COLOR_PRIM_BT_470M: return MP_CSP_PRIM_BT_470M;
- case PL_COLOR_PRIM_APPLE: return MP_CSP_PRIM_APPLE;
- case PL_COLOR_PRIM_ADOBE: return MP_CSP_PRIM_ADOBE;
- case PL_COLOR_PRIM_PRO_PHOTO: return MP_CSP_PRIM_PRO_PHOTO;
- case PL_COLOR_PRIM_CIE_1931: return MP_CSP_PRIM_CIE_1931;
- case PL_COLOR_PRIM_DCI_P3: return MP_CSP_PRIM_DCI_P3;
- case PL_COLOR_PRIM_DISPLAY_P3: return MP_CSP_PRIM_DISPLAY_P3;
- case PL_COLOR_PRIM_V_GAMUT: return MP_CSP_PRIM_V_GAMUT;
- case PL_COLOR_PRIM_S_GAMUT: return MP_CSP_PRIM_S_GAMUT;
- case PL_COLOR_PRIM_EBU_3213: return MP_CSP_PRIM_EBU_3213;
- case PL_COLOR_PRIM_FILM_C: return MP_CSP_PRIM_FILM_C;
- case PL_COLOR_PRIM_ACES_AP0: return MP_CSP_PRIM_ACES_AP0;
- case PL_COLOR_PRIM_ACES_AP1: return MP_CSP_PRIM_ACES_AP1;
- case PL_COLOR_PRIM_COUNT: return MP_CSP_PRIM_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum pl_color_transfer mp_trc_to_pl(enum mp_csp_trc trc)
-{
- switch (trc) {
- case MP_CSP_TRC_AUTO: return PL_COLOR_TRC_UNKNOWN;
- case MP_CSP_TRC_BT_1886: return PL_COLOR_TRC_BT_1886;
- case MP_CSP_TRC_SRGB: return PL_COLOR_TRC_SRGB;
- case MP_CSP_TRC_LINEAR: return PL_COLOR_TRC_LINEAR;
- case MP_CSP_TRC_GAMMA18: return PL_COLOR_TRC_GAMMA18;
- case MP_CSP_TRC_GAMMA20: return PL_COLOR_TRC_GAMMA20;
- case MP_CSP_TRC_GAMMA22: return PL_COLOR_TRC_GAMMA22;
- case MP_CSP_TRC_GAMMA24: return PL_COLOR_TRC_GAMMA24;
- case MP_CSP_TRC_GAMMA26: return PL_COLOR_TRC_GAMMA26;
- case MP_CSP_TRC_GAMMA28: return PL_COLOR_TRC_GAMMA28;
- case MP_CSP_TRC_PRO_PHOTO: return PL_COLOR_TRC_PRO_PHOTO;
- case MP_CSP_TRC_PQ: return PL_COLOR_TRC_PQ;
- case MP_CSP_TRC_HLG: return PL_COLOR_TRC_HLG;
- case MP_CSP_TRC_V_LOG: return PL_COLOR_TRC_V_LOG;
- case MP_CSP_TRC_S_LOG1: return PL_COLOR_TRC_S_LOG1;
- case MP_CSP_TRC_S_LOG2: return PL_COLOR_TRC_S_LOG2;
- case MP_CSP_TRC_ST428: return PL_COLOR_TRC_ST428;
- case MP_CSP_TRC_COUNT: return PL_COLOR_TRC_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum mp_csp_trc mp_trc_from_pl(enum pl_color_transfer trc)
-{
- switch (trc){
- case PL_COLOR_TRC_UNKNOWN: return MP_CSP_TRC_AUTO;
- case PL_COLOR_TRC_BT_1886: return MP_CSP_TRC_BT_1886;
- case PL_COLOR_TRC_SRGB: return MP_CSP_TRC_SRGB;
- case PL_COLOR_TRC_LINEAR: return MP_CSP_TRC_LINEAR;
- case PL_COLOR_TRC_GAMMA18: return MP_CSP_TRC_GAMMA18;
- case PL_COLOR_TRC_GAMMA20: return MP_CSP_TRC_GAMMA20;
- case PL_COLOR_TRC_GAMMA22: return MP_CSP_TRC_GAMMA22;
- case PL_COLOR_TRC_GAMMA24: return MP_CSP_TRC_GAMMA24;
- case PL_COLOR_TRC_GAMMA26: return MP_CSP_TRC_GAMMA26;
- case PL_COLOR_TRC_GAMMA28: return MP_CSP_TRC_GAMMA28;
- case PL_COLOR_TRC_PRO_PHOTO: return MP_CSP_TRC_PRO_PHOTO;
- case PL_COLOR_TRC_PQ: return MP_CSP_TRC_PQ;
- case PL_COLOR_TRC_HLG: return MP_CSP_TRC_HLG;
- case PL_COLOR_TRC_V_LOG: return MP_CSP_TRC_V_LOG;
- case PL_COLOR_TRC_S_LOG1: return MP_CSP_TRC_S_LOG1;
- case PL_COLOR_TRC_S_LOG2: return MP_CSP_TRC_S_LOG2;
- case PL_COLOR_TRC_ST428: return MP_CSP_TRC_ST428;
- case PL_COLOR_TRC_COUNT: return MP_CSP_TRC_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum pl_color_system mp_csp_to_pl(enum mp_csp csp)
-{
- switch (csp) {
- case MP_CSP_AUTO: return PL_COLOR_SYSTEM_UNKNOWN;
- case MP_CSP_BT_601: return PL_COLOR_SYSTEM_BT_601;
- case MP_CSP_BT_709: return PL_COLOR_SYSTEM_BT_709;
- case MP_CSP_SMPTE_240M: return PL_COLOR_SYSTEM_SMPTE_240M;
- case MP_CSP_BT_2020_NC: return PL_COLOR_SYSTEM_BT_2020_NC;
- case MP_CSP_BT_2020_C: return PL_COLOR_SYSTEM_BT_2020_C;
- case MP_CSP_RGB: return PL_COLOR_SYSTEM_RGB;
- case MP_CSP_XYZ: return PL_COLOR_SYSTEM_XYZ;
- case MP_CSP_YCGCO: return PL_COLOR_SYSTEM_YCGCO;
- case MP_CSP_COUNT: return PL_COLOR_SYSTEM_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum pl_color_levels mp_levels_to_pl(enum mp_csp_levels levels)
-{
- switch (levels) {
- case MP_CSP_LEVELS_AUTO: return PL_COLOR_LEVELS_UNKNOWN;
- case MP_CSP_LEVELS_TV: return PL_COLOR_LEVELS_TV;
- case MP_CSP_LEVELS_PC: return PL_COLOR_LEVELS_PC;
- case MP_CSP_LEVELS_COUNT: return PL_COLOR_LEVELS_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
-enum mp_csp_levels mp_levels_from_pl(enum pl_color_levels levels)
-{
- switch (levels){
- case PL_COLOR_LEVELS_UNKNOWN: return MP_CSP_LEVELS_AUTO;
- case PL_COLOR_LEVELS_TV: return MP_CSP_LEVELS_TV;
- case PL_COLOR_LEVELS_PC: return MP_CSP_LEVELS_PC;
- case PL_COLOR_LEVELS_COUNT: return MP_CSP_LEVELS_COUNT;
- }
-
- MP_ASSERT_UNREACHABLE();
-}
-
enum pl_alpha_mode mp_alpha_to_pl(enum mp_alpha_type alpha)
{
switch (alpha) {