A method of decoding at least a part of an encoded image comprising a plurality of samples, each sample comprising a luma component and first and second chroma components, the encoded image comprising at least one filtering parameter, the method comprising decoding the luma component and the first chroma component and the second chroma component of at least one encoded sample to provide a luma component and a first chroma component and a second chroma component of at least one reconstructed sample; decoding the at least one filtering parameter; performing sample adaptive offset filtering on the luma component and the first chroma component and the second chroma component of the at least one reconstructed sample in a loop filter; characterised in that when the sample adaptive offset loop filtering performed on the first chroma component and the second chroma component of the at least one reconstructed sample is of a first type at least one decoded filtering parameter other than an offset is used as a common filtering parameter for performing filtering of the first type on both the first chroma component and the second chroma component of the at least one reconstructed sample, the first type of sample adaptive offset loop filtering being one of edge-type filtering and band-type filtering, and when the sample adaptive offset loop filtering performed on the first chroma component and the second chroma component of the at least one reconstructed sample is of a second type, different from the first type, different decoded filtering parameters are used as dedicated filtering parameters for performing filtering of the second type on the first and second chroma components respectively, the second type of sample adaptive offset loop filtering being the other of edge-type filtering and band-type filtering. decoding the luma component and the first chroma component and the second chroma component of at least one encoded sample to provide a luma component and a first chroma component and a second chroma component of at least one reconstructed sample; decoding the at least one filtering parameter; performing sample adaptive offset filtering on the luma component and the first chroma component and the second chroma component of the at least one reconstructed sample in a loop filter; characterised in that when the sample adaptive offset loop filtering performed on the first chroma component and the second chroma component of the at least one reconstructed sample is of a first type at least one decoded filtering parameter other than an offset is used as a common filtering parameter for performing filtering of the first type on both the first chroma component and the second chroma component of the at least one reconstructed sample, the first type of sample adaptive offset loop filtering being one of edge-type filtering and band-type filtering, and when the sample adaptive offset loop filtering performed on the first chroma component and the second chroma component of the at least one reconstructed sample is of a second type, different from the first type, different decoded filtering parameters are used as dedicated filtering parameters for performing filtering of the second type on the first and second chroma components respectively, the second type of sample adaptive offset loop filtering being the other of edge-type filtering and band-type filtering.