mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-08-09 17:39:08 +00:00
swscale/uops_macros_gen: drop checkasm planar write hack
No longer needed since the new uops-based rewrite. Here's hoping we won't need to revert it if these ops come up again in the future. Signed-off-by: Niklas Haas <git@haasn.dev>
This commit is contained in:
@@ -579,12 +579,10 @@
|
||||
#define SWS_FOR_STRUCT_U16_DITHER(MACRO, ...)
|
||||
#define SWS_FOR_U32_READ_PLANAR(MACRO, ...) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_x , SWS_PIXEL_U32, SWS_UOP_READ_PLANAR , 0x1) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xy , SWS_PIXEL_U32, SWS_UOP_READ_PLANAR , 0x3) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xyz , SWS_PIXEL_U32, SWS_UOP_READ_PLANAR , 0x7) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xyzw , SWS_PIXEL_U32, SWS_UOP_READ_PLANAR , 0xf)
|
||||
#define SWS_FOR_STRUCT_U32_READ_PLANAR(MACRO, ...) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_x , .type = SWS_PIXEL_U32, .uop = SWS_UOP_READ_PLANAR , .mask = 0x1) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xy , .type = SWS_PIXEL_U32, .uop = SWS_UOP_READ_PLANAR , .mask = 0x3) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xyz , .type = SWS_PIXEL_U32, .uop = SWS_UOP_READ_PLANAR , .mask = 0x7) \
|
||||
MACRO(__VA_ARGS__, u32_read_planar_xyzw , .type = SWS_PIXEL_U32, .uop = SWS_UOP_READ_PLANAR , .mask = 0xf)
|
||||
#define SWS_FOR_U32_READ_PLANAR_FH(MACRO, ...)
|
||||
|
||||
@@ -318,29 +318,6 @@ static int sws_uops_macros_gen(char **out_str)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additionally make sure planar reads/writes are always available for all
|
||||
* formats, because checkasm depends on them to be able to verify the
|
||||
* input/output of any other operations.
|
||||
*/
|
||||
for (enum SwsPixelType type = SWS_PIXEL_NONE+1; type < SWS_PIXEL_TYPE_NB; type++) {
|
||||
if (!ff_sws_pixel_type_is_int(type))
|
||||
continue;
|
||||
for (int elems = 1; elems <= 4; elems++) {
|
||||
for (int rw = 0; rw < 2; rw++) {
|
||||
SwsUOp uop = {
|
||||
.type = type,
|
||||
.uop = rw ? SWS_UOP_WRITE_PLANAR : SWS_UOP_READ_PLANAR,
|
||||
.mask = SWS_COMP_ELEMS(elems),
|
||||
};
|
||||
|
||||
ret = register_uop(&root, &uop);
|
||||
if (ret < 0)
|
||||
goto fail;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#define BPRINT_STR(str) av_bprint_append_data(bp, str, strlen(str))
|
||||
BPRINT_STR(
|
||||
"/**\n"
|
||||
|
||||
Reference in New Issue
Block a user