Method and apparatus for signaling slice-related information in an image / video encoding / decoding system - Patents.com

By optimizing the signaling of slice heights within a tile, the method enhances video compression efficiency and reduces overhead, addressing inefficiencies in existing video coding technologies for high-resolution and immersive media.

JP7560617B2Active Publication Date: 2024-10-02LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2023110021
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-11-28
Filing Date
2023-07-04
Publication Date
2024-10-02
Estimated Expiration
2040-11-26

AI Technical Summary

Technical Problem

Existing video coding technologies face inefficiencies in signaling information about slices within a tile, leading to increased signaling overhead and reduced compression efficiency, particularly when dealing with high-resolution and immersive media formats.

Method used

A method and apparatus for efficiently signaling the number and height of slices within a tile by explicitly signaling the height of the first n-1 slices and deriving the height of subsequent slices based on the last slice, reducing redundant height information for slices with equal heights.

Benefits of technology

Improves overall video compression efficiency by reducing signaling overhead and enabling more efficient communication of slice-related information, especially in high-resolution and immersive media scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007560617000013
    Figure 0007560617000013
  • Figure 0007560617000014
    Figure 0007560617000014
  • Figure 0007560617000015
    Figure 0007560617000015
Patent Text Reader

Abstract

To provide a video decoding method performed by a video decoding apparatus.SOLUTION: A video decoding method performed by a video decoding apparatus according to the present document may include the steps of: parsing, from a bitstream, number information about the number of slices having heights specifically signaled within a tile of a current picture; parsing, from the bitstream, height information about the heights of the slices having the specifically signaled heights, based on the number information; deriving the number of slices within the tile based on the number information and the height information; generating prediction samples by performing a prediction on a current block of the current picture based on the slices within the tile; generating reconstructed samples based on the prediction samples; and generating a reconstructed picture for the current picture based on the reconstructed samples.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present technology relates to methods and apparatus for improving signaling of slice-related information in image / video encoding / decoding systems. [Background technology]

[0002] Recently, the demand for high-resolution, high-quality images / videos of 4K or 8K or higher, such as UHD (Ultra High Definition) images / videos, is increasing in various fields. As the image / video data has higher resolution and quality, the amount of information or bits transmitted relatively increases compared to conventional images / video data, so when transmitting image data using existing media such as wired / wireless broadband lines or storing image / video data using existing recording media, the transmission and storage costs increase.

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

[0004] Therefore, there is a demand for a highly efficient image / video compression technology to effectively compress and transmit, store, and play back high-resolution, high-quality image / video information having the above-mentioned various characteristics. Summary of the Invention [Problem to be solved by the invention]

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

[0006] Another technical problem of this document is to provide a method and apparatus for efficiently signaling information about slices within a tile.

[0007] Another technical problem of this document is to provide a method and apparatus for reducing signaling overhead in transmitting information regarding slices within a tile.

[0008] Yet another technical problem of this document is to provide a method and apparatus for efficiently conveying information regarding the number and height of slices within a tile.

[0009] Another technical problem of this document is to provide a method and apparatus for more efficiently signaling the heights of two or more slices in a tile when the heights of the slices are equal. [Means for solving the problem]

[0010] According to one embodiment of the present document, a video decoding method performed by a video decoding device includes the steps of parsing number information regarding the number of slices whose heights are explicitly signaled in a tile of a current picture from a bitstream, parsing height information regarding the heights of slices whose heights are explicitly signaled from the bitstream based on the information, deriving the number of slices in the tile based on the number information and the height information, performing prediction on a current block of the current picture based on the slices in the tile to generate a predicted sample, generating a reconstructed sample based on the predicted sample, and generating a reconstructed picture for the current picture based on the reconstructed sample, wherein the height information includes the same number of syntax elements as a value of the number information, and based on the value of the number information being n, the heights of the 0th slice to the n-1th slice in the tile can be derived based on the syntax elements, the height of the nth slice in the tile can be derived based on the height of the n-1th slice, and the height of the last slice in the tile can be derived based on the remaining height obtained by subtracting the heights of the other slices in the tile from the height of the tile.

[0011] According to another embodiment of the present document, a video encoding method performed by a video encoding device includes the steps of: deriving slices in a tile of a current picture; performing prediction of a current block based on the derived slices to generate the predicted sample; generating residual information based on the predicted sample and an original picture; generating count information regarding a number of slices in the tile whose heights are explicitly signaled and height information regarding heights of slices whose heights are explicitly signaled based on the derived slices; and encoding image information including the residual information, the number information, and the height information, wherein the height information represents heights of the 0th slice to the n-1th slice in the tile based on a value of the count information being n, the height of the nth slice in the tile is derived based on the height of the n-1th slice, and the height of the last slice in the tile is derived based on a remaining height obtained by subtracting heights of other slices in the tile from the height of the tile.

[0012] According to yet another embodiment of the present document, there is provided a computer-readable digital storage medium, the digital storage medium including information for causing a video decoding device to execute a video decoding method, the video decoding method including the steps of parsing, from video information, number information regarding a number of slices whose heights are explicitly signaled within a tile of a current picture, parsing height information regarding heights of the slices whose heights are explicitly signaled from the video information based on the number information, deriving a number of slices within the tile based on the number information and the height information, and deriving a number of slices within the tile based on the number information and the height information. generating a predicted sample based on the predicted sample; generating a reconstructed sample based on the reconstructed sample; and generating a reconstructed picture of the current picture based on the reconstructed sample, wherein the height information includes a number of syntax elements equal to the value of the number information, and based on the value of the number information being n, heights of the 0th slice to the n-1th slice in the tile may be derived based on the syntax elements, the height of the nth slice in the tile may be derived based on the height of the n-1th slice, and the height of the last slice in the tile may be derived based on a remaining height obtained by subtracting heights of other slices in the tile from the height of the tile. Effect of the Invention

[0013] According to an embodiment of the present document, the overall image / video compression efficiency can be improved.

[0014] According to one embodiment of this document, information about slices within a tile can be signaled efficiently.

[0015] According to one embodiment of this document, it is possible to reduce signaling overhead in conveying information about slices within a tile.

[0016] According to one embodiment of this document, information regarding the number and height of slices within a tile can be efficiently signaled.

[0017] According to one embodiment of this document, if the heights of multiple slices within a tile are equal, signaling of height information of slices having the same height may be omitted. [Brief description of the drawings]

[0018] [Figure 1] 1 illustrates generally an example of a video / image coding system in which embodiments of the present document may be applied; [Diagram 2] FIG. 1 is a diagram illustrating the configuration of a video / image encoding device to which an embodiment of this document can be applied. [Diagram 3] 1 is a diagram illustrating the configuration of a video / image decoding device to which an embodiment of the present document can be applied. [Figure 4] 2 shows an example of a picture decoding procedure. [Diagram 5] 1 shows an example of a picture encoding procedure. [Figure 6] 1 illustrates an example of an inter-prediction based video / image encoding method. [Figure 7] 1 illustrates a schematic diagram of an inter prediction unit in an encoding device. [Figure 8] 1 illustrates an example of an inter-prediction based video / picture decoding method. [Figure 9] 1 illustrates an inter-prediction unit in a decoding device. [Figure 10] 1 illustrates a schematic diagram of an example video / image encoding method and associated components according to embodiments of the present document; [Figure 11] 1 illustrates a schematic diagram of an example video / image encoding method and associated components according to embodiments of the present document; [Figure 12] 1 illustrates an example of a video / image decoding method and related components according to an embodiment of the present document; [Figure 13]1 illustrates an example of a video / image decoding method and related components according to an embodiment of the present document; [Figure 14] FIG. 1 illustrates an example of a content streaming system in which embodiments disclosed herein may be applied. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0019] Since the disclosure of this document can be modified in various ways and can have various embodiments, a specific embodiment will be illustrated in the drawings and described in detail. The terms used in this document are merely used to describe a specific embodiment and are not intended to limit the technical ideas of this document. A singular expression includes the expression "at least one" unless the context clearly indicates otherwise. In this document, the terms "include" or "have" are intended to specify the presence of a feature, number, step, operation, component, part, or combination thereof described in the specification, and should be understood not to preclude the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

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

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

