This allows losslessly transposed or rotated 4:1:1 JPEG images to be losslessly cropped, partially decompressed, or decompressed to planar YUV images. Because tj3Transform() allows multiple lossless transformations to be chained together, all subsampling options need to have a corresponding transposed subsampling option. (This is why 4:4:0 was originally implemented as well.) Otherwise, the documentation would be technically incorrect. It says that images with unknown subsampling types cannot be losslessly cropped, partially decompressed, or decompressed to planar YUV images, but it doesn't say anything about images with known subsampling types whose subsampling type becomes unknown if the image is rotated or transposed. This is one of those situations in which it is easier to implement a feature that works around the problem than to document the problem. Closes #659
50 lines
748 B
CMake
50 lines
748 B
CMake
file(GLOB FILES
|
|
testout*
|
|
*_GRAY_*.bmp
|
|
*_GRAY_*.png
|
|
*_GRAY_*.ppm
|
|
*_GRAY_*.jpg
|
|
*_GRAY.yuv
|
|
*_420_*.bmp
|
|
*_420_*.png
|
|
*_420_*.ppm
|
|
*_420_*.jpg
|
|
*_420.yuv
|
|
*_422_*.bmp
|
|
*_422_*.png
|
|
*_422_*.ppm
|
|
*_422_*.jpg
|
|
*_422.yuv
|
|
*_444_*.bmp
|
|
*_444_*.png
|
|
*_444_*.ppm
|
|
*_444_*.jpg
|
|
*_444.yuv
|
|
*_440_*.bmp
|
|
*_440_*.png
|
|
*_440_*.ppm
|
|
*_440_*.jpg
|
|
*_440.yuv
|
|
*_411_*.bmp
|
|
*_411_*.png
|
|
*_411_*.ppm
|
|
*_411_*.jpg
|
|
*_411.yuv
|
|
*_441_*.bmp
|
|
*_441_*.png
|
|
*_441_*.ppm
|
|
*_441_*.jpg
|
|
*_441.yuv
|
|
*_LOSSL*S_*.bmp
|
|
*_LOSSL*S_*.ppm
|
|
*_LOSSL*S_*.jpg
|
|
tjbenchtest*.log
|
|
tjexampletest*.log)
|
|
|
|
if(NOT FILES STREQUAL "")
|
|
message(STATUS "Removing test files")
|
|
file(REMOVE ${FILES})
|
|
else()
|
|
message(STATUS "No files to remove")
|
|
endif()
|