Patent ID: 11949726
Assignee: TENCENT AMERICA LLC
Field: Audio-visual technology (Electrical engineering)
Classification: CPC H  G | IPC G  H

Claim 8:
9. A device for selecting a Rice parameter for encoding a video bitstream, the device comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code including:
first obtaining code configured to cause the at least one processor to obtain an absolute level corresponding to a current transform block;
determining code configured to cause the at least one processor to determine whether transform skip is enabled;
generating code configured to cause the at least one processor to generate a lookup variable based on the absolute level and the determination of whether the transform skip is enabled;
second obtaining code configured to cause the at least one processor to obtain the Rice parameter from a single lookup table based on the lookup variable when the transform skip is enabled and when the transform skip is disabled;
second generating code configured to, based on determining that the transform skip is disabled, generate an adjusted variable by adjusting the absolute level based on a base level corresponding to the current transform block;
third generating code configured to generate the lookup variable by clipping the adjusted variable such that, based on the lookup variable being outside a first clipping value and a second clipping value, adjust the lookup variable to be between the first clipping value and the second clipping value; and
encoding code configured to cause the at least one processor to encode a residual subblock based on the Rice parameter.