[0022] In this document, video may mean a collection of a series of images over time. A picture generally means a unit that represents one image at a particular time, and a slice / tile is a unit that constitutes a part of a picture in coding. A slice / tile may include one or more coding tree units (CTUs). A picture may be composed of one or more slices / tiles. A picture may be composed of one or more tile groups. A tile group may include one or more tiles. A brick may represent a rectangular region of a CTU row in a tile in a picture. A tile may be divided into multiple bricks, and each brick may be composed of one or more CTU rows in the tile. A tile that is not partitioned by multiple bricks may also be called a brick. A brick scan may represent a specific sequential ordering of CTUs that partition a picture, and the CTUs may be aligned to a CTU raster scan within a brick, and the bricks within a tile may be aligned consecutively to a raster scan of the bricks in the tile. And tiles within a picture may be aligned contiguously in a raster scan of the tiles of the picture. A tile is a particular tile column and a rectangular region of CTUs within the particular tile column. The tile column is a rectangular region of CTUs, the rectangular region having a height equal to the height of the picture, and a width may be specified by a syntax element in a picture parameter set. The tile row is a rectangular region of CTUs, the rectangular region having a width specified by a syntax element in a picture parameter set, and a height may be equal to the height of the picture. A tile scan may represent a particular sequential ordering of CTUs partitioning a picture, the CTUs may be aligned contiguously in a raster scan of CTUs within a tile, and tiles within a picture may be aligned contiguously in a raster scan of the tiles of the picture. A slice may include an integer number of bricks of a picture, and the integer number of bricks are included in one NAL unit.A slice may consist of multiple complete tiles, or it may be a continuous sequence of complete bricks of one tile. In this document, tile group and slice may be used interchangeably. For example, in this document, tile group / tile group header may be called slice / slice header.

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

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

[0025] Unit is sometimes used interchangeably with terms such as block or area. In the general case, an MxN block can represent a set of samples or transform coefficients with M columns and N rows. A sample can generally represent a pixel or pixel value, can represent only a pixel / pixel value of the luma component, or can represent only a pixel / pixel value of the chroma component. A sample is used as a term to refer to one pixel or pel of a picture (or image).

[0026] Various embodiments relating to video / image coding are presented in this document and, unless otherwise stated, the embodiments may be combined with each other.

[0027] Technical features described separately in one drawing in this document may be realized separately or simultaneously.

[0028] Hereinafter, the embodiments of the present disclosure will be described in more detail with reference to the accompanying drawings. In the following, the same reference numerals are used to refer to the same components in the drawings, and duplicated descriptions of the same components will be omitted.

[0029] FIG. 1 illustrates a schematic diagram of an example video / image coding system in which embodiments of the present document may be applied.

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

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

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

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

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

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

[0036] The renderer may render the decoded video / image, and the rendered video / image may be displayed via a display unit.

[0037] In this document, " / " and "," are interpreted as "and / or." For example, "A / B" is interpreted as "A and / or B," and "A, B" is interpreted as "A and / or B." Furthermore, "A / B / C" means "at least one of A, B, and / or C." Also, "A, B, C" means "at least one of A, B, and / or C."

[0038] Additionally, in this document, "or" is to be interpreted as "and / or." For example, "A or B" can mean 1) only "A," 2) only "B," or 3) "A and B." In other words, in this document, "or" can mean "additionally or alternatively."

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

[0040] 2 is a diagram for explaining the schematic configuration of a video / image encoding device to which the embodiment of this document can be applied. Hereinafter, the video encoding device includes the image encoding device.

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

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

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

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

[0045] The inter prediction unit 221 may derive a predicted block for a current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of motion information between a neighboring block and the current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block present in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a collocated reference block, a collocated CU (col CU), etc., and the reference picture including the temporal neighboring block may be called a collocated picture (colPic). For example, the inter prediction unit 221 may generate information indicating which candidate is used to derive a motion vector and / or a reference picture index of the current block by forming a motion information candidate list based on neighboring blocks. Inter prediction may be performed based on various prediction modes, and for example, in the case of a skip mode and a merge mode, the inter prediction unit 221 may use motion information of a neighboring block as motion information of the current block. In the case of the skip mode, unlike the merge mode, a residual signal may not be transmitted.In the case of motion vector prediction (MVP) mode, the motion vector of the neighboring block can be used as a motion vector predictor, and the motion vector of the current block can be indicated by signaling the motion vector difference.

[0046] The prediction unit 220 generates a prediction signal based on various prediction methods, which will be described later. For example, the prediction unit 200 can apply intra prediction or inter prediction for prediction of one block, as well as intra prediction and inter prediction simultaneously. This is called combined inter and intra prediction (CIIP). The prediction unit can also be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode can be used for content image / video coding such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but is similar to inter prediction in that a reference block is derived within the current picture. That is, IBC can use at least one of the inter prediction techniques described in this document. The palette mode can be considered as an example of intra coding or intra prediction. When the palette mode is applied, a sample value within a picture can be signaled based on information regarding a palette table and a palette index.

[0047] The prediction signal generated via the prediction unit (including the inter prediction unit 221 and / or the intra prediction unit 222) can be used to generate a reconstructed signal or can be used to generate a residual signal.

[0048] The transform unit 232 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). Here, the GBT refers to a transform obtained from a graph when the relationship information between pixels is expressed as a graph. The CNT refers to a transform obtained based on a predicted signal generated using all previously reconstructed pixels. In addition, the transform process may be applied to pixel blocks having the same square size, or may be applied to blocks of variable sizes that are not square.

[0049] The quantization unit 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoding unit 240, and the entropy encoding unit 240 encodes the quantized signal (information about the quantized transform coefficients) and outputs it as a bitstream. The information about the quantized transform coefficients may be called residual information. The quantization unit 233 may rearrange the quantized transform coefficients in a block form into a one-dimensional vector form based on a coefficient scan order, and generate information about the quantized transform coefficients based on the quantized transform coefficients in the one-dimensional vector form.

[0050] The entropy encoding unit 240 may perform various encoding methods, such as exponential Golomb, context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 240 may also encode information required for video / image restoration (e.g., values ​​of syntax elements, etc.) together with or separately from the quantized transform coefficients. The encoded information (e.g., encoded video / image information) may be transmitted or stored in a network abstraction layer (NAL) unit unit in the form of a bitstream. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. In this document, information and / or syntax elements transmitted / signaled from an encoding device to a decoding device are included in video / image information. The video / image information is encoded through the above-mentioned encoding procedure and included in the bitstream. The bitstream may be transmitted via a network or stored in a digital storage medium. Here, the network may include a broadcasting network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitter (not shown) for transmitting and / or a storage unit (not shown) for storing the signal output from the entropy encoding unit 240 may be configured as an internal / external element of the encoding device 200, or the transmitter may be included in the entropy encoding unit 240.

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

[0052] Meanwhile, luma mapping with chroma scaling (LMCS) may be applied in the picture encoding and / or restoration process.

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

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

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

[0056] FIG. 3 is a diagram illustrating the schematic configuration of a video / image decoding device to which the embodiments of this document can be applied.

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

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

[0059] The decoding apparatus 300 receives a signal output from the encoding apparatus of FIG. 2 in the form of a bitstream, and the received signal is decoded by the entropy decoding unit 310. For example, the entropy decoding unit 310 may derive information (e.g., video / image information) required for image restoration (or picture restoration) by parsing the bitstream. The video / image information may further include information on various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). The video / image information may also include general constraint information. The decoding apparatus may decode a picture further based on information on the parameter set and / or the general constraint information. Signaling / received information and / or syntax elements described later in this document may be obtained from the bitstream by being decoded through the decoding procedure. For example, the entropy decoding unit 310 decodes information in a bitstream based on a coding method such as exponential Golomb encoding, CAVLC (context-adaptive variable length coding), or CABAC (context-adaptive arithmetic coding), and outputs values ​​of syntax elements required for image restoration and quantized values ​​of transform coefficients related to residuals. More specifically, the CABAC entropy decoding method receives bins corresponding to each syntax element in the bitstream, determines a context model using information on the syntax element to be decoded and decoding information of neighboring and to-be-decoded blocks or information on symbols / bins decoded in previous steps, predicts the occurrence probability of bins according to the determined context model, and performs arithmetic decoding of the bins to generate symbols corresponding to the values ​​of each syntax element.At this time, the CABAC entropy decoding method may update the context model using information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. Prediction information among the information decoded in the entropy decoding unit 310 is provided to a prediction unit (inter prediction unit 332 and intra prediction unit 331), and residual values ​​entropy decoded in the entropy decoding unit 310, i.e., quantized transform coefficients and related parameter information, may be input to the residual processing unit 320.

