| CPC H04N 19/13 (2014.11) [H04N 19/18 (2014.11); H04N 19/1887 (2014.11); H04N 19/46 (2014.11); H04N 19/91 (2014.11)] | 33 Claims |

|
1. A method for decoding a picture from a data stream, the method comprising:
identifying a number of available context coded bins for decoding a transform block representing a portion of the picture;
during a decoding pass for at least one position, each position corresponding to a transform coefficient in a subblock of the transform block, starting at a starting position and progressing along a scan order that sequentially traverses the at least one position:
decoding at least one context coded flag at a current position within the subblock,
in response to decoding each of the at least one context coded flag, updating the number of available context coded bins,
after decoding all context coded flags associated with the current position and prior to progressing to a subsequent position immediately following the current position in the scan order, comparing the updated number of available context coded bins to a predefined value, and
terminating the decoding pass, based on the comparison indicating that the updated number of available context coded bins is less than the predefined value; and
after terminating the decoding pass and during at least one additional decoding pass, for each position along the scan order starting from the subsequent position to an ending position within the subblock:
deriving a Rice parameter based on a sum of absolute levels associated with at least one transform coefficient that neighbors a current transform coefficient at a respective position,
decoding a value using Golomb Rice code with the Rice parameter,
deriving a parameter zPos based at least in part on the sum of absolute levels, and
determining an absolute level associated with the current transform coefficient at the respective position based in part on the parameter zPos and the decoded value.
|