Image Coding Apparatus and Method Based on Filtering
Efficient filtering and sub-picture coding techniques enhance image/video compression, addressing the high data volume challenge in high-resolution content, improving quality and reducing costs.
Patent Information
- Application Number
- JP2024082436
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-12-12
- Filing Date
- 2024-05-21
- Publication Date
- 2025-07-30
- Estimated Expiration
- 2040-12-11
AI Technical Summary
The increasing demand for high-resolution and high-quality images/videos, including VR and AR content, has led to higher transmission and storage costs due to increased data volume, necessitating a more efficient image/video compression technology.
Implementing a method and apparatus for enhanced image/video coding through efficient filtering, including deblocking, SAO, and ALF, with virtual boundary-based in-loop filtering, and independent coding of sub-pictures.
Improves overall image/video compression efficiency and subjective/objective visual quality while reducing hardware resource consumption.
Smart Images

Figure 0007715880000017 
Figure 0007715880000018 
Figure 0007715880000019
Abstract
Description
Technical Field
[0001] This document relates to an image coding apparatus and method based on filtering.
Background Art
[0002] In recent years, the demand for high-resolution and high-quality images / videos such as 4K or UHD (Ultra High Definition) images / videos of 8K or higher has been increasing in various fields. As the image / video data becomes higher in resolution and quality, the amount of information or bits transmitted relatively increases compared to the existing image / video data. Therefore, when transmitting image data using a medium such as an existing wired or wireless broadband line, or storing image / video data using an existing storage medium, the transmission cost and storage cost increase.
[0003] In addition, in recent years, the interest and demand for immersive media such as VR (Virtual Reality), AR (Artificial Reality) content, and holograms have been increasing, and the broadcast of images / videos having image characteristics different from real images, such as game images, has been increasing.
[0004] Accordingly, there is a need for a highly efficient image / video compression technology to effectively compress, transmit, store, and reproduce the information of high-resolution and high-quality images / videos having various characteristics as described above.
[0005] Specifically, in order to improve subjective / objective visual quality, an in-loop filtering procedure is performed, and there is a discussion on a scheme for improving the signaling efficiency of information for executing in-loop filtering based on a virtual boundary. In addition, the application of sub-pictures for improving the prediction and restoration performance in image coding is being studied.
Summary of the Invention
Means for Solving the Problems
[0006] According to one embodiment of this document, a method and apparatus for enhancing the efficiency of image / video coding are provided.
[0007] According to one embodiment of this document, an efficient filtering application method and apparatus are provided.
[0008] According to one embodiment of this document, a method and apparatus for efficiently applying deblocking, SAO (sample adaptive loop), and ALF (adaptive loop filtering) are provided.
[0009] According to one embodiment of this document, in-loop filtering is performed based on a virtual boundary.
[0010] According to one embodiment of this document, based on whether resampling for a reference picture is available, it is determined whether an SPS (sequence parameter set) includes additional virtual boundary-related information (e.g., information regarding the number and position of virtual boundaries).
[0011] According to one embodiment of this document, image coding is performed based on sub-pictures.
[0012] According to one embodiment of this document, sub-pictures used for image coding are independently coded.
[0013] According to one embodiment of this document, a picture includes only one sub-picture, and the sub-picture is independently coded.
[0014] According to one embodiment of this document, a picture is generated based on a sub-picture merging procedure, and the sub-picture can be a sub-picture that is independently coded.
[0015] According to one embodiment of this document, sub-pictures used for image coding are each treated as a picture.
[0016] According to one embodiment of the present document, an encoding device that performs video / image encoding is provided.
[0017] According to one embodiment of the present document, a computer-readable digital storage medium storing encoded video / image information generated by a video / image encoding method disclosed in at least one of the embodiments of the present document is provided.
[0018] According to one embodiment of the present document, a computer-readable digital storage medium storing encoded information or encoded video / image information that causes a decoding device to perform a video / image decoding method disclosed in at least one of the embodiments of the present document is provided.
Effect of the Invention
[0019] According to one embodiment of the present document, the overall image / video compression efficiency can be increased.
[0020] According to one embodiment of the present document, the subjective / objective visual quality can be improved through efficient filtering.
[0021] According to one embodiment of the present document, a virtual boundary-based in-loop filtering procedure can be efficiently performed, and the filtering performance can be improved.
[0022] According to one embodiment of the present document, information for virtual boundary-based in-loop filtering can be efficiently signaled.
[0023] According to one embodiment of the present document, sub-picture related information can be efficiently signaled, thus improving the subjective / objective quality of the image and reducing the consumption of hardware resources required for coding.
Brief Description of the Drawings
[0024]
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Mode for Carrying Out the Invention
[0025] This document can be modified in various ways and can have various embodiments. Specific embodiments will be illustrated in the drawings and described in detail. However, this is not intended to limit this document to specific embodiments. The terms commonly used in this specification are merely used to describe specific embodiments and are not intended to limit the technical idea of this document. Singular expressions include plural expressions unless the context clearly indicates otherwise. Terms such as "including" or "having" in this specification are intended to specify the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, and it should be understood that the presence or addition possibility of one or more other features, numbers, steps, operations, components, parts, or combinations thereof is not precluded in advance.
[0026] On the other hand, each configuration on the drawings described in this document is independently illustrated for the convenience of explaining different characteristic functions, and it does not mean that each configuration is realized by separate hardware or separate software. For example, among the configurations, two or more configurations can be combined to form one configuration, and one configuration can also be divided into multiple configurations. Embodiments in which each configuration is integrated and / or separated are included in the scope of rights of this document as long as they do not deviate from the essence of this document.
[0027] Hereinafter, with reference to the accompanying drawings, preferred embodiments of this document will be described in more detail. Hereinafter, the same reference numerals will be used for the same components on the drawings, and redundant descriptions of the same components will be omitted.
[0028] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document are related to the VVC (Versatile Video Coding) standard (ITU-T Rec.H.266), the next-generation video / image coding standard after VVC, or other video coding-related standards (such as the HEVC (High Efficiency Video Coding) standard (ITU-T Rec.H.265), the EVC (essential video coding) standard, the AVS2 standard, etc.).
[0029] This document presents various embodiments related to video / image coding, and unless otherwise stated, the embodiments can be implemented in combination with each other.
[0030] In this document, video can mean a collection of a series of images over time. A picture generally means a unit representing one image in a specific time period, and a slice / tile is a unit that constitutes a part of a picture in coding. A slice / tile may include one or more CTUs (coding tree units). 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 include one or more tiles.
[0031] A pixel or pel can mean the smallest unit that constitutes one picture (or image). Also, the term "sample" may be used as a term corresponding to a pixel. A sample generally indicates a pixel or a pixel value, and can indicate only the pixel / pixel value of the luma component, or only the pixel / pixel value of the chroma component. Or, a sample can mean a pixel value in the spatial domain, and when such a pixel value is converted to the frequency domain, it can mean a conversion coefficient in the frequency domain.
[0032] A "unit" indicates the basic unit of image processing. A unit includes at least one of a specific area of a picture and information regarding the area. One unit includes one luma block and two chroma (e.g., cb, cr) blocks. A unit may, in some cases, be used interchangeably with terms such as "block" or "area". In general, an M×N block includes a set (or, array) of samples (or, sample array) or transform coefficients consisting of M columns and N rows.
[0033] In this document, " / " and "," are interpreted as "and / or". For example, "A / B" is interpreted as "A and / or B", and "A, B" is interpreted as "A and / or B". Additionally, "A / B / C" means "at least one of A, B, and / or C". Also, "A, B, C" also means "at least one of A, B, and / or C".
[0034] Additionally, in this document, "or" is interpreted as "and / or". For example, "A or B" may mean 1) only "A", 2) only "B", or 3) "A and B". In other words, "or" in this document may mean "additionally or alternatively".
[0035] In this specification, "at least one of A and B" may mean "only A", "only B", or "both A and B". Also, in this specification, expressions such as "at least one of A or B" and "at least one of A and / or B" may be interpreted in the same way as "at least one of A and B".
[0036] Also, 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". Also, "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".
[0037] Also, the parentheses used in this specification may mean "for example". Specifically, when it is displayed as "prediction (intra prediction)", "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". Also, when it is displayed as "prediction (i.e., intra prediction)", "intra prediction" may be proposed as an example of "prediction".
[0038] The technical features separately described within one drawing in this specification may be realized separately or simultaneously.
[0039] FIG. 1 schematically shows an example of a video / image coding system to which this document can be applied.
[0040] As shown in FIG. 1, the video / image coding system can include a source device and a receiving device. The source device can transmit encoded video / image information or data in a file or streaming form to the receiving device via a digital storage medium or a network.
[0041] The source device can include a video source, an encoding device, and a transmitting unit. The receiving device can include a receiving unit, a decoding device, and a renderer. The encoding device can be referred to as a video / image encoding device, and the decoding device can be referred to as a video / image decoding device. A transmitter can be provided in the encoding device. A receiver can be provided in the decoding device. The renderer can include a display unit, and the display unit can also be composed of a separate device or an external component.
[0042] The video source can obtain video / images through processes such as video / image capture, synthesis, or generation. The video source can include a video / image capture device and / or a video / image generation device. The video / image capture device can include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. The video / image generation device can include, for example, a computer, a tablet, and a smartphone, etc., and can (electronically) generate video / images. For example, virtual video / images can be generated through a computer, etc., and in this case, the video / image capture process can be replaced by the process of generating related data.
[0043] The encoding device can encode the input video / image. The encoding device can perform a series of procedures such as prediction, transformation, quantization, etc. for compression and coding efficiency. The encoded data (encoded video / image information) can be output in the form of a bitstream.
[0044] The transmitting unit can transmit the encoded video / image information or data output in bitstream form to the receiving unit of the receiving device in file or streaming form via a digital storage medium or a network. The digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit can include elements for generating a media file via a predetermined file format and can include elements for transmission via a broadcast / communication network. The receiving unit can receive / extract the bitstream and transmit it to the decoding device.
[0045] The decoding device can decode the video / image by performing a series of procedures such as inverse quantization, inverse transformation, prediction, etc., corresponding to the operation of the encoding device.
[0046] The renderer can render the decoded video / image. The rendered video / image can be displayed via the display unit.
[0047] Figure 2 is a drawing schematically explaining the configuration of a video / image encoding device to which this document can be applied. Hereinafter, the video encoding device can include the image encoding device.
[0048] As shown in FIG. 2, the encoding device 200 can 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 can include an inter-prediction unit 221 and an intra-prediction unit 222. The residual processor 230 can include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 can further include a subtractor (231). The adder 250 can be called a reconstructor or a reconstructed block generator. The aforementioned image partitioner 210, predictor 220, residual processor 230, entropy encoder 240, adder 250, and filter 260 can be configured by one or more hardware components (e.g., an encoder chipset or a processor) according to an embodiment. Also, the memory 270 can include a DPB (decoded picture buffer) and can also be configured by a digital storage medium. The hardware component can further include the memory 270 as an internal / external component.
[0049] The image segmentation unit 210 can divide an input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing unit can be called a coding unit (CU). In this case, the coding unit can be recursively divided from a coding tree unit (CTU) or a largest coding unit (LCU) by a QTBTTT (Quad-tree binary-tree ternary-tree) structure. For example, one coding unit can be divided into a plurality of coding units with 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 can be applied first, and the binary-tree structure and / or the ternary structure can be applied thereafter. Or, the binary-tree structure can also be applied first. The coding procedure according to the present disclosure can be performed based on the final coding unit that is no longer divided. In this case, based on the coding efficiency according to the image characteristics, etc., the largest coding unit can be used as the final coding unit, or, if necessary, the coding unit can be recursively divided into coding units with a deeper depth so that a coding unit of an optimal size can be used as the final coding unit. Here, the coding procedure can include procedures such as prediction, transformation, and restoration described later. As another example, the processing unit can further include a prediction unit (PU: Prediction Unit) or a transform unit (TU: Transform Unit). In this case, the prediction unit and the transform unit can each be divided or partitioned from the aforementioned final coding unit.The prediction unit can be a unit of sample prediction, and the conversion unit can be a unit for deriving a conversion coefficient and / or a unit for deriving a residual signal from the conversion coefficient.
[0050] The unit can, in some cases, be used interchangeably with terms such as a block or an area. In general, an M×N block can represent a set such as samples or transform coefficients consisting of M columns and N rows. A sample can generally represent a pixel or a pixel value, and can represent only the pixel / pixel value of the luma component, or can also represent only the pixel / pixel value of the chroma component. A sample can be used as a term corresponding to a pixel or a pel in one picture (or image).
[0051] The subtraction unit 231 can subtract the prediction signal (predicted block, predicted sample, or predicted sample array) output from the prediction unit 220 from the 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 can perform prediction on a processing target block (hereinafter referred to as the current block) and generate a predicted block including predicted samples for the current block. The prediction unit 220 can determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit can generate various pieces of information related to prediction, such as prediction mode information, and transmit them to the entropy encoding unit 240, as will be described later in the description of each prediction mode. The information related to prediction can be encoded by the entropy encoding unit 240 and output in the form of a bitstream.
[0052] The intra prediction unit 222 can predict the current block by referring to samples within the current picture. The samples to be referred to can be located adjacent to the current block or remotely located depending on the prediction mode. In intra prediction, the prediction mode can include a plurality of non-directional modes and a plurality of directional modes. The non-directional modes can include, for example, the DC mode and the Planar mode. The directional modes can include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the level of detail of the prediction direction. However, this is an example, and more or fewer directional prediction modes can be used depending on the setting. The intra prediction unit 222 can also determine the prediction mode to be applied to the current block using the prediction mode applied to the adjacent block.
[0053] The inter prediction unit 221 can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between adjacent blocks and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the adjacent blocks can include spatial neighboring blocks existing in the current picture and temporal neighboring blocks existing in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block can be the same or different. The temporal neighboring blocks can be called by names such as collocated reference blocks and collocated CUs (col CUs), and the reference picture including the temporal neighboring blocks can also be called a collocated picture (colPic). For example, the inter prediction unit 221 can construct a motion information candidate list based on adjacent blocks and generate information indicating which candidate is used to derive the motion vector and / or reference picture index of the current block. Inter prediction can be performed based on various prediction modes. For example, in the case of skip mode and merge mode, the inter prediction unit 221 can use the motion information of adjacent blocks as the motion information of the current block. In the case of skip mode, unlike merge mode, a residual signal may not be transmitted.In the case of the motion information prediction (motion vector prediction, MVP) mode, the motion vector of an adjacent block is used as a motion vector predictor, and the motion vector difference is signaled, whereby the motion vector of the current block can be indicated.
[0054] The prediction unit 220 can generate a prediction signal based on various prediction methods described later. For example, the prediction unit can apply not only intra prediction or inter prediction for the prediction of one block, but also intra prediction and inter prediction can be applied simultaneously. This can be called combined inter and intra prediction (CIIP). Also, the prediction unit can execute intra block copy (IBC) for the prediction of a block. The intra block copy can be used for content image / video coding such as games, for example, like SCC (screen content coding). IBC basically performs prediction within the current picture, but can be performed in the same way as inter prediction in terms of deriving a reference block within the current picture. That is, IBC can use at least one of the inter prediction techniques described in this document.
[0055] The prediction signal generated through the inter prediction unit 221 and / or the intra prediction unit 222 can be used to generate a restored signal or can be used to generate a residual signal. The conversion unit 232 can apply a conversion technique to the residual signal to generate transform coefficients. For example, the conversion technique can include DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), GBT (Graph-Based Transform), or CNT (Conditionally Non-linear Transform), etc. Here, GBT means the conversion obtained from this graph when expressing the relationship information between pixels in a graph. CNT means the conversion obtained based on generating a prediction signal using all previously reconstructed pixels. Also, the conversion process may be applied to a pixel block having the same size of a square or may be applied to a block of a variable size that is not square.
[0056] The quantization unit 233 quantizes the transform coefficients and transmits them to the entropy encoding unit 240. The entropy encoding unit 240 can encode the quantized signal (information regarding the quantized transform coefficients) and output it as a bitstream. The information regarding the quantized transform coefficients can be called residual information. The quantization unit 233 can reorder the block-form quantized transform coefficients in a one-dimensional vector form based on the coefficient scan order, and can also generate the information regarding the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoding unit 240 can perform various encoding methods such as, for example, exponential Golomb, CAVLC (context-adaptive variable length coding), CABAC (context-adaptive binary arithmetic coding), etc. The entropy encoding unit 240 can also encode, together or separately, information necessary for video / image restoration (e.g., values of syntax elements, etc.) in addition to the quantized transform coefficients. The encoded information (e.g., encoded video / image information) can be transmitted or stored in the form of a bitstream in units of NAL (network abstraction layer) units. The video / image information can further include information regarding 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). Also, the video / image information can further include general constraint information. In this document, the signaling / transmitted information and / or syntax elements described later can be encoded via the above-described encoding procedure and included in the bitstream. The bitstream can be transmitted via a network or stored in a digital storage medium.Here, the network can include a broadcast network and / or a communication network, etc., and the digital storage medium can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The signal output from the entropy encoding unit 240 can be configured such that a transmission unit (not shown) for transmission and / or a storage unit (not shown) for storage are internal / external elements of the encoding device 200, or the transmission unit can also be included in the entropy encoding unit 240.
[0057] The quantized transform coefficients output from the quantization unit 233 can be used to generate a prediction signal. For example, by applying inverse quantization and inverse transformation to the quantized transform coefficients via the inverse quantization unit 234 and the inverse transformation unit 235, a residual signal (residual block or residual sample) can be restored. The addition unit 155 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample, or reconstructed sample array) by adding the restored residual signal to the prediction signal output from the prediction unit 220. When there is no residual for the block to be processed, as in the case where the skip mode is applied, the predicted block can be used as the reconstructed block. The generated reconstructed signal can be used for intra prediction of the next block to be processed within the current picture, and as will be described later, can also be used for inter prediction of the next picture after being filtered.
[0058] On the other hand, LMCS (luma mapping with chroma scaling) can also be applied in the picture encoding and / or restoration process.
[0059] The filtering unit 260 can apply filtering to the restored signal to improve the subjective / objective image quality. For example, the filtering unit 260 can apply various filtering methods to the restored picture to generate a modified restored picture, and store the modified restored picture in the memory 270, specifically, in the DPB of the memory 270. The various filtering methods can include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter, bilateral filter, and the like. The filtering unit 260 can generate various information related to filtering and transmit it to the entropy encoding unit 240, as will be described later in the explanation of each filtering method. The information related to filtering can be encoded by the entropy encoding unit 240 and output in the form of a bit stream.
[0060] The modified restored picture transmitted to the memory 270 can be used as a reference picture in the inter prediction unit 221. Through this, when inter prediction is applied, the encoding device can avoid prediction mismatches between the encoding device 100 and the decoding device, and can also improve the encoding efficiency.
[0061] The DPB of the memory 270 can store the modified restored picture for use as a reference picture in the inter prediction unit 221. The memory 270 can store the motion information of the blocks in which the motion information within the current picture has been derived (or encoded) and / or the motion information of the blocks within the already restored picture. The stored motion information can be transmitted to the inter prediction unit 221 for utilization as the motion information of spatially adjacent blocks or temporally adjacent blocks. The memory 270 can store the restored samples of the restored blocks within the current picture and transmit them to the intra prediction unit 222.
[0062] FIG. 3 is a drawing schematically explaining the configuration of a video / image decoding apparatus to which this document can be applied.
[0063] As shown in FIG. 3, the decoding apparatus 300 can 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 can include an inter-predictor 331 and an intra-predictor 332. The residual processor 320 can include a dequantizer 321 and an inverse transformer 321. The entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 described above can be configured by one hardware component (e.g., a decoder chipset or a processor) according to an embodiment. Also, the memory 360 can include a DPB (decoded picture buffer) and can also be configured by a digital storage medium. The hardware component can further include the memory 360 as an internal / external component.
[0064] If a bitstream including video / image information is input, the decoding device 300 can restore an image corresponding to the process in which the video / image information was processed by the encoding device of FIG. 3. For example, the decoding device 300 can derive units / blocks based on block splitting related information obtained from the bitstream. The decoding device 300 can perform decoding using the processing units applied in the encoding device. Therefore, the processing unit for decoding can be, for example, a coding unit, and the coding unit can be split according to a quad tree structure, a binary tree structure, and / or a ternary tree structure from a coding tree unit or a maximum coding unit. One or more transform units can be derived from the coding unit. Then, the restored image signal decoded and output via the decoding device 300 can be reproduced via a playback device.
[0065] The decoding device 300 can receive the signal output from the encoding device in FIG. 3 in the form of a bitstream, and the received signal can be decoded via the entropy decoding unit 310. For example, the entropy decoding unit 310 can parse the bitstream to derive information (e.g., video / image information) necessary for image restoration (or, picture restoration). The video / image information can further include information regarding 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). Also, the video / image information can further include general constraint information. The decoding device can further decode the picture based on the information regarding the parameter set and / or the general constraint information. The signaling / received information and / or syntax elements described later in this document can be decoded via the decoding procedure and obtained from the bitstream. For example, the entropy decoding unit 310 can decode the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the value of the syntax element necessary for image restoration and the quantized value of the transform coefficient regarding the residual. More specifically, the CABAC entropy decoding method receives the bin corresponding to each syntax element in the bitstream, determines the context model using the information of the syntax element information to be decoded, the information adjacent to the decoding target block, and the decoding information of the decoding target block or the symbol / bin information decoded in the previous step, predicts the occurrence probability of the bin according to the determined context model, performs arithmetic decoding of the bin, and can generate the symbol corresponding to the value of each syntax element. At this time, the CABAC entropy decoding method can update the context model using the symbol / bin information decoded for the context model of the next symbol / bin after determining the context model.Among the information decoded by the entropy decoding unit 310, the information related to prediction is provided to the prediction unit 330, and the residual information that has undergone entropy decoding in the entropy decoding unit 310, that is, the quantized transform coefficients and related parameter information, can be input to the inverse quantization unit 321. Also, among the information decoded by the entropy decoding unit 310, the information related to filtering can be provided to the filtering unit 350. On the other hand, a receiving unit (not shown) that receives the signal output from the encoding device can be further configured as an internal / external element of the decoding device 300, or the receiving unit can also be a component of the entropy decoding unit 310. On the other hand, the decoding device according to this document can be called a video / image / picture decoding device, and the decoding device can be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder can include the entropy decoding unit 310, and the sample decoder can 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.
[0066] In the inverse quantization unit 321, the quantized transform coefficients can be inverse quantized to output transform coefficients. The inverse quantization unit 321 can reorder the quantized transform coefficients in a two-dimensional block form. In this case, the reordering can be performed based on the coefficient scan order performed in the encoding device. The inverse quantization unit 321 can perform inverse quantization on the quantized transform coefficients using quantization parameters (for example, quantization step size information) to obtain transform coefficients.
[0067] In the inverse transform unit 322, the transform coefficients are inverse transformed to obtain a residual signal (residual block, residual sample array).
[0068] The prediction unit can perform prediction on the current block and generate a predicted block including a prediction sample for the current block. The prediction unit can determine whether intra prediction or inter prediction is applied to the current block based on the information regarding the prediction output from the entropy decoding unit 310, and can determine a specific intra / inter prediction mode.
[0069] The prediction unit can generate a prediction signal based on various prediction methods described later. For example, the prediction unit can not only apply intra prediction or inter prediction for the prediction of one block, but also apply intra prediction and inter prediction simultaneously. This can be called combined inter and intra prediction (CIIP). In addition, the prediction unit can execute intra block copy (IBC) for the prediction of a block. The intra block copy can be used for content image / video coding such as games, for example, like SCC (screen content coding). IBC basically performs prediction within the current picture, but can be performed in the same way as inter prediction in terms of deriving a reference block within the current picture. That is, IBC can utilize at least one of the inter prediction techniques described in this document. The palette mode can be regarded as an example of intra coding or intra prediction. [[ID=]5]
[0070] The Intra prediction unit 331 can predict the current block by referring to samples within the current picture. The samples to be referred to can be located adjacent to the current block or at a distance therefrom depending on the prediction mode. In intra prediction, the prediction mode can include a plurality of non-directional modes and a plurality of directional modes. The Intra prediction unit 331 can also determine the prediction mode to be applied to the current block using the prediction mode applied to an adjacent block.
[0071] The Inter prediction unit 332 can derive a predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information can be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between an adjacent block and the current block. The motion information can include a motion vector and a reference picture index. The motion information can further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the adjacent block can include a spatial neighboring block existing within the current picture and a temporal neighboring block existing in the reference picture. For example, the Inter prediction unit 332 can construct a motion information candidate list based on adjacent blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter prediction can be performed based on various prediction modes, and the information regarding the prediction can include information indicating the mode of inter prediction for the current block.
[0072] The adder 340 can generate a restored signal (restored picture, restored block, restored sample array) by adding the acquired residual signal to the predicted signal (predicted block, predicted sample array) output from the predictor. When there is no residual for the block to be processed, as in the case where the skip mode is applied, the predicted block can be used as the restored block.
[0073] The adder 340 can be referred to as a restoration unit or a restored block generation unit. The generated restored signal can be used for intra prediction of the next block to be processed within the current picture, can be output after filtering as described later, or can also be used for inter prediction of the next picture.
[0074] On the other hand, LMCS (luma mapping with chroma scaling) can also be applied during the picture decoding process.
[0075] The filtering unit 350 can apply filtering to the restored signal to improve the subjective / objective image quality. For example, the filtering unit 350 can apply various filtering methods to the restored picture to generate a modified restored picture, and can send the modified restored picture to the memory 360, specifically, to the DPB of the memory 360. The various filtering methods can include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0076] The (corrected) restored picture stored in the DPB of the memory 360 can be used as a reference picture in the inter prediction unit 332. The memory 360 can store the motion information of the block for which the motion information in the current picture has been derived (or decoded) and / or the motion information of the block in the already restored picture. The stored motion information can be transmitted to the inter prediction unit 332 for utilization as the motion information of spatially adjacent blocks or temporally adjacent blocks. The memory 360 can store the restored samples of the restored blocks in the current picture and can transmit them to the intra prediction unit 331.
[0077] In this specification, the embodiments described in the prediction unit 330, inverse quantization unit 321, inverse transform unit 322, filtering unit 350, etc. of the decoding device 300 can be applied so as to be identical or corresponding to the prediction unit 220, inverse quantization unit 234, inverse transform unit 235, filtering unit 260, etc. of the encoding device 200, respectively.
[0078] As described above, when performing video coding, prediction is executed to improve the compression efficiency. Through this, a predicted block including prediction samples for the current block, which is the block to be coded, can be generated. Here, the predicted block includes prediction samples in the spatial domain (or pixel domain). The predicted block is similarly derived in the encoding device and the decoding device, and the encoding device can improve the image coding efficiency by signaling information (residual information) regarding the residual between the original block and the predicted block, which is not the original sample value of the original block, to the decoding device. The decoding device can derive a residual block including residual samples based on the residual information, and can generate a restored block including restored samples by combining the residual block and the predicted block, and can generate a restored picture including the restored block.
[0079] The residual information can be generated through conversion and quantization procedures. For example, an encoding device can derive a residual block between the original block and the predicted block, execute a conversion procedure on the residual samples (residual sample array) included in the residual block to derive conversion coefficients, execute a quantization procedure on the conversion coefficients to derive quantized conversion coefficients, and thus signal the relevant residual information (via a bitstream) to a decoding device. Here, the residual information can include information such as the value information, position information, conversion technique, conversion kernel, quantization parameter, etc. of the quantized conversion coefficients. The decoding device can execute an inverse quantization / inverse conversion procedure based on the residual information to derive residual samples (or a residual block). The decoding device can generate a restored picture based on the predicted block and the residual block. Also, the encoding device can inverse quantize / inverse convert the quantized conversion coefficients for reference in inter prediction of subsequent pictures to derive a residual block and generate a restored picture based on this.
[0080] In this document, at least one of quantization / inverse quantization and / or conversion / inverse conversion can be omitted. When the quantization / inverse quantization is omitted, the quantized conversion coefficients can be called conversion coefficients. When the conversion / inverse conversion is omitted, the conversion coefficients can also be called coefficients or residual coefficients, or, for the sake of consistency of expression, can still be called conversion coefficients.
[0081] In this document, the quantized transform coefficients and the transform coefficients can each be referred to as the transform coefficients and the scaled transform coefficients, respectively. In this case, the residual information can include information regarding the transform coefficient(s), and the information regarding the transform coefficient(s) can be signaled via a residual coding syntax. The transform coefficients can be derived based on the residual information (or the information regarding the transform coefficient(s)), and the scaled transform coefficients can be derived via an inverse transform (scaling) with respect to the transform coefficients. The residual samples can be derived based on an inverse transform (transformation) with respect to the scaled transform coefficients. This can be similarly applied / expressed in other parts of this document.
[0082] The prediction unit of the encoding / decoding device can derive a prediction sample by performing inter prediction in block units. Inter prediction can indicate a prediction derived in a method that depends on data elements (e.g., sample values or motion information) of pictures other than the current picture. When inter prediction is applied to the current block, a predicted block (prediction sample array) for the current block can be induced based on a reference block (reference sample array) specified by a motion vector on a reference picture pointed to by the index of the reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information of the current block can be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between adjacent blocks and the current block. The motion information can include a motion vector and an index of a reference picture. The motion information can further include information on an inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.). When inter prediction is applied, the adjacent blocks can include spatial neighboring blocks existing within the current picture and temporal neighboring blocks existing 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 can be called by names such as a collocated reference block or a collocated CU (colCU), and the reference picture including the temporal neighboring block may also be called a collocated picture (colPic). For example, a candidate list of motion information can be configured based on adjacent blocks of the current block, and flag or index information indicating which candidate is selected (used) can be signaled to derive the motion vector and / or the index of the reference picture of the current block. Inter prediction is performed based on various prediction modes. For example, in the case of skip mode and merge mode, the motion information of the current block can be the same as the motion information of the selected adjacent block.In the case of the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the case of the motion vector prediction (MVP) mode, the motion vector of the selected adjacent block is used as a motion vector predictor, and the motion vector difference can be signaled. In this case, the motion vector of the current block can be derived by using the sum of the motion vector predictor and the motion vector difference.
[0083] The motion information can include L0 motion information and / or L1 motion information according to the inter prediction type (such as L0 prediction, L1 prediction, Bi prediction, etc.). The motion vector in the L0 direction can be called the L0 motion vector or MVL0, and the motion vector in the L1 direction can be called the L1 motion vector or MVL1. The prediction based on the L0 motion vector can be called L0 prediction, the prediction based on the L1 motion vector can be called L1 prediction, and the prediction based on both the L0 motion vector and the L1 motion vector can be called bi (Bi) prediction. Here, the L0 motion vector can indicate a motion vector related to the reference picture list L0 (L0), and the L1 motion vector can indicate a motion vector related to the reference picture list L1 (L1). The reference picture list L0 can include pictures previous in output order than the current picture as reference pictures, and the reference picture list L1 can include pictures subsequent in output order than the current picture. The previous picture can be called a forward (reference) picture, and the subsequent picture can be called a backward (reference) picture. The reference picture list L0 can further include pictures subsequent in output order than the current picture as reference pictures. In this case, the previous picture can be indexed first within the reference picture list L0, and the subsequent picture can be indexed thereafter. The reference picture list L1 can further include pictures previous in output order than the current picture as reference pictures. In this case, the subsequent picture can be indexed first within the reference picture list 1, and the previous picture can be indexed thereafter. Here, the output order can correspond to the POC (picture order count) order (order).
[0084] FIG. 4 exemplarily shows a hierarchical structure for a coded image / video.
[0085] As shown in FIG. 4, the coded image / video is divided into a VCL (video coding layer) that performs the decoding process of the image / video and handles itself, a lower system that transmits and stores the coded information, and a NAL (network abstraction layer) that exists between the VCL and the lower system and is responsible for the network adaptation function.
[0086] In the VCL, VCL data including compressed image data (slice data) can be generated, or parameter sets such as a Picture Parameter Set (PPS), a Sequence Parameter Set (SPS), a Video Parameter Set (VPS), or a SEI (Supplemental Enhancement Information) message that is additionally required in the decoding process of the image can be generated.
[0087] In the NAL, a NAL unit can be generated by adding header information (NAL unit header) to the RBSP (Raw Byte Sequence Payload) generated in the VCL. At this time, the RBSP means slice data, parameter sets, SEI messages, etc. generated in the VCL. The NAL unit header can include NAL unit type information specified by the RBSP data included in the corresponding NAL unit.
[0088] As shown in the above drawings, the NAL unit can be divided into a VCL NAL unit and a Non-VCL NAL unit according to the RBSP generated in the VCL. The VCL NAL unit can mean a NAL unit including information (slice data) for the image, and the Non-VCL NAL unit can mean a NAL unit including information (parameter set or SEI message) required for decoding the image.
[0089] The above-mentioned VCL NAL units and Non-VCL NAL units can be transmitted via a network with header information attached according to the data standard of the lower-level system. For example, the NAL unit can be transformed into a data form of a predetermined standard such as the H.266 / VVC file format, RTP (Real-time Transport Protocol), TS (Transport Stream), etc., and transmitted via various networks.
[0090] As mentioned above, the NAL unit type can be specified by the RBSP data structure included in the corresponding NAL unit, and information regarding such NAL unit type can be stored in the NAL unit header and signaled.
[0091] For example, depending on whether the NAL unit contains information (slice data) for an image, it can be roughly classified into a VCL NAL unit type and a Non-VCL NAL unit type. The VCL NAL unit type can be classified according to the nature and type of the picture contained in the VCL NAL unit, and the Non-VCL NAL unit type can be classified according to the type of parameter set, etc.
[0092] The following is an example of the NAL unit type specified by the type of parameter set included in the Non-VCL NAL unit type, etc.
[0093] - APS (Adaptation Parameter Set) NAL unit: The type for the NAL unit containing APS
[0094] - DPS (Decoding Parameter Set) NAL unit: The type for the NAL unit containing DPS
[0095] -VPS (Video Parameter Set) NAL unit: Type for NAL unit containing VPS
[0096] -SPS (Sequence Parameter Set) NAL unit: Type for NAL unit containing SPS
[0097] -PPS (Picture Parameter Set) NAL unit: Type for NAL unit containing PPS
[0098] -PH (Picture header) NAL unit: Type for NAL unit containing PH
[0099] The above-mentioned NAL unit types have syntax information for the NAL unit types, and the syntax information can be stored in the NAL unit header and signaled. For example, the syntax information is nal_unit_type, and the NAL unit type can be specified by the nal_unit_type value.
[0100] On the other hand, as described above, one picture can include a plurality of slices, and one slice can include a slice header and slice data. In this case, one picture header can be further added for the plurality of slices (slice header and slice data set) within one picture. The picture header (picture header syntax) can include information / parameters that are commonly applicable to the picture. In this document, a slice can be mixed or substituted with a tile group. Also, in this document, a slice header can be mixed or substituted with a type group header.
[0101] The slice header (slice header syntax, slice header information) can include information / parameters that are commonly applicable to the slice. The APS (APS syntax) or PPS (PPS syntax) can include information / parameters that are commonly applicable to one or more slices or pictures. The SPS (SPS syntax) can include information / parameters that are commonly applicable to one or more sequences. The VPS (VPS syntax) can include information / parameters that are commonly applicable to multiple layers. The DPS (DPS syntax) can include information / parameters that are commonly applicable to the entire video. The DPS can include information / parameters related to the concatenation of the CVS (coded video sequence). In this document, the high-level syntax (HLS) can include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.
[0102] In this document, the image / video information encoded from the encoding device and signaled in the form of a bitstream to the decoding device can include not only information related to partitioning within the picture, intra / inter prediction information, residual information, in-loop filtering information, etc., but also the information included in the slice header, the information included in the picture header, the information included in the APS, the information included in the PPS, the information included in the SPS, the information included in the VPS, and / or the information included in the DPS. Further, the image / video information can further include the information of the NAL unit header.
[0103] On the one hand, in order to compensate for the difference between the original image and the restored image due to errors occurring in the compression encoding process such as quantization, as described above, an in-loop filtering procedure can be executed on the restored sample or the restored picture. As described above, in-loop filtering can be executed in the filter section of the encoding device and the filter section of the decoding device, and a deblocking filter, SAO, and / or an adaptive loop filter (ALF) can be applied. For example, the ALF procedure can be executed after the deblocking filtering procedure and / or the SAO procedure is completed. However, also in this case, the deblocking filtering procedure and / or the SAO procedure can be omitted.
[0104] Specific descriptions for picture restoration and filtering are described below. In image / video coding, a restored block can be generated based on intra prediction / inter prediction for each block unit, and a restored picture including the restored block can be generated. When the current picture / slice is an I picture / slice, the blocks included in the current picture / slice can be restored based only on intra prediction. On the other hand, when the current picture / slice is a P or B picture / slice, the blocks included in the current picture / slice can be restored based on intra prediction or inter prediction. In this case, intra prediction can be applied to some blocks within the current picture / slice, and inter prediction can also be applied to the remaining blocks.
[0105] Intra prediction can indicate a prediction that generates prediction samples for a current block based on reference samples within a picture (hereinafter referred to as the current picture) to which the current block belongs. When intra prediction is applied to the current block, adjacent reference samples used for intra prediction of the current block can be derived. The adjacent reference samples of the current block include a total of 2×nH samples adjacent to the left boundary and the bottom-left of the current block with a size of nW×nH, samples adjacent to the top boundary of the current block and a total of 2×nW samples adjacent to the top-right, and 1 sample adjacent to the top-left of the current block. Alternatively, the adjacent reference samples of the current block can also include a plurality of rows of upper adjacent samples and a plurality of columns of left adjacent samples. Also, the adjacent reference samples of the current block can include a total of nH samples adjacent to the right boundary of the current block with a size of nW×nH, a total of nW samples adjacent to the bottom boundary of the current block, and 1 sample adjacent to the bottom-right of the current block.
[0106] However, some of the adjacent reference samples of the current block may not have been decoded yet or may not be available. In this case, the decoder can substitute samples that are not available with available samples to form adjacent reference samples used for prediction. Alternatively, adjacent reference samples used for prediction can be formed through interpolation of available samples.
[0107] When an adjacent reference sample is derived, (i) a predicted sample can be derived based on the average or interpolation of neighboring reference samples of the current block, and (ii) the predicted sample can also be derived based on reference samples that exist in a specific (predicted) direction with respect to the predicted sample among the neighboring reference samples of the current block. In the case of (i), it is called a non-directional mode or a non-angle mode, and in the case of (ii), it can be called a directional mode or an angular mode. Also, among the adjacent reference samples, based on the predicted sample of the current block, the predicted sample can be generated through interpolation between the second adjacent sample and the first adjacent sample that are located in the direction opposite to the prediction direction of the intra prediction mode of the current block. The above-described case can be called linear interpolation intra prediction (LIP). Also, a chroma predicted sample can be generated based on luma samples using a linear model. In this case, it can be called the LM mode. Also, a temporary predicted sample of the current block is derived based on filtered adjacent reference samples, and a predicted sample of the current block is derived by performing a weighted sum of at least one reference sample derived by the intra prediction mode among the existing adjacent reference samples, i.e., unfiltered adjacent reference samples, and the temporary predicted sample. The above-described case can be called PDPC (Position dependent intra prediction). Also, intra prediction coding can be performed by selecting the reference sample line with the highest prediction accuracy from among the adjacent multiple reference sample lines of the current block and using the reference sample located in the prediction direction in the corresponding line, and indicating (signaling) the used reference sample line to the decoding device.In the above-described case, it can be called multi-reference line (MRL) intra prediction or MRL-based intra prediction. Also, the current block can be divided into vertical or horizontal sub-partitions, and intra prediction can be performed based on the same intra prediction mode, and adjacent reference samples can be derived and used in units of the sub-partitions. That is, in this case, the intra prediction mode for the current block is also applied to the sub-partitions, and by deriving and using adjacent reference samples in units of the sub-partitions, in some cases, the intra prediction performance can be improved. Such a prediction method can be called intra sub-partitions (ISP) or ISP-based intra prediction. The above-described intra prediction methods can be called intra prediction types, distinguished from the intra prediction modes in Tables of Contents 1 and 2. The intra prediction type can be called by various terms such as intra prediction techniques or additional intra prediction modes. For example, the intra prediction type (or additional intra prediction mode, etc.) can include at least one of the above-described LIP, PDPC, MRL, and ISP. A general intra prediction method excluding specific intra prediction types such as LIP, PDPC, MRL, and ISP can be called a normal intra prediction type. The normal intra prediction type can be generally applied when the above specific intra prediction types are not applied, and prediction can be performed based on the above-described intra prediction mode. On the other hand, if necessary, post-processing filtering on the derived prediction samples can also be performed.
[0108] Specifically, the intra prediction procedure can include an intra prediction mode / type determination step, an adjacent reference sample derivation step, and an intra prediction mode / type-based prediction sample derivation step. Also, if necessary, a post-processing filtering step on the derived prediction samples can also be performed.
[0109] A restored picture modified by an in-loop filtering procedure is generated, and the modified restored picture is output as a decoded picture from the decoding device, and is also 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 during picture encoding / decoding later. The in-loop filtering procedure includes, as described above, a deblocking filtering procedure, a SAO (sample adaptive offset) procedure, and / or an ALF (adaptive loop filter) procedure, etc. In this case, one or a part of the deblocking filtering procedure, SAO (sample adaptive offset) procedure, ALF (adaptive loop filter) procedure, and bilateral filter procedure may be sequentially applied, or all of them may be sequentially applied. For example, after the deblocking filtering procedure is applied to the restored picture, the SAO procedure may be performed. Or, for example, after the deblocking filtering procedure is applied to the restored picture, the ALF procedure may be performed. This is also performed in the same way in the encoding device.
[0110] Deblocking filtering is a filtering technique that removes distortions occurring at the boundaries between blocks in a restored picture. The deblocking filtering procedure can, for example, derive a target boundary in the restored picture, determine bS (boundary strength) for the target boundary, and perform deblocking filtering for the target boundary based on the bS. The bS can be determined based on the prediction modes of two adjacent blocks of the target boundary, the motion vector difference, whether the reference pictures are the same, the presence or absence of non-zero valid coefficients, etc.
[0111] SAO is a method for compensating the offset difference between the restored picture and the original picture in sample units, and can be applied based on types such as, for example, Band Offset and Edge Offset. According to SAO, samples can be classified into different categories by each SAO type, and an offset value can be added to each sample based on the category. The filtering information for SAO can include information on whether SAO can be applied, SAO type information, SAO offset value information, etc. SAO can also be applied to the restored picture after the deblocking filtering is applied.
[0112] ALF (Adaptive Loop Filter) is a technique for filtering in sample units based on filter coefficients according to the filter shape for the restored picture. The encoding device can determine whether ALF can be applied, the ALF shape and / or the ALF filtering coefficient, etc. through comparison between the restored picture and the original picture, and can signal them to the decoding device. That is, the filtering information for ALF can include information on whether ALF can be applied, ALF filter shape information, ALF filtering coefficient information, etc. ALF can also be applied to the restored picture after the deblocking filtering is applied.
[0113] Figure 5 is a sequence diagram for explaining an encoding method based on filtering in an encoding device. The method in Figure 5 can include steps S500 to S530.
[0114] In step S500, the encoding device can generate a restored picture. Step S500 can be performed based on the above-described restored picture (or, restored sample) generation procedure.
[0115] In step S510, the encoding device can determine whether in-loop filtering is applied (across virtual boundaries) based on the in-loop filtering related information. Here, the in-loop filtering can include at least one of the above-described deblocking filtering, SAO, or ALF.
[0116] In step S520, the encoding device can generate a modified reconstructed picture (modified reconstructed samples) based on the determination in step S510. Here, the modified reconstructed picture (modified reconstructed samples) can be the filtered reconstructed picture (filtered reconstructed samples).
[0117] In step S530, the encoding device can encode image / video information including in-loop filtering related information based on the in-loop filtering procedure.
[0118] FIG. 6 is a sequence diagram for explaining a decoding method based on filtering in a decoding device. The method of FIG. 6 can include steps S600 to S630.
[0119] In step S600, the decoding device can obtain image / video information including in-loop filtering related information from the bitstream. Here, the bitstream can be based on the encoded image / video information transmitted from the encoding device.
[0120] In step S610, the decoding device can generate a reconstructed picture. Step S610 can be performed based on the above-described reconstructed picture (or, reconstructed samples) generation procedure.
[0121] In step S620, the decoding device can determine whether in-loop filtering is applied (across the virtual boundary) based on the in-loop filtering related information. Here, the in-loop filtering can include at least one of the deblocking filtering, SAO, or ALF described above.
[0122] In step S630, the decoding device can generate a restored picture (restored samples) modified based on the determination in step S620. Here, the restored picture (restored samples) modified can be a filtered restored picture (filtered restored samples).
[0123] As described above, the in-loop filtering procedure can be applied to the restored picture. In this case, in order to further improve the subjective / objective visual quality of the restored picture, a virtual boundary can be defined and the in-loop filtering procedure can be applied across the virtual boundary. The virtual boundary includes discontinuous edges such as, for example, a 360-degree image, a VR image, or a PIP (picture in picture). For example, the virtual boundary exists at a predetermined agreed-upon position, and its existence and / or position can be signaled. As an example, the virtual boundary is located at the fourth sample line above the CTU row (specifically, for example, above the fourth sample line above the CTU row). As another example, information regarding the existence and / or position of the virtual boundary can also be signaled via HLS. The HLS includes SPS, PPS, picture header, slice header, etc. as described above.
[0124] Hereinafter, the high-level syntax signaling and semantics regarding the embodiments of this document will be described.
[0125] One embodiment of this document includes a method for controlling a loop filter. This method for controlling the loop filter can be applied to a reconstructed picture. The in-loop filter (loop filter) can be used for decoding an encoded bitstream. The loop filter includes the aforementioned deblocking, SAO, and ALF. The SPS includes flags related to each of deblocking, SAO, and ALF. The flag indicates whether each tool is available for coding of a CLVS (coded layer video sequence) and a CVS (coded video sequence) that refers to the SPS.
[0126] In one example, when the loop filter is available for coding of a picture within a CVS, the application of the loop filter is controlled so as not to cross a specific boundary. For example, the loop filter can be controlled so as not to cross a sub-picture boundary, the loop filter can be controlled so as not to cross a tile boundary, the loop filter can be controlled so as not to cross a slice boundary, and / or the loop filter can be controlled so as not to cross a virtual boundary.
[0127] The in-loop filtering related information includes the information, syntax, syntax elements, and / or semantics described in this document (or the embodiments included therein). The in-loop filtering related information includes information regarding whether the in-loop filtering procedure (in whole or in part) is available across a specific boundary (e.g., a virtual boundary, a sub-picture boundary, a slice boundary, and / or a tile boundary). The image information included in the bitstream includes high level syntax (HLS), and the HLS includes the in-loop filtering related information. Based on the determination as to whether the in-loop filtering procedure is applied across a specific boundary, a modified (or filtered) reconstructed sample (reconstructed picture) is generated. In one example, when the in-loop filtering procedure is disabled for all blocks / boundaries, the modified reconstructed sample may be the same as the reconstructed sample. In another example, the modified reconstructed sample includes the modified reconstructed sample derived based on in-loop filtering. However, in this case, a part of the reconstructed sample (e.g., the reconstructed samples across the virtual boundary) may not be in-loop filtered based on the determination. For example, the reconstructed samples across a specific boundary (including at least one of a virtual boundary, a sub-picture boundary, a slice boundary, and / or a tile boundary where the execution of in-loop filtering is enabled) can be in-loop filtered, but the reconstructed samples across another boundary (including at least one of a virtual boundary, a sub-picture boundary, and / or a tile boundary where the execution of in-loop filtering is disabled) may not be in-loop filtered.
[0128] In one example, in relation to whether the in-loop filtering procedure is performed across the virtual boundary, the in-loop filtering related information includes the SPS virtual boundary presence flag, the picture header virtual boundary presence flag, the information regarding the number of virtual boundaries, the information regarding the position of the virtual boundaries, etc.
[0129] In the embodiments included in this document, the information regarding the position of the virtual boundary includes the information regarding the x - coordinate of the vertical virtual boundary and / or the information regarding the y - coordinate of the horizontal virtual boundary. Specifically, the information regarding the position of the virtual boundary includes the information regarding the x - coordinate of the vertical virtual boundary and / or the y - coordinate of the horizontal virtual boundary in units of luma samples. Also, the information regarding the position of the virtual boundary includes the information regarding the number of information (syntax elements) regarding the x - coordinate of the vertical virtual boundary existing in the SPS. Also, the information regarding the position of the virtual boundary includes the information regarding the number of information (syntax elements) regarding the y - coordinate of the horizontal virtual boundary existing in the SPS. Or, the information regarding the position of the virtual boundary includes the information regarding the number of information (syntax elements) regarding the x - coordinate of the vertical virtual boundary existing in the picture header. Also, the information regarding the position of the virtual boundary includes the information regarding the number of information (syntax elements) regarding the y - coordinate of the horizontal virtual boundary existing in the picture header.
[0130] The following table shows the exemplary syntax and semantics of the SPS (sequence parameter set) according to this embodiment.
[0131]
Table 1
[0132]
Table 2
[0133] The following table shows the exemplary syntax and semantics of the PPS (picture parameter set) according to this embodiment.
[0134]
Table 3
[0135]
Table 4
[0136] The following table shows the exemplary syntax and semantics of the picture header according to this embodiment.
[0137] [Table 5-1]
[0138] [Table 5-2]
[0139] [Table 6-1]
[0140] [Table 6-2]
[0141] The following table shows the exemplary syntax and semantics of the slice header according to this embodiment.
[0142] [Table 7]
[0143] [Table 8]
[0144] Hereinafter, information related to sub-pictures, information related to virtual boundaries that can be used in in-loop filtering, and their signaling will be described.
[0145] If there is no sub-picture having a boundary that is treated as a picture boundary even though the picture contains a plurality of sub-pictures, the advantages of using sub-pictures cannot be utilized. In one embodiment of this document, the image / video information for image coding includes information for treating sub-pictures as pictures, which is called a picture handling flag (e.g., subpic_treated_as_pic_flag[i]).
[0146] To signal the layout of sub-pictures, a flag related to whether sub-pictures exist (e.g., subpic_present_flag) is signaled. This may be called the sub-picture presence flag. When the value of subpic_present_flag is 1, information regarding the number of sub-pictures that divide the picture (e.g., sps_num_subpics_minus1) is signaled. In one example, the number of sub-pictures that divide the picture may be the same as sps_num_subpics_minus1 + 1 (add 1 to sps_num_subpics_minus1). The possible values of sps_num_subpics_minus1 include 0, which means that only one sub-picture exists within the picture. When the picture contains only one sub-picture, since the sub-picture itself is a picture, the signaling of sub-picture related information is regarded as a redundant procedure.
[0147] In an existing embodiment, when a picture contains only one sub-picture and there is sub-picture signaling, the value of the picture handling flag (e.g., subpic_treated_as_pic_flag[i]) and / or the value of the flag related to whether loop filtering is performed across the sub-picture (e.g., loop_filter_across_enabled_flag) can be 0 or 1. Here, when the value of subpic_treated_as_pic_flag[i] is 0, a problem occurs that contradicts the case where the sub-picture boundary is the picture boundary. This requires additional duplicate procedures to confirm to the decoder that the picture boundary is the sub-picture boundary.
[0148] When a picture is generated based on the merging procedure of two or more sub-pictures, all sub-pictures used in the merging procedure must be independently coded sub-pictures (sub-pictures with the value of the picture handling flag (subpic_treated_as_pic_flag[i]) being 1). This is because when merging a sub-picture that is not an independently coded sub-picture (referred to as the "first sub-picture" in this paragraph), problems may occur after merging due to the blocks within the first sub-picture being coded with reference to reference blocks existing outside the first sub-picture.
[0149] Also, when a picture is partitioned into sub-pictures, the sub-picture ID signaling may or may not exist. When the sub-picture ID signaling exists, the sub-picture ID signaling exists in (is included in) the SPS, PPS, and / or the picture header (PH). When the sub-picture ID signaling does not exist in the SPS, it includes the case where a bitstream is generated as a result of the sub-picture merging procedure. Therefore, when the sub-picture ID signaling is not included in the SPS, it is preferable that all sub-pictures are independently coded.
[0150] In an image coding procedure in which a virtual boundary is used, information regarding the position of the virtual boundary can be signaled in the SPS or the picture header. Signaling information regarding the position of the virtual boundary in the SPS means that there is no change in the position within the CLVS. However, when reference picture resampling (RPR) is enabled for the CLVS, pictures within the CLVS have different sizes. Here, reference picture resampling (also called adaptive resolution change (ARC)) is performed for the normal coding operation of pictures having different resolutions (spatial resolutions). For example, reference picture resampling includes upsampling and downsampling. By reference picture resampling, high coding efficiency for the adaptation of bitrate and spatial resolution is achieved. Considering reference picture resampling, it is necessary to ensure that the position of the virtual boundary is all within one picture.
[0151] In the existing ALF procedure, a k-th order exponential Golomb code with k = 3 is used to signal the absolute values of the luma and chroma ALF coefficients. However, the k-th order exponential Golomb coding causes a considerable arithmetic overhead and complexity, which becomes a problem.
[0152] The embodiments described in the following paragraphs propose solutions for solving the aforementioned problems. The embodiments may be applied independently. Or, at least two or more embodiments may be combined and applied.
[0153] In one embodiment of this document, when subpicture signaling exists and a picture has only one subpicture, the only one subpicture is an independently coded subpicture. For example, when a picture has only one subpicture, the only one subpicture is an independently coded subpicture, and the value of the picture handling flag (e.g., subpic_treated_as_pic_flag[i]) for the only one subpicture is 1. Thereby, duplicate procedures related to the subpicture can be omitted.
[0154] In one embodiment of this document, when subpicture signaling exists, the number of subpictures may be more than one. In one example, when subpicture signaling exists (e.g., the value of subpics_present_flag is 1), the information regarding the number of subpictures (e.g., sps_num_subpics_minus1) is greater than 0, and the number of subpictures can be sps_num_subpics_minus1 + 1 (adding 1 to sps_num_subpics_minus1). In another example, the information regarding the number of subpictures is sps_num_subpics_minus2, and the number of subpictures can be sps_num_subpics_minus2 + 2 (adding 2 to sps_num_subpics_minus2). In yet another example, the subpicture presence flag subpics_present_flag can be replaced by the information regarding the number of subpictures sps_num_subpics_minus1. Thus, the subpicture signaling can exist when sps_num_subpics_minus1 is greater than 0.
[0155] In one embodiment of this document, when a picture is divided into sub - pictures, at least one of the sub - pictures among the sub - pictures may be an independently coded sub - picture. Here, the value of the picture handling flag (for example, subpic_treated_as_pic_flag[i]) regarding the independently coded sub - picture is 1.
[0156] In one embodiment of this document, the sub - pictures of a picture based on the merging procedure of two or more sub - pictures may be independently coded sub - pictures.
[0157] In one embodiment of this document, when sub - picture ID (identification) signaling exists in other positions (other syntax, other high - level syntax information) that are not in the SPS, all sub - pictures are independently coded sub - pictures, and the value of the picture handling flag (for example, subpic_treated_as_pic_flag) for all sub - pictures may be 1. In one example, the sub - picture ID signaling exists in the PPS, and in this case, all sub - pictures may be independently coded sub - pictures. In another example, the sub - picture ID signaling exists in the picture header, and in this case, all sub - pictures may be independently coded sub - pictures.
[0158] In one embodiment of this document, when virtual boundary signaling exists in the SPS for CLVS and reference picture resampling is possible, all horizontal virtual boundary positions are within the minimum picture height of the picture referring to the SPS, and all vertical virtual boundary positions may be within the minimum picture width of the picture referring to the SPS.
[0159] In one embodiment of this document, when reference picture resampling (RPR) is enabled, virtual boundary signaling is included in the picture header. That is, when reference picture resampling is enabled, virtual boundary signaling may not be included in the SPS.
[0160] In one embodiment of this document, fixed length coding (FLC) accompanied by the number of bits (or bit length) is used to signal ALF data. In one example, the information about the ALF data includes information about the bit length of the ALF luma coefficient absolute value (e.g., alf_luma_coeff_abs_len_minus1) and / or information about the bit length of the ALF chroma coefficient absolute value (e.g., alf_chroma_coeff_abs_len_minus1). For example, the information about the bit length of the ALF luma coefficient absolute value and / or the information about the bit length of the ALF chroma coefficient absolute value can be ue(v) coded.
[0161] The following table shows an exemplary syntax of the SPS according to this embodiment.
[0162]
Table 9
[0163] The following table shows exemplary semantics regarding the syntax elements included in the syntax.
[0164]
Table 10
[0165] The following table shows an exemplary syntax of the SPS according to this embodiment.
[0166]
Table 11
[0167] The following table shows exemplary semantics regarding the syntax elements included in the syntax.
[0168]
Table 12
[0169] The following table shows an exemplary syntax of the ALF data according to this embodiment.
[0170]
Table 13
[0171] The following table shows exemplary semantics regarding the syntax elements included in the syntax.
[0172]
Table 14
[0173] According to the embodiment of the present document described together with the above table, the subjective / objective quality of an image is improved by image coding based on sub-pictures and / or virtual boundaries, and the consumption of hardware resources required for coding is reduced.
[0174] FIG. 7 and FIG. 8 schematically show an example of a video / image encoding method and related components according to an embodiment (etc.) of the present document.
[0175] The method disclosed in FIG. 7 can be performed by the encoding device disclosed in FIG. 2 or FIG. 8. Specifically, for example, S700 and S730 in FIG. 7 can be performed by the prediction unit 220 of the encoding device in FIG. 8, S710 and S720 in FIG. 7 can be performed by the residual processing unit 230 of the encoding device in FIG. 8, S740 in FIG. 7 can be performed by the filtering unit 260 of the encoding device in FIG. 8, and S750 in FIG. 7 can be performed by the entropy encoding unit 240 of the encoding device in FIG. 8. Also, although not shown in FIG. 7, prediction samples or prediction-related information can be derived by the prediction unit 220 of the encoding device in FIG. 7, and a bitstream can be generated from the residual information or prediction-related information by the entropy encoding unit 240 of the encoding device. The method disclosed in FIG. 7 can include the embodiments described above in this document and the like.
[0176] As shown in FIG. 7, the encoding device can derive at least one reference picture (S700). The encoding device can perform a prediction procedure based on the at least one reference picture. Specifically, the encoding device can generate prediction samples for the current block based on a prediction mode. In this case, various prediction methods disclosed in this document, such as inter prediction or intra prediction, can be applied. The encoding device can generate prediction samples for the current block in the current picture based on the prediction procedure. For example, the encoding device can perform an inter prediction procedure based on the at least one reference picture and generate prediction samples based on the inter prediction procedure.
[0177] The encoding device can generate / derive residual samples (S710). The encoding device can derive a residual sample for the current block, and the residual sample for the current block can be derived based on the original sample of the current block and the prediction sample. In one example, the encoding device can generate a residual sample based on the at least one reference picture in step S700. For example, the encoding device can generate a prediction sample for the current block based on the at least one reference picture, and generate a residual sample based on the prediction sample.
[0178] The encoding device can derive transform coefficients. The encoding device can derive transform coefficients based on a transform procedure for the residual samples. For example, the transform procedure can include at least one of DCT, DST, GBT, or CNT.
[0179] The encoding device can derive quantized transform coefficients. The encoding device can derive quantized transform coefficients based on a quantization procedure for the transform coefficients. The quantized transform coefficients can have a one-dimensional vector form based on the coefficient scan order.
[0180] The encoding device can generate residual information (S720). The encoding device can generate residual information based on the residual samples for the current block. The encoding device can generate residual information representing the quantized transform coefficients. The residual information can be generated through various encoding methods such as exponential Golomb, CAVLC, CABAC, etc.
[0181] The encoding device can generate a restored sample. The encoding device can generate a restored sample based on the residual information. The restored sample can be generated by adding a residual sample based on the residual information to a predicted sample. Specifically, the encoding device can perform prediction (intra or inter prediction) on the current block and generate a restored sample based on the original sample and the predicted sample generated from the prediction.
[0182] The restored sample can include a restored luma sample and a restored chroma sample. Specifically, the residual sample can include a residual luma sample and a residual chroma sample. The residual luma sample can be generated based on the original luma sample and the predicted luma sample. The residual chroma sample can be generated based on the original chroma sample and the predicted chroma sample. The encoding device can derive a conversion coefficient (luma conversion coefficient) for the residual luma sample and / or a conversion coefficient (chroma conversion coefficient) for the residual chroma sample. The quantized conversion coefficient can include the quantized luma conversion coefficient and / or the quantized chroma conversion coefficient.
[0183] The encoding device can generate reference picture related information (S730). The encoding device can generate reference picture related information based on the at least one reference picture. The reference picture related information can be used for inter prediction by a decoding device.
[0184] The encoding device can generate in-loop filtering related information for the restoration samples of the current picture (S740). The encoding device can perform an in-loop filtering procedure on the restoration samples and generate in-loop filtering related information based on the in-loop filtering procedure. For example, the in-loop filtering related information can include information regarding the virtual boundaries described above in this document (such as the SPS virtual boundary available flag, the picture header virtual boundary available flag, the SPS virtual boundary existence flag, the picture header virtual boundary existence flag, information regarding the position of the virtual boundary, etc.).
[0185] The encoding device can encode video / image information (S750). The image information can include residual information, prediction related information, reference picture related information, virtual boundary related information (and / or additional virtual boundary related information), and / or in-loop filtering related information. The encoded video / image information can be output in the form of a bitstream. The bitstream can be transmitted to the decoding device via a network or a storage medium.
[0186] The image / video information can include various information according to the embodiments of this document. For example, the image / video information can include information disclosed in at least one of Tables 1 to 14 described above.
[0187] In one embodiment, the image information may include an SPS (sequence parameter set). For example, based on whether resampling for the at least one reference picture is available, it may be determined whether the SPS includes additional virtual boundary related information. Here, resampling for at least one reference picture can be performed by the above-described RPR (reference picture resampling). The additional virtual boundary related information may also simply be referred to as virtual boundary related information. "Additional" is used for distinction from virtual boundary related information such as an SPS virtual boundary existence flag and / or a PH virtual boundary existence flag.
[0188] In one embodiment, the additional virtual boundary related information may include the number of virtual boundaries and the positions of the virtual boundaries.
[0189] In one embodiment, the additional virtual boundary related information may include information regarding the number of vertical virtual boundaries, information regarding the positions of the vertical virtual boundaries, information regarding the number of horizontal virtual boundaries, and information regarding the positions of the horizontal virtual boundaries.
[0190] In one embodiment, the image information may include a reference picture resampling availability flag. For example, based on the reference picture resampling availability flag, it may be determined whether resampling for the at least one reference picture is available.
[0191] In one embodiment, the SPS may include an SPS virtual boundary existence flag related to whether the SPS includes the additional virtual boundary related information. Based on resampling for the at least one reference picture being available, the value of the SPS virtual boundary existence flag can be determined to be 0.
[0192] In one embodiment, based on the resampling for the at least one reference picture being available, the additional virtual boundary related information may not be included in the SPS. The image information includes picture header information, and the picture header information may include the additional virtual boundary related information.
[0193] In one embodiment, the current picture may include subpictures as just one subpicture. The subpictures can be independently coded. The restored samples are generated based on the subpictures, subpicture related information is generated based on the subpictures, and the image information may include the subpicture related information.
[0194] In one embodiment, a picture handling flag for the subpicture may not exist in the image information. Thus, the value of the picture handling flag for the subpicture can be set through inference (speculation or prediction) at the decoding device. In one example, the value of the picture handling flag for the subpicture can be set to 1.
[0195] In one embodiment, the current picture may include subpictures. In one example, the subpictures can be derived based on a merging procedure of two or more independently - coded - subpictures. The restored samples are generated based on the subpictures, subpicture related information is generated based on the subpictures, and the image information may include the subpicture related information.
[0196] FIG. 9 and FIG. 10 schematically show an example of a video / image decoding method and related components according to an embodiment (etc.) of this document.
[0197] The method disclosed in FIG. 9 can be performed by the decoding device disclosed in FIG. 3 or FIG. 10. Specifically, for example, S900 in FIG. 9 can be performed by the entropy decoding unit 310 of the decoding device, S910 in FIG. 9 can be performed by the prediction unit 310 of the decoding device, S920 can be performed by the residual processing unit 320 and / or the addition unit 340 of the decoding device, and S930 can be performed by the filtering unit 350 of the decoding device. The method disclosed in FIG. 9 can include the embodiments described above in this document and the like.
[0198] As shown in FIG. 9, the decoding device can receive / acquire video / image information (S900). The video / image information can include residual information, prediction-related information, reference picture-related information, virtual boundary-related information (and / or additional virtual boundary-related information), and / or in-loop filtering-related information. The decoding device can receive / acquire the image / video information via a bitstream.
[0199] The image / video information can include various information according to the embodiments of this document. For example, the image / video information can include the information disclosed in at least one of Tables 1 to 14 described above.
[0200] The decoding device can derive quantized transform coefficients. The decoding device can derive quantized transform coefficients based on the residual information. The quantized transform coefficients can have a one-dimensional vector form based on the coefficient scan order. The quantized transform coefficients can include quantized luma transform coefficients and / or quantized chroma transform coefficients.
[0201] The decoding device can derive the transform coefficients. The decoding device can derive the transform coefficients based on an inverse quantization procedure for the quantized transform coefficients. The decoding device can derive the luma transform coefficients through inverse quantization based on the quantized luma transform coefficients. The decoding device can derive the chroma transform coefficients through inverse quantization based on the quantized chroma transform coefficients.
[0202] The decoding device can generate / derive residual samples. The decoding device can derive the residual samples based on an inverse transform procedure for the transform coefficients. The decoding device can derive the residual luma samples through an inverse transform procedure based on the luma transform coefficients. The decoding device can derive the residual chroma samples through an inverse transform procedure based on the chroma transform coefficients.
[0203] The decoding device can derive at least one reference picture based on the reference picture related information (S910). The decoding device can perform a prediction procedure based on the at least one reference picture. Specifically, the decoding device can generate the predicted samples of the current block based on the prediction mode. In this case, various prediction methods disclosed in this document, such as inter prediction or intra prediction, can be applied. The decoding device can generate the predicted samples for the current block in the current picture based on the prediction procedure. For example, the decoding device can perform an inter prediction procedure based on the at least one reference picture and generate the predicted samples based on the inter prediction procedure.
[0204] The decoding device can generate / derive restored samples (S920). The decoding device can generate restored samples based on predicted samples and residual samples. The decoding device can generate restored samples based on the sum between the predicted samples and the original samples. For example, the decoding device can generate / derive restored luma samples and / or restored chroma samples. The decoding device can generate restored luma samples and / or restored chroma samples based on the residual information. The decoding device can generate restored samples based on the residual information. The restored samples can include restored luma samples and / or restored chroma samples. The luma component of the restored samples can correspond to the restored luma samples, and the chroma component of the restored samples can correspond to the restored chroma samples. The decoding device can generate predicted luma samples and / or predicted chroma samples through a prediction procedure. The decoding device can generate restored luma samples based on the predicted luma samples and the residual luma samples. The decoding device can generate restored chroma samples based on the predicted chroma samples and the residual chroma samples.
[0205] The decoding device can generate modified (filtered) restored samples (S930). The decoding device can generate modified restored samples based on an in-loop filtering procedure for the restored samples. The decoding device can generate modified restored samples based on in-loop filtering related information. The decoding device can use a deblocking procedure, an SAO procedure, and / or an ALF procedure to generate the modified restored samples.
[0206] In one embodiment, the image information can include an SPS. For example, it can be determined whether the SPS includes additional virtual boundary related information based on whether resampling for the at least one reference picture is available. Here, resampling for the at least one reference picture can be performed by the above-described RPR. The additional virtual boundary related information can also be simply referred to as virtual boundary related information. "Additional" is used for distinction from virtual boundary related information such as an SPS virtual boundary presence flag and / or a PH virtual boundary presence flag.
[0207] In one embodiment, the additional virtual boundary related information can include the number of virtual boundaries and the positions of the virtual boundaries.
[0208] In one embodiment, the additional virtual boundary related information can include information regarding the number of vertical virtual boundaries, information regarding the positions of the vertical virtual boundaries, information regarding the number of horizontal virtual boundaries, and information regarding the positions of the horizontal virtual boundaries.
[0209] In one embodiment, the image information can include a reference picture resampling availability flag. For example, it can be determined whether resampling for the at least one reference picture is available based on the reference picture resampling availability flag.
[0210] In one embodiment, the SPS can include an SPS virtual boundary presence flag related to whether the SPS includes the additional virtual boundary related information. Based on the availability of resampling for the at least one reference picture, the value of the SPS virtual boundary presence flag can be determined to be 0.
[0211] In one embodiment, based on the resampling for the at least one reference picture being available, the additional virtual boundary related information may not be included in the SPS. The image information includes picture header information, and the picture header information may include the additional virtual boundary related information.
[0212] In one embodiment, the current picture may include a subpicture as only one subpicture. The subpicture may be independently coded. The reconstructed samples are generated based on the subpicture, subpicture related information is generated based on the subpicture, and the image information may include the subpicture related information.
[0213] In one embodiment, a picture handling flag for the subpicture may not exist in the image information. Accordingly, the value of the picture handling flag for the subpicture may be set by inference (guess or prediction) by a decoding device. In one example, the value of the picture handling flag for the subpicture may be set to 1.
[0214] In one embodiment, the current picture includes a subpicture. In one example, the subpicture is derived based on a merging procedure of two or more independently - coded - subpictures. The reconstructed samples are generated based on the subpicture, subpicture related information is generated based on the subpicture, and the image information includes the subpicture related information.
[0215] If there are residual samples for the current block, the decoding device can receive information regarding the residual for the current block. The information regarding the residual can include transform coefficients regarding the residual samples. The decoding device can derive residual samples (or a residual sample array) for the current block based on the residual information. Specifically, the decoding device can derive quantized transform coefficients based on the residual information. The quantized transform coefficients can have a one-dimensional vector form based on the coefficient scan order. The decoding device can derive transform coefficients based on an inverse quantization procedure for the quantized transform coefficients. The decoding device can derive residual samples based on the transform coefficients.
[0216] The decoding device can generate restored samples based on (intra) prediction samples and residual samples, and can derive a restored block or a restored picture based on the restored samples. Specifically, the decoding device can generate restored samples based on the sum of (intra) prediction samples and residual samples. Thereafter, as described above, the decoding device can apply in-loop filtering procedures such as deblocking filtering and / or SAO procedures to the restored picture, if necessary, to improve subjective / objective image quality.
[0217] For example, the decoding device can decode a bitstream or encoded information and obtain image information including all or part of the aforementioned information (or syntax elements). Also, the bitstream or encoded information can be stored in a computer-readable storage medium and can be caused to perform the aforementioned decoding method.
[0218] In the foregoing embodiments, the method has been described based on a flowchart as a series of steps or blocks, but the corresponding embodiments are not limited to the order of the steps, and a certain step may occur in an order different from that of the steps described above or simultaneously with different steps. Also, those skilled in the art can understand that the steps shown in the flowchart are not exclusive, and different steps may be included, or one or more steps of the flowchart may be deleted without affecting the scope of the embodiments of this document.
[0219] The method according to the embodiments of this document described above can be realized in the form of software, and the encoding device and / or decoding device according to this document can 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.
[0220] In this document, when an embodiment is realized by software, the method described above can be realized by a module (process, function, etc.) that performs the functions described above. The module can be stored in a memory and executed by a processor. The memory may be inside or outside the processor and may be connected to the processor by various well-known means. The processor can include an ASIC (application-specific integrated circuit), other chip sets, logic circuits, and / or data processing devices. The memory can include a ROM (read-only memory), a RAM (random access memory), a flash memory, a memory card, a storage medium, and / or other storage devices. That is, the embodiments described in this document can be realized and performed on a processor, a microprocessor, a controller, or a chip. For example, the functional units shown in each drawing can be realized and performed on a computer, a processor, a microprocessor, a controller, or a chip. In this case, the information for realization (e.g., information on instructions) or the algorithm can be stored in a digital storage medium.
[0221] In addition, the decoding device and encoding device to which the embodiments of this document are applied may include a multimedia broadcast transceiver, a mobile communication terminal, a home cinema video device, a digital cinema video device, a surveillance camera, a video intercom device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a camcorder, an on-demand video (VoD) service providing device, an over-the-top video (OTT) device, an Internet streaming service providing device, a three-dimensional (3D) video device, a virtual reality (VR) device, an augmented reality (AR) device, a picture phone video device, a transportation means terminal (e.g., a vehicle terminal including an autonomous driving vehicle, an airplane terminal, a ship terminal, etc.) and a medical video device, etc., and may be used to process video signals or data signals. For example, as the over-the-top video (OTT) device, it 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.
[0222] In addition, the processing method to which the embodiments of this document are applied can be produced in the form of a program executed by a computer and can be stored in a recording medium readable by the computer. Multimedia data having a data structure according to the embodiments of this document can also be stored in a recording medium readable by the computer. The recording medium readable by the computer includes all types of storage devices and distributed storage devices in which data readable by the computer is stored. The recording medium readable by the computer can include, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk, and optical data storage devices. Also, the recording medium readable by the computer includes a medium realized in the form of a carrier wave (for example, transmission via the Internet). Further, a bit stream generated by an encoding method can be stored in a recording medium readable by the computer or can be transmitted via a wired or wireless communication network.
[0223] In addition, the embodiments of this document can be realized by a computer program product with program code, and the program code can be executed by a computer according to the embodiments of this document. The program code can be stored on a carrier readable by a computer.
[0224] FIG. 11 shows an example of a content streaming system to which the embodiments disclosed in this document can be applied.
[0225] Referring to FIG. 11, the content streaming system to which the embodiments of this document are applied can include a large encoding server, a streaming server, a web server, a media storage, a user device, and a multimedia input device.
[0226] The encoding server compresses the content input from a multimedia input device such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream, and plays the role of transmitting this to the streaming server. As another example, when a multimedia input device such as a smartphone, camera, camcorder, etc. directly generates a bitstream, the encoding server may be omitted.
[0227] The bitstream can be generated by an encoding method or a method for generating a bitstream to which the embodiments of this document are applied, and the streaming server can temporarily store the bitstream in the process of transmitting or receiving the bitstream.
[0228] The streaming server transmits multimedia data to the user device based on a user request via a web server, and the web server plays the role of a medium for informing the user of what services are available. If the user requests a desired service from the web server, the web server transmits this to the streaming server, and the streaming server transmits multimedia data to the user. At this time, the content streaming system can include another control server, and in this case, the control server plays the role of controlling commands / responses between each device in the content streaming system.
[0229] The streaming server can receive content from a media repository and / or an encoding server. For example, when it comes to receiving content from the encoding server, the content can be received in real time. In this case, in order to provide a smooth streaming service, the streaming server can store the bitstream for a certain period of time.
[0230] In the example of the user device, there may be a mobile phone, a smart phone, a laptop computer, a digital broadcast terminal, a PDA (personal digital assistants), a PMP (portable multimedia player), a navigation device, a slate PC, a tablet PC, an ultrabook, a wearable device (for example, a smartwatch, smart glass, an HMD (head mounted display)), a digital TV, a desktop computer, a digital signage, etc.
[0231] Each server in the content streaming system can be operated as a distributed server. In this case, the data received by each server can be distributedly processed.
[0232] The claims described in this specification can be combined in various ways. For example, the technical features of the method claims in this specification can be combined and realized as an apparatus, and the technical features of the apparatus claims in this specification can be combined and realized as a method. Also, the technical features of the method claims in this specification and the technical features of the apparatus claims can be combined and realized as an apparatus, and the technical features of the method claims in this specification and the technical features of the apparatus claims can be combined and realized as a method.
Claims
1. In an image decoding method performed by a decoding apparatus, obtaining image information including residual information and reference picture related information via a bitstream; deriving at least one reference picture based on the reference picture related information; generating restored samples of a current picture based on the residual information and the at least one reference picture; generating modified restored samples based on an in-loop filtering procedure for the restored samples, the method comprising: the reference picture related information is index information for the at least one reference picture; the image information includes an SPS (sequence parameter set); determining whether the SPS includes additional virtual boundary related information based on whether resampling for the at least one reference picture is possible; the SPS includes an SPS virtual boundary presence flag related to whether the SPS includes the additional virtual boundary related information; determining that a value of the SPS virtual boundary presence flag is 0 based on the resampling for the at least one reference picture being possible.
2. In an image encoding method performed by an encoding apparatus, generating residual samples for a current block; generating residual information based on the residual samples for the current block; deriving at least one reference picture for restored samples of a current picture; generating reference picture related information based on the at least one reference picture; generating in-loop filtering related information for restored samples of the current picture; encoding image information including the residual information, the reference picture related information, and the in-loop filtering related information, the method comprising: the reference picture related information is index information for the at least one reference picture; the image information includes an SPS (sequence parameter set); determining whether the SPS includes additional virtual boundary related information based on whether resampling for the at least one reference picture is possible; The SPS includes an SPS virtual boundary existence flag related to whether the SPS includes the additional virtual boundary related information. A method in which, based on the resampling for the at least one reference picture being possible, the value of the SPS virtual boundary existence flag is determined to be 0. **Claim 3** In a method for transmitting data for an image, a step of obtaining a bitstream for the image, where the bitstream generates residual samples for a current block, generates residual information based on the residual samples for the current block, derives at least one reference picture for restored samples of a current picture, generates reference picture related information based on the at least one reference picture, generates in-loop filtering related information for restored samples of the current picture, a step generated based on encoding image information including the residual information, the reference picture related information, and the in-loop filtering related information, a step of transmitting the data including the bitstream, the reference picture related information is index information for the at least one reference picture, the image information includes an SPS (sequence parameter set), based on whether resampling for the at least one reference picture is possible, it is determined whether the SPS includes additional virtual boundary related information, the SPS includes an SPS virtual boundary existence flag related to whether the SPS includes the additional virtual boundary related information, A method in which, based on the resampling for the at least one reference picture being possible, the value of the SPS virtual boundary existence flag is determined to be 0.