2024-11-02 23:06:24 +00:00
|
|
|
PIXFMT_8_LIST = bgr24 \
|
2018-08-14 09:07:10 +00:00
|
|
|
gray \
|
2024-11-02 23:06:24 +00:00
|
|
|
nv12 \
|
|
|
|
nv16 \
|
|
|
|
nv24 \
|
2018-08-14 09:07:10 +00:00
|
|
|
monob \
|
|
|
|
monow \
|
2024-11-02 23:06:24 +00:00
|
|
|
vuyx \
|
2018-08-14 09:07:10 +00:00
|
|
|
rgb24 \
|
|
|
|
rgb32 \
|
|
|
|
rgb555 \
|
|
|
|
rgb565 \
|
2021-08-07 16:23:08 +00:00
|
|
|
xyz12le \
|
2018-08-14 09:07:10 +00:00
|
|
|
yuv410p \
|
|
|
|
yuv411p \
|
|
|
|
yuv420p \
|
|
|
|
yuv422p \
|
|
|
|
yuv440p \
|
|
|
|
yuv444p \
|
|
|
|
yuvj420p \
|
|
|
|
yuvj422p \
|
|
|
|
yuvj440p \
|
|
|
|
yuvj444p \
|
|
|
|
yuyv422 \
|
2024-11-02 23:06:24 +00:00
|
|
|
yvyu422 \
|
|
|
|
uyvy422 \
|
|
|
|
vyu444 \
|
2018-08-14 09:07:10 +00:00
|
|
|
|
2024-11-10 23:21:20 +00:00
|
|
|
FATE_PIXFMT-$(CONFIG_SCALE_FILTER) := $(PIXFMT_8_LIST:%=fate-pixfmt-%)
|
2018-08-14 09:07:10 +00:00
|
|
|
|
2024-11-10 23:21:20 +00:00
|
|
|
FATE_PIXFMT := $(FATE_PIXFMT-yes)
|
2018-08-14 09:07:10 +00:00
|
|
|
$(FATE_PIXFMT): CMD = pixfmt_conversion
|
|
|
|
$(FATE_PIXFMT): REF = $(SRC_PATH)/tests/ref/pixfmt/$(@:fate-pixfmt-%=%)
|
|
|
|
$(FATE_PIXFMT): $(VREF)
|
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
PIXFMT_16_LIST = gray16le \
|
|
|
|
gray16be \
|
|
|
|
yuv420p16le \
|
|
|
|
yuv420p16be \
|
|
|
|
yuv422p16le \
|
|
|
|
yuv422p16be \
|
|
|
|
yuv444p16le \
|
|
|
|
yuv444p16be \
|
|
|
|
y216le \
|
|
|
|
p016le \
|
|
|
|
p016be \
|
|
|
|
p216le \
|
|
|
|
p216be \
|
|
|
|
p416le \
|
|
|
|
p416be \
|
|
|
|
xv48le \
|
|
|
|
xv48be \
|
|
|
|
rgb48 \
|
|
|
|
gbrp16le \
|
|
|
|
gbrp16be \
|
|
|
|
|
|
|
|
PIXFMT_EXT_LIST = $(PIXFMT_8_LIST) \
|
|
|
|
gray10le \
|
2024-10-21 12:32:11 +00:00
|
|
|
gray10be \
|
|
|
|
yuv420p10le \
|
|
|
|
yuv420p10be \
|
|
|
|
yuv422p10le \
|
|
|
|
yuv422p10be \
|
|
|
|
yuv440p10le \
|
|
|
|
yuv440p10be \
|
|
|
|
yuv444p10le \
|
|
|
|
yuv444p10be \
|
|
|
|
y210le \
|
|
|
|
p010le \
|
|
|
|
p010be \
|
|
|
|
p210le \
|
|
|
|
p210be \
|
|
|
|
p410le \
|
|
|
|
p410be \
|
|
|
|
v30xle \
|
|
|
|
xv30le \
|
|
|
|
x2rgb10le \
|
|
|
|
x2bgr10le \
|
|
|
|
gbrp10le \
|
|
|
|
gbrp10be \
|
2024-11-02 23:06:24 +00:00
|
|
|
gray12le \
|
2024-10-21 12:32:11 +00:00
|
|
|
gray12be \
|
|
|
|
yuv420p12le \
|
|
|
|
yuv420p12be \
|
|
|
|
yuv422p12le \
|
|
|
|
yuv422p12be \
|
|
|
|
yuv440p12le \
|
|
|
|
yuv440p12be \
|
|
|
|
yuv444p12le \
|
|
|
|
yuv444p12be \
|
|
|
|
y212le \
|
|
|
|
p012le \
|
|
|
|
p012be \
|
|
|
|
p212le \
|
|
|
|
p212be \
|
|
|
|
p412le \
|
|
|
|
p412be \
|
|
|
|
xv36le \
|
|
|
|
xv36be \
|
|
|
|
gbrp12le \
|
|
|
|
gbrp12be \
|
2024-11-02 23:06:24 +00:00
|
|
|
$(PIXFMT_16_LIST) \
|
2024-10-21 12:32:11 +00:00
|
|
|
|
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
FATE_PIXFMT_8-YUV-$(call ALLYES, SCALE_FILTER YUVTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_EXT_LIST)
|
|
|
|
FATE_PIXFMT_8-RGB-$(call ALLYES, SCALE_FILTER RGBTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_EXT_LIST)
|
2024-10-21 12:32:11 +00:00
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
FATE_PIXFMT_8-YUV += $(FATE_PIXFMT_8-YUV-yes:%=fate-pixfmt-yuv444p-%)
|
|
|
|
FATE_PIXFMT_8-RGB += $(FATE_PIXFMT_8-RGB-yes:%=fate-pixfmt-gbrp-%)
|
|
|
|
FATE_PIXFMT_8-RGB += $(FATE_PIXFMT_8-RGB-yes:%=fate-pixfmt-rgb24-%)
|
2024-10-21 12:32:11 +00:00
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
$(FATE_PIXFMT_8-YUV): CMD = pixfmt_conversion_ext "yuv"
|
|
|
|
$(FATE_PIXFMT_8-RGB): CMD = pixfmt_conversion_ext "rgb"
|
2024-10-21 12:32:11 +00:00
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
FATE_PIXFMT_8 := $(FATE_PIXFMT_8-YUV) $(FATE_PIXFMT_8-RGB)
|
|
|
|
$(FATE_PIXFMT_8): REF = $(SRC_PATH)/tests/ref/pixfmt/$(@:fate-pixfmt-%=%)
|
|
|
|
|
|
|
|
FATE_PIXFMT_EXT-YUV-$(call ALLYES, SCALE_FILTER YUVTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_EXT_LIST)
|
|
|
|
FATE_PIXFMT_EXT-RGB-$(call ALLYES, SCALE_FILTER RGBTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_EXT_LIST)
|
|
|
|
|
|
|
|
FATE_PIXFMT_EXT-YUV += $(FATE_PIXFMT_EXT-YUV-yes:%=fate-pixfmt-yuv444p10-%)
|
|
|
|
FATE_PIXFMT_EXT-YUV += $(FATE_PIXFMT_EXT-YUV-yes:%=fate-pixfmt-yuv444p12-%)
|
|
|
|
FATE_PIXFMT_EXT-RGB += $(FATE_PIXFMT_EXT-RGB-yes:%=fate-pixfmt-gbrp10-%)
|
|
|
|
FATE_PIXFMT_EXT-RGB += $(FATE_PIXFMT_EXT-RGB-yes:%=fate-pixfmt-gbrp12-%)
|
|
|
|
FATE_PIXFMT_EXT-RGB += $(FATE_PIXFMT_EXT-RGB-yes:%=fate-pixfmt-rgb48-%)
|
|
|
|
|
|
|
|
$(FATE_PIXFMT_EXT-YUV): CMD = pixfmt_conversion_ext "yuv" "le"
|
|
|
|
$(FATE_PIXFMT_EXT-RGB): CMD = pixfmt_conversion_ext "rgb" "le"
|
|
|
|
|
|
|
|
FATE_PIXFMT_EXT := $(FATE_PIXFMT_EXT-YUV) $(FATE_PIXFMT_EXT-RGB)
|
|
|
|
$(FATE_PIXFMT_EXT): REF = $(SRC_PATH)/tests/ref/pixfmt/$(@:fate-pixfmt-%=%)
|
2024-10-21 12:32:11 +00:00
|
|
|
|
|
|
|
FATE_PIXFMT_16-YUV-$(call ALLYES, SCALE_FILTER YUVTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_16_LIST)
|
|
|
|
FATE_PIXFMT_16-RGB-$(call ALLYES, SCALE_FILTER RGBTESTSRC_FILTER LAVFI_INDEV) += $(PIXFMT_16_LIST)
|
|
|
|
|
|
|
|
FATE_PIXFMT_16-YUV := $(FATE_PIXFMT_16-YUV-yes:%=fate-pixfmt-yuv444p16-%)
|
|
|
|
FATE_PIXFMT_16-RGB := $(FATE_PIXFMT_16-RGB-yes:%=fate-pixfmt-gbrp16-%)
|
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
$(FATE_PIXFMT_16-YUV): CMD = pixfmt_conversion_ext "yuv" "le"
|
|
|
|
$(FATE_PIXFMT_16-RGB): CMD = pixfmt_conversion_ext "rgb" "le"
|
2024-10-21 12:32:11 +00:00
|
|
|
|
|
|
|
FATE_PIXFMT_16 := $(FATE_PIXFMT_16-YUV) $(FATE_PIXFMT_16-RGB)
|
|
|
|
$(FATE_PIXFMT_16): REF = $(SRC_PATH)/tests/ref/pixfmt/$(@:fate-pixfmt-%=%)
|
|
|
|
|
2024-11-02 23:06:24 +00:00
|
|
|
FATE_AVCONV += $(FATE_PIXFMT) $(FATE_PIXFMT_8) $(FATE_PIXFMT_EXT) $(FATE_PIXFMT_16)
|
|
|
|
fate-pixfmt: $(FATE_PIXFMT) $(FATE_PIXFMT_8) $(FATE_PIXFMT_EXT) $(FATE_PIXFMT_16)
|