The present disclosure relates an image or video coding, for example, related to scaling list parameter based coding techniques.
The demands for high-resolution and high-quality images and video, such as an ultra high definition (UHD) image and video of 4K or 8K or more, are recently increasing in various fields. As image and video data become high resolution and high quality, the amount of information or the number of bits that is relatively transmitted is increased compared to the existing image and video data. Accordingly, if image data is transmitted using a medium, such as the existing wired or wireless wideband line, or image and video data are stored using the existing storage medium, transmission costs and storage costs are increased.
Furthermore, interests and demands for immersive media, such as virtual reality (VR), artificial reality (AR) content or a hologram, are recently increasing. The broadcasting of an image and video having image characteristics different from those of real images, such as game images, is increasing.
Accordingly, there is a need for a high-efficiency image and video compression technology in order to effectively compress and transmit or store and playback information of high-resolution and high-quality images and video having such various characteristics.
In addition, there is a discussion on an adaptive frequency weighting quantization technique in the scaling process in order to improve compression efficiency and increase subjective/objective visual quality. In order to efficiently apply this technique, a method for signaling related information is needed.
A technical aspect of the present disclosure is to provide a method and an apparatus for increasing image coding efficiency.
Another technical aspect of the present disclosure is to provide a method and apparatus for increasing coding efficiency in a scaling process.
Still another technical aspect of the present disclosure is to provide a method and apparatus for efficiently constructing a scaling list used in a scaling process.
Yet another technical aspect of the present disclosure is to provide a method and apparatus for hierarchically signaling scaling list related information used in a scaling process.
Yet another technical aspect of the present disclosure is to provide a method and apparatus for efficiently applying a scaling list-based scaling process.
According to an embodiment of this document, scaling list data may be signaled through an adaptation parameter set (APS), and APS identification information (APS ID) indicating the ID of the APS referenced for the scaling list data may be signaled through header information (picture header/slice header/tile group header, etc.).
According to an embodiment of this document, an available flag information indicating whether the scaling list data is available may be signaled hierarchically, and based on the available flag information signaled in the higher-level syntax (e.g., SPS), available flag information in the lower-level syntax (for example, a picture header/slice header/type group header, etc.) may be signaled.
According to an embodiment of this document, constraint flag information may be signaled through a general constraint information syntax, and whether the available flag information of the scaling list data is used may be indicated based on the constraint flag information.
According to an embodiment of this document, type information of APS parameters may be signaled through the APS, and whether the corresponding APS is scaling list data (scaling list parameters) APS may be indicated based on the type information of the APS parameters.
According to an embodiment of this document, APS ID number information indicating the number of IDs of APS related to the scaling list data may be signaled through header information, and identification information syntax elements of APS related to the scaling list data as many as the number of APS IDs may be signaled.
According to an embodiment of the present document, a video/image decoding method performed by a decoding apparatus is provided. The video/image decoding method may include the method disclosed in the embodiments of this document.
According to an embodiment of the present document, a decoding apparatus for performing video/image decoding is provided. The decoding apparatus may perform the method disclosed in the embodiments of this document.
According to an embodiment of the present document, a video/image encoding method performed by an encoding apparatus is provided. The video/image encoding method may include the method disclosed in the embodiments of this document.
According to an embodiment of the present document, an encoding apparatus for performing video/image encoding is provided. The encoding apparatus may perform the method disclosed in the embodiments of this document.
According to an embodiment of the present document, a computer-readable digital storage medium storing encoded video/image information generated according to the video/image encoding method disclosed in at least one of the embodiments of this document is provided.
According to an embodiment of the present document, a computer-readable digital storage medium storing encoded information or encoded video/image information causing a decoding apparatus to perform the video/image decoding method disclosed in at least one of the embodiments of this document is provided.
This document may have various effects. For example, according to an embodiment of the present document, overall image/video compression efficiency may be increased. In addition, according to an embodiment of the present document, by applying an efficient scaling process, it is possible to increase coding efficiency and improve subjective/objective visual quality. In addition, according to an embodiment of the present document, it is possible to efficiently configure a scaling list used in a scaling process, and through this, it is possible to hierarchically signal scaling list related information. In addition, according to an embodiment of this document, coding efficiency may be increased by efficiently applying a scaling list-based scaling process.
Effects that can be obtained through specific embodiments of the present document are not limited to the effects listed above. For example, various technical effects that a person having ordinary skill in the related art can understand or derive from this document may exist. Accordingly, the specific effects of this document are not limited to those explicitly described in this document, and may include various effects that can be understood or derived from the technical characteristics of the present document.
This document may be modified in various ways and may have various embodiments, and specific embodiments will be illustrated in the drawings and described in detail. However, this does not intend to limit this document to the specific embodiments. Terms commonly used in this specification are used to describe a specific embodiment and is not used to limit the technical spirit of this document. An expression of the singular number includes plural expressions unless evidently expressed otherwise in the context. A term, such as “include” or “have” in this specification, should be understood to indicate the existence of a characteristic, number, step, operation, element, part, or a combination of them described in the specification and not to exclude the existence or the possibility of the addition of one or more other characteristics, numbers, steps, operations, elements, parts or a combination of them.
Meanwhile, elements in the drawings described in this document are independently illustrated for convenience of description related to different characteristic functions. This does not mean that each of the elements is implemented as separate hardware or separate software. For example, at least two of elements may be combined to form a single element, or a single element may be divided into a plurality of elements. An embodiment in which elements are combined and/or separated is also included in the scope of rights of this document unless it deviates from the essence of this document.
In this document, technical features individually explained in one drawing may be individually implemented, or may be simultaneously implemented.
Hereinafter, preferred embodiments of this document are described more specifically with reference to the accompanying drawings. Hereinafter, in the drawings, the same reference numeral is used in the same element, and a redundant description of the same element may be omitted.
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.
In this document, the term “A or B” may mean “only A”, “only B”, or “both A and B”. In other words, in this document, the term “A or B” may be interpreted to indicate “A and/or B”. For example, in this document, the term “A, B or C” may mean “only A”, “only B”, “only C”, or “any combination of A, B and C”.
A slash “/” or a comma used in this document may mean “and/or”. For example, “A/B” may mean “A and/or B”. Accordingly, “A/B” may mean “only A”, “only B”, or “both A and B”. For example, “A, B, C” may mean “A, B or C”.
In this document, “at least one of A and B” may mean “only A”, “only B”, or “both A and B”. Further, in this document, the expression “at least one of A or B” or “at least one of A and/or B” may be interpreted the same as “at least one of A and B”.
Further, in this document, “at least one of A, B and C” may mean “only A”, “only B”, “only C”, or “any combination of A, B and C”. Further, “at least one of A, B or C” or “at least one of A, B and/or C” may mean “at least one of A, B and C”.
Further, the parentheses used in this document may mean “for example”. Specifically, in the case that “prediction (intra prediction)” is expressed, it may be indicated that “intra prediction” is proposed as an example of “prediction”. In other words, the term “prediction” in this document is not limited to “intra prediction”, and it may be indicated that “intra prediction” is proposed as an example of “prediction”. Further, even in the case that “prediction (i.e., intra prediction)” is expressed, it may be indicated that “intra prediction” is proposed as an example of “prediction”.
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). Further, the methods/embodiments disclosed in this document may be applied to a method disclosed in the essential video coding (EVC) 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, a video may mean a set of a series of images according to the passage of time. A picture generally means a unit representing one image in a specific time period, and a slice/tile is a unit constituting a part of the picture in coding. The slice/tile may include one or more coding tree units (CTUs). 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 complete tiles or an integer number of consecutive complete CTU rows within a tile of a picture that may be exclusively contained in a single NAL unit.
Meanwhile, one picture may be divided into two or more subpictures. The subpicture may be a rectangular region of one or more slices within the picture.
A pixel or a pel 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.
Also, in this document, at least one of quantization/dequantization and/or transform/inverse transform may be omitted. When the quantization/dequantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. When the transform/inverse transform is omitted, transform coefficients may be called coefficients or residual coefficients, or may still be called transform coefficients for the sake of uniformity of expression.
In this document, a quantized transform coefficient and a transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient(s), and the information about the transform coefficient(s) may be signaled through a residual coding syntax. Transform coefficients may be derived based on residual information (or information about transform coefficient(s)), and scaled transform coefficients may be derived through inverse transform (scaling) on the transform coefficients. Residual samples may be derived based on an inverse transform (transform) for the scaled transform coefficients. This may be applied/expressed in other parts of this document as well.
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 pel.
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-loève 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, a 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 referenced samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In 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 the prediction mode applied to the 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, a 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, in performing video coding, a prediction is performed to enhance compression efficiency. A predicted block including prediction samples for a current block, that is, a target coding block, can be generated through the prediction. In this case, the predicted block includes the prediction samples in a spatial domain (or pixel domain). The predicted block is identically derived in the encoding apparatus and the decoding apparatus. The encoding apparatus can enhance image coding efficiency by signaling, to the decoding apparatus, information on a residual (residual information) between the original block not an original sample value itself of the original block and the predicted block. The decoding apparatus may derive a residual block including residual samples based on the residual information, may generate a reconstructed including reconstructed samples by adding the residual block and the predicted block, and may generate a reconstructed picture including the reconstructed blocks.
The residual information may be generated through a transform and quantization process. For example, the encoding apparatus may derive the residual block between the original block and the predicted block, may derive transform coefficients by performing a transform procedure on the residual samples (residual sample array) included in the residual block, may derive quantized transform coefficients by performing a quantization process on the transform coefficients, and may signal related residual information to the decoding apparatus (through a bitstream). In this case, the residual information may include information, such as value information, location information, transform scheme, transform kernel, and quantization parameter of the quantized transform coefficients. The decoding apparatus may perform a dequantization/inverse transform process based on the residual information, and may derive residual samples (or residual block). The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. Furthermore, the encoding apparatus may derive a residual block by dequantizing/inverse-transforming the quantized transform coefficients for reference to the inter prediction of a subsequent picture, and may generate a reconstructed picture.
The intra prediction may indicate prediction that generates prediction samples for the current block based on reference samples in a picture to which the current block belongs (hereinafter, referred to as a current picture). When the intra prediction is applied to the current block, neighboring reference samples to be used for the intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples which are samples adjacent to the left boundary and samples neighboring to the bottom-left of the current block of size nW×nH, a total of 2×nW samples which are samples adjacent to the top boundary of the current block and samples neighboring the top-right of the current block, and one sample neighboring the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include top neighboring samples of a plurality of columns and left neighboring samples of a plurality of rows. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample neighboring the bottom-right of the current block.
However, some of the neighboring reference samples of the current block have not yet been decoded or may not be available. In this case, the decoding apparatus may construct the neighboring reference samples to be used for prediction by substituting unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction may be configured through interpolation of available samples.
When the neighboring reference samples are derived, (i) a prediction sample can be derived based on the average or interpolation of the neighboring reference samples of the current block, and (ii) the prediction sample may be derived based on a reference sample existing in a specific (prediction) direction with respect to the prediction sample among neighboring reference samples of the current block. The case of (i) may be called a non-directional mode or a non-angular mode, and the case of (ii) may be called a directional mode or an angular mode.
In addition, the prediction sample may be generated through interpolation of a first neighboring sample located in the prediction direction of the intra prediction mode of the current block, based on the prediction sample of the current block, and a second neighboring sample located in a direction opposite to the prediction direction, among the neighboring reference samples. The above-described case may be referred to as linear interpolation intra prediction (LIP). In addition, chroma prediction samples may be generated based on the luma samples using a linear model. This case may be called LM mode or CCLM (chroma component LM) mode.
Further, temporary prediction samples of the current block may be derived based on the filtered neighboring reference samples, and the prediction sample of the current block may also be derived by weighted-summing at least one reference sample, which is derived according to the intra prediction mode among conventional neighboring reference samples, that is, the neighboring reference samples not filtered, and the temporary prediction sample. The aforementioned case may be called a position dependent intra prediction (PDPC).
Further, the prediction sample may be derived using the reference sample positioned in a prediction direction in a corresponding line by selecting a reference sample line with the highest prediction accuracy among the neighboring multi-reference sample lines of the current block, and an intra prediction encoding may be performed by a method for indicating (signaling) the reference sample line used at this time to the decoding apparatus. The aforementioned case may be called multi-reference line (MRL) intra prediction or intra prediction based on the MRL.
Further, the intra prediction may be performed based on the same intra prediction mode by splitting the current block into vertical or horizontal sub-partitions, and the neighboring reference samples may be derived and used in units of sub-partition. That is, in this case, the intra prediction mode for the current block is equally applied to the sub-partitions, and the neighboring reference sample may be derived and used in units of sub-partition, thereby enhancing intra prediction performance in some cases. Such a prediction method may be called intra sub-partitions (ISP) intra prediction or intra prediction based on the ISP.
The aforementioned intra prediction methods may be called an intra prediction type separately from the intra prediction mode. The intra prediction type may be called various terms such as an intra prediction technique or an additional intra prediction mode. For example, the intra prediction type (or the additional intra prediction mode or the like) may include at least one of the aforementioned LIP, PDPC, MRL, and ISP. A general intra prediction method other than specific intra prediction types such as the LIP, the PDPC, the MRL, and the ISP may be called a normal intra prediction type. The normal intra prediction type may be generally applied if the specific intra prediction type is not applied, and the prediction may be performed based on the aforementioned intra prediction mode. Meanwhile, a post-processing filtering for the derived prediction sample may also be performed if necessary.
Specifically, the intra prediction process may include an intra prediction mode/type determination step, neighboring reference samples derivation step, and a prediction sample derivation step based on the intra prediction mode/type. In addition, if necessary, a post-filtering step may be performed on the derived prediction sample.
In addition, among the intra prediction modes, the non-directional mode (or non-angular mode) is the DC mode based on an average of the neighboring reference samples of the current block or the planar mode based on an interpolation-based of the neighboring reference samples.
The method disclosed in
Referring to
Meanwhile, the encoding apparatus may also perform the prediction sample filtering process. The prediction sample filtering may be called a post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering process. The prediction sample filtering process may be omitted in some cases.
The encoding apparatus generates residual samples for the current block based on the (filtered) prediction samples (S410). The encoding apparatus may compare the prediction samples based on phases in original samples of the current block, and derive the residual samples.
The encoding apparatus may encode image information including the information on the intra prediction (prediction information) and the residual information on the residual samples (S420). The prediction information may include intra prediction mode information and intra prediction type information. The encoding apparatus may output the encoded image information in the form of a bitstream. The output bitstream may be delivered to the decoding apparatus through a storage medium or a network.
The residual information may include a residual coding syntax. The encoding apparatus may derive the quantized transform coefficients by transforming/quantizing the residual samples. The residual information may include the information on the quantized transform coefficients.
Meanwhile, as described above, the encoding apparatus may generate the reconstructed picture (including reconstructed samples and reconstructed block). To this end, the encoding apparatus may derive (modified) residual samples by dequantizing/inversely transforming the quantized transform coefficients again. As described above, the reason of transforming/quantizing the residual samples and then dequantizing/inversely transforming them again is to derive the same residual samples as the residual samples derived by the decoding apparatus as described above. The encoding apparatus may generate the reconstructed block including the reconstructed samples for the current block based on the prediction samples and the (modified) residual samples. The reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, an in-loop filtering process or the like may be further applied to the reconstructed picture.
The method disclosed in
Referring to
Specifically, the decoding apparatus may derive the intra prediction mode/type for the current block based on the received prediction information (intra prediction mode/type information) (S500). The decoding apparatus may derive the neighboring reference samples of the current block (S510). The decoding apparatus generates the prediction samples in the current block based on the intra prediction mode/type and the neighboring reference samples (S520). In this case, the decoding apparatus may perform the prediction sample filtering process. The prediction sample filtering may be called the post filtering. Some or all of the prediction samples may be filtered by the prediction sample filtering process. The prediction sample filtering process may be omitted in some cases.
The decoding apparatus generates the residual samples for the current block based on the received residual information (S530). The decoding apparatus may generate the reconstructed samples for the current block based on the prediction samples and the residual samples, and derive the reconstructed block including the reconstructed samples (S540). The reconstructed picture for the current picture may be generated based on the reconstructed block. As described above, the in-loop filtering process or the like may be further applied to the reconstructed picture.
Here, the intra prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether a most probable mode (MPM) is applied to the current block or whether a remaining mode is applied thereto. At this time, if the MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. Further, if the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (e.g., intra_luma_mpm_remainder) indicating one of remaining intra prediction modes other than the intra prediction mode candidates (MPM candidates). The decoding apparatus may determine the intra prediction mode of the current block based on the intra prediction mode information.
Further, the intra prediction type information may be implemented in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating whether the MRL is applied to the current block and which reference sample line is used if the MRL is applied, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating split types of the subpartitions if the ISP is applied, flag information indicating whether the PDCP is applied, or flag information indicating whether the LIP is applied. Further, the intra prediction type information may include an MIP flag indicating whether the MIP is applied to the current block.
The intra prediction mode information and/or intra prediction type information may be encoded/decoded by the coding method described in the present document. For example, the intra prediction mode information and/or intra prediction type information may be encoded/decoded by an entropy coding (e.g., CABAC, CAVLC).
Referring to
The coding apparatus may determine an intra prediction mode/type (S600).
The encoding apparatus may determine an intra prediction mode/type applied to the current block from among the various intra prediction modes/types described above, and may generate prediction-related information. The prediction-related information may include intra prediction mode information indicating an intra prediction mode applied to the current block and/or intra prediction type information indicating an intra prediction type applied to the current block. The decoding apparatus may determine the intra prediction mode/type applied to the current block based on the prediction related information.
Here, the intra prediction mode information may include, for example, flag information (e.g., intra_luma_mpm_flag) indicating whether a most probable mode (MPM) is applied to the current block or a remaining mode is applied. When the MPM is applied to the current block, the prediction mode information may further include index information (e.g., intra_luma_mpm_idx) indicating one of intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be composed of an MPM candidate list or an MPM list. In addition, when the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex. intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes except for the intra prediction mode candidates (MPM candidates). The decoding apparatus may determine the intra prediction mode of the current block based on the intra prediction mode information.
In addition, the intra prediction type information may be implemented in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of reference sample line information (ex. intra_luma_ref_idx) indicating whether the MRL is applied to the current block and when applied, which reference sample line is used, and ISP flag information indicating whether the ISP is applied to the current block (ex. intra subpartitions_mode_flag), ISP type information indicating the split type of subpartitions when the ISP is applied (ex. intra subpartitions_split_flag), flag information indicating whether PDCP is applied or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include a MIP flag indicating whether matrix-based intra prediction (MIP) is applied to the current block.
For example, when the intra prediction is applied, the intra prediction mode applied to the current block may be determined by using the intra prediction mode of the neighboring block. For example, the coding apparatus may select one of the MPM candidates in an MPM (most probable mode) list, which is derived based on the intra prediction mode of the neighboring block (e.g., the left and/or upper neighboring block) of the current block and additional candidate modes, based on the received MPM index, or may select one of the remaining intra prediction modes that are not included in the MPM candidates (and the planar mode) based on the reforming intra prediction mode information. The MPM list may be configured to include or not include the planar mode as a candidate. For example, when the MPM list includes the planar mode as a candidate, the MPM list may have 6 candidates, and when the MPM list does not include the planar mode as a candidate, the MPM list may have 5 candidates. When the MPM list does not include the planar mode as a candidate, a not planar flag (e.g., intra_luma_not_planar_flag) indicating whether the intra prediction mode of the current block is not the planar mode may be signaled. For example, the MPM flag may be signaled first, and the MPM index and the not planar flag may be signaled when the value of the MPM flag is 1. Also, the MPM index may be signaled when the value of the not planar flag is 1. Here, the reason for configuring the MPM list not to include the planar mode as a candidate, is rather than that the planar mode is not the MPM, to first check whether the MPM is in the planar mode by first signaling a flag (not planar flag) because the planar mode is always considered as the MPM.
For example, whether the intra prediction mode applied to the current block is among the MPM candidates (and the planar mode) or the remaining mode may be indicated based on the MPM flag (e.g., intra_luma_mpm_flag). The MPM flag value 1 may indicate that the intra prediction mode for the current block is within MPM candidates (and planar mode), and the MPM flag value 0 may indicate that the intra prediction mode for the current block is not in MPM candidates (and planar mode). The not planar flag (ex. intra_luma_not_planar_flag) value 0 may indicate that the intra prediction mode for the current block is the planar mode, and the not planar flag value 1 may indicate that the intra prediction mode for the current block is not the planar mode. The MPM index may be signaled in the form of an mpm_idx or intra_luma_mpm_idx syntax element, and the remaining intra prediction mode information may be signaled in the form of a rem_intra_luma_pred_mode or intra_luma_mpm_remainder syntax element. For example, the remaining intra prediction mode information may indicate one of the remaining intra prediction modes not included in the MPM candidates (and planar mode) among all intra prediction modes by indexing in the order of prediction mode number. The intra prediction mode may be the intra prediction mode for a luma component (sample). Hereinafter, the intra prediction mode information may include at least one of the MPM flag (ex. intra_luma_mpm_flag), the not planar flag (ex. intra_luma_not_planar_flag), the MPM index (ex. mpm_idx or intra_luma_mpm_idx), and the remanding intra prediction mode information (ex. rem_intra_luma_pred_mode or intra_luma_mpm_remainder). In this document, the MPM list may be referred to by various terms such as an MPM candidate list and candModeList.
When the MIP is applied to the current block, a separate the mpm flag (ex. intra_mip_mpm_flag), the mpm index (ex. intra_mip_mpm_idx), and the remaining intra prediction mode information (ex. intra_mip_mpm_remainder) for the MIP may be separately signaled, and the not planar flag is not signaled.
In other words, in general, when an image is divided into blocks, a current block to be coded and a neighboring block have similar image characteristics. Therefore, there is a high probability that the current block and the neighboring block have the same or similar intra prediction modes. Accordingly, the encoding apparatus may use the intra prediction mode of the neighboring block to encode the intra prediction mode of the current block.
As described above, when the intra prediction mode applied to the current block is determined using the intra prediction mode of the neighboring block, the coding apparatus may configure a list of most probable modes (MPM) for the current block. The MPM list may be referred to as an MPM candidate list. Here, the MPM may refer to a mode used to improve coding efficiency in consideration of the similarity between the current block and the neighboring blocks during intra prediction mode coding. As mentioned above, the MPM list may be configured including the planar mode, or may be configured except for the planar mode. For example, when the MPM list includes the planar mode, the number of candidates in the MPM list may be six. And, when the MPM list does not include the planar mode, the number of candidates in the MPM list may be five.
The encoding apparatus may perform prediction based on various intra prediction modes, and may determine an optimal intra prediction mode based on rate-distortion optimization (RDO) based thereon. In this case, the encoding apparatus may determine the optimal intra prediction mode by using only the planar mode and the MPM candidates configured in the MPM list, or may determine the optimal intra prediction mode by further using the remaining intra prediction modes as well as the planar mode and the MPM candidates configured in the MPM list. Specifically, for example, if the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP) other than the normal intra prediction type, the encoding apparatus may determine the optimal intra prediction mode by considering only the MPM candidates and the planar mode as intra prediction mode candidates for the current block. That is, in this case, the intra prediction mode for the current block may be determined only from among the MPM candidates and the planar mode, and in this case, encoding/signaling of the mpm flag may not be performed. In this case, the decoding apparatus may estimate that the mpm flag is 1 without separately receiving the signal of the mpm flag.
Meanwhile, in general, when the intra prediction mode of the current block is not the planar mode and is one of the MPM candidates in the MPM list, the encoding apparatus generates an mpm index (mpm_idx) indicating one of the MPM candidates. Alternatively, if the intra prediction mode of the current block is not in the MPM list, the encoding apparatus generates MPM remainder information (remaining intra prediction mode information indicating the same mode as the intra prediction mode of the current block among the remaining intra prediction modes not included in the MPM list (and planar mode). The MPM remainder information may include, for example, an intra_luma_mpm_remainder syntax element.
The decoding apparatus obtains intra prediction mode information from the bitstream. As described above, the intra prediction mode information may include at least one of an MPM flag, a not planar flag, an MPM index, and MPM remainder information (remaining intra prediction mode information). The decoding apparatus may configure the MPM list. The MPM list is configured in the same way as the MPM list configured in the encoding apparatus. That is, the MPM list may include the intra prediction mode of the neighboring block, and may further include specific intra prediction modes according to a predetermined method.
The decoding apparatus may determine the intra prediction mode of the current block based on the MPM list and intra prediction mode information. For example, when the value of the MPM flag is 1, the decoding apparatus may derive the planar mode as the intra prediction mode of the current block (based on the not planar flag) or may derive the candidate indicated by the MPM index from among the MPM candidates in the MPM list as the intra prediction mode of the current block. Here, MPM candidates may indicate only candidates included in the MPM list, or may include not only candidates included in the MPM list but also the planar mode applicable when the value of the MPM flag is 1.
As another example, when the value of the MPM flag is 0, the decoding apparatus may derive the intra prediction mode indicated by the remaining intra prediction mode information (which may be referred to as mpm remainder information) among the remaining intra prediction modes not included in the MPM list and the planar mode as the intra prediction mode of the current block. Meanwhile, as another example, when the intra prediction type of the current block is a specific type (e.g., LIP, MRL, or ISP, etc.), the decoding apparatus may derive the candidate indicated by the MPM flag in the planar mode or the MPM list as the intra prediction mode of the current block without parsing/decoding/checking the MPM flag.
The coding apparatus may derive peripheral reference samples of the current block (S610).
When the intra prediction is applied to the current block, neighboring reference samples to be used for the intra prediction of the current block may be derived. The neighboring reference samples of the current block may include a total of 2×nH samples which are samples adjacent to the left boundary and samples neighboring to the bottom-left of the current block of size nW×nH, a total of 2×nW samples which are samples adjacent to the top boundary of the current block and samples neighboring the top-right of the current block, and one sample neighboring the top-left of the current block. Alternatively, the neighboring reference samples of the current block may include top neighboring samples of a plurality of columns and left neighboring samples of a plurality of rows. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample neighboring the bottom-right of the current block.
On the other hand, when MRL is applied (that is, when the value of the MRL index is greater than 0), the neighboring reference samples may be located on lines 1 and 2, not on line 0 adjacent to the current block on the left/upper side, in this case, the number of neighboring reference samples may be further increased. Meanwhile, when ISP is applied, neighboring reference samples may be derived in units of sub-partitions.
The coding apparatus may derive prediction samples by performing intra prediction on the current block (S620).
The coding apparatus may derive prediction samples based on the intra prediction mode/type and neighboring samples. The coding apparatus may derive reference samples according to the intra prediction mode of the current block among neighboring reference samples of the current block, and may derive the prediction samples of the current block based on the reference sample.
Meanwhile, when inter prediction is applied, the predictor of the encoding apparatus/decoding apparatus may derive prediction samples by performing inter prediction in units of blocks. The inter prediction may be applied when performing the prediction on the current block. That is, the predictor (more specifically, inter predictor) of the encoding/decoding apparatus may derive prediction samples by performing the inter prediction in units of the block. The inter prediction may represent prediction derived by a method dependent to the data elements (e.g., sample values or motion information) of a picture(s) other than the current picture. When the inter prediction is applied to the current block, a predicted block (prediction sample array) for the current block may be derived based on a reference block (reference sample array) specified by the motion vector on the reference picture indicated by the reference picture index. In this case, in order to reduce an amount of motion information transmitted in the inter-prediction mode, the motion information of the current block may be predicted in units of a block, a subblock, or a sample based on a correlation of the motion information between the neighboring block and the current block. The motion information may include the motion vector and the reference picture index. The motion information may further include inter-prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of applying the inter prediction, the neighboring block may include a spatial neighboring block which is present in the current picture and a temporal neighboring block which is present in the reference picture. A reference picture including the reference block and a reference picture including the temporal neighboring block may be the same as each other or different from each other. The temporal neighboring block may be referred to as a name such as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may be referred to as a collocated picture (colPic). For example, a motion information candidate list may be configured based on the neighboring blocks of the current block and a flag or index information indicating which candidate is selected (used) may be signaled in order to derive the motion vector and/or reference picture index of the current block. The inter prediction may be performed based on various prediction modes and for example, in the case of a skip mode and a merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In the case of the skip mode, the residual signal may not be transmitted unlike the merge mode. In the case of a motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor and a motion vector difference may be signaled. In this case, the motion vector of the current block may be derived by using a sum of the motion vector predictor and the motion vector difference.
The motion information may further include L0 motion information and/or L1 motion information according to the inter-prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). A L0-direction motion vector may be referred to as an L0 motion vector or MVL0 and an L1-direction motion vector may be referred to as an L1 motion vector or MVL1. A prediction based on the L0 motion vector may be referred to as an L0 prediction, a prediction based on the L1 motion vector may be referred to as an L1 prediction, and a prediction based on both the L0 motion vector and the L1 motion vector may be referred to as a bi-prediction. Here, the L0 motion vector may indicate a motion vector associated with a reference picture list L0 and the L1 motion vector may indicate a motion vector associated with a reference picture list L1. The reference picture list L0 may include pictures prior to the current picture in an output order and the reference picture list L1 may include pictures subsequent to the current picture in the output order, as the reference pictures. The prior pictures may be referred to as a forward (reference) picture and the subsequent pictures may be referred to as a reverse (reference) picture. The reference picture list L0 may further include the pictures subsequent to the current picture in the output order as the reference pictures. In this case, the prior pictures may be first indexed in the reference picture list L0 and the subsequent pictures may then be indexed. The reference picture list L1 may further include the pictures prior to the current picture in the output order as the reference pictures. In this case, the subsequent pictures may be first indexed in the reference picture list L1 and the prior pictures may then be indexed. Here, the output order may correspond to a picture order count (POC) order.
The method disclosed in
Referring to the
For example, when the skip mode or the merge mode is applied to the current block, the encoding apparatus may configure a merging candidate list to be described below and derive a reference block in which a difference from the current block is minimum or is equal to or less than a predetermined criterion among reference blocks indicated by merge candidates included in the merging candidate list. In this case, a merge candidate associated with the derived reference block may be selected and merge index information indicating the selected merge candidate may be generated and signaled to the decoding apparatus. The motion information of the current block may be derived by using the motion information of the selected merge candidate.
As another example, when an (A)MVP mode is applied to the current block, the encoding apparatus may configure an (A)MVP candidate list and use a motion vector of a selected mvp candidate among motion vector predictor (mvp) candidates included in the (A)MVP candidate list as the mvp of the current block. In this case, for example, the motion vector indicating the reference block derived by the motion estimation may be used as the motion vector of the current block and an mvp candidate having a motion vector with a smallest difference from the motion vector of the current block among the mvp candidates may become the selected mvp candidate. A motion vector difference (MVD) which is a difference obtained by subtracting the mvp from the motion vector of the current block may be derived. In this case, the information on the MVD may be signaled to the decoding apparatus. Further, when the (A)MVP mode is applied, the value of the reference picture index may be configured as reference picture index information and separately signaled to the decoding apparatus.
The encoding apparatus may derive the residual samples based on the predicted samples (S710). The encoding apparatus may derive the residual samples by comparing original samples and the prediction samples of the current block.
The encoding apparatus may encode image information including prediction information and residual information (S720). The encoding apparatus may output the encoded image information in the form of a bitstream. Here, the prediction information may include information on prediction mode information (e.g., skip flag, merge flag or mode index, etc.) and information on motion information as information related to the prediction procedure. The information on the motion information may include candidate selection information (e.g., merge index, mvp flag or mvp index) which is information for deriving the motion vector. Further, the information on the motion information may include the information on the MVD and/or the reference picture index information. Further, the information on the motion information may include information indicating whether to apply the L0 prediction, the L1 prediction, or the bi-prediction. The residual information is information on the residual samples. The residual information may include information on quantized transform coefficients for the residual samples.
An output bitstream may be stored in a (digital) storage medium and transferred to the decoding apparatus or transferred to the decoding apparatus via the network.
Meanwhile, as described above, the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is to derive the same prediction result as that performed by the decoding apparatus, and as a result, coding efficiency may be increased. Accordingly, the encoding apparatus may store the reconstruction picture (or reconstruction samples or reconstruction blocks) in the memory and utilize the reconstruction picture as the reference picture. The in-loop filtering process may be further applied to the reconstruction picture as described above.
The method disclosed in
Referring to
Specifically, the decoding apparatus may determine the prediction mode for the current block based on the received prediction information (S800). The decoding apparatus may determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
For example, it may be determined whether the merge mode or the (A)MVP mode is applied to the current block based on the merge flag. Alternatively, one of various inter prediction mode candidates may be selected based on the mode index. The inter prediction mode candidates may include a skip mode, a merge mode, and/or an (A)MVP mode or may include various inter prediction modes described above.
The decoding apparatus derives the motion information of the current block based on the determined inter prediction mode (S810). For example, when the skip mode or the merge mode is applied to the current block, the decoding apparatus may configure the merge candidate list and select one merge candidate among the merge candidates included in the merge candidate list. Here, the selection may be performed based on the selection information (merge index). The motion information of the current block may be derived by using the motion information of the selected merge candidate. The motion information of the selected merge candidate may be used as the motion information of the current block.
As another example, when an (A)MVP mode is applied to the current block, the decoding apparatus may configure an (A)MVP candidate list and use a motion vector of a selected mvp candidate among motion vector predictor (mvp) candidates included in the (A)MVP candidate list as the mvp of the current block. Here, the selection may be performed based on the selection information (mvp flag or mvp index). In this case, the MVD of the current block may be derived based on the information on the MVD, and the motion vector of the current block may be derived based on the mvp of the current block and the MVD. Further, the reference picture index of the current block may be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list for the current block may be derived as the reference picture referred for the inter prediction of the current block.
Meanwhile, the motion information of the current block may be derived without a candidate list configuration and in this case, the motion information of the current block may be derived according to a procedure disclosed in the prediction mode. In this case, the candidate list configuration may be omitted.
The decoding apparatus may generate the prediction samples for the current block based on the motion information of the current block (S820). In this case, the reference picture may be derived based on the reference picture index of the current block and the prediction samples of the current block may be derived by using the samples of the reference block indicated by the motion vector of the current block on the reference picture. In this case, in some cases, a predicted sample filtering procedure for all or some of the prediction samples of the current block may be further performed.
For example, the inter-prediction unit of the decoding apparatus may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and the prediction mode determination unit may determine the prediction mode for the current block based on the received prediction mode information, the motion information derivation unit may derive the motion information (the motion vector and/or reference picture index) of the current block based on the information on the received motion information, and the prediction sample derivation unit may derive the predicted samples of the current block.
The decoding apparatus generates the residual samples for the current block based on the received residual information (S830). The decoding apparatus may generate the reconstruction samples for the current block based on the prediction samples and the residual samples and generate the reconstruction picture based on the generated reconstruction samples (S840). Thereafter, the in-loop filtering procedure may be further applied to the reconstruction picture as described above.
Referring to
The coding apparatus may determine an inter prediction mode for the current block (S900). Various inter prediction modes may be used for the prediction of the current block in the picture. For example, various modes, such as a merge mode, a skip mode, a motion vector prediction (MVP) mode, an affine mode, a subblock merge mode, a merge with MVD (MMVD) mode, and a historical motion vector prediction (HMVP) mode may be used. A decoder side motion vector refinement (DMVR) mode, an adaptive motion vector resolution (AMVR) mode, a bi-prediction with CU-level weight (BCW), a bi-directional optical flow (BDOF), and the like may be further used as additional modes. The affine mode may also be referred to as an affine motion prediction mode. The MVP mode may also be referred to as an advanced motion vector prediction (AMVP) mode. In the present document, some modes and/or motion information candidates derived by some modes may also be included in one of motion information-related candidates in other modes. For example, the HMVP candidate may be added to the merge candidate of the merge/skip modes, or also be added to an mvp candidate of the MVP mode. If the HMVP candidate is used as the motion information candidate of the merge mode or the skip mode, the HMVP candidate may be referred to as the HMVP merge candidate.
The prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding apparatus to the decoding apparatus. In this case, the prediction mode information may be included in the bitstream and received by the decoding apparatus. The prediction mode information may include index information indicating one of multiple candidate modes. Alternatively, the inter prediction mode may be indicated through a hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, whether to apply the skip mode may be indicated by signaling a skip flag, whether to apply the merge mode may be indicated by signaling a merge flag when the skip mode is not applied, and it is indicated that the MVP mode is applied or a flag for additional distinguishing may be further signaled when the merge mode is not applied. The affine mode may be signaled as an independent mode or signaled as a dependent mode on the merge mode or the MVP mode. For example, the affine mode may include an affine merge mode and an affine MVP mode.
The coding apparatus may derive motion information for the current block (S910). Motion information derivation may be derived based on the inter prediction mode.
The coding apparatus may perform inter prediction using motion information of the current block. The encoding apparatus may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus may search a similar reference block having a high correlation in units of a fractional pixel within a predetermined search range in the reference picture by using an original block in an original picture for the current block and derive the motion information through the searched reference block. The similarity of the block may be derived based on a difference of phase based sample values. For example, the similarity of the block may be calculated based on a sum of absolute differences (SAD) between the current block (or a template of the current block) and the reference block (or the template of the reference block). In this case, the motion information may be derived based on a reference block having a smallest SAD in a search area. The derived motion information may be signaled to the decoding apparatus according to various methods based on the inter prediction mode.
The coding apparatus may perform inter prediction based on motion information for the current block (S920). The coding apparatus may derive prediction sample(s) for the current block based on the motion information. A current block including prediction samples may be referred to as a predicted block.
Meanwhile, as described above, the quantizer of the encoding apparatus may apply quantization to the transform coefficients to derive quantized transform coefficients, and the dequantizer of the encoding apparatus or the dequantizer of the decoding apparatus may derive transform coefficients by applying dequantization to the quantized transform coefficients.
In general, in video/image coding, a quantization rate may be changed, and compression may be adjusted using the changed quantization rate. From an implementation point of view, in consideration of complexity, a quantization parameter (QP) may be used instead of using the quantization rate directly. For example, quantization parameters of integer values from 0 to 63 may be used, and each quantization parameter value may correspond to an actual quantization rate. The quantization parameter (QPy) for the luma component (luma sample) and the quantization parameter (QPc) for the chroma component (chroma sample) may be set differently.
The quantization process takes a transform coefficient (C) as an input and divides it by a quantization rate (Qstep) to obtain a quantized transform coefficient (C) based on this. In this case, in consideration of computational complexity, a quantization rate is multiplied by a scale to form an integer, and a shift operation may be performed by a value corresponding to the scale value. A quantization scale may be derived based on the product of the quantization rate and the scale value. That is, the quantization scale may be derived according to the QP. The quantization scale may be applied to the transform coefficient (C) to derive a quantized transform coefficient (C) based thereon.
The dequantization process is the inverse process of the quantization process, and a quantized transform coefficient (C′) is multiplied by a quantization rate (Qstep), and a reconstructed transform coefficient (C″) can be obtained based on this. In this case, a level scale may be derived according to the quantization parameter, and the level scale may be applied to the quantized transform coefficient (C′) to derive a reconstructed transform coefficient (C″) based on this. The reconstructed transform coefficient (C″) may be slightly different from the original transform coefficient (C) due to loss in the transform and/or quantization process. Accordingly, the encoding apparatus performs the dequantization in the same manner as in the decoding apparatus.
In addition, an adaptive frequency weighting quantization technique that adjusts quantization intensity according to frequency may be applied. The adaptive frequency weighting quantization technique is a method of applying different quantization strengths for each frequency. The adaptive frequency weighting quantization may differently apply a quantization intensity for each frequency using a predefined quantization scaling matrix. That is, the above-described quantization/dequantization process may be further performed based on the quantization scaling matrix. For example, different quantization scaling metrics may be used according to the size of the current block and/or whether the prediction mode applied to the current block is the inter prediction or the intra prediction in order to generate a residual signal of the current block. The quantization scaling matrix may be referred to as a quantization matrix or a scaling matrix. The quantization scaling matrix may be predefined. In addition, for adaptive frequency scaling, frequency quantization scale information with respect to the quantization scaling matrix may be configured/encoded in the encoding apparatus and signaled to the decoding apparatus. The frequency quantization scale information may be referred to as quantization scaling information. The frequency quantization scale information may include scaling list data (scaling list data). A (modified) quantization scaling matrix may be derived based on the scaling list data. In addition, the frequency quantization scale information may include present flag information indicating whether the scaling list data exists. Alternatively, when the scaling list data is signaled at a higher level (ex. SPS), information indicating whether the scaling list data is modified at a lower level (ex. PPS or tile group header etc.) may be further included.
As described above, the scaling list data may be signaled to indicate a (frequency-based quantization) scaling matrix used for quantization/dequantization.
Signaling support of default and user-defined scaling matrix exists in the HEVC standard and is currently adopted in the VVC standard. However, for the VVC standard, additional support for signaling of the following functions has been incorporated.
It should be noted that the scaling matrix should not be applied to Transform Skip (TS) and Secondary Transform (ST) for all sizes.
Hereinafter, a High Level Syntax (HSL) structure for supporting a scaling list in the VVC standard will be described in detail. First, a flag may be signaled through a Sequence Parameter Set (SPS) to indicate that a scaling list is available for a current coded video sequence (CVS) being decoded. Then, if the flag is available, an additional flag may be parsed to indicate whether specific data is present in the scaling list in the SPS. This can be shown in Table 1.
Table 1 is an excerpt from SPS to describe the scaling list for CVS.
Semantics of syntax elements included in the SPS syntax of Table 1 may be shown in Table 2 below.
Referring to Table 1 and Table 2 above, scaling_list_enabled_flag may be signaled from the SPS. For example, if the value of scaling_list_enabled_flag is 1, it may indicate that the scaling list is used in the scaling process for the transform coefficient, and if the value of scaling_list_enabled_flag is 0, it may indicate that the scaling list is not used in the scaling process for the transform coefficient. In this case, when the value of scaling_list_enabled_flag is 1, sps_scaling_list_data_present_flag may be further signaled from the SPS. For example, when the value of sps_scaling_list_data_present_flag is 1, it may indicate that scaling_list_data( ) syntax structure is present in the SPS, and when the value of sps_scaling_list_data_present_flag is 0, it may indicate that the scaling_list_data( ) syntax structure is not present in the SPS. If sps_scaling_list_data_present_flag does not exist, the value of sps_scaling_list_data_present_flag may be inferred to be 0.
Also, a flag (e.g., pps_scaling_list_data_present_flag) may be parsed first in a picture parameter set (PPS). If this flag is available, scaling_list_data( ) can be parsed in the PPS. If scaling_list_data( ) is initially present in the SPS and later parsed in the PPS, data in the PPS may take precedence over data in the SPS. Table 3 below is an excerpt from the PPS to describe the scaling list data.
Semantics of syntax elements included in the PPS syntax of Table 3 may be shown in Table 4 below.
Referring to Table 3 and Table 4, pps_scaling_list_data_present_flag may be signaled from the PPS. For example, when the value of pps_scaling_list_data_present_flag is 1, it may indicate that the scaling_list_data used for pictures referencing the PPS is derived based on the scaling list specified by the active SPS and the scaling list specified by the PPS. When the value of pps_scaling_list_data_present_flag is 0, it may indicate that the scaling_list_data used for pictures referencing the PPS is inferred to be the same as the scaling list specified by the active SPS. At this time, when the value of scaling_list_enabled_flag is 0, the value of pps_scaling_list_data_present_flag should be 0. When the value of scaling_list_enabled_flag is 1, the value of sps_scaling_list_data_present_flag is 0, and the value of pps_scaling_list_data_present_flag is 0, the default scaling_list_data can be used to derive a scaling factor array as described in the scaling_list_data semantics.
The scaling list may be defined in the VVC standard for the following quantization matrix sizes. This can be shown in Table 5 below. The range of support for quantization matrices has been extended to include 2×2 and 64×64 as well as 4×4, 8×8, 16×16 and 32×32 in the HEVC standard.
Table 5 defines sizeId for all quantization matrix sizes used. matrixId can be assigned for different combinations of sizeId, a prediction mode of the coding unit (CuPredMode), and color component using the above combination. Here, CuPredMode that can be considered may be inter, intra, and IBC (Intra Block Copy). Intra mode and IBC mode may be treated the same. Thus, the same matrixId(s) can be shared for a given color component. Here, the color components that can be considered may be luma (Luma(Y)) and two color components (Cb and Cr). The allocated matrixId can be represented as shown in Table 6 below.
Table 6 shows matrixId according to sizeId, prediction mode, and color component.
Table 7 below shows an example of a syntax structure for scaling list data (e.g., scaling_list_data( ))
The semantics of syntax elements included in the syntax of Table 7 may be shown in Table 8 below.
Referring to Table 7 and Table 8, in order to extract scaling list data (e.g., scaling_list_data( )), for all sizeId from 1 to 6 and matrixId from 0 to 5, the scaling_list_data can be applied to 2×2 chroma component and 64×64 luma component. Then, a flag (e.g., scaling_list_pred_mode_flag) may be parsed to indicate whether the value of the scaling list is the same as the value of the reference scaling list. The reference scaling list may be represented by scaling_list_pred_matrix_id_delta[sizeId][matrixId]. However, when scaling_list_pred_mode flag[sizeId][matrixId] is 1, scaling_list_data may be explicitly signaled. When scaling_list_pred_matrix_id_delta is 0, DEFAULT mode with default value may be used as shown in Tables 9 to 12. For other values of scaling_list_pred_matrix_id_delta, as shown in the semantics of Table 8, refMatrixId may be determined first.
In explicit signaling, that is, in a USER DEFINED mode, the maximum number of signaled coefficients may be determined first. In the case of quantization block sizes of 2×2, 4×4 and 8×8, all coefficients can be signaled. For sizes greater than 8×8, i.e., 16×16, 32×32 and 64×64, only 64 coefficients can be signaled. That is, an 8×8 base matrix may be signaled and the remaining coefficients may be upsampled from the base matrix.
The following Table 9 is an example showing the default value of ScalingList[1][matrixId][i] (i=0 . . . 3)
The following Table 10 is an example showing the default value of ScalingList[2][matrixId][i] (i=0 . . . 15).
Table 11 below is an example showing the default value of ScalingList[3 . . . 5][matrixId] [i] (i=0 . . . 63).
The following Table 12 is an example showing the default value of ScalingList[6][matrixId][i] (i=0 . . . 63).
As described above, the default scaling list data may be used to derive the scaling factor (ScalingFactor).
Scaling factor of 5-dimensional array ScalingFactor[sizeId][sizeId][matrixId][x][y] (where x, y=0 . . . (1<<sizeId)−1) may represent an array of scaling factors according to the variable sizeId shown in Table 5 and the variable matrixId shown in Table 6 above.
The following Table 13 shows examples of deriving a scaling factor according to a size of a quantization matrix based on the default scaling list described above.
For a quantization matrix of rectangular size, the scaling factor of a 5-dimensional array ScalingFactor[sizeIdW][sizeIdH][matrixId][x][y], where x=0 . . . (1<<sizeIdW)−1, y=0 . . . (1<<sizeIdH)−1, sizeIdW!=sizeIdH) may represent an array of scaling factors according to the variables sizeIdW and sizeIdH shown in Table 15 below, and may be derived as shown in Table 14 below.
The square-sized quantization matrix shall be zeroed for samples that satisfy the following conditions.
The following Table 15 shows an example of sizeIdW and sizeIdH according to the size of the quantization matrix.
Also, as an example, the above-described scaling list data (e.g., scaling_list_data( )) may be described based on a syntax structure as shown in Table 16 and semantics as shown in Table 17 below. As described above, the scaling list, the scaling matrix, the scaling factor, etc. can be derived based on the syntax elements included in the scaling list data (e.g., scaling_list_data( )) disclosed in Table 16 and Table 17. The same or similar procedures as in Table 5 to Table 15 may be applied.
Hereinafter, this document proposes a method for efficiently signaling scaling list data in applying an adaptive frequency weighting quantization technique in a quantization/dequantization process.
Referring to
The VCL may generate VCL data including compressed image data (slice data), or generate parameter sets including a picture parameter set (Picture Parameter Set: PPS), a sequence parameter set (Sequence Parameter Set: SPS), a video parameter set (Video Parameter Set: VPS) etc. or a supplemental enhancement information (SEI) message additionally necessary for the decoding process of an image.
In the NAL, a NAL unit may be generated by adding header information (NAL unit header) to a raw byte sequence payload (RBSP) generated in the VCL. In this case, the RBSP refers to slice data, parameter sets, SEI messages, etc. generated in the VCL. The NAL unit header may include NAL unit type information specified according to RBSP data included in the corresponding NAL unit.
Further, the NAL unit may be divided into a VCL NAL unit and a Non-VCL NAL unit according to the RBSP generated in the VCL. The VCL NAL unit may mean a NAL unit including information (sliced data) about an image, and the Non-VCL NAL unit may mean a NAL unit containing information (parameter set or SEI message) necessary for decoding an image.
The above-described VCL NAL unit and Non-VCL NAL unit may be transmitted through a network by attaching header information according to a data standard of the subsystem. For example, the NAL unit may be transformed into a data form of a predetermined standard such as H.266/VVC file format, Real-time Transport Protocol (RTP), Transport Stream (TS), etc. and transmitted through various networks.
As described above, in the NAL unit, the NAL unit type may be specified according to the RBSP data structure included in the corresponding NAL unit, and information on this NAL unit type may be stored and signaled in the NAL unit header.
For example, the NAL unit may be roughly classified into the VCL NAL unit type and the Non-VCL NAL unit type depending on whether the NAL unit includes information about the image (slice data). The VCL NAL unit type may be classified according to property and a type of a picture included in the VCL NAL unit, and the Non-VCL NAL unit type may be classified according to the type of a parameter set.
The following is an example of the NAL unit type specified according to the type of parameter set included in the Non-VCL NAL unit type.
The above-described NAL unit types have syntax information for the NAL unit type, and the syntax information may be stored and signaled in a NAL unit header. For example, the syntax information may be nal_unit_type, and NAL unit types may be specified by a nal_unit_type value.
Meanwhile, as described above, one picture may include a plurality of slices, and one slice may include a slice header and slice data. In this case, one picture header may be further added to a plurality of slices (a slice header and a slice data set) in one picture. The picture header (picture header syntax) may include information/parameters commonly applicable to the picture. In this document, a slice may be mixed or replaced with a tile group. Also, in this document, a slice header may be mixed or replaced with a type group header.
The slice header (slice header syntax) may include information/parameters commonly applicable to the slice. The APS (APS syntax) or PPS (PPS syntax) may include information/parameters commonly applicable to one or more slices or pictures. The SPS (SPS syntax) may include information/parameters commonly applicable to one or more sequences. The VPS (VPS syntax) may include information/parameters commonly applicable to multiple layers. The DPS (DPS syntax) may include information/parameters commonly applicable to the entire video. The DPS may include information/parameters related to concatenation of a coded video sequence (CVS). In this document, high level syntax (HLS) may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.
In this document, the image/video information encoded in the encoding apparatus and signaled in the form of a bitstream to the decoding apparatus may include, as well as picture partitioning-related information in the picture, intra/inter prediction information, residual information, in-loop filtering information, etc. the information included in the slice header, the information included in the picture header, the information included in the APS, the information included in the PPS, the information included in the SPS, the information included in the VPS, and/or the information included in the DPS. In addition, the image/video information may further include information of the NAL unit header.
On the other hand, APS (Adaptation Parameter Set) is used in the VVC standard to transmit information for ALF (Adaptive Loop Filter) and LMCS (Luma Mapping with Chroma Scaling) process. In addition, the APS has an extensible structure so that it can be used to transmit other data structures (i.e., different syntax structures). Accordingly, this document proposes a method of parsing/signaling scaling list data used for frequency weighting quantization through the APS.
The scaling list data is quantization scale information for the frequency weighting quantization that can be applied in the quantization/dequantization process as described above, and may be a list that associates a scale factor with each frequency index.
As an embodiment, the following Table 18 shows an example of an adaptation parameter set (APS) structure used to transmit scaling list data.
Semantics of syntax elements included in the APS syntax of Table 18 may be shown in Table 19 below.
Referring to Table 18 and Table 19, adaptation_parameter_set_id syntax element may be parsed/signaled in the APS. adaptation parameter set id provides an identifier for the APS for reference of other syntax elements. That is, the APS may be identified based on the adaptation_parameter_set_id syntax element. The adaptation_parameter_set_id syntax element may be called APS ID information. The APS may be shared between pictures and may be different in different tile groups within a picture.
In addition, aps_params_type syntax element may be parsed/signaled in the APS. aps_params_type may indicate the type of the APS parameter transmitted from the APS as shown in Table 20 below. The aps_params_type syntax element may be referred to as APS parameter type information or APS type information.
For example, the following Table 20 is an example showing the types of APS parameters that can be transmitted through the APS, and each APS parameter type may be indicated in correspondence with a value of aps_params_type.
Referring to Table 20, aps_params_type may be a syntax element for classifying the type of the corresponding APS. When the value of aps_params_type is 0, the corresponding APS type may be ALF APS, the corresponding APS may carry ALF data, and the ALF data may include ALF parameters for deriving filter/filter coefficients. When the value of aps_params_type is 1, the corresponding APS type may be LMCS APS, the corresponding APS may carry LMCS data, and the LMCS data may include LMCS parameters for deriving an LMCS model/bins/mapping index. When the value of aps_params_type is 2, the corresponding APS type may be SCALING APS, the corresponding APS may carry SCALING list data, and the SCALING list data may include scaling_list_data parameters for deriving a value of a frequency-based quantization scaling matrix/scaling factor/scaling list.
For example, as shown in Table 18 above, the aps_params_type syntax element may be parsed/signaled in APS, and in this case, when aps_params_type indicates a value of 0 (i.e., aps_params_type indicates ALF APS) ALF data (i.e., alf_data( )) can be parsed/signaled. Alternatively, when aps_params_type has a value of 1 (i.e., aps_params_type indicates LMCS APS), LMCS data (ie, lmcs_data( )) may be parsed/signaled. Alternatively, when aps_params_type has a value of 2 (i.e., aps_params_type indicates SCALING APS), scaling list data (i.e., scaling_list_data( )) may be parsed/signaled.
In addition, referring to Tables 18 and 19, aps extension flag syntax element may be parsed/signaled in the APS. aps_extension_flag may indicate whether APS extension data flag (aps_extension_data_flag) syntax elements are present. aps_extension_flag may be used, for example, to provide extension points for a later version of the VVC standard. The aps_extension_flag syntax element may be called an APS extension flag. For example, when the value of aps_extension_flag is 0, it may indicate that the APS extension data flag (aps_extension_data_flag) does not exist in an APS RBSP syntax structure. Alternatively, when the value of aps_extension_flag is 1, it may indicate that the APS extension data flag (aps_extension_data_flag) is present in the APS RBSP syntax structure.
The aps_extension_data_flag syntax element may be parsed/signaled based on the aps_extension_flag syntax element. The aps_extension_data_flag syntax element may be called an APS extension data flag. For example, when the value of aps_extension_flag is 1, aps_extension_data_flag may be parsed/signaled, and in this case, aps_extension_data_flag may have an arbitrary value.
As described above, according to an embodiment of this document, efficient scaling list data can be carried by allocating a data type (e.g., SCALING APS) for indicating the scaling list data and parsing/signaling a syntax element (e.g., aps_params_type) indicating the data type. That is, according to an embodiment of this document, the structure of the APS in which the scaling list data is integrated may be used.
On the other hand, in the current VVC standard, the use of the scaling list data (i.e., scaling_list_data( )) may be indicated based on whether a flag (i.e., sps_scaling_list_enabled_flag) indicating whether or not the scaling list data is available in SPS (Sequence Parameter Set) exists. If the flag (i.e., sps_scaling_list_enabled_flag) is enabled (i.e., 1 or true as a case indicating that scaling list data is available), another flag (i.e., sps_scaling_list_data_present_flag) may be parsed. Also, when sps_scaling_list_data_present_flag is enabled (i.e., when it indicates that scaling list data exists in the SPS, and is 1 or true), the scaling list data (i.e., scaling_list_data( )) may be parsed. That is, in the current VVC standard, the SPS signals the scaling_list_data. In this case, since the SPS enables session negotiation and is generally transmitted out of band, it may be unnecessary to transmit the scaling list data as information which is related to the determination of the scaling factor of the transform block and can be used during the decoding process. If the encoder transmits the scaling list data in the SPS, the decoder needs to reserve a significant amount of memory to store the information obtained from the scaling list data and also needs to retain the information until it is used in transform block decoding. Therefore, this process may be unnecessary at the SPS level, and it may be more effective to be parsed/signaled at the lower level. Accordingly, this document proposes a hierarchical structure to effectively parse/signal the scaling list data.
In one embodiment, the scaling list data is not parsed/signaled from the higher-level syntax SPS, but parsed/signaled from the lower-level syntax PPS, tile group header, slice header, and/or other appropriate headers.
For example, the SPS syntax may be modified as shown in Table 21 below. Table 21 below shows an example of SPS syntax for describing a scaling list for CVS.
The semantics of the syntax elements included in the SPS syntax of Table 21 may be shown in Table 22 below.
Referring to Tables 21 and 22, scaling_list_enabled_flag syntax element may be parsed/signaled in the SPS. The scaling_list_enabled_flag syntax element may indicate whether the scaling list is available based on whether the value is 0 or 1. For example, when the value of scaling_list_enabled_flag is 1, it indicates that the scaling list is used in the scaling process for the transform coefficient, and when the value of scaling_list_enabled_flag is 0, it may indicate that the scaling list is not used in the scaling process for the transform coefficient.
That is, the scaling_list_enabled_flag syntax element may be called a scaling list available flag, and may be signaled at SPS (or SPS level). In other words, based on the value of scaling_list_enabled_flag signaled at the SPS level, it may be determined that the scaling list is basically available for pictures in the CVS referring to the corresponding SPS. In addition, the scaling list may be obtained by signaling an additional available flag at a lower level than the SPS (e.g., PPS, tile group header, slice header, and/or other appropriate header).
As described above, according to an embodiment of this document, the scaling list (scaling_list_data( )) is not directly signaled at the SPS level, and only the scaling list available flag (scaling_list_enabled_flag) may be configured to be explicitly signaled. Thereafter, the scaling list (scaling_list_data( )) may be individually parsed in the lower-level syntax based on the available flag (scaling_list_enabled_flag) in the SPS. Therefore, according to an embodiment of this document, since the scaling list data can be parsed/signaled according to a hierarchical structure, coding efficiency can be further improved.
On the other hand, the existence or non-existence of the scaling list data and the use of the scaling list data are conditional on the existence of a tool enabling flag. Here, the tool enabling flag may be information indicating whether to enable the corresponding tool, and may include, for example, scaling_list_enabled_flag syntax element. That is, the scaling_list_enabled_flag syntax element may be used to indicate whether to enable the scaling list by indicating whether the scaling list data is available. However, this tool should have syntactic constraints on the decoder. That is, there must be a constraint flag to inform the decoder that this tool is not currently being used for decoding coded video sequences (CVS). Accordingly, this document proposes a method in which a constraint flag for scaling list data is applied.
As an embodiment, the following Table 23 shows an example of a syntax (e.g., general constraint information syntax) for signaling scaling list data using a constraint flag
Semantics of syntax elements included in the syntax of Table 23 may be shown in Table 24 below.
Referring to Tables 23 and 24, the constraint flag may be parsed/signaled through general_constraint_info( ). general_constraint_info( ) may be referred to as information about a general constraint information field or constraint flags. For example, no_scaling_list_constraint_flag syntax element may be used as the constraint flag. Here, the constraint flag may be used to designate conformance bitstream properties. For example, when the value of the no_scaling_list_constraint_flag syntax element is 1, scaling_list_enabled_flag indicates a bitstream conformance requirement that must be specified as 0, and when the value of the no_scaling_list_constraint_flag syntax element is 0, it may indicate that there is no restriction.
Meanwhile, as described above, according to the embodiment of this document, the scaling list data may be delivered through a hierarchical structure. Accordingly, this document proposes a structure of scaling list data that can be parsed/signaled through a slice header. Here, the slice header may be referred to as a tile group header, or may be mixed or replaced with a picture header.
As an embodiment, the following Table 25 shows an example of a slice header syntax for signaling scaling list data.
The semantics of syntax elements included in the slice header syntax of Table 25 may be expressed as Table 26 below.
Referring to Tables 25 and 26, slice_pic_parameter_set_id syntax element may be parsed/signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in a corresponding slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be in the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced by a slice.
In addition, the slice scaling_list_enabled_flag syntax element may be parsed/signaled in the slice header. The slice_scaling_list_enabled_flag syntax element may indicate whether a scaling list is available in the current slice. For example, when the value of slice_scaling_list_enabled_flag is 1, it may indicate that the scaling list is available in the current slice, and when the value of slice_scaling_list_enabled_flag is 0, it may indicate that the scaling list is not available in the current slice. Alternatively, if slice_scaling_list_enabled_flag does not exist in the slice header, its value may be inferred to be 0.
In this case, whether to parse the slice_scaling_list_enabled_flag syntax element may be determined based on the scaling_list_enabled_flag syntax element signaled in the higher-level syntax (i.e., SPS). For example, when the value of scaling_list_enabled_flag signaled from SPS is 1 (that is, when it is determined that scaling list data is available at a higher level), slice_scaling_list_enabled_flag is parsed from the slice header, and whether to perform a scaling process may be determined using a scaling list in a corresponding slice.
In addition, the slice_scaling_list_aps_id syntax element may be parsed/signaled in the slice header. The slice_scaling_list_aps_id syntax element may indicate an identifier for an APS referenced in a corresponding slice. That is, the slice_scaling_list_aps_id syntax element may indicate ID information of the APS (adaptation_parameter_set_id) including the scaling_list_data referenced by the corresponding slice. On the other hand, the TemporalId (i.e., Temporal ID) of the APS NAL unit (i.e., the APS NAL unit including the scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id must be less than or equal to TemporalId (i.e., Temporal ID) of the slice NAL unit to be coded.
In addition, whether to parse the slice_scaling_list_aps_id syntax element may be determined based on the slice_scaling_list_enabled_flag syntax element. For example, when the value of slice_scaling_list_aps_id is 1 (i.e., when the scaling list is determined to be available in the slice header), slice_scaling_list_aps_id may be parsed. Thereafter, the scaling list data may be obtained from the APS indicated by the parsed slice_scaling_list_aps_id.
In addition, when a plurality of SCALING DATA APSs (a plurality of APSs including scaling list data) having the APS ID information (adaptation_parameter_set_id) of the same value are referenced by two or more slices in the same picture, the plurality of SCALING DATA APSs having the APS ID information of the same value (adaptation_parameter_set_id) must include the same content.
In addition, when the above-mentioned syntax elements are present, the values of each of the slice header syntax elements slice_pic_parameter_set_id, slice_pic_order_cnt_lsb, and slice_temporal_mvp_enabled_flag must be the same in all slice headers in the coded picture.
As described above, according to an embodiment of this document, a hierarchical structure may be used to efficiently signal the scaling list data. That is, it is possible to determine whether to use the scaling list data at each lower level by first signaling an enable flag (e.g., scaling_list_enabled_flag) indicating whether or not scaling list data is available at a higher level (SPS syntax), and then signaling an additional available flag (e.g., slice_scaling_list_enabled_flag) at a lower level (e.g., slice header, picture header, etc.). In addition, APS ID information (e.g., slice_scaling_list_aps_id) referred to by the corresponding slice or tile group is signaled through the lower level (e.g., slice header, picture header, etc.), and the scaling list data may be derived from the APS identified by the APS ID information.
In addition, this document may be applied such as the methods proposed in Tables 25 and 26 above in signaling the scaling list data according to the hierarchical structure, and the scaling list data may be delivered through the structure of the slice header as shown in Table 27 below.
As an embodiment, the following Table 27 shows an example of a slice header syntax for signaling the scaling list data. Here, the slice header may be referred to as a tile group header, or may be mixed or replaced with a picture header.
The semantics of syntax elements included in the slice header syntax of Table 27 may be shown in Table 28 below.
Referring to Tables 27 and 28 above, the slice_pic_parameter_set_id syntax element may be parsed/signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for a PPS in use. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in a corresponding slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be in the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced by a slice.
In addition, the slice_scaling_list_aps_id syntax element may be parsed/signaled in the slice header. The slice_scaling_list_aps_id syntax element may indicate an identifier for an APS referenced in a corresponding slice. That is, the slice_scaling_list_aps_id syntax element may indicate ID information (adaptation_parameter_set_id) of the APS including the scaling_list_data referenced by the corresponding slice. For example, the TemporalId (i.e., Temporal ID) of the APS NAL unit (i.e., the APS NAL unit including the scaling list data) having the same APS ID information (adaptation_parameter_set_id) as the slice_scaling_list_aps_id must be less than or equal to TemporalId (i.e., Temporal ID) of the slice NAL unit to be coded.
In this case, whether to parse the slice_scaling_list_aps_id syntax element may be determined based on the scaling_list_enabled_flag syntax element signaled in the higher-level syntax (i.e., SPS). For example, when the value of scaling_list_enabled_flag signaled by SPS is 1 (that is, when it is determined that scaling list data is available at a higher level), slice_scaling_list_aps_id may be parsed from the slice header. Thereafter, the scaling list data can be obtained from the APS indicated by the parsed slice_scaling_list_aps_id.
That is, according to the present embodiment, since the APS ID including the scaling list data can be parsed when the corresponding flag (e.g., scaling_list_enabled_flag) in the SPS is enabled, as shown in Table 25 above, based on the scaling_list_enabled_flag syntax element signaled in the higher level syntax (i.e., SPS), the APS ID (e.g.: slice_scaling_list_aps_id) information including the scaling list data to be referenced in the lower level (e.g., slice header or picture header) can be parsed.
In addition, this document proposes a method of using a plurality of APSs to signal the scaling list data. Hereinafter, a method of efficiently signaling a plurality of APS IDs including the scaling list data according to an embodiment of the present document will be described. This method can be useful during bitstream merging.
As an embodiment, the following Table 29 shows an example of a slice header syntax for signaling scaling list data using a plurality of APSs. Here, the slice header may be referred to as a tile group header, or may be mixed or replaced with a picture header.
The semantics of syntax elements included in the slice header syntax of Table 29 can be expressed as shown in Table 30 below.
Referring to Tables 29 and 30 above, slice_pic_parameter_set_id syntax element may be parsed/signaled in the slice header. The slice_pic_parameter_set_id syntax element may indicate an identifier for the PPS being used in the slice_pic_parameter_set_id syntax element. That is, the slice_pic_parameter_set_id syntax element is information for identifying a PPS referenced in a corresponding slice, and may indicate a value of pps_pic_parameter_set_id. The value of slice_pic_parameter_set_id must be in the range of 0 to 63. The slice_pic_parameter_set_id syntax element may be referred to as PPS identification information or PPS ID information referenced by a slice.
In addition, the slice_scaling_list_enabled_flag syntax element may be parsed/signaled in the slice header. The slice_scaling_list_enabled_flag syntax element may indicate whether a scaling list is available in the current slice. For example, when the value of slice_scaling_list_enabled_flag is 1, it may indicate that the scaling list is available in the current slice, and when the value of slice_scaling_list_enabled_flag is 0, it may indicate that the scaling list is not available in the current slice. Alternatively, when slice_scaling_list_enabled_flag does not exist in the slice header, its value may be inferred to be 0.
In this case, whether to parse the slice_scaling_list_enabled_flag syntax element may be determined based on the scaling_list_enabled_flag syntax element signaled in the higher-level syntax (i.e., SPS). For example, when the value of scaling_list_enabled_flag signaled from SPS is 1 (that is, when it is determined that scaling list data is available at a higher level), slice_scaling_list_enabled_flag is parsed from the slice header, and whether to perform a scaling process may be determined using a scaling list in a corresponding slice.
In addition, the num_scaling_list_aps_ids_minus1 syntax element may be parsed/signaled in the slice header. The num_scaling_list_aps_ids_minus1 syntax element may be information for indicating the number of APSs including scaling list data referenced by a corresponding slice. For example, a value obtained by adding 1 to the value of the num_scaling_list_aps_ids_minus1 syntax element may be the number of APSs. The value of num_scaling_list_aps_ids_minus1 must be in the range of 0 to 7.
Here, whether to parse the num_scaling_list_aps_ids_minus1 syntax element may be determined based on the slice_scaling_list_enabled_flag syntax element. For example, when the value of slice_scaling_list_enabled_flag is 1 (i.e., when it is determined that scaling list data is available in the corresponding slice), num_scaling_list_aps_ids_minus1 may be parsed. In this case, the slice_scaling_list_aps_id[i] syntax element may be parsed/signaled based on the value of num_scaling_list_aps_ids_minus1.
That is, slice_scaling_list_aps_id[i] may indicate an identifier (adaptation_parameter_set_id) of an APS including i-th scaling list data (i.e., i-th SCALING LIST APS). In other words, the APS ID information may be signaled as many as the number of APSs indicated by the num_scaling_list_aps_ids_minus1 syntax element. On the other hand, the TemporalId (i.e., Temporal ID) of the APS NAL unit (i.e., the APS NAL unit including the scaling list data) having the same APS ID information (adaptation_parameter_set_id) as slice_scaling_list_aps_id[i] must be less than or equal to TemporalId (i.e., Temporal ID) of the slice NAL unit to be coded.
In addition, when a plurality of SCALING DATA APSs (a plurality of APSs including scaling list data) having the APS ID information (adaptation_parameter_set_id) of the same value are referenced by two or more slices in the same picture, the plurality of SCALING DATA APSs having the APS ID information of the same value (adaptation_parameter_set_id) must include the same content.
The following drawings were created to explain a specific example of this document. The names of specific devices or specific terms or names (e.g., names of syntax/syntax elements, etc.) described in the drawings are provided by way of example, so that the technical features of this document are not limited to the specific names used in the drawings below.
The method disclosed in
Referring to
As an embodiment, the encoding apparatus may determine a prediction mode for the current block and derive prediction samples. For example, the encoding apparatus may determine whether to perform the inter prediction or the intra prediction on the current block, and may also determine a specific inter prediction mode or a specific intra prediction mode based on the RD cost. The encoding apparatus may derive the prediction samples for the current block by performing prediction according to the determined prediction mode. In this case, various prediction methods disclosed in this document, such as inter prediction or intra prediction, may be applied.
The encoding apparatus may generate prediction mode information of the current block (S1110). The encoding apparatus may generate the prediction mode information indicating the prediction mode applied to the current block.
The encoding apparatus may derive residual samples based on the prediction samples (S1120). The encoding apparatus may derive residual samples by comparing original samples and prediction samples for the current block.
The encoding apparatus may generate residual information based on the residual samples (S1130).
In an embodiment, the encoding apparatus may derive transform coefficients by performing a transform process on the residual samples. In this case, the encoding apparatus may determine whether to apply the transform to the current block in consideration of coding efficiency. That is, the encoding apparatus may determine whether a transform is applied to the residual samples. For example, when no transform is applied to the residual samples, the encoding apparatus may derive the residual samples as transform coefficients. Alternatively, when transform is applied to the residual samples, the encoding apparatus may derive transform coefficients by performing transform on the residual samples. In this case, the encoding apparatus may generate and encode transform skip flag information based on whether transform is applied to the current block. The transform skip flag information may be information indicating whether the transform is applied or the transform is skipped with respect to the current block.
Also, the encoding apparatus may derive quantized transform coefficients based on the transform coefficients. That is, the encoding apparatus may derive quantized transform coefficients by performing a quantization process on the transform coefficients. In this case, the encoding apparatus may apply frequency weighting quantization that adjusts the quantization intensity according to the frequency. In this case, the quantization process may be further performed based on a quantization scale value for each frequency. The quantization scale value for the frequency weighting quantization may be derived using a scaling matrix. For example, the encoding apparatus/decoding apparatus may use a predefined scaling matrix, and the encoding apparatus may configure and encode frequency quantization scale information with respect to the scaling matrix, and may signal this to the decoding apparatus. The frequency quantization scale information may include scaling list data. A (modified) scaling matrix may be derived based on the scaling list data.
Also, the encoding apparatus may perform the dequantization process in the same manner as in the decoding apparatus. In this case, the encoding apparatus may derive the (modified) scaling matrix based on the scaling list data, and may derive reconstructed transform coefficients by applying the dequantization to the quantized transform coefficients based thereon. In this case, the reconstructed transform coefficients may be different from the original transform coefficients due to a loss in the transform/quantization process.
Here, the scaling matrix may refer to the above-described frequency-based quantization scaling matrix, and may be used interchangeably or replaced with a quantization scaling matrix, a quantization matrix, a scaling matrix, a scaling list, etc. for convenience of description, and it is not limited to the specific name used in this embodiment.
That is, the encoding apparatus may further apply the frequency weighting quantization in performing the quantization process, and in this case, may generate scaling list data as information on the scaling matrix. Since this process has been described in detail with reference to Table 5 to Table 17 as an example, redundant content or detailed description will be omitted in this embodiment.
Also, the encoding apparatus may generate residual information on the quantized transform coefficients. Here, the residual information is information generated through a transform and/or quantization process, and may be information about quantized transform coefficients, for example, information on the value of the quantized transform coefficients, location information, a transform technique, a transform kernel, a quantization parameter, etc.
In addition, when the frequency weighting quantization is further applied in deriving the quantized transform coefficients in the quantization process, the scaling list data for the quantized transform coefficients may be generated. The scaling list data may include scaling list parameters used to derive the quantized transform coefficients. In this case, the encoding apparatus may generate the scaling list data related information, for example, an APS including the scaling list data.
As an embodiment, the APS may include APS ID information (APS identification information) and APS type information (type information of APS parameters). The APS ID information may indicate an APS identifier, and the APS type information may indicate that the APS is an APS related to scaling list data. The APS may include the scaling list data based on the APS type information.
The encoding apparatus may encode image information (or video information) (S1140). Here, the image information may include the prediction-related information (e.g., prediction mode information). Also, the image information may include the residual information. Also, the image information may include information on the scaling list data. Also, the image information may include the APS. That is, the image information may include various information derived from an encoding process, and may be encoded by including such various information.
As an embodiment, the image information may include various information according to the embodiment(s) described above in this document, and may include information disclosed in at least one of Tables 1 to 30 described above.
For example, the image information may include an adaptation parameter set (APS). The APS may include APS ID information (APS identification information) and APS type information (type information of APS parameters). Also, the APS may include scaling list data based on the APS type information. The scaling list data may include scaling list parameters for deriving a scaling list/scaling matrix/scale factor used in the quantization/dequantization process as described above. In other words, the scaling list data may include syntax elements used to construct the scaling list.
As an example, the APS may be configured as shown in Table 18 above. The APS ID information (APS identification information) may be adaptation_parameter_set_id described in Tables 18 and 19 above. The APS type information may be aps_params_type described in Tables 18 to 20 above. For example, when type information (e.g., aps_params_type) of APS parameters is a SCALING APS type related to indicating that it is an APS including scaling list data (or when a value of type information (e.g., aps_params_type) of APS parameters is equal to 2), the APS may include scaling list data (e.g., scaling_list_data( )). That is, the encoding apparatus may signal the scaling list data (e.g., scaling_list_data( )) through the APS based on SCALING APS type information indicating that it is an APS including the scaling list data.
Also, for example, the image information may include a sequence parameter set (SPS). The SPS may include first available flag information related to indicating whether the scaling list data is available. As an example, the SPS may be configured as shown in Table 21, and the first available flag information may be scaling_list_enabled_flag described in Tables 21 and 22 above.
At this time, based on the first available flag information (e.g., scaling_list_enabled_flag) related to indicating that the scaling list data is available (e.g., when the value of the first available flag information (e.g., scaling_list_enabled_flag) is equal to 1 or true), the header information may include APS identification information related to the scaling list data (e.g., slice_scaling_list_aps_id). As an example, the encoding apparatus may signal identification information (e.g., slice_scaling_list_aps_id) of the APS including the scaling list data through the header information based on the first available flag information (e.g., scaling_list_enabled_flag) as shown in Tables 25 and 27 above.
Also, for example, the image information may include header information. The header information may be header information related to a picture or a slice including the current block, and may include, for example, a picture header or a slice header. The header information may include second available flag information related to indicating whether the scaling list data is available in the picture or the slice. As an example, the second available flag information may be slice_scaling_list_enabled_flag described in Tables 25 and 26 above.
At this time, based on the first available flag information (e.g., scaling_list_enabled_flag) related to indicating that the scaling list data included in the SPS is available (e.g., when the value of the first available flag information (e.g., scaling_list_enabled_flag) is equal to 1 or true), the header information may include second available flag information (e.g., slice_scaling_list_enabled_flag). And, based on the second available flag information (e.g., slice_scaling_list_enabled_flag) (e.g., when the value of the second available flag information (e.g., slice_scaling_list_enabled_flag) is equal to 1 or true), the header information may include APS identification information related to the scaling list data (e.g.: slice_scaling_list_aps_id). As an example, the encoding apparatus may signal the second available flag information (e.g., slice_scaling_list_enabled_flag) through header information based on the first available flag information (e.g., scaling_list_enabled_flag) signaled from the SPS as shown in Table 25 above, and then may signal the APS identification information related to the scaling list data (e.g., slice_scaling_list_aps_id) through the header information based on the second available flag information (e.g., slice_scaling_list_enabled_flag).
Also, for example, the image information may include constraint flag information regarding the use of the first available flag information. As an example, the constraint flag information may be no_scaling_list_constraint_flag described in Tables 23 and 24 above. The constraint flag information (e.g., no_scaling_list_constraint_flag) may be signaled by being included in general constraint information syntax (e.g., general_constraint_info( ). For example, when the value of constraint flag information (e.g., no_scaling_list_constraint_flag) is equal to 1, it is restricted through general constraint information syntax (e.g., general_constraint_info( ) so that the value of the first available flag information (e.g., scaling_list_enabled_flag) is set to 0. Alternatively, when the value of the constraint flag information (e.g., no_scaling_list_constraint_flag) is equal to 0, it may indicate that there is no constraint on the first available flag information (e.g., scaling_list_enabled_flag).
Also, for example, the image information may include header information. The header information may be header information related to a picture or a slice including the current block, and may include, for example, a picture header or a slice header. The header information may include APS identification information related to scaling list data referenced by a slice or a picture related to the header information. The APS identification information related to the scaling list data included in the header information may indicate ID information of the APS including the scaling list data. As an example, the APS identification information related to the scaling_list_data included in the header information may be slice_scaling_list_aps_id described in Tables 25 to 28 above, and may be identification information for the APS (including scaling list data) referenced by the slice/picture including the current block. That is, the APS including the scaling list data may be identified based on the APS identification information related to the scaling list data.
Also, for example, the image information may include header information, for example, a slice header or a picture header related to a slice or picture including the current block. The header information may include APS ID number information related to indicating the number of APS identification information related to the scaling list data. In this case, the header information may include APS identification information related to a plurality of scaling list data based on the APS ID number information. That is, the header information may include APS identification information related to the scaling list data corresponding to the number of APS IDs derived based on the information on the number of APS IDs.
As an example, the APS ID number information may be num_scaling_list_aps_ids_minus1 described in Tables 29 and 30 above. As described in Table 29, the value obtained by adding 1 to the value of num_scaling_list_aps_ids_minus1 may be the number of APS IDs. Accordingly, as many slice scaling list aps ids as the number of APS IDs (the value of num_scaling_list_aps_ids_minus1 plus 1) may be included in the header information.
The image information including various information as described above may be encoded and output in the form of the bitstream. The bitstream may be transmitted to the decoding apparatus via a network or (digital) storage medium. Here, 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, and SSD.
The method disclosed in
Referring to
As an embodiment, the decoding apparatus may derive information (e.g., video/image information) necessary for image reconstruction (or picture reconstruction) by parsing the bitstream. In this case, the image information may include residual information, and the residual information may include information such as information on the value of quantized transform coefficients, location information, a transform technique, a transform kernel, and a quantization parameter. Also, the image information may include information related to prediction (e.g., prediction mode information). Also, the image information may include information on scaling list data. That is, the image information may include various information required in the decoding process, and may be decoded based on a coding method such as exponential Golomb coding, CAVLC, or CABAC.
As an embodiment, the image information may include various information according to the embodiment(s) described above in this document, and may include information disclosed in at least one of Tables 1 to 30 described above.
For example, the image information may include an adaptation parameter set (APS). The APS may include APS ID information (APS identification information) and APS type information (type information of APS parameters). The APS ID information may indicate an APS identifier, and the APS type information may indicate that the APS is an APS related to scaling list data. The APS may include the scaling list data based on the APS type information. The scaling list data may include scaling list parameters for deriving a scaling list/scaling matrix/scale factor used in the quantization/dequantization process as described above. In other words, the scaling list data may include syntax elements used to construct the scaling list.
As an example, the APS may be configured as shown in Table 18 above. The APS ID information (APS identification information) may be adaptation_parameter_set_id described in Tables 18 and 19 above. The APS type information may be aps_params_type described in Tables 18 to 20 above. For example, when type information (e.g., aps_params_type) of APS parameters is a SCALING_APS type related to indicating that it is an APS including scaling list data (or when a value of type information (e.g., aps_params_type) of APS parameters is equal to 2), the APS may include scaling list data (e.g., scaling_list_data( )). That is, the decoding apparatus may obtain and parse the scaling list data (e.g., scaling_list_data( )) through the APS based on SCALING_APS type information indicating that it is an APS including the scaling list data.
Also, for example, the image information may include a sequence parameter set (SPS). The SPS may include first available flag information related to indicating whether the scaling list data is available. As an example, the SPS may be configured as shown in Table 21, and the first available flag information may be scaling_list_enabled_flag described in Tables 21 and 22 above.
At this time, based on the first available flag information (e.g., scaling_list_enabled_flag) related to indicating that the scaling list data is available (e.g., when the value of the first available flag information (e.g., scaling_list_enabled_flag) is equal to 1 or true), the header information may include APS identification information related to the scaling list data (e.g., slice_scaling_list_aps_id). As an example, the decoding apparatus may obtain identification information (e.g., slice_scaling_list_aps_id) of the APS including the scaling list data through header information based on the first available flag information (e.g., scaling_list_enabled_flag) as shown in Tables 25 and 27 above.
Also, for example, the image information may include header information. The header information may be header information related to a picture or a slice including the current block, and may include, for example, a picture header or a slice header. The header information may include second available flag information related to indicating whether the scaling list data is available in the picture or the slice. As an example, the second available flag information may be slice_scaling_list_enabled_flag described in Tables 25 and 26 above.
At this time, based on the first available flag information (e.g., scaling_list_enabled_flag) related to indicating that the scaling list data included in the SPS is available (e.g., when the value of the first available flag information (e.g., scaling_list_enabled_flag) is equal to 1 or true), the header information may include second available flag information (e.g., slice_scaling_list_enabled_flag). And, based on the second available flag information (e.g., slice_scaling_list_enabled_flag) (e.g., when the value of the second available flag information (e.g., slice_scaling_list_enabled_flag) is equal to 1 or true), the header information may include APS identification information related to the scaling list data (e.g.: slice_scaling_list_aps_id). As an example, the decoding apparatus may obtain the second available flag information (e.g., slice_scaling_list_enabled_flag) through header information based on the first available flag information (e.g., scaling_list_enabled_flag) signaled from the SPS as shown in Table 25 above, and then may obtain the APS identification information related to the scaling list data (e.g., slice_scaling_list_aps_id) through the header information based on the second available flag information (e.g., slice_scaling_list_enabled_flag).
Also, for example, the image information may include constraint flag information regarding the use of the first available flag information. As an example, the constraint flag information may be no_scaling_list_constraint_flag described in Tables 23 and 24 above. The constraint flag information (e.g., no_scaling_list_constraint_flag) may be signaled by being included in general constraint information syntax (e.g., general_constraint_info( ). For example, when the value of constraint flag information (e.g., no_scaling_list_constraint_flag) is equal to 1, it is restricted through general constraint information syntax (e.g., general_constraint_info( ) so that the value of the first available flag information (e.g., scaling_list_enabled_flag) is set to 0. Alternatively, when the value of the constraint flag information (e.g., no_scaling_list_constraint_flag) is equal to 0, it may indicate that there is no constraint on the first available flag information (e.g., scaling_list_enabled_flag).
Also, for example, the image information may include header information. The header information may be header information related to a picture or a slice including the current block, and may include, for example, a picture header or a slice header. The header information may include APS identification information related to scaling list data referenced by a slice or a picture related to the header information. The APS identification information related to the scaling list data included in the header information may indicate ID information of the APS including the scaling list data. As an example, the APS identification information related to the scaling list data included in the header information may be slice_scaling_list_aps_id described in Tables 25 to 28 above, and may be identification information for the APS (including scaling list data) referenced by the slice/picture including the current block. That is, the decoding apparatus may obtain the header information included in the image information from the bitstream, and identify the APS including the scaling list data based on the APS identification information related to the scaling list data of the header information. Then, the scaling list data may be obtained from the identified APS.
Also, for example, the image information may include header information, for example, a slice header or a picture header related to a slice or picture including the current block. The header information may include APS ID number information related to indicating the number of APS identification information related to the scaling list data. In this case, the header information may include APS identification information related to a plurality of scaling list data based on the APS ID number information. That is, the header information may include APS identification information related to the scaling list data corresponding to the number of APS IDs derived based on the information on the number of APS IDs.
As an example, the APS ID number information may be num_scaling_list_aps_ids_minus1 described in Tables 29 and 30 above. As described in Table 29, the value obtained by adding 1 to the value of num_scaling_list_aps_ids_minus1 may be the number of APS IDs. Accordingly, as many slice_scaling_list_aps_ids as the number of APS IDs (the value of num_scaling_list_aps_ids_minus1 plus 1) may be included in the header information.
The decoding apparatus may derive prediction samples for the current block based on the prediction mode information (S1310).
As an embodiment, the decoding apparatus may determine whether to perform an inter prediction or an intra prediction on the current block based on prediction information (e.g., the prediction mode information) included in image information, and the prediction may be performed according to the determination to derive prediction samples for the current block.
The decoding apparatus may derive residual samples for the current block based on the residual information (S1320).
As an embodiment, the decoding apparatus may acquire residual information included in the image information. The residual information may include information such as information on the value of the quantized transform coefficients as described above, location information, a transform technique, a transform kernel, and a quantization parameter. The decoding apparatus may derive the quantized transform coefficients for the current block based on the quantized transform coefficient information included in the residual information.
Also, the decoding apparatus may derive transform coefficients by performing a dequantization process on the quantized transform coefficients. In this case, the decoding apparatus may apply frequency weighting quantization that adjusts the quantization intensity according to the frequency. In this case, the dequantization process may be further performed based on a quantization scale value for each frequency. The quantization scale value for the frequency weighting quantization may be derived using a scaling matrix. For example, the decoding apparatus may use a predefined scaling matrix, or may use frequency quantization scale information with respect to the scaling matrix signaled from the encoding apparatus. The frequency quantization scale information may include scaling list data. A (modified) scaling matrix may be derived based on the scaling list data.
That is, the decoding apparatus may further apply the frequency weighting quantization in performing the dequantization process. In this case, the decoding apparatus may derive transform coefficients by performing the dequantization process on the quantized transform coefficients based on the scaling list data. The scaling list data may include scaling list parameters used to derive transform coefficients in the dequantization process. Transform coefficients may be derived by applying the scaling matrix derived based on the scaling list parameters to the dequantization process.
As an embodiment, the decoding apparatus may acquire the APS included in the image information, and may acquire the scaling list data based on type information of the APS parameters included in the APS. For example, the decoding apparatus may acquire the scaling list data included in the APS based on SCALING_APS type information related to indicating that it is an APS including the scaling list data. In this case, the decoding apparatus may derive a scaling matrix based on the scaling list data, may derive a scaling factor based on the scaling matrix, and may derive transform coefficients by applying the dequantization based on the scaling factor. Since the process of performing scaling based on the scaling list data has been described in detail with reference to Tables 5 to 17 as an example, redundant content or detailed description will be omitted in this embodiment.
Also, the decoding apparatus may determine whether to apply the frequency weighting quantization in the dequantization process (i.e., whether to derive transform coefficients using a (frequency-based quantization) scaling list in the dequantization process). For example, the decoding apparatus determines whether to use the scaling list data based on the first available flag obtained from the SPS included in the image information and/or the second available flag information obtained from the header information included in the image information. If it is determined to use the scaling list data based on the first available flag and/or the second available flag information, the decoding apparatus obtains APS identification information related to the scaling list data included in the header information, and may obtain the scaling list data from the APS identified by the APS identification information related to the scaling list data.
The decoding apparatus may derive residual samples based on the transform coefficients derived as described above.
As an embodiment, the decoding apparatus may derive residual samples of the current block by performing an inverse transform process on transform coefficients of the current block. In this case, the decoding apparatus may obtain information indicating whether to apply inverse transform to the current block (i.e., transform skip flag information), and derive residual samples based on this information (i.e., transform skip flag information).
For example, when the inverse transform is not applied to the transform coefficients (when the value of the transform skip flag information for the current block is equal to 1), the decoding apparatus may derive the transform coefficients as residual samples of the current block. Alternatively, when inverse transform is applied to transform coefficients (when the value of transform skip flag information for the current block is equal to 0), the decoding apparatus may inverse transform the transform coefficients to derive residual samples of the current block.
The decoding apparatus may generate reconstructed samples based on the prediction samples and the residual samples (S1330).
For example, the decoding apparatus may directly use the prediction samples as reconstructed samples according to the prediction mode, or may generate reconstructed samples by adding residual samples to the prediction samples. Also, a reconstructed block or a reconstructed picture may be derived based on the reconstructed samples. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering process such as deblocking filtering and/or SAO process to the reconstructed picture in order to improve subjective/objective picture quality, if necessary.
In the above-described embodiments, the methods are explained on the basis of flowcharts 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 be performed in order or step different from that described above, or concurrently with another step. Further, it may be understood by a person having ordinary skill in the art that the steps shown in a flowchart are 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 above-described methods according to the present disclosure may be implemented as a software form, and an encoding apparatus and/or decoding apparatus according to the disclosure may be included in a device for image processing, such as, a TV, a computer, a smartphone, a set-top box, a display device or the like.
When embodiments in the present disclosure are embodied by software, the above-described methods may be embodied as modules (processes, functions or the like) to perform the 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 in various well-known manners. The processor may include an application-specific integrated circuit (ASIC), other chipset, logic circuit, and/or a data processing device. 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 other storage device. That is, embodiments 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 computer, a processor, a microprocessor, a controller or a chip. In this case, information for implementation (ex. information on instructions) or an algorithm may be stored in a digital storage medium.
Furthermore, the decoding apparatus and the encoding apparatus to which this document is applied may be included in a multimedia broadcasting transmission and reception device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a camera for monitoring, a video dialogue 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 provision device, an over the top (OTT) video device, an Internet streaming service provision device, a three-dimensional (3D) video device, a virtual reality (VR) device, an augmented reality (AR) device, a video telephony device, transportation means terminal (e.g., a vehicle (including autonomous vehicle) terminal, an aircraft terminal, and a vessel terminal), 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 Blueray player, Internet access TV, a home theater system, a smartphone, a tablet PC, and a digital video recorder (DVR).
Furthermore, the processing method to which this document is applied may be produced in the form of a program executed by a computer, and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to this document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all types of storage devices in which computer-readable data is stored. The computer-readable recording medium may include Blueray disk (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, for example. Furthermore, the computer-readable recording medium includes media implemented in the form of carriers (e.g., transmission through the Internet). Furthermore, a bit stream generated using an encoding method may be stored in a computer-readable recording medium or may be transmitted over wired and wireless communication network.
Furthermore, an embodiment of this document may be implemented as a computer program product using program code. The program code may be performed by a computer according to an embodiment of this document. The program code may be stored on a carrier readable by a computer.
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.
The claims described herein may be combined in various ways. For example, the technical features of the method claims of the present specification may be combined and implemented as an apparatus, and the technical features of the apparatus claims of the present specification may be combined and implemented as a method. In addition, the technical features of the method claims of the present specification and the technical features of the apparatus claims may be combined to be implemented as an apparatus, and the technical features of the method claims and the technical features of the apparatus claims of the present specification may be combined and implemented as a method.
This application is a National Stage application under 35 U.S.C. § 371 of International Application No. PCT/KR2020/004692, filed on Apr. 7, 2020, which claims the benefit of U.S. Provisional Application No. 62/834,379, filed on Apr. 15, 2019. The disclosures of the prior applications are incorporated by reference in their entirety.
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/KR2020/004692 | 4/7/2020 | WO |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2020/213866 | 10/22/2020 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
11425401 | Paluri | Aug 2022 | B2 |
11503343 | Paluri | Nov 2022 | B2 |
11528477 | Paluri | Dec 2022 | B2 |
20130271566 | Chen et al. | Oct 2013 | A1 |
20150334396 | Lim | Nov 2015 | A1 |
20220086460 | Bossen | Mar 2022 | A1 |
20220132110 | Paluri | Apr 2022 | A1 |
20220159279 | Paluri | May 2022 | A1 |
20220217404 | Paluri | Jul 2022 | A1 |
20220337849 | Paluri | Oct 2022 | A1 |
Number | Date | Country |
---|---|---|
104054345 | Sep 2014 | CN |
105103561 | Nov 2015 | CN |
105103563 | Nov 2015 | CN |
2501125 | Oct 2013 | GB |
2561487 | Oct 2018 | GB |
2013034161 | Feb 2013 | JP |
20140010029 | Jan 2014 | KR |
20140120342 | Oct 2014 | KR |
20180061046 | Jun 2018 | KR |
10-2018-0079274 | Jul 2018 | KR |
WO 2007112417 | Oct 2007 | WO |
WO 2015053116 | Apr 2015 | WO |
Entry |
---|
Office Action in Indian Application No. 202117051078, dated Jun. 28, 2022, 6 pages. |
Office Action in Chinese Appln. No. 202080033890.X, mailed on Feb. 8, 2024, 14 pages (with English translation). |
Bross et al., “Versatile Video Coding (Draft 5),” JVET-N1001-v2, Joint Video Experts Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, Meeting #14, Geneva, CH, Mar. 19-27, 2019, 362 pages. |
Office Action in Chinese Appln. No. 202080033890.X, mailed on Jun. 26, 2024, 11 pages (with English translation). |
Office Action in Korean Appln. No. 10-2021-7032621, mailed on Jun. 10, 2024, 12 pages (with English translation). |
Tanaka et al., “Non-CE4 Subtest2: Extension of Adaptation Parameter Sets syntax for scaling list matrix,” JCTVC-H0119, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, Meeting #8, San Jose, CA, USA, Feb. 1-10, 2012, 4 pages. |
Wang et al., “On APS partial update,” JCTVC-H0505r1, Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11, Meeting #8, San Jose, CA, USA, Feb. 1-10, 2012, 5 pages. |
Number | Date | Country | |
---|---|---|---|
20220210403 A1 | Jun 2022 | US |
Number | Date | Country | |
---|---|---|---|
62834379 | Apr 2019 | US |