Video encoding and decoding method using differential modulation

By applying differential modulation technology in video coding to encode the residual signal of the video sequence, the problem of insufficient compression performance in transform skip mode is solved, and the image quality and coding efficiency are improved.

CN118612435APending Publication Date: 2024-09-06HYUNDAI MOTOR CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410872589.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2019-12-02
Filing Date
2020-12-02
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing video coding technology has insufficient compression performance in transform skip mode, especially the coding efficiency of residual signals in high-frequency regions is low, resulting in poor image quality.

Method used

Differential modulation technology is used to encode the residual signal of the video sequence. By calculating the difference value in the residual signal generated by intra-frame prediction, and performing entropy coding in transform skip mode, the total energy of the encoded residual component is reduced and improved. Compression performance.

Benefits of technology

It improves the compression performance and image quality of video encoding, especially the encoding efficiency in high-frequency areas, reduces the number of bits required for encoding, and improves the compression performance of video sequences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612435A
    Figure CN118612435A
Patent Text Reader

Abstract

The invention relates to a video encoding and decoding method using differential modulation. Video encoding and decoding techniques utilizing differential modulation techniques for residual signals are disclosed to improve compression performance in transform skip mode. Differential modulation techniques can be applied to both luma and chroma components as long as the chroma format is not monochromatic (i.e., not chromaformattc equal to 0).
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the PCT patent application entered into China with Chinese patent application number 202080076349.7, invention name “Video encoding and decoding method using differential modulation”, and application date December 2, 2020.

[0002] CROSS-REFERENCE TO RELATED APPLICATIONS

[0003] This application claims priority to Korean Patent Application No. 10-2019-0158563, filed on December 2, 2019, which is hereby incorporated by reference in its entirety. Technical Field

[0004] The present invention relates to encoding and decoding of video. More particularly, the present invention relates to encoding and decoding of video using a differential modulation technique performed in a transform skip mode. Background Art

[0005] Since the amount of video data is larger than that of voice data or still image data, storing or transmitting the video data without compression processing requires a large amount of hardware resources (including memory).

[0006] Accordingly, when storing or transmitting video data, an encoder is usually used to compress the video data for storage or transmission. Then, a decoder receives the compressed video data, decompresses and reproduces the video data. Compression technologies used for such videos include H.264 / AVC and High Efficiency Video Coding (HEVC), which has an approximately 40% improvement in coding efficiency over H.264 / AVC.

[0007] However, the size, resolution, and frame rate of images constituting video have gradually increased, and therefore, the amount of data to be encoded has also increased, which has given rise to the need for a new compression technology that has better encoding efficiency and can greatly improve image quality. Summary of the invention

[0008] Technical issues

[0009] The present invention relates to a video encoding and decoding technique using a differential modulation technique for a residual signal to improve compression performance in a transform skip mode.

[0010] Technical Solution

[0011] One aspect of the present invention provides a method for decoding a bitstream encoded from a video sequence consisting of multiple images. The method includes decoding information about a chroma sampling format and high-level syntax elements related to differential modulation of a residual signal from a sequence parameter set of the bitstream. Herein, the high-level syntax elements include a control flag indicating whether differential modulation is allowed for the residual signal of the video sequence, and information about the maximum block size for which differential modulation is allowed. The method further includes: when the first block satisfies the conditions defined by the information about the chroma sampling format and the high-level syntax elements, decoding a first chroma syntax element indicating whether differential modulation has been applied to a chroma block corresponding to the first block currently to be decoded; and in response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block, decoding a second chroma syntax element indicating the direction of differential modulation applied to the chroma block. The method further includes: determining a differentially modulated residual block of a chroma block from a bitstream; determining a quantized residual value by differentially demodulating the differentially modulated residual block in a differential modulation direction indicated by a second chroma syntax element; inverse quantizing the quantized residual value of the chroma block; generating a predicted value of the chroma block; and reconstructing the chroma block corresponding to the first block based on the inverse quantized residual value and the predicted value.

[0012] The conditions defined by the information about the chroma sampling format and the high-level syntax elements are satisfied when (1) the control flag indicates that differential modulation is allowed for the video sequence, (2) the value obtained by dividing the width of the first block by the horizontal scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, and (3) the value obtained by dividing the height of the first block by the vertical scaling factor determined by the chroma sampling format is less than or equal to the maximum block size.

[0013] One aspect of the present invention provides an apparatus for decoding a video sequence consisting of a plurality of images. The apparatus includes an apparatus for decoding information about a chroma sampling format and a high-level syntax element related to differential modulation of a residual signal from a sequence parameter set of a bitstream. In this article, the high-level syntax element includes a control flag indicating whether differential modulation is allowed for the residual signal of the video sequence, and information about the maximum block size for which differential modulation is allowed. The apparatus further includes: a device for decoding a first chroma syntax element indicating whether differential modulation has been applied to a chroma block corresponding to the first block when the first block to be decoded currently satisfies the conditions defined by the information about the chroma sampling format and the high-level syntax element; and a device for decoding a second chroma syntax element indicating the direction of differential modulation applied to the chroma block in response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block. The apparatus further includes: a device for determining a differentially modulated residual block of the chroma block from the bitstream; and a device for determining a quantized residual value by differentially demodulating the differentially modulated residual block in the differential modulation direction indicated by the second chroma syntax element. The apparatus further includes: a device for inverse quantizing the quantized residual value of the chroma block; a device for generating a predicted value of the chroma block; and a device for reconstructing the chroma block corresponding to the first block based on the inverse quantized residual value and the predicted value.

[0014] One aspect of the present invention provides a method for encoding a video sequence consisting of multiple images. The method includes encoding information about a chroma sampling format and a high-level syntax element related to differential modulation of a residual signal in a sequence parameter set of a bitstream. Herein, the high-level syntax element includes a control flag indicating whether differential modulation is allowed for the residual signal of the video sequence, and information about the maximum block size that allows differential modulation. The method further includes: when the first block to be decoded currently satisfies the conditions defined by the information about the chroma sampling format and the high-level syntax element, encoding a first chroma syntax element indicating whether differential modulation has been applied to the chroma block corresponding to the first block; and in response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block, encoding a second chroma syntax element indicating the direction of differential modulation applied to the chroma block. The method further includes: generating predicted values ​​of the chroma block; determining a residual block of the chroma block based on the original sample values ​​of the chroma block and the predicted values; generating quantized residual values ​​by quantizing the residual block of the chroma block; determining differentially modulated residual values ​​by differentially modulating the quantized residual values ​​in the differential modulation direction indicated by the second chroma syntax element; and encoding the differentially modulated residual values ​​in the bitstream. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1is an exemplary block diagram of a video encoding device capable of implementing the technology of the present invention.

[0016] Figure 2 is a schematic diagram showing block partitioning using the QTBTTT structure.

[0017] Figure 3 is a schematic diagram showing multiple intra prediction modes.

[0018] Figure 4 is an exemplary block diagram of a video decoding device capable of implementing the technology of the present invention.

[0019] Figure 5a and Figure 5b is an exemplary diagram for describing a differential modulation technique according to the present invention.

[0020] Figure 6 is a flow chart for describing a method of encoding a video sequence by utilizing a differential modulation technique according to an embodiment of the present invention.

[0021] Figure 7 is a flow chart for describing a method of encoding a block of a video using a differential modulation technique according to an embodiment of the present invention.

[0022] Figure 8 is a flow chart for describing a method of decoding a video sequence by utilizing a differential modulation technique according to an embodiment of the present invention.

[0023] Fig. 9 is a flow chart for describing a method of decoding a block of a video using a differential modulation technique according to an embodiment of the present invention. DETAILED DESCRIPTION

[0024] Hereinafter, some embodiments of the present invention will be described in detail with reference to the attached drawings. It should be noted that when assigning reference numerals to constituent elements in the various drawings, the same reference numerals indicate the same elements, although the elements are shown in different drawings. In addition, in the following description of the present invention, the detailed description of the known functions and configurations incorporated herein will be omitted to avoid blurring the subject matter of the present invention.

[0025] Figure 1 is an exemplary block diagram of a video encoding device capable of implementing the technology of the present invention. Figure 1 A video encoding apparatus and elements of the apparatus are described below.

[0026] The video encoding apparatus includes an image divider 110 , a predictor 120 , a subtractor 130 , a transformer 140 , a quantizer 145 , a reorganizer 150 , an entropy encoder 155 , an inverse quantizer 160 , an inverse transformer 165 , an adder 170 , a loop filter unit 180 , and a memory 190 .

[0027] Each element of the video encoding device may be implemented in hardware or software, or a combination of hardware and software. The functions of each element may be implemented as software, and a microprocessor may be implemented to execute the software functions corresponding to each element.