[0060] The residual processing unit 320 may derive a residual signal (residual block, residual sample, residual sample array). In addition, information related to filtering among the information decoded in the entropy decoding unit 310 is provided to the filtering unit 350. Meanwhile, a receiving unit (not shown) for receiving a signal output from the encoding device may be further configured as an internal / external element of the decoding device 300, and the receiving unit may be a component of the entropy decoding unit 310. Meanwhile, the decoding device according to this document may be called a video / image / picture decoding device, and the decoding device may be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder includes the entropy decoding unit 310, and the sample decoder includes at least one of the inverse quantization unit 321, the inverse transform unit 322, the addition unit 340, the filtering unit 350, the memory 360, the inter prediction unit 332, and the intra prediction unit 331.

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

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

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

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

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

[0066] The prediction unit 330 may generate a prediction signal based on various prediction methods described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / movie coding such as games, for example, as in screen content coding (SCC). IBC basically performs prediction within a current picture, but may be performed similarly to inter prediction in that a reference block is derived within the current picture. That is, IBC may use at least one of the inter prediction techniques described in this document. The palette mode may be considered as an example of intra coding or intra prediction. When the palette mode is applied, information regarding a palette table and a palette index is included in the video / image information and signaled.

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

[0068] The inter prediction unit 332 may derive a predicted block for the current block based on a reference block (reference sample array) identified by a motion vector on a reference picture. At that time, in order to reduce the amount of motion information transmitted in the inter prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on correlation of motion information between neighboring blocks and the current block. The motion information includes a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring blocks include spatial neighboring blocks present in the current picture and temporal neighboring blocks present in the reference picture. For example, the inter prediction unit 332 may configure a motion information candidate list based on the neighboring blocks and derive a motion vector and / or a reference picture index for the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and the information on the prediction includes information indicating an inter prediction mode for the current block.

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

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

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

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

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

[0074] In this document, the embodiments described for the filtering unit 260, the inter prediction unit 221, and the intra prediction unit 222 of the encoding device 200 may also be applied in an identical or corresponding manner to the filtering unit 350, the inter prediction unit 332, and the intra prediction unit 331 of the decoding device 300, respectively.

[0075] Meanwhile, the video / picture coding method according to the present document can be performed based on the following partitioning structure. Specifically, the above-mentioned prediction, residual processing ((inverse) transform, (inverse) quantization, etc.), syntax element coding, filtering, etc. procedures can be performed based on the CTU, CU (and / or TU, PU) derived based on the partitioning structure. The block partitioning procedure is performed in the image partitioning unit 210 of the encoding device, and partition-related information is (encoded) in the entropy encoding unit 240 and can be transmitted to the decoding device in the form of a bitstream. The entropy decoding unit 310 of the decoding device can derive a block partitioning structure of the current picture based on the partitioning related information acquired from the bitstream, and perform a series of procedures for image decoding based on the CU size and TU size (e.g., prediction, residual processing, block / picture restoration, in-loop filtering, etc.). The CU size and the TU size may be the same, or there may be multiple TUs within a CU area. Meanwhile, the CU size may generally represent the luma component (sample) CB (coding block) size. The TU size may generally represent the luma component (sample) TB (transform block) size. The chroma component (sample) CB or TB size may be derived based on the luma component (sample) CB or TB size according to the component ratio according to the color format of the picture / image (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.). The TU size may be derived based on maxTbSize. For example, if the CU size is larger than the maxTbSize, a plurality of TUs (TBs) of the maxTbSize are derived from the CU, and transform / inverse transform is performed in units of the TUs (TBs). Also, for example, if intra prediction is applied, the intra prediction mode / type may be derived in units of the CU (or CB), and the procedure of deriving neighboring reference samples and generating predicted samples may be performed in units of TUs (or TBs).In this case, one or more TUs (or TBs) may exist within one CU (or CB) region, in which case the multiple TUs (or TBs) may share the same intra prediction mode / type.

[0076] In addition, in the video / image encoding according to this document, the image processing units may have a hierarchical structure. A picture may be divided into one or more tiles, bricks, slices, and / or tile groups. A slice may include one or more bricks. A brick may include one or more CTU rows in a tile. A slice may include an integer number of bricks of a picture. A tile group may include one or more tiles. A tile may include one or more CTUs. The CTUs may be divided into one or more CUs. A tile is a rectangular region that includes CTUs in a particular tile row and a particular tile column in a picture. A tile group may include an integer number of tiles according to tile raster scan in a picture. A slice header may carry information / parameters that may be applied to the slice (blocks in a slice). If an encoding / decoding device has a multi-core processor, the encoding / decoding procedures of the tiles, slices, bricks, and / or tile groups may be parallelized. In this document, slices and tile groups may be mixed. That is, the tile group header is called a slice header. Here, a slice can have one of slice types including intra (I) slice, predictive (P) slice, and bi-predictive (B) slice. For blocks in an I slice, inter prediction may not be used for prediction, and only intra prediction may be used. Of course, in this case, original sample values ​​may also be coded and signaled without prediction. For blocks in a P slice, intra prediction or inter prediction may be used, and when inter prediction is used, only uni prediction is used. Meanwhile, for blocks in a B slice, intra prediction or inter prediction may be used, and when inter prediction is used, up to bi prediction is used.

[0077] In the encoding device, the tile / tile group, brick, slice, maximum and minimum coding unit sizes can be determined depending on the characteristics of the video image (e.g., resolution) or taking into consideration encoding efficiency or parallel processing, and information regarding them or information that can lead to them can be included in the bitstream.

[0078] In the decoding device, information indicating whether a tile / tile group, brick, slice, or CTU in a tile of the current picture is divided into multiple coding units can be obtained, etc. Such information can be obtained (transmitted) only under certain conditions to improve efficiency.

[0079] Meanwhile, as described above, one picture may include a plurality of slices, and one slice may include a slice header and slice data. In this case, one picture header may be further added to a plurality of slices (slice header and slice data set) in one picture. The picture header (picture header syntax) may include information / parameters commonly applicable to the picture. The slice header (slice header syntax) may include information / parameters commonly applicable to the slices. An adaptation parameter set (APS) or a picture parameter set (PPS) may include information / parameters commonly applicable to one or more pictures. A sequence parameter set (SPS) may include information / parameters commonly applicable to one or more sequences. A video parameter set (VPS) may include information / parameters commonly applicable to multiple layers. A decoding parameter set (DPS) may include information / parameters commonly applicable to the whole video. The DPS may include information / parameters related to concatenation of a coded video sequence (CVS).

[0080] In this document, the higher level syntax may include at least one of the APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, picture header syntax, and slice header syntax.

[0081] Also, for example, information regarding the division and configuration of tiles / tile groups / bricks / slice can be configured in an encoding device based on the higher level syntax and transmitted to a decoding device in the form of a bitstream.

[0082] A picture can be divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs that covers a rectangular area of ​​the picture. Tiles are divided into one or more bricks, and each brick may consist of multiple CTU rows within the tile. A tile that is not divided into multiple bricks can also be a brick. However, a brick that is a subset of a tile is not a tile. A slice can contain multiple tiles of a picture or multiple bricks of a tile.

[0083] FIG. 4 shows an example of a picture decoding procedure.

[0084] In image / video coding, pictures constituting an image / video may be encoded / decoded according to a series of decoding orders. A picture order corresponding to an output order of decoded pictures may be set to be different from the decoding order, and based on this, not only forward prediction but also backward prediction may be performed during inter prediction.

[0085] An example of a schematic picture decoding procedure to which the embodiments of this document can be applied is shown in Fig. 4. In Fig. 4, S400 may be performed in the entropy decoding unit 310, S410 in the prediction unit 330, and S420 in the residual processing unit 320 of the decoding device detailed in Fig. 3. S430 may be performed in the addition unit 340, and S440 in the filtering unit 350. S400 may include the information decoding procedure described in this document, S410 may include the inter / intra prediction procedure described in this document, S420 may include the residual processing procedure described in this document, S430 may include the block / picture reconstruction procedure described in this document, and S440 may include the in-loop filtering procedure described in this document.

