mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-06-24 08:48:37 +00:00
swscale/aarch64: convert generation of ops_entries.c to a fate test
This serves two purposes: - there is a test to check that the file is always up-to-date - it can easily be regenerated using fate's own infrastructure
This commit is contained in:
@@ -53,9 +53,3 @@ TESTPROGS = colorspace \
|
||||
swscale \
|
||||
sws_ops \
|
||||
sws_ops_aarch64 \
|
||||
|
||||
sws_ops_entries_aarch64: TAG = GEN
|
||||
sws_ops_entries_aarch64: $(SUBDIR)tests/sws_ops_aarch64$(EXESUF)
|
||||
$(M)$< > $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp
|
||||
$(CP) $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp $(SRC_PATH)/libswscale/aarch64/ops_entries.c
|
||||
$(RM) $(SRC_PATH)/libswscale/aarch64/ops_entries.c.tmp
|
||||
|
||||
@@ -88,7 +88,7 @@ static void *av_dynarray2_add(void **tab_ptr, int *nb_ptr, size_t elem_size,
|
||||
* compiled by performing a dummy run of all conversions in sws_ops and
|
||||
* collecting all functions that need to be generated. This is achieved
|
||||
* by running:
|
||||
* make sws_ops_entries_aarch64
|
||||
* make fate-sws-ops-entries-aarch64 GEN=1
|
||||
*/
|
||||
static const SwsAArch64OpImplParams impl_params[] = {
|
||||
#include "ops_entries.c"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* This file is automatically generated. Do not edit manually.
|
||||
* To regenerate, run: make sws_ops_entries_aarch64
|
||||
* To regenerate, run: make fate-sws-ops-entries-aarch64 GEN=1
|
||||
*/
|
||||
|
||||
{ .op = AARCH64_SWS_OP_READ_BIT, .block_size = 8, .type = AARCH64_PIXEL_U8, .mask = 0x0001 },
|
||||
|
||||
@@ -179,7 +179,7 @@ int main(int argc, char *argv[])
|
||||
*/
|
||||
printf("/*\n");
|
||||
printf(" * This file is automatically generated. Do not edit manually.\n");
|
||||
printf(" * To regenerate, run: make sws_ops_entries_aarch64\n");
|
||||
printf(" * To regenerate, run: make fate-sws-ops-entries-aarch64 GEN=1\n");
|
||||
printf(" */\n");
|
||||
printf("\n");
|
||||
av_tree_enumerate(root, stdout, NULL, print_op);
|
||||
|
||||
@@ -56,6 +56,11 @@ fate-sws-uops-macros: REF = $(SRC_PATH)/libswscale/uops_macros.h
|
||||
fate-sws-uops-macros: CMD = run libswscale/tests/sws_ops$(EXESUF) -macros
|
||||
endif
|
||||
|
||||
FATE_LIBSWSCALE-$(CONFIG_UNSTABLE) += fate-sws-ops-entries-aarch64
|
||||
fate-sws-ops-entries-aarch64: libswscale/tests/sws_ops_aarch64$(EXESUF)
|
||||
fate-sws-ops-entries-aarch64: REF = $(SRC_PATH)/libswscale/aarch64/ops_entries.c
|
||||
fate-sws-ops-entries-aarch64: CMD = run libswscale/tests/sws_ops_aarch64$(EXESUF)
|
||||
|
||||
FATE_LIBSWSCALE += $(FATE_LIBSWSCALE-yes)
|
||||
FATE_LIBSWSCALE_SAMPLES += $(FATE_LIBSWSCALE_SAMPLES-yes)
|
||||
FATE-$(CONFIG_SWSCALE) += $(FATE_LIBSWSCALE)
|
||||
|
||||
Reference in New Issue
Block a user