Palette-mode based image or video coding

By deriving quantization parameters and limiting escape value ranges in palette mode coding, the method enhances video/image coding efficiency for high-resolution and immersive media, addressing data volume challenges and improving transmission/storage costs.

JP7566116B2Active Publication Date: 2024-10-11LG ELECTRONICS INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2023206077
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-08-26
Filing Date
2023-12-06
Publication Date
2024-10-11
Estimated Expiration
2040-08-26

AI Technical Summary

Technical Problem

Existing video/image coding technologies face challenges in efficiently compressing and transmitting high-resolution, high-quality images and videos, particularly for immersive media like VR and AR, and screen content with significant text and graphics, due to increased data volume and transmission/storage costs.

Method used

The method involves deriving the quantization parameter for palette mode based on the minimum quantization parameter for transform skip mode, limiting the range of quantized escape values, and signaling palette size information through a sequence parameter set to enhance coding efficiency.

Benefits of technology

This approach increases overall image/video compression efficiency, improves palette mode coding efficiency, and allows for accurate configuration and signaling of escape coding, leading to more efficient data transmission and storage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007566116000026
    Figure 0007566116000026
  • Figure 0007566116000027
    Figure 0007566116000027
  • Figure 0007566116000028
    Figure 0007566116000028
Patent Text Reader

Abstract

To provide video or image coding and, for example, a coding technique based on a palette mode.SOLUTION: According to the disclosure of the present documents, a quantization parameter used in a scaling process of a quantized escape value in a palette mode may be derived based on minimum quantization parameter information relating to a transform skip mode. Accordingly, the amount of data required to be signaled for video / image coding can be reduced and escape coding in a palette mode can be effectively performed.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to video or image coding, for example palette mode based coding techniques. [Background technology]

[0002] In recent years, the demand for high-resolution, high-quality images / videos such as 4K or 8K or higher UHD (Ultra High Definition) images / videos is increasing in various fields. As the image / video data has higher resolution and quality, the amount of information or bits to be transmitted increases relatively compared to existing image / video data, so that when image data is transmitted using a medium such as an existing wired or wireless broadband line or image / video data is stored using an existing storage medium, the transmission cost and storage cost increase.

[0003] In addition, in recent years, interest in and demand for immersive media such as virtual reality (VR), artificial reality (AR) content, and holograms has been increasing, and the broadcast of images / videos having different image characteristics from real images, such as game images, has been increasing.

[0004] Therefore, there is a demand for highly efficient image / video compression technology to effectively compress and transmit, store, and play back high-resolution, high-quality image / video information having the various characteristics described above.

[0005] In addition, there is a discussion of palette mode coding techniques to improve coding efficiency for screen content such as computer generated video that contains a significant amount of text and graphics. In order to efficiently apply such techniques, a method for coding and signaling related information is required. Summary of the Invention [Problem to be solved by the invention]

[0006] The technical problem of this document is to provide a method and apparatus for improving video / image coding efficiency.

[0007] Another technical problem of this document is to provide a method and apparatus for improving efficiency in palette mode coding.

[0008] Another technical object of the present invention is to provide a method and apparatus for efficiently configuring and signaling various information used in palette mode coding.

[0009] Yet another technical problem of this document is to provide a method and apparatus for efficiently applying escape coding in palette mode. [Means for solving the problem]

[0010] According to an embodiment of the present document, a quantization parameter used in a scaling process for a quantized escape value in palette mode may be derived based on minimum quantization parameter information for transform skip mode, and the quantization parameter may have a value greater than or equal to the minimum quantization parameter value for transform skip mode.

[0011] According to one embodiment of this document, the range of quantized escape values ​​in palette mode can be limited based on bit depth. For example, the range of quantized escape value information for the luma component is from 0 to (1< <BitDepth Y )-1, and the quantized escape value information for the chroma components ranges from 0 to (1< <BitDepth C )-1.

[0012] According to one embodiment of this document, palette size information regarding the maximum index of a palette table can be defined, and the palette size information can be signaled through a sequence parameter set (SPS).

[0013] According to an embodiment of the present document, there is provided a video / image decoding method performed by a decoding device, the video / image decoding method may include the methods disclosed in the embodiments of the present document.

[0014] According to an embodiment of the present document, a decoding device for performing video / image decoding is provided, the decoding device being capable of performing the method disclosed in the embodiment of the present document.

[0015] According to an embodiment of the present document, there is provided a video / image encoding method performed by an encoding device, which may include the methods disclosed in the embodiments of the present document.

[0016] According to an embodiment of the present document, an encoding device for performing video / image encoding is provided, which is capable of performing the method disclosed in the embodiment of the present document.

[0017] According to one embodiment of the present document, there is provided a computer-readable digital recording medium having encoded video / image information generated by the video / image encoding method disclosed in at least one of the embodiments of the present document stored thereon.

[0018] According to one embodiment of the present document, there is provided a computer-readable digital recording medium storing encoded information or encoded video / image information that causes a decoding device to perform the video / image decoding method disclosed in at least one of the embodiments of the present document. Effect of the Invention

[0019] The present document may provide various advantages. For example, according to an embodiment of the present document, overall image / video compression efficiency may be improved. According to an embodiment of the present document, efficiency may be improved in palette mode coding. According to an embodiment of the present document, various information used in palette mode coding may be efficiently configured and signaled. According to an embodiment of the present document, accuracy and coding efficiency for escape samples may be improved by efficiently applying escape coding in palette mode.

[0020] The effects that can be obtained through the specific embodiments of this document are not limited to the effects listed above. For example, there may be various technical effects that a person having ordinary skill in the related art can understand or derive from this document. Therefore, the specific effects of this document are not limited to those explicitly described in this document, but may include various effects that can be understood or derive from the technical features of this document. [Brief description of the drawings]

[0021] [Figure 1] 1 illustrates a schematic diagram of an example video / image coding system to which embodiments of the present document may be applied; [Diagram 2] 1 is a diagram for explaining the configuration of a video / image encoding device to which an embodiment of the present document can be applied. [Diagram 3] 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of the present document can be applied. [Figure 4] 1 shows an example of a general video / image encoding procedure to which the embodiments of this document can be applied. [Diagram 5] 1 shows an example of a general video / image decoding procedure to which the embodiments of this document can be applied. [Figure 6] An example will be given to explain the basic structure of palette coding. [Figure 7] An example is given to illustrate the horizontal and vertical traverse scan method used to code the palette index map. [Figure 8] 1 is a diagram illustrating an example of a coding method based on a palette mode. [Figure 9] 1 illustrates a schematic diagram of an example video / image encoding method according to an embodiment of the present document; [Figure 10] 1 illustrates a schematic diagram of an example of a video / image decoding method according to an embodiment of the present document; [Figure 11] 1 illustrates an example of a content streaming system to which the embodiments disclosed herein may be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0022] This document may have various modifications and may have various embodiments, and a specific embodiment will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to a specific embodiment. Terms commonly used in this specification are used merely to describe a specific embodiment, and are not intended to limit the technical ideas of this document. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, the terms "include" or "have" are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0023] Meanwhile, each component in the drawings described in this document is illustrated independently for the convenience of explaining the different characteristic functions, and does not mean that each component is realized by separate hardware or software. For example, two or more components among the components may be combined to form one component, or one component may be divided into multiple components. An embodiment in which each component is integrated and / or separated is also included in the scope of the rights of this document as long as it does not deviate from the essence of this document.

[0024] In this document, "A or B" can mean "only A," "only B," or "both A and B." Alternatively, in this document, "A or B" can be interpreted as "A and / or B." For example, in this document, "A, B or C" can mean "only A," "only B," "only C," or "any combination of A, B and C."

[0025] As used in this document, a slash ( / ) or a comma can mean "and / or." For example, "A / B" can mean "A and / or B." Therefore, "A / B" can mean "only A," "only B," or "both A and B." For example, "A, B, C" can mean "A, B, or C."

[0026] In this document, "at least one of A and B" can mean "only A", "only B", or "both A and B". Also, in this document, the expressions "at least one of A or B" and "at least one of A and / or B" can be interpreted as "at least one of A and B".

[0027] Also, in this document, "at least one of A, B and C" can mean "only A," "only B," "only C," or "any combination of A, B and C." Also, "at least one of A, B or C" and "at least one of A, B and / or C" can mean "at least one of A, B and C."

[0028] Furthermore, parentheses used in this document may mean "for example." Specifically, when "prediction (intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction." In other words, "prediction" in this document is not limited to "intra prediction," and "intra prediction" may be proposed as an example of "prediction." Additionally, when "prediction (i.e., intra prediction)" is displayed, "intra prediction" is proposed as an example of "prediction."

[0029] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be applied to methods disclosed in the Versatile Video Coding (VVC) standard. Also, the methods / embodiments disclosed in this document may be applied to methods disclosed in the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2) or next generation video / image coding standards (e.g., H.267 or H.267, etc.).

[0030] In this document, various embodiments for video / image coding are presented, and unless otherwise stated, the embodiments may also be implemented in combination with each other.

[0031] In this document, a video may mean a collection of a series of images over time. A picture generally means a unit showing one image at a particular time, and a slice / tile is a unit constituting a part of a picture in coding. A slice / tile may include one or more coding tree units (CTUs). One picture may be composed of one or more slices / tiles. A tile is a rectangular region of CTUs within a particular tile column and 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 may indicate a specific sequential ordering of CTUs partitioning a picture in which the CTUs are ordered consecutively in CTU raster scan in a tile whereas tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of complete tiles or an integer number of consecutive complete CTU rows within a tile of a picture that may be exclusively contained in a single NAL unit.

[0032] On the other hand, a picture can be partitioned into two or more sub-pictures, where a sub-picture is a rectangular region of one or more slices within a picture.