[0086] Referring to FIG. 4, the picture decoding procedure, as shown in the description of FIG. 3, can generally include a procedure of acquiring image / video information (through decoding) from a bitstream (S400), a picture reconstruction procedure (S410-S430), and an in-loop filtering procedure of the reconstructed picture (S440). The picture reconstruction procedure may be performed based on prediction samples and residual samples acquired through the inter / intra prediction (S410) and residual processing (S420, inverse quantization and inverse transform for quantized transform coefficients) processes described in this document. A modified reconstructed picture may be generated through an in-loop filtering procedure of the reconstructed picture generated by the picture reconstruction procedure, and the modified reconstructed picture may be output as a decoded picture or may be stored in a decoded picture buffer or memory 360 of the decoding device, and then used as a reference picture in the inter prediction procedure when decoding a picture. In some cases, the in-loop filtering procedure may be omitted, in which case the reconstructed picture may be output as a decoded picture or may be stored in a decoded picture buffer or memory 360 of the decoding device and may then be used as a reference picture in an inter-prediction procedure when decoding a picture. The in-loop filtering procedure (S440) may include a deblock filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and / or a bi-lateral filter procedure, as described above, some or all of which may be omitted. Furthermore, the deblock filtering procedure, a sample adaptive offset (SAO) procedure, an adaptive loop filter (ALF) procedure, and a bi-lateral filter procedure, etc., may be omitted, some or all of which may be omitted.Also, one or some of the deblock filtering procedure, the sample adaptive offset (SAO) procedure, the adaptive loop filter (ALF) procedure, and the bi-lateral filter procedure may be applied sequentially, or all of them may be applied sequentially. For example, the deblock filtering procedure may be applied to the reconstructed picture, and then the SAO procedure may be performed. Alternatively, for example, the deblock filtering procedure may be applied to the reconstructed picture, and then the ALF procedure may be performed. This may be similarly performed in the encoding device.

[0087] FIG. 5 shows an example of a picture encoding procedure.

[0088] An example of a schematic picture encoding procedure to which the embodiments of this document can be applied is shown in Fig. 5. In Fig. 5, S500 can be performed in the prediction unit 220, S510 can be performed in the residual processing unit 230, and S520 can be performed in the entropy encoding unit 240 of the encoding device detailed in Fig. 2. S500 can include an inter / intra prediction procedure described in this document, S610 can include a residual processing procedure described in this document, and S520 can include an information encoding procedure described in this document.

[0089] Referring to FIG. 5, the picture encoding procedure may include not only a procedure of encoding information for picture reconstruction (e.g., prediction information, residual information, partitioning information, etc.) and outputting it in the form of a bitstream, but also a procedure of generating a reconstructed picture of the current picture and a procedure of applying in-loop filtering to the reconstructed picture, as shown in the description of FIG. 2. The encoding apparatus may derive a (modified) residual sample from the transform coefficient quantized through the inverse quantization unit 234 and the inverse transform unit 235, and may generate a reconstructed picture based on the prediction sample output from S500 and the (modified) residual sample. The reconstructed picture generated in this manner may be the same as the reconstructed picture generated by the above-mentioned decoding apparatus. A modified reconstructed picture may be generated through an in-loop filtering procedure of the reconstructed picture, which may be stored in the decoded picture buffer or memory 270, and may be used as a reference picture in an inter prediction procedure when encoding a subsequent picture, as in the case of the decoding apparatus. As described above, in some cases, a part or all of the in-loop filtering procedure may be omitted. When the in-loop filtering procedure is performed, the en-loop-encoding unit 240 can encode (in-loop) filtering-related information (parameters) and output it in the form of a bit stream, and the decoding device can perform the in-loop filtering procedure in the same manner as the decoding device, which encodes based on the filtering-related information.

[0090] Such an in-loop filtering procedure can reduce noises generated during image / movie coding, such as blocking artifacts and ringing artifacts, and improve subjective / objective visual quality. Furthermore, by performing the in-loop filtering procedure in both the encoding device and the decoding device, the encoding device and the decoding device can derive the same prediction result, thereby improving the reliability of picture encoding and reducing the amount of data to be transmitted for picture encoding.

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

[0092] Meanwhile, a video / image encoding procedure based on inter prediction may generally include, for example:

[0093] FIG. 6 illustrates an example of an inter-prediction based video / image encoding method, and FIG. 7 illustrates a schematic diagram of an inter-prediction unit in an encoding device.

[0094] 6 and 7, the encoding apparatus performs inter prediction on a current block (S600). The encoding apparatus may derive an inter prediction mode and motion information of the current block and generate a prediction sample of the current block. Here, the inter prediction mode determination, motion information derivation, and prediction sample generation procedures may be performed simultaneously, or one procedure may be performed before the other procedures. For example, the inter prediction unit 221 of the encoding apparatus may include a prediction mode determination unit 221_1, a motion information derivation unit 221_2, and a prediction sample derivation unit 221_3, and the prediction mode determination unit 221_1) may determine a prediction mode of the current block, the motion information derivation unit 221_2 may derive motion information of the current block, and the prediction sample derivation unit 221_3 may derive a prediction sample of the current block. For example, an inter-prediction unit of an encoding apparatus may search for a block similar to the current block within a certain region (search region) of a reference picture through motion estimation, and derive a reference block having a minimum difference from the current block or a certain criterion or less. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The encoding apparatus may determine a mode to be applied to the current block among various prediction modes. The encoding apparatus may compare RD (ate-distortion) costs of the various prediction modes to determine an optimal prediction mode for the current block.

[0095] For example, when a skip mode or a merge mode is applied to the current block, the encoding apparatus may construct a merge candidate list and derive a reference block, among reference blocks indicated by merge candidates included in the merge candidate list, whose difference between the current block and the current block is minimum or equal to or less than a certain criterion. In this case, a merge candidate associated with the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to a decoding apparatus. Motion information of the current block may be derived using motion information of the selected merge candidate.

[0096] As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus forms an (A)MVP candidate list, and uses a motion vector of an MVP candidate selected from the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-mentioned motion estimation may be used as the motion vector of the current block, and an MVP candidate having a motion vector with the smallest difference from the motion vector of the current block among the MVP candidates may be the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting the MVP from the motion vector of the current block, may be derived. In this case, information regarding the MVD may be signaled to the decoding apparatus. Also, when the (A)MVP mode is applied, the value of the reference picture index may be composed of reference picture index information and may be signaled to the decoding apparatus separately.

[0097] The encoding apparatus may derive a residual sample based on the predicted sample (S610). The encoding apparatus may derive the residual sample through a comparison between an original sample of the current block and the predicted sample.

[0098] The encoding apparatus encodes video information including prediction information and residual information (S620). The encoding apparatus may output the encoded video information in the form of a bitstream. The prediction information is information related to the prediction procedure and may include prediction mode information (e.g., skip flag, merge flag or mode index, etc.) and information on motion information. The information on the motion information may include candidate selection information (e.g., merge index, MVP flag or MVP index) which is information for deriving a motion vector. In addition, the information on the motion information may include the above-mentioned information on MVD and / or reference picture index information. In addition, the information on the motion information may include information indicating whether L0 prediction, L1 prediction, or pair (bi) prediction is applied. The residual information is information on a residual sample. The residual information may include information on a quantized transform coefficient of the residual sample.

[0099] The output bitstream may be stored in a (digital) storage medium and transmitted to the decoding device, or may be transmitted to the decoding device via a network.

[0100] Meanwhile, as described above, the encoding apparatus can generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is because the same prediction result as that performed by the decoding apparatus is derived from the encoding apparatus, thereby improving coding efficiency. Therefore, the encoding apparatus can store the reconstructed picture (or reconstructed samples, reconstructed blocks) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure can be further applied to the reconstructed picture.

[0101] A video / picture decoding procedure based on inter prediction may generally include, for example:

[0102] FIG. 8 illustrates an example of an inter-prediction based video / image decoding method, and FIG. 9 illustrates a schematic diagram of an inter-prediction unit in a decoding device.

[0103] The decoding apparatus may perform operations corresponding to those performed by the encoding apparatus, and may perform prediction on the current block based on the received prediction information to derive a prediction sample.

