Patent ID: 8279922

Claim:
An apparatus comprising: a processor adapted to receive a quantized frame; determine the number of bits to shave from a given portion of the quantized frame (N SHAVE ); determine for the given portion an initial content size (S INT ), which is defined as the number of bits representing the given portion when initial content information of the given portion of the quantized frame is compressed; determine a reduction threshold (R T ), wherein the reduction threshold is given as R T =N SHAVE /S INT ; determine whether to requantize the given portion of the quantized frame based at least in part upon the reduction threshold; responsive to determining to requantize the given portion of the quantized frame, requantize in the run-level domain the given portion of the quantized frame; and determine a total content size (C T ) of the quantized frame, wherein the total content size (C T ) is defined as the number of bits of the initial content information when the initial content information is compressed, and wherein the number of bits to shave N SHAVE )from the given portion is related to the product of the initial content size (S INT ) times the quotient of number of bits to shave (N S ) from the quantized frame divided by the total content size (C T ) of the quantized frame.