| CPC H04N 19/44 (2014.11) [H04N 19/105 (2014.11); H04N 19/117 (2014.11); H04N 19/13 (2014.11); H04N 19/159 (2014.11); H04N 19/176 (2014.11); H04N 19/186 (2014.11); H04N 19/46 (2014.11)] | 2 Claims | 

| 
               1. An encoder, comprising: 
            circuitry; 
                memory coupled to the circuitry; 
                wherein the circuitry, in operation: 
              sets a first flag indicating whether a CCALF (cross component adaptive loop filtering) process is enabled for a first block, the first block located adjacent to a left side of a current block; 
                  sets a second flag indicating whether the CCALF process is enabled for a second block, the second block located adjacent to an upper side of the current block; 
                  determines a first index associated with a color component of the current block; 
                  derives a second index indicating a context model, using an equation that is a function of the first flag, the second flag, and the first index, the equation being used to derive a third index indicating another context model for an ALF (adaptive loop filtering) control flag; 
                  performs entropy encoding of a third flag indicating whether the CCALF process is enabled for the current block, using the context model indicated by the second index, and 
                  performs the CCALF process on the current block in response to the third flag indicating the CCALF process is enabled for the current block. 
                 |