[0104] 8 and 9, a decoding apparatus may determine a prediction mode of the current block based on prediction information received from a bitstream (S800). The decoding apparatus may determine which inter prediction mode is applied to the current block based on prediction mode information in the prediction information.

[0105] For example, it may be determined whether a merge mode or an (A)MVP mode is applied to the current block based on a merge flag. Alternatively, one of various inter prediction mode candidates may be selected based on the merge index. The inter prediction mode candidates may include various inter prediction modes such as skip mode, merge mode, and / or (A)MVP mode.

[0106] The decoding apparatus derives motion information of the current block based on the determined inter prediction mode (S810). For example, when a skip mode or a merge mode is applied to the current block, the decoding apparatus may form a merge candidate list (described later) and select one merge candidate from among merge candidates included in the merge candidate list. The selection may be performed based on the above-mentioned selection information (merge index). The motion information of the selected merge candidate may be used to derive motion information of the current block. The motion information of the selected merge candidate is used as motion information of the current block.

[0107] As another example, when the (A)MVP mode is applied to the current block, the decoding apparatus constructs an (A)MVP candidate list, and uses a motion vector of a selected MVP candidate among the MVP (motion vector predictor) candidates included in the (A)MVP candidate list as the MVP of the current block. The selection may be performed based on the above-mentioned selection information (MVP flag or MVP index). In this case, the MVD of the current block may be derived based on information on the MVD, and the motion vector of the current block may be derived based on the MVP and MVD of the current block. Also, the reference picture index of the current block may be derived based on reference picture index information. A picture pointed to by the reference picture index in a reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.

[0108] Meanwhile, the motion information of the current block may be derived without constructing a candidate list, in which case the above-described candidate list construction may be omitted.

[0109] The decoding apparatus may generate a prediction sample of the current block based on the motion information of the current block (S820). In this case, the reference picture may be derived based on a reference picture index of the current block, and the prediction sample of the current block may be derived using a sample of a reference block to which the motion vector of the current block points on the reference picture. In this case, as described below, a prediction sample filtering procedure may be further performed on all or some of the prediction samples of the current block, depending on the circumstances.

[0110] For example, the inter prediction unit 332 of the decoding device may include a prediction mode determination unit 332_1, a motion information derivation unit 332_2, and a prediction sample derivation unit 332_3, and may determine a prediction mode of the current block based on prediction mode information received in the prediction mode determination unit 332_1), derive motion information (such as a motion vector and / or a reference picture index) of the current block based on information regarding the motion information received in the motion information derivation unit 332_12, and derive a prediction sample of the current block in the prediction sample derivation unit 332_3.

[0111] The decoding apparatus generates a residual sample of the current block based on the received residual information (S830). The decoding apparatus generates a reconstructed sample of the current block based on the predicted sample and the residual sample, and can generate a reconstructed picture based on the reconstructed sample (S840). As described above, an in-loop filtering procedure can be further applied to the reconstructed picture.

[0112] On the other hand, as mentioned above, HLS (high level syntax) can be coded / signaled for image / video coding. A coded picture can consist of one or more slices. Parameters describing the coded picture are signaled in a picture header and parameters describing the slices are signaled in a slice header. The picture header is carried in its own NAL unit. The slice header is located at the beginning of the NAL unit that contains the payload of the slice (i.e. the slice data).

[0113] Each picture is associated with a picture header. A picture can be composed of different types of slices: intra-coded slices (i.e., I slices) and inter-coded slices (i.e., P slices and B slices). Thus, the picture header can contain syntax elements required for intra- and inter-picture slices.

[0114] A picture can be divided into sub-pictures, tiles, and / or slices. Sub-picture signaling can be present in the sequence parameter set (SPS), and tile and square slice signaling can be present in the picture parameter set (PPS). Raster-scan slice signaling can be present in the slice header.

[0115] As an example, the SPS syntax related to picture partitioning may include syntax elements such as those in Table 1 below.

[0116] [Table 1]

[0117] The PPS syntax includes the syntax elements shown in Table 2 below.

[0118] [Table 2-1]

[0119] [Table 2-2]

[0120] In Table 2, num_slices_in_tile_minus1[i] + 1 indicates the number of slices in the current tile, where the i-th slice contains a subset of CTU rows in a single tile. The value of num_slices_in_tile_minus1[i] must be in the range from 0 to RowHeight[tileY] - 1, inclusive, where tileY is the index of the tile row that contains the i-th slice. If num_slices_in_tile_minus1[i] is not present in the PPS, the value of num_slices_in_tile_minus1[i] is derived to zero.

[0121] slice_height_in_ctu_minus1[i] + 1 represents the height of the i-th rectangular slice in CTU rows, if the i-th slice contains a subset of CTU rows in a single tile. The value of slice_height_in_ctu_minus1[i] must be in the range from 0 to RowHeight[tileY] - 1, inclusive, where tileY is the index of the tile row containing the i-th slice.

[0122] The slice header syntax can include the syntax elements shown in Table 3 below.

[0123] [Table 3]

[0124] Referring to Tables 1 to 3, in the current tile and slice design, a rectangular slice can include one or more tiles, or a rectangular slice can include an integer number of CTU rows in one tile.

[0125] If a rectangular slice contains an integer number of CTU rows in one tile (meaning that the tile is divided into multiple slices), the current signaling explicitly signals the height of each slice. However, such signaling is not the optimal signaling method.

[0126] The layout of slices in one tile may be either uniform in height except for the last slice, or non-uniform in height. If the height of slices in a tile is uniform except for the last slice, the height of all slices in the tile is the same except for the last slice, so the height of each slice can be simply signaled without the need to explicitly signal it. If the height of slices in a tile is non-uniform, the height of each slice in the tile must be signaled.

[0127] The following drawings are created to illustrate a specific example of the present document. The names of specific devices or names of specific signals / information described in the drawings are presented for illustrative purposes only, and therefore the technical features of the present specification are not limited to the specific names used in the following drawings.

[0128] This document provides the following methods to solve the above problems. Each method item can be applied independently or in combination with each other.

[0129] As an example, if a tile contains more than one slice, the number of slice heights explicitly signaled in a CTU row can be signaled. This can be the syntax element num_exp_slice_in_tile. In this case, a syntax element (array() of slice_row_height_minus1) with index from zero to num_exp_slice_in_tile - 1 can be signaled. This can be signaled in ue(v) or u(v), and the number of bits signaling such a syntax element can vary depending on the number of CTU rows in the tile. Here, ue(v) represents a zero-order Exp-Golomb coded syntax element, and u(v) indicates the use of v bits, which will vary depending on the value of the other syntax element.

[0130] The heights of the nth slice to the nth slice in the tile are slice_row_height_minus1 + 1, ranging from 0 to num_exp_slice_in_tile - 1, respectively, where n is equal to the number of slices explicitly signaled in the tile (num_exp_slice_in_tile).

[0131] There are still remaining CTU rows in the tile that are greater than the last (explicitly) signaled num_exp_slice_in_tile_minus1 + 1, but a new slice is defined in the tile. In other words, there are slices in the tile that are not explicitly signaled. The last slice can have a height less than or equal to the last signaled num_exp_slice_in_tile_minus1 + 1.

[0132] As another example, if a tile includes two or more slices, the number of slices included in the tile may be signaled. In this case, a flag indicating that the height of the slices is uniform within the tile may be signaled. If the height of the slices within the tile is uniform, only the height of one slice may be signaled in a CTU row. The height of the slices within the tile may be derived based on the height of the signaled slices. If the height of the slices within the tile is not uniform, the height of each slice in the tile, except for the last slice, may be explicitly signaled.

[0133] The information about slices and / or tiles in this document may include information and / or syntax elements disclosed in Tables 1 to 3. The image / video information may include the high-level syntax disclosed in Tables 1 to 3, and the high-level syntax may include information about slices and information about tiles. The information about slices may include information representing one or more slices in the current picture, and the information about tiles may include information representing one or more tiles in the current picture. A picture may have tiles including one or more slices and slices including one or more tiles.

[0134] In one embodiment, the syntax shown in Table 4 and the semantics shown in Table 5 below are used for the PPS to indicate the partition structure of a picture.

[0135] [Table 4]