[0033] A pixel or a pel may refer to the smallest unit constituting one picture (or image). A term corresponding to a pixel may also be used as a "sample." A sample may generally refer to a pixel or a pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. Alternatively, a sample may refer to a pixel value in the spatial domain, or may refer to a transform coefficient in the frequency domain when such a pixel value is transformed into the frequency domain.

[0034] A unit may indicate a basic unit of image processing. A unit may include at least one of a specific region of a picture and information related to the region. A unit may include one luma block and two chroma (e.g., cb, cr) blocks. A unit may be used interchangeably with terms such as block or area, depending on the case. In a general case, an M×N block may include a sample (or sample array) consisting of M columns and N rows, or a set (or array) of transform coefficients.

[0035] Also, in this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. If quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. If transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or may still be referred to as transform coefficients for uniformity of expression.

[0036] In this document, the quantized transform coefficients and the transform coefficients may be referred to as transform coefficients and scaled transform coefficients, respectively. In this case, the residual information may include information about the transform coefficients, and the information about the transform coefficients may be signaled via a residual coding syntax. Based on the residual information (or information about the transform coefficients), the transform coefficients may be derived, and the scaled transform coefficients may be derived via an inverse transform (scaling) on ​​the transform coefficients. Based on the inverse transform (transform) on the scaled transform coefficients, the residual samples may be derived. This may be similarly applied / expressed in other parts of this document.

[0037] In this document, technical features described individually in one drawing may be embodied individually or simultaneously.

[0038] Hereinafter, preferred embodiments of the present invention will be described in more detail with reference to the accompanying drawings. In the following, the same reference numerals are used for the same components in the drawings, and duplicated descriptions of the same components may be omitted.

[0039] FIG. 1 illustrates a schematic diagram of an example of a video / image coding system that can be applied to embodiments of this document.

[0040] Referring to Figure 1, the video / image coding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image information or data to the receiving device in a file or streaming form via a digital storage medium or a network.

[0041] The source device may include a video source, an encoding device, and a sending unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may also include a display unit, which may be a separate device or an external component.

[0042] A video source may acquire video / images through a video / image capture, synthesis, or generation process, etc. A video source may include a video / image capture device and / or a video / image generation device. A video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / images. For example, a virtual video / image may be generated via a computer, etc., in which case the video / image capture process may be replaced by a process in which related data is generated.

[0043] An encoding device may encode an input video / image. The encoding device may perform a series of steps such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) may be output in the form of a bitstream.

[0044] The transmitting unit can transmit the encoded video / image information or data output in the form of a bitstream to a receiving unit of a receiving device via a digital storage medium or a network in the form of a file or streaming. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit can include elements for generating a media file through a predetermined file format and can include elements for transmission via a broadcasting / communication network. The receiving unit can receive / extract the bitstream and transmit it to a decoding device.

[0045] The decoding device can decode the video / image by performing a series of steps such as inverse quantization, inverse transformation, and prediction, which correspond to the operations of the encoding device.

[0046] The renderer can render the decoded video / images, and the rendered video / images can be displayed via a display unit.

[0047] 2 is a diagram illustrating a schematic configuration of a video / image encoding device to which an embodiment of the present document can be applied. Hereinafter, the encoding device may include an image encoding device and / or a video encoding device.

[0048] As shown in FIG. 2, the encoding apparatus 200 may be configured to include an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter predictor 221 and an intra predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may further include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. The image division unit 210, the prediction unit 220, the residual processing unit 230, the entropy encoding unit 240, the addition unit 250, and the filtering unit 260 may be configured by one or more hardware components (e.g., an encoder chip set or a processor) according to an embodiment. In addition, the memory 270 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware components may further include the memory 270 as an internal / external component.

[0049] The image division unit 210 may divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing units may be called coding units (CUs). In this case, the coding units may be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) according to a quad-tree binary-tree ternary-tree (QTBTTT) structure. For example, one coding unit may be divided 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 then the binary tree structure and / or the ternary structure may be applied. Alternatively, the binary tree structure may be applied first. The coding procedure according to the present disclosure may be performed based on a final coding unit that is not further divided. In this case, the maximum coding unit may be used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units of lower depths as necessary, and a coding unit of an optimal size may be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and restoration, which will be described later. As another example, the processing unit may further include a prediction unit (PU: Prediction Unit) or a transform unit (TU: Transform Unit). In this case, the prediction unit and the transform unit may each be divided or partitioned from the final coding unit described above.The prediction unit may be a unit of sample prediction, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving a residual signal from the transform coefficients.

[0050] The unit may be used interchangeably with terms such as block or area. In general, an M×N block may refer to a collection of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or pixel value, may refer to only a pixel / pixel value of a luma component, or may refer to only a pixel / pixel value of a chroma component. A sample may be used as a term that corresponds to a pixel or pel of one picture (or image).

[0051] The encoding apparatus 200 may generate a residual signal (residual block, residual sample array) by subtracting a prediction signal (predicted block, prediction sample array) output from the inter prediction unit 221 or the intra prediction unit 222 from an input image signal (original block, original sample array), and the generated residual signal is transmitted to the conversion unit 232. In this case, as illustrated, a unit in the encoder 200 that subtracts a prediction signal (predicted block, prediction sample array) from an input image signal (original block, original sample array) may be called a subtraction unit 231. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including a prediction sample for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of a current block or a CU. The prediction unit may generate various information related to prediction, such as prediction mode information, and transmit the information to the entropy encoding unit 240, as will be described later in the description of each prediction mode. The prediction-related information can be encoded by the entropy encoding unit 240 and output in the form of a bitstream.

[0052] The intra prediction unit 222 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located away from the current block depending on the prediction mode. In the intra prediction, the prediction mode may include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes may include, for example, a DC mode and a planar mode. The directional modes may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the fineness of the prediction direction. However, this is merely an example, and more or less directional prediction modes may be used depending on the settings. The intra prediction unit 222 may also determine the prediction mode to be applied to the current block using the prediction modes applied to the neighboring blocks.

[0053] The inter prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) identified 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, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a 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 collocated CU (col CU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the inter prediction unit 221 may use motion information of a neighboring block as motion information of the current block. In the case of the skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.

[0054] The prediction unit 220 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, or may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit 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 such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in deriving a reference block within the current picture. That is, IBC may utilize 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 regarding a palette table and a palette index.

[0055] The prediction signal generated through the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) may be used to generate a restored signal or may be used to generate a residual signal. The transform unit 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is to be expressed as a graph. The CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, and may also be applied to non-square variable-size blocks.

[0056] The quantization unit 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 240, which may encode the quantized signal (information on the quantized transform coefficients) and output the quantized signal to a bitstream. The information on the quantized transform coefficients may be referred to as residual information. The quantization unit 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and may generate information on the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoding unit 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), etc. The entropy encoding unit 240 may encode information required for video / image restoration (e.g., values ​​of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in a network abstraction layer (NAL) unit unit 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). The video / image information may further include general constraint information. In this document, information and / or syntax elements transmitted / signaled from an encoding device to a decoding device may be included in the video / image information.The video / image information may be encoded through the above-mentioned encoding procedure and included in the bitstream. The bitstream may be transmitted via a network or stored in a 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, SSD, etc. A transmitter (not shown) for transmitting the signal output from the entropy encoding unit 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding apparatus 200, or the transmitter may be included in the entropy encoding unit 240.

[0057] The quantized transform coefficients output from the quantizer 233 may be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) may be restored by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantizer 234 and the inverse transformer 235. The adder 155 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the inter prediction unit 221 or the intra prediction unit 222. When there is no residual for the current block, such as when a skip mode is applied, a predicted block may be used as a reconstructed block. The adder 250 may be referred to as a reconstruction unit or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next current block in the current picture, and may also be used for inter prediction of the next picture after filtering, as described below.

[0058] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or restoration.

[0059] The filtering unit 260 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 260 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may store the modified reconstructed picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc. The filtering unit 260 may generate various information related to filtering and transmit it to the entropy encoding unit 240, as will be described later in the description of each filtering method. The information related to filtering may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.

[0060] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 221. When inter prediction is applied through this, the encoding apparatus may avoid prediction mismatch between the encoding apparatus 100 and the decoding apparatus, and may also improve encoding efficiency.

[0061] The DPB of the memory 270 may store the modified reconstructed picture to be used as a reference picture in the inter prediction unit 221. The memory 270 may store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 221 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 270 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 222.

[0062] 3 is a diagram illustrating a schematic configuration of a video / image decoding device to which an embodiment of the present document can be applied. Hereinafter, a decoding device may include an image decoding device and / or a video decoding device.

[0063] As shown in FIG. 3, the decoding device 300 may be configured to include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter predictor 331 and an intra predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321. The entropy decoding unit 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured as one hardware component (e.g., a decoder chipset or processor) according to an embodiment. Also, the memory 360 may include a decoded picture buffer (DPB) and may be configured as a digital storage medium. The hardware components may further include a memory 360 as an internal / external component.

[0064] If a bitstream including video / image information is input, the decoding apparatus 300 can restore an image corresponding to a process in which the video / image information is processed by the encoding apparatus of FIG. 3. For example, the decoding apparatus 300 can derive a unit / block based on block division related information obtained from the bitstream. The decoding apparatus 300 can perform decoding using a processing unit applied in the encoding apparatus. Thus, the processing unit for decoding can be, for example, a coding unit, and the coding unit can be divided from a coding tree unit or a maximal coding unit according to a quad tree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units can be derived from the coding unit. Then, the restored image signal decoded and output by the decoding apparatus 300 can be reproduced by a reproduction device.

