Video coding method and apparatus based on deblocking filtering
The video coding method employs BDPCM-based deblocking filtering to enhance the efficiency of video coding, addressing the challenges of high-resolution video data transmission and storage by optimizing filtering processes and reducing unnecessary operations.
Patent Information
- Application Number
- JP2023206942
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-07-09
- Filing Date
- 2023-12-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-07-09
AI Technical Summary
The increasing demand for high-resolution and high-quality video data, particularly in immersive media formats like VR and AR, has led to challenges in efficiently compressing, transmitting, and storing video data, resulting in higher costs and inefficiencies in existing video coding technologies.
A video coding method and apparatus that utilizes deblocking filtering based on Block Differential Pulse Code Modulation (BDPCM) to improve the efficiency of video coding, particularly for chroma components, by optimizing deblocking filtering processes and reducing unnecessary filtering when BDPCM is applied.
This approach enhances overall video compression efficiency and improves deblocking filtering efficiency, specifically for chroma components, thereby reducing costs and improving the quality of video data transmission and storage.
Smart Images

Figure 0007569918000027 
Figure 0007569918000028 
Figure 0007569918000029
Abstract
Description
[Technical field]
[0001] This document relates to video coding techniques, and more particularly to a video coding method and apparatus based on deblocking filtering in a video coding system. [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 transmitted relatively increases compared to existing image / video data, so when transmitting image data using existing media such as wired or wireless broadband lines or storing image / video data using existing storage media, the transmission and storage costs increase.
[0003] In addition, interest in and demand for immersive media such as virtual reality (VR), artificial reality (AR) content, and holograms has been increasing in recent years, and the broadcast of images / videos that have different image characteristics from real images, such as game images, is increasing.
[0004] Accordingly, there is a demand for a highly efficient image / video compression technology in order to effectively compress and transmit, store, and play back high-resolution, high-quality image / video information having the above-mentioned various characteristics. Summary of the Invention [Problem to be solved by the invention]
[0005] The technical problem of this document is to provide a method and apparatus for improving video coding efficiency.
[0006] Another technical problem of this document is to provide a method and apparatus for improving the efficiency of transform index coding in video coding based on deblocking filtering.
[0007] Another technical problem of this document is to provide a deblocking filtering method and apparatus for video coded based on BDPCM.
[0008] Another technical object of the present invention is to provide a video coding method and apparatus for chroma components coded based on BDPCM. [Means for solving the problem]
[0009] According to an embodiment of the present document, there is provided a video decoding method performed by a decoding device, the method including the steps of receiving a bitstream including BDPCM information, deriving a residual sample for a current block based on the BDPCM information, deriving a predictive sample for the current block based on the BDPCM information, generating a reconstructed picture based on the residual sample and the predictive sample, and performing deblocking filtering on the reconstructed picture, where the deblocking filtering may not be performed if BDPCM is applied to the current block.
[0010] The BDPCM information includes flag information indicating whether the BDPCM is applied to the current block, and if the flag information is 1, a boundary strength (bS) for the deblocking filtering can be derived as 0.
[0011] The current block may include a luma coding block or a chroma coding block.
[0012] If the tree type of the current block is a single tree type, the current block is the chroma coding block, and the flag information is 1, the boundary strength may be derived as 1.
[0013] The step of deriving the residual sample may include a step of deriving quantized transform coefficients for the current block based on the BDPCM, and performing inverse quantization on the quantized transform coefficients to derive transform coefficients.
[0014] Based on directional information for the direction in which the BDPCM is performed, quantized transform coefficients can be derived.
[0015] Based on the direction in which the BDPCM is performed, intra-predicted samples for the current block can be derived.
[0016] According to an embodiment of the present document, there is provided a video encoding method performed by an encoding device, the method including: deriving a prediction sample for a current block based on a BDPCM, deriving a residual sample for the current block based on the prediction sample, generating a reconstructed picture based on the residual sample and the prediction sample, and performing deblocking filtering on the reconstructed picture, the method including: deriving quantized residual information based on the BDPCM, and encoding the quantized residual information and BDPCM information for the BDPCM, where the deblocking filtering may not be performed if a BDPCM is applied to the current block.
[0017] According to yet another embodiment of the present document, a digital storage medium storing encoded video information generated according to a video encoding method performed by an encoding device and video data including a bitstream may be provided.
[0018] According to yet another embodiment of the present document, a digital storage medium may be provided that stores encoded video information and video data including a bitstream that causes a decoding device to perform the video decoding method. Effect of the Invention
[0019] This document can improve the overall image / video compression efficiency.
[0020] According to the present disclosure, it is possible to improve the efficiency of deblocking filtering in BDPCM-based video coding.
[0021] According to the present disclosure, it is possible to improve the efficiency of deblocking filtering of chroma images based on BDPCM.
[0022] The effects obtained through a specific example of the present specification 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 the present specification. Thus, the specific effects of the present specification are not limited to those explicitly described in the present specification, and may include various effects that can be understood or derive from the technical features of the present specification. [Brief description of the drawings]
[0023] [Figure 1] 1 illustrates generally an example of a video / image coding system to which this document may be applied;
[0024] [Diagram 2] 1 is a diagram illustrating the configuration of a video / image encoding device to which this document can be applied.
[0025] [Diagram 3]A diagram illustrating the configuration of a video / image decoding device to which this document can be applied.
[0026] [Figure 4] 1 is a control flow diagram illustrating a deblocking filtering process according to an example.
[0027] [Diagram 5] FIG. 13 shows samples located on a block boundary.
[0028] [Figure 6] FIG. 1 illustrates a method for determining bS according to one embodiment of the present document.
[0029] [Figure 7] 1 is a control flow diagram illustrating a video decoding method according to an embodiment of the present document.
[0030] [Figure 8] 1 is a control flow diagram illustrating a video encoding method according to an embodiment of the present document.
[0031] [Figure 9] 1 exemplarily illustrates a structural diagram of a content streaming system to which this document applies; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0032] Although this document can be modified in various ways and can have various embodiments, 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 only to describe a specific embodiment and are not intended to limit the technical ideas in this document. A singular expression includes a plural expression unless the context clearly indicates otherwise. In this specification, terms such as "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 possibility of the presence or addition of one or more different features, numbers, steps, operations, components, parts, or combinations thereof.
[0033] Meanwhile, each component in the drawings described in this document is shown 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, and 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.
[0034] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in 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 will be omitted.
[0035] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be related to the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), next-generation video / image coding standards beyond VVC, or other video coding related standards (e.g., the High Efficiency Video Coding (HEVC) standard (ITU-T Rec. H.265), the essential video coding (EVC) standard, the AVS2 standard, etc.).
[0036] Various embodiments relating to video / image coding are presented herein and, unless otherwise stated, the embodiments may be implemented in combination with each other.
[0037] In this document, video may refer to a collection of a series of images over time. A picture generally refers to a unit that shows one image at a specific time, and a slice / tile is a unit that constitutes a part of a picture in coding. A slice / tile may contain one or more coding tree units (CTUs). One picture may be composed of one or more slices / tiles. One picture may be composed of one or more tile groups. One tile group may contain one or more tiles.
[0038] A pixel or a pel can mean the smallest unit that constitutes one picture (or image). A term corresponding to a pixel can also be used as a "sample." A sample can generally refer to a pixel or a pixel value, can refer to only a pixel / pixel value of a luma component, or can refer to only a pixel / pixel value of a chroma component. Alternatively, a sample can mean a pixel value in the spatial domain, or can mean a transform coefficient in the frequency domain when such a pixel value is transformed into the frequency domain.
[0039] 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 about the region. One unit may include one luma block and two chroma (e.g., cb, cr) blocks. The unit may be used in combination with terms such as block or area, depending on the case. In a general case, an M×N block may include a set (or array) of samples or transform coefficients consisting of M columns and N rows.
[0040] In this document, the term “ / ” and “,” should be interpreted to indicate “and / or.” For instance, the expression “A / B” may mean “A and / or B.” Further, “A, B” may mean “A and / or B.” Further, “A / B / C” may mean “at least one of A, B, and / or C.” Also, “A, B, C” may mean “at least one of A, B, and / or C.”
[0041] Further, in this document, the term “or” should be interpreted to indicate “and / or.” For instance, the expression “A or B” may comprise 1) only A, 2) only B, and / or 3) both A and B. In other words, the term “or” in this document should be interpreted to indicate “additionally or alternatively.”
[0042] In this specification, "at least one of A and B" may mean "only A," "only B," or "both A and B." In addition, in this specification, the expressions "at least one of A or B" and "at least one of A and / or B" may be interpreted similarly to "at least one of A and B."
[0043] In addition, in this specification, "at least one of A, B and C" may mean "only A," "only B," "only C," or "any combination of A, B and C." Furthermore, "at least one of A, B or C" and "at least one of A, B and / or C" may mean "at least one of A, B and C."
[0044] In addition, parentheses used in this specification 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 specification is not limited to "intra prediction," and "intra prediction" may be proposed as an example of "prediction." In addition, even when "prediction (i.e., intra prediction)" is displayed, "intra prediction" may be proposed as an example of "prediction."
[0045] Technical features individually described in one drawing in this specification may be embodied individually or simultaneously.
[0046] FIG. 1 illustrates a schematic diagram of an example video / image coding system to which this document may be applied.
[0047] Referring to Figure 1, the video / image coding system may include a source device and a receiving device. The source device may transmit encoded video / image information or data to the receiving device in the form of a file or streaming through a digital storage medium or a network.
[0048] 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 / video encoding device, and the decoding device may be referred to as a video / video 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.
[0049] 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.
[0050] 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.
[0051] The transmitting unit may 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 may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit may include an element for generating a media file through a predetermined file format and may include an element for transmission via a broadcasting / communication network. The receiving unit may receive / extract the bitstream and transmit it to a decoding device.
[0052] 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.
[0053] The renderer may render the decoded video / image, and the rendered video / image may be displayed via a display unit.
[0054] 2 is a diagram for explaining a schematic configuration of a video / image encoding device to which the present document can be applied. Hereinafter, the video encoding device may include an image encoding device.
[0055] Referring to 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 chipset 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.
[0056] The image division unit 210 may divide an input image (or a picture or a 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 this document may be performed based on the final coding unit that is not further divided. In this case, the largest coding unit may be used as the final coding unit immediately 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 the coding unit of the 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) or a transform unit (TU). 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.
[0057] The unit may be used interchangeably with terms such as block or area, depending on the case. In the general case, an M×N block may refer to a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally refer to a pixel or pixel value, or 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 corresponding to a pixel or pel of one picture (or image).
[0058] The subtraction unit 231 may subtract a prediction signal (predicted block, prediction sample, or prediction sample array) output from the prediction unit 220 from an input image signal (original block, original sample, or original sample array) to generate a residual signal (residual block, residual sample, or residual sample array), and the generated residual signal is transmitted to the conversion unit 232. The prediction unit 220 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 220 may determine whether intra prediction or inter prediction is applied in units of the current block or 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 described later in the description of each prediction mode. The prediction information may be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0059] 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. Prediction modes in intra prediction 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 a prediction mode to be applied to the current block using prediction modes applied to neighboring blocks.
[0060] The inter prediction unit 221 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 the correlation of the motion information between the 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 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 construct a motion information candidate list based on neighboring blocks and derive a motion vector and / or a reference picture index of the current block. 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 neighboring blocks 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 current block can be indicated by using the motion vector of a neighboring block as a motion vector predictor and signaling the motion vector difference.
[0061] The prediction unit 220 may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, as well as intra prediction and inter prediction simultaneously. This may be called combined inter and intra prediction (CIIP). The prediction unit may also perform intra block copy (IBC) for prediction of a block. The intra block copy may be used for coding of content images / moving images such as games, for example, as in 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.
[0062] The prediction signal generated through 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 a discrete cosine transform (DCT), a discrete sine transform (DST), 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 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, or may be applied to non-square variable-sized blocks.
[0063] The quantization unit 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 240, and the entropy encoding unit 240 may encode the quantized signal (information on the quantized transform coefficients) and output the encoded signal as 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), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 240 may also encode information required for video / image reconstruction (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 the form of a bitstream in network abstraction layer (NAL) unit units. 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. Signaling / transmitted information and / or syntax elements described later in this document 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, where the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as a USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting the signal output from the entropy encoding unit 240 and / or a storing unit (not shown) for storing the signal may be configured as an internal / external element of the encoding apparatus 200, or the transmitting unit may be included in the entropy encoding unit 240.
[0064] 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 reconstructed by applying inverse quantization and inverse transform to the quantized transform coefficients via the inverse quantizer 234 and the inverse transformer 235. The adder 250 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample, or reconstructed sample array) by adding the reconstructed residual signal to the prediction signal output from the predictor 220. When there is no residual for the current block, such as when a skip mode is applied, the predicted block may be used as the reconstructed block. 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.
[0065] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied during picture encoding and / or reconstruction.
[0066] 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 (SAO), 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 290, as will be described later in the description of each filtering method. The filtering information may be encoded by the entropy encoding unit 290 and output in the form of a bitstream.
[0067] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter prediction unit 280. When inter prediction is applied through this, the encoding apparatus may avoid a mismatch in prediction between the encoding apparatus 200 and the decoding apparatus, and may also improve encoding efficiency.
[0068] 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 a reconstructed sample of a reconstructed block in the current picture and transmit it to the intra prediction unit 222.
[0069] FIG. 3 is a diagram illustrating the schematic configuration of a video / image decoding device to which this document can be applied.
[0070] Referring to 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.
[0071] When a bitstream including video / image information is input, the decoding apparatus 300 can restore an image corresponding to the process in which the video / image information is processed by the encoding apparatus of FIG. 2. For example, the decoding apparatus 300 can derive units / blocks based on information on block division acquired 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 may be, for example, a coding unit, and the coding unit may 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 may 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.
[0072] The decoding apparatus 300 may receive a signal output from the encoding apparatus of FIG. 2 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, decoding information of neighboring and to-be-decoded blocks, or information of symbols / bins decoded in a previous step, predict the occurrence probability of the 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.At that time, 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 among the information decoded by the entropy decoding unit 310 may be provided to the prediction unit 330, and information on the residual on which the entropy decoding is performed by the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the inverse quantization unit 321. In addition, filtering information among the information decoded by the entropy decoding unit 310 may be provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) for receiving 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 prediction unit 330, the addition unit 340, the filtering unit 350, and the memory 360.
[0073] 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 scanning order performed in an 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) and obtain transform coefficients.
[0074] The inverse transform unit 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0075] 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 the prediction information output from the entropy decoding unit 310, and may determine a specific intra / inter prediction mode.
[0076] The prediction unit may generate a prediction signal based on various prediction methods described below. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, as well as intra prediction and inter prediction simultaneously. This may be called combined inter and intra prediction (CIIP). The prediction unit may also perform intra block copy (IBC) for prediction of a block. The intra block copy 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.
[0077] The intra prediction unit 332 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 far away from the current block depending on the prediction mode. Prediction modes in intra prediction may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 332 may also determine a prediction mode to be applied to the current block using prediction modes applied to neighboring blocks.
[0078] The inter prediction unit 331 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. At that time, 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 331 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 the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information regarding the prediction may include information indicating a mode of inter prediction for the current block.
[0079] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the acquired residual signal to the prediction signal (predicted block, predicted sample array) output from the prediction unit 330. When there is no residual for the current block, such as when the skip mode is applied, the predicted block may be used as the reconstructed block.
[0080] 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.
[0081] Meanwhile, luma mapping with chroma scaling (LMCS) can be applied during the picture decoding process.
[0082] 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.
[0083] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter prediction unit 331. 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 331 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 332.
[0084] In this specification, the embodiments described for the prediction unit 330, inverse quantization unit 321, inverse transform unit 322, and filtering unit 350, etc. of the decoding device 300 can be applied identically or correspondingly to the prediction unit 220, inverse quantization unit 234, inverse transform unit 235, and filtering unit 260, etc. of the decoding device 200, respectively.
[0085] As described above, prediction is performed to improve compression efficiency when performing video coding. Through this, 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 video coding efficiency by signaling information on the residual between the original block and the predicted block (residual information) to the decoding device, rather than the original sample value of the original block itself. The decoding device can derive a residual block including residual samples based on the residual information, combine the residual block with the predicted block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.
[0086] 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, perform a quantization procedure on the transform coefficients to derive quantized transform coefficients, and signal related residual information (through a bitstream) to a 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. Also, the encoding apparatus may derive a residual block by inverse quantizing / inverse transforming the quantized transform coefficients for reference for inter-prediction of a subsequent picture, and generate a reconstructed picture based on the residual block.
[0087] Meanwhile, according to one embodiment, a block differential pulse coded modulation (BDPCM) technique may be used. BDPCM is also called quantized residual block-based Delta Pulse Code Modulation (RDPCM).
[0088] When predicting a block by applying BDPCM, the reconstructed samples are used to predict the rows or columns of the block line-by-line. In this case, the reference pixels used may be unfiltered samples. The direction of BDPCM may indicate whether vertical or horizontal prediction is used. A prediction error is quantized in the spatial domain, and a pixel is reconstructed by adding the dequantized prediction error to the prediction. As an alternative to such BDPCM, a quantized residual domain BDPCM may be proposed, and the prediction direction and signaling may be the same as those of the BDPCM applied to the spatial domain. That is, the quantized coefficients themselves may be overlapped as in DPCM (Delta Pulse Code Modulation) through the quantized residual domain BDPCM, and then the residual may be reconstructed through dequantization. Therefore, the quantized residual domain BDPCM may be used to mean applying DPCM at the residual coding end. The quantized residual domain used hereinafter refers to a domain for quantized residual samples, in which the residual derived based on the prediction is quantized without transformation.
[0089] For a block of size M (rows) x N (columns), we use the unfiltered samples from the left or upper boundary samples to perform intra prediction horizontally (copying the surrounding pixel lines on the left side to the predicted block line-by-line) or intra prediction vertically (copying the surrounding lines on the upper side to the predicted block line-by-line). (i,j) Let us assume that (0≦i≦M-1, 0≦j≦N-1). Then, the residual r (i,j) Let Q(r (i,j) ) (0≦i≦M-1, 0≦j≦N-1), where residual means the difference between the original block and the predicted block.
[0090] Then, when we apply BDPCM to the quantized residual samples, A transformed M×N array with JPEG0007569918000001.jpg10155 as the component JPEG0007569918000002.jpg9152 is derived.
[0091] When vertical BDPCM is signaled, JPEG0007569918000003.jpg10155 is expressed by the following formula:
[0092]
number
[0093] Applying the same to horizontal prediction, the residual quantized samples are:
[0094]
number
[0095] Quantized residual samples ( JPEG0007569918000006.jpg9152) is sent to a decoding device.
[0096] In the decoding device, Q(r (i,j) The above operations are performed in reverse to derive i, j, n, n−1, 0≦i≦M−1, 0≦j≦N−1.
[0097] For vertical prediction, the following formula can be applied:
[0098]
number
[0099] And for horizontal prediction, the following formula can be applied:
[0100]
number
[0101] Dequantized quantized residual ( JPEG0007569918000009.jpg10150) is combined with the intra block prediction to derive the reconstructed sample values.
[0102] The main advantage of such a technique is that the inverse BDPCM can be performed by simply adding a predictor on the fly during the parsing of the coefficients or even after parsing the coefficients.
[0103] As described above, BDPCM can be applied to the quantized residual domain, which can include quantized residuals (or quantized residual coefficients), and then transform skip can be applied to the residuals. That is, transform can be skipped and quantization can be applied to the residual samples. Alternatively, the quantized residual domain can include quantized transform coefficients. A flag for whether or not BDPCM is applied can be signaled at the sequence level (SPS), and such a flag can be signaled only if it is signaled that transform skip mode is possible in the SPS.
[0104] When BDPCM is applied, intra prediction for the quantized residual domain is performed on the entire block by sample copying according to a prediction direction similar to the intra prediction direction (e.g., vertical prediction or horizontal prediction). The residual is quantized, and a delta value, i.e., a difference value ( JPEG0007569918000010.jpg9155) is coded.
[0105] When a CU is coded by intra prediction, flag information indicating whether BDPCM is applicable can be transmitted at the CU level. That is, the flag information indicates whether normal intra coding is applied or BDPCM is applied. When BDPCM is applied, a prediction direction flag of BDPCM indicating whether the prediction direction is horizontal or vertical can be transmitted. Then, the block is predicted through a normal horizontal or vertical intra prediction process using unfiltered reference samples. The residuals are quantized, and the difference value between each quantized residual and its predictor, for example, the already quantized residual at a neighboring position in the horizontal or vertical direction along the prediction direction of BDPCM, is coded.
[0106] When BDPCM is applicable, the flag information can be transmitted at the CU level when the CU size is smaller than or equal to MaxTsSize (maximum transform skip size) for luma samples and the CU is coded by intra prediction, where MaxTsSize means the maximum block size for which the transform skip mode is allowed.
[0107] The syntax elements and their corresponding semantics for the above content are shown in the table below.
[0108] [Table 1]
[0109] [Table 2]
[0110] The syntax element 'intra_bdpcm_flag' in Table 1 indicates whether BDPCM is applied to the current luma coding block, as described in Table 2. If the value of 'intra_bdpcm_flag' is 1, the transform for the coding block is skipped, and the prediction mode for the coding block can be set to horizontal or vertical depending on 'intra_bdpcm_dir_flag' indicating the prediction direction. If 'intra_bdpcm_flag' is not present, the value is considered to be 0.
[0111] When "intra_bdpcm_dir_flag", which indicates the prediction direction, is 0, it indicates that the prediction direction of BDPCM is horizontal, and when the value is 1, it indicates that the prediction direction of BDPCM is vertical.
[0112] Meanwhile, as described above, an in-loop filtering procedure can be performed on the reconstructed picture. A modified reconstructed picture can be generated through the in-loop filtering procedure, and the modified reconstructed picture can be output as a decoded picture in a decoding device. The modified reconstructed picture can be stored in a decoded picture buffer or memory of the encoding device / decoding device and can be used as a reference picture in an inter prediction procedure when encoding / decoding a subsequent picture.
[0113] The in-loop filtering procedure may include a deblocking filtering procedure, a sample adaptive offset (SAO) procedure, and / or an adaptive loop filter (ALF) procedure, etc. In this case, 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 deblocking filtering procedure may be applied to a reconstructed picture, and then the SAO procedure may be performed. Alternatively, for example, the deblocking filtering procedure may be applied to a reconstructed picture, and then the ALF procedure may be performed. This may also be performed in an encoding device.
[0114] Deblocking filtering is a filtering technique that removes distortions that occur at boundaries between blocks in a restored picture. The deblocking filtering procedure may, for example, derive a target boundary in a restored picture, determine a boundary strength (bS) for the target boundary, and perform deblocking filtering on the target boundary based on the bS. The bS may be determined based on the prediction modes of two blocks adjacent to the target boundary, the difference between motion vectors, whether the reference pictures are the same, whether there are valid coefficients that are not 0, etc.
[0115] SAO is a method of compensating for an offset difference between a reconstructed picture and an original picture on a sample-by-sample basis, and may be applied based on a type such as a band offset, an edge offset, etc. According to SAO, samples may be classified into different categories according to each SAO type, and an offset value may be added to each sample based on the category. Filtering information for SAO may include information on whether SAO is applied, SAO type information, SAO offset value information, etc. SAO may be applied to a reconstructed picture after the deblocking filtering is applied.
[0116] An adaptive loop filter (ALF) is a technique for filtering a reconstructed picture on a sample-by-sample basis based on a filter coefficient according to a filter shape. An encoding apparatus can determine whether or not to apply an ALF, the shape of the ALF, and / or a filtering coefficient of the ALF by comparing a reconstructed picture with an original picture, and can signal the same to a decoding apparatus. That is, filtering information for the ALF may include information on whether or not to apply an ALF, ALF filter shape information, ALF filtering coefficient information, etc. The ALF may be applied to a reconstructed picture after the deblocking filtering is applied.
[0117] FIG. 4 is a control flow diagram illustrating a deblocking filtering process according to an example.
[0118] Deblocking filtering is applied to the reconstructed picture. Deblocking filtering is performed on each CU of the reconstructed picture in the same order as the decoding process. First, the vertical corners are filtered (horizontal filtering), then the horizontal corners are filtered (vertical filtering). Deblocking filtering can be applied to the edges of all coding blocks or sub-blocks of the picture and the edges of the transform blocks. The output for deblocking filtering can be referred to as a modified reconstructed picture or a modified reconstructed sample / sample array.
[0119] As shown in FIG. 4, the encoding device and the decoding device can derive a target boundary to be filtered in a reconstructed picture (S1400).
[0120] The encoding and decoding devices can then derive the boundary strength (bS) (S1410).
[0121] bS can be determined based on two blocks toward the target boundary. For example, bS can be determined based on the following table:
[0122] [Table 3-1]
[0123] [Table 3-2]
[0124] Here, p and q indicate samples of two blocks toward the target boundary. For example, p0 may indicate a sample of a left or upper block toward the target boundary, and q0 may indicate a sample of a right or lower block toward the target boundary. If the edge direction of the target boundary is vertical, p0 may indicate a sample of a left block toward the target boundary, and q0 may indicate a sample of a right block toward the target boundary. If the edge direction of the target boundary is horizontal, p0 may indicate a sample of an upper block toward the target boundary, and q0 may indicate a sample of a lower block toward the target boundary.
[0125] The encoding device and the decoding device can apply filtering based on bS (S1420).
[0126] A bS value of 0 means that no filtering is applied to the target boundary. Filtering can be performed based on the strength of the filtering (strong or weak) and / or the length of the filter.
[0127] Meanwhile, the strength of the filter according to the restored average luma level can be derived as follows, and FIG. 5 is a diagram showing samples located on the boundary of a block.
[0128] In HEVC, the filter strength of deblocking filtering is determined by the average quantization parameter qP L The variables β and t C In VVC, deblocking filtering is controlled by the luma level of the reconstructed samples. L By adding an offset to , the strength of the deblocking filtering can be controlled. The restored luma level (LL) can be derived as follows:
[0129]
number
[0130] i is a number between 0 and 3, and k is a sample value p i,k and q i,k The location can be seen in Figure 5.
[0131] Variable qP L can be derived as follows:
[0132]
number
[0133] Here, Q pQ and Q pP are sample q 0,0 and p 0,0 The offset qpOffset value, which indicates the quantization parameter of the coding unit including qp, and depends on the transformation procedure, can be signaled in a sequence parameter set (SPS).
[0134] On the other hand, stronger filtering can be applied to the luma samples. If the samples at one of the boundaries belong to a larger block, a bilinear filter (stronger deblocking filter) can be applied. The samples that belong to the larger block can be defined as the samples that belong to each boundary whose width is greater than or equal to 32 for a vertical boundary, or whose height is greater than or equal to 32 for a horizontal boundary.
[0135] On the other hand, strong filtering on the chroma samples can be performed as follows:
[0136]
number
[0137] The chroma filtering of Equation 7 is performed on a grid of 8x8 chroma samples. Strong filtering of chroma samples can be performed on both block boundaries. Here, chroma filtering is selected when both edges of chroma samples are equal to or greater than 8 in units of chroma samples, and is performed when the following three conditions are met: First, the boundary strength (bS) and the decision for large blocks, second and third, respectively, are the decision for filtering on / off and the decision for strong filtering, which are essentially the same as the decision for HEVC luma blocks. An example of determining bS for a chroma block is shown in the table below.
[0138] [Table 4]
[0139] As per Table 4, deblocking on chroma samples can be performed when bS is 2, or, if a large block boundary is detected, when bS is 1. The second and third conditions are essentially the same as the strong filtering decision applied to HEVC luma samples.
[0140] Meanwhile, in VVC, deblocking filtering can be applied to subblock boundaries, and in one example, deblocking filtering can be performed on an 8x8 grid. The deblocking filtering process can be applied not only to subblock boundaries aligned to an 8x8 grid, but also to CU boundaries.
[0141] Subblock boundaries include prediction unit (PU) boundaries introduced by subblock-based temporal motion vector prediction (STMV) and affine mode, and transform unit (TU) boundaries introduced by subblock transform (SBT) and intra subpartitions (ISP) modes.
[0142] For sub-blocks of an 8x8 grid where SBT or ISP is applied, the same process is applied as that applied for TU deblocking filtering in HEVC: Deblocking filtering is applied to TU boundaries of an 8x8 grid when any sub-block across the edge has a non-zero coefficient.
[0143] For sub-blocks of an 8x8 grid to which STMVP or affine mode is applied, the same process as the TU deblocking filtering process of HEVC is applied. The deblocking filtering is applied to the PU boundaries of the 8x8 grid, taking into account the difference between the motion vectors of the surrounding sub-blocks and the reference picture.
[0144] Hereinafter, a deblocking filtering method may be proposed as part of an in-loop filtering process for a block to which BDPCM is applied. According to one example, in a process of encoding and decoding an image or video, if a luma block is coded with BDPCM in a single tree type, the boundary strength (bS) of the corresponding chroma block may be set to the same value as that of the luma block. That is, if the tree type is a single tree, when calculating bS to determine whether or not deblocking filtering is applied to a block coded with BDPCM, the bS for the chroma block may be determined as follows:
[0145] FIG. 6 is a diagram illustrating a method for determining bS according to one embodiment of the present document.
[0146] As an example, when two blocks are BDPCM coded based on an edge, bS can be induced as 0. That is, in the case of a chroma block, regardless of whether BDPCM is applied or not, in the single tree type, when the corresponding luma block is BDPCM coded, bS of the chroma block can be induced as 0.
[0147] In FIG. 6, the large block on the left side may represent a luma block, and the small block on the right side may be a chroma block with components (Cb and Cr).
[0148] As shown, the bS of the block boundary can be determined according to the coding method of two adjacent luma blocks, and the bS of the chroma block can be set to be the same as the bS of the luma block.
[0149] The two adjacent luma blocks shown at the top are coded by BDPCM and inter prediction, respectively, in which case bS may be set to 1 or 0. The two adjacent luma blocks shown at the bottom are coded by BDPCM and intra prediction, respectively, in which case bS may also be set to 1 or 0. In both cases, the bS of the chroma block may be set to the same as the bS of the luma block.
[0150] In addition, when two adjacent luma blocks, such as the luma block shown in the center, are both coded in the BDPCM manner, the bS for the boundary between the two blocks can be set to 0, and in this case, the bS for the chroma block corresponding to the luma block can also be set to 0 for deblocking filtering.
[0151] Whether or not a luma block is coded in the BDPCM scheme can be signaled by flag information such as intra_bdpcm_flag shown in Table 1.
[0152] In this way, deblocking filtering is not performed when bS is set to 0. That is, according to an example, if two adjacent luma blocks are both coded in the BDPCM scheme, bS of the luma block and the chroma block are set to 0 and deblocking filtering is not performed.
[0153] The method for determining bS is shown in the following table.
[0154] [Table 5-1]
[0155] [Table 5-2]
[0156] [Table 5-3]
[0157] [Table 5-4]
[0158] As described above in Table 5, if the target boundary is a vertical boundary, the left block with respect to the target boundary can be represented as P and the right block with respect to the target boundary can be represented as Q. Also, if the target boundary is a horizontal boundary, the upper block with respect to the target boundary can be represented as P and the lower block with respect to the target boundary can be represented as Q.
[0159] The variable bS[xDi][yDj] for bS can be derived as either 0, 1 or 2.
[0160] As shown in Table 5, if two samples p0 and q0 belonging to adjacent blocks P and Q are coded with BDPCM, i.e., intra_bdpcm_flag is 1, bS[xDi][yDj] is derived as 0. In this case, no deblocking filtering is performed.
[0161] If instead the two samples p0 or q0 are coded in intra prediction mode, bS[xDi][yDj] is set equal to 2.
[0162] If the block edge is also a transform block edge and the sample p0 or q0 is in a transform block which contains one or more non-zero transform coefficient levels, bS[xDi][yDj] is set equal to 1.
[0163] Alternatively, if two blocks are coded in different prediction modes, or different reference pictures or different numbers of motion vectors are used, bS[xDi][yDj] can be derived as 1.
[0164] Meanwhile, as another example, the bdpcm flag information can be signaled as shown in the table below.
[0165] [Table 6]
[0166] Table 6 shows 'sps_bdpcm_enabled_flag' signaled in SPS (Sequence parameter set). When the syntax element 'sps_bdpcm_enabled_flag' is 1, it indicates that flag information indicating whether BDPCM is applied to a coding unit where intra prediction is performed, i.e., 'intra_bdpcm_luma_flag' and 'intra_bdpcm_chroma_flag', is present in the coding unit.
[0167] If the syntax element "sps_bdpcm_enabled_flag" is not present, its value is assumed to be 0.
[0168] [Table 7-1]
[0169] [Table 7-2]
[0170] The syntax elements "intra_bdpcm_luma_flag" and "intra_bdpcm_chroma_flag" in Table 6 indicate whether BDPCM is applied to the current luma coding block or the current chroma coding block, as described in Table 7. If the value of "intra_bdpcm_luma_flag" or "intra_bdpcm_chroma_flag" is 1, the transform for the coding block is skipped, and the prediction mode for the coding block can be set to horizontal or vertical by "intra_bdpcm_luma_dir_flag" or "intra_bdpcm_chroma_dir_flag", which indicates the prediction direction. If "intra_bdpcm_luma_flag" or "intra_bdpcm_chroma_flag" is not present, the value is considered to be 0.
[0171] 'intra_bdpcm_chroma_flag' can be signaled for chroma coding blocks where the current block is either single-tree type or dual-tree chroma.
[0172] When "intra_bdpcm_luma_dir_flag" or "intra_bdpcm_chroma_dir_flag", which indicates the prediction direction, is 0, it indicates that the prediction direction of BDPCM is the horizontal direction, and when the value is 1, it indicates that the prediction direction of BDPCM is the vertical direction.
[0173] The method of determining Bs based on the flag information in Tables 6 and 7 is as follows.
[0174] [Table 8]
[0175] As shown in Table 8, in one example, whether two adjacent luma blocks are coded with BDPCM can be indicated by intra_bdpcm_luma_flag, and if the value of intra_bdpcm_luma_flag is 1, bS[xDi][yDj] for the luma blocks is derived as 0.
[0176] In addition, whether two adjacent chroma blocks are BDPCM coded can be indicated by intra_bdpcm_chroma_flag. If the value of intra_bdpcm_chroma_flag is 1, bS[xDi][yDj] for the luma block is derived as 0.
[0177] That is, flag information for BDPCM may be signaled for each of the luma block and the chroma block, and if the flag value is 1, bS for deblocking filtering may be set to 0. That is, deblocking filtering may not be performed on blocks coded in the BDPCM scheme.
[0178] The following drawings are created to explain a specific example of the present specification. The names of specific devices and names of specific signals / messages / fields described in the drawings are presented for illustrative purposes only, and the technical features of the present specification are not limited to the specific names used in the following drawings.
[0179] FIG. 7 is a control flow diagram illustrating a video decoding method according to an embodiment of the present document.
[0180] The decoding apparatus 300 receives coding information, such as BDPCM information, from a bitstream (S710).
[0181] The BDPCM information may include flag information of the BDPCM indicating whether the BDPCM is applied to the current block and direction information regarding the direction in which the BDPCM is executed.
[0182] If a BDPCM is applied to the current block, the flag value of the BDPCM may be 1, and if a BDPCM is not applied to the current block, the flag value of the BDPCM may be 0.
[0183] Meanwhile, the tree type of the current block may be classified into a single tree (SINGLE_TREE) or a dual tree (DUAL_TREE) depending on whether the luma block and the corresponding chroma block have separate partition structures. If the chroma block has the same partition structure as the luma block, it may be indicated as a single tree, and if the chroma component block has a partition structure different from that of the luma component block, it may be indicated as a dual tree. As an example, BDPCM may be applied separately to the luma block or chroma blocks of the current block. If BDPCM is applied to the luma block, a transform index for the luma block may not be received, and if BDPCM is applied to the chroma block, a transform index for the chroma block may not be received.
[0184] If the tree structure of the current block is a dual tree, BDPCM can be applied to only one of the component blocks, and if the current block has a single tree structure, BDPCM can be applied to only one of the component blocks.
[0185] Meanwhile, the direction information for BDPCM can indicate the horizontal or vertical direction, and quantization information is derived according to the direction information, so that a prediction sample can be derived.
[0186] The decoding apparatus 300 may derive quantized transform coefficients for the current block, i.e., untransformed quantized residual samples, based on the BDPCM, and perform inverse quantization on the quantized residual samples to derive residual samples (S720).
[0187] When BDPCM is applied to the current block, the residual information received by the decoding apparatus 300 may be a difference value of the quantized residual. Depending on the direction of the BDPCM, a difference value of the quantized residual of a specific line and a previous vertical or horizontal line may be received, and the decoding apparatus 300 may derive the quantized residual of the specific line by adding the quantized residual value of the previous vertical or horizontal line to the difference value of the received quantized residual. The quantized residual may be derived based on Equation 3 or Equation 4.
[0188] As described above, when BDPCM is applied to the current block, the dequantized transform coefficients can be derived from the residual samples without going through a transform process.
[0189] The intra prediction unit 331 may perform intra prediction on the current block based on BDPCM information, i.e., information on a direction in which BDPCM is performed, and derive a prediction sample (S730).
[0190] Once BDPCM is applied to the current block, intra prediction can be performed using it, which may mean that BDPCM can only be applied to intra slices or intra coding blocks predicted with intra mode.
[0191] Intra prediction is performed based on directional information for the BDPCM, and the intra prediction mode of the current block can be either a horizontal mode or a vertical mode.
[0192] The decoding apparatus 300 may generate a reconstructed picture based on the derived residual samples and the prediction samples (S740).
[0193] The decoding apparatus 300 may perform deblocking filtering, which is one type of in-loop filtering, on the reconstructed picture based on the BDPCM information (S750). At this time, if the flag information of the BDPCM is 1, the boundary strength (Bs) may be derived as 0, and deblocking filtering may not be performed.
[0194] As an example, when a luma block is coded with BDPCM in a single tree type, the boundary strength (bS) of the corresponding chroma block may be set to the same as the luma block.
[0195] If two blocks are BDPCM coded based on the edge between the blocks, bS can be induced to be 0. That is, in the case of a chroma block, regardless of whether BDPCM is applied or not, in the single tree type, if the corresponding luma block is BDPCM coded, bS of the chroma block can be induced to be 0.
[0196] Thus, deblocking filtering is not performed when bS is set to 0. That is, for example, if two adjacent luma blocks are both coded in the BDPCM scheme, the bS of the luma block and the chroma block are set to 0 and deblocking filtering is not performed.
[0197] Or, according to another example, whether two adjacent luma blocks are coded with BDPCM can be indicated by intra_bdpcm_luma_flag, and when the value of intra_bdpcm_luma_flag is 1, bS[xDi][yDj] for the luma blocks is derived as 0. Also, whether two adjacent chroma blocks are coded with BDPCM can be indicated by intra_bdpcm_chroma_flag, and when the value of intra_bdpcm_chroma_flag is 1, bS[xDi][yDj] for the luma blocks is derived as 0.
[0198] That is, for each of the luma block and the chroma block, flag information for BDPCM may be signaled, and if the flag value is 1, bS for deblocking filtering may be set to 0. That is, deblocking filtering may not be performed on blocks coded in the BDPCM scheme.
[0199] To summarize, the BDPCM information received by the decoding device includes flag information indicating whether BDPCM is applied to the current block, and if the flag information is 1, the boundary strength (bS) for deblocking filtering can be derived as 0.
[0200] At that time, the current block can be either a luma coding block or a chroma coding block, and if the tree type of the current block is a single tree type and it is a chroma coding block, if the flag information is 1, the boundary strength can be derived as 1.
[0201] The following drawings are created to explain a specific example of the present specification. The names of specific devices and names of specific signals / messages / fields described in the drawings are presented for illustrative purposes only, and the technical features of the present specification are not limited to the specific names used in the following drawings.
[0202] FIG. 8 is a control flow diagram illustrating a video encoding method according to an embodiment of the present document.
[0203] The encoding apparatus 200 may derive a prediction sample for the current block based on the BDPCM (S810).
[0204] The encoding apparatus 200 may derive intra prediction samples for the current block based on a specific direction in which the BDPCM is performed. The specific direction may be a vertical direction or a horizontal direction, and a prediction sample for the current block may be generated according to the corresponding intra prediction mode.
[0205] Meanwhile, the tree type of the current block may be classified into a single tree (SINGLE_TREE) or a dual tree (DUAL_TREE) depending on whether the luma block and the corresponding chroma block have separate partition structures. If the chroma block has the same partition structure as the luma block, it may be indicated as a single tree, and if the chroma component block has a partition structure different from that of the luma component block, it may be indicated as a dual tree. As an example, BDPCM may be applied separately to the luma block or chroma block of the current block.
[0206] If the tree structure of the current block is a dual tree, the BDPCM can be applied to only one of the component blocks, and if the current block has a single tree structure, the BDPCM can be applied to only one of the component blocks.
[0207] Alternatively, according to one example, BDPCM can be applied only if the width of the current block is less than or equal to a first threshold and the height of the current block is less than or equal to a second threshold, where the first and second thresholds may be 32 and may be set to the maximum height or width of the transformation block on which the transformation is performed.
[0208] The encoding apparatus 200 may derive a residual sample for the current block based on the prediction sample (S820), and generate a reconstructed picture based on the residual sample and the prediction sample (S830).
[0209] The encoding apparatus 200 may perform deblocking filtering, which is one type of in-loop filtering, on the reconstructed picture based on the BDPCM information (S840). In this case, if BDPCM is applied to the current block, the boundary strength may be derived as 0, and deblocking filtering may not be performed.
[0210] As an example, when a luma block is coded with BDPCM in a single tree type, the boundary strength (bS) of the corresponding chroma block may be set to the same as the luma block.
[0211] If two blocks are BDPCM coded based on the edge between the blocks, bS can be induced to be 0. That is, in the case of a chroma block, regardless of whether BDPCM is applied or not, in the single tree type, if the corresponding luma block is BDPCM coded, bS of the chroma block can be induced to be 0.
[0212] Thus, deblocking filtering is not performed when bS is set to 0. That is, for example, if two adjacent luma blocks are both coded in the BDPCM scheme, the bS of the luma block and the chroma block are set to 0 and deblocking filtering is not performed.
[0213] Or, according to another example, bS[xDi][yDj] for a luma block can be derived as 0 depending on whether the two luma blocks are coded with BDPCM, and bS[xDi][yDj] for a chroma block can be derived as 0 depending on whether the two chroma blocks are coded with BDPCM.
[0214] Also, flag information for BDPCM may be coded for each of the luma block and the chroma block, and if the flag value is 1, bS for deblocking filtering may be set to 0. That is, deblocking filtering may not be performed on blocks coded in the BDPCM scheme.
[0215] Thereafter, the encoding apparatus 200 can derive the quantized residual information based on the BDPCM.
[0216] The encoding apparatus 200 may derive a difference value between a quantized residual sample of a specific line and a quantized residual sample of a previous vertical or horizontal line and the specific line using quantized residual information. That is, a difference value of a quantized residual that is not a normal residual is generated using residual information and may be derived based on Equation 1 or Equation 2.
[0217] The encoding apparatus 200 may encode the quantized residual information and coding information for the current block, for example, BDPCM information for the BDPCM (S850).
[0218] The BDPCM information may include flag information of the BDPCM indicating whether the BDPCM is applied to the current block, and direction information regarding the direction in which the BDPCM is executed.
[0219] If BDPCM is applied to the current block, the flag value of the BDPCM may be encoded as 1, and if BDPCM is not applied to the current block, the flag value of the BDPCM may be encoded as 0.
[0220] Also, as described above, if the tree structure of the current block is a dual tree, BDPCM can be applied to only one of the component blocks, and if the current block has a single tree structure, BDPCM can be applied to only one of the component blocks.
[0221] The direction information for the BDPCM can indicate either horizontal or vertical.
[0222] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. If the quantization / dequantization is omitted, the quantized transform coefficients may be referred to as transform coefficients. If the transform / inverse transform is omitted, the transform coefficients may also be referred to as coefficients or residual coefficients, or may still be referred to as transform coefficients for uniformity of representation.
[0223] Also, 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 on the transform coefficients, and the information on the transform coefficients may be signaled via a residual coding syntax. Transform coefficients may be derived based on the residual information (or the information on the transform coefficients), and scaled transform coefficients may be derived through an inverse transform (scaling) on the transform coefficients. Residual samples may be derived based on an inverse transform (transform) on the scaled transform coefficients. This may be similarly applied / expressed in other parts of this document.
[0224] In the above embodiments, the method is described based on the flowchart as a series of steps or blocks, but this document is not limited to the order of steps, and some steps may occur in a different order or simultaneously with other steps than those described above. Also, those skilled in the art can understand that the steps shown in the flowchart are not exclusive, and other steps may be included, or one or more steps of the flowchart may be deleted without affecting the scope of this document.
[0225] The method according to the present document described above may be embodied in the form of software, 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, a display device, etc.
[0226] In this document, when the embodiments are implemented in software, the methods described above may be implemented with modules (processes, functions, etc.) performing 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 read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, 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.
[0227] 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 customized video (VoD) service providing device, an over-the-top video (OTT) device, an internet streaming service providing device, a three-dimensional (3D) video device, an image telephone video device, a medical video device, etc., 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 access TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.
[0228] 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. 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. In addition, an embodiment of this document may be embodied in a computer program product by a program code, and the program code may be executed by a computer according to an embodiment of this document. The program code may be stored on a computer-readable carrier.
[0229] FIG. 9 exemplarily shows a structural diagram of a content streaming system to which this document applies.
[0230] Furthermore, the content streaming system to which this document is applied can broadly include an encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0231] 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. The bitstream may be generated by an encoding method or a bitstream generation method to which this document is applied, and the streaming server may temporarily store the bitstream during the process of transmitting or receiving the bitstream.
[0232] The streaming server transmits multimedia data to a user device based on a user's 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 the 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.
[0233] The streaming server may receive content from a media storage and / or an encoding server. For example, when content is received from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a certain period of time in order to provide a smooth streaming service.
[0234] 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, digital signage, etc. Each server in the content streaming system can be operated as a distributed server, and in this case, data received by each server can be processed in a distributed manner.
[0235] The claims described herein may be combined in various ways. For example, the technical features of the method claims herein may be combined and embodied as an apparatus, and the technical features of the apparatus claims herein may be combined and embodied as a method. In addition, the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied as an apparatus, and the technical features of the method claims herein and the technical features of the apparatus claims herein may be combined and embodied as a method.
Claims
1. A decoding device for video decoding, comprising: Memory, at least one processor coupled to the memory; The at least one processor Obtaining a bitstream including BDPCM flag information; deriving a residual sample for a current block based on the BDPCM flag information; deriving a predicted sample for the current block based on the BDPCM flag information; generating a reconstructed picture based on the residual samples and the predicted samples; Derive a boundary strength (bS) for a target boundary of the current block in the reconstructed picture; determining whether deblocking filtering is applied to the target boundary based on the bS; configured to perform the deblocking filtering on the reconstructed picture based on a result of the determining; The BDPCM flag information relates to whether BDPCM is applied to the current block, a tree type of the current block is a single tree type, and the current block is a chroma coding block; Based on the BDPCM flag information being 1, the bS for the target boundary of the chroma coding block is derived as 0; A decoding apparatus, wherein based on the bS for the target boundary being 0, the deblocking filtering is not applied to the target boundary.
2. An encoding device for video encoding, comprising: Memory, at least one processor coupled to the memory; The at least one processor Derive a prediction sample for the current block based on the BDPCM; deriving a residual sample for the current block based on the predicted sample; generating a reconstructed picture based on the residual samples and the predicted samples; Derive a boundary strength (bS) for a target boundary of the current block in the reconstructed picture; determining whether deblocking filtering is applied to the target boundary based on the bS; performing the deblocking filtering on the reconstructed picture based on a result of the determining; deriving quantized residual information based on the BDPCM; configured to encode the quantized residual information and BDPCM flag information for the BDPCM; The BDPCM flag information relates to whether BDPCM is applied to the current block, a tree type of the current block is a single tree type, and the current block is a chroma coding block; Based on the BDPCM applied to the current block, the bS for the target boundary of the chroma coding block is derived as 0; Based on the bS being 0 for the target boundary, the deblocking filtering is not applied to the target boundary.
3. 1. An apparatus for transmitting data for a video, comprising: at least one processor configured to obtain a bitstream for the video, the bitstream being generated based on: deriving a prediction sample for a current block based on a BDPCM; deriving a residual sample for the current block based on the prediction sample; generating a reconstructed picture based on the residual sample and the prediction sample; deriving a boundary strength (bS) for a target boundary of the current block in the reconstructed picture; determining based on the bS whether deblocking filtering is applied to the target boundary; performing the deblocking filtering on the reconstructed picture based on a result of the determining; deriving quantized residual information based on the BDPCM; and encoding the quantized residual information and BDPCM flag information for the BDPCM; a transmitter configured to transmit the data including the bitstream; The BDPCM flag information relates to whether BDPCM is applied to the current block, a tree type of the current block is a single tree type, and the current block is a chroma coding block; Based on the BDPCM applied to the current block, the bS for the target boundary of the chroma coding block is derived as 0; The apparatus, wherein based on the bS for the target boundary being 0, the deblocking filtering is not applied to the target boundary.
