Method for determining whether to use a lossy or lossless codec to compress a digital image using a table of non-allowed pixel values
View Patent ↗A mechanism for determining whether an image is of lossy-origin or lossless origin is used to maximize the compression ratio of any future compressions and avoid wasting the precious resources associated with lossless compression/decompression on any image that has previously been subjected to lossy compression/decompression.
1. A method for determining whether to employ a lossy or lossless codec on a digital image comprising:
determining if said image has been subjected to a lossy color conversion;
if said image has been subjected to a lossy color conversion assuming said image is of lossy origin;
if said image has not been subjected to a lossy color conversion assuming said image is of lossless origin;
if said image is of assumed lossy origin, using a lossy codec to compress and decompress said image;
wherein said determining if said image has been subjected to a lossy color conversion comprises:
creating a table of non-allowed pixel values; checking each unique pixel value of said image against said table of non-allowed pixel values.
2. A method for determining whether to employ a lossy or lossless codec on a digital image comprising:
determining if said image has been subjected to a lossy color conversion, said determining if said image has been subjected to a lossy color conversion comprising:
creating a table of non-allowed pixel values; checking each unique pixel value of said image against said table of non-allowed pixel values;
if said image is determined to have been subjected to a lossy color conversion assuming said image is of lossy origin;
if said image is determined not to have been subjected to a lossy color conversion assuming said image is of lossless origin;
if said image is of assumed lossy origin, using a lossy codec to compress and decompress said image.
3. A method for determining whether to employ a lossy or lossless codec on a digital image comprising:
determining if said image has been subjected to a lossy color conversion;
if said image has been subjected to a lossy color conversion assuming said image is of lossy origin;
if said image has not been subjected to a lossy color conversion assuming said image is of lossless origin;
if said image is of assumed lossy origin, using a lossy codec to compress or decompress said image;
wherein said determining if said image has been subjected to a lossy color conversion comprises:
creating a table of non-allowed pixel values; and checking unique pixel values of said image against said table of non-allowed pixel values.