[0065] The decoding apparatus 300 may receive a signal output from the encoding apparatus of FIG. 3 in the form of a bitstream, and the received signal may be decoded via the entropy decoding unit 310. For example, the entropy decoding unit 310 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the 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. The decoding apparatus may further decode pictures based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be decoded via the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 310 may decode information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output values ​​of syntax elements required for image restoration and quantized values ​​of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method may receive bins corresponding to each syntax element in a bitstream, determine a context model using syntax element information to be decoded and decoding information of adjacent and to-be-decoded blocks or symbol / bin information decoded in a previous step, predict the occurrence probability of bins according to the determined context model, and perform arithmetic decoding of the bins to generate symbols corresponding to the values ​​of each syntax element.In this case, the CABAC entropy decoding method may update the context model using information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Prediction information from the information decoded by the entropy decoding unit 310 is provided to a prediction unit (inter prediction unit 332 and intra prediction unit 331), and residual values ​​entropy decoded by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the residual processing unit 320. The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). In addition, filtering information from the information decoded by the entropy decoding unit 310 may be provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) that receives a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, or the receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to this document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the entropy decoding unit 310, and the sample decoder may include at least one of the inverse quantization unit 321, the inverse transform unit 322, the addition unit 340, the filtering unit 350, the memory 360, the inter prediction unit 332, and the intra prediction unit 331.

[0066] The inverse quantization unit 321 may inverse quantize the quantized transform coefficients and output the transform coefficients. The inverse quantization unit 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on a coefficient scan order performed in the encoding device. The inverse quantization unit 321 may perform inverse quantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) to obtain transform coefficients.

[0067] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).

[0068] The prediction unit may perform prediction on a current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information on the prediction output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.

[0069] The prediction unit 320 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit 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 such as games, for example, screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in deriving a reference block within the current picture. That is, 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, information regarding a palette table and a palette index may be included in the video / image information and signaled.

[0070] The intra prediction unit 331 may predict a current block by referring to samples in a current picture. The referenced samples may be located in the neighborhood of the current block or may be located far away depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 331 may also determine a prediction mode to be applied to the current block using a prediction mode applied to a neighboring block.

[0071] The inter prediction unit 332 may derive a predicted block for the current block based on a reference block (reference sample array) identified 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, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlation of motion information between neighboring blocks 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 blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 332 may configure a motion information candidate list based on the neighboring blocks and derive a motion vector and / or a reference picture index for the current block based on 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.

[0072] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to a prediction signal (predicted block, predicted sample array) output from a prediction unit (including an inter prediction unit 332 and / or an intra prediction unit 331). When there is no residual for a current block, such as when a skip mode is applied, the predicted block may be used as a reconstructed block.

[0073] The adder 340 may be referred to as a reconstruction unit or a reconstruction block generator. The generated reconstruction signal may be used for intra prediction of a next block to be processed in a current picture, and may be output after filtering as described below, or may be used for inter prediction of a next picture.

[0074] Meanwhile, luma mapping with chroma scaling (LMCS) can be applied during the picture decoding process.

[0075] The filtering unit 350 may apply filtering to the reconstructed signal to improve subjective / objective image quality. For example, the filtering unit 350 may apply various filtering methods to the reconstructed picture to generate a modified reconstructed picture, and may transmit the modified reconstructed picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, an adaptive loop filter, a bilateral filter, etc.

[0076] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 332. The memory 360 may store motion information of a block from which motion information in the current picture is derived (or decoded) and / or motion information of a block in an already reconstructed picture. The stored motion information may be transmitted to the inter prediction unit 260 to be used as motion information of a spatial neighboring block or motion information of a temporal neighboring block. The memory 360 may store reconstructed samples of reconstructed blocks in the current picture and transmit them to the intra prediction unit 331.

[0077] In this specification, the embodiments described for the filtering unit 260, inter prediction unit 221, and intra prediction unit 222 of the encoding apparatus 100 may also be applied identically or correspondingly to the filtering unit 350, inter prediction unit 332, and intra prediction unit 331 of the decoding apparatus 300, respectively.

[0078] Meanwhile, as described above, prediction is performed to improve compression efficiency when performing video coding. As a result, a predicted block including predicted samples for a current block, which is a block to be coded, can be generated. Here, the predicted block includes predicted samples in a spatial domain (or a pixel domain). The predicted block is derived in the same way by an encoding device and a decoding device, and the encoding device can improve image coding efficiency by signaling information (residual information) about the residual between the original block and the predicted block, which is not an original sample value of the original block, to a decoding device. The decoding device can derive a residual block including residual samples based on the residual information, and generate a reconstructed block including reconstructed samples by adding the residual block and the predicted block, and generate a reconstructed picture including the reconstructed block.

[0079] The residual information may be generated through a transform and quantization procedure. For example, the encoding apparatus may derive a residual block between the original block and the predicted block, perform a transform procedure on the residual samples (residual sample array) included in the residual block to derive transform coefficients, and perform a quantization procedure on the transform coefficients to derive quantized transform coefficients, and then signal the related residual information (through a bitstream) to the decoding apparatus. Here, the residual information may include information such as value information, position information, transform technique, transform kernel, and quantization parameter of the quantized transform coefficients. The decoding apparatus may derive a residual sample (or a residual block) by performing an inverse quantization / inverse transform procedure based on the residual information. The decoding apparatus may generate a reconstructed picture based on the predicted block and the residual block. In addition, the encoding apparatus may derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficients for reference for inter-prediction of a future picture, and generate a reconstructed picture based on the residual block.

[0080] 4 shows an example of a schematic video / image encoding procedure to which the embodiments of this document can be applied. In FIG. 4, S400 may be performed in the prediction unit 220, S410 may be performed in the residual processing unit 230, and S420 may be performed in the entropy encoding unit 240 of the encoding device described above in FIG. 2. S400 may include an inter / intra prediction procedure described herein, S410 may include a residual processing procedure described herein, and S420 may include an information encoding procedure described herein.

[0081] Referring to FIG. 4, the video / image encoding procedure may include not only a procedure of encoding information for picture reconstruction (e.g., prediction information, residual information, partitioning information, etc.) and outputting it in the form of a bitstream, but also a procedure of generating a reconstructed picture for a current picture and a procedure of applying in-loop filtering to the reconstructed picture (optional). The encoding apparatus may derive a (modified) residual sample from the transform coefficients quantized through the inverse quantization unit 234 and the inverse transform unit 235, and may generate a reconstructed picture based on the prediction sample and the (modified) residual sample, which are the output of S400. The reconstructed picture generated in this manner may be the same as the reconstructed picture generated in the above-mentioned decoding apparatus. A modified reconstructed picture may be generated through an in-loop filtering procedure for the reconstructed picture, which may be stored in the decoded picture buffer or memory 270, and may be used as a reference picture in an inter prediction procedure when encoding a picture, as in the case of the decoding apparatus. As described above, in some cases, some or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, (in-loop) filtering related information (parameters) can be encoded in the entropy encoding unit 240 and output in the form of a bitstream, and the decoding device can perform the in-loop filtering procedure in the same manner as the encoding device based on the filtering related information.

[0082] Through such an in-loop filtering procedure, noises generated during image / video coding, such as blocking artifacts and ringing artifacts, can be reduced, and subjective / objective visual quality can be improved. In addition, by performing the in-loop filtering procedure in both the encoding device and the decoding device, the encoding device and the decoding device can derive the same prediction result, thereby improving the reliability of picture coding and reducing the amount of data to be transmitted for picture coding.

[0083] As described above, the picture reconstruction procedure may be performed not only in the decoding apparatus but also in the encoding apparatus. A reconstruction block may be generated based on intra prediction / inter prediction for each block, and a reconstruction picture including the reconstruction block may be generated. When the current picture / slice / tile group is an I picture / slice / tile group, the blocks included in the current picture / slice / tile group may be reconstructed based only on intra prediction. Meanwhile, when the current picture / slice / tile group is a P or B picture / slice / tile group, the blocks included in the current picture / slice / tile group may be reconstructed based on intra prediction or inter prediction. In this case, inter prediction may be applied to some blocks in the current picture / slice / tile group, and intra prediction may be applied to the remaining blocks. The color components of a picture may include luma components and chroma components, and unless explicitly limited in this document, the methods and embodiments proposed in this document may be applied to luma components and chroma components.

[0084] 5 shows an example of a schematic video / image decoding procedure to which the embodiment of this document can be applied. In FIG. 5, S500 may be performed in the entropy decoding unit 310, S510 may be performed in the prediction unit 330, S520 may be performed in the residual processing unit 320, S530 may be performed in the addition unit 340, and S540 may be performed in the filtering unit 350 of the decoding device described above in FIG. 3. S500 may include the information decoding procedure described herein, S510 may include the inter / intra prediction procedure described herein, S520 may include the residual processing procedure described herein, S530 may include the block / picture reconstruction procedure described herein, and S540 may include the in-loop filtering procedure described herein.

[0085] Referring to FIG. 5, the picture decoding procedure may include, as shown in the description of FIG. 3, an image / video information acquisition procedure (S500) from a bitstream (through decoding), a picture reconstruction procedure (S510-S530), and an in-loop filtering procedure (S540) for the reconstructed picture. The picture reconstruction procedure may be performed based on a prediction sample and a residual sample acquired through the inter / intra prediction (S510) and residual processing (S520) (inverse quantization and inverse transform for quantized transform coefficients) processes described in this document. A modified reconstructed picture may be generated through an in-loop filtering procedure for the reconstructed picture generated through the picture reconstruction procedure, and the modified reconstructed picture may be output as a decoded picture or may be stored in a decoded picture buffer or memory 360 of the decoding device and used as a reference picture in the inter prediction procedure when decoding a picture thereafter.

[0086] In some cases, the in-loop filtering procedure may be omitted, in which case the reconstructed picture may be output as a decoded picture, or may be stored in a decoded picture buffer or memory 360 of the decoding device, and may be used as a reference picture in an inter-prediction procedure when decoding a picture thereafter. The in-loop filtering procedure (S540) may include a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and / or a bi-lateral filter procedure, as described above, and some or all of them may be omitted. Also, one or some of the deblocking filtering procedure, the sample adaptive offset (SAO) procedure, the adaptive loop filter (ALF) procedure, and the bi-lateral filter procedure may be applied sequentially, or all of them may be applied sequentially. For example, the SAO procedure may be performed after the deblocking filtering procedure is applied to the reconstructed picture. Or, for example, the ALF procedure may be performed after the deblocking filtering procedure is applied to the reconstructed picture. This may also be performed in an encoding device.

