Image / video coding method and apparatus
The method optimizes video coding by deriving slice count and height information from a bitstream for efficient intra- and inter-prediction, reducing signaling overhead and enhancing compression efficiency, particularly for tiles with equal slice heights.
Patent Information
- Application Number
- JP2023109890
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-11-28
- Filing Date
- 2023-07-04
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-11-26
AI Technical Summary
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 slices within a tile have varying heights.
A method and apparatus for video coding that involves deriving slice count and height information within a tile from a bitstream, allowing for efficient intra- and inter-prediction based on explicitly signaled slices, and optimizing signaling by omitting redundant height information for slices with equal heights.
Improves overall video compression efficiency by reducing signaling overhead and enabling efficient communication of slice information within a tile, especially when slice heights are equal.
Smart Images

Figure 0007555459000013 
Figure 0007555459000018 
Figure 0007555459000016
Abstract
Description
[Technical field]
[0001] The present technology relates to a method and apparatus for coding image / video. [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] Yet another technical problem of this document is to provide a method and apparatus for efficiently signaling information regarding 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 within a tile of a current picture from a bitstream, deriving the number of slices within a tile based on the number information and the height information, performing at least one of intra prediction or inter prediction on a current block of the current picture based on the slices within the tile to generate a predicted sample, and generating a reconstructed sample based on the predicted sample, where, based on the value of the number information being n, the heights of the 0th to n-1th slices within the tile may be derived based on the syntax element, the height of the nth slice within 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 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 at least one of intra prediction or inter prediction based on the derived slices to generate prediction-related information and prediction samples; generating residual information based on the prediction samples; generating count information regarding the number of slices in the tile whose heights are explicitly signaled and height information regarding the heights of the slices whose heights are explicitly signaled based on the derived slices; and encoding image information including the prediction-related information, the residual information, the number information, and the height information, where the height information represents heights of the 0th slice to the (n-1)th slice in the tile based on a value of the count information being n, the height of the nth slice in the tile may be derived based on the height of the (n-1)th 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.
[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 parsing count information from image information regarding a number of slices whose heights are explicitly signaled within a tile of a current picture, and decoding the image based on the count information. The method includes steps of parsing height information of a slice whose height is explicitly signaled from the image information, deriving the number of slices in the tile based on the number information and the height information, performing at least one of intra prediction or inter prediction of a current block of the current picture based on the slices in the tile to generate a predicted sample, and generating a reconstructed sample based on the predicted sample, wherein the height information includes the same number of syntax elements as the 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 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 the remaining height obtained by subtracting the heights of the 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 two or more slices in a tile have equal heights, signaling for slices with the same height can 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] 1 illustrates an example of an intra-prediction based video / image encoding method. [Diagram 5] 1 illustrates an example of an intra-prediction based video / image encoding method. [Figure 6] 1 illustrates an example of an inter-prediction based video / picture encoding method. [Figure 7] 1 illustrates an example of an inter-prediction based video / picture decoding method. [Figure 8] 1 illustrates generally an example of a video / image encoding method and associated components according to embodiments of the present disclosure; [Figure 9] 1 illustrates generally an example of a video / image encoding method and associated components according to embodiments of the present disclosure; [Figure 10] 1 illustrates generally an example of a video / image decoding method and associated components according to embodiments of the present document; [Figure 11] 1 illustrates generally an example of a video / image decoding method and associated components according to embodiments of the present document; [Figure 12] 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] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document can be applied to methods disclosed in the versatile video coding (VVC) standard. Also, the methods / embodiments disclosed in this document can be applied to methods disclosed in the essential video coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation of audio video coding standard (AVS2) or next generation video / image coding standards (ex. H.267, H.268, etc.).
[0021] Various embodiments relating to video / image coding are presented in this document and, unless otherwise stated, the embodiments may be combined with each other.
[0022] 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.
[0023] 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."
[0024] 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."
[0025] 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."
[0026] Technical features described separately in one drawing in this document may be realized separately or simultaneously.
[0027] 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 for the same components in the drawings, and the duplicated description of the same components will be omitted.
[0028] FIG. 1 illustrates a schematic diagram of an example video / image coding system in which embodiments of the present document may be applied.
[0029] 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.
[0030] 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.
[0031] A video source may acquire video / images through a video / image capture, synthesis, or generation process, etc. A video source may include a video / image capture device and / or a video / image generation device. A video / image capture device may include, for example, one or more cameras, a video / image archive containing previously captured video / images, etc. A video / image generation device may include, for example, a computer, a tablet, a smartphone, etc., and may (electronically) generate video / images. For example, a virtual video / image may be generated via a computer, etc., in which case the video / image capture process may be replaced with a process in which related data is generated.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] The renderer may render the decoded video / image, and the rendered video / image may be displayed via a display unit.
[0036] 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, the terms tile group and slice may be used interchangeably. For example, in this document, tile group / tile group header may be referred to as slice / slice header.
[0037] 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.
[0038] 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.
[0039] 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).
[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 includes a broadcasting network and / or a communication network, and the digital storage medium includes various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting and / or a storing 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 transmitting unit 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 2226.
[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 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, which will be described later. For example, the prediction unit may apply intra prediction or inter prediction for prediction of one block, and may simultaneously apply intra prediction and inter prediction. This may be called combined inter and intra prediction (CIIP). In addition, the prediction unit may be based on an intra block copy (IBC) prediction mode or a palette mode for prediction of a block. The IBC prediction mode or palette mode may be used for content image / video coding such as games, for example, 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. In particular, 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] A picture / video encoding procedure based on intra prediction may generally include, for example:
[0084] FIG. 4 illustrates an example of an intra-prediction based video / image encoding method.
[0085] Referring to FIG. 4, S400 may be performed by the intra prediction unit 222 of the encoding apparatus, and S410 to S430 may be performed by the residual processing unit 230 of the encoding apparatus. Specifically, S410 may be performed by the subtraction unit 231 of the encoding apparatus, S420 may be performed by the transformation unit 232 and the quantization unit 233 of the encoding apparatus, and S430 may be performed by the inverse quantization unit 234 and the inverse transformation unit 235 of the encoding apparatus. In S400, prediction information may be derived by the intra prediction unit 222 and encoded by the entropy encoding unit 240. Residual information may be derived through S410 and S420 and encoded by the entropy encoding unit 240. The residual information is information about the residual sample. The residual information may include information about quantized transform coefficients of the residual sample. As described above, the residual samples may be derived into transform coefficients through a transform unit 232 of the encoding device, and the transform coefficients may be derived into quantized transform coefficients through a quantization unit 233. Information about the quantized transform coefficients may be encoded in an entropy encoding unit 240 through a residual encoding procedure.
[0086] The encoding apparatus performs intra prediction on a current block (S400). The encoding apparatus may derive an intra prediction mode of the current block, derive a neighboring reference sample of the current block, and generate an intra prediction sample of the current block based on the intra prediction mode and the neighboring reference sample. Here, the intra prediction mode determination, neighboring reference sample derivation, and prediction sample generation procedures may be performed simultaneously, or any one procedure may be performed prior to the other procedures. For example, the intra prediction unit 222 of the encoding apparatus may include a prediction mode / type determination unit, a reference sample derivation unit, and a prediction sample derivation unit, and may determine an intra prediction mode type for the current block in the prediction mode / type determination unit, derive neighboring reference samples of the current block in the reference sample derivation unit, and derive a motion sample of the current block in the prediction sample derivation unit. Meanwhile, when a prediction sample filtering procedure to be described later is performed, the intra prediction unit 222 may further include a prediction sample filter unit. The encoding apparatus may determine a mode to be applied to the current block from among a plurality of intra prediction modes. The encoding apparatus may compare the RD costs of the intra prediction modes to determine the optimal intra prediction mode for the current block.
[0087] Meanwhile, the encoding apparatus may perform a prediction sample filtering procedure, which may be called post-filtering. The prediction sample filtering procedure may filter some or all of the prediction samples. In some cases, the prediction sample filtering procedure may be omitted.
[0088] The encoding apparatus derives a residual sample of the current block based on the predicted sample (S410). The encoding apparatus may derive the residual sample by comparing the predicted sample with an original sample of the current block on a phase basis.
[0089] The encoding apparatus transforms / quantizes the residual samples to derive quantized transform coefficients (S420), and then inverse-quantizes / inverse-transforms the quantized transform coefficients again to derive (modified) residual samples (S430). The reason for performing inverse-quantization / inverse-transformation again after transform / quantization is to derive the same residual samples as the residual samples derived by the decoding apparatus, as described above.
[0090] The encoding apparatus may generate a reconstructed block including reconstructed samples of the current block based on the predicted samples and the (corrected) residual samples (S440), and may generate a reconstructed picture of the current picture based on the reconstructed block.
[0091] As described above, the encoding apparatus may encode image information including prediction information regarding the intra prediction (e.g., prediction mode information indicating a prediction mode) and residual information regarding the intra / residual samples, and output the encoded image information in the form of a bitstream. The residual information may include a residual coding syntax. The encoding apparatus may transform / quantize the residual samples to derive quantized transform coefficients. The residual information may include information on the quantized transform coefficients.
[0092] A picture / video decoding procedure based on intra prediction may generally include, for example:
[0093] FIG. 5 illustrates an example of an intra-prediction based video / image encoding method.
[0094] The decoding device may perform operations that correspond to those performed by the encoding device.
[0095] Referring to FIG. 5, S500 to S510 may be performed by an intra prediction unit 331 of a decoding device, and prediction information of S500 and residual information of S530 may be obtained from a bitstream by an entropy decoding unit 310 of a decoding device. A residual processing unit 320 of a decoding device may derive a residual sample of a current block based on the residual information. Specifically, an inverse quantization unit 321 of the residual processing unit 320 may derive a transform coefficient by performing inverse quantization based on a quantized transform coefficient derived based on the residual information, and an inverse transform unit 322 of the residual processing unit may derive a residual sample of the current block by performing inverse transform on the transform coefficient. S540 may be performed by an adder 340 or a reconstruction unit of a decoding device.
[0096] Specifically, the decoding apparatus may derive an intra prediction mode of a current block based on received prediction information (S500). The decoding apparatus may derive neighboring reference samples of the current block (S510). The decoding apparatus performs intra prediction based on the intra prediction mode and the neighboring reference samples to generate intra prediction samples of the current block (S520). In this case, the decoding apparatus may perform a prediction sample filtering procedure. The prediction sample filtering may be called post filtering. The prediction sample filtering procedure may filter some or all of the prediction samples. In some cases, the prediction sample filtering procedure may be omitted.
[0097] The decoding apparatus generates a residual sample of the current block based on the received residual information (S530). The decoding apparatus may generate a reconstructed sample of the current block based on the prediction sample and the residual sample, and derive a reconstructed block including the reconstructed sample (S540). The decoding apparatus may generate a reconstructed picture of the current picture based on the reconstructed block.
[0098] Here, the intra prediction unit 331 of the decoding device may include a prediction mode / type determination unit, a reference sample derivation unit, and a prediction sample derivation unit. The prediction mode / type determination unit may determine an intra prediction mode of the current block based on prediction mode information acquired by the entropy decoding unit 310 of the decoding device, the reference sample derivation unit may derive neighboring reference samples of the current block, and the prediction sample derivation unit may derive a prediction sample of the current block. Meanwhile, when the above-mentioned prediction sample filtering procedure is performed, the intra prediction unit 331 may further include a prediction sample filter unit.
[0099] The prediction information may include intra prediction mode information and / or intra prediction type information. The intra prediction mode information may include, for example, flag information (ex. intra_luma_mpm_flag) indicating whether a most probable mode (MPM) is applied to the current block or a remaining mode is applied. If the MPM is applied to the current block, the prediction mode information may further include index information (ex. intra_luma_mpm_idx) indicating one of the intra prediction mode candidates (MPM candidates). The intra prediction mode candidates (MPM candidates) may be configured from an MPM candidate list or an MPM list. Furthermore, if the MPM is not applied to the current block, the intra prediction mode information may further include remaining mode information (ex. intra_luma_mpm_remainder) indicating one of the remaining intra prediction modes excluding the intra prediction mode candidates (MPM candidates). A decoding apparatus may determine an intra prediction mode of the current block based on the intra prediction mode information. Separate MPM lists may be configured for such MIPs.
[0100] Furthermore, the intra prediction type information may be implemented in various forms. For example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. For another example, the intra prediction type information may indicate whether an MRL is applied to the current block, and if so, The intra prediction type information may include at least one of reference sample line information (e.g., intra_luma_ref_idx) indicating which reference sample line is used, ISP flag information (e.g., intra_subpartitions_mode_flag) indicating whether the ISP is applied to the k current block, ISP type information (e.g., intra_subpartitions_split_flag) indicating a subpartition split type when the ISP is applied, flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include an MIP flag indicating whether MIP is applied to the current block.
[0101] The intra prediction mode information and / or the intra prediction type information may be encoded / decoded through a coding method described in this document. For example, the intra prediction mode information and / or the intra prediction type information may be encoded / decoded through entropy encoding (e.g., CABAC, CAVLC) coding based on a (truncated (rice) binary code).
[0102] Meanwhile, a video / image encoding procedure based on inter prediction may generally include, for example:
[0103] FIG. 6 illustrates an example of an inter-prediction based video / image encoding method.
[0104] Referring to FIG. 6, the encoding apparatus performs inter prediction on a current block (S600). The encoding apparatus may derive an inter prediction mode and motion information of a 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, and any one procedure may be performed prior to the other procedures. For example, the inter prediction unit of the encoding apparatus may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and the prediction mode determination unit may determine a prediction mode of the current block, the motion information derivation unit may derive motion information of the N current block, and the prediction sample derivation unit may derive a prediction sample of the current block. For example, the inter prediction unit of the encoding apparatus may search for a block similar to the current block within a certain area (search area) of a reference picture through motion estimation, and derive a reference block whose difference with the current block is minimum or equal to or less than a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located can be derived, and a motion vector can be derived based on a position difference between the reference block and the current block. The encoding apparatus can determine a mode to be applied to the current block from among various prediction modes. The encoding apparatus can compare rate-distortion (RD) costs of the various prediction modes to determine an optimal prediction mode for the current block.
[0105] 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 from 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.
[0106] As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus may construct an (A)MVP candidate list, and may use 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. 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 configured as reference picture index information and may be signaled to the decoding apparatus separately.
[0107] 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 a current block and the predicted sample.
[0108] The encoding apparatus encodes image information including prediction information and residual information (S620). The encoding apparatus may output the encoded image 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 the residual sample. The residual information may include information on quantized transform coefficients of the residual sample.
[0109] The output bitstream may be stored in a (digital) storage medium and then transmitted to the decoding device, or may be transmitted to the decoding device via a network.
[0110] Meanwhile, as described above, the encoding apparatus can generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on a reference sample and a residual sample. 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 sample, reconstructed block) 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.
[0111] A picture / video decoding procedure based on inter prediction may generally include, for example:
[0112] FIG. 7 illustrates an example of an inter-prediction based image / video decoding method. The decoding device may perform operations corresponding to those performed by the encoding device.
[0113] The decoding apparatus can perform prediction on the current block based on the received prediction information to derive a predicted sample.
[0114] 7, the decoding apparatus may determine a prediction mode of the current block based on prediction information received from a bitstream (S700). The decoding apparatus may determine which inter-prediction mode is applied to the current block based on prediction mode information in the prediction information.
[0115] For example, it may be determined whether a merge mode is applied to the current block or whether an (A)MVP mode is determined 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 a skip mode, a merge mode, and / or an (A)MVP mode.
[0116] The decoding apparatus derives motion information of the current block based on the determined inter prediction mode (S710). 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 may be used as motion information of the current block.
[0117] As another example, when the (A)MVP mode is applied to the current block, the decoding device 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. 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 z current block. Also, the reference picture index of the current block may be derived based on the 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.
[0118] Meanwhile, the motion information of the current block can be derived without constructing a candidate list, in which case the above-described candidate list construction can be omitted.
[0119] The decoding apparatus may generate a prediction sample of the current block based on the motion information of the current block (S720). 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 filtering procedure may be further performed on all or a part of the prediction samples of the current block, depending on the circumstances.
[0120] For example, the inter prediction unit of the decoding device may include a prediction mode determination unit, a motion information derivation unit, and a prediction sample derivation unit, and may determine a prediction mode of the current block based on prediction mode information received by the prediction mode determination unit, 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 by the motion information derivation unit, and derive a prediction sample of the current block by the prediction sample derivation unit.
[0121] The decoding apparatus generates a residual sample of the current block based on the received residual information (S730). 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 (S740). As described above, an in-loop filtering procedure can be further applied to the reconstructed picture.
[0122] 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).
[0123] 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.
[0124] 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.
[0125] As an example, the SPS syntax related to picture partitioning may include syntax elements such as those in Table 1 below.
[0126] [Table 1]
[0127] The PPS syntax includes the syntax elements shown in Table 2 below.
[0128] [Table 2-1]
[0129] [Table 2-2]
[0130] 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.
[0131] 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.
[0132] The slice header syntax can include the syntax elements shown in Table 3 below.
[0133] [Table 3]
[0134] 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.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] This document provides the following methods to solve the above problems. Each method item can be applied independently or in combination with each other.
[0139] 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.
[0140] The height of the slice to the nth slice in the tile is 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).
[0141] 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.
[0142] 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.
[0143] 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.
[0144] 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.
[0145] [Table 4]
[0146] [Table 5]
[0147] 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.
[0148] 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.
[0149] 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).
[0150] The number information and the height information may be an exponential-Golomb-coded syntax element.
[0151] 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.
[0152] 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 image information and signaled to the decoding apparatus in the form of a bitstream.
[0153] 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.
[0154] 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.
[0155] 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.
[0156] 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.
[0157] 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.
[0158] [Table 6]
[0159] 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.
[0160] [Table 7]
[0161] 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.
[0162] [Table 8]
[0163] [Table 9]
[0164] 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].
[0165] 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.
[0166] 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.
[0167] 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.
[0168] 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.
[0169] 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.
[0170] 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.
[0171] [Table 10]
[0172] 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.
[0173] [Table 11]
[0174] 8 and 9 illustrate an example of a schematic representation of a picture / video encoding method and associated components according to embodiments of the present document.
[0175] The video / image encoding method disclosed in Figure 8 may be performed by the (video / image) encoding apparatus 200 disclosed in Figures 2 and 9. Specifically, for example, S800 in Figure 8 may be performed by the image division unit 210 of the encoding apparatus 200, and S810 may be performed by the prediction unit 220 of the encoding apparatus 220. S820 may be performed by the residual processing unit 230 of the encoding apparatus 220. S830 and S840 may be performed by the entropy encoding unit 240 of the encoding apparatus 200. The image / video encoding method disclosed in Figure 8 may include the embodiments described above in this document.
[0176] Specifically, referring to FIG. 8 and FIG. 9, the image division unit 210 of the encoding apparatus may derive slices in a tile of a current picture (S800). 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. One picture may be divided into one or more tiles, bricks, slices, and / or tile groups. One slice may include one or more bricks, tiles, and / or tile groups. One brick may include one or more CTU rows in a tile. One tile group may include one or more tiles. One tile may include one or more CTUs. The CTU may be divided into one or more CUs. If a particular slice in the current picture is a rectangular slice, the image division unit 210 may divide the rectangular slice into a plurality of tiles, and may divide at least one tile of the plurality of tiles to derive a plurality of rectangular slices.
[0177] The prediction unit 220 of the encoding apparatus may perform at least one of intra prediction and inter prediction on a current block based on the slice derived from the image division unit 210, and generate a prediction sample (prediction block) and prediction related information for the current block (S810). The prediction unit 220 may determine whether intra prediction or inter prediction is applied in units of a current block or a CU. The prediction unit 220 may transmit various information related to prediction (prediction related information) to the entropy encoding unit 240. Here, the prediction related information may include information on an inter prediction mode and information on 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.
[0178] 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) (S820). Here, the residual information is information about the residual sample and may include information about the (quantized) transform coefficient of the residual sample.
[0179] The adder (or reconstruction unit) of the encoding device can generate reconstructed samples (reconstructed pictures, reconstructed blocks, reconstructed sample arrays) by adding the residual samples generated by the residual processing unit 230 and the predicted samples generated by the inter prediction unit 221 or the intra prediction unit 222.
[0180] 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 (S830). 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.
[0181] 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 (S840). The information encoded by the entropy encoding unit 240 may be output in the form of a bitstream. The bitstream may be transmitted to a decoding device via a network or a storage medium.
[0182] 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 the above-mentioned Tables 4 and 5. The height information may represent the height of each slice whose height in a tile is explicitly signaled in units of CTU rows, and may include a syntax element for each of the slices whose height is explicitly signaled. The number of the syntax elements included in the image information may be the same as the value of the number information.
[0183] 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_minus1 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.
[0184] 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.
[0185] 10 and 11 illustrate an example of a video / image decoding method and related components according to embodiments of the present document.
[0186] The video / image decoding method disclosed in Figure 10 may be performed by the (video / image) decoding apparatus 300 disclosed in Figures 3 and 11. Specifically, for example, S1000 to S1020 of Figure 10 may be performed by the entropy decoding unit 310 of the decoding apparatus. S1030 of Figure 10 may be performed by the prediction unit 330 of the decoding apparatus. S1040 of Figure 10 may be performed by the addition unit 340 of the decoding apparatus. The video / image decoding method disclosed in Figure 10 may include the embodiments described above in this specification.
[0187] 10 and 11, 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.
[0188] 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 (S1000), and may parse information (height information) on the heights of slices whose heights are explicitly signaled from the bitstream based on the number information (S1010). 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.
[0189] As an example, the entropy decoding unit 310 may parse the syntax elements slice_width_in_tiles_minus1 and slice_height_in_tiles_minus1 from the picture parameter set based on Table 4, and parse the syntax element num_exp_slices_in_tilee from the picture parameter set based on the values of the syntax elements slice_width_in_tiles_minus1 and slice_height_in_tile_in_es_minus1.
[0190] 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. The entropy decoding unit 310 may 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 except for 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 (S1020). 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.
[0191] The decoding apparatus 300 may decode the current picture based on the number information, the height information, etc. In particular, the residual processing unit 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 on a current block included in a slice in a picture based on prediction related information acquired by the entropy decoding unit 310 (S1030). 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 processing unit 320 (S1040). The adder 340 of the decoding apparatus may generate a reconstructed picture (reconstructed block) based on the reconstructed sample.
[0192] Afterwards, in-loop filtering procedures such as deblocking filtering, SAO and / or ALF procedures can be applied to the reconstructed picture to improve the subjective / objective image quality if necessary.
[0193] 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 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 a value of the syntax element uniform_slice_spacing_flag. The syntax element slice_rows_height_in_ctu_minus1 can be parsed if the value of the syntax element uniform_slice_spacing_flag is 1, and the syntax element num_slices_in_tile_minus1 can be parsed if the value of the syntax element uniform_slice_spacing_flag is 0.
[0194] 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 using the value of slice_rows_height_in_ctu_minus1.
[0195] 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 their values as the height of each slice in a tile.
[0196] In the above-described embodiments, the method is described based on a flowchart as a series of steps or blocks, but the embodiment is not limited to the order of steps, and any steps may be performed in a different order or simultaneously with different steps than described above. Furthermore, a person skilled in the art can understand that the steps shown in the flowchart are not exclusive, and other steps may be included, or one or more steps of the flowchart may be deleted without affecting the scope of the embodiments herein.
[0197] 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.
[0198] 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.
[0199] 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 vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an airplane terminal, a ship terminal, etc.), and a medical video device, and may be used to process a video signal or a data signal. For example, an over-the-top video (OTT) device may include a game console, a Blu-ray player, an internet-connected TV, a home theater system, a smartphone, a tablet PC, a digital video recorder (DVR), etc.
[0200] 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.
[0201] 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.
[0202] FIG. 12 illustrates an example of a content streaming system in which the embodiments disclosed herein may be applied.
[0203] Referring to FIG. 12, 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 repository, a user device, and a multimedia input device.
[0204] 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.
[0205] 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.
[0206] 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.
[0207] 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.
[0208] 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.
[0209] 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. A video decoding method performed by a video decoding device, comprising: obtaining a syntax element for a slice width and a syntax element for a slice height from the bitstream; parsing count information from the bitstream regarding the number of specific slices whose height is explicitly signaled within a tile of a current picture based on the syntax element for the width of the slice being equal to 0 and the syntax element for the height of the slice being equal to 0; parsing height information for heights of particular slices 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 at least one of intra prediction or inter prediction on a current block of the current picture based on at least one slice in the tile to generate a predicted sample; generating reconstructed samples based on the predicted samples; the height information includes a number of syntax elements equal to the number of the particular slices; deriving heights of the 0th slice through the n-1th slice in the tile based on the syntax element, where the number of the particular slices is n; a height of an n-th slice within the tile is derived based on a height of the n-1-th slice; a height of a last slice in the tile is derived based on a height of the tile minus the heights of the other slices in the tile; A video decoding method, wherein a syntax element in the height information represents a height of one of the particular slices in units of CTU rows.
2. The video decoding 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. The video decoding method of claim 1 , wherein a height of the nth slice is derived to be equal to a height of the (n−1)th slice.
4. The video decoding method of claim 1 , wherein the heights of slices from the nth slice in the tile to the slice immediately preceding the last slice are uniform.
5. The video decoding method of claim 4, wherein the height of the last slice is less than or equal to the height of the (n-1)th slice.
6. The method further includes a step of comparing whether 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 height of the tile is equal to or greater than a height of a uniform slice; the height of the uniform slice is equal to the height of the (n-1)th slice; deriving the 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 of the tile being calculated by subtracting the sum of the heights of the 0th slice to the n-1th slice from the 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 calculated by subtracting the sum of the heights of the slices from the 0th slice to the n-1th slice from the height of the tile being smaller than the height of the uniform slice.
7. Based on the remaining height being equal to or greater than the height of the uniform slice, an updated remaining height is derived by subtracting the height of the n-th slice from the remaining height of the tile, the updated remaining height being calculated by subtracting the sum of the heights of the 0-th slice to the n-1-th slice from the height of the tile; deriving an n+1 th slice having a height of the uniform slice based on the updated remaining height being greater than or equal to a height of the uniform slice; The video decoding method of claim 6 , further comprising deriving an n+1 th slice having the updated remainder height based on the updated remainder height being less than a height of the uniform slice.
8. A video encoding method performed by a video encoding device, comprising: deriving a slice within a tile of a current picture; performing at least one of intra prediction or inter prediction based on at least one of the derived slices to generate prediction related information and prediction samples; generating residual information based on the predicted samples; generating count information regarding the number of specific slices within the tile whose heights are explicitly signaled and height information regarding the heights of the specific slices whose heights are explicitly signaled; encoding image information including the prediction related information, the residual information, the number information, and the height information; the number information is encoded based on a syntax element for a slice width being equal to 0 and a syntax element for a slice height being equal to 0; the height information includes a number of syntax elements equal to the number of the particular slices; Based on the number of the particular slices being n, the syntax elements in the height information represent heights of the 0th slice through the n-1th slice in the tile; the height of the n-th slice in the tile is expressed based on the height of the n-1-th slice; the height of the last slice in the tile is expressed based on the height of the tile minus the heights of the other slices in the tile; A video encoding method, wherein a syntax element in the height information represents a height of one of the particular slices in units of CTU rows.
9. In a method of transmitting data for a video, obtaining a bitstream for the video, the bitstream being generated based on: deriving slices in a tile of a current picture; performing at least one of intra prediction or inter prediction based on at least one of the derived slices to generate prediction-related information and prediction samples; generating residual information based on the prediction samples; generating number information regarding a number of specific slices in the tile whose height is explicitly signaled and height information regarding a specific slice whose height is explicitly signaled; and encoding image information including the prediction-related information, the residual information, the number information, and the height information; transmitting the data including the bitstream; the number information is encoded based on a syntax element for a slice width being equal to 0 and a syntax element for a slice height being equal to 0; the height information includes a number of syntax elements equal to the number of the particular slices; Based on the number of the particular slices being n, the syntax elements in the height information represent heights of the 0th slice through the n-1th slice in the tile; the height of the n-th slice in the tile is expressed based on the height of the n-1-th slice; the height of the last slice in the tile is expressed based on the height of the tile minus the heights of the other slices in the tile; A data transmission method, wherein a syntax element in the height information represents a height of one of the particular slices in units of CTU rows.