[0028] A video includes multiple images. Each image is divided into multiple regions, and encoding is performed on each region. For example, an image is divided into one or more tiles and / or slices. Here, one or more tiles can be defined as a tile group. Each tile or slice is divided into one or more coding tree units (coding treeunit, CTU). Each CTU is divided into one or more coding units (coding unit, CU) through a tree structure. The information applied to each CU is encoded as the syntax of the CU, and the information commonly applied to the CU included in a CTU is encoded as the syntax of the CTU. In addition, the information commonly applied to all blocks in a slice is encoded as the syntax of the slice header, and the information applied to all blocks constituting one or more images is encoded in the picture parameter set (Picture Parameter Set, PPS) or the picture header. In addition, the information commonly referenced by a sequence consisting of multiple images is encoded in the sequence parameter set (Sequence Parameter Set, SPS). The information commonly applied to a tile or tile group can be encoded as the syntax of the tile header or tile group header.

[0029] The image divider 110 determines the size of a coding tree unit (CTU). Information on the size of the CTU (CTU size) is encoded as a syntax of an SPS or a PPS and transmitted to a video decoding apparatus.

[0030] The image divider 110 divides each image constituting a video into a plurality of CTUs having a predetermined size, and then recursively divides the CTUs using a tree structure. In the tree structure, a leaf node is used as a coding unit (CU), which is a basic unit of coding.

[0031] The tree structure can be a quadtree (QuadTree, QT), a binary tree (BinaryTree, BT), a ternary tree (TernaryTree, TT), or a structure formed by a combination of two or more QT structures, BT structures and TT structures, wherein the quadtree (QT) is a node (or parent node) that is divided into four slave nodes (or child nodes) of the same size, the binary tree (BT) is a node that is divided into two slave nodes, and the ternary tree (TT) is a node that is divided into three slave nodes at a ratio of 1:2:1. For example, a quadtree plus binary tree (QuadTree plus BinaryTree, QTBT) structure can be used, or a quadtree plus binary tree ternary tree (QuadTree plus BinaryTree TernaryTree, QTBTTT) structure can be used. Here, BTTT can be collectively referred to as a multiple-type tree (MTT).

[0032] Figure 2 The QTBTTT segmentation tree structure is shown as an example. Figure 2 As shown, the CTU can be first split into a QT structure. The QT splitting can be repeated until the size of the split block reaches the minimum block size MinQTSize of the leaf node allowed in the QT. The first flag (QT_split_flag) indicating whether each node of the QT structure is split into four nodes of the lower layer is encoded by the entropy encoder 155 and notified to the video decoding device by a signal. When the leaf node of the QT is not larger than the maximum block size (MaxBTSize) of the root node allowed in the BT, it can be further split into one or more BT structures or TT structures. The BT structure and / or the TT structure can have multiple splitting directions. For example, there can be two directions, namely, a direction of splitting the blocks of nodes horizontally and a direction of splitting the blocks vertically. As Figure 2As shown, when the MTT splitting starts, the second flag (mtt_split_flag) indicating whether the node is split, the flag indicating the splitting direction (vertical or horizontal) in the case of splitting, and / or the flag indicating the splitting type (binary or trifurcated) are encoded by the entropy encoder 155, and the signal is notified to the video decoding device. Alternatively, before encoding the first flag (QT_split_flag) indicating whether each node is split into 4 nodes of the lower layer, the CU split flag (split_cu_flag) indicating whether the node is split can be encoded. When the value of the CU split flag (split_cu_flag) indicates that the splitting is not performed, the block of the node becomes a leaf node in the split tree structure and is used as a coding unit (CU), which is a basic unit of encoding. When the value of the CU split flag (split_cu_flag) indicates that the splitting is performed, the video encoding device starts to encode the flags from the first flag in the above-mentioned manner.

[0033] When QTBT is used as another example of a tree structure, there may be two types of segmentation, namely, a type of horizontally segmenting a block into two blocks of the same size (i.e., symmetrical horizontal segmentation) and a type of vertically segmenting a block into two blocks of the same size (i.e., symmetrical vertical segmentation). A segmentation flag (split_flag) indicating whether each node of the BT structure is segmented into blocks of the lower layer and segmentation type information indicating the segmentation type are encoded by the entropy encoder 155 and transmitted to the video decoding device. There may be an additional type of segmenting a block of a node into two asymmetric blocks. An asymmetric segmentation type may include a type of segmenting a block into two rectangular blocks at a size ratio of 1:3, or a type of segmenting a block of a node diagonally.

[0034] A CU may have various sizes according to the QTBT or QTBTTT partitioning of a CTU. Hereinafter, a block corresponding to a CU to be encoded or decoded (i.e., a leaf node of a QTBTTT) is referred to as a "current block". When QTBTTT partitioning is adopted, the shape of the current block may be a square or a rectangle.

[0035] The predictor 120 predicts the current block to generate a predicted block. The predictor 120 includes an intra predictor 122 and an inter predictor 124.

[0036] The intra-frame predictor 122 predicts pixels in the current block using pixels (reference pixels) located around the current block in the current image including the current block. There are multiple intra-frame prediction modes according to the prediction direction. For example, Figure 3As shown, the plurality of intra prediction modes may include 2 non-directional modes and 65 directional modes, the 2 non-directional modes including a planar mode and a DC mode. Neighboring pixels and equations to be used are defined differently for each prediction mode.

[0037] The intra-frame predictor 122 may determine an intra-frame prediction mode to be used when encoding the current block. In some examples, the intra-frame predictor 122 may encode the current block using several intra-frame prediction modes and select an appropriate intra-frame prediction mode to be used from the tested modes. For example, the intra-frame predictor 122 may calculate a rate-distortion value using a rate-distortion analysis of several tested intra-frame prediction modes and may select an intra-frame prediction mode having the best rate-distortion characteristic from the tested modes.

[0038] The intra predictor 122 selects an intra prediction mode from a plurality of intra prediction modes and predicts the current block using adjacent pixels (reference pixels) and equations determined according to the selected intra prediction mode. Information about the selected intra prediction mode is encoded by the entropy encoder 155 and transmitted to the video decoding device.

[0039] The inter-frame predictor 124 generates a prediction block of the current block by motion compensation. The inter-frame predictor 124 searches for a block most similar to the current block in a reference image that has been encoded and decoded earlier than the current image, and uses the searched block to generate a prediction block of the current block. Then, the inter-frame predictor generates a motion vector corresponding to the displacement between the current block in the current image and the prediction block in the reference image. Usually, motion estimation is performed on the luminance (luma) component, and the motion vector calculated based on the luminance component is used for both the luminance component and the chrominance component. The motion information including information about the reference image and information about the motion vector for predicting the current block is encoded by the entropy encoder 155 and transmitted to the video decoding device. The inter-frame predictor 124 can perform interpolation on the reference image or reference block to increase the accuracy of the prediction. That is, sub-pixels are interpolated between two consecutive integer pixels by applying filter coefficients to a plurality of consecutive integer pixels including two integer pixels. When performing the process of searching for the block most similar to the current block of the interpolated reference image, the motion vector may be expressed not as integer pixel precision but as fractional unit precision. The precision or resolution of the motion vector may be set differently for each unit of the target area to be encoded, for example, a slice, a tile, a CTU, or a CU.

[0040] The subtractor 130 subtracts the prediction block generated by the intra predictor 122 or the inter predictor 124 from the current block to generate a residual block.

[0041] The transformer 140 may transform the residual signal in the residual block. The two-dimensional size of the residual block may be used as a transform unit (hereinafter "TU") of a block size for performing the transform. Alternatively, the residual block may be partitioned into a plurality of sub-blocks, and each sub-block may be used as a TU to transform the residual signal within the corresponding sub-block.

[0042] The transformer 140 may divide the residual block into one or more sub-blocks and apply a transform to the one or more sub-blocks, thereby transforming the residual value of the transform block from the pixel domain to the frequency domain. In the frequency domain, the transform block is referred to as a coefficient block or a transform block containing one or more transform coefficient values. A two-dimensional transform kernel may be used for the transform, and a one-dimensional transform kernel may be used for horizontal transform and vertical transform, respectively. The transform kernel may be based on a discrete cosine transform (DCT), a discrete sine transform (DST), etc.

[0043] The transformer 140 may transform the residual block separately in the horizontal direction and the vertical direction. For the transformation, various types of transformation functions or transformation matrices may be used. For example, a pair of transformation functions for transforming in the horizontal direction and the vertical direction may be defined as a multiple transform set (MTS). The transformer 140 may select a pair of transformation functions with the best transformation efficiency in the MTS, and transform the residual block in the horizontal direction and the vertical direction, respectively. The information (mts_idx) about the transformation function pair selected from the MTS is encoded by the entropy encoder 155 and notified to the video decoding device with a signal.

[0044] The quantizer 145 quantizes the transform coefficients output from the transformer 140 using the quantization parameters, and outputs the quantized transform coefficients to the entropy encoder 155. For some blocks or frames, the quantizer 145 may directly quantize the relevant residual block without transformation. The quantizer 145 may apply different quantization coefficients (scaling values) according to the position of the transform coefficients in the transform block. The quantization coefficient matrix (which is applied to the quantized transform coefficients arranged in two dimensions) may be encoded and signaled to the video decoding device.