[0087] As described above, the encoding apparatus may derive a residual block (residual sample) based on a block (prediction sample) predicted through intra / inter / IBC prediction, etc., and may derive a quantized transform coefficient by applying transform and quantization to the derived residual sample. Information on the quantized transform coefficient (residual information) may be included in a residual coding syntax and may be output in the form of a bitstream after encoding. The decoding apparatus may obtain information on the quantized transform coefficient (residual information) from the bitstream and decode the information to derive the quantized transform coefficient. The decoding apparatus may derive a residual sample through inverse quantization / inverse transform based on the quantized transform coefficient. As described above, at least one of the quantization / inverse quantization and / or the transform / inverse transform may be omitted. When the transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient, or may still be referred to as a transform coefficient for uniformity of expression. Whether or not the transform / inverse transform is omitted may be signaled based on transform_skip_flag. For example, if the value of transform_skip_flag is 1, it may indicate that the transform / inverse transform is skipped, which may be referred to as a transform skip mode.

[0088] Generally, in video / image coding, a quantization rate can be changed, and a compression rate can be adjusted using the changed quantization rate. In terms of implementation, a quantization parameter (QP) can be used instead of directly using the quantization rate in consideration of complexity. For example, a quantization parameter having an integer value ranging from 0 to 63 can be used, and each quantization parameter value can correspond to an actual quantization rate. In addition, for example, a quantization parameter (QP) for a luma component (luma sample) can be set to 1000 s.o.f. Y ) and the quantization parameter (QP C ) can be set differently.

[0089] The quantization process takes the transform coefficients (C) as input and the quantization rate (Q step ) to obtain a quantized transform coefficient (C`) based on the quantization ratio. In this case, in consideration of the complexity of the calculation, the quantization ratio can be multiplied by a scale to make it a positive number, and a shift operation can be performed by a value corresponding to the scale value. A quantization scale can be derived based on the quantization ratio and multiplied by the scale value. That is, the quantization scale can be derived according to QP. For example, the quantization scale can be applied to the transform coefficient (C), and a quantized transform coefficient (C`) can be derived based on the quantization scale.

