US 12,323,604 B2
Sample adaptive offset
Xiaobo Li, Shanghai (CN); and Tianxiao Ye, Shanghai (CN)
Assigned to Shanghai Bilibili Technology Co., Ltd., Shanghai (CN)
Filed by Shanghai Bilibili Technology Co., Ltd., Shanghai (CN)
Filed on Jun. 20, 2023, as Appl. No. 18/211,790.
Application 18/211,790 is a continuation of application No. PCT/CN2022/077212, filed on Feb. 22, 2022.
Claims priority of application No. 202110287404.3 (CN), filed on Mar. 17, 2021.
Prior Publication US 2023/0336747 A1, Oct. 19, 2023
Int. Cl. H04N 19/182 (2014.01); H04N 19/132 (2014.01)
CPC H04N 19/182 (2014.11) [H04N 19/132 (2014.11)] 19 Claims
OG exemplary drawing
 
1. A method, comprising:
obtaining a residual of each of a plurality of target pixels of a target image, the residual being represented by a first preset number of bits;
determining a maximum residual and a minimum residual of a plurality of residuals of the target image;
determining that the maximum residual and the minimum residual are within a preset value range, wherein the preset value range being a value range that is representable by a second preset number of bits, and the second preset number of bits is less than the first preset number of bits; and
modifying, in response to determining that the maximum residual and the minimum residual are within fall the preset value range, each of the plurality of residuals to be represented by the second preset number of bits.