[0045] The reorganizer 150 can reorganize the coefficient values ​​of the quantized residual values. The reorganizer 150 can change the 2D coefficient array into a 1D coefficient sequence by coefficient scanning. For example, the reorganizer 150 can scan the coefficients from the DC coefficient to the coefficients in the high frequency region using a zig-zag scan or a diagonal scan to output a 1D coefficient sequence. According to the size of the transform unit and the intra-frame prediction mode, the zig-zag scan can be replaced by a vertical scan or a horizontal scan, wherein the vertical scan scans the 2D coefficient array in the column direction, and the horizontal scan scans the coefficients in the 2D block shape in the row direction. That is, the scanning mode to be used can be determined among the zig-zag scan, the diagonal scan, the vertical scan, and the horizontal scan according to the size of the transform unit and the intra-frame prediction mode.

[0046] The entropy encoder 155 encodes the one-dimensional quantized transform coefficient output from the reassembler 150 using various encoding techniques such as Context-based Adaptive Binary Arithmetic Code (CABAC) and exponential Golomb to generate a bitstream.

[0047] The entropy encoder 155 encodes information related to block segmentation (e.g., CTU size, CU segmentation flag, QT segmentation flag, MTT segmentation type, and MTT segmentation direction) so that the video decoding device can segment the block in the same manner as the video encoding device. In addition, the entropy encoder 155 encodes information about the prediction type indicating whether the current block is encoded by intra-frame prediction or inter-frame prediction, and encodes intra-frame prediction information (i.e., information about the intra-frame prediction mode) or inter-frame prediction information (information about the reference image index and motion vector) according to the prediction type. In addition, the entropy encoder 155 encodes information related to quantization (i.e., information about the quantization parameter and information about the quantization matrix).

[0048] The inverse quantizer 160 inversely quantizes the quantized transform coefficient output from the quantizer 145 to generate a transform coefficient. The inverse transformer 165 transforms the transform coefficient output from the inverse quantizer 160 from the frequency domain to the spatial domain, and reconstructs a residual block.

[0049] The adder 170 adds the reconstructed residual block and the prediction block generated by the predictor 120 to reconstruct the current block. Pixels in the reconstructed current block are used as reference pixels when performing intra prediction of a subsequent block.

[0050] The loop filter unit 180 filters the reconstructed pixels to reduce blocking artifacts, ringing artifacts, and blurring artifacts caused by block-based prediction and transform / quantization. The loop filter unit 180 may include one or more of a deblocking filter 182, a sample adaptive offset (SAO) filter 184, or an adaptive loop filter (ALF) 186.

[0051] The deblocking filter 182 filters the boundaries between the reconstructed blocks to remove block artifacts caused by block-by-block encoding / decoding, and the SAO filter 184 performs additional filtering on the deblocking filtered video. The SAO filter 184 is a filter for compensating for the difference between the reconstructed pixels and the original pixels caused by lossy coding, and performs filtering in a manner of adding the corresponding offset to each reconstructed pixel. The ALF 186 performs filtering on the target pixel to be filtered by applying the filter coefficient to the target pixel and the neighboring pixels of the target pixel. The ALF 186 can divide the pixels included in the image into predetermined groups, and then determine a filter to be applied to the corresponding group to perform filtering on each group differentially. Information about the filter coefficient to be used for the ALF can be encoded and notified to the video decoding device with a signal.

[0052] The reconstructed blocks filtered by the loop filtering unit 180 are stored in the memory 190. Once all blocks in one image are reconstructed, the reconstructed image may be used as a reference image for inter-frame prediction of blocks in a subsequent image to be encoded.

[0053] Figure 4 is an exemplary functional block diagram of a video decoding device capable of implementing the technology of the present invention. Figure 4 A video decoding apparatus and elements of the apparatus are described below.

[0054] The video decoding apparatus may include an entropy decoder 410 , a reorganizer 415 , an inverse quantizer 420 , an inverse transformer 430 , a predictor 440 , an adder 450 , a loop filtering unit 460 , and a memory 470 .

[0055] Similar to Figure 1 In the video encoding device of the present invention, each element of the video decoding device can be implemented by hardware, software, or a combination of hardware and software. In addition, the function of each element can be implemented by software, and the microprocessor can be implemented to execute the software function corresponding to each element.

[0056] The entropy decoder 410 determines a current block to be decoded by decoding a bit stream generated by a video encoding device and extracting information related to block partitioning, and extracts prediction information required to reconstruct the current block, information about a residual signal, and the like.

[0057] The entropy decoder 410 extracts information about the CTU size from a sequence parameter set (SPS) or a picture parameter set (PPS), determines the size of the CTU, and divides the image into CTUs of the determined size. Then, the decoder determines the CTU as the highest level (i.e., the root node) of the tree structure, and extracts partition information about the CTU to partition the CTU using the tree structure.

[0058] For example, when the CTU is segmented using the QTBTTT structure, the first flag (QT_split_flag) related to the segmentation of the QT is extracted to segment each node into four nodes of the sublayer. For the node corresponding to the leaf node of the QT, the second flag (MTT_split_flag) related to the segmentation of the MTT and the information about the segmentation direction (vertical / horizontal) and / or the segmentation type (binary / trifurcated) are extracted to segment the corresponding leaf node with the MTT structure. Thus, each node below the leaf node of the QT is recursively segmented with the BT or TT structure.

[0059] As another example, when a CTU is split using a QTBTTT structure, a CU split flag (split_cu_flag) indicating whether the CU is split may be extracted. When the corresponding block is split, a first flag (QT_split_flag) may be extracted. In a split operation, after zero or more recursive QT splits, zero or more recursive MTT splits may occur for each node. For example, a CTU may directly undergo MTT splitting without undergoing QT splitting, or may only undergo QT splitting multiple times.

[0060] As another example, when the CTU is segmented using the QTBT structure, the first flag (QT_split_flag) related to the QT segmentation is extracted, and each node is segmented into four nodes of the lower layer. Then, the segmentation flag (split_flag) indicating whether the node corresponding to the leaf node of the QT is further segmented with the BT and the segmentation direction information are extracted.

[0061] Once the current block to be decoded is determined through tree structure partitioning, the entropy decoder 410 extracts information about the prediction type indicating whether the current block is intra-predicted or inter-predicted. When the prediction type information indicates intra-prediction, the entropy decoder 410 extracts syntax elements of intra-prediction information (intra-prediction mode) of the current block. When the prediction type information indicates inter-prediction, the entropy decoder 410 extracts syntax elements for inter-prediction information (i.e., information indicating a motion vector and a reference image referenced by the motion vector).

[0062] The entropy decoder 410 also extracts information about the quantized transform coefficient of the current block as information related to quantization and information about the residual signal.

[0063] The reorganizer 415 may change a sequence of one-dimensional quantized transform coefficients entropy-decoded by the entropy decoder 410 into a 2-dimensional coefficient array (ie, block) in the reverse order of coefficient scanning performed by the video encoding apparatus.

[0064] The inverse quantizer 420 inversely quantizes the quantized transform coefficients using the quantization parameters. The inverse quantizer 420 may apply different quantization coefficients (scaling values) to the quantized transform coefficients arranged in two dimensions. The inverse quantizer 420 may perform inverse quantization by applying a quantization coefficient (scaling value) matrix from a video encoding device to a 2-dimensional array of quantized transform coefficients.

[0065] The inverse transformer 430 inversely transforms the inversely quantized transform coefficient from the frequency domain to the spatial domain to reconstruct the residual signal, thereby generating a reconstructed residual block of the current block. In addition, when MTS is applied, the inverse transformer 430 determines the transform function or transform matrix to be applied in the horizontal direction and the vertical direction, respectively, using the MTS information (mts_idx) signaled from the video encoding device, and inversely transforms the transform coefficient in the transform block in the horizontal direction and the vertical direction using the determined transform function.

[0066] The predictor 440 may include an intra predictor 442 and an inter predictor 444. The intra predictor 442 is activated when the prediction type of the current block is intra prediction, and the inter predictor 444 is activated when the prediction type of the current block is inter prediction.

[0067] The intra predictor 442 determines an intra prediction mode of a current block among a plurality of intra prediction modes based on a syntax element of the intra prediction mode extracted from the entropy decoder 410 , and predicts the current block using reference pixels around the current block according to the intra prediction mode.

[0068] The inter predictor 444 determines a motion vector of a current block and a reference image referred to by the motion vector using a syntax element of the intra prediction mode extracted from the entropy decoder 410 , and predicts the current block based on the motion vector and the reference image.

[0069] The adder 450 reconstructs the current block by adding the residual block output from the inverse transformer to the prediction block output from the inter-frame predictor or the intra-frame predictor. When intra-predicting a subsequent block to be decoded, the pixels in the reconstructed current block are used as reference pixels.

[0070] The loop filtering unit 460 may include at least one of a deblocking filter 462, an SAO filter 464, and an ALF 466. The deblocking filter 462 performs deblocking filtering on the boundaries between the reconstructed blocks to remove block artifacts caused by block-by-block decoding. The SAO filter 464 performs filtering in a manner of adding the reconstructed blocks after deblocking filtering the corresponding offsets so as to compensate for the difference between the reconstructed pixels and the original pixels caused by lossy coding. The ALF 466 performs filtering on the target pixel to be filtered by applying the filter coefficients to the target pixel and the neighboring pixels of the target pixel. The ALF 466 may divide the pixels in the image into predetermined groups, and then determine a filter to be applied to the corresponding group to perform filtering differentially on each group. The filter coefficients of the ALF are determined based on information about the filter coefficients decoded from the bitstream.

