The present disclosure relates to an image decoding method based on intra prediction according to CCLM, and an apparatus thereof.
Recently, demands for high-resolution and high-quality images, such as High Definition (HD) images and Ultra High Definition (UHD) images, have been increasing in various fields. As the image data has high resolution and high quality, the amount of information or bits to be transmitted increases relative to the legacy image data. Therefore, when image data is transmitted using a medium such as a conventional wired/wireless broadband line or image data is stored using an existing storage medium, the transmission cost and the storage cost thereof are increased.
Accordingly, there is a need for a highly efficient image compression technique for effectively transmitting, storing, and reproducing information of high resolution and high quality images.
An aspect of the present disclosure is to provide a method and an apparatus for enhancing image coding efficiency.
Another aspect of the present disclosure is to provide a method and an apparatus for enhancing efficiency of intra prediction.
Still another aspect of the present disclosure is to provide a method and an apparatus for enhancing efficiency of intra prediction based on a cross component linear model (CCLM).
Still another aspect of the present disclosure is to provide an efficient encoding and decoding method of CCLM prediction, and an apparatus for performing the encoding and decoding method.
Still another aspect of the present disclosure is to provide a method and an apparatus for selecting peripheral samples for deriving linear model parameters for CCLM.
According to one exemplary embodiment of the present disclosure, an image decoding method performed by a decoding apparatus is provided. The method includes: when an intra prediction mode for a current chroma block is a cross-component linear model (CCLM) mode, deriving downsampled luma samples based on a current luma block; deriving downsampled neighboring luma samples based on neighboring luma samples of the current luma block; and deriving a CCLM parameter based on the downsampled neighboring luma samples and neighboring chroma samples of a current neighboring chroma block, wherein the number of downsampled neighboring luma samples and the number of neighboring chroma samples are equal to a predetermined threshold value, and the threshold value is derived based on a width and a height of the current chroma block.
According to another exemplary embodiment of the present disclosure, a decoding apparatus for performing image decoding is provided. The decoding apparatus includes a predictor configured to: when deriving an intra prediction mode for a current chroma block as a cross-component linear model (CCLM) mode and performing a prediction thereof, derive downsampled luma samples based on a current luma block, derive downsampled neighboring luma samples based on neighboring luma samples of the current luma block, and derive a CCLM parameter based on the downsampled neighboring luma samples and neighboring chroma samples of a current neighboring chroma block, wherein the number of downsampled neighboring luma samples and the number of neighboring chroma samples are equal to a predetermined threshold value, and the threshold value is derived based on a width and a height of the current chroma block.
According to still another exemplary embodiment of the present disclosure, a video encoding method performed by an encoding apparatus is provided. The method includes: when determining a cross-component linear model (CCLM) mode as an intra prediction mode for a current chroma block, deriving downsampled luma samples based on a current luma block; deriving downsampled neighboring luma samples based on neighboring luma samples of the current luma block; and deriving a CCLM parameter based on the downsampled neighboring luma samples and neighboring chroma samples of a current neighboring chroma block, wherein the number of downsampled neighboring luma samples and the number of neighboring chroma samples are equal to a predetermined threshold value, and the threshold value is derived based on a width and a height of the current chroma block.
According to still another exemplary embodiment of the present disclosure, a video encoding apparatus is provided. The encoding apparatus includes: a predictor configured to: derive an intra prediction mode for a current chroma block as a cross-component linear model (CCLM) mode based on prediction mode information on a current chroma block, derive downsampled luma samples based on a current luma block, derive downsampled neighboring luma samples based on neighboring luma samples of the current luma block, and derive a CCLM parameter based on the downsampled neighboring luma samples and neighboring chroma samples of a current neighboring chroma block, wherein the number of downsampled neighboring luma samples and the number of neighboring chroma samples are equal to a predetermined threshold value, and the threshold value is derived based on a width and a height of the current chroma block.
According to still another exemplary embodiment of the present disclosure, a digital storage medium may be provided, in which image data including encoded image information and bitstream generated according to an image encoding method performed by an encoding apparatus is stored.
According to still another exemplary embodiment of the present disclosure, a digital storage medium may be provided, in which image data including encoded image information and bitstream causing a decoding apparatus to perform the image decoding method is stored.
According to the present disclosure, the overall image/video compression efficiency can be enhanced.
According to the present disclosure, the intra prediction efficiency can be enhanced.
According to the present disclosure, the image coding efficiency can be enhanced through performing of intra prediction based on CCLM.
According to the present disclosure, the CCLM-based intra prediction efficiency can be enhanced.
According to the present disclosure, the intra prediction complexity can be reduced by limiting the number of neighboring samples being selected to derive a linear model parameter for CCLM to a specific number.
Effects that can be obtained through detailed examples in the description are not limited to the above-mentioned effects. For example, there may be various technical effects that can be understood or induced from the description by a person having ordinary skill in the related art. Accordingly, the detailed effects of the description are not limited to those explicitly described in the description, and may include various effects that can be understood or induced from the technical features of the description.
The present disclosure may be modified in various forms, and specific embodiments thereof will be described and illustrated in the drawings. However, the embodiments are not intended for limiting the disclosure. The terms used in the following description are used to merely describe specific embodiments but are not intended to limit the disclosure. An expression of a singular number includes an expression of the plural number, so long as it is clearly read differently. The terms such as “include” and “have” are intended to indicate that features, numbers, steps, operations, elements, components, or combinations thereof used in the following description exist and it should be thus understood that the possibility of existence or addition of one or more different features, numbers, steps, operations, elements, components, or combinations thereof is not excluded.
Meanwhile, elements in the drawings described in the disclosure are independently drawn for the purpose of convenience for explanation of different specific functions, and do not mean that the elements are embodied by independent hardware or independent software. For example, two or more elements of the elements may be combined to form a single element, or one element may be divided into plural elements. The embodiments in which the elements are combined and/or divided belong to the disclosure without departing from the concept of the disclosure.
In this document, the term “A or B” may mean “only A”, “only B”, or “both A and B”. In other words, in the document, the term “A or B” may be interpreted to indicate “A and/or B”. For example, in the 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 the document, “at least one of A and B” may mean “only A”, “only B”, or “both A and B”. Further, in the 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 the 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 the 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” 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”.
In the document, technical features individually explained in one drawing may be individually implemented, or may be simultaneously implemented.
Hereinafter, embodiments of the present disclosure will be described in detail with reference to the accompanying drawings. In addition, like reference numerals are used to indicate like elements throughout the drawings, and the same descriptions on the like elements will 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.
This document relates to video/image coding. For example, the methods/embodiments disclosed in this document may be applied to a method disclosed in the versatile video coding (VVC), the EVC (essential video coding) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2), or the next generation video/image coding standard (ex. H.267 or H.268, etc.).
This document presents various embodiments of video/image coding, and the embodiments may be performed in combination with each other unless otherwise mentioned.
In this document, video may refer to a series of images over time. Picture generally refers to a unit representing one image in a specific time zone, and a slice/tile is a unit constituting part of a picture in coding. The slice/tile may include one or more coding tree units (CTUs). One picture may consist of one or more slices/tiles. One picture may consist of one or more tile groups. One tile group may include one or more tiles. A brick may represent a rectangular region of CTU rows within a tile in a picture. A tile may be partitioned into multiple bricks, each of which consisting of one or more CTU rows within the tile. A tile that is not partitioned into multiple bricks may be also referred to as a brick. A brick scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a brick, bricks within a tile are ordered consecutively in a raster scan of the bricks of the tile, and tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A tile is a rectangular region of CTUs within a particular tile column and a particular tile row in a picture. The tile column is a rectangular region of CTUs having a height equal to the height of the picture and a width specified by syntax elements in the picture parameter set. The tile row is a rectangular region of CTUs having a height specified by syntax elements in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of bricks of a picture that may be exclusively contained in a single NAL unit. A slice may consist of either a number of complete tiles or only a consecutive sequence of complete bricks of one tile. Tile groups and slices may be used interchangeably in this document. For example, in this document, a tile group/tile group header may be called a slice/slice header.
A pixel or a 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.
In this document, the term “/” and “,” should be interpreted to indicate “and/or.” For instance, the expression “A/B” may mean “A and/or B.” Further, “A, B” may mean “A and/or B.” Further, “A/B/C” may mean “at least one of A, B, and/or C.” Also, “A/B/C” may mean “at least one of A, B, and/or C.”
Further, in the document, the term “or” should be interpreted to indicate “and/or.” For instance, the expression “A or B” may comprise 1) only A, 2) only B, and/or 3) both A and B. In other words, the term “or” in this document should be interpreted to indicate “additionally or alternatively.”
Referring to
The 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, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like. The filter 260 may generate various information related to the filtering and transmit the generated information to the entropy encoder 240 as described later in the description of each filtering method. The information related to the filtering may be encoded by the entropy encoder 240 and output in the form of a bitstream.
The modified reconstructed picture transmitted to the memory 270 may be used as the reference picture in the inter predictor 221. When the inter prediction is applied through the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus may be avoided and encoding efficiency may be improved.
The DPB of the memory 270 DPB may store the modified reconstructed picture for use as a reference picture in the inter predictor 221. The memory 270 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and/or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 221 and used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and may transfer the reconstructed samples to the intra predictor 222.
Referring to
When a bitstream including video/image information is input, the decoding apparatus 300 may reconstruct an image corresponding to a process in which the video/image information is processed in the encoding apparatus of
The decoding apparatus 300 may receive a signal output from the encoding apparatus of
The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in the form of a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding apparatus. The dequantizer 321 may perform dequantization on the quantized transform coefficients by using a quantization parameter (ex. quantization step size information) and obtain transform coefficients.
The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
The predictor may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The predictor may determine whether intra prediction or inter prediction is applied to the current block based on the information on the prediction output from the entropy decoder 310 and may determine a specific intra/inter prediction mode.
The predictor 320 may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict one block but also simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the predictor may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image/video coding of a game or the like, for example, screen content coding (SCC). The IBC basically performs prediction in the current picture but may be performed similarly to inter prediction in that a reference block is derived in the current picture. That is, the IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture may be signaled based on information on the palette table and the palette index.
The intra predictor 331 may predict the current block by referring to the samples in the current picture. The referred samples may be located in the neighborhood of the current block or may be located apart according to the prediction mode. In the intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra predictor 331 may determine the prediction mode applied to the current block by using a prediction mode applied to a neighboring block.
The inter predictor 332 may derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on correlation of motion information between the neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. For example, the inter predictor 332 may configure a motion information candidate list based on neighboring blocks and derive a motion vector of the current block and/or a reference picture index based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information on the prediction may include information indicating a mode of inter prediction for the current block.
The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (predicted block, predicted sample array) output from the predictor (including the inter predictor 332 and/or the intra predictor 331). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
The adder 340 may be called reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of a next block to be processed in the current picture, may be output through filtering as described below, or may be used for inter prediction of a next picture.
Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in the picture decoding process.
The filter 350 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 360, specifically, a DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, a sample adaptive offset, an adaptive loop filter, a bilateral filter, and the like.
The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter predictor 332. The memory 360 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and/or the motion information of the blocks in the picture that have already been reconstructed. The stored motion information may be transmitted to the inter predictor 260 so as to be utilized as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transfer the reconstructed samples to the intra predictor 331.
In the present disclosure, the embodiments described in the filter 260, the inter predictor 221, and the intra predictor 222 of the encoding apparatus 200 may be the same as or respectively applied to correspond to the filter 350, the inter predictor 332, and the intra predictor 331 of the decoding apparatus 300. The same may also apply to the unit 332 and the intra predictor 331.
Meanwhile, as described above, in performing video coding, a prediction is performed to enhance compression efficiency. Accordingly, a prediction block including prediction samples for a current block, that is, a coding target block, may be generated. In this case, the predicted block includes prediction samples in a spatial domain (or pixel domain). The prediction block is identically derived in the encoding apparatus and the decoding apparatus. The encoding apparatus may improve image coding efficiency by signaling residual information on a residual between an original block and the predicted block not an original sample value of the original block itself to the decoding apparatus. The decoding apparatus may derive a residual block including residual samples based on the residual information, may generate a reconstructed block including reconstructed samples by adding up the residual block and the prediction block, and may generate a reconstructed picture including the reconstructed block.
The residual information may be generated through a transform and quantization procedure. 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 procedure on the transform coefficients, and may signal related residual information to the decoding apparatus (through a bit stream). In this case, the residual information may include information, such as value information, location information, a transform scheme, a transform kernel and a quantization parameter of the quantized transform coefficients. The decoding apparatus may perform a dequantization/inverse transform procedure based on the residual information and may derive the residual samples (or residual block). The decoding apparatus may generate the reconstructed picture based on the prediction block and the residual block. The encoding apparatus may also derive the residual block by performing a dequantization/inverse transform on the quantized transform coefficients for the reference of inter prediction of a subsequent picture and may generate the reconstructed picture based on the residual block.
Referring to
In the present disclosure, “chroma block”, “chroma image”, and the like may represent the same meaning of chrominance block, chrominance image, and the like, and accordingly, chroma and chrominance may be commonly used. Likewise, “luma block”, “luma image”, and the like may represent the same meaning of luminance block, luminance image, and the like, and accordingly, luma and luminance may be commonly used.
In the present disclosure, a “current chroma block” may mean a chroma component block of a current block, which is a current coding unit, and a “current luma block” may mean a luma component block of a current block, which is a current coding unit. Accordingly, the current luma block and the current chroma block correspond with each other. However, block formats and block numbers of the current luma block and the current chroma block are not always the same but may be different depending on a case. In some cases, the current chroma block may correspond to the current luma region, and in this case, the current luma region may include at least one luma block.
In the present disclosure, “reference sample template” may mean a set of reference samples neighboring a current chroma block for predicting the current chroma block. The reference sample template may be predefined, or information for the reference sample template may be signaled to the decoding apparatus 300 from the encoding apparatus 200.
Referring to
In an embodiment, when an intra encoding of a chroma image is performed in Joint Exploration TEST Model (JEM) used in Joint Video Exploration Team (JVET), Cross Component Linear Model (CCLM) may be used. CCLM is a method of predicting a pixel value of a chroma image based on a pixel value of a reconstructed luma image, which is based on the property of high correlation between a chroma image and a luma image.
CCLM prediction of Cb and Cr chroma images may be based on the equation below.
Here, predc (i,j) means a Cb or Cr chroma image to be predicted, RecL′(i,j) means a reconstructed luma image of which the size is adjusted to a chroma block size, and (i,j) means pixel coordinates. In the 4:2:0 color format, since the size of the luma image is double the size of the chroma image, RecL′ of a chroma block size should be generated through downsampling, and thus pixels of the luma image to be used for the chroma image predc (i,j) may be used in consideration of all neighboring pixels in addition to RecL(2i,2j). The RecL′(i,j) may be represented as downsampled luma samples.
For example, the RecL′(i,j) may be derived using 6 neighboring pixels as in the following equation.
Further, α and β represent a cross-correlation and an average value difference between a Cb or Cr chroma block neighboring template and a luma block neighboring template as shown as shaded regions of
Here, L(n) means neighboring reference samples and/or left neighboring samples of a luma block corresponding to a current chroma image, C(n) means neighboring reference samples and/or left neighboring samples of a current chroma block to which encoding is currently applied, and (i,j) means a pixel location. Further, L(n) may represent downsampled top neighboring samples and/or left neighboring samples of the current luma block. Further, N may represent the number of total pixel pair (luma and chroma) values used to calculate a CCLM parameter, and may represent a value that is twice as large as a smaller value between a width and a height of the current chroma block.
Meanwhile, samples for parameter calculation (e.g., α and β) for the above-described CCLM prediction may be selected as follows.
As described above, 2N sample pairs may be derived, and in the case that CCLM parameters α and β are calculated using Equation 3 using the sample pair described above, the operation of numbers as represented in Table 1 below may be required.
Referring to Table 1 above, for example, in the case of a chroma block of 4×4 size, 13 multiplication operations and 31 addition operations may be required for calculating CCLM parameter, and in the case of a chroma block of 32×32 size, 133 multiplication operations and 255 addition operations may be required for calculating CCLM parameter. That is, as the size of the chroma block increases, an amount of operation required for calculating CCLM parameter increases rapidly, which may be directly connected to a delay problem in hardware implementation. Particularly, since the CCLM parameter should be derived through calculation even in the decoding apparatus, the amount of operation may be connected to a delay problem in hardware implementation of the decoding apparatus and increase of implementation cost.
Meanwhile, in the case of calculating CCLM parameters α and β, in order to reduce operations such as multiplication and addition, the CCLM parameters may be calculated using a slope of change of two luma and chroma sample pairs. For example, the CCLM parameters may be calculated as in Equation 4 as follows.
Here, (xA, yA) may represent sample values of a luma sample xA having the smallest luma value and a chroma sample yA that is the pair of the luma sample among neighboring reference samples of the current block for CCLM parameter calculation, and (xB, yB) may represent sample values of a luma sample xB having the largest luma value and a chroma sample yB that is the pair of the luma sample among the neighboring reference samples of the current block for the CCLM parameter calculation. In other words, xA may represent the luma sample having the smallest luma value among the neighboring reference samples of the current block, yA may represent the chroma sample that is the pair to the luma sample xA, xB may represent the luma sample having the largest luma value among the neighboring reference samples of the current block, and yB may represent the chroma sample that is the pair to the luma sample yB.
If the CCLM parameter is calculated using the above-described equations, it is advantageous to greatly reduce multiplication and addition operations as compared with the existing method, but comparison operations are added since the minimum value and the maximum value should be determined among the neighboring luma samples of the current block. That is, in order to determine the minimum and maximum sample values from the 2N neighboring samples, 4N comparison operations are required, and addition of the comparison operations may cause a delay in hardware implementation.
In performing CCLM prediction, a multi-directional LM (MDLM) may be performed, and as shown in
That is, in the LM_A mode of
As shown in
In the case of applying the MDLM, the parameters α and β are also calculated using the change slope of the above-described two luma and chroma pixel pairs, and many comparison operations are required even for the MDLM calculation. Since such addition of comparison operations still causes a delay in hardware implementation, there is a need for a scheme for reducing the addition of the operations.
Hereinafter, embodiments will be described, which can reduce the operation complexity for the CCLM parameter derivation, and through this, can reduce hardware costs of a decoding apparatus and complexity and time of a decoding process.
As an example, in order to solve the problem of increase of CCLM parameter operation amount as the chroma block size increase described above, an embodiment may be proposed for calculating a CCLM parameter by selecting a chroma block neighboring pixel, after configuring a neighboring sample selection upper limit Nth as described below. The Nth may also be represented as a maximum neighboring sample number. For example, Nth may be set as 2, 4, 8 or 16.
The CCLM parameter calculation procedure according to the present embodiment may be as below.
As described above, according to the present embodiment, a neighboring reference sample number for CCLM parameter calculation may be limited by setting Nth which is a maximum number of selected neighboring sample numbers, and through this, a CCLM parameter may be calculated through relatively less calculations even in a chroma block of big size.
In addition, in the case of setting Nth as relatively small number (e.g., 4 or 8), in hardware implementation of CCLM parameter calculation, a worst case operation (e.g., chroma block of 32×32 size) may be avoided, and therefore, a required hardware gate numbers may be reduced in comparison with the worst case, and through this, there is also an effect of reducing hardware implementation cost.
For example, in the case that Nth is 2, 4 and 8, an amount of the CCLM parameter calculation for a chroma block size may be represented as the following table.
Meanwhile, the Nun may be derived by an encoding apparatus and a decoding apparatus as a predetermined value without the necessity of transmitting additional information representing the Nth. Further, the additional information representing the Nth may be transmitted in a unit of coding unit (CU), slice, picture, or sequence, and the Nth may be derived based on the additional information representing the Nth. The additional information representing the Nth may represent the Nth n value.
For example, in the case that the additional information representing Nth is transmitted in a CU unit, when an intra-prediction mode of a current chroma block is the CCLM mode, as described below, a method may be proposed to parse syntax element cclm_reduced_sample_flag and perform a CCLM parameter calculation procedure. The cclm_reduced_sample_flag may represent a syntax element of CCLM reduced sample flag.
Further, in the case that the additional information representing the Nth is transmitted in a unit of slice, picture, or sequence, the Nth value may be decoded based on the additional information that is transmitted through a high level syntax (HLS) to be described later. In this case, the information on the Nth value may be encoded by the encoding apparatus, and may be included in a bitstream to be transmitted. In this document, a slice/slice header may be replaced by a tile (group)/tile (group) header.
For example, the additional information signaled through a slice header may be represented as the following table.
cclm_reduced_sample_num may represent a syntax element of the additional information representing Nth.
Alternatively, for example, the additional information signaled through a Picture Parameter Set (PPS) may be represented as the following table.
Alternatively, for example, the additional information signaled through a Sequence Parameter Set (SPS) may be represented as the following table.
Nth value, which is derived based on the cclm_reduced_sample_num value (i.e., a value derived by decoding cclm_reduced_sample_num) transmitted through the slice header, the PPS or the SPS, may be derived as represented in the following table.
For example, referring to Table 7 above, Nth may be derived based on the cclm_reduced_sample_num. In the case that the cclm_reduced_sample_num value is 0, Nth may be derived as 2, in the case that the cclm_reduced_sample_num value is 1, Nth may be derived as 4, in the case that the cclm_reduced_sample_num value is 2, Nth may be derived as 8, and in the case that the cclm_reduced_sample_num value is 3, Nth may be derived as 16.
Meanwhile, in the case that the additional information representing Nth is transmitted in a unit of CU, slice, picture or sequence, the encoding apparatus may determine the Nth value as below and transmit the additional information representing Nth that represent the Nth value.
The method proposed in the present embodiment may be used for a CCLM mode which is an intra-prediction mode for a chroma component, and the chroma block predicted through the CCLM mode may be used for deriving a residual image through a differential from an original image in the encoding apparatus or used for reconstructed image through an addition with a residual signal in the decoding apparatus.
Referring to
Later, the encoding apparatus/decoding apparatus may determine whether the current chroma block is a square chroma block (step, S1010).
In the case that the current chroma block is a square chroma block, the encoding apparatus/decoding apparatus may determine whether N, a width of the current block, is greater than the Nth (step, S1015).
In the case that N is greater than the Nth, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1020).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM prediction based on the selected reference samples (step, S1025).
In addition, in the case that N is not greater than the Nth, the encoding apparatus/decoding apparatus may select 2N neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1030). Later, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (step, S1025).
Meanwhile, in the case that the current chroma block is not a square chroma block, a size of the current chroma block may be derived in M×N size or N×M size (step, S1035). Here, M may represent a value greater than N (N<M).
Later, the encoding apparatus/decoding apparatus determine whether the N is greater than the Nth (step, S1040).
In the case that N is greater than the Nth, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1045).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM prediction based on the selected reference samples (step, S1025).
In addition, in the case that N is not greater than the Nth, the encoding apparatus/decoding apparatus may select 2N neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1050). Later, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (step, S1025).
Referring to
Meanwhile, in the present disclosure, in deriving the CCLM parameter, an embodiment which is different from the present embodiment of reducing operation complexity for deriving the CCLM parameter may be proposed.
As an example, in order to solve the problem of increase of the CCLM parameter operation amount as the chroma block size increase described above, an embodiment may be proposed for calculating the CCLM parameter by configuring a neighboring sample selection upper limit Nth to a block size of the current chroma block adaptively and selecting a neighboring pixel of the current chroma block based on the configured Nth. The Nth may also be represented as a maximum neighboring sample number.
For example, the Nth may be configured to a block size of the current chroma block adaptively as below.
In this case, for example, depending on a threshold value TH, a reference sample used for calculating the CCLM parameter may be selected as below.
For example, in the case that the TH is 4 (TH=4), and in the case that the N of the current chroma block is 2 or 4, two sample pairs for a block side is used, and the CCLM parameter may be calculated, and in the case that the N is 8, 16 or 32, four sample pairs for a block side is used, and the CCLM parameter may be calculated.
In addition, for example, in the case that the TH is 8 (TH=8), two sample pairs for a block side is used, and the CCLM parameter may be calculated, and in the case that the N is 16 or 32, four sample pairs for a block side is used, and the CCLM parameter may be calculated.
As described above, according to the present embodiment, the Nth is configured to a block size of the current chroma block adaptively, and a sample number which is optimized for a block size may be selected.
For example, an amount of operation for the CCLM parameter calculation according to the existing CCLM reference sample selection method and the present embodiment may be represented as the following table.
Here, the N may represent the smallest value of a width and a height of the current block. Referring to Table 8 above, in the case that the CCLM reference sample selection method proposed in the present embodiment is used, an amount of operation required for the CCLM parameter calculation is not increased even in the case that a block size is increased.
Meanwhile, the TH may be derived as a predetermined value in the encoding apparatus and the decoding apparatus without need to transmit additional information representing the TH. Alternatively, additional information representing the TH may be transmitted in a unit of Coding Unit (CU), slice, picture or sequence, and the TH may be derived based on the additional information representing the TH. The additional information representing the TH may represent a value of the TH.
For example, in the case that the additional information representing TH is transmitted in a CU unit, when an intra-prediction mode of a current chroma block is the CCLM mode, as described below, a method may be proposed to parse syntax element cclm_reduced_sample_flag and perform a CCLM parameter calculation procedure. The cclm_reduced_sample_flag may represent a syntax element of CCLM reduced sample flag.
Alternatively, in the case that the additional information representing TH is transmitted in a unit of slice, picture or sequence, as described below, TH value may be decoded based on the additional information transmitted through a high level syntax (HLS).
For example, the additional information signaled through a slice header may be represented as the following table.
Descriptor
cclm_reduced_sample_threshold may represent a syntax element of the additional information representing TH.
Alternatively, for example, the additional information signaled through a Picture Parameter Set (PPS) may be represented as the following table.
Descriptor
Alternatively, for example, the additional information signaled through a Sequence Parameter Set (SPS) may be represented as the following table.
Descriptor
TH value, which is derived based on the cclm_reduced_sample_threshold value (i.e., a value derived by decoding cclm_reduced_sample_threshold) transmitted through the slice header, the PPS or the SPS, may be derived as represented in the following table.
For example, referring to Table 12 above, the TH may be derived based on the cclm_reduced_sample_threshold. In the case that the cclm_reduced_sample_threshold value is 0, the TH may be derived as 4, and in the case that the cclm_reduced_sample_threshold value is 1, the TH may be derived as 8.
Meanwhile, in the case that the TH is derived as a predetermined value in the encoding apparatus and the decoding apparatus without transmitting separate additional information, the encoding apparatus may perform the CCLM parameter calculation for the CCLM prediction as the present embodiment described above based on the predetermined TH value.
Alternatively, the encoding apparatus may determine whether to use the threshold value TH and may transmit information representing whether to use the TH and the additional information representing the TH value to the decoding apparatus as below.
The method proposed in the present embodiment may be used for a CCLM mode which is an intra-prediction mode for a chroma component, and the chroma block predicted through the CCLM mode may be used for deriving a residual image through a differential from an original image in the encoding apparatus or used for reconstructed image through an addition with a residual signal in the decoding apparatus.
Referring to
Later, the encoding apparatus/decoding apparatus may determine whether the current chroma block is a square chroma block (step, S1210).
In the case that the current chroma block is a square chroma block, the encoding apparatus/decoding apparatus may determine whether N, a width of the current block, is greater than the TH (step, S1215).
In the case that N is greater than the TH, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1220). Here, the Nth may be 4. That is, in the case that N is greater than the TH, the Nth may be 4.
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM prediction based on the selected reference samples (step, S1225).
In addition, in the case that N is not greater than the TH, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1230). That is, in the case that N is not greater than the TH, the Nth may be 2. Later, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (step, S1225).
Meanwhile, in the case that the current chroma block is not a square chroma block, a size of the current chroma block may be derived in M×N size or N×M size (step, S1235). Here, M may represent a value greater than N (N<M).
Later, the encoding apparatus/decoding apparatus determine whether the N is greater than the TH (step, S1240).
In the case that N is greater than the TH, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1245). Here, the Nth may be 4. That is, in the case that N is greater than the TH, the Nth may be 4.
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM prediction based on the selected reference samples (step, S1225).
In addition, in the case that N is not greater than the TH, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as a reference sample for the CCLM parameter calculation (step, S1250). Here, the Nth may be 2. That is, in the case that N is greater than the TH, the Nth may be 2. Later, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (step, S1225).
Referring to
Meanwhile, in the present disclosure, in deriving the CCLM parameter, an embodiment which is different from the present embodiment of reducing operation complexity for deriving the CCLM parameter may be proposed.
Particularly, in order to solve the problem of increase of CCLM parameter operation amount as the chroma block size increase described above, the present embodiment proposes a method of configuring a pixel selection upper limit Nth adaptively. In addition, in the case that N=2 (here, N is a smaller value between a width and a height of a chroma block), in order to prevent the worst case operation (a case CCLM prediction is performed for all chroma blocks, after all chroma blocks in a CTU is divided into 2×2 size) occurred in CCLM prediction for a chroma block of 2×2 size, the present embodiment proposes a method of configuring Nth adaptively, and through this, an amount of operation for CCLM parameter calculation in the worst cast may be reduced by about 40%.
For example, according to the present embodiment, the Nth may be configured to a block size adaptively as below.
Alternatively, for example, according to the present embodiment, the Nth may be configured to a block size adaptively as below.
Alternatively, for example, according to the present embodiment, the Nth may be configured to a block size adaptively as below.
Alternatively, for example, according to the present embodiment, the Nth may be configured to a block size adaptively as below.
Method 1 to method 4 described above in the present embodiment may reduce a complexity of the worst case by about 40%, and since Nth may be adaptively applied to each chroma block size, encoding loss may be minimized. In addition, for example, since method 2 may apply Nth up to 8 in variable manner, this may proper to high quality image encoding. Since method 3 and method 4 may reduce Nth to 4 or 2, CCLM complexity may be reduced significantly, and may proper to low image quality or middle image quality.
As described in method 1 to method 4, according to the present embodiment, Nth may be configured adaptively to a block size, and through this, a reference sample number for deriving an optimized CCLM parameter may be selected.
The encoding apparatus/decoding apparatus may set the upper limit Nth for neighboring sample selection, and then, calculate a CCLM parameter by selecting a chroma block neighboring sample as described above.
An amount of CCLM parameter calculation according to a chroma block size in the case to which the present embodiment described above is applied may be represented as the following table.
As represented in Table 13 above, in the case that the methods proposed in the present embodiment is used, it is identified that an amount of operation required for the CCLM parameter calculation is not increase even a block size is increased.
Meanwhile, according to the present embodiment, without need to transmit additional information, a promised value may be used in the encoding apparatus and the decoding apparatus, or it may be transmitted whether to use the proposed method and information representing the Nth value in a unit of CU, slice, picture and sequence.
For example, in the case that information representing whether to use the proposed method is used in a unit of CU, when an intra-prediction mode of a current chroma block is CCLM mode (i.e., in the case that CCLM prediction is applied to the current chroma block), cclm_reduced_sample_flag may be parsed and the present embodiment described above may be performed as below.
Alternatively, in the case that the information representing the applied method is transmitted in a unit of slice, picture or sequence, as described below, the method among method 1 to method 4 may be selected based on the information transmitted through a high level syntax (HLS), and based on the selected method, the CCLM parameter may be calculated.
For example, the information representing the applied method signaled through a slice header may be represented as the following table.
cclm_reduced_sample_threshold may represent a syntax element of the information representing the applied method.
Alternatively, for example, the information representing the applied method signaled through a Picture Parameter Set (PPS) may be represented as the following table.
Alternatively, for example, the information representing the applied method signaled through a Sequence Parameter Set (SPS) may be represented as the following table.
The method selected based on cclm_reduced_sample_threshold value (i.e., a value derived by decoding cclm_reduced_sample_threshold) transmitted through the slice header, the PPS or the SPS may be derived as represented in the following table.
Referring to Table. 17, in the case that the cclm_reduced_sample_threshold value is 0, method 1 may be selected as the method applied to the current chroma block, in the case that the cclm_reduced_sample_threshold value is 1, method 2 may be selected as the method applied to the current chroma block, in the case that the cclm_reduced_sample_threshold value is 2, method 3 may be selected as the method applied to the current chroma block, and in the case that the cclm_reduced_sample_threshold value is 3, method 4 may be selected as the method applied to the current chroma block.
The method proposed in the present embodiment may be used a CCLM mode which is an intra-prediction mode for a chroma component, and the chroma block predicted through the CCLM mode may be used for deriving a residual image through a differential from an original image in the encoding apparatus or used for deriving a reconstructed image through an addition with a residual signal in the decoding apparatus.
Meanwhile, in the case that the information representing one of the methods is transmitted in a unit of CU, slice, picture and sequence, the encoding apparatus may determine one of method 1 to method 4 and transmit the information to the decoding apparatus as below.
The method proposed in the present embodiment may be used for a CCLM mode which is an intra-prediction mode for a chroma component, and the chroma block predicted through the CCLM mode may be used for deriving a residual image through a differential from an original image in the encoding apparatus or used for reconstructed image through an addition with a residual signal in the decoding apparatus.
Referring to
In the case that the current chroma block is the square chroma block, the encoding apparatus/decoding apparatus may set the width or height of the current block to N (S1410), and may determine whether the N is smaller than 2 (N<2) (S1415).
Alternatively, if the current chroma block is not the square chroma block, the size of the current chroma block may be derived as M×N size or N×M size (S1420), and the encoding apparatus/decoding apparatus may determine whether the N is smaller than 2 (S1415). Here, the M may represent a larger value than the N (N<M).
If the N is smaller than 2, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM parameter calculation (S1425). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1430).
Meanwhile, if the N is not smaller than 2, the encoding apparatus/decoding apparatus may determine whether the N is equal to or smaller than 4 (N<=4) (S1435).
If the N is equal to or smaller than 4, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1440). Here, the Nth may be 2 (Nth=2). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1430).
Further, if the N is larger than 4, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1445). Here, the Nth may be 4 (Nth=4). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1430).
Referring again to
In the case that the current chroma block is the square chroma block, the encoding apparatus/decoding apparatus may set the width or height of the current block to N (S1510), and may determine whether the N is smaller than 2 (N<2) (S1515).
Alternatively, if the current chroma block is not the square chroma block, the size of the current chroma block may be derived as M×N size or N×M size (S1520), and the encoding apparatus/decoding apparatus may determine whether the N is smaller than 2 (S1515). Here, the M may represent a larger value than the N (N<M).
If the N is smaller than 2, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM parameter calculation (S1525). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1530).
Meanwhile, if the N is not smaller than 2, the encoding apparatus/decoding apparatus may determine whether the N is equal to or smaller than 4 (N<=4) (S1535).
If the N is equal to or smaller than 4, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1540). Here, the Nth may be 2 (Nth=2). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1530).
Meanwhile, if the N is larger than 4, the encoding apparatus/decoding apparatus may determine whether the N is equal to or smaller than 8 (N<=8) (S1545).
If the N is equal to or smaller than 8, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1550). Here, the Nth may be 4 (Nth=4). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1530).
Further, if the N is larger than 8, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1555). Here, the Nth may be 8 (Nth=8). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters a and ß for the CCLM prediction based on the selected reference samples (S1530).
Referring again to
In the case that the current chroma block is the square chroma block, the encoding apparatus/decoding apparatus may set the width or height of the current block to N (S1610), and may determine whether the N is smaller than 2 (N<2) (S1615).
Alternatively, if the current chroma block is not the square chroma block, the size of the current chroma block may be derived as M×N size or N×M size (S1620), and the encoding apparatus/decoding apparatus may determine whether the N is smaller than 2 (S1615). Here, the M may represent a larger value than the N (N<M).
If the N is smaller than 2, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM parameter calculation (S1625). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1630).
Meanwhile, if the N is not smaller than 2, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1635). Here, the Nth may be 2 (Nth=2). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1630).
Referring again to
In the case that the current chroma block is the square chroma block, the encoding apparatus/decoding apparatus may set the width or height of the current block to N (S1710), and may determine whether the N is smaller than 2 (N<2) (S1715).
Alternatively, if the current chroma block is not the square chroma block, the size of the current chroma block may be derived as M×N size or N×M size (S1720), and the encoding apparatus/decoding apparatus may determine whether the N is smaller than 2 (S1715). Here, the M may represent a larger value than the N (N<M).
If the N is smaller than 2, the encoding apparatus/decoding apparatus may select 2Nth neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM parameter calculation (S1725). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM prediction based on the selected reference samples (S1730).
Meanwhile, if the N is not smaller than 2, the encoding apparatus/decoding apparatus may select the 2Nth neighboring samples in the reference line adjacent to the current block as the reference samples for the CCLM parameter calculation (S1735). Here, the Nth may be 4 (Nth=4). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters a and ß for the CCLM prediction based on the selected reference samples (S1730).
Referring again to
Meanwhile, in the case that subsampling is required in deriving a neighboring reference sample for a CCLM parameter calculation, the present disclosure proposes an embodiment of selecting a subsampling sample more efficiently.
Referring to (a) of
As shown in
In addition, as shown in
Meanwhile, the existing subsampling may be performed based on the following equation.
Here, Idx_w may represent a neighboring reference sample (or position of neighboring reference sample) adjacent to a top current chroma block which is derived through subsampling, and Idx_h may represent a neighboring reference sample (or position of neighboring reference sample) adjacent to a left current chroma block which is derived through subsampling. Further, width may represent a width of the current chroma block, and height may represent a height of the current chroma block. In addition, subsample_num may represent the number of neighboring reference samples (the number of neighboring reference samples adjacent to a side) which is derived through subsampling.
For example, the subsampling performed based on Equation 5 above may be performed as below.
x of Equation 5 above is a variable and may be increased from 0 to a reference sample number of top neighboring reference samples of the current chroma block after subsampling. As an example, in the case that 2 top neighboring reference samples are selected in the current chroma block of which width is 16, the width of Equation 5 is 16, and x may vary from 0 to 1. In addition, since the Subsample_num is 2, 0 and 8 may be selected as the Idx_w value. Accordingly, in the case that x component and y component of a top left sample position of the current chroma block are 0, the top neighboring reference sample of which x coordinate is 0 and top the neighboring reference sample of which x coordinate is 8 may be selected among the top neighboring reference samples through the subsampling.
y of Equation 5 above is a variable and may be increased from 0 to a reference sample number of left neighboring reference samples of the current chroma block after subsampling. As an example, in the case that 4 left neighboring reference samples are selected in the current chroma block of which height is 32, the height of Equation 5 is 32, and y may vary from 0 to 3. In addition, since the Subsample_num is 4, 0, 8, 16 and 24 may be selected as the Idx_h value. Accordingly, in the case that x component and y component of a top left sample position of the current chroma block are 0, the left neighboring reference sample of which y coordinate is 0, the left neighboring reference sample of which y coordinate is 8, the left neighboring reference sample of which y coordinate is 16 and the left neighboring reference sample of which y coordinate is 24 may be selected among the left neighboring reference samples through the subsampling.
Referring to Equation 5 above, only the samples near to the top left of the current chroma block may be selected through the subsampling.
Therefore, according to the present embodiment, subsampling may be performed based on an equation different from Equation 5 above. For example, the subsampling proposed in the present embodiment may be performed based on the following equation.
Herein, subsample_num_width may represent a top neighboring reference sample number derived through subsampling, and subsample_num_height may represent a left neighboring reference sample number derived through subsampling.
In addition, x is a variable and may be increased from 0 to a reference sample number of top neighboring reference samples of the current chroma block after subsampling. Further, y is a variable and may be increased from 0 to a reference sample number of left neighboring reference samples of the current chroma block after subsampling.
For example, referring to Equation 6 above, in the case that 2 top neighboring reference samples are selected in the current chroma block of which width is 16, the width of Equation 6 is 16, and x may vary from 0 to 1. In addition, since the subsample_num_width is 2, 15 and 7 may be selected as the Idx_w value. Accordingly, in the case that x component and y component of a top left sample position of the current chroma block are 0, the top neighboring reference sample of which x coordinate is 15 and top the neighboring reference sample of which x coordinate is 7 may be selected among the top neighboring reference samples through the subsampling. That is, among the top neighboring reference samples of the current chroma block, the top neighboring reference sample which is far from the top left side of the current chroma block may be selected.
In addition, for example, referring to Equation 6 above, in the case that 4 left neighboring reference samples are selected in the current chroma block of which height is 32, the height of Equation 6 is 32, and y may vary from 0 to 3. In addition, since the subsample_num_height is 4, 31, 23, 15 and 7 may be selected as the Idx_h value. Accordingly, in the case that x component and y component of a top left sample position of the current chroma block are 0, the left neighboring reference sample of which y coordinate is 31, the left neighboring reference sample of which y coordinate is 23, the left neighboring reference sample of which y coordinate is 15 and the left neighboring reference sample of which y coordinate is 7 may be selected among the left neighboring reference samples through the subsampling.
Meanwhile, the subsample_num_width and the subsample_num_height of Equation 6 above may be derived based on a size of the current chroma block. For example, the subsample_num_width and the subsample_num_height may be derived as represented in the following table.
Referring to Table 18, subsampling may be performed for neighboring reference samples adjacent to a long side in accordance with a short side between a width and a height of the current chroma block. That is, the number of neighboring reference samples selected among the neighboring reference samples adjacent to a long side may be derived as a smaller value between a width and a height of the current chroma block. For example, it may be derived as subsample_num_width=subsample_num_height=min (width, height).
Alternatively, for example, in the case that the Nth is derived, the subsample_num_width and the subsample_num_height may be derived based on the Nth. For example, the subsample_num_width and the subsample_num_height may be derived as represented in the following table based on the Nth.
Herein, min (A, B) may represent a smaller value between A and B.
Alternatively, for example, based on a predetermined look-up table (LUT), subsampling may be performed for deriving an optimal number of neighboring reference samples in accordance with a shape of the current chroma block. For example, the LUT may be derived as represented in the following table.
Referring to Table 20 above, the selected number of neighboring reference samples may be increased in comparison with the subsampling described above, and through this, a CCLM parameter may be calculated in higher accuracy. In subsampling for deriving 6 neighboring reference samples in the example described above, first 6 positions (idx_w or idx_h) may be selected among subsampling for deriving 8 neighboring reference samples, and in subsampling for deriving 12 or 14 neighboring reference samples, first 12 or 14 positions may be selected among subsampling for deriving 16 neighboring reference samples. In addition, in subsampling for deriving 24 or 28 neighboring reference samples, first 24 or 28 positions may be selected among subsampling for deriving 32 neighboring reference samples.
Further, referring to Table 20 above, the number of reference samples being selected in the encoding apparatus and the decoding apparatus may be determined as follows.
For example, if the chroma block size of the current chroma block is 4×32 size, it may be determined that the subsample_num_width is 4, and the subsample_num_height is 28, and even in the case of the remaining chroma block sizes, the subsample_num_width and the subsample_num_height may be determined in the same manner.
Alternatively, in order to prevent increase of hardware complexity, subsampling for deriving simplified number of neighboring reference samples may be performed. For example, the LUT may be derived as represented in the following table.
Referring to Table 21 above, the maximum value of the sum of the subsample_num_width and the subsample_num_height may be set to 8. Through this, the CCLM parameter can be efficiently calculated as well as the increase of hardware complexity can be reduced.
In subsampling for deriving 6 neighboring reference samples in the example described above, first 6 positions (idx_w or idx_h) may be selected during subsampling for deriving 8 neighboring reference samples.
Further, referring to Table 21 above, the number of reference samples being selected in the encoding apparatus and the decoding apparatus may be determined as follows.
For example, if the chroma block size of the current chroma block is 4×32 size, it may be determined that the subsample_num_width is 2, and the subsample_num_height is 6, and even in the case of the remaining chroma block sizes, the subsample_num_width and the subsample_num_height may be determined in the same manner.
According to the proposed method, without need to transmit additional information, a value promised in an encoder or a decoder may be used, or it may be transmitted whether to use the proposed method or a value in a unit of CU, slice, picture and sequence.
In the case that the subsampling using the LUT as represented in Table 20 and Table 21 described above is performed, the encoding apparatus and the decoding apparatus may use the subsample_num_width and subsample_num_height numbers determined in the Table (i.e., LUT), and in the case that the Nth is used, the subsample_num_width and the subsample_num_height may be determined based on the Nth value. In addition, in the other cases, the value derived as Table 18 may be used as a default subsample_num_width and a subsample_num_height number.
Meanwhile, in the case that the proposed method is transmitted in a unit of CU, that is, the information representing whether to apply subsampling using Equation 6 described above is transmitted, a method for the decoding apparatus to perform a CCLM prediction by parsing cclm_subsample_flag as below, when an intra-prediction mode of the current chroma block is the CCLM mode.
In the case that the information representing whether to use the proposed method is transmitted in a unit of slice, picture and sequence, the information may be transmitted through high level syntax (HLS) as below. The decoding apparatus may select a subsampling method which is performed based on the information.
For example, the information representing whether to use the proposed method signaled through a slice header may be represented as the following Table.
cclm_reduced_sample_flag may represent a syntax element of the information representing whether to use the proposed method.
Alternatively, for example, the information representing whether to use the proposed method signaled through a Picture Parameter Set (PPS) may be represented as the following table.
Alternatively, for example, the information representing whether to use the proposed method signaled through a Sequence Parameter Set (SPS) may be represented as the following table.
The method selected based on cclm_reduced_sample_flag value (i.e., a value derived by decoding cclm_reduced_sample_flag) transmitted through the slice header, the PPS or the SPS may be derived as represented in the following table.
Referring to Table. 25, in the case that the cclm_reduced_sample_flag value is 0, the subsampling using Equation 5 may be performed, and in the case that the cclm_reduced_sample_flag value is 1, the subsampling using Equation 6 may be performed.
Meanwhile, in the case that a predetermined value is used in the encoding apparatus and the decoding apparatus without transmitting the additional information, the encoding apparatus may perform the embodiment described above in the same manner of the decoding apparatus and perform a CCLM parameter calculation based on the selected neighboring reference samples.
Alternatively, in the case that the information representing whether to apply the proposed subsampling method is transmitted in a unit of CU, slice, picture and sequence, the encoding apparatus may determine whether to apply the proposed subsampling method, and then, transmit information of the determined method to the decoding apparatus.
Referring to
Particularly, the encoding apparatus/decoding apparatus may determine whether subsampling for neighboring samples of the current chroma block is required (step, S2205).
For example, in order to derive CCLM parameters for the current chroma block, in the case that top neighboring samples of a smaller number than that of a width of the current chroma block are selected, it is required to perform the subsampling for top neighboring samples of the current chroma block. In addition, for example, in order to derive CCLM parameters for the current chroma block, in the case that top neighboring samples of a smaller number than that of a height of the current chroma block are selected, it is required to perform the subsampling for left neighboring samples of the current chroma block.
In the case that the subsampling is required, the encoding apparatus/decoding apparatus may select a specific number of neighboring samples by performing subsampling using Equation 6 for the neighboring samples (step, S2210). Later, the encoding apparatus/decoding apparatus may calculate CCLM parameters for the current chroma block based on the selected neighboring samples (step, S2215).
In the case that the subsampling is not required, the encoding apparatus/decoding apparatus may not perform the subsampling but select the neighboring samples of the current chroma block (step, S2220). Later, the encoding apparatus/decoding apparatus may calculate the CCLM parameters for the current chroma block based on the selected neighboring samples (step, S2215).
In the case that the CCLM parameters are derived, the encoding apparatus/decoding apparatus may generate a prediction sample of the current chroma block by performing a CCLM prediction for the current chroma block based on the CCLM parameters (step, S2225).
Meanwhile, in this document, in deriving the CCLM parameter, another embodiment that is different from the above-described embodiment for reducing the operation complexity for deriving the CCLM parameter may be proposed.
According to an example, samples for parameters (e.g., α and β) for the CCLM and MDLM prediction may be selected as follows.
As described above, 2N sample pairs may be derived, and when the CCLM parameters α and β are calculated through the above-described Equation 3 using the sample pairs, 4N comparison operations may be required.
That is, in the case of the chroma block of 4×4 size, 16 comparison operations are necessary for calculating the CCLM parameter, and in the case of the chroma block of 32×32 size, 128 comparison operations are required. That is, as the size of the chroma block is increased, an amount of operation required for calculating the CCLM parameter is increased rapidly, and this may cause a delay problem in hardware implementation. Particularly, since the CCLM parameter should be derived through the calculation even in the decoding apparatus, this may be connected to a delay problem in hardware implementation of the decoding apparatus and an increase of implementation cost.
Specifically, in order to solve the problem of the increase of CCLM parameter operation amount according to the increase of the block size of the chroma block, the present embodiment proposes a scheme for adaptively configuring a pixel selection upper limit Nth. Further, in the case that N=2 (here, N is a smaller value between a width and a height of a chroma block), in order to prevent the worst case operation (a case in which CCLM prediction is performed for all chroma blocks, after all chroma blocks in a CTU are divided into 2×2 size) occurred in CCLM prediction for a chroma block of 2×2 size, the present embodiment may propose a method for adaptively configuring the Nth, and through this, an amount of operation for CCLM parameter calculation in the worst case may be reduced by about 50%.
Alternatively, for example, according to the present embodiment, the Nth may be adaptively configured to a block size as follows.
Further, for example, according to the present embodiment, the Nth may be adaptively configured to the block size as follows.
Alternatively, for example, according to the present embodiment, the Nth may be adaptively configured to the block size as follows.
Alternatively, for example, according to the present embodiment, the Nth may be adaptively configured to the block size as follows.
Method 5 in the present embodiment (proposed method 5)
In the above methods, N=2 means that the total number of pixels for calculating the CCLM parameter is 4 (2N), and Nth=1 means that only two (2*Nth) pixels are used to calculate the CCLM parameter. Further, N=4 means that the total number of pixels for calculating the CCLM parameter is 8 (2N), and Nth=2 means that only four (2Nth) pixels are used to calculate the CCLM parameter.
In method 1, in the case of using four pixels (in the case of using the existing CCLM of 2×N and N×2, and in the LM_A mode of 2×N and in the LM_L mode of N×2 in the case of MDLM), it is possible to reduce the comparison operations by half in the worst case by using a half of the pixels. Further, in the case of using eight pixels (in the case of using the existing CCLM of 4×N and N×4, and in the LM_A mode of 4×N and in the LM_L mode of N×4 in the case of MDLM), it is possible to greatly reduce an amount of comparison operation by using the half of the pixels, and even in the case of using more pixels, it is possible to perform the CCLM parameter operation by using only up to 8 pixels.
In method 2, in the case of using four pixels (in the case of using the existing CCLM of 2×N and N×2, and in the LM_A mode of 2×N and in the LM_L mode of N×2 in the case of MDLM), it is possible to reduce the comparison operations by half in the worst case by using the half of the pixels, and even in the case of using more pixels, it is possible to perform the CCLM parameter operation by using only up to 4 pixels.
Method 3 can perform the CCLM parameter operation using only up to 8 pixels, and method 4 can perform the CCLM parameter operation using only up to 4 pixels. That is, in method 4, the CCLM parameter is calculated using only 4 pixels in all blocks.
Method 1 to method 5 described above in the present embodiment may reduce the complexity of the worst case by about 50% in the case that N=2, and since the Nth can be adaptively applied to each chroma block size, an encoding loss can be minimized.
As described above, the number of pixels optimized to the block size can be selected by adaptively configuring the Nth to the block size, and after the Nth is configured, the CCLM parameter can be calculated by selecting the chroma block neighboring pixels as shown in
As illustrated in Table 26 above, in the case of using methods proposed in the present embodiment, it can be seen that the operation amount required for the CCLM parameter calculation is not increased even though the block size is increased.
Next table represents data of the experimental results of method 1 and method 2 proposed in the present embodiment.
Referring to Table 27 above, it can be seen that the encoding efficiency is little changed although the CCLM parameter calculation operation amount is reduced (Nth=1, 2, 4). Rather, performance gains (Y 0.02%, Cb 0.12%, and Cr 0.07%) for respective components can be obtained. Further, it can be confirmed that the encoding and decoding complexities are reduced to 99% and 96%, respectively.
Further, even in the case of greatly reducing the CCLM parameter calculation operation amount through method 2 proposed as in Table 28 (Nth=1, 2), it can be confirmed that the encoding efficiency is little changed and the encoding and decoding complexities are reduced to 99% and 96%, respectively.
Meanwhile, the TH may be derived as a predetermined value in the encoding apparatus and the decoding apparatus without the necessity of transmitting additional information representing the TH. Further, the additional information representing the TH may be transmitted in a unit of CU, slice, picture or sequence, and the TH may be derived based on the additional information representing the TH. The additional information representing the TH may represent the TH value.
For example, in the case that the additional information representing the TH in a unit of CU is transmitted, a scheme may be proposed for parsing a syntax element cclm_reduced_smaple_flag as in the contents to be described later and performing a CCLM parameter calculation process when an intra prediction mode of the current chroma block is the CCLM mode. The cclm_reduced_smaple_flag may represent the syntax element of the CCLM reduced sample flag.
Further, in the case that information representing a method that is applied in a unit of slice, picture, or sequence is transmitted, an applied method among method 1 to method 5 may be selected based on the information being transmitted through high level syntax (HLS) to be described later, and the CCLM parameter may be calculated based on the selected method.
For example, information representing the applied method being signaled through a slice header may be represented as the following table.
cclm_reduced_sample_threshold may represent a syntax element of the information representing the applied method.
Alternatively, for example, the information representing the applied method being signaled through a picture parameter set (PPS) may be represented as the following table.
Alternatively, for example, the information representing the applied method being signaled through a sequence parameter set (SPS) may be represented as the following table.
The method selected based on the cclm_reduced_sample_threshold value (i.e., a value derived by decoding the cclm_reduced_sample_threshold) transmitted through the slice header, the PPS or the SPS may be derived as represented in the following table.
Referring to Table 32, in the case that the cclm_reduced_sample_threshold value is 0, the method being applied to the current chroma block may be selected as the method 1, and in the case that the cclm_reduced_sample_threshold value is 1, the method being applied to the current chroma block may be selected as the method 2. In the case that the cclm_reduced_sample_threshold value is 2, the method being applied to the current chroma block may be selected as the method 3, and in the case that the cclm_reduced_sample_threshold value is 3, the method being applied to the current chroma block may be selected as the method 4. In the case that the cclm_reduced_sample_threshold value is 4, the method being applied to the current chroma block may be selected as the method 5.
The method proposed in the present embodiment may be used in a CCLM mode that is an intra prediction mode for a chroma component, and a chroma block predicted through the CCLM mode may be used for an encoding apparatus to derive a residual image through a difference from the original image, or may be used for a decoding apparatus to derive a reconstructed image through the sum with a residual signal.
Meanwhile, in the case that the information representing one of the above-described methods is transmitted in a unit of CU, slice, picture and sequence, the encoding apparatus may determine one of the methods 1 to 5, and then may transmit the information to the decoding apparatus as follows.
Referring to
The encoding apparatus/decoding apparatus may set N of the current chroma block in consideration of a block shape and CCLM/MDLM mode (S2301), and may determine whether the N is equal to 2 (N=2) (S2302).
If the N is equal to 2, the encoding apparatus/decoding apparatus may select two neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2303). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2304).
Meanwhile, if the N is not equal to 2, the encoding apparatus/decoding apparatus may determine whether the N is equal to 4 (N=4) (S2305).
If the N is equal to 4, the encoding apparatus/decoding apparatus may select four neighboring samples in the reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2306). Here, the Nth may be 2 (Nth=2). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2304).
Alternatively, if the N is not equal to 4, the encoding apparatus/decoding apparatus may select 8 neighboring samples in the reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2307). Here, the Nth may be 4 (Nth=4). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters a and ß for the CCLM/MDLM prediction based on the selected reference samples (S2304).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate a prediction sample for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S2310). For example, the encoding apparatus/decoding apparatus may generate the prediction sample for the current chroma block based on the above-described Equation 1 in which the calculated parameters and reconstructed samples of the current luma block for the current chroma block are used.
Referring to
The encoding apparatus/decoding apparatus may set N of the current chroma block in consideration of a block shape and CCLM/MDLM mode (S2401), and may determine whether the N is equal to 2 (N=2) (S2402).
If the N is equal to 2, the encoding apparatus/decoding apparatus may select two neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2403). Here, the Nth may be 1 (Nth=1).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2404).
Meanwhile, if the N is not equal to 2, the encoding apparatus/decoding apparatus may select four neighboring samples in the reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2405). Here, the Nth may be 2 (Nth=2). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2404).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate a prediction sample for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S2410).
Referring to
The encoding apparatus/decoding apparatus may set N of the current chroma block in consideration of a block shape and CCLM/MDLM mode (S2501), and may determine whether the N is equal to 2 (N=2) (S2502).
If the N is equal to 2, the encoding apparatus/decoding apparatus may select four neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2503). This is the same as the reference sample derivation in the existing method.
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2504).
Meanwhile, if the N is not equal to 2, the encoding apparatus/decoding apparatus may select 8 neighboring samples in the reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2505). Here, the Nth may be 4 (Nth=4). Thereafter, the encoding apparatus/decoding apparatus may derive the parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2504).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate a prediction sample for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S2510).
Referring to
The encoding apparatus/decoding apparatus may select four neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2601). Here, the Nth may be 4 (Nth=4).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2602).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate a prediction sample for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S2610).
Referring to
The encoding apparatus/decoding apparatus may select N neighboring samples in a reference line adjacent to the current block as reference samples for the CCLM/MDLM parameter calculation (S2701). Here, the Nth may be N/2 (Nth=N/2).
The encoding apparatus/decoding apparatus may derive parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S2702).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate a prediction sample for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S2710).
Meanwhile, according to an example, in order to solve the complexity of the existing CCLM parameter calculation, the following simplified CCLM parameter calculation method may be proposed.
According to the method proposed in the present embodiment, since downsampling of a luma block is performed always at 2 sample positions, the downsampling operation amount can be reduced at least a half and up to the extent of 1/32 as compared with the existing method. Further, through adaptive selection of chroma block and luma block reference samples, the comparison operation amount can be reduced at least a half and up to the extent of ⅛ as compared with the existing method, and thus an encoding loss can be minimized due to reduction of the operation amount.
Next, a method proposed in the present embodiment will be described in detail.
In the present step 1, different from the selection of the luma block through the existing downsampling filter, the downsampling of the luma reference sample can be simply performed using the equation below.
As illustrated, according to the present embodiment, a CCLM parameter can be calculated using only samples of specific positions without performing an operation for downsampling.
In the present step, it is proposed to adaptively select the reference samples and to adaptively select the sampling positions using all embodiments as described above.
As an example, in the case of applying the method of
The present step proposes to select the minimum and maximum luma sample and the corresponding chroma sample through comparison operation of the previously selected reference samples, and then to perform luma value compensation in the same method as the existing luma reference sample downsampling using neighboring luma samples of the selected luma sample position.
That is, as shown in
According to this step, the CCLM parameters α and β can be calculated in the same method as the existing one using two luma samples compensated for through the step 3 and the corresponding chroma sample values.
Referring to
The encoding apparatus/decoding apparatus may select luma reference pixels without downsampling filtering (S3001).
Thereafter, the encoding apparatus/decoding apparatus may select reduced samples (pixels) in a reference line according to various embodiments (e.g., methods described with reference to
Thereafter, the encoding apparatus/decoding apparatus may select the maximum and minimum sample pairs from the reduced reference pixels (S3003).
The encoding apparatus/decoding apparatus may perform filtering of the two maximum and minimum luma samples selected using Equation 8 (S3004), and may derive the parameters α and β for the CCLM/MDLM prediction based on the selected reference samples (S3005).
In the case that the parameters for the CCLM/MDLM prediction for the current chroma block have been calculated, the encoding apparatus/decoding apparatus may generate prediction samples for the current chroma block by performing the CCLM/MDLM prediction based on the parameters (S3010).
Hereafter, a method for solving a hardware implementation complexity problem during chroma intra prediction through CCLM, specifically, a method for efficiently selecting luma and chroma pixels (or samples) being used during the CCLM parameter calculation, may be proposed. Through this, it is possible to minimize coding efficiency reduction while reducing the CCLM parameter calculation complexity.
Specifically, a first test for reducing the number of reference samples for calculating the CCLM parameters and a second test in which a half of reference samples are used for the CCLM parameters may be explained, and in the second test, the maximum value of the pixel was limited to 8 in addition to the first test. In both the two tests, the number of reference sample pairs used for the CCLM parameter determination was reduced to a half of the worst case, and thus the luma downsampling process and the pixel comparison operation complexity were reduced by a half.
As the result of the first test, the BDR was represented as Y 0.00%, Cb 0.07%, Cr 0.03% in all intra configuration, and as the result of the second test, the BDR was represented as Y 0.00%, Cb 0.04%, Cr 0.01% in all intra configuration.
According to the proposed method, since a half of the reference samples were used for the CCLM and MDLM in determining the CCLM parameter, the operation complexity could be remarkably reduced, and in particular, as shown in Table 33, the maximum value of the reference sample pairs was limited to 8 in the second test.
Further, in the proposed embodiment, the number of reference sample pairs for the CCLM parameter, for example, in the case of 2×2 block, was reduced by a half in comparison with the worst case, and as shown in Table 34 and Table 35, this resulted in reduction of the downsampling process for the luma reference pixel derivation and the number of pixel comparison operations for the CCLM parameter derivation.
The result of the first test is represented in Table 36 and Table 37, and the result of the second test is represented in Table 38 and Table 39.
As shown in the above tables, in order to reduce the complexity of the CCLM parameter derivation, it is effective to limit the number of reference sample pairs during the CCLM parameter determination.
Table 40 and Table 41 below show an operation process according to the above-described embodiments.
In Table 40 and Table 41 above, it is described that downsampling of neighboring luma samples is performed only in the case that “—If (y+1)%yS is equal to 0, the following applies” and “—If (y+1)%yS is equal to 0, the following applies”. That is, the downsampling is not performed with respect to all neighboring luma samples, but is performed with respect to neighboring luma samples of limited positions satisfying specific conditions.
The following drawings have been prepared to explain specific examples of the present disclosure. Since names of specific devices described in the drawings and names of specific signal/message/field are exemplarily presented, the technical features of the present disclosure are not limited to the specific names used in the following drawings.
The encoding apparatus determines a cross-component linear model (CCLM) mode as an intra prediction mode for the current chroma block (S3100). For example, the encoding apparatus may determine the intra prediction mode for the current chroma block based on a rate-distortion (RD) cost (or RDO). Here, the RD cost may be derived based on the sum of absolute difference (SAD). The encoding apparatus may determine the CCLM mode as the intra prediction mode for the current chroma block based on the RD cost.
Further, the encoding apparatus may encode information on the intra prediction mode for the current chroma block, and the information on the intra prediction mode may be signaled through a bitstream. The prediction-related information of the current chroma block may include the information on the intra prediction mode.
The encoding apparatus may derive downsampled luma samples based on the current luma block (S3110).
The encoding apparatus may derive a threshold value for the current chroma block (S3120).
The threshold value may be derived to derive the CCLM parameters for the current chroma block.
For example, the threshold value may be represented as an upper limit of the number of neighboring samples, or the maximum number of neighboring samples. The derived threshold value may be 4. Further, the derived threshold value may be 4, 8, or 16.
If the current chroma block is in the top and left based CCLM mode, that is, if the current chroma block is in the top left based CCLM mode, the CCLM parameters may be derived based on downsampled top left neighboring luma samples and top left neighboring chroma samples, of which the number is equal to the threshold value. For example, if the current chroma block is in the top left based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on two downsampled left neighboring luma samples, two downsampled top neighboring luma samples, two left neighboring chroma samples, and two top neighboring chroma samples.
Alternatively, if the current chroma block is in the left based CCLM mode, the parameters may be derived based on the downsampled left neighboring luma samples and the left neighboring chroma samples, of which the number is equal to the threshold value. For example, if the current chroma block is in the left based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on four downsampled left neighboring luma samples and four left neighboring chroma samples.
Alternatively, if the current chroma block is in the top based CCLM mode, the parameters may be derived based on the downsampled top neighboring luma samples and the top neighboring chroma samples, of which the number is equal to the threshold value. For example, if the current chroma block is in the top based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on four downsampled top neighboring luma samples and four top neighboring chroma samples.
The threshold value described above may be derived as a predetermined value. That is, the threshold value may be derived as a promised value between the encoding apparatus and the decoding apparatus. In other words, the threshold value may be derived as the predetermined value for the current chroma block to which the CCLM mode is applied.
Alternatively, for example, the encoding apparatus may encode image information including prediction-related information, and perform signaling of the image information including the prediction-related information through the bitstream, and the prediction-related information may include information indicating the threshold value. The information indicating the threshold value may be signaled in a unit of coding unit (CU), slice, PPS, or SPS.
Alternatively, for example, the encoding apparatus may encode the image information including the prediction-related information, and the prediction-related information may include flag information indicating whether to derive the number of neighboring reference samples based on the threshold value. If the value of the flag information is 1, the flag information may indicate that the number of neighboring reference samples is derived based on the threshold value, whereas if the value of the flag information is 0, the flag information may indicate that the number of neighboring reference samples is not derived based on the threshold value. If the value of the flag information is 1, the prediction-related information may include the information indicating the threshold value. The information indicating the flag information and/or the threshold value may be signaled in a unit of coding unit (CU), slice, PPS, or SPS.
Alternatively, for example, the threshold value may be derived based on the size of the current block. As an example, the threshold value may be derived based on whether a smaller value between a width and a height of the current block is larger than a specific threshold value. For example, if the smaller value between the width and the height of the current block is larger than the specific threshold value, the threshold value may be derived as 4, and if the smaller value between the width and the height of the current block is not larger than the specific threshold value, the threshold value may be derived as 2. The specific threshold value may be derived as a predetermined value. That is, the specific threshold value may be derived as a promised value between the encoding apparatus and the decoding apparatus. Alternatively, for example, the encoding apparatus may encode the image information including the prediction-related information, and the prediction-related information may include information indicating the specific threshold value. In this case, the specific threshold value may be derived based on the information indicating the specific threshold value. For example, the derived specific threshold value may be 4 or 8.
According to an embodiment, the encoding apparatus may compare the width and the height of the current chroma block with the threshold value. For example, the encoding apparatus may compare the width and the height of the current chroma block with the threshold value.
As an example, the encoding apparatus may compare the width of the current chroma block with the threshold value, and may compare the height of the current chroma block with the threshold value.
Alternatively, as an example, the encoding apparatus may compare the smaller value between the width and the height of the current chroma block with the threshold value, and may compare the height of the current chroma block with the threshold value.
The encoding apparatus may derive the top neighboring chroma samples of which the number is equal to the threshold value of the current chroma value, or the left neighboring chroma samples of which the number is equal to the threshold value, or the top neighboring chroma and left neighboring chroma samples of which the number is equal to the threshold value.
Further, the encoding apparatus may derive the downsampled neighboring luma samples of the current luma block.
Here, the neighboring luma samples may be corresponding samples having relevance to the top neighboring chroma samples and the left neighboring chroma samples. The downsampled neighboring luma samples may include the downsampled top neighboring luma samples of the current luma block corresponding to the top neighboring chroma samples and the downsampled left neighboring luma samples of the current luma block corresponding to the left neighboring chroma samples.
If the top neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled top neighboring luma samples of which the number is equal to the threshold value corresponding to the top neighboring chroma samples may be derived. Further, if the top neighboring chroma samples of which the number is equal to the value of the width are derived, the downsampled top neighboring luma samples of which the number is equal to the value of the width corresponding to the top neighboring chroma samples may be derived.
Further, if the left neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled left neighboring luma samples of which the number is equal to the threshold value corresponding to the left neighboring chroma samples may be derived. Further, if the left neighboring chroma samples, of which the number is equal to the value of the height, are derived, the downsampled left neighboring luma samples, of which the number is equal to the value of the height, corresponding to the left neighboring chroma samples may be derived.
If the top neighboring chroma samples and the left neighboring chroma samples, of which the number is equal to the threshold value are derived, the downsampled top neighboring luma samples and the left neighboring luma samples, of which the number is equal to the threshold value, corresponding to the top neighboring chroma samples and the left neighboring chroma samples may be derived.
Meanwhile, the samples which are not used to derive the downsampled neighboring luma samples among the neighboring luma samples of the current luma block may not be downsampled.
The encoding apparatus derives the CCLM parameters based on the threshold value, neighboring chroma samples including at least one of the top neighboring chroma samples and the left neighboring chroma samples, and the neighboring luma samples including at least one of the downsampled neighboring luma samples and the downsampled left neighboring luma samples (S3130).
The encoding apparatus may derive the CCLM parameters based on the threshold value, the top neighboring chroma samples, the left neighboring chroma samples, and the downsampled neighboring luma samples. For example, the CCLM parameters may be derived based Equation 3 as described above.
The encoding apparatus derives the prediction samples for the current chroma block based on the CCLM parameters and the downsampled luma samples (S3140).
The encoding apparatus may derive the prediction samples for the current chroma block based on the CCLM parameters and the downsampled luma samples. The encoding apparatus may generate the prediction samples for the current chroma block by applying the CCLM being derived from the CCLM parameters to the downsampled luma samples. That is, the encoding apparatus may generate the prediction samples for the current chroma block by performing the CCLM prediction based on the CCLM parameters. For example, the prediction samples may be derived based on Equation 1 as described above.
The encoding apparatus encodes image information including prediction-related information for the current chroma block (S3150). The encoding apparatus may encode the image information including the prediction-related information for the current chroma block, and perform signaling of the image information through the bitstream.
For example, the prediction-related information may include information indicating the threshold value. Alternatively, for example, the prediction-related information may include the information indicating the specific threshold value. Alternatively, for example, the prediction-related information may include the flag information indicating whether to derive the number of neighboring reference samples based on the threshold value. Alternatively, for example, the prediction-related information may include the information indicating the intra prediction mode for the current chroma block.
Meanwhile, although not illustrated, the encoding apparatus may derive the residual samples for the current chroma block based on the original samples and prediction samples for the current chroma block, generate information on the residual for the current chroma block based on the residual samples, and encode the information on the residual. The image information may include information on the residual. Further, the encoding apparatus may generate the reconstructed samples for the current chroma block based on the prediction samples and the residual samples for the current chroma block.
Meanwhile, the bitstream may be transmitted to the decoding apparatus through 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 following drawings have been prepared to explain specific examples of the present disclosure. Since names of specific devices described in the drawings and names of specific signal/message/field are exemplarily presented, the technical features of the present disclosure are not limited to the specific names used in the following drawings.
The decoding apparatus derives a cross-component linear model (CCLM) mode as an intra prediction mode for the current chroma block (S3300). The decoding apparatus may derive the intra prediction mode for the current chroma block. For example, the decoding apparatus may receive information on the intra prediction mode for the current chroma block through the bitstream, and may derive the CCLM mode as the intra prediction mode for the current chroma block based on the information on the intra prediction mode.
The decoding apparatus may derive downsampled luma samples based on the current luma block (S3310).
The decoding apparatus may derive a threshold value for the current chroma block (S3320).
The threshold value may be derived to derive the CCLM parameters for the current chroma block. For example, the threshold value may be represented as an upper limit of the number of neighboring samples, or the maximum number of neighboring samples. The derived threshold value may be 2. Further, the derived threshold value may be 4, 8, or 16.
If I the current chroma block is in the top and left based CCLM mode, that is, if the current chroma block is in the top left based CCLM mode, the CCLM parameters may be derived based on downsampled top left neighboring luma samples of which the number is equal to the threshold value and top left neighboring chroma samples. For example, if the current chroma block is in the top left based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on two downsampled left neighboring luma samples, two downsampled top neighboring luma samples, two left neighboring chroma samples, and two top neighboring chroma samples.
Alternatively, if the current chroma block is in the left based CCLM mode, the parameters may be derived based on the downsampled left neighboring luma samples and the left neighboring chroma samples, of which the number of equal to the threshold value. For example, if the current chroma block is in the left based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on four downsampled left neighboring luma samples and four left neighboring chroma samples.
Alternatively, if the current chroma block is in the top based CCLM mode, the parameters may be derived based on the downsampled top neighboring luma samples and the top neighboring chroma samples, of which the number is equal to the threshold value. For example, if the current chroma block is in the top based CCLM mode and the threshold value is 4, the CCLM parameters may be derived based on four downsampled top neighboring luma samples and four top neighboring chroma samples.
The threshold value described above may be derived as a predetermined value. That is, the threshold value may be derived as a promised value between the encoding apparatus and the decoding apparatus. In other words, the threshold value may be derived as the predetermined value for the current chroma block to which the CCLM mode is applied.
Alternatively, for example, the decoding apparatus may acquire image information including prediction-related information through the bitstream, and the prediction-related information may include information indicating the threshold value. In this case, the decoding apparatus may derive the threshold value based on the information indicating the threshold value. The information indicating the threshold value may be signaled in a unit of coding unit (CU), slice, PPS, or SPS.
Alternatively, for example, the decoding apparatus may acquire the image information including the prediction-related information through the bitstream, and the prediction-related information may include flag information indicating whether to derive the number of neighboring reference samples based on the threshold value. If the value of the flag information is 1, the flag information may indicate that the number of neighboring reference samples is derived based on the threshold value, whereas if the value of the flag information is 0, the flag information may indicate that the number of neighboring reference samples is not derived based on the threshold value. If the value of the flag information is 1, the prediction-related information may include the information indicating the threshold value. In this case, the decoding apparatus may derive the threshold value based on the information indicating the threshold value. The information indicating the flag information and/or the threshold value may be signaled in a unit of coding unit (CU), slice, PPS, or SPS.
Alternatively, for example, the threshold value may be derived based on the size of the current block. As an example, the threshold value may be derived based on whether a smaller value between a width and a height of the current block is larger than a specific threshold value. For example, if the smaller value between the width and the height of the current block is larger than the specific threshold value, the threshold value may be derived as 4, and if the smaller value between the width and the height of the current block is not larger than the specific threshold value, the threshold value may be derived as 2. The specific threshold value may be derived as a predetermined value. That is, the specific threshold value may be derived as a promised value between the encoding apparatus and the decoding apparatus. Alternatively, for example, the decoding apparatus may acquire the image information including the prediction-related information through the bitstream, and the prediction-related information may include information indicating the specific threshold value. In this case, the specific threshold value may be derived based on the information indicating the specific threshold value. For example, the derived specific threshold value may be 4 or 8.
The decoding apparatus may compare the width and the height of the current chroma block with the threshold value. For example, the decoding apparatus may compare the width and the height of the current chroma block with the threshold value.
As an example, the decoding apparatus may compare the width of the current chroma block with the threshold value, and may compare the height of the current chroma block with the threshold value.
Alternatively, as an example, the decoding apparatus may compare the smaller value between the width and the height of the current chroma block with the threshold value, and may compare the height of the current chroma block with the threshold value.
The decoding apparatus may derive the top neighboring chroma samples of which the number is equal to the threshold value of the current chroma value, or the left neighboring chroma samples of which the number is equal to the threshold value, or the top neighboring chroma and left neighboring chroma samples of which the number is equal to the threshold value.
Further, the decoding apparatus may derive the downsampled neighboring luma samples of the current luma block.
Here, the neighboring luma samples may be corresponding samples having relevance to the top neighboring chroma samples and the left neighboring chroma samples. The downsampled neighboring luma samples may include the downsampled top neighboring luma samples of the current luma block corresponding to the top neighboring chroma samples and the downsampled left neighboring luma samples of the current luma block corresponding to the left neighboring chroma samples.
If the top neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled top neighboring luma samples of which the number is equal to the threshold value corresponding to the top neighboring chroma samples may be derived. Further, if the top neighboring chroma samples of which the number is equal to the value of the width are derived, the downsampled top neighboring luma samples of which the number is equal to the value of the width corresponding to the top neighboring chroma samples may be derived.
Further, if the left neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled left neighboring luma samples of which the number is equal to the threshold value corresponding to the left neighboring chroma samples may be derived. Further, if the left neighboring chroma samples, of which the number is equal to the value of the height, are derived, the downsampled left neighboring luma samples, of which the number is equal to the value of the height, corresponding to the left neighboring chroma samples may be derived.
If the top neighboring chroma samples and the left neighboring chroma samples, of which the number is equal to the threshold value, are derived, the downsampled top neighboring luma samples and the left neighboring luma samples, of which the number is equal to the threshold value, corresponding to the top neighboring chroma samples and the left neighboring chroma samples may be derived.
Alternatively, for example, if the width and the height are equal to or larger than the threshold value, the decoding apparatus may derive the top neighboring chroma samples of which the number is equal to the threshold value of the current chroma block and the left neighboring chroma samples of which the number is equal to the threshold value.
Alternatively, for example, if the width and the height are smaller than the threshold value, the decoding apparatus may derive the top neighboring chroma samples of which the number is equal to the value of the width of the current chroma block and the left neighboring chroma samples of which the number is equal to the value of the height of the current chroma block.
Alternatively, for example, if the width is equal to or larger than the threshold value and the height is smaller than the threshold value, the decoding apparatus may derive the top neighboring chroma samples of which the number is equal to the threshold value of the current chroma block and the left neighboring chroma samples of which the number is equal to the value of the height.
Alternatively, for example, if the width is smaller than the threshold value and the height is equal to or larger than the threshold value, the decoding apparatus may derive the top neighboring chroma samples of which the number is equal to the value of the width of the current chroma block and the left neighboring chroma samples of which the number is equal to the threshold value.
Meanwhile, the top neighboring chroma samples may be neighboring chroma samples adjacent to a top boundary of the current chroma block, and the left neighboring chroma samples may be neighboring chroma samples adjacent to a left boundary of the current chroma block.
Further, in the case that the top neighboring chroma samples of which the number is equal to the threshold value are derived, the top neighboring chroma samples at positions derived based on Equation 6 above among the top neighboring chroma samples adjacent to the top boundary of the current chroma block may be derived as the top neighboring chroma samples of which the number is equal to the threshold value. Further, in the case that the left neighboring chroma samples of which the number is equal to the threshold value are derived, the top neighboring chroma samples at positions derived based on Equation 6 above among the left neighboring chroma samples adjacent to the left boundary of the current chroma block may be derived as the left neighboring chroma samples of which the number is equal to the threshold value.
Alternatively, in the case that the top neighboring chroma samples of which the number is equal to the threshold value are derived, the top neighboring chroma samples at positions derived based on Equation 6 above among the top neighboring chroma samples adjacent to the top boundary of the current chroma block may be derived as the top neighboring chroma samples of which the number is equal to the threshold value. Further, in the case that the left neighboring chroma samples of which the number is equal to the threshold value are derived, the top neighboring chroma samples at positions derived based on Equation 6 above among the left neighboring chroma samples adjacent to the left boundary of the current chroma block may be derived as the left neighboring chroma samples of which the number is equal to the threshold value.
Here, the neighboring luma samples may correspond to the top neighboring chroma samples and the left neighboring chroma samples. The downsampled neighboring luma samples may include the downsampled top neighboring luma samples of the current luma block corresponding to the top neighboring chroma samples and the downsampled left neighboring luma samples of the current luma block corresponding to the left neighboring chroma samples.
If the top neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled top neighboring luma samples, of which the number is equal to the threshold value, corresponding to the top neighboring chroma samples may be derived. Further, if the top neighboring chroma samples of which the number is equal to the value of the width are derived, the downsampled top neighboring luma samples, of which the number is equal to the value of the width, corresponding to the top neighboring chroma samples may be derived.
Further, if the left neighboring chroma samples of which the number is equal to the threshold value are derived, the downsampled left neighboring luma samples, of which the number is equal to the threshold value, corresponding to the left neighboring chroma samples may be derived. Further, if the left neighboring chroma samples of which the number is equal to the value of the height are derived, the downsampled left neighboring luma samples, of which the number is equal to the value of the height, corresponding to the left neighboring chroma samples may be derived.
Meanwhile, the samples which are not used to derive the downsampled neighboring luma samples among the neighboring luma samples of the current luma block may not be downsampled.
The decoding apparatus may derive the CCLM parameters based on the threshold value, the top neighboring chroma samples, the left neighboring chroma samples, and the downsampled neighboring luma samples (S3330). For example, the CCLM parameters may be derived based on Equation 3 above.
The decoding apparatus derives prediction samples for the current chroma block based on the CCLM parameters and the down-sampled luma samples (step, S3340). The decoding apparatus may derive the prediction samples for the current chroma block based on the CCLM parameters and the down-sampled luma samples. The decoding apparatus may apply the CCLM derived by the CCLM parameters to the own-sampled luma samples and generate prediction samples for the current chroma block. That is, the decoding apparatus may perform a CCLM prediction based on the CCLM parameters and generate prediction samples for the current chroma block. For example, the prediction samples may be derived based on Equation 1 described above.
The decoding apparatus generates reconstructed samples for the current chroma block based on the prediction samples (step, S3350). The decoding apparatus may generate the reconstructed samples based on the prediction samples. For example, the decoding apparatus may receive information for a residual for the current chroma block from the bitstream. The information for the residual may include a transform coefficient for the (chroma) residual sample. The decoding apparatus may derive the residual sample (or residual sample array) for the current chroma block based on the residual information. In this case, the decoding apparatus may generate the reconstructed samples based on the prediction samples and the residual samples. The decoding apparatus may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Later, the decoding apparatus may apply the in-loop filtering procedure such as deblocking filtering and/or SAO process to the reconstructed picture to improve subjective/objective image quality, as described above.
According to the present document as described above, the image coding efficiency can be enhanced through performing of the intra prediction based on the CCLM.
Further, according to the present document, the CCLM-based intra prediction efficiency can be enhanced.
Further, according to the present document, the intra prediction complexity can be reduced by limiting the number of neighboring samples being selected to derive the linear model parameter for the CCLM to the specific number.
In the above-described embodiment, the methods are described based on the flowchart having a series of steps or blocks. The present disclosure is not limited to the order of the above steps or blocks. Some steps or blocks may occur simultaneously or in a different order from other steps or blocks as described above. Further, those skilled in the art will understand that the steps shown in the above flowchart are not exclusive, that further steps may be included, or that one or more steps in the flowchart may be deleted without affecting the scope of the present disclosure.
The embodiments described in this specification may be performed by being implemented on a processor, a microprocessor, a controller or a chip. For example, the functional units shown in each drawing may be performed by being implemented on a computer, a processor, a microprocessor, a controller or a chip. In this case, information for implementation (e.g., information on instructions) or algorithm may be stored in a digital storage medium.
In addition, the decoding device and the encoding device to which the present disclosure is applied may be included in a multimedia broadcasting transmission/reception apparatus, a mobile communication terminal, a home cinema video apparatus, a digital cinema video apparatus, a surveillance camera, a video chatting apparatus, a real-time communication apparatus such as video communication, a mobile streaming apparatus, a storage medium, a camcorder, a VoD service providing apparatus, an Over the top (OTT) video apparatus, an Internet streaming service providing apparatus, a three-dimensional (3D) video apparatus, a teleconference video apparatus, a transportation user equipment (e.g., vehicle user equipment, an airplane user equipment, a ship user equipment, etc.) and a medical video apparatus and may be used to process video signals and data signals. For example, the Over the top (OTT) video apparatus may include a game console, a blue-ray player, an internet access TV, a home theater system, a smart phone, a tablet PC, a Digital Video Recorder (DVR), and the like.
Furthermore, the processing method to which the present disclosure is applied may be produced in the form of a program that is to be executed by a computer and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present disclosure may also be stored in computer-readable recording media. The computer-readable recording media include all types of storage devices in which data readable by a computer system is stored. The computer-readable recording media may include a BD, a Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, for example. Furthermore, the computer-readable recording media includes media implemented in the form of carrier waves (e.g., transmission through the Internet). In addition, a bit stream generated by the encoding method may be stored in a computer-readable recording medium or may be transmitted over wired/wireless communication networks.
In addition, the embodiments of the present disclosure may be implemented with a computer program product according to program codes, and the program codes may be performed in a computer by the embodiments of the present disclosure. The program codes may be stored on a carrier which is readable by a computer.
The content streaming system to which the embodiment(s) of the present document is applied may largely include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
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.
Claims described in the present disclosure may be combined in various ways. For example, the technical features of the method claims of the present disclosure may be combined to be implemented as the apparatus, and the technical features of the apparatus claims of the present disclosure may be combined to be implemented as the method. Further, the technical features of the method claims and the technical features of the apparatus claims of the present disclosure may be combined to be implemented as the apparatus, and the technical features of the method claims and the technical features of the apparatus claims of the present disclosure may be combined to be implemented as the method.
This application is a continuation of U.S. patent Ser. No. 17/432,372, filed Aug. 19, 2021, which is a National Stage Entry of PCT/KR2020/002532, filed Feb. 21, 2020, which claims the benefit of U.S. Provisional Application No. 62/817,570, Filed Mar. 13, 2019, which claims the benefit of U.S. Provisional Application No. 62/808,844, filed Feb. 22, 2019.
Number | Date | Country | |
---|---|---|---|
62817570 | Mar 2019 | US | |
62808844 | Feb 2019 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 17432372 | Aug 2021 | US |
Child | 18595710 | US |