VIDEO ENCODING DEVICE AND VIDEO DECODING DEVICE
A device is provided with: a first transformer which transforms an coding unit (CU); and a second transformer which transforms a part of first transform coefficients output from the first transformer, wherein the second transformer transforms at least any of the first transform coefficients for a region (first region) having different sizes in a horizontal direction and a vertical direction or the first transform coefficients for a non-rectangular region (second region).
1 . A video encoding device for coding an input video, the video encoding device comprising:
a divider configured to divide a picture of the input video into a coding unit (CU) including multiple pixels;
a transformer configured to perform predetermined transform with the CU as a unit and output transform coefficients;
a quantizer configured to quantize the transform coefficients and output quantization transform coefficients; and
an encoder configured to perform variable-length coding on the quantization transform coefficients, wherein
the transformer includes
a first transformer, and
a second transformer configured to perform transform on a part of first transform coefficients output from the first transformer, and
the second transformer performs transform on at least any of the first transform coefficients for a region (first region) having different sizes in a horizontal direction and a vertical direction, or the first transform coefficients for a non-rectangular region (second region).
2 . The video encoding device according to claim 1 , wherein
the second transformer performs transform for a first region in combination with small size square transform.
3 . The video encoding device according to claim 1 , wherein
the second transformer selects transform for the first region or transform for the second region depending on an intra prediction mode or a scanning direction of transform coefficients.
4 . A video decoding device for decoding a video, the video decoding device comprising:
a decoder configured to perform variable-length decoding on coded data with a coding unit (CU) including multiple pixels as a processing unit, and output quantization transform coefficients;
an inverse quantizer configured to perform inverse quantization on quantization transform coefficients and output transform coefficients; and
an inverse transformer configured to perform inverse transform on the transform coefficients, wherein
the inverse transformer includes
a second inverse transformer configured to perform inverse transform on at least a part of the transform coefficients and outputting second transform coefficients, and
a first inverse transformer configured to perform inverse transform on a remainder of the transform coefficients and the second transform coefficients, and
the second inverse transformer performs inverse transform on at least any of the transform coefficients for a region (first region) having different sizes in a horizontal direction and a vertical direction, or the transform coefficients for a non-rectangular region (second region).
5 . The video decoding device according to claim 4 , wherein
the second inverse transformer performs inverse transform for a first region in combination with small size square inverse transform.
6 . The video decoding device according to claim 4 , wherein
the second inverse transformer selects inverse transform for the first region or inverse transform for the second region depending on an intra prediction mode or a scanning direction of transform coefficients.