[0071] The reconstructed blocks filtered by the loop filtering unit 460 are stored in the memory 470. When all blocks in one image are reconstructed, the reconstructed image is used as a reference image for inter-frame prediction of blocks in a subsequent image to be encoded.

[0072] In general, the techniques of the present invention relate to applying differential modulation techniques to residual blocks of blocks encoded in transform skip mode. The following description focuses primarily on the decoding techniques, that is, the operation of the video decoder. The description of the encoding techniques is simplified as opposed to the decoding techniques, which are described in full.

[0073] In general, a video encoding device transforms a residual signal into a transform coefficient in the frequency domain, encodes the transform coefficient, and notifies the video decoding device with a signal. The video decoding device inversely transforms the transform coefficient into a residual signal in the spatial domain. However, most of the transform coefficients generated as a result of the transform may be located in a high frequency region, depending on the characteristics of the video signal or the residual signal. In this case, encoding the transform coefficients in the frequency domain obtained by the transform may reduce the encoding efficiency compared to directly encoding the residual signal in the spatial domain.

[0074] The transform skip (TS) mode is a technique for entropy encoding a residual signal without transforming the residual signal into a signal in the frequency domain. That is, the residual signal in the spatial domain or the quantized residual signal can be entropy encoded directly without transforming into the frequency domain. In general, the transform skip mode is not better than the discrete cosine transform (DCT) in coding performance. However, due to the boundaries of graphic elements with high color contrast, certain types of content (e.g., screen content) may include many residuals in high-frequency areas. Therefore, the transform skip mode may be useful.

[0075] Whether the transform skip mode is applied can be signaled for each transform unit (TU) as a unit of transform (block size). That is, the video encoding device encodes information indicating whether the transform skip mode is applied for each transform unit, such as a transform skip flag (transform_skip_flag[x0][y0][cIdx]), and transmits it to the video decoding device. Here, (x0, y0) is the upper left position of the transform unit in the current image, and cIdx is an indicator for indicating a color component, where a value of "0" represents brightness, a value of "1" represents Cb for chrominance, and a value of "2" represents Cr for chrominance.

[0076] On the other hand, whether the transform skip mode is enabled may be defined in a high-level syntax structure (e.g., SPS or PPS). For example, the video encoding device encodes a transform skip enabled flag (transform_skip_flag) indicating whether the transform skip mode is enabled as the syntax of the SPS. If the transform skip mode is not enabled (e.g., transform_skip_enabled_flag=0), the transform_skip_flag of each transform unit within the corresponding sequence is not encoded, and the residual signal in all transform units is transformed. If the transform_skip_flag does not exist in the bitstream, the video decoding device sets the transform_skip_enabled_flag=0 and performs an inverse transform on the received residual signal (transform coefficient). On the other hand, if the transform skip mode is enabled (e.g., transform_skip_enabled_flag=1), the transform_skip_flag indicating whether the transform skip is applied may be signaled for each transform unit. The video decoding device performs or skips the transform of the transform unit according to the transform_skip_flag corresponding to the transform unit.

[0077] On the other hand, the maximum size of the transform unit to which transform skipping is applicable may be limited to MaxTsSize. The maximum size MaxTsSize may be a scalar value indicating the length of one side of the maximum transform unit for which transform skipping is allowed, and may be a fixed value, such as 32 or 64. Alternatively, the video encoding device may encode a syntax element indicating the maximum size MaxTsSize of a block to which transform skipping mode is applicable as a high-level syntax structure, such as an SPS or a PPS, and may pass the syntax element to the video decoding device. For example, the maximum size MaxTsSize of a block to which transform skipping mode is applicable may be controlled by the syntax element log2_transform_skip_max_size_minus2 in a sequence parameter set (SPS). In this case, the maximum size (MaxTsSize) of a block to which transform skipping mode is applicable is determined as follows.

[0078] MaxTsSize=1<<(log2_transform_skip_max_size_minus2+2)

[0079] The residual signal within a transform unit whose width or height is greater than MaxTsSize is always encoded after being transformed into transform coefficients. That is, for a transform unit whose width or height is greater than MaxTsSize, transform skipping is not allowed. Accordingly, the video encoding device does not encode transform_skip_flag with respect to a transform unit whose width or height is greater than MaxTsSize. If transform_skip_flag does not exist in the bitstream, the video decoding device inversely transforms the transform coefficients within the corresponding transform unit into a residual signal. On the contrary, transform_skip_flag is encoded with respect to a transform unit whose width and height are equal to or less than MaxTsSize. Accordingly, the video decoding device determines whether to perform an inverse transform based on the value of transform_skip_flag.

[0080] It has been described above that the maximum size (MaxTsSize) of a block to which the transform skip mode is applicable is a scalar value compared to the width and height of the transform unit (block), but the present invention is not limited thereto. That is, in order to limit the size of a block to which the transform skip mode is applicable, the maximum size may be individually defined or determined with respect to the width and height of each transform unit to which the transform skip mode may be allowed. In this case, each syntax element indicating the maximum width and maximum height of the transform unit to which the transform skip mode may be allowed may be signaled.

[0081] In this case, the disabling condition of the transform skip mode related to the size of the block can be controlled differently with respect to the width and height of the block. That is, the maximum width (MaxTsSizeX) and maximum height (MaxTsSizeY) of the block to which the transform skip mode is applicable can be controlled separately. This may be useful due to the adoption of QTBTTT partitioning, since the shape of the block can be either rectangular or square.

[0082] In other embodiments, such control may be achieved by introducing syntax elements log2_transform_skip_max_size_X_minus2 and log2_transform_skip_max_size_Y_minus2 signaled in the SPS. In this case, the maximum width (MaxTsSizeX) and maximum height (MaxTsSizeY) of a block for which the transform skip mode is applicable are determined as follows.

[0083] MaxTsSizeX=1<<(log2_transform_skip_max_size_X_minus2+2)

[0084] MaxTsSizeY=1<<(log2_transform_skip_max_size_Y_minus2+2)

[0085] In some other embodiments, the video encoder may signal the syntax element log2_transform_skip_max_size_minus2 indicating MaxTsSize in the SPS. The video decoder may derive MaxTsSizeX and MaxTsSizeY based on the ratio of the width (CbWidth) and height (CbHeight) of the block from MaxTsSize. Specifically, the following exemplary method may be used.

[0086] (a) The scaling factor (S) is derived as follows.

[0087] S=max(CbWidth, CbHeight) / min(CbWidth, CbHeight)

[0088] (b) Determine whether to apply transform skip mode by applying MaxTsSize in the direction where CbWidth and CbHeight are larger or equal.

[0089] (c) Determine whether to apply transform skip mode by applying MaxTsSize in the smaller direction of CbWidth and CbHeight.

[0090] In the following, a differential modulation technique capable of improving the compression performance of blocks encoded in transform skip mode is described.

[0091] The differential modulation technique can be used to encode the residual signal generated by intra prediction. When used in conjunction with the transform skip mode, the differential modulation technique can provide further improved compression performance by reducing the total energy of the residual components for entropy coding. A method of applying differential modulation to a target block will be described below. Here, the target block can be a CU. Alternatively, the target block can be a TU. In the following, for ease of explanation, it is assumed that the target block is a CU.

[0092] 1. Differential modulation / decoding process

[0093] Figure 5a and Figure 5b are example diagrams for describing the differential modulation technique according to the present invention.

[0094] Differential modulation can be performed in the horizontal direction or the vertical direction. If differential modulation in the horizontal direction (e.g., Figure 5a as shown in ) is performed, the video coding device calculates the difference between the target residual signal to be encoded within the residual block and the adjacent residual signal to the left of the target residual signal within the residual block. In addition, the video coding device performs entropy coding on the difference instead of the value of the target residual signal itself. After applying the horizontal direction differential modulation technique to the residual signal r of a block of size N×M (N and M are natural numbers) i,j the resulting residual signal r i,j (0 ≤ i < M - 1, i is a natural number) can be represented by Equation 1. That is, the residual signal at position (i, j) is modified by subtracting the residual signal at position (i, j - 1). Here, (i, j) represents the i-th row and the j-th column.

[0095] [Equation 1]

[0096]

[0097] Here, Q(r) represents the quantized residual signal. Differential modulation can be applied to the quantized residual signal that has skipped the transform.

[0098] As shown in Equation 1, in the case of horizontal direction differential modulation, the video coding device performs entropy coding on the residual signal and then transmits it to the video decoding device. Differential modulation in the horizontal direction can be performed sequentially for all columns of the block.

