video: separate repacking code from zimg and make it independent

For whatever purpose. If anything, this makes the zimg wrapper cleaner.

The added tests are not particular exhaustive, but nice to have. This
also makes the scale_zimg.c test pretty useless, because it only tests
repacking (going through the zimg wrapper). In theory, the repack_tests
things could also be used on scalers, but I guess it doesn't matter.

Some things are added over the previous zimg wrapper code. For example,
some fringe formats can now be expanded to 8 bit per component for
convenience.
This commit is contained in:
wm4
2020-05-09 17:56:44 +02:00
parent d61ced37ae
commit d8002f1dde
9 changed files with 1697 additions and 904 deletions

1110
video/repack.c Normal file
View File

File diff suppressed because it is too large Load Diff