Encoding and decoding method, apparatus, and device
AssigneeHangzhou Hikvision Digital Technology Co., Ltd.
InventorsDongping PAN, Xiaoyang WU, Yucheng SUN, Fangdong CHEN
Life of this patent
Estimating the term…
Abstract
The present invention provides an encoding and decoding method, apparatus and device. The method comprises: when a reference pixel of a current block is not available, removing a target prediction mode from an initial prediction mode list corresponding to the current block, so as to obtain a target prediction mode list; and encoding and decoding the current block on the basis of the target prediction mode list. The present invention can improve the encoding performance and the decoding performance.
Claims25
A decoding method, performed by a decoding device, wherein when an intra block copy prediction mode is enabled for a current block, the method comprises:
- when reference pixels outside a left boundary of the current block are not available, and reference pixels outside an upper boundary of the current block are available, determining a first search region corresponding to a first sub block of the current block based on reconstructed pixels outside the upper boundary, and determining reconstructed pixels of the first sub block based on reference pixels of the first search region;
- and
- after obtaining the reconstructed pixels of the first sub block, determining a second search region corresponding to a second sub block of the current block based on reconstructed pixels outside the upper boundary, and determining reconstructed pixels of the second sub block based on reference pixels of the second search region;
- wherein the current block comprises the first sub block and the second sub block.
An encoding method, performed by an encoding device, wherein when an intra block copy prediction mode is enabled for a current block, the method comprises:
- when reference pixels outside a left boundary of the current block are not available, and reference pixels outside an upper boundary of the current block are available, determining a first search region corresponding to a first sub block of the current block based on reconstructed pixels outside the upper boundary, and determining reconstructed pixels of the first sub block based on reference pixels of the first search region;
- and
- after obtaining the reconstructed pixels of the first sub block, determining a second search region corresponding to a second sub block of the current block based on reconstructed pixels outside the upper boundary, and determining reconstructed pixels of the second sub block based on reference pixels of the second search region;
- wherein the current block comprises the first sub block and the second sub block.
A decoding method, performed by a decoding device, comprising;
- decoding a fixed length code corresponding to each sub block within a current block from a bitstream corresponding to the current block;
- for each sub block within the current block, based on the fixed length code corresponding to the sub block, decoding a residual value corresponding to each position within the sub block from the bitstream corresponding to the current block;
- determining whether to decode a sign bit corresponding to the sub block based on a value of the fixed length code corresponding to the sub block;
- in response to determining to decode the sign bit corresponding to the sub block, decoding the sign bit corresponding to the sub block from the bitstream corresponding to the current block;
- and
- when a residual value corresponding to a target position within the sub block is a residual boundary value, determining a sign of the residual boundary value based on the sign bit, wherein the target position is any one position within the sub block.
(canceled)
(canceled)
(canceled)
(canceled)
(canceled)
Dependencies are inferred from the claim text.