[0099] On the other hand, if as Figure 5bWhen performing vertical differential modulation as shown, the video encoding device calculates the difference between the target residual signal to be encoded in the residual block and the adjacent residual signal above the target residual signal in the residual block. In addition, the video encoding device performs entropy encoding on the difference instead of the value of the target residual signal itself. When applying the vertical differential modulation technique to the residual signal r of a block of size N×M (M and N are natural numbers) i,j After that, the resulting residual signal r i,j (0 ≤ j < N - 1, j is a natural number) can be represented by Equation 2. That is, the residual signal at position (i, j) is modified by subtracting the residual signal at position (i - 1, j) from the residual signal at position (i, j). Here, (i, j) represents the i-th row and the j-th column.

[0100] [Equation 2]

[0101]

[0102] As shown in Equation 2, in the case of vertical differential modulation, the video encoding device performs entropy encoding on the residual signal and then transmits it to the video decoding device. Vertical differential modulation can be performed sequentially on all rows of the block.

[0103] If the horizontal differential modulation technique has been applied, the video decoding device reconstructs the residual signal as shown in Equation 3. That is, the video decoding device modifies the residual signal (i.e., the differentially modulated residual signal) in the residual block reconstructed from the bitstream through the inverse process of horizontal differential modulation (hereinafter referred to as "differential demodulation"). The target residual signal to be modified in the residual signal is modified in such a way that the left residual signal to the left of the target residual signal in the same row as the target residual signal is added to the target residual signal.

[0104] [Equation 3]

[0105]

[0106] On the other hand, if the vertical differential modulation technique has been applied, the video decoding device reconstructs the residual signal as shown in Equation 4. That is, the video decoding device modifies the residual signal (i.e., the differentially modulated residual signal) in the residual block reconstructed from the bitstream based on the vertical differential modulation. The target residual signal to be modified in the reconstructed residual block is modified in such a way that the upper residual signal above the target residual signal in the same column as the target residual signal is added to the target residual signal.

[0107] [Equation 4]

[0108]

[0109] The residual signal modified based on the differential demodulation is inversely quantized and then added to the predicted pixels.

[0110] The video encoding apparatus transmits information on whether differential modulation is applied to the target block to be encoded and the direction of the differential modulation to the video decoding apparatus by signaling. This will be described later.

[0111] The differential modulation technique may be applied to the residual signal generated by intra prediction. In other words, if it is determined that the differential modulation technique is applied to the target block, the target block is predicted using intra prediction.

[0112] The intra prediction mode of the target block can be derived from the direction of the differential modulation. In other embodiments, the intra prediction mode of the target block is inferred to be the same as the direction of the differential modulation. The residual signal of the intra prediction tends to have a similar pattern in the intra prediction direction. Accordingly, if the differential modulation is applied in the same direction as the intra prediction direction, the coding efficiency can be improved because the difference between the residual signals is small.

