mirror of
https://github.com/mpv-player/mpv
synced 2025-01-12 18:02:36 +00:00
zimg: add ZIMG_TRANSFER_ST428 mapping
This commit is contained in:
parent
7ceadbb3c1
commit
752e76ced7
@ -756,6 +756,7 @@ if features['zimg']
|
|||||||
sources += files('test/repack.c',
|
sources += files('test/repack.c',
|
||||||
'test/scale_zimg.c')
|
'test/scale_zimg.c')
|
||||||
endif
|
endif
|
||||||
|
features += {'zimg-st428': zimg.version().version_compare('>= 3.0.5')}
|
||||||
endif
|
endif
|
||||||
|
|
||||||
zlib = dependency('zlib', required: get_option('zlib'))
|
zlib = dependency('zlib', required: get_option('zlib'))
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include "video/fmt-conversion.h"
|
#include "video/fmt-conversion.h"
|
||||||
#include "video/img_format.h"
|
#include "video/img_format.h"
|
||||||
#include "zimg.h"
|
#include "zimg.h"
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
static_assert(MP_IMAGE_BYTE_ALIGN >= ZIMG_ALIGN, "");
|
static_assert(MP_IMAGE_BYTE_ALIGN >= ZIMG_ALIGN, "");
|
||||||
|
|
||||||
@ -155,6 +156,9 @@ static zimg_transfer_characteristics_e mp_to_z_trc(enum mp_csp_trc trc)
|
|||||||
case MP_CSP_TRC_GAMMA28: return ZIMG_TRANSFER_BT470_BG;
|
case MP_CSP_TRC_GAMMA28: return ZIMG_TRANSFER_BT470_BG;
|
||||||
case MP_CSP_TRC_PQ: return ZIMG_TRANSFER_ST2084;
|
case MP_CSP_TRC_PQ: return ZIMG_TRANSFER_ST2084;
|
||||||
case MP_CSP_TRC_HLG: return ZIMG_TRANSFER_ARIB_B67;
|
case MP_CSP_TRC_HLG: return ZIMG_TRANSFER_ARIB_B67;
|
||||||
|
#if HAVE_ZIMG_ST428
|
||||||
|
case MP_CSP_TRC_ST428: return ZIMG_TRANSFER_ST428;
|
||||||
|
#endif
|
||||||
case MP_CSP_TRC_GAMMA18: // ?
|
case MP_CSP_TRC_GAMMA18: // ?
|
||||||
case MP_CSP_TRC_GAMMA20:
|
case MP_CSP_TRC_GAMMA20:
|
||||||
case MP_CSP_TRC_GAMMA24:
|
case MP_CSP_TRC_GAMMA24:
|
||||||
|
4
wscript
4
wscript
@ -408,6 +408,10 @@ iconv support use --disable-iconv.",
|
|||||||
'name': 'rubberband-3',
|
'name': 'rubberband-3',
|
||||||
'desc': 'new engine support for librubberband',
|
'desc': 'new engine support for librubberband',
|
||||||
'func': check_pkg_config('rubberband >= 3.0.0'),
|
'func': check_pkg_config('rubberband >= 3.0.0'),
|
||||||
|
}, {
|
||||||
|
'name': 'zimg-st428',
|
||||||
|
'desc': 'ZIMG suport for ZIMG_TRANSFER_ST428',
|
||||||
|
'func': check_pkg_config('zimg', '>= 3.0.5'),
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user