The present disclosure relates to an image coding technique, and more particularly, to a method of coding a transform coefficient based on high frequency zeroing in an image coding system, and an apparatus thereof.
Nowadays, the demand for high-resolution and high-quality images/videos such as 4K, 8K or more ultra high definition (UHD) images/videos has been increasing in various fields. As the image/video data becomes higher resolution and higher quality, the transmitted information amount or bit amount increases as compared to the conventional image data. Therefore, when image data is transmitted using a medium such as a conventional wired/wireless broadband line or image/video data is stored using an existing storage medium, the transmission cost and the storage cost thereof are increased.
Further, nowadays, the interest and demand for immersive media such as virtual reality (VR), artificial reality (AR) content or hologram, or the like is increasing, and broadcasting for images/videos having image features different from those of real images, such as a game image is increasing.
Accordingly, there is a need for a highly efficient image/video compression technique for effectively compressing and transmitting or storing, and reproducing information of high resolution and high quality images/videos having various features as described above.
A technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which increase image coding efficiency.
Another technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which increase efficiency of residual coding.
Still another technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which increase efficiency of transform coefficient level coding.
Still another technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which increase residual coding efficiency by coding a transform coefficient based on high frequency zeroing.
Still another problem to be addressed by the present disclosure lies in providing a method and an apparatus which code position information of a last significant coefficient in a current block (or current transform block) based on high frequency zeroing.
Still another technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which derive a maximum length of a codeword representing a last significant transform coefficient based on a size of a region in the current block, to which high frequency zeroing is not applied when transform coefficients for the current block (or current transform block) are coded based on the high frequency zeroing.
Still another technical problem to be addressed by the present disclosure lies in providing a method and an apparatus which binarize last significant coefficient prefix information and last significant coefficient suffix information when high frequency zeroing is performed.
According to an example of the present disclosure, there is provided an image decoding method which is performed by a decoding apparatus. The method includes receiving a bitstream including residual information; deriving quantized transform coefficients for a current block based on the residual information included in the bitstream; deriving transform coefficients for the current block from the quantized transform coefficients based on an inverse quantization process; deriving residual samples for the current block by applying inverse transform to the derived transform coefficients; and generating a reconstructed picture based on the residual samples for the current block, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is determined based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
According to another example of the present disclosure, there is provided a decoding apparatus for performing image decoding. The decoding apparatus includes an entropy decoder which receives a bitstream including residual information, and derives quantized transform coefficients for a current block based on the residual information included in the bitstream; a dequantizer which derives transform coefficients for the current block from the quantized transform coefficients based on an inverse quantization process; an inverse transformer which derives residual samples for the current block by applying inverse transform to the derived transform coefficients; and an adder which generates a reconstructed picture based on the residual samples for the current block, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of a last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is determined based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
According to still another example of the disclosure, there is provided an image encoding method which is performed by an encoding apparatus. The method includes deriving residual samples for a current block; deriving transform coefficients for the current block by transforming the residual samples for the current block; deriving quantized transform coefficients from the transform coefficients based on a quantization process; and encoding residual information including information on the quantized transform coefficients, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of a last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
According to still another example of the present disclosure, there is provided an encoding apparatus for performing image encoding. The encoding apparatus includes a subtractor which derives residual samples for a current block; a transformer which derives transform coefficients for the current block by transforming the residual samples for the current block; a quantizer which derives quantized transform coefficients from the transform coefficients based on a quantization process; and an entropy encoder which encodes residual information including information on the quantized transform coefficients, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of a last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
According to still another example of the present disclosure, there is provided a decoder-readable storage medium which stores information on instructions which cause a video decoding apparatus to perform decoding methods according to some examples.
According to still another example of the present disclosure, there is provided a decoder-readable storage medium which stores information on instructions which cause a video decoding apparatus to perform a decoding method according to an example. The decoding method according to the example includes receiving a bitstream including residual information; deriving quantized transform coefficients for a current block based on the residual information included in the bitstream; deriving transform coefficients for the current block from the quantized transform coefficients based on an inverse quantization process; deriving residual samples for the current block by applying inverse transform to the derived transform coefficients; and generating a reconstructed picture based on the residual samples for the current block, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is determined based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
According to the present disclosure, it is possible to increase general image/video compression efficiency.
According to the present disclosure, it is possible to increase the efficiency of residual coding.
According to the present disclosure, it is possible to increase the efficiency of transform coefficient level coding.
According to the present disclosure, it is possible to increase residual coding efficiency by coding a transform coefficient based on high frequency zeroing (or, high frequency zero-out).
According to the present disclosure, it is possible to increase image coding efficiency by coding position information of a last significant transform coefficient in a current block (or current transform block) based on high frequency zeroing.
According to the present disclosure, it is possible to increase image coding efficiency by deriving a maximum length of a codeword representing a last significant transform coefficient based on a size of a region in the current block, to which high frequency zeroing is not applied when transform coefficients for the current block (or current transform block) are coded based on the high frequency zeroing.
According to the present disclosure, when the high frequency zeroing is applied, by performing binarization on a syntax element based on the size of a low frequency zeroing region (or, region to which the high frequency zeroing is not applied), it is possible to perform coding more efficiently, and improve the throughput of CABAC by reducing the number of context-coded bins.
According to an example of the present disclosure, there is provided an image decoding method which is performed by a decoding apparatus. The method includes receiving a bitstream including residual information; deriving quantized transform coefficients for a current block based on the residual information included in the bitstream; deriving transform coefficients for the current block from the quantized transform coefficients based on an inverse quantization process; deriving residual samples for the current block by applying inverse transform to the derived transform coefficients; and generating a reconstructed picture based on the residual samples for the current block, wherein each of the transform coefficients for the current block is related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of last non-zero transform coefficient among the transform coefficients for the current block, the position of the last non-zero transform coefficient is determined based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information, and a maximum length of the prefix codeword is determined based on a size of the low frequency transform coefficient region.
While the present disclosure may be susceptible to various modifications and include various embodiments, specific embodiments thereof have been shown in the drawings by way of example and will now be described in detail. However, this is not intended to limit the present disclosure to the specific embodiments disclosed herein. The terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit technical idea of the present disclosure. The singular forms may include the plural forms unless the context clearly indicates otherwise. The terms such as “comprise”, “include”, and the like are intended to indicate that features, numbers, steps, operations, elements, components, or combinations thereof used in the following description exist, and thus should not be understood as that the possibility of existence or addition of one or more different features, numbers, steps, operations, elements, components, or combinations thereof is excluded in advance.
Meanwhile, each component on the drawings described herein is illustrated independently for convenience of description as to characteristic functions different from each other, and however, it is not meant that each component is embodied by a separate hardware or software. For example, any two or more of these components may be combined to form a single component, and any single component may be divided into plural components. The embodiments in which components are combined and/or divided will fall into the scope of the patent right of the present disclosure as long as they do not depart from the essence of the present disclosure.
Hereinafter, preferred embodiments of the present disclosure will be explained in more detail while referring to the attached drawings. Hereinafter, the same reference signs are used for the same components on the drawings, and repeated descriptions for the same components may be omitted.
This document relates to video/image coding. For example, the methods/embodiments disclosed in this document may be applied to a method disclosed in the versatile video coding (VVC), the EVC (essential video coding) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2), or the next generation video/image coding standard (ex. H.267 or H.268, etc.).
This document presents various embodiments of video/image coding, and the embodiments may be performed in combination with each other unless otherwise mentioned.
In this document, video may refer to a series of images over time. Picture generally refers to a unit representing one image in a specific time zone, and a slice/tile is a unit constituting part of a picture in coding. The slice/tile may include one or more coding tree units (CTUs). One picture may consist of one or more slices/tiles. One picture may consist of one or more tile groups. One tile group may include one or more tiles. A brick may represent a rectangular region of CTU rows within a tile in a picture. A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may be also referred to as a brick. A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture. The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set. The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of bricks of a picture that may be exclusively contained in a single NAL unit. A slice may consists of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile. Tile groups and slices may be used interchangeably in this document. For example, in this document, a tile group/tile group header may be called a slice/slice header.
A pixel or a pa may mean a smallest unit constituting one picture (or image). Also, ‘sample’ may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may represent only a pixel/pixel value of a luma component or only a pixel/pixel value of a chroma component.
A unit may represent a basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. One unit may include one luma block and two chroma (ex. cb, cr) blocks. The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M×N block may include samples (or sample arrays) or a set (or array) of transform coefficients of M columns and N rows.
In this document, the term “I” and “,” should be interpreted to indicate “and/or.” For instance, the expression “A/B” may mean “A and/or B.” Further, “A, B” may mean “A and/or B.” Further, “A/B/C” may mean “at least one of A, B, and/or C.” Also, “A/B/C” may mean “at least one of A, B, and/or C.”
Further, in the document, the term “or” should be interpreted to indicate “and/or.” For instance, the expression “A or B” may comprise 1) only A, 2) only B, and/or 3) both A and B. In other words, the term “or” in this document should be interpreted to indicate “additionally or alternatively.”
Referring to
The source device may include a video source, an encoding apparatus, and a transmitter. The receiving device may include a receiver, a decoding apparatus, and a renderer. The encoding apparatus may be called a video/image encoding apparatus, and the decoding apparatus may be called a video/image decoding apparatus. The transmitter may be included in the encoding apparatus. The receiver may be included in the decoding apparatus. The renderer may include a display, and the display may be configured as a separate device or an external component.
The video source may acquire video/image through a process of capturing, synthesizing, or generating the video/image. The video source may include a video/image capture device and/or a video/image generating device. The video/image capture device may include, for example, one or more cameras, video/image archives including previously captured video/images, and the like. The video/image generating device may include, for example, computers, tablets and smartphones, and may (electronically) generate video/images. For example, a virtual video/image may be generated through a computer or the like. In this case, the video/image capturing process may be replaced by a process of generating related data.
The encoding apparatus may encode input video/image. The encoding apparatus may perform a series of procedures such as prediction, transform, and quantization for compression and coding efficiency. The encoded data (encoded video/image information) may be output in the form of a bitstream.
The transmitter may transmit the encoded image/image information or data output in the form of a bitstream to the receiver of the receiving device through a digital storage medium or a network in the form of a file or streaming. The digital storage medium may include various storage mediums such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like. The transmitter may include an element for generating a media file through a predetermined file format and may include an element for transmission through a broadcast/communication network. The receiver may receive/extract the bitstream and transmit the received bitstream to the decoding apparatus.
The decoding apparatus may decode the video/image by performing a series of procedures such as dequantization, inverse transform, and prediction corresponding to the operation of the encoding apparatus.
The renderer may render the decoded video/image. The rendered video/image may be displayed through the display.
Referring to
The image partitioner 210 may partition an input image (or a picture or a frame) input to the encoding apparatus 200 into one or more processors. For example, the processor may be called a coding unit (CU). In this case, the coding unit may be recursively partitioned according to a quad-tree binary-tree ternary-tree (QTBTTT) structure from a coding tree unit (CTU) or a largest coding unit (LCU). For example, one coding unit may be partitioned into a plurality of coding units of a deeper depth based on a quad tree structure, a binary tree structure, and/or a ternary structure. In this case, for example, the quad tree structure may be applied first and the binary tree structure and/or ternary structure may be applied later. Alternatively, the binary tree structure may be applied first. The coding procedure according to this document may be performed based on the final coding unit that is no longer partitioned. In this case, the largest coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or if necessary, the coding unit may be recursively partitioned into coding units of deeper depth and a coding unit having an optimal size may be used as the final coding unit. Here, the coding procedure may include a procedure of prediction, transform, and reconstruction, which will be described later. As another example, the processor may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be split or partitioned from the aforementioned final coding unit. The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from the transform coefficient.
The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M×N block may represent a set of samples or transform coefficients composed of M columns and N rows. A sample may generally represent a pixel or a value of a pixel, may represent only a pixel/pixel value of a luma component or represent only a pixel/pixel value of a chroma component. A sample may be used as a term corresponding to one picture (or image) for a pixel or a pa.
In the encoding apparatus 200, a prediction signal (predicted block, prediction sample array) output from the inter predictor 221 or the intra predictor 222 is subtracted from an input image signal (original block, original sample array) to generate a residual signal residual block, residual sample array), and the generated residual signal is transmitted to the transformer 232. In this case, as shown, a unit for subtracting a prediction signal (predicted block, prediction sample array) from the input image signal (original block, original sample array) in the encoder 200 may be called a subtractor 231. The predictor may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The predictor may determine whether intra prediction or inter prediction is applied on a current block or CU basis. As described later in the description of each prediction mode, the predictor may generate various information related to prediction, such as prediction mode information, and transmit the generated information to the entropy encoder 240. The information on the prediction may be encoded in the entropy encoder 240 and output in the form of a bitstream.
The intra predictor 222 may predict the current block by referring to the samples in the current picture. The referred samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In the intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode. The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes according to the degree of detail of the prediction direction. However, this is merely an example, more or less directional prediction modes may be used depending on a setting. The intra predictor 222 may determine the prediction mode applied to the current block by using a prediction mode applied to a neighboring block.
The inter predictor 221 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. Here, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between the neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a co-located CU (colCU), and the like, and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter predictor 221 may configure a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to derive a motion vector and/or a reference picture index of the current block. Inter prediction may be performed based on various prediction modes. For example, in the case of a skip mode and a merge mode, the inter predictor 221 may use motion information of the neighboring block as motion information of the current block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the case of the motion vector prediction (MVP) mode, the motion vector of the neighboring block may be used as a motion vector predictor and the motion vector of the current block may be indicated by signaling a motion vector difference.
The predictor 220 may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict one block but also simultaneously apply both intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the predictor may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image/video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information on the palette table and the palette index.
The prediction signal generated by the predictor (including the inter predictor 221 and/or the intra predictor 222) may be used to generate a reconstructed signal or to generate a residual signal. The transformer 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a karhunen-loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT means transform obtained from a graph when relationship information between pixels is represented by the graph. The CNT refers to transform generated based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to square pixel blocks having the same size or may be applied to blocks having a variable size rather than square.
The quantizer 233 may quantize the transform coefficients and transmit them to the entropy encoder 240 and the entropy encoder 240 may encode the quantized signal (information on the quantized transform coefficients) and output a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange block type quantized transform coefficients into a one-dimensional vector form based on a coefficient scanning order and generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. Information on transform coefficients may be generated. The entropy encoder 240 may perform various encoding methods such as, for example, exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like. The entropy encoder 240 may encode information necessary for video/image reconstruction other than quantized transform coefficients (ex. values of syntax elements, etc.) together or separately. Encoded information (ex. encoded video/image information) may be transmitted or stored in units of NALs (network abstraction layer) in the form of a bitstream. The video/image information may further include information on various parameter sets such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video/image information may further include general constraint information. In this document, information and/or syntax elements transmitted/signaled from the encoding apparatus to the decoding apparatus may be included in video/picture information. The video/image information may be encoded through the above-described encoding procedure and included in the bitstream. The bitstream may be transmitted over a network or may be stored in a digital storage medium. The network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, and the like. A transmitter (not shown) transmitting a signal output from the entropy encoder 240 and/or a storage unit (not shown) storing the signal may be included as internal/external element of the encoding apparatus 200, and alternatively, the transmitter may be included in the entropy encoder 240.
The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, the residual signal (residual block or residual samples) may be reconstructed by applying dequantization and inverse transform to the quantized transform coefficients through the dequantizer 234 and the inverse transformer 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the inter predictor 221 or the intra predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). If there is no residual for the block to be processed, such as a case where the skip mode is applied, the predicted block may be used as the reconstructed block. The adder 250 may be called a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next block to be processed in the current picture and may be used for inter prediction of a next picture through filtering as described below.
Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and/or reconstruction.
The filter 260 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 270, specifically, a DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filter 260 may generate various information related to the filtering and transmit the generated information to the entropy encoder 240 as described later in the description of each filtering method. The information related to the filtering may be encoded by the entropy encoder 240 and output in the form of a bitstream.
The modified reconstructed picture transmitted to the memory 270 may be used as the reference picture in the inter predictor 221. When the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided and encoding efficiency may be improved.
The DPB of the memory 270 DPB may store the modified reconstructed picture for use as a reference picture in the inter predictor 221. The memory 270 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and/or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 221 and used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and may transfer the reconstructed samples to the intra predictor 222.
Referring to
When a bitstream including video/image information is input, the decoding apparatus 300 may reconstruct an image corresponding to a process in which the video/image information is processed in the encoding apparatus of
The decoding apparatus 300 may receive a signal output from the encoding apparatus of
The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding apparatus. The dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (ex. quantization step size information) and obtain transform coefficients.
The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
The predictor may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The predictor may determine whether intra prediction or inter prediction is applied to the current block based on the information on the prediction output from the entropy decoder 310 and may determine a specific intra/inter prediction mode.
The predictor 320 may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict one block but also simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the predictor may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image/video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information on the palette table and the palette index.
The intra predictor 331 may predict the current block by referring to the samples in the current picture. The referred samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In the intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra predictor 331 may determine the prediction mode applied to the current block by using a prediction mode applied to a neighboring block.
The inter predictor 332 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between the neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. For example, the inter predictor 332 may configure a motion information candidate list based on neighboring blocks and derive a motion vector of the current block and/or a reference picture index based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information on the prediction may include information indicating a mode of inter prediction for the current block.
The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (predicted block, predicted sample array) output from the predictor (including the inter predictor 332 and/or the intra predictor 331). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
The adder 340 may be called reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter prediction of a next picture.
Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in the picture decoding process.
The filter 350 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 360, specifically, a DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter predictor 332. The memory 360 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and/or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 260 so as to be utilized as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transfer the reconstructed samples to the intra predictor 331.
In the present disclosure, the embodiments described in the filter 260, the inter predictor 221, and the intra predictor 222 of the encoding apparatus 200 may be the same as or respectively applied to correspond to the filter 350, the inter predictor 332, and the intra predictor 331 of the decoding apparatus 300. The same may also apply to the unit 332 and the intra predictor 331.
As described above, prediction is performed in order to increase compression efficiency in performing video coding. Through this, a predicted block including prediction samples for a current block, which is a coding target block, may be generated. Here, the predicted block includes prediction samples in a space domain (or pixel domain). The predicted block may be indentically derived in the encoding apparatus and the decoding apparatus, and the encoding apparatus may increase image coding efficiency by signaling to the decoding apparatus not original sample value of an original block itself but information on residual (residual information) between the original block and the predicted block. The decoding apparatus may derive a residual block including residual samples based on the residual information, generate a reconstructed block including reconstruction samples by adding the residual block to the predicted block, and generate a reconstructed picture including reconstructed blocks.
The residual information may be generated through transform and quantization procedures. For example, the encoding apparatus may derive a residual block between the original block and the predicted block, derive transform coefficients by performing a transform procedure on residual samples (residual sample array) included in the residual block, and derive quantized transform coefficients by performing a quantization procedure on the transform coefficients, so that it may signal associated residual information to the decoding apparatus (through a bitstream). Here, the residual information may include value information, position information, a transform technique, transform kernel, a quantization parameter or the like of the quantized transform coefficients. The decoding apparatus may perform a quantization/dequantization procedure and derive the residual samples (or residual sample block), based on residual information. The decoding apparatus may generate a reconstructed block based on a predicted block and the residual block. The encoding apparatus may derive a residual block by dequantizing/inverse transforming quantized transform coefficients for reference for inter prediction of a next picture, and may generate a reconstructed picture based on this.
Referring to
The encoding apparatus may perform binarization on syntax elements related to residual including last_sig_coeff_x_prefix and last_sig_coeff_y_prefix (S400). The last_sig_coeff_x_prefix and the last_sig_coeff_y_prefix may be derived based on position of a last significant coefficient in a current block.
The last_sig_coeff_x_prefix and last_sig_coeff_y_prefix may represent an example of last significant coefficient prefix information on position of a last non-zero transform coefficient among the transform coefficients for the current block. More specifically, last_sig_coeff_x_prefix may represent an example of an x-axis prefix information, which is one of the last significant coefficient prefix information, and last_sig_coeff_y_prefix may represent an example of a y-axis prefix information, which is one of the last significant coefficient prefix information.
In this case, zero may be used as a value of cRiceParam. The encoding apparatus may derive a bin string for each of the last_sig_coeff_x_prefix and last_sig_coeff_y_prefix through the binarization procedure. The binarization procedure may be performed by a binarizer 242 in the entropy encoder 240.
According to an embodiment, cMax value for each of last_sig_coeff_x_prefix and last_sig_coeff_y_prefix may be derived based on whether high frequency zeroing is applied. Specific equation for deriving cMax will be described later in
Meanwhile, binarization may progress for the rest of syntax elements of Table 1 according to a predetermined method. For example, binarization may be performed on transform_skip_flag, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, coded_sub_block_flag, sig_coeff_flag, par_level_flag, rem_abs_gt1_flag, rem_abs_gt2_flag, coeff_sign_flag, mts_jdx, or the like according to a fixed-length binarization process, and on abs_remainder, binarization corresponding thereto may be performed.
The encoding apparatus may perform entropy encoding on syntax elements related to residual coding including the last_sig_coeff_x_prefix and last_sig_coeff_y_prefix (S410). The encoding apparatus may perform entropy encoding based on a bin string for each of the last_sig_coeff_x_prefix and last_sig_coeff_y_prefix. The encoding apparatus may context-based or bypass-based encode the bin string based on a entropy coding technique such as context-adaptive arithmetic coding (CABAC) or context-adaptive variable length coding (CAVLC), and the output thereof may be incorporated into a bitstream. The entropy encoding procedure may be performed by an entropy encoding processor 244 in the entropy encoder 240. The bitstream may include various information for image/video decoding, such as prediction information or the like, other than residual information including information on last_sig_coeff_x_prefix and last_sig_coeff_y_prefix as described above. The bitstream may be transferred to the decoding apparatus through a (digital) storage medium or a network.
Referring to
The decoding apparatus may perform binarization on syntax elements related to residual including last_sig_coeff_x_prefix and last_sig_coeff_y_prefix (S500). In this case, zero may be used as a value of cRiceParam. The encoding apparatus may derive an available bin string for each available value of the last_sig_coeff_x_prefix and last_sig_coeff_y_prefix through the binarization procedure. The binarization procedure may be performed by a binarizer 312 in the entropy decoder 310. According to an embodiment, cMax value for each of last_sig_coeff_x_prefix and last_sig_coeff_y_prefix may be derived based on whether high frequency zeroing is applied. Specific equation for deriving cMax will be described later in
The cMax may represent a maximum length of a codeword (bin string) derived in the binarization procedure for last_sig_coeff_x_prefix or last_sig_coeff_y_prefix. When decreasing the value of cMax, a length of the codeword for last_sig_coeff_x_prefix or last_sig_coeff_y_prefix can be effectively shortened. And as the coded bin reduced by shortening the codeword is a context coded bin, there may be an advantage in terms of an image coding throughput.
Meanwhile, binarization may progress for the rest of syntax elements of Table 1 according to a predetermined method. For example, binarization may be performed on transform_skip_flag, last_sig_coeff_x_suffix, last_sig_coeff_y_suffix, coded_sub_block_flag, sig_coeff_flag, par_level_flag, rem_abs_gt1_flag, rem_abs_gt2_flag, coeff_sign_flag, mts_jdx, or the like according to a fixed-length binarization process, and on abs_remainder, binarization corresponding thereto may be performed.
The decoding apparatus may perform entropy decoding on syntax elements related to residual coding including the last_sig_coeff_x_prefix and last_sig_coeff_y_prefix (S510). The decoding apparatus may compare derived bin string with the available bin strings while parsing and decoding sequentially each of bins for the last_sig_coeff_x_prefix. When a derived bin string is the same as one of the available bin strings, the value corresponding to the bin string may be derived as a value of the last_sig_coeff_x_prefix. When a derived bin string is the same as none of the available bin strings, the comparison procedure may be performed after further parsing and decoding next bit in the bitstream. Further, the decoding apparatus may compare derived bin string with the available bin strings while parsing and decoding sequentially each of bins for the last_sig_coeff_y_prefix. When a derived bin string is the same as one of the available bin strings, the value corresponding to the bin string may be derived as a value of the last_sig_coeff_y_prefix. When a derived bin string is the same as none of the available bin strings, the comparison procedure may be performed after further parsing and decoding next bit in the bitstream. Through these processes, without using a start bit or an end bit for specific information (specific syntax element) in a bitstream, the information can be signaled using a variable length bit, by which relatively smaller bit can be assigned to a low value, thus increasing an overall coding efficiency.
The decoding apparatus may perform context-based or bypass-based decoding on each of bins in the bin string from a bitstream based on an entropy coding technique such as the CABAC, the CAVLC or the like. The entropy decoding procedure may be performed by an entropy decoding processor 314 in the entropy decoder 310. The decoding apparatus may derive a position of a last significant coefficient based on a value of the last_sig_coeff_x_prefix and a value of the last_sig_coeff_y_prefix. Specific calculation, for example, may be performed based on Table 2 below.
In Table 2, LastSignificantCoeffX may represent and x-axis position of a last non-zero significant coefficient in the current (transform) block, and, LastSignificantCoeffY may represent a y-axis position of a last non-zero significant coefficient in the current (transform) block.
The bitstream may include various information for image/video decoding, such as prediction information or the like, other than residual information including information on last_sig_coeff_x_prefix and last_sig_coeff_y_prefix as described above. As described above, the bitstream may be transferred to the decoding apparatus through a (digital) storage medium or a network.
The decoding apparatus may derive residual samples for a current block by performing a dequantization procedure and/or an inverse transform procedure based on the (quantized) transform coefficients. Reconstructed samples may be generated based on the residual samples and prediction samples derived through inter/intra prediction, and a reconstructed picture including the reconstructed samples may be generated.
In the present specification, “high frequency zeroing” means a process by which transform coefficients related to a frequency equal to or higher than a certain value in a (transform) block having a first width size (or length) W1 and a first height size (or length) H1 are zeroed (i.e., determined as zero). When high frequency zeroing is applied, the transform coefficient values of the transform coefficients outside a low frequency transform coefficient region configured based on a second width size W2 and a second height size H2 among transform coefficients in the (transform) block may be all determined (set) as zero. The outside of the low frequency transform coefficient region may be referred to as a high frequency transform coefficient region. In an example, the low frequency transform coefficient region may be a region of a rectangular shape located from a top-left end of the (transform) block.
In the present specification, a specific term or sentence is used for defining a specific information or concept. For example, in the present specification, as described above, the process by which transform coefficients related to a frequency equal to or higher than a certain value in the (transform) block having the first width size (or length) W1 and the first height size (or length) H1 are zeroed is defined as “high frequency zeroing”; a region on which zeroing has been performed through the high frequency zeroing, “high frequency transform coefficient region”; and a region on which the zeroing is not performed, “low frequency transform coefficient region”. In order to represent a size of the low frequency transform coefficient region, the second width size (or length) W2 and the second height size (or length) H2 are used.
However, the term “high frequency zeroing” may be replaced by various terms such as a high frequency zeroing, a high frequency zero-out, zero-out or the like; the term “high frequency transform coefficient region”, various terms such as a high frequency zeroing applied region, a high frequency zeroing region, a high frequency region, a high frequency coefficient region, a high frequency zero-out region, a zero-out region or the like; and the term “low frequency transform coefficient region”, various terms such as a high frequency zeroing non-applied region, a low frequency region, a low frequency coefficient region, a restricted region, or the like. So, in the present specification, when interpreting throughout the specification a specific term or sentence used for defining a specific information or concept, it is necessary to pay attention to various operations, functions and effects according to contents which the term intends to represent rather being limited to its name.
In an example, there may be proposed a method for performing binarization of syntax elements, last_sig_coeff_x_prefix and last_sig_coeff_y_prefix, for a (transform) block (TB, TU or CB) to which the high frequency zeroing is applied. last_sig_coeff_x_prefix and last_sig_coeff_y_prefix may be binarized with a truncated Rice code, and at this time, a value of cRiceParam may use 0. A value of cMax used in binarization for the truncated Rice code may be determined based on Equation 1 when performing the binarization of last_sig_coeff_x_prefix, and be determined based on Equation 2 when performing the binarization of last_sig_coeff_y_prefix.
c Max=(log2 W1<<1)−1 [Equation 1]
c Max=(log2 H1<<1)−1 [Equation 2]
where W1 may represent a width length (or width) of the (transform) block, and H1 may represent a height length (or height) of the (transform) block. For example, in the case of a 64×32 transform block as in
Table 3 below represents binarization when W1 or H1 is 32, and Table 4 below represents binarization codeword when W1 or H1 is 64. In an example, the truncated Rice code binarization may be performed based on a size of the transform block, and thus, as in Table 4 below, the codeword of last_sig_coeff_x_prefix or last_sig_coeff_y_prefix for the coding for the value of LastSignificantCoeffX or LastSignificantCoeffY being 32 to 47 may be ‘11111111110’, and the codeword of last_sig_coeff_x_prefix or last_sig_coeff_y_prefix for the coding for the value of LastSignificantCoeffX or LastSignificantCoeffY being 48 to 63 may be ‘11111111111’. In both cases, the binarization may be performed based on 11 bins. The codeword may be called a bin string.
As shown in Table 1 above, when the value of last_sig_coeff_x_prefix is greater than 3, last_sig_coeff_x_suffix may be further signaled, and LastSignificantCoeffX may be derived based on the value of last_sig_coeff_x_suffix. For example, the codeword of last_sig_coeff_x_prefix for the coding for the value of LastSignificantCoeffX being 32 to 47 may be ‘11111111110’, and which value among 32 to 47 will be used may be determined based on the value of last_sig_coeff_x_suffix. As shown in Table 1 above, when the value of last_sig_coeff_y_prefix is greater than 3, last_sig_coeff_y_suffix may be further signaled, and LastSignificantCoeffY may be derived based on the value of last_sig_coeff_y_suffix. For example, the codeword of last_sig_coeff_x_prefix for the coding for the value of LastSignificantCoeffY being 32 to 47 may be ‘11111111110’, and which value among 32 to 47 will be used may be determined based on the value of last_sig_coeff_y_suffix.
Specific calculation for deriving LastSignificantCoeffX or LastSignificantCoeffY may be performed like, for example, the following.
The high frequency zeroing means zeroing coefficients of a frequency higher than a certain value in a transform block having a first width size W1 or a first height size H1 (i.e., determined as zero), and limiting residual transform coefficients to a second width size W2 or a second height size H2. At this time, in an example, a method in which the binarization is performed based on a truncated Rice code based on a size (second width size or second height size) of a restricted region derived through the high frequency zeroing may be considered, rather than a method in which binarization is performed based on a truncated Rice code based on a size (first width size or first height size) of a transform block. After defining cMax for last_sig_coeff_x_prefix and cMax for last_sig_coeff_y_prefix as Equations 3 and 4, respectively, using the second width size and the second height size, the truncated Rice code may be generated.
c Max=(log2(min(W1,W2))<<1)−1 [Equation 3]
c Max=(log2(min(H1,H2))<<1)−1 [Equation 4]
In an example, when the first width size or first height size is 64 and the second width size or the second height size is 32, the truncated Rice code derived based on Equations 3 and 4 may be like Table 6 below. Through the high frequency zeroing, residual transform coefficient is disappeared from high frequency coefficients in a high frequency transform coefficient region formed outside the second width size or the second height size, so it is possible to design a binarization codeword like Table 6 below.
In an example, W2 and H2 may be set as a fixed value. Alternatively, W2 and H2 may be determined based on W1 and H1. Alternatively, information indicating W2 and H2 may be signaled from an encoding apparatus to a decoding apparatus. In an example, W2 and H2 may be set as 32 or 16, respectively. In another example, W2 and H2 may be derived as a half of W1 and a half of H1, respectively. In still another example, W2 and H2 may be derived as a half of max(W1, H1). However, these are examples, and W2 and H2 may be determined according to other various methods set in an encoding apparatus and a decoding apparatus. Through the proposed method, it is possible to effectively reduce the length of a codeword for some values of LastSignificantCoeffX or LastSignificantCoeffY. Further, as the coded bin reduced through this is a context-coded bin, there may be an advantage in terms of a throughput.
In an example, the residual coding method described above in
The encoding apparatus according to
Each of steps disclosed in
As shown in
In the encoding apparatus according to an example, each of the subtractor 231, the transformer 232, the quantizer 233, and the entropy encoder 240 may be embodied by a separate chip, or at least two or more components may be embodied through a single chip.
The encoding apparatus according to an example may derive residual samples for a current block (S700). More specifically, the subtractor 231 of the encoding apparatus may derive residual samples for the current block.
The encoding apparatus according to an example may derive transform coefficients for the current block by transforming the residual samples for the current block (S710). More specifically, the transformer 232 of the encoding apparatus may derive transform coefficients for the current block by transforming the residual samples for the current block.
The encoding apparatus according to an example may derive quantized transform coefficients from the transform coefficients based on a quantization process (S720). More specifically, the quantizer 233 of the encoding apparatus may derive quantized transform coefficients from the transform coefficients based on a quantization process.
The encoding apparatus according to an example may encode residual information including information on the quantized transform coefficients (S730). More specifically, the encoder 240 of the encoding apparatus may encode the residual information including information on the quantized transform coefficients.
In an example, each of the transform coefficients for the current block may be related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient.
In an example, the residual information includes last significant coefficient prefix information and last significant coefficient suffix information on position of last non-zero transform coefficient among the transform coefficients for the current block.
In an example, the position of the last non-zero transform coefficient may be based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information.
In an example, a maximum length of the prefix codeword may be determined based on a size of the low frequency transform coefficient region.
According to the encoding apparatus and the operation method of the encoding apparatus of
Each of steps disclosed in
As shown in
In the decoding apparatus according to an example, each of the entropy decoder 310, the dequantizer 321, the inverse transformer 322, and the adder 340 may be embodied by a separate chip, or at least two or more components may be embodied through a single chip.
The decoding apparatus according to an example may receive a bitstream including residual information (S900). More specifically, the entropy decoder 310 of the decoding apparatus may receive a bitstream including residual information.
The decoding apparatus according to an example may derive quantized transform coefficients for a current block based on residual information included in a bitstream (S910). More specifically, the entropy decoder 310 of the decoding apparatus may derive the quantized transform coefficient for the current block based on the residual information included in the bitstream.
The decoding apparatus according to an example may derive transform coefficients from the quantized transform coefficients based on a dequantization process (S920). More specifically, the dequantizer 321 of the decoding apparatus may derive the transform coefficients from the quantized transform coefficients based on the dequantization process.
The decoding apparatus according to an example may derive residual samples for the current block by applying inverse transform to the derived transform coefficients (S920). More specifically, the inverse transformer 322 of the decoding apparatus may derive the residual samples for the current block by applying the inverse transform to the derived transform coefficients.
The decoding apparatus according to an example may generate a reconstructed picture based on the residual sample for the current block (S940). More specifically, the adder 340 of the decoding apparatus may generate the reconstructed picture based on the residual sample for the current block.
In an example, a unit of the current block may be a transform block TB.
In an example, each of the transform coefficients for the current block may be related to a high frequency transform coefficient region consisting of transform coefficient 0, or a low frequency transform coefficient region including at least one significant transform coefficient.
In an example, the residual information may include last significant coefficient prefix information and last significant coefficient suffix information on position of last non-zero transform coefficient among the transform coefficients for the current block.
In an example, the position of the last non-zero transform coefficient may be determined based on prefix codeword, which represents the last significant coefficient prefix information, and the last significant coefficient suffix information.
In an example, a maximum length of the prefix codeword may be determined based on a size of the low frequency transform coefficient region. The maximum length of the prefix codeword may be expressed as cMax.
In an example, the size of the low frequency transform coefficient region may be determined based on a width and height of the low frequency transform coefficient region.
In an example, the last significant coefficient prefix information may include x-axis prefix information and y-axis prefix information, and the prefix codeword may be a codeword for the x-axis prefix information or a codeword for the y-axis prefix information.
In an example, the x-axis prefix information may be expressed as last_sig_coeff_x_prefix; the y-axis prefix information may be expressed as last_sig_coeff_y_prefix; and the position of the last non-zero transform coefficient may be expressed as (LastSignificantCoeffX, LastSignificantCoeffY).
In an example, the maximum length of the codeword, which indicates the x-axis prefix information, may be determined to be 9 based on determination that the width of the low frequency transform coefficient region is 32.
In an example, the maximum length of the codeword, which indicates the y-axis prefix information, may be determined to be 9 based on determination that the height of the low frequency transform coefficient region is 32.
In an example, a maximum binarized value of the codeword for the x-axis prefix information may be determined to be 111111111 based on determination that a width of the current block is greater than 32, and that the width of the low frequency transform coefficient region is 32.
In an example, a maximum binarized value of the codeword for the y-axis prefix information may be determined to be 111111111 based on determination that a height of the current block is greater than 32, and that the height of the low frequency transform coefficient region is 32.
In an example, a maximum length of the codeword for the x-axis prefix information may be determined based on Equation 5 below.
c Maxx=(log2(min(W1,W2))<<1)−1 [Equation 5]
In Equation 5, cMaxx may be the maximum length of the codeword for the x-axis prefix information; the W1, a width of the current block; and the W2, a width of the low frequency transform coefficient region.
In an example, the width of the low frequency transform coefficient region may be 32, and the maximum length of the codeword for the x-axis prefix information may be determined based on Equation 6 below.
c Maxx=(min(log 2W1,5))<<1)−1 [Equation 6]
In Equation 6, cMaxx may be the maximum length of the codeword for the x-axis prefix information, and the W1 may be a width of the current block.
In an example, a maximum length of the codeword for the y-axis prefix information may be determined based on Equation 7 below.
c Maxy=(log2(min(H1,H2))<<1)−1 [Equation 7]
In Equation 7, cMaxy may be the maximum length of the codeword for the y-axis prefix information; the H1, a height of the current block; and the H2, a height of the low frequency transform coefficient region.
In an example, the height of the low frequency transform coefficient region may be 32, and the maximum length of the codeword for the y-axis prefix information may be determined based on Equation 8 below.
c Maxy=(min(log 2H1,5))<<1)−1 [Equation 8]
In Equation 8, cMax y may be the maximum length of the codeword for the x-axis prefix information, and the H1 may be a height of the current block.
In an example, the prefix codeword may be a truncated Rice code based on a truncated Rice binarization process.
In an example, the current block may be a square block or a non-square block. The width of the low frequency transform coefficient region may be determined to be 32 based on determination that the width of the current block is 64, and the height of the low frequency transform coefficient region may be determined to be 32 based on determination that the height of the current block is 64.
In an example, the size of the low frequency transform coefficient region may be one of 32×16, 16×32, 16×16 or 32×32.
In an example, the size of the low frequency transform coefficient region may be determined based on a size of the current block.
In an example, the residual information may include information on the size of the low frequency transform coefficient region.
In an example, the size of the current block may be 64×64; the size of the low frequency transform coefficient region, 32×32; and a maximum length of the prefix codeword, 9.
According to the decoding apparatus and the operation method of the decoding apparatus of
In an example, the residual coding process described above in
In this proposal, the binarization of last significant coefficient position is modified to reduce the maximum number of context coded bins. Specifically, the number of context coded bins for large block (i.e., 64×64, 64×N, N×64) in worst case scenario is reduced from 11 to 9. Experimental results show 0.01%, 0%, and −0.02% BD-rate reductions on Y, Cb, and Cr components, respectively, compared to VTM3.0 in all-intra configuration, and 0.01%, −0.01%, and −0.01% BD-rate reductions in random access configuration.
It is known that large block partitions typically present less residuals and the energy is more concentrated in low-frequency coefficients in the transform domain. In VTM3.0 [1], high frequency transform coefficients are zeroed out for the transform blocks with size (width or height, or both width and height) equal to 64. Thus, for a W×H transform block, where W indicates the block width and H the block height, only the top-left (W==64?32: W)×(H==64?32: H) transform coefficients are retained.
In [1], the prefix last_sig_coeff_x_prefix and last_sig_coeff_y_prefix are both context coded using truncated Rice binarization with cMax=(log 2TbSize<<1)−1. Here, if the syntax element to be parsed is last_sig_coeff_x_prefix, log 2TbSize is set equal to log 2TbWidth and otherwise, log 2TbSize is set equal to log 2TbHeight. That is, the maximum possible magnitude is determined by the transform block width or height. In the worst case scenario, the number of the bins that use context modelling is equal to 11. Table 7 shows the binarization for W=64 or H=64 in VTM3.0, wherein X means 0 or 1.
This contribution is proposed on top of JVET-M0250 [2]. In the proposed method, whether the current coefficient group belongs to the high-frequency zeroing region is checked. Using this information, the unnecessary coded_sub_block_flag (CSBF) coding for the high-frequency zeroing region can be skipped.
In one embodiment, CSBF coding method considering the high-frequency zeroing region may be proposed. If a first condition for Last or first coefficient group is satisfied, the value of CSBF may be inferred to 1. If the first condition for last or first coefficient group is not satisfied, a second condition for high-frequency zeroing region is checked. If the second condition for high-frequency zeroing region is satisfied, there is no CSBF coding. If the second condition for high-frequency zeroing is not satisfied, context index is derived and CSBF coding is performed.
A last position coding scheme is proposed for large block-size transforms. Compared to VTM3.0, the proposed coding scheme uses less context coded bins in the worst case scenario. The codeword in the proposed scheme still starts with a truncated Rice code and followed by a fixed length code. After high-frequency zeroing, for a W×H transform block, only the top-left min(W, 32)×min(H, 32) transform coefficients are kept. Thus, the maximum possible codeword length of the prefix last_sig_coeff_x_prefix or last_sig_coeff_y_prefix is derived as:
c Max=(min(log 2TbSize,5)<<1)−1.
Table 8 shows the binarization for W=64 or H=64, wherein X means 0 or 1. Here, the different parts are emphasized.
Table 9 shows comparison of codeword length for the prefix (context coded bins) when W=64 or H=64 and VTM3.0. The context coded bins can be as long as 9 in the proposed method, while it is up to 11 bins in VTM3.0. Note that when the magnitude of the last position component in the range of 24-31, the number of context coded bins is reduced from 10 to 9.
The proposed method has been implemented on the VTM3.0 software. The simulations were performed following the common test conditions defined in JVET-L1010 [3]. In every case, the anchor is the VTM3.0 software. Encoding time and decoding time come from the cross-check results [4]. Table 10 shows Experimental results for all-intra (AI) test condition; anchor is VTM3.0
Table 11 shows Experimental results for random-access (RA) test condition; anchor is VTM3.0
LG Electronics Inc. may have current or pending patent rights relating to the technology described in this contribution and, conditioned on reciprocity, is prepared to grant licenses under reasonable and non-discriminatory terms as necessary for implementation of the resulting ITU-T Recommendation |ISO/IEC International Standard (per box 2 of the ITU-T/ITU-R/ISO/IEC patent statement and licensing declaration form).
last_sig_coeff_x_prefix specifies the prefix of the column position of the last significant coefficient in scanning order within a transform block. The values of last_sig_coeff_x_prefix shall be in the range of 0 to (Min(log 2TbWidth, 5)<<1)−1, inclusive.
last_sig_coeff_y_prefix specifies the prefix of the row position of the last significant coefficient in scanning order within a transform block. The values of last_sig_coeff_y_prefix shall be in the range of 0 to (Min(log 2TbHeight, 5)<<1)−1, inclusive.
Table 13 below shows syntax elements and associated binarizations.
In the above-described example, the methods are explained on the basis of a flowchart by means of a series of steps or blocks, but the present disclosure is not limited to the order of steps, and a certain step may occur in a different order or concurrently with other steps than those described above. Further, it may be understood by a person having ordinary skill in the art that the steps shown in a flowchart is not exclusive, and that another step may be incorporated or one or more steps of the flowchart may be removed without affecting the scope of the present disclosure.
The foregoing methods according to the disclosure may be implemented as a software form, and the encoding apparatus and/or decoding apparatus according to the disclosure may be included in an apparatus for performing image processing of, for example, a TV, a computer, a smartphone, a set-top box, and a display device.
In the disclosure, when examples are embodied by a software, the forgoing methods may be embodied with modules (process, function or the like) of performing above-described functions. The modules may be stored in a memory and may be executed by a processor. The memory may be inside or outside the processor and may be connected to the processor via a well-known various means. The processor may include an application-specific integrated circuit (ASIC), a different chipset, a logic circuit, and/or a data processor. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and/or another storage device. That is, examples described in the present disclosure may be embodied and performed on a processor, a microprocessor, a controller or a chip. For example, function units shown in each drawing may be embodied and performed on a processor, a microprocessor, a controller or a chip. In this case, information or algorithm for embodying (e.g., information on instruction) may be stored in a digital storage medium.
Further, the decoding apparatus and the encoding apparatus to which the present disclosure is applied may be included in a multimedia broadcasting transceiver, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video chat device, a real time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a video on demand (VoD) service providing device, an over the top (OTT) video device, an internet streaming service providing device, a three-dimensional (3D) video device, a virtual reality device, an augmented reality (argumente reality) device, a video telephony video device, a transportation means terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an aircraft terminal, a ship terminal, etc.) and a medical video device, and may be used to process a video signal or a data signal. For example, the over the top (OTT) video device may include a game console, a Blu-ray player, an Internet access TV, a Home theater system, a smartphone, a Tablet PC, a digital video recorder (DVR) and the like.
In addition, the processing method to which the present disclosure is applied may be produced in the form of a program executed by a computer, and be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present disclosure may be also stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distribution storage devices in which computer-readable data are stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk and an optical data storage device. Further, the computer-readable recording medium also includes media embodied in the form of a carrier wave (for example, transmission over the Internet). In addition, a bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
Additionally, the examples of the present disclosure may be embodied as a computer program product by program codes, and the program codes may be performed in a computer by the examples of the present disclosure. The program codes may be stored on a computer-readable carrier. other steps than those described above. Further, it may be understood by a person having ordinary skill in the art that the steps shown in a flowchart is not exclusive, and that.
Referring to
The encoding server compresses content input from multimedia input devices such as a smartphone, a camera, a camcorder, etc. into digital data to generate a bitstream and transmit the bitstream to the streaming server. As another example, when the multimedia input devices such as smartphones, cameras, camcorders, etc. directly generate a bitstream, the encoding server may be omitted.
The bitstream may be generated by an encoding method or a bitstream generating method to which the embodiment(s) of the present document is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
The streaming server transmits the multimedia data to the user device based on a user's request through the web server, and the web server serves as a medium for informing the user of a service. When the user requests a desired service from the web server, the web server delivers it to a streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server. In this case, the control server serves to control a command/response between devices in the content streaming system.
The streaming server may receive content from a media storage and/or an encoding server. For example, when the content is received from the encoding server, the content may be received in real time. In this case, in order to provide a smooth streaming service, the streaming server may store the bitstream for a predetermined time.
Examples of the user device may include a mobile phone, a smartphone, a laptop computer, a digital broadcasting terminal, a personal digital assistant (PDA), a portable multimedia player (PMP), navigation, a slate PC, tablet PCs, ultrabooks, wearable devices (ex. smartwatches, smart glasses, head mounted displays), digital TVs, desktops computer, digital signage, and the like. Each server in the content streaming system may be operated as a distributed server, in which case data received from each server may be distributed.
Each of servers in the contents streaming system may be operated as a distributed server, and in this case, data received by each server may be distributedly processed.
This application is a Continuation of U.S. patent application Ser. No. 18/131,113, filed Apr. 5, 2023, which is a Continuation of U.S. patent application Ser. No. 17/537,813 filed Nov. 30, 2021 (now patented as U.S. Pat. No. 11,659,205, issued on Nov. 30, 2021), which is a Continuation of U.S. application Ser. No. 17/148,970 filed Jan. 14, 2021 (now patented as U.S. Pat. No. 11,218,733, issued on Jan. 4, 2022), which is a continuation of U.S. application Ser. No. 16/841,062 filed Apr. 6, 2020 issued as U.S. Pat. No. 10,958,939, which is a continuation of International Application PCT/KR2019/015330, with an international filing date of Nov. 12, 2019, which claims the benefit of U.S. Provisional Application Nos. 62/760,033 filed on Nov. 12, 2018, and 62/792,824 filed on Jan. 15, 2019, the contents of which are all hereby incorporated by reference herein in their entirety.
Number | Name | Date | Kind |
---|---|---|---|
20130114676 | Guo | May 2013 | A1 |
20130114738 | Chien | May 2013 | A1 |
20130188688 | Panusopone | Jul 2013 | A1 |
20150078443 | Kolesnikov | Mar 2015 | A1 |
20150110199 | Ikai | Apr 2015 | A1 |
20160219290 | Zhao | Jul 2016 | A1 |
20160353110 | Zhang | Dec 2016 | A1 |
20170064336 | Zhang | Mar 2017 | A1 |
Entry |
---|
Sole et al.“Transform Coefficient Coding in HEVC” 2012 IEEE, 13 Pages. |
Seregin et al. “Binarisation modification for last position coding”Joint CollaborativeTeam on Video Coding (JCT-VC) of ITU-TSG16WP3 and ISO/IECJTC1/SC29/WG11 6th Meeting: Torino, IT, Jul. 14-22, 2011, Document JCTVC-F375, 10 Pages. |
Sarwer et al.“CE7-related: Context modeling of the position of last significant coefficient coding”Joint Video Experts Team(JVET) of ITU-TSG16WP3 and ISO/IECJTC1/SC29/WG11 12th Meeting :Macao, CN, Oct. 3-12, 2018, Document: JVET-L0096-v1, 5 Pages. |
Number | Date | Country | |
---|---|---|---|
20240129534 A1 | Apr 2024 | US |
Number | Date | Country | |
---|---|---|---|
62792824 | Jan 2019 | US | |
62760033 | Nov 2018 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 18131113 | Apr 2023 | US |
Child | 18396644 | US | |
Parent | 17537813 | Nov 2021 | US |
Child | 18131113 | US | |
Parent | 17148970 | Jan 2021 | US |
Child | 17537813 | US | |
Parent | 16841062 | Apr 2020 | US |
Child | 17148970 | US | |
Parent | PCT/KR2019/015330 | Nov 2019 | WO |
Child | 16841062 | US |