| CPC H04N 19/186 (2014.11) [H04N 19/176 (2014.11); H04N 19/184 (2014.11)] | 20 Claims |

|
1. An image encoding method comprising:
obtaining, in a first image, each of a first pixel, a second pixel, a third pixel adjacent to the first pixel, and a fourth pixel adjacent to the first pixel;
determining, in the first image, a first color difference signal (Cr) corresponding to the first pixel based on a first pixel value of the first pixel, on a third pixel value of the third pixel, and on a fourth pixel value of the fourth pixel;
determining, in the first image, a second color difference signal (Cb) corresponding to the second pixel based on a second pixel value of the second pixel, on the third pixel value, and on the fourth pixel value, wherein color components of the third pixel and the fourth pixel are the same, and wherein color components of the first pixel, the second pixel, and the third pixel are different;
determining a first average value (Co) of Cr and the Cb and a first difference value (Cg) between the Cr and the Cb;
determining a second difference value (Dg) between the third pixel value and the fourth pixel value;
determining a second average value (Y) of the first pixel value, the second pixel value, the third pixel value, and the fourth pixel value; and
outputting the Dg, the Y, the Co, and the Cg.
|