Image decoding method, image encoding method, and image data transmission method
By using high-efficiency filtering technology and signaling of virtual boundary-related information in image/video encoding, the problems of high-resolution image/video data transmission costs and storage costs are solved, and more efficient image/video encoding and improved visual quality are achieved.
Patent Information
- Application Number
- CN202510432423.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-23
- Filing Date
- 2020-12-23
- Publication Date
- 2025-05-16
AI Technical Summary
The prior art is difficult to effectively compress and transmit high-resolution, high-quality image/video data, especially in applications of ultra-high-definition (UHD) image/video and immersive media such as VR and AR, resulting in increased transmission and storage costs.
High-efficiency filtering application methods are adopted, including deblocking filtering, sample adaptive loop (SAO) and adaptive loop filtering (ALF), and in-loop filtering is performed based on virtual boundaries to improve image/video encoding efficiency.
Efficient encoding and decoding are achieved by improving image/video compression efficiency, improving subjective/objective visual quality, and rewriting bitstream processing by omitting virtual boundary signaling.
Smart Images

Figure CN120017860A_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the original application number 202080096855.2 (international application number: PCT / KR2020 / 019003, application date: December 23, 2020, invention name: sub-picture based image encoding device and method). Technical Field
[0002] The present document relates to a sub-picture based image encoding apparatus and method. Background Art
[0003] Recently, the demand for high-resolution, high-quality images / videos such as 4K or 8K or higher ultra-high-definition (UHD) images / videos has increased in various fields. As image / video data has high resolution and high quality, the amount of information or the amount of bits to be transmitted increases relative to existing image / video data, and therefore, transmitting image data using a medium such as an existing wired / wireless broadband line or an existing storage medium or storing image / video data using an existing storage medium increases transmission costs and storage costs.
[0004] In addition, interest in and demand for immersive media such as virtual reality (VR) and artificial reality (AR) content or holograms have recently increased, and broadcasting of images / videos having characteristics different from real images (e.g., game images) has increased.
[0005] Therefore, very efficient image / video compression technology is required to effectively compress, transmit, store and reproduce information of high-resolution, high-quality images / videos having various characteristics as described above.
[0006] In particular, in order to enhance subjective / objective visual quality, a picture is composed of sub-pictures, and a scheme for enhancing signaling efficiency of sub-picture related information is being discussed. Summary of the invention
[0007] Technical Solution
[0008] According to an embodiment of this document, a method and apparatus for increasing image encoding efficiency are provided.
[0009] According to the embodiments of this document, a high-efficiency filtering application method and device are provided.
[0010] According to an embodiment of this document, a method and apparatus for effectively applying deblocking, sample adaptive loop filtering (SAO), and adaptive loop filtering (ALF) are provided.
[0011] According to an embodiment of the present document, in-loop filtering may be performed based on a virtual boundary.
[0012] According to an embodiment of this document, signaling of virtual boundary related information may be performed based on signaling of sub-picture related information.
[0013] According to an embodiment of this document, there is provided an encoding device for performing video / image encoding.
[0014] According to one embodiment of the present document, a computer-readable digital storage medium is provided, in which encoded video / image information generated according to the video / image encoding method disclosed in at least one embodiment of the present document is stored.
[0015] According to an embodiment of the present document, a computer-readable digital storage medium is provided, in which encoded information or encoded video / image information is stored for enabling a decoding device to execute a video / image decoding method disclosed in at least one embodiment of the present document.
[0016] Beneficial Effects
[0017] According to the embodiments of this document, the overall image / video compression efficiency can be improved.
[0018] According to the embodiments of this document, subjective / objective visual quality can be improved through efficient filtering.
[0019] According to an embodiment of the present document, efficient encoding can be achieved by omitting a process of rewriting a bitstream through signaling-based virtual boundary signaling of a sub-picture. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 An example of a video / image encoding system to which embodiments of this document may be applied is schematically shown.
[0021] Figure 2 is a diagram schematically showing a configuration of a video / image encoding device to which an embodiment of the present document can be applied.
[0022] Figure 3 is a diagram schematically showing a configuration of a video / image decoding device to which an embodiment of the present document can be applied.
[0023] Figure 4 The layered architecture of coded video / images is shown exemplarily.
[0024] Figure 5 A screen showing an embodiment of the present document.
[0025] Figure 6 A sub-picture / slice / tile-based encoding method according to an embodiment of this document is shown.
[0026] Figure 7A sub-picture / slice / tile based decoding method according to an embodiment of this document is shown.
[0027] Figure 8 is a flow chart illustrating a filtering-based encoding method in an encoding device.
[0028] Fig. 9 is a flow chart illustrating a filtering-based decoding method in a decoding device.
[0029] Fig.10 and Fig.11 An example of a video / image encoding method and related components according to an embodiment of the present document is schematically shown.
[0030] Fig.12 and Fig.13 An example of an image / video decoding method and related components according to an embodiment of this document is schematically shown.
[0031] Fig.14 An example of a content streaming system to which the embodiments disclosed in this document can be applied is shown. DETAILED DESCRIPTION
[0032] The various configurations of the drawings described in this document are independent illustrations used to illustrate functions as different features from each other, and do not mean that the various configurations are implemented by different hardware or different software. For example, two or more configurations can be combined to form one configuration, and one configuration can also be divided into multiple configurations. Without departing from the main purpose of this document, embodiments in which the configurations are combined and / or separated are included within the scope of the claims.
[0033] In addition, this document can be modified in various forms, and its specific embodiments will be described and shown in the drawings. However, these embodiments are not intended to limit this document. The terms used in the following description are only used to describe specific embodiments and are not intended to limit this document. Singular expressions include plural expressions as long as they are clearly read differently. Terms such as "including" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the following description, so it should be understood that the possibility of the presence or addition of one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.
[0034] Hereinafter, examples of the present embodiment will be described in detail with reference to the accompanying drawings. In addition, like reference numerals are used to indicate like elements throughout the drawings, and the same description about the like elements will be omitted.
[0035] This document relates to video / image coding. For example, the methods / implementations disclosed in this document may relate to the Versatile Video Coding (VVC) standard (ITU-T Rec. H.266), the next generation video / image coding standard after VVC, or other video coding related standards (e.g., High Efficiency Video Coding (HEVC) standard (ITU-T Rec. H.265), Basic Video Coding (EVC) standard, AVS2 standard, etc.).
[0036] This document proposes various embodiments of video / image coding, and unless otherwise specified, the above embodiments may also be performed in combination with each other.
[0037] In this document, video may refer to a series of images over time. A picture generally refers to a unit representing an image for a specific time range, and a slice / tile refers to a unit that constitutes a part of a picture in terms of coding. A slice / tile may include one or more coding tree units (CTUs). A picture may consist of one or more slices / tiles. A picture may consist of one or more tile groups. A tile group may include one or more tiles.
[0038] A pixel or picture element may refer to the smallest unit constituting a picture (or image). In addition, a "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component.
[0039] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or an area. In general, an M×N block may include M columns and N rows of samples (or sample arrays) or a set (or array) of transform coefficients. Alternatively, a sample may refer to a pixel value in a spatial domain, and when such a pixel value is transformed to a frequency domain, it may refer to a transform coefficient in a frequency domain.
[0040] In this document, the terms " / " and "," should be interpreted as indicating "and / or". For example, the expression "A / B" may mean "A and / or B". In addition, "A,B" may mean "A and / or B". In addition, "A / B / C" may mean "at least one of A, B, and / or C". In addition, "A / B / C" may mean "at least one of A, B, and / or C".
[0041] Furthermore, in this document, the term "or" should be interpreted as indicating "and / or". For example, the expression "A or B" may include 1) only A, 2) only B, and / or 3) both A and B. In other words, the term "or" in this document should be interpreted as indicating "additionally or alternatively".
[0042] In the present specification, "at least one of A and B" may mean "only A", "only B", or "both A and B". In addition, in the present specification, the expression "at least one of A or B" or "at least one of A and / or B" may be interpreted the same as "at least one of A and B".
[0043] Furthermore, in the present specification, “at least one of A, B, and C” may mean “only A”, “only B”, “only C”, or “any combination of A, B, and C”. Furthermore, “at least one of A, B, or C” or “at least one of A, B and / or C” may mean “at least one of A, B, and C”.
[0044] In addition, brackets used in this specification may mean "for example". Specifically, in the case of expressing "prediction (intra-frame prediction)", it may indicate that "intra-frame prediction" is proposed as an example of "prediction". In other words, the term "prediction" in this specification is not limited to "intra-frame prediction", and it may indicate that "intra-frame prediction" is proposed as an example of "prediction". In addition, even in the case of expressing "prediction (i.e., intra-frame prediction)", it may indicate that "intra-frame prediction" is proposed as an example of "prediction".
[0045] In this specification, technical features described separately in one drawing may be implemented separately or may be implemented simultaneously.
[0046] Figure 1 An example of a video / image encoding system to which this document can be applied is shown.
[0047] Reference Figure 1 The video / image coding system may include a source device and a receiving device. The source device may send the coded video / image information or data in the form of a file or stream to the receiving device via a digital storage medium or a network.
[0048] The source device may include a video source, an encoding device, and a transmitter. The receiving device may include a receiver, a decoding device, and a renderer. The encoding device may be referred to as a video / image encoding device, and the decoding device may be referred to as a video / image decoding device. The transmitter may be included in the encoding device. The receiver may be included in the decoding device. The renderer may include a display, and the display may be configured as a separate device or an external component.
[0049] The video source may acquire the video / image by capturing, synthesizing or generating the video / image process. The video source may include a video / image capture device and / or a video / image generation device. For example, the video / image capture device may include one or more cameras, a video / image archive including previously captured videos / images, etc. For example, the video / image generation device may include a computer, a tablet computer, and a smart phone, and may generate the video / image (electronically). For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capture process may be replaced by a process that generates relevant data.
[0050] The encoding device can encode the input video / image. For compression and encoding efficiency, the encoding device can perform a series of processes such as prediction, transformation and quantization. The encoded data (encoded video / image information) can be output in the form of a bit stream.
[0051] The transmitter may transmit the encoded image / image information or data output in the form of a bit stream to a receiver of a receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmission through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.
[0052] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.
[0053] The renderer may render the decoded video / image. The rendered video / image may be displayed through a display.
[0054] Figure 2 Schematically shows the configuration of a video / image encoding device to which the present document can be applied. Hereinafter, the so-called video encoding device may include an image encoding device.
[0055] Reference Figure 2, the encoding device 200 may include and be configured with an image segmenter 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234, and an inverse transformer 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. According to an embodiment, the above-mentioned image segmenter 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250, and the filter 260 may be configured by one or more hardware components (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB) and may also be configured by a digital storage medium. The hardware component may also include a memory 270 as an internal / external component.
[0056] The image divider 210 may divide the input image (or picture, frame) input to the encoding device 200 into one or more processing units. As an example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, one coding unit may be divided into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary tree structure. In this case, for example, the quadtree structure is applied first, and the binary tree structure and / or the ternary tree structure may be applied later. Alternatively, the binary tree structure may also be applied first. The encoding process according to the present document may be performed based on the final coding unit that is no longer divided. In this case, based on encoding efficiency according to image characteristics, etc., the maximum coding unit may be directly used as the final coding unit, or if necessary, the coding unit may be recursively divided into coding units with a deeper depth so that a coding unit with an optimal size may be used as the final coding unit. Here, the encoding process may include processes such as prediction, transformation, and reconstruction (described later). As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, each of the prediction unit and the transform unit may be split or divided from the above-mentioned final coding unit. The prediction unit may be a unit for sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.
[0057] In some cases, a unit may be used interchangeably with terms such as a block or a region. In general, an M×N block may represent a sample or a set of transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, and may also represent only a pixel / pixel value of a luminance component, and may also represent only a pixel / pixel value of a chrominance component. A sample may be used as a term corresponding to a pixel or a picture element configuring one screen (or image).
[0058] The subtractor 231 may generate a residual signal (residual block, residual sample, or residual sample array) by subtracting a prediction signal (prediction block, prediction sample, or prediction sample array) output from the predictor 220 from an input image signal (original block, original sample, or original sample array), and the generated residual signal is sent to the transformer 232. The predictor 220 may perform prediction on a processing target block (hereinafter, referred to as a "current block") and generate a prediction block including prediction samples of the current block. The predictor 220 may determine whether intra prediction or inter prediction is applied to the current block or in units of CUs. As described later in the description of each prediction mode, the predictor may generate various types of information related to prediction (e.g., prediction mode information) and transmit the generated information to the entropy encoder 240. Information about the prediction may be encoded in the entropy encoder 240 and output in the form of a bitstream.
[0059] The intra-frame predictor 222 may predict the current block with reference to samples within the current picture. Depending on the prediction mode, the referenced sample may be located near the current block, or may be far away from the current block. The prediction mode in the intra-frame prediction may include multiple non-directional modes and multiple directional modes. For example, the non-directional mode may include a DC mode or a plane mode. For example, depending on the degree of refinement of the prediction direction, the directional mode may include 33 directional prediction modes or 65 directional prediction modes. However, this is exemplary, and more or less directional prediction modes than the above number may be used according to the settings. The intra-frame predictor 222 may also use the prediction mode applied to the neighboring blocks to determine the prediction mode applied to the current block.
[0060] The inter-frame predictor 221 may derive a prediction block of 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 sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may also be the same as each other, and may also be different from each other. The temporal neighboring block may be referred to as a name such as a collocated reference block, a collocated CU (colCU), etc., and the reference picture including the temporal neighboring block may also be referred to as a collocated picture (colPic). For example, the inter-frame predictor 221 may configure a motion information candidate list based on the neighboring 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 may be performed based on various prediction modes, for example, in the case of skip mode and merge mode, the inter predictor 221 may use motion information of a neighboring block as motion information of a current block. In skip mode, unlike merge mode, a residual signal may not be transmitted. A motion vector prediction (MVP) mode may indicate a motion vector of a current block by using a motion vector of a neighboring block as a motion vector predictor and signaling a motion vector difference.
[0061] The predictor 220 may generate a prediction signal based on various prediction methods described below. For example, the predictor may apply not only intra prediction or inter prediction to predict a block, but also both intra prediction and inter prediction at the same time. This may be referred to as combined inter and intra prediction (CIIP). In addition, the predictor may perform intra block copy (IBC) for predicting blocks. Intra block copy may be used for content image / motion image coding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but may be performed similarly to inter prediction so that a reference block is derived in the current picture. That is, IBC may use at least one inter prediction technique described in this document.
[0062] The prediction signal generated by the inter-frame predictor 221 and / or the intra-frame predictor 222 can be used to generate a reconstruction signal or to generate a residual signal. The transformer 232 can generate a transform coefficient by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), or a conditional nonlinear transform (CNT). Here, when the relationship information between pixels is represented by a graph, GBT means a transform obtained from a graph. CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. In addition, the transform process can be applied to square pixel blocks of the same size or can be applied to blocks of variable size other than squares.
[0063] The quantizer 233 may quantize the transform coefficients and send them to the entropy encoder 240, and the entropy encoder 240 may encode the quantized signal (information about the quantized transform coefficients) and output a bitstream. The information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the block type quantized transform coefficients into a one-dimensional vector form based on the coefficient scanning order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form. The entropy encoder 240 may perform various encoding methods such as exponential Golomb, context adaptive variable length coding (CAVLC), context adaptive binary arithmetic coding (CABAC), etc. The entropy encoder 240 may encode information required for video / image reconstruction together with or separately from the quantized transform coefficients (e.g., the value of a syntax element, etc.). The encoded information (e.g., encoded video / image information) may be transmitted or stored in units of a network abstraction layer (NAL) in the form of a bitstream. The video / image information may also include information about various parameter sets, such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. In this document, the information and / or syntax elements that are signaled / sent described later may be encoded by the above-mentioned encoding process and included in the bitstream. The bitstream may be sent over a network or may be stored in a digital storage medium. Here, the network may include a broadcast network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) that sends a signal output from the entropy encoder 240 and / or a storage unit (not shown) that stores the signal may be configured as an internal / external element of the encoding device 200, and alternatively, the transmitter may be included in the entropy encoder 240.
[0064] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, a residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transformation to the quantized transform coefficients via the dequantizer 234 and the inverse transformer 235. The adder 250 adds the reconstructed residual signal to the prediction signal output from the predictor 220 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample or reconstructed sample array). If there is no residual in the processing target block (for example, in the case of applying skip mode), the prediction block can be used as a reconstructed block. As described below, the generated reconstructed signal can be used for intra-frame prediction of the next processing target block in the current picture and can be used for inter-frame prediction of the next picture by filtering.
[0065] Furthermore, luma mapping with chroma scaling (LMCS) may be applied during the picture encoding and / or reconstruction process.
[0066] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). For example, various filtering methods may include deblocking filtering, sample adaptive offset (SAO), adaptive loop filter, bilateral filter, etc. The filter 260 can generate various types of information related to filtering and transmit the generated information to the entropy encoder 290, as described later in the description of each filtering method. The information related to filtering can be encoded by the entropy encoder 290 and output in the form of a bitstream.
[0067] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied by the encoding apparatus, prediction mismatch between the encoding apparatus 200 and the decoding apparatus 300 may be avoided and encoding efficiency may be improved.
[0068] The DPB of the memory 270 may store a modified reconstructed picture used as a reference picture in the inter-frame predictor 221. The memory 270 may store motion information of a block from which motion information in the current picture is derived (or encoded) and / or motion information of a block that has been reconstructed in the picture. The stored motion information may be transmitted to the inter-frame predictor 221 to be used as motion information of a spatially adjacent block or motion information of a temporally adjacent block. The memory 270 may store reconstructed samples of a reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame predictor 222.
[0069] Figure 3 This is a diagram for schematically illustrating the configuration of a video / image decoding device to which this document can be applied.
[0070] Reference Figure 3, the decoding device 300 may include and be configured with an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 331 and an intra-frame predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to an embodiment, the entropy decoder 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 described above may be configured by one or more hardware components (e.g., a decoder chipset or a processor). In addition, the memory 360 may include a decoded picture buffer (DPB) and may be configured by a digital storage medium. The hardware component may also include a memory 360 as an internal / external component.
[0071] When a bit stream including video / image information is input, the decoding device 300 may respond to the Figure 2 The image is reconstructed by processing video / image information in the encoding device shown. For example, the decoding device 300 may derive a unit / block based on block partition related information obtained from the bitstream. The decoding device 300 may perform decoding using a processing unit applied to the encoding device. Thus, for example, the processing unit for decoding may be a coding unit, and the coding unit may be divided from a coding tree unit or a maximum coding unit according to a quadtree structure, a binary tree structure, and / or a ternary tree structure. One or more transform units may be derived from the coding unit. In addition, the reconstructed image signal decoded and output by the decoding device 300 may be reproduced by a reproduction device.
[0072] The decoding device 300 may receive Figure 2The received signal may be decoded by the entropy decoder 310. For example, the entropy decoder 310 may parse the bitstream to derive information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets, such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The decoding device may also decode the picture based on the information about the parameter set and / or the general constraint information. The information and / or syntax elements signaled / received described later in this document may be decoded and obtained from the bitstream by a decoding process. For example, the entropy decoder 310 may decode the information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and output the syntax elements required for image reconstruction and the quantized values of the transform coefficients of the residual. More specifically, the CABAC entropy decoding method may receive a bin corresponding to each syntax element in the bitstream, determine a context model using information of a decoding target syntax element, decoding information of a decoding target block, or information of a symbol / bin decoded in a previous stage, and perform arithmetic decoding on the bin by predicting the probability of occurrence of the bin according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Information related to prediction among the information decoded by the entropy decoder 310 may be provided to the predictor 330, and information about the residual (i.e., quantized transform coefficients and related parameter information) on which entropy decoding is performed in the entropy decoder 310 may be input to the dequantizer 321. In addition, information about filtering among the information decoded by the entropy decoder 310 may be provided to the filter 350. In addition, a receiver (not shown) for receiving a signal output from the encoding device may also be configured as an internal / external element of the decoding device 300, or the receiver may be a constituent element of the entropy decoder 310. In addition, the decoding device according to the present document may be referred to as a video / image / picture decoding device, and the decoding device may be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of a dequantizer 321, an inverse transformer 322, a predictor 330, an adder 340, a filter 350, and a memory 360.
[0073] The dequantizer 321 may dequantize the quantized transform coefficient to output the transform coefficient. The dequantizer 321 may rearrange the quantized transform coefficient in a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scanning order performed by the encoding device. The dequantizer 321 may perform dequantization on the quantized transform coefficient using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficient.
[0074] The inverse transformer 322 inversely transforms the transform coefficients to obtain a residual signal (residual block, residual sample array).
[0075] The predictor 330 may perform prediction of the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block based on information on prediction output from the entropy decoder 310 and determine a specific intra / inter prediction mode.
[0076] The predictor may generate a prediction signal based on various prediction methods described below. For example, the predictor may not only apply intra prediction or inter prediction to predict a block, but may also apply intra prediction and inter prediction at the same time. This may be referred to as combined inter and intra prediction (CIIP). In addition, the predictor may perform intra block copying (IBC) for predicting blocks. Intra block copying may be used for content image / motion image coding of games, etc., such as screen content coding (SCC). IBC basically performs prediction in the current picture, but may be performed similarly to inter prediction so that a reference block is derived in the current picture. That is, IBC may use at least one inter prediction technique described in this document.
[0077] The intra-frame predictor 332 may predict the current block with reference to samples in the current picture. Depending on the prediction mode, the referenced samples may be located near the current block or may be far away from the current block. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. The intra-frame predictor 332 may use the prediction mode applied to the neighboring blocks to determine the prediction mode to be applied to the current block.
[0078] The inter-frame predictor 331 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include information about the inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter-frame predictor 331 may construct a motion information candidate list based on neighboring blocks and derive a motion vector and / or a reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating the inter-frame prediction mode of the current block.
[0079] The adder 340 may generate a reconstructed signal (reconstructed picture, reconstructed block, and reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block or prediction sample array) output from the predictor 330. If there is no residual in the processing target block, such as when the skip mode is applied, the prediction block may be used as the reconstructed block.
[0080] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next block to be processed in the current picture, and as described later, may also be output through filtering, or may also be used for inter prediction of the next picture.
[0081] In addition, luma mapping with chroma scaling (LMCS) may also be applied in the picture decoding process.
[0082] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 360 (specifically, the DPB of the memory 360). For example, the various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.
[0083] The (modified) reconstructed picture stored in the DPB of the memory 360 may be used as a reference picture in the inter-frame predictor 331. The memory 360 may store the motion information of the block from which the motion information in the current picture is derived (or decoded) and / or the motion information of the reconstructed block in the picture. The stored motion information may be transmitted to the inter-frame predictor 331 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 may store the reconstructed samples of the reconstructed block in the current picture and transmit the reconstructed samples to the intra-frame predictor 332.
[0084] In the present specification, the implementations described in the predictor 330, the dequantizer 321, the inverse transformer 322, and the filter 350 of the decoding device 300 may also be applied in the same or corresponding manner as the predictor 220, the dequantizer 234, the inverse transformer 235, and the filter 260 of the encoding device 200.
[0085] In addition, as described above, when performing video encoding, prediction is performed to improve compression efficiency. Thus, a prediction block including prediction samples of a current block as a block to be encoded (i.e., an encoding target block) can be generated. Here, the prediction block includes prediction samples in a spatial domain (or a pixel domain). The prediction block is derived in the same manner as in the encoding device and the decoding device, and the encoding device can signal the decoding device with information about the residual between the original block and the prediction block (residual information) instead of the original sample value of the original block, thereby increasing the image coding efficiency. The decoding device can derive a residual block including residual samples based on the residual information, add the residual block and the prediction block to generate a reconstructed block including reconstructed samples, and generate a reconstructed picture including the reconstructed block.
[0086] The residual information may be generated by transform and quantization processing. For example, the encoding device may derive a residual block between the original block and the prediction block, perform a transform process on the residual samples (residual sample array) included in the residual block to derive a transform coefficient, perform a quantization process on the transform coefficient to derive a quantized transform coefficient, and notify the decoding device of the relevant residual information (through a bitstream) with a signal. Here, the residual information may include value information, position information, transform technology, transform kernel, quantization parameter, etc. of the quantized transform coefficient. The decoding device may perform a dequantization / inverse transform process based on the residual information and derive a residual sample (or residual block). The decoding device may generate a reconstructed picture based on the prediction block and the residual block. In addition, as a reference for inter-frame prediction of a later picture, the encoding device may also dequantize / inverse transform the quantized transform coefficient to derive a residual block, and generate a reconstructed picture based on it.
[0087] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. When transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient, or may still be referred to as a transform coefficient for consistency of expression.
[0088] In this document, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by a residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by inverse transforming (scaling) the transform coefficient. The residual sample may be derived based on an inverse transform (transform) of the scaled transform coefficient. This may also be applied / expressed in other parts of this document.
[0089] The predictor of the encoding device / decoding device can derive prediction samples by performing inter-frame prediction in units of blocks. Inter-frame prediction may be a prediction derived in a manner that depends on data elements (e.g., sample values or motion information) of a picture other than the current picture. When inter-frame prediction is applied to the current block, a prediction block (prediction sample array) of the current block may be derived based on a reference block (reference sample array) specified by a motion vector on a reference picture pointing to a reference picture index. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information of the current block may be predicted in units of blocks, sub-blocks, or samples based on the correlation between the motion information between the neighboring blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include inter-frame prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. When inter-frame prediction is applied, the neighboring blocks may include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. A temporally neighboring block may be referred to as a collocated reference block, a collocated CU (colCU), etc., and a reference picture including a temporally neighboring block may be referred to as a collocated picture (colPic). For example, a motion information candidate list may be constructed based on the neighboring blocks of the current block, and a flag or index information indicating which candidate is selected (used) to derive the motion vector and / or reference picture index of the current block may be signaled. Inter-frame prediction may be performed based on various prediction modes. For example, in skip mode and merge mode, the motion information of the current block may be the same as the motion information of the selected neighboring block. In skip mode, unlike merge mode, a residual signal may not be sent. In the case of a motion vector prediction (MVP) mode, the motion vector of the selected neighboring block may be used as a motion vector predictor, and the motion vector difference may be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
[0090] According to the inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.), the motion information may include L0 motion information and / or L1 motion information. The motion vector in the L0 direction may be referred to as the L0 motion vector or MVL0, and the motion vector in the L1 direction may be referred to as the L1 motion vector or MVL1. Prediction based on the L0 motion vector may be referred to as the L0 prediction, prediction based on the L1 motion vector may be referred to as the L1 prediction, and prediction based on both the L0 motion vector and the L1 motion vector may be referred to as the dual prediction. Here, the L0 motion vector may indicate a motion vector associated with the reference picture list L0 (L0), and the L1 motion vector may indicate a motion vector associated with the reference picture list L1 (L1). The reference picture list L0 may include a picture that is earlier than the current picture in the output order as a reference picture, and the reference picture list L1 may include a picture that is later than the current picture in the output order. The previous picture may be referred to as a forward (reference) picture, and the subsequent picture may be referred to as a backward (reference) picture. The reference picture list L0 may also include a picture that is later than the current picture in the output order as a reference picture. In this case, in the reference picture list L0, the previous picture may be indexed first and the subsequent picture may be indexed next. The reference picture list L1 may also include a picture that is earlier than the current picture in the output order as a reference picture. In this case, the subsequent picture may be indexed first in the reference picture list 1 and the previous picture may be indexed next. Here, the output order may correspond to a picture order count (POC) order.
[0091] Figure 4 The hierarchical structure of the encoded image / video is shown as an example.
[0092] Reference Figure 4 The coded image / video is divided into the VCL (Video Coding Layer) that handles the image / video decoding process and itself, the subsystem that sends and stores the coded information, and the Network Abstraction Layer (NAL) that exists between the VCL and the subsystem and is responsible for the network adaptation function.
[0093] VCL can generate VCL data including compressed image data (slice data), or generate parameter sets including picture parameter sets (picture parameter set: PSP), sequence parameter sets (sequence parameter set: SPS), video parameter sets (Video parameter set: VPS), etc., or supplementary enhancement information (SEI) messages required for image decoding processing.
[0094] In NAL, a NAL unit may be generated by adding header information (NAL unit header) to a raw byte sequence payload (RBSP) generated in a VCL. In this case, the RBSP refers to slice data, parameter sets, SEI messages, etc. generated in the VCL. The NAL unit header may include NAL unit type information specified according to the RBSP data included in the corresponding NAL unit.
[0095] As shown in the figure, 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 may refer to a NAL unit including information about the image (slice data), and the non-VCL NAL unit may refer to a NAL unit containing information required for decoding the image (parameter set or SEI message).
[0096] The above-mentioned VCL NAL unit and non-VCL NAL unit can be sent through the network by adding header information according to the data standard of the subsystem. For example, the NAL unit can be converted into a data form of a predetermined standard such as H.266 / VVC file format, real-time transport protocol (RTP), transport stream (TS), etc. and sent through various networks.
[0097] As described above, a NAL unit type may be specified in a NAL unit according to an RBSP data structure included in a corresponding NAL unit, and information about the NAL unit type may be stored in a NAL unit header and signaled.
[0098] For example, NAL units can be roughly classified into VCL NAL unit types and non-VCL NAL unit types according to whether the NAL unit includes information about an image (slice data). VCL NAL unit types can be classified according to the properties and types of pictures included in the VCL NAL unit, and non-VCL NAL unit types can be classified according to the types of parameter sets.
[0099] The following are examples of NAL unit types specified according to the type of parameter sets included in a non-VCL NAL unit type.
[0100] -APS (Adaptation Parameter Set) NAL unit: the type of NAL unit that includes APS
[0101] -DPS (Decoding Parameter Set) NAL unit: the type of NAL unit that includes the DPS
[0102] -VPS (Video Parameter Set) NAL unit: the type of NAL unit that contains the VPS
[0103] -SPS (Sequence Parameter Set) NAL unit: the type of NAL unit that includes SPS
[0104] -PPS (Picture Parameter Set) NAL unit: the type of NAL unit that includes the PPS
[0105] - PH (Picture Header) NAL unit: the type of NAL unit that includes PH
[0106] The above-mentioned NAL unit type has syntax information of the NAL unit type, and the syntax information may be stored in the NAL unit header and notified by a signal. For example, the syntax information may be nal_unit_type, and the NAL unit type may be specified by a nal_unit_type value.
[0107] In addition, as described above, a picture may include multiple slices, and a slice may include a slice header and slice data. In this case, a picture header may be further added to the multiple slices (slice header and slice data set) in a picture. The picture header (picture header syntax) may include information / parameters generally applicable to a picture. In this document, slices may be mixed with or replaced by tiling groups. In addition, in this document, slice headers may be mixed with tiling group headers or replaced by type group headers.
[0108] A slice header (slice header syntax or slice header information) may include information / parameters that are generally applicable to slices. APS (APS syntax) or PPS (PPS syntax) may include information / parameters that are generally applicable to one or more slices or pictures. SPS (SPS syntax) may include information / parameters that are generally applicable to one or more sequences. VPS (VPS syntax) may include information / parameters that are generally applicable to multiple layers. DPS (DPS syntax) may include information / parameters that are generally applicable to the entire video. DPS may include information / parameters related to the concatenation of a coded video sequence (CVS). In this document, a high-level syntax (HLS) may include at least one of APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.
[0109] In this document, the image / video information encoded in the encoding device and notified to the decoding device in the form of a bitstream may include not only the segmentation related information, intra / inter prediction information, residual information, loop filtering information, etc. in the picture, 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. In addition, the image / video information may also include the information of the NAL unit header.
[0110] In addition, in order to compensate for the difference between the original image and the reconstructed image due to errors occurring in the compression encoding process such as quantization, loop filtering processing may be performed on the reconstructed sample or the reconstructed picture as described above. As described above, loop filtering may be performed by a filter of an encoding device and a filter of a decoding device, and a deblocking filter, SAO and / or an adaptive loop filter (ALF) may be applied. For example, the ALF process may be performed after the deblocking filter process and / or the SAO process are completed. However, even in this case, the deblocking filter process and / or the SAO process may be omitted.
[0111] Hereinafter, a detailed description of picture reconstruction and filtering will be described. In image / video encoding, a reconstructed block may be generated in units of blocks based on intra-frame prediction / inter-frame prediction, and a reconstructed picture including the reconstructed block may be generated. If the current picture / slice is an I picture / slice, the blocks included in the current picture / slice may be reconstructed based only on intra-frame prediction. In addition, if the current picture / slice is a P or B picture / slice, the blocks included in the current picture / slice may be reconstructed based on intra-frame prediction or inter-frame prediction. In this case, intra-frame prediction may be applied to some blocks in the current picture / slice, and inter-frame prediction may be applied to the remaining blocks.
[0112] Intra-frame prediction may refer to a prediction of a prediction sample of a current block generated based on a reference sample in a picture to which the current block belongs (hereinafter, the current picture). In the case where intra-frame prediction is applied to the current block, neighboring reference samples to be used for intra-frame prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nW×nH, a total of 2×nH samples adjacent to the lower left, samples adjacent to the upper boundary of the current block, a total of 2×nW samples adjacent to the upper right, and one sample adjacent to the upper left of the current block. Alternatively, the neighboring reference samples of the current block may include upper neighboring samples of multiple columns and left neighboring samples of multiple rows. Alternatively, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nW×nH, a total of nH samples adjacent to the right boundary of the current block, a total of nW samples adjacent to the lower boundary of the current block, and one sample adjacent to the lower right of the current block.
[0113] However, some neighboring reference samples of the current block may not have been decoded or may not be available. In this case, the decoder can configure the neighboring reference samples to be used for prediction by replacing the unavailable samples with available samples. Alternatively, the neighboring reference samples to be used for prediction can be configured by interpolation of available samples.
[0114] In the case of deriving neighboring reference samples, (i) the prediction sample may be derived based on the average or interpolation of the neighboring reference samples of the current block, and (ii) the prediction sample may be derived based on the reference sample existing in a specific (prediction) direction of the prediction sample among the neighboring reference samples of the current block. The case of (i) may be referred to as a non-directional mode or a non-angular mode, and the case of (ii) may be referred to as a directional mode or an angular mode. In addition, the prediction sample may be generated by interpolating the first neighboring sample and the second neighboring sample located in the direction opposite to the prediction direction of the intra-frame prediction mode of the current block among the neighboring reference samples. The above case may be referred to as linear interpolation intra-frame prediction (LIP). In addition, the chrominance prediction sample may be generated based on the luminance sample using a linear model. This case may be referred to as an LM mode. In addition, the temporal prediction sample of the current block may be derived based on the filtered neighboring reference samples, and the prediction sample of the current block may be derived by calculating the weighted sum of the temporal prediction sample and at least one reference sample derived according to the intra-frame prediction mode among the existing neighboring reference samples (i.e., the unfiltered neighboring reference samples). The above case may be referred to as position-dependent intra-frame prediction (PDPC). In addition, the prediction sample can be derived by selecting the reference sample line with the highest prediction accuracy among the adjacent multiple reference sample lines of the current block using the reference sample located in the prediction direction on the corresponding line, and in this case, the intra-frame prediction encoding can be performed according to the method of indicating (notifying with a signal) the reference sample line used to the decoding device. The above situation may be referred to as multi-reference line (MRL) intra-frame prediction or MRL-based intra-frame prediction. In addition, intra-frame prediction can be performed based on the same intra-frame prediction mode by dividing the current block into vertical sub-partitions or horizontal sub-partitions, and the adjacent reference samples can be derived and used in units of sub-partitions. That is, in this case, since the intra-frame prediction mode of the current block is equally applied to the sub-partitions, and the adjacent reference samples are derived and used in units of sub-partitions, the intra-frame prediction performance can be enhanced in some cases. This prediction method may be referred to as intra-frame sub-partition (ISP) or intra-frame prediction based on ISP. The above intra-frame prediction method may be referred to as an intra-frame prediction type different from the intra-frame prediction mode in Content 1.2. The intra-frame prediction type may be referred to as various terms such as intra-frame prediction technology or additional intra-frame prediction mode. For example, the intra prediction type (or additional intra prediction mode) may include at least one of the above-mentioned LIP, PDPC, MRL, or ISP. A general intra prediction method other than a specific intra prediction type such as LIP, PDPC, MRL, or ISP may be referred to as a normal intra prediction type. In the case where a specific intra prediction type is not applied, a normal intra prediction type may generally be applied, and prediction may be performed based on the above-mentioned intra prediction mode. In addition, post-filtering may be performed on the derived prediction sample as needed.
[0115] Specifically, the intra prediction process may include the steps of determining the intra prediction mode / type, deriving neighboring reference samples, and deriving prediction samples based on the intra prediction mode / type. In addition, a post-filtering step may be performed on the derived prediction samples as needed.
[0116] A reconstructed picture modified by the in-loop filtering process may be generated, and the modified reconstructed picture may be output from the decoding device as a decoded picture. In addition, the modified reconstructed picture may be stored in a decoded picture buffer or memory of the encoding device / decoding device, and then may be used as a reference picture in the inter-frame prediction process when the picture is encoded / decoded. As described above, the in-loop filtering process may include a deblocking filtering process, a sample adaptive offset (SAO) process, and / or an adaptive loop filter (ALF) process. In this case, one or some of the deblocking filtering process, the sample adaptive offset (SAO) process, the adaptive loop filter (ALF) process, and the bilateral filtering process may be applied in sequence, or all of the processes may be applied in sequence. For example, after applying the deblocking filtering process to the reconstructed picture, the SAO process may be performed. In addition, for example, after applying the deblocking filtering process to the reconstructed picture, the ALF process may be performed. This may even be performed in the same manner by the encoding device.
[0117] Deblocking filtering is a filtering technique that removes distortion that occurs at the boundaries between blocks in a reconstructed picture. For example, the deblocking filtering process may derive a target boundary from the reconstructed picture, determine a boundary strength (bS) of the target boundary, and perform deblocking filtering on the target boundary based on the bS. The bS may be determined based on the prediction mode of two blocks adjacent to the target boundary, the motion vector difference, whether the reference picture is the same, and whether there are non-zero significant coefficients.
[0118] SAO is a method for compensating for an offset difference between a reconstructed picture and an original picture in units of samples, and may be applied based on types of band offset, edge offset, etc., for example. According to SAO, samples are classified into different categories according to SAO types, and an offset value may be added to each sample based on the category. Filter information of SAO may include information on whether SAO is applied, SAO type information, and SAO offset value information. SAO may be applied to the reconstructed picture after deblocking filtering is applied.
[0119] Adaptive loop filter (ALF) is a filtering technique for reconstructing a picture in units of samples based on filter coefficients according to a filter shape. The encoding device can determine whether to apply ALF, ALF shape and / or ALF filter coefficients by comparing the reconstructed picture and the original picture with each other, and can notify the decoding device with a signal. That is, the filtering information of ALF may include information on whether to apply ALF, ALF filter shape information, and ALF filter coefficient information. ALF may also be applied to the reconstructed picture after applying deblocking filtering.
[0120] Figure 5 A screen showing an embodiment of the present document. Figure 5 An exemplary picture of may be divided into sub-pictures, slices, and tiles.
[0121] Reference Figure 5 , a picture can be divided into sub-pictures. For example, a sub-picture may include one or more slices. A slice may represent a rectangular area of a picture. In addition, a picture can be divided into tiles. For example, a rectangular slice may include only a portion (subset) of a tile. That is, in Figure 5 In the example, two rectangular slices are in the same tile, and the two rectangular slices may belong to different sub-pictures. Figure 5 The problems caused by this situation and their solutions will be described later.
[0122] In an example, a picture / sub-picture may be encoded based on a sub-picture / slice / patchwork. An encoding device may encode a current picture based on a sub-picture / slice / patchwork structure, or an encoding device may encode one or more sub-pictures (including slices / patchwork) of the current picture, and may output a (sub) bitstream including (encoded) information about the sub-picture. A decoding device may decode one or more sub-pictures in the current picture based on a (sub) bitstream including (encoded) information of the sub-picture / slice / patchwork.
[0123] Figure 6 A sub-picture / slice / tile-based encoding method according to an embodiment of this document is shown.
[0124] The encoder may divide the (input) picture into multiple (or one or more) sub-pictures / slices / tiles. Each sub-picture may be encoded separately / independently, and a bitstream may be output. Here, the bitstream for a sub-picture may be referred to as a substream, a subset, or a sub-bitstream. Information about sub-pictures / slices / tiles may include information / syntactic elements described in this document. For example, information about slices may include information about the number of slices signaled for each picture / sub-picture and the width / height of the slices in the tile. For example, information about tiles may include information about the number of tiles (e.g., the number of tile columns and / or the number of tile rows) and information about the size (e.g., width and / or height) of each tile.
[0125] The encoder may encode one or more sub-pictures as information about the sub-pictures. The encoder may encode one or more slices / patches as information about the slices / patches.
[0126] Figure 7 A sub-picture / slice / tile based decoding method according to an embodiment of this document is shown.
[0127] The decoder can decode one or more sub-pictures (including slices / patchworks), and can output one or more decoded sub-pictures or a current picture including sub-pictures. The bitstream may include a substream or a sub-bitstream for a sub-picture. As described above, information about sub-pictures / slices / patchworks may be configured in a high-level syntax (HLS) included in the bitstream. The decoder may derive one or more sub-pictures based on information about the sub-pictures. The decoder may derive one or more slices / patchworks based on information about slices / patchworks. The decoder may decode all or some sub-pictures. The decoder may decode sub-pictures (including current blocks (or CUs)), CTUs, slices, and / or patchworks based on CABAC, prediction, residual processing (transformation and quantization), and in-loop filtering. Therefore, decoded sub-pictures may be output. Decoded sub-pictures may include reconstructed / decoded blocks. The decoded sub-pictures in the output sub-picture set (OPS) may be output together. As an example, if the picture is related to a 360-degree or omnidirectional image / video, some of them may be rendered, and in this case, only some of all sub-pictures may be decoded, and some or all decoded sub-pictures may be rendered according to a user viewport or viewing position. In addition, if information indicating (indicating) whether in-loop filtering is enabled across a sub-picture boundary is enabled, the decoder may apply in-loop filtering processing (e.g., deblocking filtering) for a sub-picture boundary located between two sub-pictures. For example, if the sub-picture boundary is the same as the picture boundary, in-loop filtering processing for the sub-picture boundary may be applied or may not be performed.
[0128] In an embodiment of the present document, the image / video information may include HLS, and the HLS may include information about sub-pictures / slices / tiles. The information about the sub-picture may include information representing one or more sub-pictures in the current picture. The information about the slice may include information representing one or more slices in the current picture, sub-picture, or tile. The information about the tile may include information representing one or more tiles in the current picture, sub-picture, or slice. The picture may include a tile containing one or more slices and / or a slice containing one or more tiles. In addition, the picture may include a sub-picture containing one or more slices / tiles.
[0129] The following table shows the syntax related to the above picture division (sub-picture / slice / tile). Information about sub-picture / slice / tile may include the syntax elements in the following table.
[0130] The following table represents the syntax of the sequence parameter set (SPS) based on the picture partitioning (sub-picture / slice / tile).
[0131] [Table 1]
[0132]
[0133] The following table shows the syntax of the picture parameter set (PPS) based on the picture partitioning (sub-picture / slice / tile).
[0134] [Table 2]
[0135]
[0136] The following table shows the syntax of the slice header based on the picture partitioning (sub-picture / slice / tile).
[0137] [Table 3]
[0138]
[0139] Figure 8 is a flow chart illustrating a filtering-based encoding method in an encoding device. Figure 8 The method may include steps S800 to S830.
[0140] In step S800, the encoding apparatus may generate a reconstructed picture. Step S800 may be performed based on the above-described process of generating a reconstructed picture (or a reconstructed sample).
[0141] In step S810, the encoding device may determine whether to apply in-loop filtering (across a virtual boundary) based on in-loop filtering related information. Here, the in-loop filtering may include at least one of the above-mentioned deblocking filtering, SAO, or ALF.
[0142] In step S820, the encoding apparatus may generate a modified reconstructed picture (modified reconstructed sample) based on the determination in step S810. Here, the modified reconstructed picture (modified reconstructed sample) may be a filtered reconstructed picture (filtered reconstructed sample).
[0143] In step S830, the encoding apparatus may encode image / video information including in-loop filtering related information based on the in-loop filtering process.
[0144] Fig. 9 is a flow chart illustrating a filtering-based decoding method in a decoding device. Fig. 9 The method may include steps S900 to S930.
[0145] In step S900, the decoding apparatus may obtain image / video information including in-loop filtering related information from a bitstream. Here, the bitstream may be based on encoded image / video information transmitted from an encoding apparatus.
[0146] In step S910, the decoding apparatus may generate a reconstructed picture. Step S910 may be performed based on the above-described process of generating a reconstructed picture (or a reconstructed sample).
[0147] In step S920, the decoding device may determine whether to apply in-loop filtering (across a virtual boundary) based on the in-loop filtering related information. Here, the in-loop filtering may include at least one of the above-mentioned deblocking filtering, SAO or ALF.
[0148] In step S930, the decoding apparatus may generate a modified reconstructed picture (modified reconstructed samples) based on the determination in step S920. Here, the modified reconstructed picture (modified reconstructed samples) may be a filtered reconstructed picture (filtered reconstructed samples).
[0149] As described above, in-loop filtering may be applied to the reconstructed picture. In this case, in order to further enhance the subjective / objective visual quality of the reconstructed picture, a virtual boundary may be defined, and in-loop filtering may be applied across the virtual boundary. For example, the virtual boundary may include discontinuous edges such as a 360-degree image, a VR image, or a picture-in-picture (PIP). For example, a virtual boundary may exist at a predetermined joint position, and its presence / absence and / or position may be notified by a signal. As an example, the virtual boundary may be 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 about the presence / absence and / or position of the virtual boundary may be notified by a signal via the HLS. As described above, the HLS may include an SPS, a PPS, a picture header, and a slice header.
[0150] In the following, high-level syntax signaling and semantics according to embodiments of this document will be described.
[0151] Embodiments of the present document may include a method for controlling a loop filter. The method for controlling a loop filter may be applied to reconstruct a picture. An in-loop filter (loop filter) may be used to decode a coding bit rate. The loop filter may include deblocking, SAO, and ALF as described above. The SPS may include flags related to deblocking, SAO, and ALF, respectively. The flag may indicate whether various tools are enabled for encoding of a coded layer video sequence (CLVS) and a coded video sequence (CVS) referenced to the SPS.
[0152] If the loop filter is enabled for CVS, you can control not to apply the loop filter across a specific boundary. For example, you can control whether the loop filter crosses a sub-picture boundary. In addition, you can control whether the loop filter crosses a tile boundary. In addition, you can control whether the loop filter crosses a virtual boundary. Here, a virtual boundary can be defined on a CTU based on the availability of a line buffer.
[0153] Regarding whether to perform in-loop filtering processing across a virtual boundary, the in-loop filtering related information may include at least one of an SPS virtual boundary enable flag (a virtual boundary enable flag in the SPS), an SPS virtual boundary existence flag, a picture header virtual boundary existence flag, an SPS picture header virtual boundary existence flag, and information about the location of the virtual boundary.
[0154] In an embodiment included in this document, the information about the position of the virtual boundary may include information about the x-coordinate of the vertical virtual boundary and information about the y-coordinate of the horizontal virtual boundary. Specifically, the information about the position of the virtual boundary may include information about the x-coordinate of the vertical virtual boundary and / or the y-coordinate of the horizontal virtual boundary in units of luminance samples. In addition, the information about the position of the virtual boundary may include information about the number of information (syntactic elements) about the x-coordinate of the vertical virtual boundary present in the SPS. In addition, the information about the virtual boundary may include information about the number of information (syntactic elements) about the y-coordinate of the horizontal virtual boundary present in the SPS. In addition, the information about the position of the virtual boundary may include information about the number of information (syntactic elements) about the x-coordinate of the vertical virtual boundary present in the picture header. In addition, the information about the position of the virtual boundary may include information about the number of information (syntactic elements) about the y-coordinate of the horizontal virtual boundary present in the picture header.
[0155] The following table shows an exemplary syntax and semantics of a sequence parameter set (SPS) according to the present embodiment.
[0156] [Table 4]
[0157]
[0158] [Table 5]
[0159]
[0160]
[0161]
[0162] The following table shows an exemplary syntax and semantics of a picture parameter set (PPS) according to the present embodiment.
[0163] [Table 6]
[0164]
[0165] [Table 7]
[0166]
[0167]
[0168] The following table shows an exemplary syntax and semantics of a picture header according to the present embodiment.
[0169] [Table 8]
[0170]
[0171]
[0172] [Table 9]
[0173]
[0174]
[0175] The following table shows an exemplary syntax and semantics of a slice header according to the present embodiment.
[0176] [Table 10]
[0177]
[0178] [Table 11]
[0179]
[0180]
[0181] Hereinafter, information related to a sub-picture, information related to a virtual boundary that can be used for in-loop filtering, and signaling thereof will be described.
[0182] In an example, two different rectangular slices may belong to different sub-pictures while sharing the same tile. In this case, the problem of increased coding complexity may arise.
[0183] To simplify the picture division, the embodiments of this document may include conditional examples where the picture is divided into two or more sub-pictures. In the example, all CTUs in one mosaic may belong to the same sub-picture. In another example, all CTUs in a sub-picture may belong to the same mosaic. The above two examples may be applied separately to image / video encoding, may be applied sequentially, or may be applied in combination. In addition, in the embodiments of this document, in the case where a sub-picture includes a CTU that is a subset of all CTUs in one mosaic, the sub-picture may not include a CTU belonging to another mosaic.
[0184] In the signaling for the current picture, if the value of subpic_present_flag is 1, the number of subpics in each picture of the reference SPS can be 1 (the value of sps_num_subpics_minus1 is 0). This condition has been prepared to support the subpicture extraction use case, in which subpics are encoded independently from the bitstream to form another bitstream, even without changing the value less than the value of the parameter set. Therefore, even if the value of subpic_present_flag is 1 and the value of sps_num_subpics_minus1 is 0, subpic_ctu_top_left_x[0], subpic_ctu_top_left_y[0], subpic_width_minus1[0], subpic_height_minus1[0], subpic_treated_as_pic_flag[i] and / or loop_filter_across_subpic_enabled_flag[i] are still present. In this case, these syntax elements may overlap with each other and may also make the operation of the decoder unpredictable if an erroneous value is signaled in the corresponding syntax elements. For example, if the value of subpics_present_flag is 1 and the value of sps_num_subpics_minus1 is 0, this means that there is only one sub-picture (the picture itself) and the value of subpic_treat_as_pic_flag[0] is equal to 1. In this case, if the corresponding value is signaled as 0, a contradictory problem may occur in the decoding process.
[0185] To solve the above problem, the embodiments of this document include conditional examples that can be applied when there is sub-picture signaling (e.g., the value of subpic_present_flag is 1) and there is only one sub-picture in the picture (e.g., the value of sps_num_subpics_minus1 is 0). The above conditional examples may be as shown in the following table.
[0186] [Table 12]
[0187]
[0188] In the example, in the case where sub-picture signaling exists and the position of the virtual boundary exists in the picture header, there is a problem in the sub-picture extraction and sub-picture merging scenarios where the picture header should be rewritten to identify whether the signaling of the virtual boundary position is correct. This may violate the design purpose of sub-picture extraction / merging, where there is no need to rewrite the bitstream for NAL units of layers lower than the parameter set.
[0189] In order to solve the above problem, according to an embodiment of the present document, if there is sub-picture signaling (for example, if there is sub-picture signaling in the SPS), the signaling of the virtual boundary position may not be included in the picture header. As an example, if there is sub-picture signaling, the information about the position of the virtual boundary may be included in the advanced parameter set. For example, if there is sub-picture signaling, the information about the position of the virtual boundary may be included in the SPS. In addition, if there is sub-picture signaling, the information about the position of the virtual boundary may be included in the PPS.
[0190] In an embodiment of the present document, if sub-picture ID signaling is present (if the value of sps_subpic_id_present_flag is 1), all sub-pictures may be independently coded sub-pictures (the value of subpic_treated_as_pic_flag[i] is 1). In this case, the location of the sub-picture ID signaling (e.g., SPS, PPS, or picture header) may not matter.
[0191] According to the embodiments of the present document and the above table, whether to signal virtual boundary related information (e.g., virtual boundary position related information) in a sequence parameter set may be determined based on whether sub-picture information exists. For example, in the case where sub-picture information exists in the corresponding sequence, virtual boundary related information (e.g., virtual boundary position related information) may be signaled in the sequence parameter set. Therefore, the virtual boundary-based encoding method according to the embodiments of the present document may be effectively performed without rewriting or changing the high-level syntax.
[0192] Fig.10 and Fig.11 An example of a video / image encoding method and related components according to an embodiment of the present document is schematically shown.
[0193] Fig.10 The method disclosed in Figure 2 or Fig.11 Specifically, for example, Fig.10 The S1000 and S1010 can be Fig.11 The residual processor 230 of the encoding device performs, Fig.10 The S1020 can be Fig.11 The filter 260 of the encoding device performs, Fig.10 The S1030 can be Fig.11 The entropy encoder 240 of the encoding device performs. In addition, although Fig.10 Not shown in the figure, the prediction sample or prediction related information can be obtained by Fig.10 The predictor 220 of the encoding device may derive the information, and a bitstream may be generated from the residual information or the prediction-related information by the entropy encoder 240 of the encoding device. Fig.10The method disclosed in may include the above-mentioned embodiments of this document.
[0194] Reference Fig.10 , the encoding device may derive residual samples (S1000). The encoding device may derive residual samples of the current block, and the residual samples of the current block may be derived based on the original samples and the predicted samples of the current block. Specifically, the encoding device may derive 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-frame prediction or intra-frame prediction, may be applied. The residual samples may be derived based on the predicted samples and the original samples.
[0195] The encoding device may derive the transform coefficient. The encoding device may derive the transform coefficient based on a transform process on the residual sample. For example, the transform process may include at least one of DCT, DST, GBT, or CNT.
[0196] The encoding apparatus may induce a quantized transform coefficient. The encoding apparatus may induce a quantized transform coefficient based on a quantization process of the transform coefficient. The quantized transform coefficient may have a 1-dimensional vector form based on a coefficient scanning order.
[0197] The encoding device may generate residual information (S1010). The encoding device may generate residual information based on residual samples of the current block. The encoding device may generate residual information representing quantized transform coefficients. The residual information may be generated by various encoding methods such as exponential Golomb, CAVLC, and CABAC.
[0198] The encoding device may generate a reconstructed sample. The encoding device may generate a reconstructed sample based on the residual information. The reconstructed sample may be generated by adding a residual sample based on the residual information to a predicted sample. Specifically, the encoding device may perform prediction (intra-frame or inter-frame prediction) on the current block, and may generate a reconstructed sample based on the original sample and the predicted sample generated by the prediction.
[0199] The reconstructed samples may include reconstructed luma samples and reconstructed chroma samples. Specifically, the residual samples may include residual luma samples and residual chroma samples. The residual luma samples may be generated based on the original luma samples and the predicted luma samples. The residual chroma samples may be generated based on the original chroma samples and the predicted chroma samples. The encoding device may derive the transform coefficients (luminance transform coefficients) of the residual luma samples and / or the transform coefficients (chroma transform coefficients) of the residual chroma samples. The quantized transform coefficients may include quantized luma transform coefficients and / or quantized chroma transform coefficients.
[0200] The encoding device may generate in-loop filtering related information for the reconstructed samples of the current picture (S1020). The encoding device may perform in-loop filtering processing on the reconstructed samples, and may generate in-loop filtering related information based on the in-loop filtering processing. For example, the in-loop filtering related information may include the information about the virtual boundary described above in this document (SPS virtual boundary enable flag, picture header virtual boundary enable flag, SPS virtual boundary existence flag, picture header virtual boundary existence flag, and information about the position of the virtual boundary).
[0201] The encoding device may encode the video / image information (S1030). The image information may include residual information, prediction related information and / or in-loop filtering related information. The encoded video / image information may be output in the form of a bit stream. The bit stream may be transmitted to the decoding device via a network or a storage medium.
[0202] The image / video information may include various information according to the embodiments of this document. For example, the image / video information may include information disclosed in at least one of Tables 1 to 12 above.
[0203] In an embodiment, the image information may include a sequence parameter set (SPS). Based on whether the SPS includes the sub-picture related information, it may be determined whether the SPS includes additional information related to the virtual boundary.
[0204] In an embodiment, the additional information related to the virtual boundaries may include the number of virtual boundaries and the positions of the virtual boundaries.
[0205] In an embodiment, the additional virtual border related information may include information about the number of vertical virtual borders, information about the positions of the vertical virtual borders, information about the number of horizontal virtual borders, and information about the positions of the horizontal virtual borders.
[0206] In an embodiment, the image information may include a sub-picture presence flag (eg, subpic_present_flag). Whether the SPS includes sub-picture related information may be determined based on the sub-picture presence flag.
[0207] In an embodiment, the image information may include a sub-picture ID existence flag. If the value of the sub-picture ID existence flag is 1, the sub-picture in the current picture may be an independently encoded sub-picture.
[0208] In an embodiment, the current picture may include a sub-picture and a patch. Coding tree units (CTUs) in a patch may belong to the same sub-picture.
[0209] In an embodiment, the current picture may include a sub-picture and a patch. Coding tree units (CTUs) in a sub-picture may belong to the same patch.
[0210] In an embodiment, the SPS may include an SPS virtual boundary existence flag related to whether the SPS includes additional information related to the virtual boundary. A value of the SPS virtual boundary existence flag may be determined to be 1 based on the SPS including the sub-picture related information.
[0211] In an embodiment, the image information may include picture header information. Based on the SPS including sub-picture related information, the picture header may not include additional information related to the virtual boundary.
[0212] In an embodiment, based on the SPS including the sprite-related information, the SPS may include additional information related to the virtual boundary.
[0213] Fig.12 and Fig.13 An example of a video / image decoding method and related components according to an embodiment of this document is schematically shown.
[0214] Fig.12 The method disclosed in Fig.12 or Fig.13 Specifically, for example, Fig.12 S1200 may be performed by the entropy decoder 310 of the decoding device, S1210 may be performed by the residual processor 320 and / or the adder 340 of the decoding device, and S1220 may be performed by the filter 350 of the decoding device. Fig.12 The method disclosed in may include the above-mentioned embodiments in this document.
[0215] Reference Fig.12 , the decoding device may receive / obtain video / image information (S1200). The video / image information may include residual information, prediction related information and / or in-loop filtering related information. The decoding device may receive / obtain image / video information through a bitstream.
[0216] The image / video information may include various information according to the embodiments of this document. For example, the image / video information may include information disclosed in at least one of Tables 1 to 12 above.
[0217] The decoding device may derive the quantized transform coefficient. The decoding device may derive the quantized transform coefficient based on the residual information. Based on the coefficient scanning order, the quantized transform coefficient may have a 1-dimensional vector form. The quantized transform coefficient may include a quantized luminance transform coefficient and / or a quantized chrominance transform coefficient.
[0218] The decoding device may derive the transform coefficient. The decoding device may derive the transform coefficient based on the dequantization process of the quantized transform coefficient. The decoding device may derive the luminance transform coefficient by dequantization based on the quantized luminance transform coefficient. The decoding device may derive the chrominance transform coefficient by dequantization based on the quantized chrominance transform coefficient.
[0219] The decoding device may generate / derive residual samples. The decoding device may derive residual samples based on an inverse transform process of the transform coefficients. The decoding device may derive residual luma samples through an inverse transform process based on luma transform coefficients. The decoding device may derive residual chroma samples through an inverse transform process based on chroma transform coefficients.
[0220] The decoding device may generate / derive reconstructed samples (S1210). For example, the decoding device may generate / derive reconstructed luma samples and / or reconstructed chroma samples. The decoding device may generate reconstructed luma samples and / or reconstructed chroma samples based on residual information. The decoding device may generate reconstructed samples based on residual information. The reconstructed samples may include reconstructed luma samples and / or reconstructed chroma samples. The luma component of the reconstructed sample may correspond to the reconstructed luma sample, and the chroma component of the reconstructed sample may correspond to the reconstructed chroma sample. The decoding device may generate predicted luma samples and / or predicted chroma samples through prediction processing. The decoding device may generate reconstructed luma samples based on the predicted luma samples and the residual luma samples. The decoding device may generate reconstructed chroma samples based on the predicted chroma samples and the residual chroma samples.
[0221] The decoding device may generate a modified (filtered) reconstructed sample (S1220). The decoding device may generate the modified reconstructed sample based on an in-loop filtering process for the reconstructed sample. The decoding device may generate the modified reconstructed sample based on in-loop filtering related information. In order to generate the modified reconstructed sample, the decoding device may use a deblocking process, an SAO process, and / or an ALF process.
[0222] In an embodiment, the image information may include a sequence parameter set (SPS). Based on whether the SPS includes the sub-picture related information, it may be determined whether the SPS includes additional information related to the virtual boundary.
[0223] In an embodiment, the additional information related to the virtual boundaries may include the number of virtual boundaries and the positions of the virtual boundaries.
[0224] In an embodiment, the additional information related to the virtual border may include information about the number of vertical virtual borders, information about the positions of the vertical virtual borders, information about the number of horizontal virtual borders, and information about the positions of the horizontal virtual borders.
[0225] In an embodiment, the image information may include a sub-picture presence flag (eg, subpic_present_flag). Whether the SPS includes sub-picture related information may be determined based on the sub-picture presence flag.
[0226] In an embodiment, the image information may include a sub-picture ID existence flag. If the value of the sub-picture ID existence flag is 1, the sub-picture in the current picture may be an independently encoded sub-picture.
[0227] In an embodiment, the current picture may include a sub-picture and a patch. Coding tree units (CTUs) in a patch may belong to the same sub-picture.
[0228] In an embodiment, the current picture may include a sub-picture and a patch. Coding tree units (CTUs) in a sub-picture may belong to the same patch.
[0229] In an embodiment, the SPS may include an SPS virtual boundary existence flag related to whether the SPS includes additional information related to the virtual boundary. A value of the SPS virtual boundary existence flag may be determined to be 1 based on the SPS including the sub-picture related information.
[0230] In an embodiment, the image information may include picture header information. Based on the SPS including sub-picture related information, the picture header may not include additional information related to the virtual boundary.
[0231] In an embodiment, based on the SPS including the sprite-related information, the SPS may include additional information related to the virtual boundary.
[0232] If there are residual samples of the current block, the decoding device may receive information about the residual of the current block. The information about the residual may include a transform coefficient of the residual sample. The decoding device may derive the residual sample (or residual sample array) of the current block based on the residual information. Specifically, the decoding device may derive the quantized transform coefficient based on the residual information. Based on the coefficient scanning order, the quantized transform coefficient may have a 1-dimensional vector form. The decoding device may derive the transform coefficient based on the dequantization process of the quantized transform coefficient. The decoding device may derive the residual sample based on the transform coefficient.
[0233] The decoding device may generate a reconstructed sample based on the (intra-frame) prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Specifically, the decoding device may generate a reconstructed sample based on the sum of the (intra-frame) prediction sample and the residual sample. Thereafter, as needed, in order to improve the subjective / objective picture quality, the decoding device may apply an in-loop filtering process, such as a deblocking filter and / or a SAO process, to the reconstructed picture.
[0234] For example, the decoding device can obtain all or part of the image information including the above information (or syntax elements) by decoding the bitstream or coding information. In addition, the bitstream or coding information can be stored in a computer-readable storage medium, and the above decoding method can be executed.
[0235] Although the method is described based on a flowchart listing steps or blocks in sequence in the above embodiments, the steps of this document are not limited to a specific order, and specific steps may be performed in different steps or in a different order or simultaneously relative to the above content. In addition, it will be understood by a person of ordinary skill in the art that the steps of the flowchart are not exclusive, and another step may be included therein without affecting the scope of the present disclosure, or one or more steps in the flowchart may be deleted.
[0236] The above-mentioned method according to the present disclosure may be in the form of software, and the encoding device and / or decoding device according to the present disclosure may be included in an apparatus for image processing (e.g., TV, computer, smart phone, set-top box, display device, etc.).
[0237] When the embodiments of the present disclosure are implemented by software, the above methods can be implemented by modules (processes or functions) that perform the above functions. The module can be stored in a memory and executed by a processor. The memory can be installed inside or outside the processor and can be connected to the processor via various well-known means. The processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium and / or other storage devices. In other words, according to the embodiments of the present disclosure, it can be implemented and executed on a processor, a microprocessor, a controller or a chip. For example, the functional units shown in each figure can be implemented and executed on a computer, a processor, a microprocessor or a controller or a chip. In this case, information about the implementation (e.g., information about instructions) or an algorithm can be stored in a digital storage medium.
[0238] In addition, the decoding device and the encoding device to which the embodiments of the present document are applied may be included in a multimedia broadcast transceiver, a mobile communication terminal, a home theater video device, a digital theater video device, a surveillance camera, a video chat device, and a real-time communication device (e.g., video communication), a mobile streaming device, a storage medium, a camera, a video on demand (VoD) service provider, an over-the-top (OTT) video device, an Internet streaming service provider, a 3D video device, a virtual reality (VR) device, an augmented reality (AR) device, an image phone video device, a vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an aircraft terminal, or a ship terminal) and a medical video device; and may be used to process image signals or data. For example, an OTT video device may include a game console, a Blu-ray player, an Internet-connected TV, a home theater system, a smart phone, a tablet PC, and a digital video recorder (DVR).
[0239] In addition, the processing method to which the embodiments of the present document are applied can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. Multimedia data having a data structure according to the embodiments of the present document can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices and distributed storage devices that store computer-readable data. For example, computer-readable recording media may include Blu-ray discs (BDs), universal serial buses (USBs), ROMs, PROMs, EPROMs, EEPROMs, RAMs, CD-ROMs, magnetic tapes, floppy disks, and optical data storage devices. Computer-readable recording media also include media specifically implemented in the form of carrier waves (e.g., transmission via the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium or sent via a wired or wireless communication network.
[0240] In addition, the embodiments of this document can be embodied as a computer program product based on a program code, and the program code can be executed on a computer according to the embodiments of this document. The program code can be stored on a computer readable carrier.
[0241] Fig.14 An example of a content streaming system to which the embodiments of this document can be applied is shown.
[0242] Reference Fig.14 A content streaming system to which the embodiments of this document are applied may generally include an encoding server, a streaming server, a network server, a media storage device, a user device, and a multimedia input device.
[0243] The encoding server is used to compress the content input from the multimedia input device (e.g., smart phone, camera, camcorder, etc.) into digital data to generate a bit stream and send it to the streaming server. As another example, in the case where the multimedia input device (e.g., smart phone, camera, camcorder, etc.) directly generates the bit stream, the encoding server can be omitted.
[0244] The bitstream may be generated by the encoding method or the bitstream generation method to which the embodiment of the present document is applied. Also, in the process of transmitting or receiving the bitstream, the streaming server may temporarily store the bitstream.
[0245] The streaming server sends multimedia data to the user device based on the user's request through the network server, and the network server is used as an instrument to inform the user of what services are available. When the user requests the service the user wants, the network server transmits the request to the streaming server, and the streaming server sends the multimedia data to the user. In this regard, the content streaming system may include a separate control server, and in this case, the control server is used to control the command / response between the various devices in the content streaming system.
[0246] The streaming server may receive content from a media storage device and / or an encoding server. For example, in the case of receiving content from an encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a predetermined period of time to smoothly provide a streaming service.
[0247] For example, user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation, tablet computers, tablet PCs, ultrabooks, wearable devices (e.g., watch-type terminals (smart watches), glasses-type terminals (smart glasses), head-mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc.
[0248] Each server in the content streaming system may operate as a distributed server, and in this case, data received by each server may be processed in a distributed manner.
[0249] The claims in this specification may be combined in various ways. For example, the technical features in the method claims of this specification may be combined to be implemented or performed in a device, and the technical features in the device claims may be combined to be implemented or performed in a method. In addition, the technical features in the method claims and the device claims may be combined to be implemented or performed in a device. In addition, the technical features in the method claims and the device claims may be combined to be implemented or performed in a method.
Claims
1. An image decoding method performed by a decoding device, the image decoding method comprising the following steps: Obtaining image information including residual information through a bit stream; generating a reconstructed sample of the current picture based on the residual information; and generating modified reconstructed samples based on an in-loop filtering process on the reconstructed samples, The image information includes a sequence parameter set SPS and a picture header. The SPS includes a sub-picture existence flag, and the sub-picture existence flag indicates whether sub-picture related information is included in the SPS. Wherein, when the sub-picture existence flag indicates that the sub-picture related information is included in the SPS, it is determined that the information about the position of the virtual boundary is not included in the picture header but is included in the SPS.
2. An image encoding method performed by an encoding device, the image encoding method comprising the following steps: Generate residual samples for the current block; generating residual information based on the residual samples for the current block; Generate in-loop filtering related information for the reconstructed samples of the current picture; as well as encoding the image information including the residual information and the in-loop filtering related information, The image information includes a sequence parameter set SPS and a picture header. The SPS includes a sub-picture existence flag, and the sub-picture existence flag indicates whether sub-picture related information is included in the SPS. Wherein, when the sub-picture existence flag indicates that the sub-picture related information is included in the SPS, it is determined that the information about the position of the virtual boundary is not included in the picture header but is included in the SPS.
3. A method for transmitting image data, the method comprising the following steps: Obtaining a bitstream for the image, wherein the bitstream is generated based on the following steps: generating residual samples for a current block, generating residual information based on the residual samples for the current block, generating in-loop filtering related information for reconstructed samples of a current picture, and encoding image information including the residual information and the in-loop filtering related information; and sending said data comprising said bit stream, The image information includes a sequence parameter set SPS and a picture header. The SPS includes a sub-picture existence flag, and the sub-picture existence flag indicates whether sub-picture related information is included in the SPS. Wherein, when the sub-picture existence flag indicates that the sub-picture related information is included in the SPS, it is determined that the information about the position of the virtual boundary is not included in the picture header but is included in the SPS.