Filter location of cross-component sample offset
In a method for video decoding, an offset value in a look up table of a cross-component sample offset (CCSO) filter is determined based on first reconstructed samples in a filter chain after a deblocking filter in the filter chain is applied and before a constrained directional enhancement filter (CDEF) in the filter chain is applied. The offset value of the CCSO filter is applied to second reconstructed samples in the filter chain after the CDEF in the filter chain is applied.
1 . A method for video decoding, the method comprising:
determining an offset value in a look up table of a cross-component sample offset (CCSO) filter based on first reconstructed samples in a filter chain after a deblocking filter in the filter chain is applied and before a constrained directional enhancement filter (CDEF) in the filter chain is applied; and
applying the offset value of the CCSO filter to second reconstructed samples in the filter chain after the CDEF in the filter chain is applied.
2 . The method of claim 1 , wherein the CCSO filter is in parallel to the CDEF in the filter chain.
3 . The method of claim 1 , wherein the first reconstructed samples after the deblocking filter is applied is input to the CCSO filter.
4 . The method of claim 1 , wherein the first reconstructed samples include reconstructed samples at a first node along the filter chain, the first node being located after the deblocking filter and before the CDEF and the CCSO filter.
5 . The method of claim 1 , wherein the second reconstructed samples include reconstructed samples at a second node along the filter chain, the second node being located after the CDEF and the CCSO filter.
6 . The method of claim 5 , wherein the second node is located before a loop restoration (LR) filter in the filter chain.
7 . The method of claim 1 , wherein the first reconstructed samples and the second reconstructed samples correspond to different nodes in the filter chain.
8 . A method for video encoding, the method comprising:
determining an offset value in a look up table of a cross-component sample offset (CCSO) filter based on first reconstructed samples in a filter chain after a deblocking filter in the filter chain is applied and before a constrained directional enhancement filter (CDEF) in the filter chain is applied; and
applying the offset value of the CCSO filter to second reconstructed samples in the filter chain after the CDEF in the filter chain is applied.
9 . The method of claim 8 , wherein the CCSO filter is in parallel to the CDEF in the filter chain.
10 . The method of claim 8 , wherein the first reconstructed samples after the deblocking filter is applied is input to the CCSO filter.
11 . The method of claim 8 , wherein the first reconstructed samples include reconstructed samples at a first node along the filter chain, the first node being located after the deblocking filter and before the CDEF and the CCSO filter.
12 . The method of claim 8 , wherein the second reconstructed samples include reconstructed samples at a second node along the filter chain, the second node being located after the CDEF and the CCSO filter.
13 . The method of claim 12 , wherein the second node is located before a loop restoration (LR) filter in the filter chain.
14 . The method of claim 8 , wherein the first reconstructed samples and the second reconstructed samples correspond to different nodes in the filter chain.
15 . A non-transitory computer-readable storage medium storing instructions which when executed by a processor cause the processor to perform a method of encoding a bitstream comprising:
determining an offset value in a look up table of a cross-component sample offset (CCSO) filter based on first reconstructed samples in a filter chain after a deblocking filter in the filter chain is applied and before a constrained directional enhancement filter (CDEF) in the filter chain is applied;
applying the offset value of the CCSO filter to second reconstructed samples in the filter chain after the CDEF in the filter chain is applied; and
transmitting the bitstream based on the second reconstructed samples to which the offset value of the CCSO filter is applied.
16 . The non-transitory computer-readable storage method of claim 15 , wherein the CCSO filter is in parallel to the CDEF in the filter chain.
17 . The non-transitory computer-readable storage method of claim 15 , wherein the first reconstructed samples after the deblocking filter is applied is input to the CCSO filter.
18 . The non-transitory computer-readable storage method of claim 15 , wherein the first reconstructed samples include reconstructed samples at a first node along the filter chain, the first node being located after the deblocking filter and before the CDEF and the CCSO filter.
19 . The non-transitory computer-readable storage method of claim 15 , wherein the second reconstructed samples include reconstructed samples at a second node along the filter chain, the second node being located after the CDEF and the CCSO filter.
20 . The non-transitory computer-readable storage method of claim 19 , wherein the second node is located before a loop restoration (LR) filter in the filter chain.