Adaptive color space transform coding
An encoder system may include an analyzer that analyzes a current image area in an input video to select a transform. A selectable residue transformer, controlled by the analyzer, may perform the selectable transform on a residue image generated from the current image area and a predicted current image area, to generate a transformed residue image. An encoder may encode the transformed residue image to generate output data. The analyzer controls the encoder to encode information to identify the selectable transform and to indicate that the selectable transform for the current image area is different from a transform of a previous image area of the input video. A decoder system may include components appropriate for decoding the output data from the encoder system.
1. A non-transitory computer readable medium comprising instructions that, when executed by a processor, cause:
decoding, with a residue decoder, encoded video data to determine transformed residual sample data, wherein the decoding with the residue decoder includes
identifying, from a syntax element of the encoded video data, coefficients of a selected inverse color transform, and
performing an inverse transform and an inverse quantization to produce the transformed residual sample data;
performing the selected inverse color transform using the coefficients on the transformed residual sample data to produce inverse transformed residual sample data; and
generating motion predicted image data using motion prediction;
combining the inverse transformed residual sample data with the motion predicted image data to generate restored image data for the current image area of an output video.
2. The non-transitory computer readable medium of claim 1 , wherein a first color component of the inverse transformed residual sample data is produced based on only one color component of the transformed residual sample data, and the other color components of the inverse transformed residual sample data are predicted based on the first color component of the inverse transformed residual sample data.
3. The non-transitory computer readable medium of claim 1 , wherein the encoded video data is split into individual color components, and wherein processing paths for each color component are separate from each other.
4. The non-transitory computer readable medium of claim 1 , wherein the instructions that cause decoding encoded video data include instructions that cause entropy decoding.
5. The non-transitory computer readable medium of claim 1 , wherein the coefficients includes two coefficients of the selected inverse color transform.
6. The non-transitory computer readable medium of claim 1 , wherein the motion predicted image data is the result of inter prediction.
7. The non-transitory computer readable medium of claim 1 , wherein the motion predicted image data is the result of intra prediction.