In-loop filtering method according to adaptive pixel classification standard
View Patent ↗The in-loop filtering method performed by a video decoding apparatus includes: classifying reconstructed samples according to an absolute classification standard or relative classification standard; acquiring offset data on the basis of results of classifying the reconstructed samples; adding an offset value to the reconstructed samples by referencing the acquired offset data; and outputting the offset value-added reconstructed samples. Accordingly, errors in the reconstructed image can be corrected.
1. A method of decoding an image with an image decoding apparatus, comprising:
receiving a bitstream including a current picture;
determining a first split unit by dividing the current picture, the first split unit being divided into a plurality of blocks based on division information signaled from the bitstream;
determining, based on a flag signaled from the bitstream, whether to apply an adaptive scan order scheme to the first split unit, the flag indicating whether to apply the adaptive scan order scheme;
in response to determining that the adaptive scan order scheme is applied to the first split unit, obtaining index information for the first split unit from the bitstream, the index information indicating one of scan candidates pre-defined in the image decoding apparatus;
determining, based on the index information, a scan order of the first split unit among the scan candidates; and
decoding the plurality of blocks belonging to the first split unit according to the determined scan order.
2. The method of claim 1 ,
wherein when the flag is a first value, the adaptive scan order scheme is applied, and
wherein when the flag is a second value, the adaptive scan order scheme is not applied.
3. The method of claim 1 ,
wherein the scan candidates include a first scan candidate having a first scan order from left to right and a second scan order from top to bottom and a second scan candidate having a first scan order from right to left and a second scan order from top to bottom.
4. The method of claim 3 ,
wherein when the scan order of the first split unit is determined as the first scan candidate, a starting point of the scan order is a block located at a top-left of the first split unit.
5. The method of claim 3 ,
wherein when the scan order of the first split unit is determined as the second scan candidate, a starting point of the scan order is a block located at a top-right of the first split unit.
6. The method of claim 1 ,
wherein the division information includes information on whether binary-tree division is supported.
7. A method of encoding an image with an image encoding apparatus, comprising:
determining a first split unit by dividing a current picture, the first split unit being divided into a plurality of blocks;
determining whether to apply an adaptive scan order scheme to the first split unit;
in response to determining that the adaptive scan order scheme is to be applied to the first split unit, determining a scan order of the first split-unit among scan candidates pre-defined in the image encoding apparatus; and
generating a bitstream by encoding the plurality of blocks according to the determined scan order,
wherein the bitstream includes division information on the dividing of the first split unit into the plurality of the blocks, a flag indicating whether to apply the adaptive scan order scheme, and index information indicating one of the scan candidates pre-defined in the image encoding apparatus, and
wherein in response to the determination that the adaptive scan order scheme is applied to the first split unit, the index information is encoded for the first split unit into the bitstream.
8. A non-transitory computer readable medium for storing data associated with a video signal generated by an encoding method,
the encoding method comprising:
determining a first split unit by dividing a current picture, the first split unit being divided into a plurality of blocks;
determining whether to apply an adaptive scan order scheme to the first split unit;
in response to determining that the adaptive scan order scheme is to be applied to the first split unit, determining a scan order of the first split unit among scan candidates pre-defined in the image encoding apparatus; and
generating a bitstream by encoding the plurality of blocks according to the determined scan order,
wherein the bitstream includes division information on the dividing of the first split unit into the plurality of the blocks, a flag indicating whether to apply the adaptive scan order scheme, and index information indicating one of the scan candidates pre-defined in the image encoding apparatus, and
wherein in response to the determination that the adaptive scan order scheme is applied to the first split unit, the index information is encoded for the first split unit into the bitstream.