CPC H04N 19/184 (2014.11) [H04N 19/176 (2014.11); H04N 19/18 (2014.11); H04N 19/44 (2014.11)] | 17 Claims |
1. An encoding method comprising:
selecting a transform type of a set of a plurality of transform types for a residual block for the picture block and transforming the residual block with the selected transform type into a transformed block comprising a block of transform coefficients,
wherein the selecting comprises determining, for each transform type of the set of the plurality of transform types, a probability that the transform type was used for encoding the picture block, wherein the probability depends on the block of transform coefficients and determining a cost for encoding the picture block associated with each transform type by determining a rate for encoding the index of the transform type based on the determined probabilities;
encoding, in a bitstream, an index identifying the selected transform type based on the determined probabilities;
including the rate for encoding the index of the selected transform type in the cost; and
encoding, in the bitstream, the transformed block.
|