[0090] The inverse quantization process applies a quantization rate (Q step ) to obtain a reconstructed transform coefficient (C``). In this case, a level scale can be derived according to the quantization parameter, and the level scale can be applied to the quantized transform coefficient (C`) to obtain a reconstructed transform coefficient (C``). The reconstructed transform coefficient (C``) may be slightly different from the original transform coefficient (C) due to loss in the transformation and / or quantization process. Therefore, the encoding device also performs inverse quantization like the decoding device.

[0091] On the other hand, in performing prediction, it can be based on palette coding. Palette coding is a technique that is useful for representing blocks that contain a small number of unique hue values. Instead of applying prediction and transformation to the block, the palette mode signals an index to indicate the color value of each sample. This palette mode is useful for saving video memory buffer space. A block can be coded using a palette mode (e.g., MODE_PLT). To decode a block thus encoded, the decoder must decode the palette colors and indices. The palette colors can be represented by a palette table and encoded by a palette table coding tool.

[0092] FIG. 6 shows an example to explain the basic structure of palette coding.

[0093] 6, an image 600 can be represented by a histogram 610. The primary color values ​​can then be generally mapped to color indices (620), and the image can be coded using the color index map (630).

[0094] Palette coding may be called (intra) palette mode or (intra) palette coding mode. A current block may be restored by palette coding or palette mode. Palette coding may be considered as an example of intra coding or as one of intra prediction methods. However, similar to the above-mentioned skip mode, a separate residual value for the corresponding block may not be signaled.

[0095] For example, palette mode can be used to improve coding efficiency for screen content such as computer generated video that contains a significant amount of text and graphics. Typically, a local region of screen content has several colors separated by sharp edges. To exploit this property, palette mode can indicate samples of blocks based on indexes that indicate color entries in a palette table.

[0096] For example, information for a palette table may be signaled. The palette table may include index values ​​corresponding to each color. Palette index prediction data may be received and may include data indicating index values ​​for at least a portion of a palette index map that maps pixels of the video data to color indices in the palette table. The palette index prediction data may include run value data associating run values ​​with index values ​​for at least a portion of the palette index map. The run values ​​may be associated with escape color indexes. The palette index map may be generated at least in part from the palette index prediction data by determining whether to adjust index values ​​of the palette index prediction data based on a last index value. A current block in the picture may be reconstructed according to the palette index map.

[0097] When using the palette mode, pixel values ​​of a CU may be represented by a set of representative color values. Such a set may be referred to as a palette. For pixels having values ​​close to color values ​​in the palette, a palette index corresponding to the color value in the palette may be signaled. For pixels having color values ​​outside the palette, the pixel may be represented by an escape symbol and the quantized pixel value may be signaled directly. In this document, a pixel or pixel value may be referred to as a sample or sample value.

[0098] To decode a block encoded in palette mode, the decoder must decode the palette colors and indices. The palette colors can be indicated in a palette table and encoded with a palette table coding tool. An escape flag can be signaled for each CU to indicate whether an escape symbol is currently present in the CU. If an escape symbol is present, the palette table can be incremented by 1 and the last index can be assigned to the escape mode. The palette indices of all pixels in a CU form a palette index map and can be encoded with a palette index map coding tool.

[0099] For example, for coding of the palette table, a palette predictor may be maintained. The predictor may be initialized at the beginning of each slice where the predictor is reset to 0. For each entry of the palette predictor, a reuse flag may be signaled to indicate whether it is currently part of the palette. The reuse flag may be transmitted using run-length coding of 0. Then, the number of new palette entries may be signaled using exponential Golomb coding of order 0. Finally, component values ​​for the new palette entries may be signaled. After encoding the current CU, the palette predictor may be updated with the current palette, and entries of the previous palette predictor that are not reused in the current palette may be added to the end of the new palette predictor (palette stuffing) until it reaches the maximum size allowed.

[0100] For example, to code a palette index map, the index can be coded using horizontal and vertical traverse scans, and the scan order can be explicitly signaled from the bitstream using flag information (e.g., palette_transpose_flag).

[0101] FIG. 7 shows an example to illustrate the horizontal and vertical traverse scan method used to code the palette index map.

[0102] FIG. 7(a) shows an example of coding a palette index map using a horizontal traverse scan, and FIG. 7(b) shows an example of coding a palette index map using a vertical traverse scan.

[0103] As shown in (a) of Figure 7, when horizontal scanning is used, the palette index can be coded by scanning horizontally from the sample in the first row (topmost row) to the sample in the last row (bottommost row) in the current block (i.e., the current CU).

[0104] As shown in (b) of Figure 7, when vertical scanning is used, the palette index can be coded by scanning vertically from the sample in the first column (the leftmost column) in the current block (i.e., the current CU) to the sample in the last column (the rightmost column).

[0105] Meanwhile, the palette index can be coded using two palette sample modes. For example, 'INDEX' mode and 'COPY_ABOVE' mode can be used. Such palette mode can be signaled using a flag indicating whether it is 'INDEX' mode or 'COPY_ABOVE' mode. In this case, if horizontal scanning is used, the flag can be signaled except for the top row, and if vertical scanning is used or the previous mode is 'COPY_ABOVE' mode, the flag can be signaled except for the first column. In 'COPY_ABOVE' mode, the palette index of the sample of the upper row can be copied. In 'INDEX' mode, the palette index can be explicitly signaled. For both 'INDEX' mode and 'COPY_ABOVE' mode, a run value indicating the number of pixels coded using the same mode can be signaled.

[0106] The encoding order for the index map is as follows. First, the number of index values ​​for a CU may be signaled. Then, the actual index values ​​for the entire CU may be signaled using TB (truncated binary) coding. The number of indexes and the index values ​​may be coded in an all-bypass mode, whereby index-related bypass bins may be grouped together. Next, the palette mode (INDEX mode or COPY_ABOVE mode) and runs may be signaled in an interleaved manner. Finally, the component escape values ​​corresponding to the escape samples for the entire CU may be grouped together and coded in bypass mode. After signaling the index values, an additional syntax element, last_run_type_flag, may be signaled. This syntax element does not need to signal the run value corresponding to the last run in the block along with the number of indexes.

[0107] Meanwhile, in the VVC standard, a dual tree can be enabled for an I slice that separates coding unit partitioning for luma and chroma. Palette coding (palette mode) can be applied to luma (Y component) and chroma (Cb and Cr components) individually or together. If the dual tree is disabled, palette coding (palette mode) can be applied to luma (Y component) and chroma (Cb and Cr components) together.

[0108] FIG. 8 is a diagram illustrating an example of a coding method based on the palette mode.

[0109] Referring to FIG. 8, a decoding apparatus can obtain palette information based on a bitstream and / or previous palette information (S800).

[0110] In one embodiment, the decoding device can receive palette index information, traversal direction (scan order) information, palette mode information for each sample position by cycling through samples in a CU, and run-length information for each palette mode from the bitstream.

[0111] The decoding device can construct a palette based on the palette information (S810).

[0112] In one embodiment, the decoding apparatus may construct a palette predictor. Palette information used in a previous block may be stored for a next palette CU (i.e., a CU coded in palette mode) that is generated later. This may be defined as a palette predictor entry. The decoding apparatus may then receive new palette entry information and construct a palette for the current CU. For example, after receiving the received palette predictor reuse information and new palette entry information to be used in the current CU, the decoding apparatus may combine the two entry information to construct one palette representing the current CU.

[0113] The decoding apparatus can derive sample values ​​(sample prediction values) in the current block based on the palette (S820).

[0114] In one embodiment, the decoding apparatus may configure samples from the acquired palette information while traversing samples in a CU in a horizontal or vertical direction based on traverse direction (scanning procedure) information. If the palette mode information indicates a COPY_ABOVE mode, the index information of the left sample position may be copied in a vertical scan, and the index information of the top sample position may be copied in a horizontal scan to derive each sample value in the CU. That is, based on the index information of each sample in the CU, a color value of each sample may be derived from the configured palette table to derive an intra-CU predicted sample. Then, the decoding apparatus may reconstruct each sample information in the CU using the palette information, and update the palette predictor.

[0115] Meanwhile, the palette coding (palette mode or palette coding mode) indicates whether the current CU is coded in the palette mode and can signal information for coding by applying the palette mode.

[0116] As an example, information regarding the availability of the palette coding mode can be signaled through a sequence parameter set (SPS) as shown in Table 1 below.

[0117] [Table 1]

[0118] The semantics of the syntax elements included in the syntax of Table 1 can be shown as in Table 2 below.

[0119] [Table 2]

[0120] Referring to Tables 1 and 2, the sps_palette_enabled_flag syntax element may be parsed / signaled in the SPS. The sps_palette_enabled_flag syntax element may indicate whether the palette coding mode is available. For example, if the value of sps_palette_enabled_flag is 1, it may indicate that the palette coding mode is available, and in this case, information (e.g., pred_mode_plt_flag) indicating whether the palette coding mode is applied to the current coding unit in the coding unit syntax may be parsed / signaled. Alternatively, if the value of sps_palette_enabled_flag is 0, it may indicate that the palette coding mode is not available, and in this case, information (e.g., pred_mode_plt_flag) indicating whether the palette coding mode is applied to the current coding unit in the coding unit syntax may not be parsed / signaled.

[0121] As an example, information regarding whether to apply the palette mode for coding can be signaled based on information regarding the availability of the palette coding mode (e.g., sps_palette_enabled_flag), and can be signaled through the coding unit syntax as shown in Table 3 below.

[0122] [Table 3]

[0123] The semantics of the syntax elements included in the syntax of Table 3 can be shown as in Table 4 below.

[0124] [Table 4]

[0125] Referring to Tables 3 and 4, a pred_mode_plt_flag syntax element may be parsed / signaled in the coding unit syntax. The pred_mode_plt_flag syntax element may indicate whether or not a palette mode is applied to the current coding unit. For example, a value of pred_mode_plt_flag of 1 may indicate that a palette mode is applied to the current coding unit, and a value of pred_mode_plt_flag of 0 may indicate that a palette mode is not applied to the current coding unit.

[0126] In this case, pred_mode_plt_flag may be parsed / signaled based on information on whether the palette coding mode is available (e.g., sps_palette_enabled_flag). For example, when the value of sps_palette_enabled_flag is 1 (i.e., when the palette coding mode is available), pred_mode_plt_flag may be parsed / signaled.

[0127] In addition, coding can be performed by applying the palette mode to the current coding unit based on pred_mode_plt_flag. For example, if the value of pred_mode_plt_flag is 1, the palette mode can be applied to the current coding unit to generate reconstructed samples by parsing / signaling the palette_coding() syntax.

[0128] As an example, the following Table 5 shows a palette coding syntax.

[0129] [Table 5-1]

[0130] [Table 5-2]

[0131] [Table 5-3]

[0132] The semantics of the syntax elements included in the syntax of Table 5 can be shown as in Table 6 below.

[0133] [Table 6-1]

[0134] [Table 6-2]

[0135] [Table 6-3]

[0136] [Table 6-4]

[0137] [Table 6-5]

[0138] [Table 6-6]

[0139] Referring to Tables 5 and 6, when a palette mode is applied to a current block (i.e., a current coding unit), a palette coding syntax (e.g., palette_coding()) as shown in Table 5 can be parsed / signaled.

[0140] For example, a palette table can be configured based on palette entry information, which can include syntax elements such as palette_predictor_run, num_signalled_palette_entries, and new_palette_entries.

[0141] Also, a palette index map for the current block can be constructed based on the palette index information. The palette index information can include syntax elements such as num_palette_indices_minus1, palette_idx_idc, copy_above_indices_for_final_run_flag, palette_transpose_flag, etc. Based on the palette index information, a palette index map (e.g., PaletteIndexMap) can be constructed by deriving palette index values ​​(e.g., PaletteIndexIdc) for samples in the current block while traversing according to the traverse scan direction (vertical or horizontal).

[0142] Also, it is possible to derive sample values ​​for palette entries in a palette table based on the palette index map, and generate reconstructed samples of the current block based on the sample values ​​(ie, color values) mapped to the palette entries.

[0143] Also, if there is a sample having an escape value in the current block (i.e., the value of palette_escape_val_present_flag is 1), an escape value for the current block may be derived based on the escape information. The escape information may include syntax elements such as palette_escape_val_present_flag, palette_escape_val, etc. For example, an escape value for an escape coded sample in the current block may be derived based on quantized escape value information (e.g., palette_escape_val). A reconstructed sample of the current block may be generated based on the escape value.

[0144] As described above, the information (syntax elements) in the syntax table disclosed in this document may be included in image / video information, configured / encoded by a coding technique (including palette coding) performed by an encoding device, and transmitted to a decoding device in the form of a bitstream. The decoding device may parse / decode the information (syntax elements) in the syntax table. The decoding device may perform a coding technique such as palette coding based on the decoded information, and may perform a block / image / video restoration (decoding) procedure based on the coding technique. Hereinafter, this document proposes syntax tables and syntax elements for efficiently coding blocks / images / videos based on palette coding.

[0145] This document proposes a method for efficiently coding and signaling escape values ​​in palette mode coding. In palette mode, escape values ​​can be used to transmit sample values ​​separately for samples that have different values ​​of characteristics from surrounding samples in a block. Since such escape values ​​are additional data, they can be quantized to save data. In addition, in palette mode escape coding, no transform is applied and the quantized escape value can be directly signaled. This can be considered similar to transform skip mode, in which no transform is applied to the coding unit (CU).

[0146] Currently, the VVC standard applies a full range of quantization parameter (QP) values ​​to escape values ​​in palette mode. However, this document proposes a method of restricting the range of QP values ​​to prevent the quantization step size for escape value coding in palette mode from being smaller than 1. In one embodiment, the same restriction as the minimum QP for transform skip can be applied to escape value coding in palette mode. The minimum QP for palette mode can be clipped using the minimum QP for transform skip.

[0147] As an example, information on the minimum QP for transform skip can be signaled through a sequence parameter set (SPS) as shown in Table 7 below.

[0148] [Table 7]

[0149] The semantics of the syntax elements included in the syntax of Table 7 can be shown as in Table 8 below.

[0150] [Table 8]

[0151] Referring to Tables 7 and 8, the min_qp_prime_ts_minus4 syntax element may be parsed / signaled in the SPS. The min_qp_prime_ts_minus4 syntax element may indicate the minimum quantization parameter allowed for the transform skip mode. In other words, the minimum quantization parameter value (e.g., QpPrimeTsMin) in the transform skip mode may be derived based on the min_qp_prime_ts_minus4 syntax element. For example, the minimum quantization parameter value (e.g., QpPrimeTsMin) may be derived by adding 4 to the value of min_qp_prime_ts_minus4.

[0152] As described above, based on the min_qp_prime_ts_minus4 syntax element signaled in the SPS, the QP for the escape value of the palette mode can be derived according to the algorithm disclosed in Table 9 below. That is, the QP value used to reconstruct the escape value in the decoding process based on the palette mode can be derived according to the algorithm disclosed in Table 9 below.

[0153] [Table 9]

[0154] Referring to Table 9, when there is an escape value in the palette mode, the QP value can be derived. That is, the QP for the escape value in the palette mode can be derived based on the minimum quantization parameter value (e.g., QpPrimeTsMin) in the conversion skip mode derived based on the aforementioned min_qp_prime_ts_minus4 syntax element. For example, as shown in Table 9 above, the QP for the escape value in the palette mode can be derived to be the larger value among QpPrimeTsMin and the quantization parameter Qp (Qp`Y for the luma component, Qp`Cb or Qp`Cr for the chroma component). Then, based on the QP for the escape value in the palette mode, the escape value can be derived to repair the samples within the block.

[0155] Also, in this document, as described above, when the QP range in the palette mode is restricted to be greater than or equal to the minimum quantization parameter value (e.g., QpPrimeTsMin) in the conversion skip mode, the range of the escape value quantized in the palette mode can be restricted. As one embodiment, the range of the escape value quantized in the palette mode can be determined based on the bit depth (bitdepth), and for example, it can be restricted to be not greater than (1<<BitDepth)-1.

[0156] As an example, the escape value quantized in the palette mode can be indicated by the syntax element palette_escape_val. The syntax element palette_escape_val can be signaled through the palette coding syntax as shown in Table 10 below.

[0157]

Table 10

[0158] The semantics of the syntax elements included in the syntax of Table 10 can be shown as in Table 11 below.

[0159] [Table 11]