[0136] [Table 5]

[0137] With reference to Tables 4 and 5, num_exp_slices_in_tile[i]+ indicates the number of exp_slice_height_in_ctu_minus1[j] present in the PPS. If num_exp_slices_in_tile[i] is not present in the PPS, the value of num_exp_slices_in_tile_minus1[i] is derived to be zero.

[0138] exp_slice_height_in_ctu_minus1[j] + 1 represents the height, in CTU rows, of the jth explicitly signaled rectangular slice if the ith slice contains a subset of CTU rows in a single tile. The value of exp_slice_height_in_ctu_minus1[j] must be in the range from 0 to RowHeight[tileY] - 1 inclusive, where tileY is the index of the tile row containing the slice.

[0139] In other words, num_exp_slices_in_tile[i] can be information about the number of slices whose height is explicitly signaled within a tile of the current picture (number information), and exp_slice_height_in_ctu_minus1[j] can be information about the height of a slice whose height is explicitly signaled (height information).

[0140] The number information and the height information may be an exponential-Golomb-coded syntax element.

[0141] The number information may be parsed based on information about the width and height of a slice including the tile. If the tile includes an i-th slice, width information of the slice including the tile may correspond to the syntax element slice_width_in_tiles_minus1[i], and height information of the slice including the tile may correspond to the syntax element slice_height_in_tiles_minus1[i]. The i-th slice may be a rectangular slice, and slices within the tile may also be divided into rectangular slices.

[0142] For example, the encoding apparatus may generate the number information and the height information based on information about a slice of the current picture. The number information and the height information may be included in video information and signaled to the decoding apparatus in the form of a bitstream.

[0143] When the number information is parsed from a PPS as shown in Table 4, the decoding apparatus may parse the height information from the PPS based on the number information. As an example, when the value of the number information is n (an integer equal to or greater than 0), the decoding apparatus may parse height information for n slices (0th slice to n-1th slice in the tile) from the PPS. The height information may represent each of the heights of the 0th slice to the n-1th slice in units of coding tree unit (CTU) rows.

[0144] Then, the decoding apparatus may derive heights of the remaining slices in the tile based on the height of the (n-1)th slice. Specifically, the decoding apparatus may derive heights of the remaining slices, excluding the last slice in the tile from the nth slice in the tile, to be the same as the height of the (n-1)th slice. To this end, the decoding apparatus may compare whether the remaining height, obtained by subtracting the sum of the heights of the 0th slice to the (n-1)th slice from the height of the tile, is equal to or greater than the height of a uniform slice. Here, a uniform slice may refer to a slice having a uniform (same) height in the tile. That is, the height of the uniform slice may be the same as the height of the (n-1)th slice.

[0145] The decoding apparatus may derive the height of the nth slice to the height of the uniform slice if the remaining height of the tile is equal to or greater than the height of the uniform slice, and may derive the height of the nth slice to the remaining height if the remaining height of the tile is smaller than the height of the uniform slice. Furthermore, the decoding apparatus may derive an updated remaining height by subtracting the height of the nth slice from the remaining height if the remaining height of the tile is equal to or greater than the height of the uniform slice, and may derive the height of the n+1th slice to the height of the uniform slice if the updated remaining height is equal to or greater than the height of the uniform slice. If the updated remaining height is smaller than the height of the uniform slice, the decoding apparatus may derive the height of the n+1th slice to the updated remaining height. That is, the heights of the slices from the nth slice to the last slice, excluding the last slice in the tile, may be uniformly derived. The height of the last slice may be smaller than or equal to the height of the slices (the n-1th slice to the slice immediately before the last slice) whose heights are uniform.

[0146] For example, if one tile includes five slices and the number information indicates 3, height information of the first slice to the third slice in the tile is parsed from the PPS, and the height of the fourth slice in the tile can be derived the same as the height of the third slice. In this case, the height of the fifth slice in the tile can be smaller than or equal to the height of the fourth slice.

[0147] The decoding apparatus can derive the number of slices in the tile through such a scanning procedure. If the value of the number information is greater than zero, a procedure for deriving information on the height of each slice and the number of slices in the tile can be represented as shown in Table 5 below.

[0148] [Table 6]

[0149] For rectangular slices, the list NumCtuInSlice[i], with i in the range 0 to num_slices_in_pic_minus1 inclusive, represents the number of CTUs in the ith slice, and the matrix CtbAddrInSlice[i][j], with i in the range 0 to num_slices_in_pic_minus1 inclusive and j in the range 0 to NumCtuInSlice[i] inclusive, represents the picture raster scan address of the jth CTB in the ith slice, and can be derived as shown in Table 7 below.

[0150] [Table 7]

[0151] In another embodiment, the following syntax as shown in Table 8 and semantics as shown in Table 9 are used for PPS to indicate the partition structure of a picture.

[0152] [Table 8]

[0153] [Table 9]

[0154] With reference to Tables 8 and 9, a value of 1 for uniform_slice_spacing_flag[i] indicates that the CTU rows are uniformly distributed across the tile and is signaled using the syntax element uniform_slice_height_in_ctu_minus1[i]. A value of 0 for uniform_slice_spacing_flag[i] indicates that the CTU rows may or may not be uniformly distributed across the tile and is signaled using the syntax elements num_slices_in_tile_minus1[i] and slice_height_in_ctu_minus1[i].

[0155] slice_rows_height_in_ctu_minus1[i] + 1 represents the height of the slices in CTB units, excluding the last slice in the tile, if uniform_slice_spacing_flag[i] has the value 1. The value of slice_rows_height_in_ctu_minus1[i] must be in the range from 0 to RowHeight[tileY] - 1, inclusive, where tileY is the index of the tile row that contains the slice.

[0156] num_slices_in_tile_minus1[i] + 1 indicates the number of slices in the current tile if the i-th slice contains a subset of CTU rows in a single tile and the value of uniform_slice_spacing_flag[i] is zero. The value of num_slices_in_tile_minus1[i] cannot be in the range from 0 to RowHeight[tileY] - 1, inclusive, where tileY is the index of the tile row containing the i-th slice. If num_slices_in_tile_minus1[i] is not present, the value of num_slices_in_tile_minus1[i] is derived to 0.

[0157] slice_height_in_ctu_minus1[i] + 1 represents the height of the i-th rectangular slice in CTU rows, if the i-th slice contains a subset of CTU rows in a single tile. The value of slice_height_in_ctu_minus1[i] must be in the range from 0 to RowHeight[tileY] - 1, inclusive, where tileY is the index of the tile row containing the i-th slice.

[0158] For example, the encoding device may generate at least one of uniform_slice_spacing_flags slice_rows_height_in_ctu_minus1, num_slices_in_tile_minus1, and slice_height_in_ctu_minus1 based on information about the slices of the current picture.

[0159] When the uniform_slice_spacing_flag is parsed from the PPS as shown in Table 8, the decoding device may parse slice_rows_height_in_ctu_minus1 or num_slices_in_tile_minus1 from the PPS based on the value of uniform_slice_spacing_flag. As an example, when the value of the uniform_slice_spacing_flag is 1, the decoding device may parse slice_rows_height_in_ctu_minus1 from the PPS and derive the height of the remaining slices excluding the last slice in the tile based on the value of slice_rows_height_in_ctu_minus1. When the value of the uniform_slice_spacing_flag is zero, the decoding device may parse num_slices_in_tile_minus1 and slice_height_in_ctu_minus1 from the PPS and derive the slices in the tile based on them.

[0160] As an example, variables NumSlicesInTileMinus1[i] and SliceHeightInCtuMinus1[I + k] related to the number and height information of slices in a tile can be derived as follows, where k can range from 0 to NumSlicesInTileMinus1[i] inclusive.

[0161] [Table 10]

[0162] For rectangular slices, the list NumCtuInSlice[i], for i in the range from 0 to num_slices_in_pic_minus1 inclusive, represents the number of CTUs in the i-th slice, and the matrix CtbAddrInSlice[i][j], for i in the range from 0 to num_slices_in_pic_minus1 inclusive and j in the range from 0 to NumCtuInSlice[i]-1 inclusive, represents the picture raster scan address of the j-th CTB in the i-th slice, and can be derived as shown in Table 11 below.

[0163] [Table 11]