[0113] Accordingly, for a block to which differential modulation is applied, the intra predictors 122 and 422 of the video encoding apparatus and the video decoding apparatus select an intra prediction mode (eg, Figure 3 INTRA_ANGULAR18 or INTRA_ANGULAR50 in the differential modulation scheme is set to the intra prediction mode of the target block. This means that information about the intra prediction mode does not need to be signaled. By inferring the intra prediction mode of the block to which differential modulation has been applied according to the direction of differential modulation, bits required for encoding information about the intra prediction mode of the block are removed. That is, the number of bits transmitted is reduced by inferring the intra prediction mode according to the syntax of the direction of differential modulation.

[0114] In other embodiments, if differential modulation is applied, the intra prediction mode of the current block can be limited to only use intra prediction modes within a threshold range of the differential modulation direction. For example, if differential modulation in the horizontal direction is applied, only the horizontal mode ( Figure 3 INTRA ANGULAR 18 in the horizontal direction) and a preset number of intra prediction modes close to the horizontal mode are used as the intra prediction mode of the target block. If differential modulation in the vertical direction is applied, only the vertical mode ( Figure 3 INTRA ANGULAR 50) and a preset number of intra prediction modes close to the vertical mode are used as the intra prediction modes of the target block.

[0115] Accordingly, since the intra prediction mode of the target block is selected from some intra prediction modes similar to the differential modulation direction rather than from all intra prediction modes, the number of bits required to encode the intra prediction mode of the target block can be reduced. The video decoding device can generate a candidate set consisting of intra prediction modes within a threshold range of the differential modulation direction, and can set a candidate indicated by information related to the intra prediction mode received from the video encoding device among the candidates in the candidate set as the intra prediction mode of the target block.

[0116] It has been described that the differential modulation technique is applied only to the residual signal generated by intra prediction, but the present invention is not limited thereto, and the differential modulation technique may be used together with inter prediction.

[0117] The above-mentioned differential modulation technique can be applied to both the luminance component and the chrominance component of the target block. If it is determined that the differential modulation technique is applied to the target block, the differential modulation technique can be applied to each of the residual signal of the luminance component and the residual signal of the chrominance component of the target block. Alternatively, it can be determined independently whether to apply the differential coding technique for the luminance component and the chrominance component of the target block.

[0118] Hereinafter, a method for controlling the application of the differential modulation technique will be described.

[0119] 2. High-level differential modulation control

[0120] Differential modulation can improve or reduce compression performance according to the structure of the content. With respect to a video sequence that is not suitable for differential modulation, coding syntax elements related to differential modulation at the block level become a factor that reduces compression performance. Accordingly, it is preferred to determine whether to apply differential modulation in units of each video sequence composed of multiple pictures.

[0121] In some embodiments, the video encoding device encodes a differential modulation enable flag indicating whether block-level differential modulation is allowed as an SPS. As described above, differential modulation is applied together with the transform skip mode. Accordingly, when the transform skip enable flag in the SPS indicates that transform skipping is allowed (i.e., transform_skip_enabled_flag=1), the differential modulation enable flag indicating whether differential modulation is allowed is encoded. When the transform skip enable flag indicates that transform skipping is not allowed (i.e., transform_skip_enabled_flag=0), the differential modulation enable flag is not encoded. When the differential modulation enable flag does not exist in the SPS, the video decoding device sets the differential modulation enable flag to 0. That is, the video decoding device does not apply differential demodulation technology to the current video sequence.

[0122] The differential modulation technique may be applied to both the luma component and the chroma component, unless the chroma format is monochrome (i.e., unless chroma_format_idc=0). In other embodiments, whether the differential modulation technique is applied to both the luma component and the chroma component of the current video sequence may be controlled by a differential modulation enable flag signaled in the SPS. For example, when the differential modulation enable flag signaled in the SPS indicates that differential modulation is allowed, the differential modulation technique may be applied to each of the luma component and the chroma component of the current video sequence. Conversely, when the differential modulation enable flag indicates that differential modulation is not allowed, differential modulation is not allowed for both the luma component and the chroma component within the current video sequence.

[0123] In other embodiments, it is possible to control separately whether differential modulation is applied to each of the luminance component and the chrominance component at the sequence level. This can be achieved by encoding a first differential modulation enable flag indicating whether differential modulation is allowed for the luminance component of the current video sequence and a second differential modulation enable flag indicating whether differential modulation is allowed for the chrominance component of the current video sequence in the SPS. When the transform skip enable flag has a value of "1", the first and second differential modulation enable flags can be encoded.

[0124] Hereinafter, a method of controlling whether differential modulation at a block level is applied when differential modulation is allowed for a luma component and / or a chroma component at a block level through the aforementioned high-level syntax is described.

[0125] 3. Block-level differential modulation control

[0126] The differential modulation of the target block is controlled by a first syntax element indicating whether differential modulation is applied and a second syntax element indicating the direction of differential modulation. The first syntax element and the second syntax element for controlling differential modulation may be signaled with respect to the luma component and the chroma component of the target block, respectively.

[0127] If differential modulation is allowed for the luminance component of the current video sequence (or an image belonging to the sequence), the video encoding apparatus encodes a first syntax element indicating whether differential modulation is applied to the luminance component of the target block (hereinafter, referred to as "luminance block"). When the first syntax element indicates that differential modulation is applied to the luminance block, the video encoding apparatus additionally encodes a second syntax element indicating a differential modulation direction of the luminance block.

[0128] As described above, differential modulation is a tool that can be applied to a residual block encoded in a transform skip mode. When each of the width and height of the target block is larger than the maximum block size (MaxTsSize) of the transform skip, differential modulation is not allowed in addition to the transform skip. Accordingly, when each of the width and height of the target block is larger than the maximum block size of the transform skip, the video encoding device does not encode the first syntax element and the second syntax element of the luminance block. Accordingly, the first syntax element and the second syntax element for the luminance block do not exist in the bitstream, and differential modulation is not performed on the residual signal.

[0129] When each of the width and height of the target block is equal to or less than the maximum block size (MaxTsSize), the video decoding device extracts a first syntax element from the bitstream and determines whether differential modulation has been applied to the luminance block corresponding to the target block. When the first syntax element indicates that differential modulation has been applied, the video decoding device determines the direction of the differential modulation by extracting a second syntax element from the bitstream. In contrast, when at least one of the width or height of the target block is greater than the maximum block size (MaxTsSize), the video decoding device does not extract the first syntax element and sets the value of the first syntax element to a value indicating that differential modulation is not applied. Accordingly, the video decoding device also does not extract the second syntax element and does not perform differential demodulation on the luminance block.

[0130] On the other hand, if it has been determined that differential modulation is allowed for the chroma component of the video sequence, the video encoding apparatus encodes a first syntax element indicating whether differential modulation is applied to the chroma component of the target block (hereinafter, referred to as a "chroma block"). When the first syntax element indicates that differential modulation is applied to the chroma block, the video encoding apparatus encodes a second syntax element indicating a differential modulation direction of the chroma block.

[0131] A constraint is also needed for limiting the size of the chroma block to which differential modulation is applied within a range that allows transform skipping. In particular, in the case of a target block (CU) partitioned from a CTU by a QTBT or QTBTTT partition structure, the target block may have a rectangular shape with different widths and heights in addition to a square shape. Accordingly, it is necessary to satisfy the constraint by considering the diversity of the target block shape.

[0132] In some embodiments, the maximum block size (MaxTsSize) of the transform skip and the chroma sampling format can be used to check whether such requirements are met. The header of the video sequence (i.e., SPS) includes a syntax element (chroma_format_idc) indicating the chroma sampling format of the video sequence. The chroma sampling format, horizontal scaling factor (SubWidthC) and vertical scaling factor (SubHeightC) can be defined based on chroma_format_idc as shown in Table 1 below.

[0133] [Table 1]

[0134] chroma_format_idc Chroma Format SubWidthC SubHeightC 0 monochrome 1 1 1 4:2:0 2 2 2 4:2:2 2 1 3 4:4:4 1 1

[0135] In order to apply differential modulation to the chroma block, it is necessary to satisfy the condition that each value obtained by dividing the width and height of the target block by the horizontal scaling factor (SubWidthC) and the vertical scaling factor (SubHeightC) determined based on the chroma format, respectively, needs to be less than or equal to the maximum block size (MaxTsSize) of the transform skip. Accordingly, when the value obtained by dividing the width of the target block by the horizontal scaling factor (SubWidthC) is greater than MaxTsSize or the value obtained by dividing the height of the target block by the vertical scaling factor (SubHeightC) is greater than MaxTsSize, differential modulation is not applied to the chroma block. The video encoding device encodes a first syntax element indicating whether differential modulation is applied to the chroma block only when the condition is satisfied, and encodes a second syntax element indicating the direction of differential modulation based on the first syntax element. If the condition is not satisfied, the first syntax element and the second syntax element of the chroma block are not encoded.

[0136] If a condition is satisfied that each value obtained by dividing the width and height of the target block by the horizontal scaling factor (SubWidthC) and the vertical scaling factor (SubHeightC) determined based on the chroma format is less than or equal to the maximum block size (MaxTsSize) of the transform skip, the video decoding apparatus extracts a first syntax element indicating whether differential modulation has been applied to the chroma block from the bitstream, and determines whether differential modulation has been applied to the luminance block corresponding to the target block. When the first syntax element indicates that differential modulation has been applied, the video decoding apparatus determines the direction of differential modulation of the chroma block by extracting a second syntax element from the bitstream.

[0137] On the contrary, if the condition is not satisfied, the video decoding device does not extract the first syntax element and sets the value of the first syntax element to a value indicating that differential modulation is not applied. Accordingly, the video decoding device does not extract the second syntax element and does not perform differential demodulation on the chroma block.

[0138] In other embodiments, it may be possible to check whether such a requirement is met by signaling information about the maximum size (MaxTsSizeC) of a block (where transform skipping can be applied to a chroma block), the requirement that the size of the chroma block to which differential modulation is applied needs to be limited to a range that allows transform skipping. That is, information about the maximum size (MaxTsSizeC) of a chroma block may be signaled separately from the maximum size (MaxTsSize) of a luminance block. Such information may be encoded in a high-level syntax structure, such as an SPS, PPS, or a picture header. Only when the width and height of the target block are equal to or less than MaxTsSizeC, the video encoding device applies differential modulation to the chroma block and encodes the relevant syntax (i.e., the first syntax element and the second syntax element of the chroma block). Alternatively, the video encoding device may apply differential modulation to the chroma block and encode the related syntax (i.e., the first syntax element and the second syntax element of the chroma block) only when each value obtained by dividing the width and height of the target block by the width scaling factor (SubWidthC) and the height scaling factor (SubHeightC), respectively, is equal to or less than MaxTsSizeC.

[0139] As described above, if differential modulation has been applied, the video encoding apparatus performs the above-described operation by utilizing the intra prediction mode ( Figure 3 INTRA_ANGULAR 18 or INTRA_ANGULAR 50 in the video decoding apparatus) performs intra-frame prediction on the target block and generates a residual block, which is the difference between the target block and the prediction block. After performing differential modulation in the differential modulation direction, the residual signal in the residual block is quantized and then entropy encoded. The video decoding apparatus reconstructs the residual signal from the bit stream and modifies the residual signal by performing differential demodulation in the differential modulation direction of the reconstructed residual signal. The modified residual signal is inversely quantized and then added to the prediction block. The video decoding apparatus also generates a prediction block by performing intra-frame prediction on the target block using the intra-frame prediction direction that is the same as the differential modulation direction.

[0140] In this case, the video encoding device and the video decoding device may perform intra-frame prediction on the target block by using samples that are not filtered from edge samples of the neighboring blocks of the upper block or the left block of the target block with respect to the target block to which differential modulation is applied. Using the filtered samples may cause additional residual components in the low-frequency region to the residual block, and thus the block to which differential modulation is applied and thus encoded in the transform skip mode is not applicable.

[0141] As described above, in some embodiments, the size of the maximum transform unit that allows transform skipping can be defined separately with respect to width and height. That is, each of the maximum width (MaxTsSize_X) and the maximum height (MaxTsSize_Y) of the transform unit that allows transform skipping can be defined, and information about each of the maximum width and the maximum height can be signaled in the SPS or PPS. In such an embodiment, when such a condition is met, the condition that the width of the target block needs to be equal to or less than the maximum width (MaxTsSize_X) and the height of the target block needs to be equal to or less than the maximum height (MaxTsSize_Y), differential modulation can be applied. Accordingly, when the condition is met, the video encoding device encodes a first syntax element indicating whether differential modulation is applied to the target block, and encodes a second syntax element indicating the direction of differential modulation according to the first syntax element. When the condition is not met, the video encoding device does not apply differential modulation to the target block. Accordingly, the first syntax element and the second syntax element are not encoded either. Only when the condition is satisfied, the video decoding apparatus extracts a first syntax element indicating whether differential modulation is applied to the target block from the bitstream, and extracts a second syntax element indicating the direction of the differential modulation according to the first syntax element.

[0142] Various methods of controlling whether differential modulation is allowed in a high level and various methods of controlling whether differential modulation is applied in a block level when differential modulation is allowed in a high level have been described above. By combining various control methods at a high level with various control methods at a block level, the use of differential modulation of a video sequence can be controlled. Hereinafter, an exemplary embodiment of various combinations is described.

[0143] Figure 6 is a flow chart for describing a method of encoding a video sequence by utilizing a differential modulation technique according to an embodiment of the present invention. Figure 7 is a flow chart for describing a method of encoding a block of a video using a differential modulation technique according to an embodiment of the present invention.

[0144] The video encoding device encodes information about the chroma sampling format and a high-level syntax element related to differential modulation of the residual signal in the SPS (S610). In this case, the high-level syntax element includes a control flag indicating whether differential modulation is allowed for the residual signal of the video sequence. That is, differential modulation of both the luminance component and the chroma component is allowed or restricted by the control flag. In addition, the high-level syntax element includes information about the maximum block size for which differential modulation is allowed. The information about the maximum block size for which differential modulation is allowed may be information about the maximum transform size (e.g., MaxTsSize) for which transform skipping is allowed, or may be a block size (e.g., Max_Hor_Size, Max_Ver_Size) set separately for controlling differential modulation.

[0145] When the target block to be currently encoded is determined (S620), an encoding process is performed on each of the luminance block and the chrominance block corresponding to the target block. Figure 6 In the example, S630 to S650 indicate an encoding process of a luminance block including using a differential modulation technique, and S660 to S680 indicate an encoding process of a chrominance block including using a differential modulation technique.

[0146] First, the luma block is described. The video encoding apparatus confirms a condition for applying differential modulation to the luma block (S630). In this case, the condition of the luma block is defined by a high-level syntax element. As described above, differential modulation of the luma block can be applied when the following conditions are met.

[0147] (1) The control flag needs to indicate that differential modulation is allowed for both the luma component and the chroma component.

[0148] (2) The width of the target block corresponding to the luminance block needs to be less than or equal to the maximum block size.

[0149] (3) The height of the target block corresponding to the luminance block needs to be less than or equal to the maximum block size.

[0150] When the condition is satisfied, the video encoding apparatus encodes a first syntax element indicating whether differential modulation is applied to the luma block. In addition, when the first syntax element indicates that differential modulation is applied, the video encoding apparatus encodes a second syntax element indicating a differential modulation direction of the luma block (S640).

[0151] If differential modulation is applied to the luma block, the video encoding apparatus performs an encoding process by using transform skip and differential modulation to encode the luma block (S650). The differential modulation technique may be applied only to intra-prediction encoded blocks and may not be applied to inter-prediction encoded blocks. Accordingly, the video encoding apparatus may apply transform skip and differential modulation techniques when encoding a residual block of an intra-encoded luma block.

[0152] Specifically, refer to Figure 7 , the video encoding apparatus sets a directional intra prediction mode having the same direction as the differential modulation direction indicated by the second syntax element as the intra prediction mode of the luminance block, and generates a prediction block of the luminance block by using the intra prediction mode (S710). In this case, the video encoding apparatus can perform intra prediction on the luminance block to which differential modulation is applied by using samples that are not filtered from edge samples of adjacent luminance blocks of an upper block or a left block of the luminance block.

[0153] In addition, the video encoding apparatus generates a residual value of the luminance block by subtracting the predicted value of the prediction block from the original sample value of the luminance block (S720), and quantizes the residual value (S730). Since differential modulation is a tool allowed in the transform skip mode, the transform of the block of residual values ​​(i.e., the residual block) is not performed.

[0154] As described with reference to Equations 1 and 2, the video encoding apparatus performs differential modulation on the residual signal within the quantized residual block in the differential modulation direction indicated by the second syntax element (S740). The video encoding apparatus entropy encodes the differentially modulated residual value of the luminance block in the bitstream (S750).

[0155] On the other hand, reference Figure 6 In S660 to S680 of , the video encoding apparatus performs processing similar to that of the luminance block on the chrominance block corresponding to the target block. However, the condition for applying differential modulation is different from that of the luminance block. In S660, in addition to the high-level syntax element, the condition for applying differential modulation to the chrominance block is defined based on the chrominance format information, and the condition is as follows.

[0156] (1) A control flag needs to indicate that differential modulation is allowed for the video sequence.

[0157] (2) A value obtained by dividing the width of the target block corresponding to the chroma block by the width scaling factor determined by the chroma sampling format is less than or equal to the maximum block size.

[0158] (3) A value obtained by dividing the height of the target block corresponding to the chroma block by a height scaling factor determined based on the chroma sampling format is less than or equal to the maximum block size.

[0159] When the condition is satisfied, substantially the same processing as that performed at S630 to S650 is performed ( S670 to S680 ), as described below.

[0160] The video encoding apparatus encodes a first syntax element indicating whether differential modulation is applied to the chroma block. In addition, when the first syntax element indicates that differential modulation is applied, the video encoding apparatus encodes a second syntax element indicating a differential modulation direction of the chroma block (S670).

[0161] If differential modulation is applied, the video encoding apparatus encodes the chroma block by performing an encoding process using transform skip and differential modulation (S680). The video encoding apparatus encodes the residual block by using transform skip and differential modulation techniques when encoding the residual block of the intra-coded chroma block.

[0162] Refer to Figure 7 , if differential modulation is applied to the chroma block, the video encoding device sets a directional intra prediction mode having the same direction as the differential modulation direction indicated by the second syntax element as the intra prediction mode of the chroma block, and generates a prediction block of the chroma block by using the set intra prediction mode (S710). In this case, the video encoding device can perform intra prediction on the chroma block by using samples that are not filtered from edge samples of adjacent chroma blocks of an upper block or a left block of the chroma block.

[0163] In addition, the video encoding apparatus generates a residual value of the chroma block by subtracting the predicted value of the prediction block from the original sample value of the chroma block (S720), and quantizes the residual value (S730). Since differential modulation is a tool allowed in the transform skip mode, the transform of the block of residual values ​​(i.e., the residual block) is not performed.

[0164] As described with reference to Equations 1 and 2, the video encoding apparatus performs differential modulation on the residual signal within the quantized residual block in the differential modulation direction indicated by the second syntax element (S740). The video encoding apparatus entropy encodes the differentially modulated residual value of the chroma block in the bitstream (S750).

[0165] Figure 8 is a flow chart for describing a method of decoding a video sequence by utilizing a differential modulation technique according to an embodiment of the present invention. Fig. 9 is a flow chart for describing a method of decoding a block of a video using a differential modulation technique according to an embodiment of the present invention.

[0166] The video decoding apparatus decodes information on a chroma sampling format and a high-level syntax element related to differential modulation of a residual signal from an SPS within a bitstream received from a video encoding apparatus ( S810 ).

[0167] When a target block to be decoded is determined (S820), a decoding process is performed on each of a luminance block and a chrominance block corresponding to the target block. Figure 8In the example, S830 to S850 indicate a decoding process of a luminance block including the use of a differential modulation technique, and S860 to S880 indicate a decoding process of a chrominance block including the use of a differential modulation technique.

[0168] First, the luminance block is described. The video decoding apparatus confirms whether a condition for allowing differential modulation to be applied to the luminance block is satisfied (S830). In this case, the condition for the luminance block is defined by a high-level syntax element, and the condition is consistent with Figure 6 The conditions are the same as described for S630.

[0169] When the condition is met, the video decoding apparatus decodes a first syntax element indicating whether differential modulation is applied to the luma block from the bitstream. In addition, when the first syntax element indicates that differential modulation is applied, the video decoding apparatus decodes a second syntax element indicating a differential modulation direction of the luma block (S840).

[0170] If differential modulation has been applied to the luma block, the video decoding apparatus performs a decoding process by using transform skip and differential modulation to decode the luma block (S850). The differential modulation technique may be applied only to intra-prediction encoded blocks and may not be applied to inter-prediction encoded blocks. Accordingly, the video decoding apparatus applies transform skip and differential modulation techniques when decoding a residual block of an intra-encoded luma block.

[0171] Specifically, refer to Fig. 9 , the video decoding device determines a differentially modulated residual block of the luminance block by reconstructing the differentially modulated residual samples of the luminance block from the bitstream (S910). In addition, the video decoding device determines a quantized residual value by performing differential demodulation on the differentially modulated residual block in the differential modulation direction indicated by the second syntax element (S920). That is, as has been described with reference to Equations 3 and 4, the video decoding device modifies the residual signal within the differentially modulated residual block. In addition, the video decoding device performs inverse quantization on the residual signal within the modified residual block (S930). Differential modulation is applied in transform skip mode, so the inverse transform after inverse quantization is skipped.

[0172] In addition, the video decoding device generates a prediction block by performing intra-frame prediction on the luminance block (S940). To this end, the video decoding device sets a directional intra-frame prediction mode having the same direction as the differential modulation direction indicated by the second syntax element as the intra-frame prediction mode of the luminance block. Accordingly, information about the intra-frame prediction mode of the luminance block is not decoded. In this case, the video decoding device can perform intra-frame prediction on the luminance block to which differential modulation is applied by utilizing samples that are not filtered from edge samples of adjacent luminance blocks of the upper block or the left block of the luminance block. Step S940 can be performed before S910 to S930, or after any step of S910 to S930, or in parallel with S910 to S930.

[0173] Finally, the video decoding apparatus may reconstruct the luminance block by adding the inversely quantized residual block to the prediction block generated by the intra prediction ( S950 ).

[0174] On the other hand, reference Figure 8 In S860 to S880, the video decoding apparatus performs processing similar to that of the luminance block on the chrominance block corresponding to the target block. However, the condition for applying differential modulation to the chrominance block is different from the condition for applying differential modulation to the luminance block. That is, in S860, in addition to the high-level syntax elements, the condition for applying differential modulation to the chrominance block is defined based on the chrominance format information, and the condition is different from that in S861. Figure 6 The conditions are the same as those described in S660.

[0175] Refer to Fig. 9 , the video decoding device determines a differentially modulated residual block of the chroma block by reconstructing the differentially modulated residual samples of the chroma block from the bitstream (S910). In addition, the video decoding device determines a quantized residual value by performing differential demodulation on the differentially modulated residual block in the differential modulation direction indicated by the second syntax element (S920). That is, as has been described with reference to Equations 3 and 4, the video decoding device modifies the residual signal within the differentially modulated residual block. In addition, the video decoding device performs inverse quantization on the residual signal within the modified residual block (S930). Differential modulation is applied in transform skip mode, so the inverse transform after inverse quantization is skipped.

[0176] In addition, the video decoding device generates a prediction block by performing intra prediction on the chroma block (S940). To this end, the video decoding device sets a directional intra prediction mode having the same direction as the differential modulation direction indicated by the second syntax element as the intra prediction mode of the chroma block. Accordingly, information about the intra prediction mode of the chroma block is not decoded. In this case, the video decoding device can perform intra prediction on the chroma block to which differential modulation is applied by using samples that are not filtered from edge samples of adjacent chroma blocks of the upper block or left block of the chroma block.

[0177] Finally, the video decoding apparatus reconstructs the chrominance block by adding the inversely quantized residual block to the prediction block generated by the intra prediction (S950).

[0178] It should be understood that the exemplary embodiments described above can be implemented in many different ways. The functions described in one or more examples can be implemented as hardware, software, firmware or any combination thereof. The functional components described in this specification are marked as units to more particularly emphasize their potential independence implementation.

[0179] On the other hand, the various methods or functions described in the present invention can be implemented using instructions stored in a non-volatile recording medium, which can be read and executed by one or more processors. Non-volatile recording media include, for example, all types of recording devices that store data in a form that can be read by a computer system. For example, non-volatile recording media include storage media such as erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), flash drives, optical drives, magnetic hard drives, and solid-state drives (SSD).