[0160] Referring to Tables 10 and 11, the palette_escape_val syntax element can be parsed / signaled in the palette coding syntax. The palette_escape_val syntax element can indicate a quantized escape value. Also, as shown in Table 10, the value of the syntax element palette_escape_val can be set to PaletteEscapeVal, which can indicate an escape value of a sample whose palette index map (PaletteIndexMap) is equal to the maximum palette index (MaxPaletteIndex) and whose palette_escape_val_present_flag value is 1. Here, the case where the palette_escape_val_present_flag value is 1 can mean that the current CU includes at least one escape coded sample (escape value). For example, for a luma component, PaletteEscapeVal can range from 0 to (1<<(BitDepth Y For chroma components, PaletteEscapeVal can be limited to the range 0 to (1<<(BitDepth C ))-1.

[0161] This document also defines a palette size and proposes a scheme for signaling the palette size. The palette size may indicate the number of entries in a palette table (i.e., the number of indexes in the palette table). In one embodiment, this document defines the palette size as one or more constants to indicate the number of entries in a palette.

[0162] As an example, the palette size may be indicated by the syntax element palette_max_size, which may be the same for the entire sequence or may vary depending on the CU size (i.e., the number of pixels in a CU). For example, the palette size (palette_max_size) may indicate the maximum allowed index of the palette table and may be defined as 31. As another example, the palette size (palette_max_size) may indicate the maximum allowed index of the palette table and may be defined as shown in Table 12 below depending on the CU size.

[0163] [Table 12]

[0164] The palette sizes 63, 31, 15, etc. and the CU sizes 1024, 256, etc. disclosed in Table 12 are used as examples only and may be changed to other numbers.

[0165] In one embodiment, information indicating the palette size (e.g., palette_max_size) can be signaled through the SPS as shown in Table 13 below.

[0166] [Table 13]

[0167] The semantics of the syntax elements included in the syntax of Table 13 can be shown as in Table 14 below.

[0168] [Table 14]

[0169] Referring to Tables 13 and 14, the palette_max_size syntax element can be parsed / signaled in the SPS. The palette_max_size syntax element can indicate the maximum allowed index of the palette table and can be limited to a range of 1 to 63.

[0170] In this case, the palette_max_size syntax element can be parsed / signaled based on the sps_palette_enabled_flag syntax element, which is information for indicating whether the palette mode is enabled. For example, if the value of the sps_palette_enabled_flag is 1 (i.e., indicating that the palette mode is enabled), the palette_max_size syntax element can be parsed / signaled.

[0171] Alternatively, as one embodiment, information indicating the palette size (e.g., log2_palette_max_size) can be signaled through the SPS as shown in Table 15 below.

[0172] [Table 15]

[0173] The semantics of the syntax elements included in the syntax of Table 15 can be shown as in Table 16 below.

[0174]

Table 16

[0175] Referring to Table 15 and Table 16 above, in SPS, the log2_palette_max_size syntax element can be parsed / signaled. The log2_palette_max_size syntax element can indicate the log2 value of the palette size (i.e., palette_max_size + 1). Thus, palette_max_size, which indicates the maximum allowable index of the palette table, can be derived by calculating (1 << log2_palette_max_size) - 1 and can be restricted to the range from 1 to 63.

[0176] At this time, the log2_palette_max_size syntax element can be parsed / signaled based on the sps_palette_enabled_flag syntax element, which is information for indicating whether the palette mode is enabled or not. For example, when the value of sps_palette_enabled_flag is 1 (i.e., indicating that the palette mode is enabled), the log2_palette_max_size syntax element can be parsed / signaled.

[0177] Or, as an embodiment, information indicating the palette size (e.g., log2_palette_CU_size_TH1, log2_palette_max_size_TH1, log2_palette_max_size_default) can be signaled through SPS as shown in Table 17 below.

[0178]

Table 17

[0179] The semantics for the syntax elements included in the syntax of Table 17 above can be shown as in Table 18 below.

[0180]

Table 18

[0181] Referring to Table 17 and Table 18 above, in SPS, the syntax elements log2_palette_CU_size_TH1, log2_palette_max_size_TH1, and log2_palette_max_size_default can be parsed / signaled.

[0182] The syntax element log2_palette_CU_size_TH1 indicates the log2 value of the size limit of palette_max_size_TH1, and palette_max_size_TH1 can be derived as 1<<log2_Palette_CU_size_TH1.

[0183] The syntax element log2_palette_max_size_TH1 indicates the log2 value of (palette_max_size_TH1 + 1), and palette_max_size_TH1 can be derived as (1<<log2_palette_max_size_TH1)-1. palette_max_size_TH1 indicates the maximum allowable index of the palette table for a CU having a size larger than Palette_CU_size_TH1 and can be restricted to be within the range from 1 to 63.

[0184] The log2_palette_max_size_default syntax element indicates the log2 value of (palette_max_size_default + 1), and palette_max_size_default can be derived to (1 << log2_palette_max_size_default) - 1. palette_max_size_default indicates the maximum allowable index of the palette table and can be restricted to the range from 1 to 63.

[0185] At this time, the log2_palette_CU_size_TH1, log2_palette_max_size_TH1, and log2_palette_max_size_default syntax elements can be parsed / signaled based on the sps_palette_enabled_flag syntax element, which is information indicating whether the palette mode is enabled. For example, when the value of sps_palette_enabled_flag is 1 (i.e., indicating that the palette mode is enabled), the log2_palette_CU_size_TH1, log2_palette_max_size_TH1, and log2_palette_max_size_default syntax elements can be parsed / signaled.

[0186] Also, one or more sets of palette_CU_size_TH and palette_max_size_TH can be signaled and can be used to indicate palette_max_size.

[0187] The following drawings are created to illustrate a specific example of this document. The names of specific devices, specific terms, and names described in the drawings (such as the names of syntax / syntax elements) are presented by way of example, so the technical features of this document are not limited to the specific names used in the following drawings.

[0188] FIG. 9 illustrates a schematic diagram of an example of a video / image encoding method according to an embodiment of the present document.

[0189] The method disclosed in FIG. 9 may be performed by the encoding apparatus 200 disclosed in FIG. 2. Specifically, steps S900 to S910 in FIG. 9 may be performed by the prediction unit 220 disclosed in FIG. 2, and step S920 in FIG. 9 may be performed by the entropy encoding unit 240 disclosed in FIG. 2. In addition, the method disclosed in FIG. 9 may be performed including the embodiments described above in this document. Therefore, in FIG. 9, detailed descriptions of contents that overlap with the above-described embodiments will be omitted or simplified.

[0190] Referring to FIG. 9, the encoding apparatus can derive an escape value in palette mode for a current block (S900).

[0191] In one embodiment, the encoding apparatus may determine a prediction mode for a current block and perform prediction. For example, the encoding apparatus may determine whether to perform inter prediction or intra prediction for the current block. Alternatively, the encoding apparatus may determine whether to perform prediction for the current block based on a CIIP mode, an IBC mode, a palette mode, or the like. The encoding apparatus may determine a prediction mode based on an RD cost. The encoding apparatus may perform prediction according to the determined prediction mode and derive a prediction sample for the current block. In addition, the encoding apparatus may generate and encode information (e.g., prediction mode information) regarding the prediction applied to the current block.

[0192] When performing palette mode-based prediction on the current block, the encoding apparatus may apply the palette mode coding disclosed in the above embodiment, i.e., the encoding apparatus may apply palette mode coding to the current block to derive palette entries, palette indexes, escape values, etc.

[0193] As an example, the encoding apparatus may generate palette entry information based on sample values ​​of the current block. That is, the encoding apparatus may derive palette predictor entries and palette entry reuse information used in a block previously coded in a palette mode to construct a palette table, and derive palette entries for the current block. For example, as disclosed in Tables 5 and 6, the encoding apparatus may derive palette entry information such as palette_predictor_run, num_signalled_palette_entries, and new_palette_entries used to construct the palette table.

[0194] Also, the encoding apparatus may generate palette index information for the current block based on the palette entry information. That is, the encoding apparatus may derive a palette index value for each sample while cycling through samples of the current block along a traverse scan direction (vertical or horizontal direction) to configure a palette index map. For example, as shown in Tables 5 and 6, the encoding apparatus may derive palette entry information such as palette_transpose_flag, palette_idx_idc, copy_above_indices_for_final_run_flag, and num_palette_indices_minus1 used to configure the palette index map.

[0195] Here, the palette table may include representative color values ​​(palette entries) for samples in the current block and may be configured with palette index values ​​corresponding to each color value. That is, the encoding device may derive palette index values ​​corresponding to entries (color values) in the palette table for each sample in the current block and signal the same to the decoding device.

[0196] The encoding device can encode image information including the palette entry information and the palette index information, and signal the encoded image information to the decoding device.

[0197] Additionally, in performing palette mode based prediction on the current block, the encoding apparatus may derive an escape value for the current block that includes at least one escape coded sample.

[0198] As described above, in the palette mode, it is effective in terms of coding efficiency to send a separate sample value for a sample having a different characteristic value from the surrounding samples in the current block, so this sample value can be signaled as an escape value. At this time, since the escape value is additional data, it can be quantized to save it. Also, the escape value in the palette mode is not converted, and the quantized value can be directly signaled.

[0199] The encoding apparatus may derive a quantized escape value based on the escape value (S910).

[0200] In one embodiment, the encoding apparatus may derive a quantized escape value by applying a quantization parameter to the escape value based on the quantization parameter for the escape value.

[0201] Here, the quantization parameter may be derived based on minimum quantization parameter information for the transform skip mode. For example, the quantization parameter may be derived based on minimum quantization parameter information (e.g., min_qp_prime_ts_minus4) for the transform skip mode disclosed in Tables 7 to 9. As described above, since no transformation is applied to the escape value in the palette mode, it may be quantized based on the minimum quantization parameter information used in the transform skip mode.

[0202] As a specific example, as shown in Table 9, the encoding apparatus may first derive a minimum quantization parameter value (e.g., QpPrimeTsMin) based on minimum quantization parameter information (e.g., min_qp_prime_ts_minus4) for the transform skip mode. Then, the encoding apparatus may select a larger value between the minimum quantization parameter value (e.g., QpPrimeTsMin) and the quantization parameter Qp (Qp`Y for the luma component, and Qp`Cb or Qp`Cr for the chroma component) and use it as a quantization parameter in the palette mode.

[0203] In other words, the quantization parameter in palette mode may have a value greater than or equal to the minimum quantization parameter value (eg, QpPrimeTsMin) derived from the minimum quantization parameter information for transform skip mode (eg, min_qp_prime_ts_minus4).

[0204] The encoding device can derive a quantized escape value by applying the quantization parameter in the palette mode derived as described above. The encoding device can generate the quantized escape value as a palette_escape_val syntax element as disclosed in Table 5 and Table 6 above and signal it. Further, the encoding device can generate information (e.g., palette_escape_val_present_flag) for indicating that there is a sample having an escape value in the current block and signal it.

[0205] Also, in one embodiment, the encoding device can limit the quantized escape value to a specific range. Since the escape value has a value different from that of surrounding samples, it is quantized and directly signaled, but an error due to quantization may occur. In order to reduce such an error and enable more accurate values to be coded, the range of the quantized escape value can be limited based on the bit depth.

[0206] For example, the range of information for the quantized escape value can be determined based on the bit depth as disclosed in Table 10 and Table 11 above, and can be limited, for example, to be not greater than (1<<BitDepth)-1. Also, the bit depth can include the bit depth BitDepth Y for the luma component and the bit depth BitDepth C for the chroma component. At this time, the range of the quantized escape value information for the luma component can have values between 0 and (1<<BitDepth Y )-1, and the range of the quantized escape value information for the chroma component can have values between 0 and (1<<BitDepth C )-1.

[0207] In addition, in one embodiment, the encoding apparatus may define the number of entries in the palette table (i.e., the number of indexes in the palette table) and signal the number to the decoding apparatus. That is, the encoding apparatus may determine palette size information related to the maximum index of the palette table and signal the number. The palette size information may be a preset value or may be determined based on the size of the coding unit.

[0208] For example, the palette size may be indicated by palette_max_size as disclosed in Table 12 above, and may be determined to be the same for the entire sequence or to vary depending on the CU size (i.e., the number of pixels in a CU).

[0209] Also, for example, the palette size may be indicated by palette_max_size as disclosed in Tables 13 and 14, and may be signaled through the SPS. In this case, the palette size (e.g., palette_max_size) may indicate the maximum allowable index of the palette table, and may be limited to a range from 1 to 63. Also, the palette size (e.g., palette_max_size) may be signaled based on information (e.g., sps_palette_enabled_flag) for indicating whether the palette mode is enabled or not.

[0210] Also, for example, the palette size can be indicated by log2_palette_max_size as disclosed in Table 15 and Table 16 above, and can be signaled through SPS. At this time, the palette size (e.g., log2_palette_max_size) can indicate the log2 value of the palette size (i.e., palette_max_size + 1). Therefore, palette_max_size indicating the maximum allowable index of the palette table can be derived by calculating (1 << log2_palette_max_size) - 1 and can be restricted to the range within 1 to 63. Also, the palette size (e.g., log2_palette_max_size) can also be signaled based on information (e.g., sps_palette_enabled_flag) indicating whether the palette mode is enabled or not.

[0211] Also, for example, the palette size can be derived based on log2_palette_CU_size_TH1, log2_palette_max_size_TH1, log2_palette_max_size_default as disclosed in Table 17 and Table 18 above, and can be signaled through SPS. The specific embodiments of deriving and signaling the palette size are as described above in Table 17 and Table 18, so the description will be omitted here.

[0212] The encoding device can encode image information (or video information) (S920). Here, the image information can include various information used for the above-described palette mode coding.

[0213] For example, the encoding apparatus may generate and encode image information including information on a quantized escape value. The encoding apparatus may also generate and encode image information including palette entry information and palette index information. The encoding apparatus may also generate and encode image information including minimum quantization parameter information for a transform skip mode. In this case, the image information may include an SPS, and the SPS may include the minimum quantization parameter information for the transform skip mode.

[0214] Also, according to an embodiment, the encoding apparatus may determine whether to perform coding for a current block using the palette mode based on information regarding the availability of the palette mode.

[0215] For example, as disclosed in Tables 1 to 4, the encoding apparatus may determine whether the palette mode is available, and may generate information regarding whether the palette mode is available (e.g., sps_palette_enabled_flag) based on the determination, and signal the information via the SPS.

[0216] In addition, the encoding apparatus may generate information (e.g., pred_mode_plt_flag) indicating whether to apply the palette mode to the current block for coding based on information regarding the availability of the palette mode (e.g., sps_palette_enabled_flag) and signal the information through a coding unit syntax. For example, if the value of pred_mode_plt_flag is 1, the encoding apparatus may apply the palette mode to the current block to generate reconstructed samples by signaling the palette_coding() syntax.

[0217] The information regarding whether the palette mode is available (e.g., sps_palette_enabled_flag) and the information indicating whether the palette mode is applied to the current block for coding (e.g., pred_mode_plt_flag) can be included in the image information and encoded.

[0218] Image information including the above-mentioned various information can be encoded and output in the form of a bitstream. The bitstream can be transmitted to a decoding device through a network or a (digital) recording medium. Here, the network can include a broadcasting network and / or a communication network, and the digital recording medium can include various recording media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc.

[0219] FIG. 10 illustrates a schematic diagram of an example of a video / image decoding method according to an embodiment of the present document.

[0220] The method disclosed in Fig. 10 may be performed by the decoding apparatus 300 disclosed in Fig. 3. Specifically, step S1000 of Fig. 10 may be performed by the entropy decoding unit 310 disclosed in Fig. 3, and steps S1010 to S1020 of Fig. 10 may be performed by the prediction unit 330 disclosed in Fig. 3. In addition, the method disclosed in Fig. 10 may be performed including the embodiments described above in this document. Therefore, in Fig. 10, detailed descriptions of contents that overlap with the embodiments described above will be omitted or simplified.

[0221] Referring to FIG. 10, a decoding device can receive image information (or video information) from a bitstream (S1000).

[0222] The decoding apparatus may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. At this time, the image information may include information related to prediction (e.g., prediction mode information). In addition, the image information may include various information used for the above-mentioned palette mode coding. For example, the image information may include information on a quantized escape value, palette entry information, palette index information, minimum quantization parameter information for a transform skip mode, etc. That is, the image information may include various information required in the decoding process and may be decoded based on a coding method such as exponential-Golomb coding, CAVLC, or CABAC.

[0223] As an embodiment, the decoding apparatus may obtain image information including quantized escape value information in palette mode from a bitstream. For example, the quantized escape value information may be a palette_escape_val syntax element as disclosed in Tables 5 and 6. In this case, the quantized escape value information (e.g., palette_escape_val) may be obtained based on information (e.g., palette_escape_val_present_flag) indicating whether a sample having an escape value exists in the current block. For example, if a sample having an escape value exists in the current block (i.e., the value of palette_escape_val_present_flag is 1), the decoding apparatus may obtain the quantized escape value information (e.g., palette_escape_val) from the bitstream.

[0224] The decoding apparatus can derive an escape value for a current block based on the quantized escape value information (S1010).

[0225] In one embodiment, the decoding apparatus may derive the escape value by performing inverse quantization (scaling process) on the quantized escape value based on the quantization parameter.

[0226] Here, the quantization parameter may be derived based on minimum quantization parameter information for the transform skip mode. For example, the quantization parameter may be derived based on minimum quantization parameter information (e.g., min_qp_prime_ts_minus4) for the transform skip mode disclosed in Tables 7 to 9. As described above, since no transformation is applied to the escape value in the palette mode, it may be quantized based on minimum quantization parameter information used in the transform skip mode. At this time, the minimum quantization parameter information (e.g., min_qp_prime_ts_minus4) for the transform skip mode may be parsed / signaled from the SPS.

[0227] As a specific example, as shown in Table 9, the decoding device may first derive a minimum quantization parameter value (e.g., QpPrimeTsMin) based on minimum quantization parameter information (e.g., min_qp_prime_ts_minus4) for the transform skip mode. Then, the decoding device may select a larger value between the minimum quantization parameter value (e.g., QpPrimeTsMin) and the quantization parameter Qp (Qp`Y for the luma component, and Qp`Cb or Qp`Cr for the chroma component) and use it as a quantization parameter in the palette mode.

[0228] In other words, the quantization parameter in palette mode may have a value greater than or equal to the minimum quantization parameter value (eg, QpPrimeTsMin) derived from the minimum quantization parameter information for transform skip mode (eg, min_qp_prime_ts_minus4).

[0229] The decoding device can derive the escape value from the quantized escape value based on the quantization parameter in the palette mode derived as described above.

[0230] Also, in one embodiment, the decoding device can limit the quantized escape value to a specific range. Since the escape value has a different characteristic from the surrounding samples, it is quantized and directly signaled, but an error due to quantization may occur. In order to reduce such an error and enable more accurate coding, the range of the quantized escape value can be limited based on the bit depth.

[0231] For example, the range of information for the quantized escape value can be determined based on the bit depth as disclosed in Table 10 and Table 11 above, and can be limited, for example, to be not greater than (1<<BitDepth)-1. Also, the bit depth can include the bit depth BitDepth Y for the luma component and the bit depth BitDepth C for the chroma component. At this time, the range of the quantized escape value information for the luma component has a value between 0 and (1<<BitDepth Y )-1, and the range of the quantized escape value information for the chroma component can have a value between 0 and (1<<BitDepth C )-1.

[0232] Also, in one embodiment, the decoding device can acquire image information including the number of entries in the palette table (i.e., the number of indexes in the palette table). That is, the decoding device can acquire image information including palette size information regarding the maximum index of the palette table. At this time, the palette size information can be a preset value or can be determined based on the size of the coding unit.

[0233] For example, the palette size can be indicated by palette_max_size as disclosed in Table 12 above, and can be determined to be the same for the entire sequence or different according to the CU size (i.e., the number of pixels in the CU).

[0234] Also, for example, the palette size can be indicated by palette_max_size as disclosed in Table 13 and Table 14 above, and can be parsed / signaled through the SPS. At this time, the palette size (e.g., palette_max_size) can indicate the maximum allowable index of the palette table and can be limited to the range from 1 to 63. Also, the palette size (e.g., palette_max_size) can also be parsed / signaled based on information (e.g., sps_palette_enabled_flag) indicating whether the palette mode is enabled or not.

[0235] Also, for example, the palette size can be indicated by log2_palette_max_size as disclosed in Table 15 and Table 16 above, and can be parsed / signaled through the SPS. At this time, the palette size (e.g., log2_palette_max_size) can indicate the log2 value of the palette size (i.e., palette_max_size + 1). Therefore, palette_max_size indicating the maximum allowable index of the palette table can be calculated and derived as (1 << log2_palette_max_size) - 1 and can be limited to the range from 1 to 63. Also, the palette size (e.g., log2_palette_max_size) can also be parsed / signaled based on information (e.g., sps_palette_enabled_flag) indicating whether the palette mode is enabled or not.

[0236] Also, for example, the palette size may be derived based on log2_palette_CU_size_TH1, log2_palette_max_size_TH1, and log2_palette_max_size_default as disclosed in Tables 17 and 18, and may be parsed / signaled through the SPS. A specific embodiment for deriving and parsing / signaling the palette size has been described above in Tables 17 and 18, and therefore will not be described here.

[0237] The decoding device can generate reconstruction samples based on the escape values ​​(S1020).

[0238] In one embodiment, the decoding apparatus may generate a reconstruction sample for a current block including at least one escape-coded sample based on an escape value. For example, if a sample having an escape value exists in the current block (i.e., the value of palette_escape_val_present_flag is 1), the decoding apparatus may derive the escape value as described above to generate a reconstruction sample for the escape-coded sample.

[0239] In addition, when performing prediction based on palette mode on the current block (i.e., when palette mode is applied to the current block), for samples in the current block that are not escape-coded samples, the decoding device can obtain image information including palette entry information and palette index information, and generate reconstructed samples based on the image information.

[0240] As an example, the decoding apparatus may construct a palette table for the current block based on the palette entry information. For example, the palette entry information may include palette_predictor_run, num_signalled_palette_entries, new_palette_entries, etc., as disclosed in Tables 5 and 6. That is, in order to construct the palette table, the decoding apparatus may derive palette predictor entries and palette entry reuse information used in a block previously coded in a palette mode, and derive palette entries for the current block. Then, the decoding apparatus may construct the palette table based on the previous palette predictor entries and the current palette entries.

[0241] Also, the decoding apparatus may configure a palette index map for the current block based on the palette index information. For example, the palette index information may include palette_transpose_flag, palette_idx_idc, copy_above_indices_for_final_run_flag, num_palette_indices_minus1, etc., which are used to configure the palette index map as disclosed in Tables 5 and 6. That is, the decoding apparatus may configure a palette index map (e.g., PaletteIndexMap) based on information (e.g., palette_idx_idc) indicating a palette index value of each sample while cycling through samples of the current block based on information (e.g., palette_transpose_flag) indicating a traverse scan direction (vertical or horizontal).

[0242] Also, the decoding apparatus may derive sample values ​​for palette entries in the palette table based on the palette index map, and may generate reconstructed samples based on the palette index map and the sample values ​​for the palette entries.

[0243] Here, the palette table may include representative color values ​​(palette entries) for samples in the current block and may be configured with palette index values ​​corresponding to each color value. Thus, the decoding apparatus may derive sample values ​​(i.e., color values) of entries in the palette table corresponding to index values ​​of the palette index map and generate the sample values ​​as reconstructed sample values ​​of the current block.

[0244] Also, according to an embodiment, the decoding apparatus may determine whether to perform coding for the current block using the palette mode based on information regarding the availability of the palette mode.

[0245] For example, as disclosed in Tables 1 to 4, the decoding device can acquire image information including information regarding the availability of palette mode (e.g., sps_palette_enabled_flag), and based on this information, acquire the palette entry information, palette index information, quantized escape value information, etc. from the bitstream.

[0246] Also, for example, the decoding apparatus may acquire information (e.g., pred_mode_plt_flag) indicating whether to apply palette mode to coding of the current block based on information regarding availability of palette mode (e.g., sps_palette_enabled_flag) from the bitstream. For example, if the value of pred_mode_plt_flag is 1, the decoding apparatus may further acquire a palette_coding() syntax, and may derive reconstructed samples by applying the palette mode to the current block based on the information included in the palette_coding() syntax.

[0247] In the above embodiments, the method is described based on a flow chart with a series of steps or blocks, however, the embodiments herein are not limited to the order of steps and certain steps may occur in a different order or simultaneously with other steps than those described above. In addition, those skilled in the art will appreciate that the steps shown in the flow chart are not exclusive and other steps may be included or one or more steps of the flow chart may be deleted without affecting the scope of this document.

[0248] The method according to the present document described above may be embodied in software form, and the encoding device and / or decoding device according to the present document may be included in a device that performs image processing, such as a TV, a computer, a smartphone, a set-top box, or a display device.

[0249] In this document, when the embodiments are implemented in software, the methods described above may be implemented with modules (processes, functions, etc.) that perform the functions described above. The modules may be stored in a memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor in various well-known ways. The processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits, and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium, and / or other storage devices. That is, the embodiments described in this document may be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units shown in each drawing may be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information (e.g., information on instructions) or algorithms for implementation may be stored on a digital storage medium.

[0250] In addition, the decoding device and encoding device to which this document is applied may be included in a multimedia broadcast transmitting / receiving device, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video interactive device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, a custom video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, a virtual reality (VR) device, an argumente reality (AR) device, an image telephone video device, a vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, an over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.

[0251] In addition, the processing method to which this document is applied may be produced in the form of a program executed by a computer and may be stored in a computer-readable recording medium. In addition, multimedia data having a data structure according to this document may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium may include, for example, a Blu-ray Disc (BD), a Universal Serial Bus (USB), a ROM, a PROM, an EPROM, an EEPROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device. In addition, the computer-readable recording medium may include a medium embodied in the form of a carrier wave (e.g., transmission via the Internet). In addition, a bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted via a wired or wireless communication network.

[0252] Furthermore, the embodiments of the present document may be embodied in a computer program product having program code, the program code being executable by a computer in accordance with the embodiments of the present document. The program code may be stored on a computer readable carrier.

[0253] FIG. 11 illustrates an example of a content streaming system in which the embodiments disclosed herein can be applied.

[0254] Referring to FIG. 11, the content streaming system applied to the embodiments of this document can broadly include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.

[0255] The encoding server compresses content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmits the bitstream to the streaming server. As another example, if a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.

[0256] The bitstream may be generated by an encoding method or a bitstream generation method applied to an embodiment of this document, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0257] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the 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, and in this case, the control server controls commands / responses between devices in the content streaming system.

[0258] The streaming server can receive content from a media repository and / or an encoding server. For example, when the content is received from the encoding server, the content can be received in real time. In this case, the streaming server can store the bitstream for a certain period of time to provide a smooth streaming service.

[0259] Examples of the user devices include mobile phones, smart phones, laptop computers, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, slate PCs, tablet PCs, ultrabooks, wearable devices (e.g., smartwatches, smart glass, head mounted displays (HMDs), digital TVs, desktop computers, and digital signage.

[0260] Each server in the content streaming system can be operated as a distributed server, in which case data received at each server can be processed in a distributed manner.

[0261] The claims herein may be combined in various ways. For example, the technical features of the method claims herein may be combined and embodied in an apparatus, the technical features of the device claims herein may be combined and embodied in a method, the technical features of the method claims herein and the technical features of the device claims herein may be combined and embodied in an apparatus, and the technical features of the method claims herein and the technical features of the device claims herein may be combined and embodied in a method.

Claims

1. 1. An image decoding method performed by a decoding device, comprising: obtaining image information including quantized escape value information in palette mode from a bitstream; deriving an escape value for a current block based on the quantized escape value information; generating a reconstruction sample based on the escape value; the escape value is derived based on the quantized escape value information and a quantization parameter; The quantization parameter is derived based on information about a minimum quantization parameter for a transform skip mode; the information about the minimum quantization parameter for the transform skip mode is a syntax element obtained from a sequence parameter set (SPS) included in the image information; The quantization parameter comprises a value equal to or greater than a minimum quantization parameter derived from information about the minimum quantization parameter for the transform skip mode.

2. 1. An image encoding method performed by an encoding device, comprising: deriving an escape value in palette mode for the current block; deriving a quantized escape value based on the escape value; encoding image information including said quantized escape value information; the quantized escape value is derived based on a quantization parameter for the escape value in the current block; The quantization parameter is determined based on information about a minimum quantization parameter for a transform skip mode; the information about the minimum quantization parameter for the transform skip mode is a syntax element obtained from a sequence parameter set (SPS) included in the image information; The quantization parameter comprises a value equal to or greater than a minimum quantization parameter derived from information about the minimum quantization parameter for the transform skip mode.

3. A method for transmitting data for an image, comprising the steps of: generating a bitstream, the bitstream being generated based on deriving an escape value in a palette mode for a current block, deriving a quantized escape value based on the escape value, and encoding image information including the quantized escape value information to generate the bitstream; transmitting the data including the bitstream; the quantized escape value is derived based on a quantization parameter for the escape value in the current block; The quantization parameter is determined based on information about a minimum quantization parameter for a transform skip mode; the information about the minimum quantization parameter for the transform skip mode is a syntax element obtained from a sequence parameter set (SPS) included in the image information; The method of transmission, wherein the quantization parameter comprises a value equal to or greater than a minimum quantization parameter derived from information about the minimum quantization parameter for the transform skip mode.

Citation Information

Patent Citations

  • Palette prediction in palette-based video coding

    JP2016529783A

  • Palette mode coding for video coding

    JP2018507612A

  • Restriction of Escape Pixel Signaling Values in Palette Mode Video Coding

    JP2018532319A