[0164] 10 and 11 show a schematic diagram of an example of a video / image encoding method and associated components according to embodiments of the present document.

[0165] The video / image encoding method disclosed in FIG. 10 may be implemented using the same techniques as those disclosed in FIG. 10 may be performed by the image division unit 210 of the encoding apparatus 200, and S1010 may be performed by the prediction unit 220 of the encoding apparatus 200. Alternatively, S1030 and S1040 may be performed by the entropy encoding unit 240 of the encoding apparatus 200. The video / image encoding method disclosed in FIG. 10 may include embodiments detailed herein.

[0166] Specifically, referring to FIG. 10 and FIG. 11, the image division unit 210 of the encoding apparatus may derive slices within a tile of a current picture (S1000). For example, the image division unit 210 may divide an input image (or picture, frame) into one or more CUs. The input image may include one or more pictures. A picture may be divided into one or more tiles, bricks, slices, and / or tile groups. A slice may include one or more bricks, tiles, and / or tile groups. A brick may include one or more CTU rows within a tile. A tile group may include one or more tiles. A tile may include one or more CTUs. The CTU may be divided into one or more CUs. The image division unit 210 may derive slices within a tile of a current picture (S1000). In the case of a rectangular slice, the rectangular slice may be divided into a plurality of tiles, and at least one of the plurality of tiles may be divided to derive a plurality of rectangular slices.

[0167] The prediction unit 220 of the encoding device may perform prediction of a current block based on the slice derived from the image division unit 210, and generate a prediction sample (prediction block) of the current block (S1010). The prediction unit 220 may determine whether intra prediction or inter prediction is applied in units of the current block or CU. The prediction unit 220 may generate various information related to prediction (prediction related information) and transmit it to the entropy encoding unit 240. Here, the prediction related information may include information regarding an inter prediction mode and information regarding an intra prediction mode. If the prediction mode of the current block is an inter prediction mode, the prediction sample may be generated by an inter prediction unit 221 of the prediction unit 220. If the prediction mode of the current block is an intra prediction mode, the prediction sample may be generated by an intra prediction unit 222 of the prediction unit 220.

[0168] The residual processor 230 of the encoding device may generate a residual sample and residual information based on the prediction sample generated by the prediction unit 220 and an original picture (original block, original sample) (S1020). Here, the residual information may include information on the (quantized) transform coefficient of the residual sample as information on the residual sample.

[0169] The adder (or restoration unit) of the encoding device can generate a restoration () sample (restored picture, restored block, restored sample array) by adding the residual sample generated by the residual processing unit 230 and the predicted sample generated by the inter prediction unit 221 or the intra prediction unit 222.

[0170] The entropy encoding unit 240 of the encoding device may generate partitioning-related information based on the partitioning structure derived from the image dividing unit 210. The partitioning-related information may include information (number information) on the number of slices in a tile whose heights are explicitly signaled, and information (height information) on the heights of the slices whose heights are explicitly signaled. For example, the entropy encoding unit 240 may generate number information on the number of slices in the tile whose heights are explicitly signaled (provided), and height information on the heights of the slices whose heights are explicitly signaled (provided), based on the slices derived from the image dividing unit 210 (S1030). Here, the number information may include the above-mentioned syntax elements num_exp_slices_in_tile and / or num_slices_in_tile_minus1. The height information may include the above-mentioned syntax elements exp_slice_height_in_ctu_minus1, slice_rows_height_in_ctu_minus1, and / or slice_height_in_ctu_minus1.

[0171] The entropy encoding unit 240 may encode image information including partitioning-related information including the number information and the height information, prediction-related information generated by the prediction unit 220, and / or residual information generated by the residual processing unit 230 (S1040). The information encoded by the entropy encoding unit 240 is output in the form of a bitstream. The bitstream may be transmitted to a decoding device via a network or a storage medium.

[0172] As an example, the entropy encoding unit 240 may encode image information including a syntax element num_exp_slices_in_tile as the number information and a syntax element exp_slice_height_in_ctu_minus1 as the height information based on Tables 4 and 5. The height information may represent the height of a slice whose height in a tile is explicitly signaled in units of CTU rows, and may include a syntax element for each slice whose height is explicitly signaled. The number of the syntax elements included in image information may be the same as the value of the number information.

[0173] As another example, the entropy encoding unit 240 may encode image information including syntax elements uniform_slice_spacing_flag, num_slices_in_tile_minus1, slice_rows_height_in_ctu_minus1, and / or slice_height_in_ctu_minus based on the above Tables 8 and 9. The syntax elements num_slices_in_tile_minus1, slice_rows_height_in_ctu_minus1, and slice_height_in_ctu_minus1 may or may not be included in the image information based on the value of uniform_slice_spacing_flag.

[0174] The entropy encoding unit 240 may signal the number information and the height information through a picture parameter set in the image information. In this case, the entropy encoding unit 240 may encode the number information and / or the height information using an exponential-Golomb algorithm.

[0175] 12 and 13 illustrate an example of a video / image decoding method and related components according to an embodiment of the present document.

[0176] The video / image decoding method disclosed in Figure 12 may be performed by the (video / image) decoding apparatus 300 disclosed in Figures 3 and 13. Specifically, for example, S1200 to S1220 of Figure 12 may be performed by the entropy decoding unit 310 of the decoding apparatus. S1230 of Figure 12 may be performed by the prediction unit 330 of the decoding apparatus, and S1240 and S1250 may be performed by the addition unit 340 of the decoding apparatus. The video / image decoding method disclosed in Figure 12 may include embodiments detailed in this document.

[0177] 12 and 13, the entropy decoding unit 310 of the decoding device may acquire partitioning-related information, residual information, prediction-related information (inter / intra prediction classification information, intra prediction mode information, inter prediction mode information, etc.), in-loop filtering-related information, etc. from a bitstream. Here, the partitioning-related information may include information on the number of slices whose heights are explicitly signaled among slices in a tile of a current picture (number information), information on the heights of slices whose heights are explicitly signaled (height information), etc.

[0178] For example, the entropy decoding unit 310 may parse information (number information) on the number of slices whose heights are explicitly signaled among slices in a tile of a current picture from a bitstream (S1200), and may parse information (height information) on the heights of slices whose heights are explicitly signaled from the bitstream based on the number information (S1210). Specifically, the entropy decoding unit 310 may parse the number information and the height information from a picture parameter set of the bitstream based on Table 4. Here, the number information may be parsed based on information on the width and height of a slice including the tile. In this case, the slice including the tile and / or the slice within the tile may be a rectangular slice. The number information and the height information may be an exponential-Golomb-coded syntax element. The height information may include a syntax element for each slice whose height is explicitly signaled. The number of the syntax elements may be the same as the value of the number information.

[0179] As an example, the entropy decoding unit 310 may parse a syntax element num_exp_slices_in_tile from the picture parameter set based on values ​​of syntax elements slice_width_in_tiles_minus1 and slice_height_in_tiles_minus1 from the picture parameter set according to Table 4. The entropy decoding unit 310 may then parse a number of exp_slice_height_in_ctu_minus1 equal to the value of the syntax element num_exp_slices_in_tile from the picture parameter set.

[0180] When the value of the number information is n, the entropy decoding unit 310 may derive heights of the 0th slice to the n-1th slice in the tile based on the height information (S820). The entropy decoding unit 310 may then derive the height of the nth slice in the tile based on the height of the n-1th slice. That is, the height of the nth slice may be derived in the same manner as the height of the n-1th slice. Here, the nth slice may not be the last slice in the tile. In other words, the entropy decoding unit 310 may derive the height of the remaining slices (slices not explicitly signaled) excluding the last slice in the tile in the same manner as the height of the n-1th slice. Thus, the heights of the slices from the nth slice to the last slice in the tile may be uniform excluding the last slice in the tile. The entropy decoding unit 310 may derive the height of the last slice in the tile based on the remaining height obtained by subtracting the heights of the other slices in the tile from the height of the tile. When the heights of all slices in the tile are derived, the entropy decoding unit 310 may derive the number of slices in the tile (S1220). Here, the number of slices in the tile may correspond to the number of slices from the 0th slice to the last slice in the tile.