[0180] Although exemplary embodiments have been described for illustrative purposes, it will be appreciated by those skilled in the art that various modifications and variations are possible without departing from the spirit and scope of the embodiments. For the sake of brevity and clarity, exemplary embodiments have been described. Accordingly, it will be appreciated by those of ordinary skill that the scope of the embodiments is not limited to the embodiments explicitly described above, but is included in the claims and their equivalents.

Claims

1. A method for decoding a bit stream encoded from a video sequence consisting of a plurality of images, the method comprising: include: Decoding information about a chroma sampling format and high-level syntax elements related to differential modulation of a residual signal from a sequence parameter set of a bitstream, wherein the high-level syntax elements include a control flag indicating whether differential modulation is allowed for a residual signal of a video sequence and information about a maximum block size for which differential modulation is allowed; When the first block satisfies a condition defined by the information about the chroma sampling format and the high-level syntax element, decoding a first chroma syntax element indicating whether differential modulation has been applied to a chroma block corresponding to the first block currently to be decoded; In response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block, decoding a second chroma syntax element indicating a direction of differential modulation applied to the chroma block; determining a differentially modulated residual block of a chroma block from a bitstream; Determining a quantized residual value by differentially demodulating the differentially modulated residual block in the differential modulation direction indicated by the second chroma syntax element; Inverse quantization is performed on the quantized residual value of the chrominance block; generating predicted values ​​for the chroma block; and Reconstructing the chrominance block corresponding to the first block based on the inverse quantized residual value and the predicted value, Among other things, the conditions defined by the information about the chroma sampling format and the high-level syntax elements are met if: 1) The chroma sampling format is one of 4:2:0, 4:2:2 or 4:4:4, 2) A control flag indicates that differential modulation is allowed for the video sequence, 3) the value obtained by dividing the width of the first block by the horizontal scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, and 4) the value obtained by dividing the height of the first block by the vertical scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, The information about the maximum block size that allows differential modulation is information about the maximum transform size that allows transform skipping. When the first chroma syntax element indicates that differential modulation has been applied to the chroma block, transform skipping is applied to the chroma block.

