CPC H04N 19/117 (2014.11) [H04N 19/132 (2014.11); H04N 19/136 (2014.11); H04N 19/176 (2014.11); H04N 19/182 (2014.11); H04N 19/186 (2014.11)] | 24 Claims |
1. A filter for use in a video encoding apparatus or a video decoding apparatus to process a current reconstructed block comprising a plurality of pixels, wherein the filter comprises:
a memory configured to store instructions; and
a processor coupled to the memory, wherein the instructions cause the processor to be configured to:
obtain an extended reconstructed block by extending the current reconstructed block to comprise one or more padding samples obtained based on at least one sample from the current reconstructed block;
load a current pixel of the extended reconstructed block and neighboring pixels of the current pixel to a linear buffer according to a predefined scan template;
obtain spectrum components by performing a one-dimensional (1D) transform for pixels in the linear buffer;
obtain filtered spectrum components based on the spectrum components using a lookup table;
obtain filtered pixels by performing an inverse 1D transform for the filtered spectrum components; and
generate a filtered reconstructed block based on the filtered pixels.
|