[0181] The decoding apparatus 300 may decode the current picture based on the slices of the current picture derived through the above-mentioned process. Specifically, the residual processor 320 of the decoding apparatus may generate a residual sample based on the residual information acquired by the entropy decoding unit 310. The prediction unit 330 of the decoding apparatus may generate a prediction sample by performing inter prediction and / or intra prediction using prediction related information acquired by the entropy decoding unit 310 based on the slices in the tile (S1230). The adder 340 of the decoding apparatus may generate a reconstructed sample based on the prediction sample generated by the prediction unit 330 and the residual sample generated by the residual processor 320 (S1240). The adder 340 of the decoding apparatus may generate a reconstructed picture (reconstructed block) based on the reconstructed sample (S1250).

[0182] Afterwards, in-loop filtering procedures, such as deblock filtering, SAO and / or ALF procedures, can be applied to the reconstructed picture to improve the subjective / objective image quality if necessary.

[0183] Meanwhile, as another example, the entropy decoding unit 310 may parse syntax elements slice_width_in_tiles_minus1 and slice_height_in_tiles_minus1 from a picture parameter set of a bitstream based on Table 8, and parse a syntax element uniform_slice_spacing_flag from the picture parameter set based on the values ​​of the syntax elements slice_width_in_tiles_minus1 and slice_height_in_tiles_minus1. In this case, the entropy decoding unit 310 may parse a syntax element slice_rows_height_in_ctu_minus1 or parse a syntax element num_slices_in_tile_minus1 from the picture parameter set based on the value of the syntax element uniform_slice_spacing_flag. The syntax element slice_rows_height_in_ctu_minus1 may be parsed if the value of the syntax element uniform_slice_spacing_flag is 1, and the syntax element num_slices_in_tile_minus1 may be parsed if the value of the syntax element uniform_slice_spacing_flag is 0.

[0184] When the syntax element slice_rows_height_in_ctu_minus1 is parsed, the entropy decoding unit 310 may derive the height of the remaining slices excluding the last slice in the tile as the value of slice_rows_height_in_ctu_minus1.

[0185] When the syntax element num_slices_in_tile_minus1 is parsed, the entropy decoding unit 310 parses the number of syntax elements slice_height_in_ctu_minus1 corresponding to the value of the syntax element num_slices_in_tile_minus1 from the picture parameter set, and derives the values ​​as the height of each slice in a tile.

[0186] In the above embodiments, the method is described based on the flowchart as a series of steps or blocks, but the embodiment is not limited to the order of steps, and any steps may occur in a different order or simultaneously with other steps than those described above. Alternatively, those skilled in the art should understand that the steps shown in the flowchart are not exclusive, and other steps may be included, or one or more steps of the flowchart may be deleted without affecting the scope of the embodiments of this document.

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

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

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

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

[0191] Furthermore, the embodiment(s) of the present document may be embodied in a computer program product by program code, the program code being executable by a computer in accordance with the embodiment(s) of the present document, and the program code may be stored on a computer readable carrier.

[0192] FIG. 14 illustrates an example of a content streaming system in which the embodiments disclosed herein may be applied.

[0193] Referring to FIG. 14, a content streaming system to which the embodiments of this document are applied may broadly include an encoding server, a streaming server, a web server, a media store, a user device, and a multimedia input device.

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

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

[0196] The streaming server transmits multimedia data to a user device based on a user request via a web server, and the web server acts as a medium to inform the user of available services. When a user requests a desired service from the web server, the web server transmits the request to the streaming server, and the streaming server transmits multimedia data to the user. In this case, the content streaming system may include a separate control server, and in this case, the control server controls commands / responses between devices in the content streaming system.

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

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

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

Claims

1. 1. A method of video decoding performed by a video decoding device, the method comprising: parsing a syntax element for a slice width and a syntax element for a slice height from the bitstream; parsing number information from the bitstream regarding a number of explicit slices whose height is explicitly signaled within a tile of a current picture based on the value of the syntax element for the slice width being equal to 0 and the value of the syntax element for the slice height being equal to 0; parsing height information for explicit slice heights whose heights are explicitly signaled from the bitstream based on the number information; deriving a number of slices in the tile based on the number information and the height information; performing a prediction for a current block of the current picture based on one of the slices in the tile to generate a predicted sample; generating reconstructed samples based on the predicted samples; generating a reconstructed picture for the current picture based on the reconstructed samples; the number of syntax elements in the height information is equal to the number of the explicit slices identified by the number information; based on the number of explicit slices being equal to n, heights of the 0th slice through the n-1th slice in the tile are derived based on the syntax elements in the height information; a height of an n-th slice within the tile is derived based on the height of the n-1-th slice; A method of video decoding, wherein a height of a last slice in the tile is derived based on a remaining height after subtracting the heights of other slices in the tile from the height of the tile.

2. The method of claim 1 , wherein the number of slices in the tile is equal to the number of slices from the 0th slice to the last slice.

3. comparing a remaining height of the tile, calculated by subtracting the sum of the heights of the slices from the 0th slice to the n-1th slice, from the total height of the tile to determine whether the remaining height is greater than or equal to a height of a uniform slice; the height of a uniform slice is the same as the height of the n-1th slice; deriving an nth slice having the height of the uniform slice based on the remaining height of the tile being equal to or greater than the height of the uniform slice, the remaining height being calculated by subtracting the sum of the heights of the slices from the 0th slice to the n-1th slice from the total height of the tile; 2. The video decoding method of claim 1, wherein the nth slice having the remaining height is derived based on the remaining height of the tile being smaller than the height of the uniform slice, the remaining height of the tile being calculated by subtracting the sum of the heights of the slices from the 0th slice to the n-1th slice from the total height of the tile.

4. an updated remaining height is derived based on the remaining height being greater than or equal to the height of the uniform slice, the updated remaining height being updated by subtracting the height of the nth slice from the remaining height of the tile, which is calculated by subtracting the sum of the heights of the slices from the 0th slice to the n-1th slice from the total height of the tile; deriving an n+1 th slice having the height of the uniform slice based on the updated remaining height being greater than or equal to the height of the uniform slice; The video decoding method of claim 3 , further comprising deriving an n+1 th slice having the updated remainder height based on the updated remainder height being less than the height of the uniform slice.

5. The number information includes a syntax element num_exp_slices_in_tile, The method of claim 1 , wherein the height information comprises a syntax element exp_slice_height_in_ctu_minus1.

6. 1. A method for video encoding performed by a video encoding device, the method comprising: deriving a slice within a tile of a current picture; performing a prediction for a current block based on one of the derived slices to generate a predicted sample; generating residual information based on the predicted samples and an original picture; generating, based on the derived slices, number information regarding a number of explicit slices whose heights are explicitly signaled within the tile and height information regarding heights of the explicit slices whose heights are explicitly signaled; encoding image information including the residual information, the number information, and the height information; the number information is encoded based on a value of a syntax element for a slice width being equal to 0 and a value of a syntax element for a slice height being equal to 0; the number of syntax elements in the height information is equal to the number of the explicit slices identified by the number information; with the number of explicit slices equal to n, the syntax elements in the height information representing heights from a 0th slice to an n-1th slice in the tile; a height of an n-th slice in the tile is expressed based on the height of the n-1-th slice; A method according to claim 1, wherein a height of a last slice in the tile is expressed based on a height remaining after subtracting the heights of other slices in the tile from the height of the tile.

7. 1. A method of transmitting data for a video, the method comprising: obtaining a bitstream for the video, the bitstream being generated based on: deriving slices in a tile of a current picture; performing prediction on a current block based on one of the derived slices to generate a prediction sample; generating residual information based on the prediction sample and an original picture; generating, based on the derived slices, number information regarding a number of explicit slices whose heights are explicitly signaled in the tile and height information regarding the explicit slices whose heights are explicitly signaled; and encoding video information including the residual information, the number information, and the height information. transmitting the data including the bitstream; the number information is encoded based on a value of a syntax element for a slice width being equal to 0 and a value of a syntax element for a slice height being equal to 0; the number of syntax elements in the height information is equal to the number of the explicit slices specified by the number information; with the number of explicit slices equal to n, the syntax elements in the height information representing heights from a 0th slice to an n-1th slice in the tile; a height of an n-th slice in the tile is expressed based on the height of the n-1-th slice; A method according to claim 1, wherein a height of a last slice in the tile is expressed based on a height remaining after subtracting the heights of other slices in the tile from the height of the tile.