2. The method according to claim 1, in, The values ​​used to generate the prediction for the chroma block include: setting a prediction mode having the same direction as the differential modulation direction indicated by the second chroma syntax element as an intra prediction mode of the chroma block, among the vertical prediction mode and the horizontal prediction mode; and A predicted value of the chroma block is generated based on the intra prediction mode of the chroma block.

3. The method according to claim 1, in, The values ​​used to generate the prediction for the chroma block include: A prediction value of the chroma block is generated by performing intra prediction on the chroma block by using samples that are not filtered from edge samples of an upper block or a left block of the chroma block.

4. The method according to claim 1, in, Determining the quantized residual value includes: When the second chroma syntax element indicates that the differential modulation direction is horizontal, the quantized residual value is determined as follows, Among them, Q(r i,j ) is the quantized residual value at position [i, j] in the chroma block, is the sample value at position [i, k] in the differentially modulated residual block, M is the number of rows of the chroma block, and N is the number of columns of the chroma block.

5. The method according to claim 1, in, Determining the quantized residual value includes, when the second chroma syntax element indicates that the differential modulation direction is vertical, determining the quantized residual value according to the following equation, Among them, Q(r i,j ) is the quantized residual value at position [i, j] in the chroma block, is the sample value at position [k, i] in the differentially modulated residual block, M is the number of rows of the chroma block, and N is the number of columns of the chroma block.

6. The method according to claim 1, further comprising: include: When the first block satisfies the condition defined by the high-level syntax element, decoding a first luma syntax element indicating whether differential modulation has been applied to a luma block corresponding to the first block; In response to the first luma syntax element indicating that differential modulation has been applied to the luma block, decoding a second luma syntax element indicating a direction of differential modulation applied to the luma block; determining a differentially modulated residual block of a luma block from the bitstream; Determining a quantized residual value by differentially demodulating a differentially modulated residual block of the luma block in a differential modulation direction indicated by a second luma syntax element; Inverse quantization is performed on the quantized residual value of the luminance block; generating predicted values ​​for the luma block; as well as A luminance block corresponding to the first block is reconstructed based on the inverse quantized residual value and the predicted value.

7. The method according to claim 6, in, The conditions defined by the high-level syntax elements are met when: The control flag indicates that differential modulation is allowed for the video sequence. The width of the first block is less than or equal to the maximum block size, and The height of the first block is less than or equal to the maximum block size.

8. The method according to claim 6, in, When determining the MPM list of a luminance block corresponding to a second block adjacent to a luminance block corresponding to a first block, the intra-frame prediction mode of the luminance block corresponding to the first block is set to a prediction mode having a direction that is the same as the differential modulation direction indicated by the second luminance syntax element in a vertical prediction mode and a horizontal prediction mode.

9. A method for encoding a video sequence consisting of a plurality of images, the method comprising: include: encoding information about a chroma sampling format and high-level syntax elements related to differential modulation of a residual signal in a sequence parameter set, wherein the high-level syntax elements include a control flag indicating whether differential modulation is allowed for a residual signal of a video sequence and information about a maximum block size for which differential modulation is allowed; When a first block to be currently decoded satisfies a condition defined by the information about the chroma sampling format and the high-level syntax element, encoding a first chroma syntax element indicating whether differential modulation has been applied to a chroma block corresponding to the first block; In response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block, encoding a second chroma syntax element indicating a direction of differential modulation applied to the chroma block; generating predicted values ​​for the chrominance block; Determine a residual block of the chroma block based on original sample values ​​of the chroma block and predicted values; Generating a quantized residual value by quantizing the residual block of the chrominance block; determining a differentially modulated residual value by differentially modulating the quantized residual value in the differential modulation direction indicated by the second chroma syntax element; Encode the residual value of the differential modulation, Among other things, the conditions defined by the information about the chroma sampling format and the high-level syntax elements are met if: 1) The chroma sampling format is one of 4:2:0, 4:2:2 or 4:4:4, 2) A control flag indicates that differential modulation is allowed for the video sequence, 3) the value obtained by dividing the width of the first block by the horizontal scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, and 4) the value obtained by dividing the height of the first block by the vertical scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, The information about the maximum block size that allows differential modulation is information about the maximum transform size that allows transform skipping. When the first chroma syntax element indicates that differential modulation has been applied to the chroma block, transform skipping is applied to the chroma block.

10. The method according to claim 9, in, The values ​​used to generate the prediction for the chroma block include: setting a prediction mode having the same direction as the differential modulation direction indicated by the second chroma syntax element as an intra prediction mode of the chroma block, among the vertical prediction mode and the horizontal prediction mode; and A predicted value of the chroma block is generated based on the intra prediction mode of the chroma block.

11. The method according to claim 9, in, The values ​​used to generate the prediction for the chroma block include: A predicted value of the chroma block is generated by performing intra prediction on the chroma block by using samples that are not filtered from edge samples of an upper block or a left block of the chroma block.

12. A method for providing video data to a video decoding device, the method include: Encoding video data into a bitstream; Transmit the bitstream to the video decoding device, The encoding of the video data includes: encoding information about a chroma sampling format and high-level syntax elements related to differential modulation of a residual signal in a sequence parameter set of a bitstream, wherein the high-level syntax elements include a control flag indicating whether differential modulation is allowed for a residual signal of a video sequence and information about a maximum block size for which differential modulation is allowed; When a first block to be currently decoded satisfies a condition defined by the information about the chroma sampling format and the high-level syntax element, encoding a first chroma syntax element indicating whether differential modulation has been applied to a chroma block corresponding to the first block; In response to the first chroma syntax element indicating that differential modulation has been applied to the chroma block, encoding a second chroma syntax element indicating a direction of differential modulation applied to the chroma block; generating predicted values ​​for the chrominance block; Determine a residual block of the chroma block based on original sample values ​​of the chroma block and predicted values; Generating a quantized residual value by quantizing the residual block of the chrominance block; determining a differentially modulated residual value by differentially modulating the quantized residual value in the differential modulation direction indicated by the second chroma syntax element; Encode the residual value of the differential modulation in the bit stream, Among other things, the conditions defined by the information about the chroma sampling format and the high-level syntax elements are met if: 1) The chroma sampling format is one of 4:2:0, 4:2:2 or 4:4:4, 2) A control flag indicates that differential modulation is allowed for the video sequence, 3) the value obtained by dividing the width of the first block by the horizontal scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, and 4) the value obtained by dividing the height of the first block by the vertical scaling factor determined by the chroma sampling format is less than or equal to the maximum block size, The information about the maximum block size that allows differential modulation is information about the maximum transform size that allows transform skipping. When the first chroma syntax element indicates that differential modulation has been applied to the chroma block, transform skipping is applied to the chroma block.