Method and apparatus for processing image information for image / video coding

By performing inter-frame and intra-frame prediction during image/video compilation and marking the required information in the picture header, the efficient compression and transmission problems of high-resolution images/videos are solved, and a more efficient encoding and decoding process is achieved. .

CN114788291BActive Publication Date: 2025-02-11LG ELECTRONICS INC
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202080084712.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-11-05
Filing Date
2020-11-05
Publication Date
2025-02-11
Estimated Expiration
2040-11-05

AI Technical Summary

Technical Problem

The prior art is difficult to efficiently compress and transmit high-resolution, high-quality images/videos, especially in the case of increasing demand for supporting virtual reality, artificial reality and immersive media.

Method used

By performing inter prediction and intra prediction during the image/video compilation process and marking the required prediction information in the picture header, the encoding and decoding process of the image/video is optimized and unnecessary signaling transmission is reduced.

Benefits of technology

Improves image/video compression efficiency, reduces transmission and storage costs, and efficiently performs prediction operations during image/video compilation to prevent unnecessary signaling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114788291B_ABST
    Figure CN114788291B_ABST
Patent Text Reader

Abstract

A video decoding method performed by a video decoding device according to the present document may include the following steps: acquiring image information from a bitstream, the image information including a picture header associated with a current picture including multiple slices; parsing at least one of a first flag indicating whether information required for an inter-frame prediction operation for a decoding process exists in the picture header or a second flag indicating whether information required for an intra-frame prediction operation for a decoding process exists in the picture header; generating predicted samples by performing at least one of intra-frame prediction or inter-frame prediction for slices in the current picture based on at least one of the first flag or the second flag; and generating reconstructed samples based on the predicted samples.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present technology relates to a method and device for processing image information when encoding an image / video. Background Art

[0002] Recently, the demand for high-resolution, high-quality images / videos such as 4K or 8K or above ultra-high definition (UHD) images / videos is increasing in various fields. As the image / video resolution or quality becomes higher, a relatively larger amount of information or bits is transmitted compared to conventional image / video data. Therefore, if the image / video data is transmitted via a medium such as an existing wired / wireless broadband line or is stored in a traditional storage medium, the cost for transmission and storage is easily increased.

[0003] In addition, there is growing interest and demand for virtual reality (VR) and artificial reality (AR) content and immersive media such as holograms; and there is also growing broadcasting of images / videos that exhibit image / video characteristics that are different from actual images / videos (e.g., game images / videos).

[0004] Therefore, highly efficient image / video compression technology is required to effectively compress and transmit, store, or play high-resolution, high-quality images / videos showing various characteristics as described above. Summary of the invention

[0005] Technical issues

[0006] The technical subject of this document is to provide a method and device for improving image / video coding efficiency.

[0007] Another technical subject of this document is to provide a method and apparatus for efficiently performing inter-frame prediction and / or intra-frame prediction in image / video coding.

[0008] Still another technical subject of this document is to provide a method and apparatus for preventing unnecessary signaling when coding an image / video.

[0009] Still another technical subject of this document is to provide a method and apparatus for skipping unnecessary signaling for inter-frame prediction and / or intra-frame prediction when transmitting image / video information.

[0010] Technical Solution

[0011] According to an embodiment of the present document, a video decoding method performed by a video decoding device may include: obtaining image information from a bitstream, the image information including a picture header related to a current picture, and the current picture includes multiple slices; parsing from the picture header at least one of a first flag indicating whether information required for an inter-frame prediction operation for a decoding process exists in the picture header or a second flag indicating whether information required for an intra-frame prediction operation for a decoding process exists in the picture header; generating predicted samples by performing at least one of intra-frame prediction or inter-frame prediction for a slice in the current picture based on at least one of the first flag or the second flag; and generating reconstructed samples based on the predicted samples.

[0012] According to another embodiment of the present document, a video encoding method performed by a video encoding device may include: determining a prediction mode of a current block in a current picture, the current picture including multiple slices; generating a prediction sample for the current block based on the prediction mode; generating at least one of first information indicating whether information required for an inter-frame prediction operation for a decoding process exists in a picture header related to the current picture or second information indicating whether information required for an intra-frame prediction operation for the decoding process exists in the picture header based on the prediction mode; and encoding image information including at least one of the first information or the second information, wherein the first information and the second information are included in a picture header of the image information.

[0013] According to another embodiment of the present document, a computer-readable digital storage medium includes information that enables a decoding device to perform a video decoding method, wherein the decoding method may include: obtaining image information from a bit stream, the image information including a picture header related to a current picture, and the current picture includes multiple slices; parsing at least one of a first flag indicating whether information required for an inter-frame prediction operation for a decoding process exists in the picture header or a second flag indicating whether information required for an intra-frame prediction operation for a decoding process exists in the picture header; generating predicted samples by performing at least one of intra-frame prediction or inter-frame prediction for a slice in the current picture based on at least one of the first flag or the second flag; and generating reconstructed samples based on the predicted samples.

[0014] Beneficial Effects

[0015] According to the embodiments of this document, the overall image / video compression efficiency can be improved.

[0016] According to an embodiment of this document, inter prediction and / or intra prediction can be efficiently performed during image / video coding.

[0017] According to an embodiment of this document, it is possible to skip unnecessary signaling during image / video coding.

[0018] According to an embodiment of the present document, it is possible to prevent signaling of unnecessary syntax elements for inter prediction or intra prediction during image / video transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 An example of a video / image coding system to which embodiments of the present disclosure may be applied is schematically shown.

[0020] Figure 2 is a diagram schematically illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure can be applied.

[0021] Figure 3 is a diagram schematically illustrating a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.

[0022] Figure 4 An example of a video / image encoding method based on intra-frame prediction is shown.

[0023] Figure 5 An intra predictor in an encoding device is schematically illustrated.

[0024] Figure 6 An example of a video / image decoding method based on intra-frame prediction is illustrated.

[0025] Figure 7 An inter-frame predictor in a decoding device is schematically illustrated.

[0026] Figure 8 An example of a video / image encoding method based on inter-frame prediction is illustrated.

[0027] Fig. 9 An inter-frame predictor in an encoding device is schematically illustrated.

[0028] Fig.10 An example of a video / image decoding method based on inter-frame prediction is illustrated.

[0029] Fig.11 An inter-frame predictor in a decoding device is schematically illustrated.

[0030] Fig.12 and Fig.13 An example of a video / image encoding method and related components according to an embodiment of this document is schematically illustrated.

[0031] Fig.14 and Fig.15 An example of a video / image decoding method and related components according to an embodiment of this document is schematically illustrated.

[0032] Fig.16An example of a content streaming system to which the embodiments disclosed in this document are applicable is illustrated. DETAILED DESCRIPTION

[0033] The disclosure of the present disclosure can be modified in various forms, and specific embodiments thereof will be described and illustrated in the accompanying drawings. The terms used in the present disclosure are only used to describe specific embodiments and are not intended to limit the disclosed methods in the present disclosure. Singular expressions include the expression of "at least one", as long as it is clearly interpreted differently. Terms such as "including" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the document, and therefore it should be understood that the possibility of the presence or addition of one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.

[0034] In addition, each configuration of the drawings described in this document is an independent illustration for explaining the functions of features that are different from each other, and does not mean that each configuration is implemented by different hardware or different software. For example, two or more configurations can be combined to form a configuration, and a configuration can also be divided into multiple configurations. Without departing from the gist of the disclosed method of the present disclosure, embodiments of combined and / or separated configurations are included within the scope of the disclosure of the present disclosure.

[0035] This document relates to video / image coding. For example, the methods / embodiments disclosed in this document may be applied to methods disclosed in the Versatile Video Coding (VVC) standard. In addition, the methods / embodiments disclosed in this document may be applied to methods disclosed in the Basic Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the 2nd generation Audio Video Coding standard (AVS2), or the next generation video / image coding standard (e.g., H.267, H.268, etc.).

[0036] Various embodiments related to video / image coding are presented in this document, and unless otherwise specified, the above embodiments may also be performed in combination with each other.

[0037] In this document, video may refer to a series of images over time. A picture generally refers to a unit representing an image at a specific time frame, and a slice / tile refers to a unit that constitutes a part of a picture in terms of coding. A slice / tile may include one or more coding tree units (CTUs). A picture may consist of one or more slices / tiles. A picture may consist of one or more tile groups. A tile group may include one or more tiles. A tile may represent a rectangular area of ​​a CTU row within a tile in a picture. A tile may be divided into a plurality of tiles, each of which may consist of one or more CTU rows within a tile. Tiles that are not divided into a plurality of tiles may also be referred to as tiles. Tile scanning may represent a specific ordering of CTUs of a partitioned picture, wherein CTUs are continuously ordered in a CTU raster scan within a tile, tiles within a tile are continuously ordered in a raster scan of tiles of a tile, and tiles in a picture are continuously ordered in a raster scan of tiles of a tile. A tile is a rectangular area of ​​a CTU within a specific tile column and a specific tile row in a picture. A tile column is a rectangular area of ​​a CTU having a height equal to the height of the picture and a width specified by a syntax element in the picture parameter set. A tile row is a rectangular area of ​​a CTU having a height specified by a syntax element in the picture parameter set and a width equal to the width of the picture. A tile scan is a specific sequential ordering of the CTUs that partition a picture, where the CTUs are ordered consecutively in a CTU raster scan in tiles and the tiles in a picture are ordered consecutively in a raster scan of the tiles of the picture. A slice includes an integer number of tiles of a picture that can be contained only in a single NAL unit. A slice can consist of multiple complete tiles, or only a sequence of consecutive complete tiles of a tile. In this document, tile groups and slices can be used instead of each other. For example, in this document, a tile group / tile group header can be referred to as a slice / slice header.

[0038] A pixel or a picture element (pel) may refer to the smallest unit constituting a picture (or image). In addition, a "sample" may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component.

[0039] A unit may represent a basic unit of image processing. A unit may include at least one of a specific area of ​​a picture and information related to the area. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, a unit may be used interchangeably with terms such as a block or an area. In general, an M×N block may include M columns and N rows of samples (or sample arrays) or a set (or array) of transform coefficients. Alternatively, a sample may mean a pixel value in a spatial domain, and when such a pixel value is transformed into a frequency domain, it may mean a transform coefficient in a frequency domain.

[0040] In this document, the terms " / " and "," should be interpreted as indicating "and / or". For example, the expression "A / B" may mean "A and / or B". Furthermore, "A, B" may mean "A and / or B". Furthermore, "A / B / C" may mean "at least one of A, B, and / or C". Furthermore, "A / B / C" may mean "at least one of A, B, and / or C".

[0041] Furthermore, in this document, the term "or" should be interpreted as indicating "and / or". For example, the expression "A or B" may include 1) only A, 2) only B, and / or 3) both A and B. In other words, the term "or" in this document should be interpreted as indicating "additionally or alternatively".

[0042] In addition, brackets used in this specification may mean "for example". Specifically, in the case of expressing "prediction (intra-frame prediction)", it may indicate that "intra-frame prediction" is proposed as an example of "prediction". In other words, the term "prediction" in this specification is not limited to "intra-frame prediction", and it may indicate that "intra-frame prediction" is proposed as an example of "prediction". In addition, even in the case of expressing "prediction (i.e., intra-frame prediction)", it may indicate that "intra-frame prediction" is proposed as an example of "prediction".

[0043] Hereinafter, embodiments of the present document will be described in detail with reference to the accompanying drawings. In addition, in all drawings, the same reference numerals may be used to indicate the same elements, and the same description of the same elements will be omitted.

[0044] Figure 1 An example of a video / image coding system to which embodiments of the present disclosure can be applied is illustrated.

[0045] Reference Figure 1 The video / image coding system may include a first device (source device) and a second device (receiving device). The source device may send the encoded video / image information or data in the form of a file or stream to the receiving device via a digital storage medium or a network.

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

[0047] The video source may acquire the video / image by a process of capturing, synthesizing or generating the video / image. The video source may include a video / image capturing device, and / or a video / image generating device. For example, the video / image capturing device may include one or more cameras, a video / image archive including previously captured videos / images, etc. For example, the video / image generating device may include a computer, a tablet computer, and a smart phone, and may generate the video / image (electronically). For example, a virtual video / image may be generated by a computer, etc. In this case, the video / image capturing process may be replaced by a process of generating relevant data.

[0048] The encoding device can encode the input video / image. For compression and coding efficiency, the encoding device can perform a series of processes such as prediction, transformation and quantization. The encoded data (encoded video / image information) can be output in the form of a bit stream.

[0049] The transmitter may transmit the encoded image / image information or data output in the form of a bit stream to a receiver of a receiving device in the form of a file or stream through a digital storage medium or a network. The digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitter may include an element for generating a media file in a predetermined file format, and may include an element for transmission through a broadcast / communication network. The receiver may receive / extract a bit stream and transmit the received bit stream to a decoding device.

[0050] The decoding device may decode a video / image by performing a series of processes such as dequantization, inverse transformation, and prediction corresponding to the operations of the encoding device.

[0051] The renderer may render the decoded video / image. The rendered video / image may be displayed through a display.

[0052] In this specification, technical features described individually in one drawing may be implemented individually, or may be implemented simultaneously.

[0053] Figure 2 is a diagram schematically illustrating a configuration of a video / image encoding device to which an embodiment of the present disclosure may be applied. Hereinafter, a device referred to as a video encoding device may include an image encoding device.

[0054] Reference Figure 2, the encoding device 200 includes an image partitioner 210, a predictor 220, a residual processor 230 and an entropy encoder 240, an adder 250, a filter 260 and a memory 270. The predictor 220 may include an inter-frame predictor 221 and an intra-frame predictor 222. The residual processor 230 may include a transformer 232, a quantizer 233, a dequantizer 234 and an inverse transformer 235. The residual processor 230 may also include a subtractor 231. The adder 250 may be referred to as a reconstructor or a reconstructed block generator. According to an embodiment, the image partitioner 210, the predictor 220, the residual processor 230, the entropy encoder 240, the adder 250 and the filter 260 may be configured by at least one hardware component (e.g., an encoder chipset or processor). In addition, the memory 270 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium. The hardware component may also include the memory 270 as an internal / external component.

[0055] The image partitioner 210 may partition an input image (or picture or frame) input to the encoding device 200 into one or more processing units. For example, a processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively partitioned from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree binary tree ternary tree (QTBTTT) structure. For example, one coding unit may be partitioned into a plurality of coding units with a deeper depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure may be applied first, and a binary tree structure and / or a ternary structure may be applied later. Alternatively, a binary tree structure may be applied first. The coding process according to the present disclosure may be performed based on a final coding unit that is no longer partitioned. In this case, the maximum coding unit may be used as the final coding unit based on coding efficiency, etc. according to image characteristics, or if necessary, the coding unit may be recursively partitioned into coding units with a deeper depth and a coding unit with an optimal size may be used as the final coding unit. Here, the coding process may include a process of prediction, transformation, and reconstruction (to 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 be split or partitioned from the above-mentioned final coding unit. The prediction unit may be a unit for sample prediction, and the transform unit may be a unit for deriving a transform coefficient and / or a unit for deriving a residual signal from the transform coefficient.

[0056] In some cases, a unit may be used interchangeably with terms such as a block or region. In general, an M×N block may represent a set of samples or transform coefficients consisting of M columns and N rows. A sample may generally represent a pixel or a pixel value, and may represent only a pixel / pixel value of a luminance component or only a pixel / pixel value of a chrominance component. A sample may be used as a term corresponding to one picture (or image) of a pixel or a pixel element.

[0057] The encoding device 200 may subtract a prediction signal (prediction block, prediction sample array) output from the inter predictor 221 or the intra predictor 222 from the input image signal (original block, original sample array) to generate a residual signal (residual block, residual sample array), and the generated residual signal is sent to the transformer 232. In this case, as shown, the unit that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) in the encoder 200 may be referred to as a subtractor 231. The predictor may perform prediction on a processing target block (hereinafter referred to as a current block) and generate a prediction block including prediction samples of the current block. The predictor may determine whether intra prediction or inter prediction is applied in units of the current block or CU. As described later in the description of each prediction mode, the predictor may generate various types of information (e.g., prediction mode information) about prediction and send the generated information to the entropy encoder 240. The information about the prediction may be encoded by the entropy encoder 240 and output in the form of a bitstream.

[0058] The intra-frame predictor 222 can predict the current block with reference to samples in the current picture. Depending on the prediction mode, the referenced samples may be located near the current block or may be separated. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. For example, the non-directional mode may include a DC mode and a plane mode. For example, depending on the level of detail of the prediction direction, the directional mode may include 33 directional prediction modes or 65 directional prediction modes. However, this is only an example, and more or fewer directional prediction modes may be used according to the settings. The intra-frame predictor 222 can use the prediction mode applied to the neighboring blocks to determine the prediction mode applied to the current block.

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

[0060] The predictor 220 may generate a prediction signal based on various prediction methods described later. For example, the predictor 220 may apply intra prediction or inter prediction to predict a block, and may apply intra prediction and inter prediction at the same time. This may be referred to as combined inter and intra prediction (CIIP). In addition, the predictor may be based on an intra block copy (IBC) prediction mode or based on a palette mode for predicting blocks. The IBC prediction mode or the palette mode may be used for image / video coding of content such as games, such as screen content coding (SCC). IBC basically performs prediction in the current picture, but it may be performed similarly to inter prediction in that a reference block is derived in 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 an example of intra coding or intra prediction. When the palette mode is applied, the sample values ​​in the picture may be signaled based on information about the palette table and the palette index.

[0061] The prediction signal generated by the predictor (including the inter-frame predictor 221 and / or the intra-frame predictor 222) may be used to generate a reconstructed signal or may be used to generate a residual signal.

[0062] The transformer 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 conditional nonlinear transform (CNT). Here, when the relationship information between pixels is illustrated as a graph, GBT means a transform obtained from a graph. CNT means a transform obtained based on a prediction signal generated by using all previously reconstructed pixels. In addition, the transform process may also be applied to square pixel blocks of the same size, or may also be applied to variable-sized blocks that are not square.

[0063] The quantizer 233 quantizes the transform coefficients and transmits the quantized transform coefficients to the entropy encoder 240, and the entropy encoder 240 encodes the quantized signal (information about the quantized transform coefficients) and outputs the encoded signal as a bitstream. The information about the quantized transform coefficients may be referred to as residual information. The quantizer 233 may rearrange the quantized transform coefficients having a block form in a one-dimensional vector form based on a coefficient scanning order, and also generate information about the quantized transform coefficients based on the quantized transform coefficients in a one-dimensional vector form.

[0064] The entropy encoder 240 may perform various encoding methods such as, for example, exponential Golomb, context adaptive variable length coding (CAVLC), and context adaptive binary arithmetic coding (CABAC). The entropy encoder 240 may also encode information necessary for video / image reconstruction (e.g., values ​​of syntax elements, etc.) in addition to quantized transform coefficients, together or separately. The encoded information (e.g., encoded video / image information) may be transmitted or stored in units of a network abstraction layer (NAL) in the form of a bitstream. The video / image information may also include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. In this document, information and / or syntax elements signaled / sent from an encoding device to a decoding device may be included in the video / image information. The video / image information may be encoded by the aforementioned encoding process and thus included in the bitstream. The bitstream may be transmitted over a network or may be stored in a digital storage medium. Here, the network may include a broadcast network and / or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. A transmitting unit (not shown) for transmitting a signal output from the entropy encoder 240 and / or a storage unit (not shown) for storing the signal may be configured as an internal / external element of the encoding device 200, or the transmitting unit may also be included in the entropy encoder 240.

[0065] The quantized transform coefficients output from the quantizer 233 can be used to generate a prediction signal. For example, the residual signal (residual block or residual sample) can be reconstructed by applying dequantization and inverse transform to the quantized transform coefficients through the dequantizer 234 and the inverse transform unit 235. The adder 250 can add the reconstructed residual signal to the prediction signal output from the inter-frame predictor 221 or the intra-frame predictor 222 to generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array). When there is no residual for the processing target block, such as when the skip mode is applied, the prediction block can be used as a reconstructed block. The adder 250 can be referred to as a restorer or a recovery block generator. The generated reconstructed signal can be used for intra-frame prediction of the next processing target block in the current picture, and can also be used for inter-frame prediction of the next picture after filtering, as described below.

[0066] Meanwhile, luminance mapping and chrominance scaling (LMCS) may also be applied during the picture encoding and / or reconstruction process.

[0067] The filter 260 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 260 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture and store the modified reconstructed picture in the memory 270 (specifically, the DPB of the memory 270). For example, various filtering methods may include deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc. The filter 260 can generate various types of information related to filtering and transmit the generated information to the entropy encoder 240, as described later in the description of each filtering method. The information related to filtering can be encoded by the entropy encoder 240 and output in the form of a bit stream.

[0068] The modified reconstructed picture transmitted to the memory 270 may be used as a reference picture in the inter predictor 221. When inter prediction is applied by the encoding device, prediction mismatch between the encoding device 200 and the decoding device may be avoided and coding efficiency may be improved.

[0069] The DPB of the memory 270 may store the modified reconstructed picture for use as a reference picture in the inter-frame predictor 221. The memory 270 may store the motion information of the block from which the motion information in the current picture is derived (or encoded) and / or the motion information of the block in the reconstructed picture. The stored motion information may be transmitted to the inter-frame predictor 221 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 270 may store the reconstructed samples of the reconstructed block in the current picture and may transmit the reconstructed samples to the intra-frame predictor 222.

[0070] Figure 3is a diagram for schematically explaining a configuration of a video / image decoding device to which an embodiment of the present disclosure can be applied.

[0071] Reference Figure 3 , the decoding device 300 may 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-frame predictor 331 and an intra-frame predictor 332. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321. According to an embodiment, the entropy decoding 310, the residual processor 320, the predictor 330, the adder 340, and the filter 350 may be configured by a hardware component (e.g., a decoder chipset or a processor). In addition, the memory 360 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware component may also include a memory 360 as an internal / external component.

[0072] When a bit stream including video / image information is input, the decoding device 300 can reconstruct the bit stream corresponding to the bit stream in the video / image format. Figure 2 The image corresponding to the processing of the video / image information in the encoding device. For example, the decoding device 300 may derive the unit / block based on the block partition related information obtained from the bitstream. The decoding device 300 may perform decoding using the processing unit applied in the encoding device. Thus, for example, the decoding processing unit may be a coding unit, and the coding unit may be split from the coding tree unit or the maximum coding unit according to a quadtree structure, a binary tree structure and / or a ternary tree structure. One or more transform units may be derived from the coding unit. The reconstructed image signal decoded and output by the decoding device 300 may be reproduced by a reproduction device.

[0073] The decoding device 300 may receive the bit stream from Figure 2The received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive information (e.g., video / image information) required for image reconstruction (or picture reconstruction). The video / image information may also include information about various parameter sets, such as an adaptation parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the video / image information may also include general constraint information. The decoding device may also decode the picture based on information about the parameter set and / or the general constraint information. The signaled / received information and / or syntax elements described later in this document may be decoded by a decoding process and obtained from the bitstream. For example, the entropy decoder 310 may decode the information within the bitstream based on a coding method such as exponential Golomb coding, context adaptive variable length coding (CAVLC), or context adaptive binary arithmetic coding (CABAC), and output syntax elements required for image reconstruction and quantized values ​​of transform coefficients for the residual. More specifically, the CABAC entropy decoding method can receive a bin corresponding to each syntax element in the bitstream, determine the context model by using the decoding target syntax element information, the decoding information of the decoding target block, or the information of the symbol / bin decoded in the previous stage, and perform arithmetic decoding on the bin by predicting the probability of the bin appearing according to the determined context model, and generate a symbol corresponding to the value of each syntax element. In this case, the CABAC entropy decoding method can update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bin after determining the context model. The information related to the prediction among the information decoded by the entropy decoder 310 can be provided to the predictor (inter-frame predictor 332 and intra-frame predictor 331), and the residual value (i.e., quantized transform coefficients and related parameter information) that has been entropy decoded at the entropy decoder 310 can be input to the residual processor 320.

[0074] The residual processor 320 may derive a residual signal (residual block, residual sample, residual sample array). In addition, information about filtering among the information decoded by the entropy decoder 310 may be provided to the filter 350. Meanwhile, a receiver (not shown) for receiving a signal output from the encoding device may also be configured as an internal / external element of the decoding device 300, or the receiver may be a component of the entropy decoder 310. Meanwhile, the decoding device according to this document may be referred to as a video / image / picture decoding device, and the decoding device may be classified into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of the following: a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.

[0075] The dequantizer 321 may dequantize the quantized transform coefficients and output the transform coefficients. The dequantizer 321 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, the rearrangement may be performed based on the coefficient scanning order performed in the encoding device. The dequantizer 321 may perform dequantization on the quantized transform coefficients using a quantization parameter (e.g., quantization step size information) and obtain the transform coefficients.

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

[0077] The predictor 330 may perform prediction on the current block and generate a prediction block including prediction samples of the current block. The predictor may determine whether to apply intra prediction or inter prediction to the current block and determine a specific intra / inter prediction mode based on information on prediction output from the entropy decoder 310.

[0078] The predictor 330 may generate a prediction signal based on various prediction methods described below. For example, the predictor may apply intra prediction or inter prediction for predicting a block, and may apply intra prediction and inter prediction at the same time. This may be referred to as combined inter and intra prediction (CIIP). In addition, the predictor may predict a block based on an intra block copy (IBC) prediction mode or a palette mode. The IBC prediction mode or the palette mode may be used for image / video coding of content such as games, such as screen content coding (SCC). IBC may basically perform a prediction in the current picture, but may be performed similarly to inter prediction so that a reference block is derived within the current picture. That is, IBC may use at least one inter prediction technique 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 about the palette table and the palette index may be included in the video / image information and signaled.

[0079] The intra-frame predictor 331 can predict the current block by referring to samples in the current picture. Depending on the prediction mode, the referenced sample may be located near the current block or may be separated from the current block. In intra-frame prediction, the prediction mode may include multiple non-directional modes and multiple directional modes. The intra-frame predictor 331 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.

[0080] The inter-frame predictor 332 may derive a prediction block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference picture. In this case, in order to reduce the amount of motion information sent in the inter-frame prediction mode, the motion information may be predicted in units of blocks, sub-blocks, or samples based on the correlation of the motion information between the adjacent blocks and the current block. The motion information may include a motion vector and a reference picture index. The motion information may also include information about the inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter-frame prediction, the adjacent blocks may include spatial adjacent blocks present in the current picture and temporal adjacent blocks present in the reference picture. For example, the inter-frame predictor 332 may construct a motion information candidate list based on the adjacent blocks and derive the motion vector and / or reference picture index of the current block based on the received candidate selection information. Inter-frame prediction may be performed based on various prediction modes, and information about the prediction may include information indicating the inter-frame prediction mode for the current block.

[0081] The adder 340 can generate a reconstructed signal (reconstructed picture, reconstructed block, reconstructed sample array) by adding the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including the inter-frame predictor 332 and / or the intra-frame predictor 331). If there is no residual for the processing target block, such as when the skip mode is applied, the prediction block can be used as the reconstructed block.

[0082] The adder 340 may be referred to as a reconstructor or a reconstructed block generator. The generated reconstructed signal may be used for intra prediction of the next block to be processed in the current picture, and as described later, may also be output through filtering or may also be used for inter prediction of the next picture.

[0083] In addition, luminance mapping with chroma scaling (LMCS) can also be applied to the picture decoding process.

[0084] The filter 350 can improve the subjective / objective image quality by applying filtering to the reconstructed signal. For example, the filter 350 can generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and store the modified reconstructed picture in the memory 360, specifically, in the DPB of the memory 360. The various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, bilateral filter, etc.

[0085] The (modified) reconstructed picture stored in the DPB of the memory 360 can be used as a reference picture in the inter-frame predictor 332. The memory 360 can store the motion information of the block from which the motion information in the current picture is derived (decoded) and / or the motion information of the block in the reconstructed picture. The stored motion information can be transmitted to the inter-frame predictor 260 to be used as the motion information of the spatial neighboring block or the motion information of the temporal neighboring block. The memory 360 can store the reconstructed samples of the reconstructed block in the current picture and transmit the reconstructed samples to the intra-frame predictor 331.

[0086] In this document, the embodiments described in the filter 260 , the inter predictor 221 , and the intra predictor 222 of the encoding apparatus 200 may be equally applied to or correspond to the filter 350 , the inter predictor 332 , and the intra predictor 331 .

[0087] The video / image coding method according to the present document can be performed based on the following partition structure. Specifically, the prediction, residual processing ((inverse) transform and (de)quantization), syntax element coding and filtering processes to be described later can be performed according to the CTU and CU (and / or TU and PU) derived based on the partition structure. The block partition process can be performed by the image partitioner 210 of the above-mentioned encoding device, and the partition related information can be processed (encoded) by the entropy encoder 240, and can be transmitted to the decoding device in the form of a bitstream. The entropy decoder 310 of the decoding device can derive the block partition structure of the current picture based on the partition related information obtained from the bitstream, and based on this, a series of processes for image decoding (e.g., prediction, residual processing, block / picture reconstruction and in-loop filtering) can be performed. The CU size and the TU size can be equal to each other, or multiple TUs can exist in the CU area. At the same time, the CU size can generally represent the brightness component (sample) coding block (CB) size. The TU size can generally represent the brightness component (sample) transform block (TB) size. The chroma component (sample) CB or TB size can be derived based on the luminance component (sample) CB or TB size according to the color format (chroma format, for example, 4:4:4, 4:2:2, 4:2:0, etc.) of the picture / image according to the component ratio. The TU size can be derived based on maxTbSize. For example, if the CU size is larger than maxTbSize, multiple TUs (TBs) of maxTbSize can be derived, and transformation / inverse transformation can be performed in units of TUs (TBs). In addition, for example, in the case of applying intra-frame prediction, the intra-frame prediction mode / type can be derived in units of CUs (or CBs), and the derivation of neighboring reference samples and the generation of prediction samples can be performed in units of TUs (or TBs). In this case, one or more TUs (or TBs) may exist in one CU (or CB) area, and in this case, multiple TUs (or TBs) may share the same intra-frame prediction mode / type.

[0088] In addition, when a video / image is compiled according to this document, the image processing unit may have a hierarchical structure. A picture may be divided into one or more tiles, tiles, slices and / or tile groups. A slice may include one or more tiles. A tile may include one or more CTU rows in a tile. A slice may include an integer number of tiles of a picture. A tile group may include one or more tiles. A tile is a rectangular area of ​​a CTU within a specific tile column and a specific tile row in a picture. A tile group may include an integer number of tiles according to a tile raster scan in a picture. A slice header may carry information / parameters that can be applied to a corresponding slice (a block in a slice). If the encoding / decoding device has a multi-core processor, the encoding / decoding process for tiles, slices, tiles and / or tile groups may be processed in parallel. In this document, slices or tile groups may be used interchangeably. That is, a tile group header may be referred to as a slice header. Here, a slice may have one of the slice types including an intra (I) slice, a predicted (P) slice and a bidirectional predicted (B) slice. For prediction of blocks in I slices, inter prediction may not be used, but only intra prediction may be used. Even in this case, the original sample values ​​may be encoded and signaled without prediction. For blocks in P slices, intra prediction or inter prediction may be used, and in the case of using inter prediction, only unidirectional prediction may be used. Meanwhile, for blocks in B slices, intra prediction or inter prediction may be used, and in the case of using inter prediction, maximum reachable bidirectional prediction may be used.

[0089] Depending on the characteristics of the video image (e.g., resolution), or taking into account coding efficiency or parallel processing, the encoder can determine the tile / tile group, tile, slice, maximum and minimum coding unit sizes, and can include the corresponding information or information that can summarize the corresponding information in the bitstream.

[0090] The decoder can obtain information indicating whether a tile / tile group, tile, slice or CTU in a tile of the current picture has been partitioned into multiple coding units. By obtaining (sending) such information only under certain conditions, efficiency can be improved.

[0091] A picture may be divided into a sequence of coding tree units (CTUs). A CTU may correspond to a coding tree block (CTB). In addition, a CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. In other words, for a picture including three sample arrays, a CTU may include an NxN block of luma samples and two corresponding blocks of chroma samples.

[0092] The maximum supported size of a CTU used for coding and prediction may be different from the maximum supported size of a CTU used for transform. For example, the maximum supported size of a luma block in a CTU may be 128x128.

[0093] The CTU may be divided into CUs based on a quadtree (QT) structure. The quad-tree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics. Meanwhile, in this document, the CTU may be divided based on the partitioning of a multi-type tree structure including not only a quadtree but also a binary tree (BT) and a ternary tree (TT). In the following, the QTBT structure may include a partitioning structure based on a quadtree and a binary tree, and the QTBTTT may include a partitioning structure based on a quadtree, a binary tree, and a ternary tree. In addition, the QTBT structure may include a partitioning structure based on a quadtree, a binary tree, and a ternary tree. In the coding tree structure, the CU may have a square or rectangular shape. The CTU may be first partitioned into a quadtree structure. Thereafter, the leaf nodes of the quadtree structure may be further partitioned by a multi-type tree structure. For example, four partitioning types may be schematically included in the multi-type tree structure.

[0094] The four types of partitioning may include vertical binary partitioning (SPLIT_BT_VER), horizontal binary partitioning (SPLIT_BT_HOR), vertical trifurcated partitioning (SPLIT_TT_VER), and horizontal trifurcated partitioning (SPLIT_TT_HOR). The leaf nodes of the multi-type tree structure may be referred to as CUs. Such CUs may be used for prediction and transform processes. In this document, CUs, PUs, and TUs may generally have the same block size. However, if the maximum supported transform length is less than the width or height of the color component of the CU, the CU and TU may have different block sizes.

[0095] At the same time, as described above, a picture may include multiple slices, and a slice may include a slice header and slice data. In this case, a picture header may be further added for multiple slices in a picture (a set of slice headers and slice data). The picture header (picture header syntax) may include information / parameters that can be commonly applied to the picture. The slice header (slice header syntax) may include information / parameters that can be commonly applied to the slice. An adaptive parameter set (APS) or a picture parameter set (PPS) may include information / parameters that can be commonly applied to one or more pictures. A sequence parameter set (SPS) may include information / parameters that can be commonly applied to one or more sequences. A video parameter set (VPS) may include information / parameters that can be commonly applied to multiple layers. A decoding parameter set (DPS) may include information / parameters that can be commonly applied to the overall video. The DPS may include information / parameters related to the concatenation of a coded video sequence (CVS).

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

[0097] In addition, for example, information on the division and configuration of tiles / tile groups / tiles / slices may be configured by the encoding end through a higher layer syntax and may be transmitted to the decoding device in the form of a bitstream.

[0098] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the quantized transform coefficient may be referred to as a transform coefficient. When transform / inverse transform is omitted, the transform coefficient may be referred to as a coefficient or a residual coefficient or may still be referred to as a transform coefficient for consistency of expression.

[0099] In this document, the quantized transform coefficient and the transform coefficient may be referred to as a transform coefficient and a scaled transform coefficient, respectively. In this case, the residual information may include information about the transform coefficient, and the information about the transform coefficient may be signaled by residual coding syntax. The transform coefficient may be derived based on the residual information (or information about the transform coefficient), and the scaled transform coefficient may be derived by inverse transforming (scaling) the transform coefficient. The residual sample may be derived based on the inverse transform (transform) of the scaled transform coefficient. This may also be applied / expressed in other parts of this document.

[0100] As the above content, the encoding device can perform various encoding methods such as exponential Golomb, context adaptive variable length coding (CAVLC) and context adaptive binary arithmetic coding (CABAC). In addition, the decoding device can decode the information in the bit stream based on a coding method such as exponential Golomb, CAVLC or CABAC, and can output the value of the syntax element necessary for image reconstruction and the quantized value of the transform coefficient for the residual. For example, the above coding method can be performed as in the content to be described later.

[0101] In this document, intra prediction may refer to a prediction of a prediction sample for a current block based on a reference sample in a picture to which the current block belongs (hereinafter, the current picture). In the case where intra prediction is applied to the current block, neighboring reference samples to be used for intra prediction of the current block may be derived. The neighboring reference samples of the current block may include samples adjacent to the left boundary of the current block of size nWxnH and a total of 2xnH samples adjacent to the left bottom, samples adjacent to the top boundary of the current block and a total of 2xnW samples adjacent to the right top, and one sample adjacent to the left top of the current block. In addition, the neighboring reference samples of the current block may include multiple columns of top neighboring samples and multiple rows of left neighboring samples. In addition, the neighboring reference samples of the current block may include a total of nH samples adjacent to the right boundary of the current block of size nWxnH, a total of nW samples adjacent to the bottom boundary of the current block, and one sample adjacent to the right bottom of the current block.

[0102] However, some neighboring reference samples of the current block may not have been decoded or enabled. In this case, the decoding device may configure the neighboring reference samples to be used for prediction by replacing the unenabled samples with enabled samples. In addition, the neighboring reference samples to be used for prediction may be configured by interpolation of enabled samples.

[0103] If the neighboring reference samples are derived, (i) the prediction samples can be summarized based on the average or interpolation of the neighboring reference samples of the current block, and (ii) the prediction samples can be summarized based on the reference samples existing in the specific (prediction) direction of the prediction samples among the neighboring reference samples of the current block. The case of (i) can be called a non-directional mode or a non-angle mode, and the case of (ii) can be called a directional mode or an angle mode. In addition, the prediction samples can be generated by interpolating the first neighboring samples and the second neighboring samples located in the direction opposite to the prediction direction of the intra-frame prediction mode of the current block among the neighboring reference samples. The above situation can be called linear interpolation intra-frame prediction (LIP). In addition, the chrominance prediction samples can be generated based on the luminance samples by using a linear model. This situation can be called LM mode. In addition, the temporary prediction samples of the current block can be derived based on the filtered neighboring reference samples, and the prediction samples of the current block can be derived by calculating the weighted sum of the temporary prediction samples and at least one reference sample derived according to the intra-frame prediction mode among the existing neighboring reference samples (i.e., the unfiltered neighboring reference samples). The above situation may be referred to as direction-dependent intra prediction (PDPC). In addition, the prediction sample may be derived by using the reference sample line with the highest prediction accuracy among the neighboring multiple reference sample lines of the current block in the prediction direction through the selection of the corresponding line, and in this case, the intra prediction coding may be performed in a method for indicating (signaling) the reference sample line used to the decoding device. The above situation may be referred to as multi-reference line (MRL) intra prediction or MRL-based intra prediction. In addition, intra prediction may be performed based on the same intra prediction mode by dividing the current block into vertical sub-partitions or horizontal sub-partitions, and neighboring reference samples may be derived and used in units of sub-partitions. That is, in this case, since the intra prediction mode for the current block is equally applied to the sub-partitions, and neighboring reference samples are derived and used in units of sub-partitions, the intra prediction performance may be improved in some cases. Such a prediction method may be referred to as intra sub-partition (ISP) or ISP-based intra prediction. The above intra prediction method may be referred to as an intra prediction type to distinguish it from an intra prediction mode. The intra prediction type may be referred to by various terms such as an intra prediction technique or an additional intra prediction mode. For example, the intra prediction type (or additional intra prediction mode) may include at least one of the above-mentioned LIP, PDPC, MRL, or ISP. A general intra prediction method that excludes a specific intra prediction type such as LIP, PDPC, MRL, or ISP may be referred to as a normal intra prediction type. A normal intra prediction type may generally be applied when a specific intra prediction type is not applied, and prediction may be performed based on the above-mentioned intra prediction mode. At the same time, post filtering may be performed on the derived prediction sample as needed.

[0104] Specifically, the intra prediction process may include the steps of determining the intra prediction mode / type, deriving neighboring reference samples, and deriving prediction samples based on the intra prediction mode / type. In addition, a post-filtering step may be performed on the derived prediction samples as required.

[0105] Meanwhile, in addition to the above-mentioned prediction types, affine linear weighted intra prediction (ALWIP) may also be used. ALWIP may be referred to as linear weighted intra prediction (LWIP) or matrix weighted intra prediction (MIP) or matrix-based intra prediction. In the case where MIP is applied to the current block, i) by using neighboring reference samples to which an averaging process has been performed, ii) a matrix-vector multiplication process may be performed, and iii) as required, a prediction sample for the current block may be derived by further performing horizontal / vertical interpolation. The intra prediction mode used for MIP may be configured differently from the above-mentioned LIP, PDPC, MRL or ISP intra prediction, or the intra prediction mode may be used for normal intra prediction. The intra prediction mode for MIP may be referred to as MIP intra prediction mode, MIP prediction mode or MIP mode. For example, depending on the intra prediction mode for MIP, matrices and offsets for matrix-vector multiplication may be configured differently. Here, the matrix may be referred to as a (MIP) weighting matrix, and the offset may be referred to as a (MIP) offset vector or a (MIP) bias vector.

[0106] Illustratively, for example, a video / image encoding process based on intra-frame prediction may include the following.

[0107] Figure 4 An example of a video / image encoding method based on intra-frame prediction is illustrated, and Figure 5 An intra predictor in an encoding device is schematically illustrated.

[0108] refer to Figure 4 and Figure 5, S400 may be performed by the intra predictor 222 of the encoding device, and S410 to S430 may be performed by the residual processor 230 of the encoding device. Specifically, S410 may be performed by the subtractor 231 of the encoding device, S420 may be performed by the transformer 232 and the quantizer 233 of the encoding device, and S430 may be performed by the dequantizer 234 and the inverse transformer 235 of the encoding device. In S400, the prediction information may be derived by the intra predictor 222, and may be encoded by the entropy encoder 240. Through S410 and S420, residual information may be derived, and the residual information may be encoded by the entropy encoder 240. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficient for the residual sample. As described above, the residual sample may be derived as a transform coefficient by the transformer 232 of the encoding device, and the transform coefficient may be derived as a quantized transform coefficient by the quantizer 233. The information about the quantized transform coefficients may be encoded by the entropy encoder 240 through a residual coding process.

[0109] The encoding device performs intra prediction for the current block (S400). The encoding device may derive an intra prediction mode for the current block, derive neighboring reference samples of the current block, and generate prediction samples in the current block based on the intra prediction mode and the neighboring reference samples. Here, the process of determining the intra prediction mode, deriving neighboring reference samples, and generating prediction samples may be performed simultaneously, and any one process may be performed before another process. For example, the intra predictor 222 of the encoding device may include a prediction mode / type determiner 222_1, a reference sample deriver 222_2, and a prediction sample deriver 222_3, and the prediction mode / type determiner 222_1 may determine the intra prediction mode / type for the current block, the reference sample deriver 222_2 may derive neighboring reference samples of the current block, and the prediction sample deriver 222_3 may derive motion samples of the current block. At the same time, in the case of performing a prediction sample filtering process to be described later, the intra predictor 222 may also include a prediction sample filter (not shown). The encoding device may determine a mode to be applied to the current block among a plurality of intra prediction modes.

[0110] The encoding apparatus may compare RD costs of intra prediction modes, and may determine an optimal intra prediction mode for a current block.

[0111] At the same time, the encoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post-filtering. Some or all prediction samples may be filtered by the prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.

[0112] The encoding apparatus derives residual samples for the current block based on the prediction samples (S410). The encoding apparatus may compare the prediction samples with the original samples of the current block based on a phase and may derive the residual samples.

[0113] The encoding device may derive quantized transform coefficients by transforming / quantizing the residual samples (S420), and then may derive (modified) residual samples by performing dequantization / inverse transform of the quantized transform coefficients again (S430). The reason for performing dequantization / inverse transform again after transforming / quantizing is to derive the same residual samples as the residual samples derived by the decoding device as described above.

[0114] The encoding apparatus may generate a reconstructed block including the reconstructed samples of the current block based on the prediction samples and the (modified) residual samples (S440). Based on the reconstructed block, a reconstructed picture of the current picture may be generated.

[0115] As described above, the encoding device can encode image information including prediction information about intra prediction (e.g., prediction mode information indicating a prediction mode) and residual information about intra / residual samples, and can output the encoded image information in the form of a bitstream. The residual information may include residual coding syntax. The encoding device may derive quantized transform coefficients by transforming / quantizing the residual samples. The residual information may include information about the quantized transform coefficients.

[0116] Illustratively, for example, a video / image decoding process based on intra-frame prediction may include the following.

[0117] Figure 6 An example of a video / image decoding method based on intra-frame prediction is illustrated, and Figure 7 An intra predictor in a decoding device is schematically illustrated.

[0118] The decoding device may perform operations corresponding to those performed by the encoding device.

[0119] refer to Figure 6 and Figure 7 , S600 to S610 may be performed by the intra predictor 331 of the decoding device, and the prediction information of S600 and the residual information of S630 may be obtained from the bitstream by the entropy decoder 310 of the decoding device. The residual processor 320 of the decoding device may derive residual samples for the current block based on the residual information. Specifically, the dequantizer 321 of the residual processor 320 may derive the transform coefficient by performing dequantization according to the quantized transform coefficient derived based on the residual information, and the inverse transformer 322 of the residual processor may derive the residual sample for the current block by performing dequantization on the transform coefficient. S640 may be performed by the adder 340 or the reconstructor of the decoding device.

[0120] Specifically, the decoding device may derive an intra prediction mode for the current block based on the received prediction information (S600). The decoding device may derive neighboring reference samples of the current block (S610). The decoding device generates prediction samples in the current block by performing intra prediction based on the intra prediction mode and the neighboring reference samples (S620). In this case, the decoding device may perform a prediction sample filtering process. Prediction sample filtering may be referred to as post filtering. Some or all prediction samples may be filtered by a prediction sample filtering process. In some cases, the prediction sample filtering process may be omitted.

[0121] The decoding device generates a residual sample for the current block based on the received residual information (S630). The decoding device may generate a reconstructed sample for the current block based on the predicted sample and the residual sample, and may derive a reconstructed block including the reconstructed sample (S640). A reconstructed picture for the current picture may be generated based on the reconstructed block.

[0122] Here, the intra predictor 331 of the decoding device may include a prediction mode / type determiner 331_1, a reference sample deriver 331_2, and a prediction sample deriver 331_3. The prediction mode / type determiner 331_1 may determine the intra prediction mode for the current block based on the prediction mode information obtained by the entropy decoder 310 of the decoding device, the reference sample deriver 331_2 may derive the neighboring reference samples of the current block, and the prediction sample deriver 331_3 may derive the prediction sample of the current block. Meanwhile, in the case of performing the above-mentioned prediction sample filtering process, the intra predictor 331 may further include a prediction sample filter (not shown).

[0123] The prediction information may include intra-frame prediction mode information and / or intra-frame prediction type information. For example, the intra-frame prediction mode information may include flag information (e.g., intra_luma_mpm_flag) indicating whether the most probable mode (MPM) or the residual mode is applied to the current block, and if MPM is applied to the current block, the prediction mode information may also include index information (e.g., intra_luma_mpm_idx) indicating one of the intra-frame prediction mode candidates (MPM candidates). The intra-frame prediction mode candidates (MPM candidates) may constitute an MPM candidate list or an MPM list. In addition, in the case where MPM is not applied to the current block, the intra-frame prediction mode information may also include residual mode information (e.g., intra_luma_mpm_remainder) indicating one of the remaining intra-frame prediction modes excluding the intra-frame prediction mode candidates (MPM candidates). The decoding device may determine the intra-frame prediction mode of the current block based on the intra-frame prediction mode information. For the above-mentioned MIP, a separate MPM list may be configured.

[0124] In addition, the intra prediction type information can be implemented in various forms. As an example, the intra prediction type information may include intra prediction type index information indicating one of the intra prediction types. As another example, the intra prediction type information may include at least one of the following: reference sample line information indicating whether MRL is applied to the current block and which reference sample line is used when MRL is applied (e.g., intra_luma_ref_idx), ISP flag information indicating whether ISP is applied to the current block (e.g., intra_subpartitions_mode_flag), ISP type information indicating the partition type of the sub-partition when ISP is applied (e.g., intra_subpartitions_split_flag), flag information indicating whether PDCP is applied, or flag information indicating whether LIP is applied. In addition, the intra prediction type information may include a MIP flag indicating whether MIP is applied to the current block.

[0125] The intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by the coding method described in this document. For example, the intra-frame prediction mode information and / or the intra-frame prediction type information may be encoded / decoded by entropy coding (e.g., CABAC or CAVLC) based on truncated (rice) binary code.

[0126] Meanwhile, schematically, for example, a video / image encoding process based on inter-frame prediction may include the following.

[0127] Figure 8 An example of a video / image encoding method based on inter-frame prediction is illustrated, and Fig. 9 An inter-frame predictor in an encoding device is schematically illustrated.

[0128] refer to Figure 8 and Fig. 9, the encoding device performs inter prediction for the current block (S800). The encoding device may derive the inter prediction mode and motion information of the current block, and may generate a prediction sample of the current block. Here, the process of determining the inter prediction mode, deriving the motion information, and generating the prediction sample may be performed simultaneously, and any one process may be performed before the other process. For example, the inter predictor 221 of the encoding device may include a prediction mode determiner 221_1, a motion information deriver 221_2, and a prediction sample deriver 221_3, and the prediction mode determiner 221_1 may determine the prediction mode for the current block, the motion information deriver 221_2 may derive the motion information of the current block, and the prediction sample deriver 221_3 may derive the prediction sample for the current block. For example, the inter predictor of the encoding device may search for a block similar to the current block in a specific area (search area) of the reference picture through motion estimation, and may derive a reference block having a difference with the current block that is a minimum value or equal to or lower than a predetermined level. Based on this, a reference picture index indicating the reference picture where the reference block is located is derived, and a motion vector is derived based on the position difference between the reference block and the current block. The encoding device may determine a mode applied for the current block among various prediction modes. The encoding device may compare rate-distortion (RD) costs of various prediction modes and may determine an optimal prediction mode for the current block.

[0129] For example, in the case where a skip mode or a merge mode is applied to the current block, the encoding device may configure a merge candidate list, and may derive a reference block having a difference with the current block that is a minimum value or equal to or lower than a predetermined level among the reference blocks indicated by the merge candidates included in the merge candidate list. In this case, a merge candidate related to the derived reference block may be selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding device. The motion information of the current block may be derived by using the motion information of the selected merge candidate.

[0130] As another example, in the case where the (A) MVP mode is applied to the current block, the encoding device may configure the (A) MVP candidate list, and may use the motion vector of the MVP candidate selected from the motion vector predictor (MVP) 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 the MVP candidate having the 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) may be derived, which is the difference obtained by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD may be signaled to the decoding device. In addition, in the case where the (A) MVP mode is applied, the value of the reference picture index may be configured as reference picture index information, and may be separately signaled to the decoding device.

[0131] The encoding apparatus may derive residual samples based on the prediction samples (S810). The encoding apparatus may derive residual samples by comparing the prediction samples with original samples of the current block.

[0132] The encoding device encodes the image information including prediction information and residual information (S820). The encoding device can output the encoded image information in the form of a bitstream. The prediction information may be information related to the prediction process, and may include information related to the prediction mode information (e.g., a skip flag, a merge flag, or a mode index) and the motion information. The information about the motion information may include candidate selection information (e.g., a merge index, an mvp flag, or an mvp index) as information for deriving a motion vector. In addition, the information about the motion information may include information about the above-mentioned MVD and / or reference picture index information. In addition, the information about the motion information may include information indicating whether L0 prediction, L1 prediction, or bidirectional prediction is applied. The residual information is information about the residual sample. The residual information may include information about the quantized transform coefficients used for the residual sample.

[0133] The output bitstream may be stored in a (digital) storage medium to be transmitted to a decoding device, or may be transmitted to a decoding device over a network.

[0134] At the same time, as described above, the encoding device can generate a reconstructed picture (including a reconstructed sample and a reconstructed block) based on the reference sample and the residual sample. This is for the encoding device to derive the same prediction result as the prediction result performed in the decoding device, and by doing so, the coding efficiency can be improved. Therefore, the encoding device can store the reconstructed picture (or reconstructed sample or reconstructed block) in a memory, and can use the reconstructed picture as a reference picture for inter-frame prediction. As described above, the in-loop filtering process can be further applied to the reconstructed picture.

[0135] Illustratively, for example, a video / image decoding process based on inter-frame prediction may include the following.

[0136] Fig.10 An example of a video / image decoding method based on inter-frame prediction is illustrated, and Fig.11 An inter-frame predictor in a decoding device is schematically illustrated.

[0137] The decoding device may perform an operation corresponding to the operation performed by the encoding device. The decoding device may perform prediction on the current block based on the received prediction information, and may derive a prediction sample.

[0138] Specifically, refer to Fig.10 and Fig.11 The decoding device may determine a prediction mode for a current block based on prediction information received from a bitstream (S1000). The decoding device may determine which inter-frame prediction mode to apply to the current block based on prediction mode information in the prediction information.

[0139] For example, it may be determined whether to apply a merge mode to the current block or determine the (A)MVP mode based on a merge flag. In addition, one of various inter prediction mode candidates may be selected based on a merge index. The inter prediction mode candidate may include various inter prediction modes such as a skip mode, a merge mode, and / or a (A)MVP mode.

[0140] The decoding device derives the motion information of the current block based on the determined inter prediction mode (S1010). For example, in the case where the skip mode or merge mode is applied to the current block, the decoding device may configure a merge candidate list to be described later, and may select one of the 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 current block may be derived by using the motion information of the selected merge candidate. The motion information of the selected merge candidate may be used as the motion information of the current block.

[0141] As another example, in the case where the (A)MVP mode is applied to the current block, the decoding device may configure the (A)MVP candidate list, and may use the motion vector of the motion vector predictor (mvp) candidate selected from among the motion vector predictor (mvp) candidates included in the (A)MVP candidate list. 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 the information about the MVD, and the motion vector of the current block may be derived based on the mvp and MVD of the current block. In addition, the reference picture index of the current block may be derived based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter-frame prediction of the current block.

[0142] Meanwhile, the motion information of the current block may be derived without the candidate list configuration, and in this case, the above-mentioned candidate list configuration may be omitted.

[0143] The decoding device may generate a prediction sample for the current block based on the motion information of the current block (S1020). In this case, the reference picture may be derived based on the reference picture index of the current block, and the motion vector of the current block may be derived by using the sample of the reference block indicated in the reference picture to derive the prediction sample of the current block. In this case, the prediction sample filtering process to be described later may be further performed on all or some of the prediction samples of the current block as needed.

[0144] For example, the inter-frame predictor 332 of the decoding device may include a prediction mode determiner 332_1, a motion information exporter 332_2 and a prediction sample exporter 332_3, and the prediction mode determiner 332_1 can determine the prediction mode for the current block based on the received prediction mode information, the motion information exporter 332_2 can export the motion information (motion vector and / or reference picture index) of the current block based on the information about the received motion information, and the prediction sample exporter 332_3 can export the prediction sample of the current block.

[0145] The decoding device generates residual samples for the current block based on the received residual information (S1030). The decoding device may generate reconstructed samples for the current block based on the prediction samples and the residual samples (S1040). Thereafter, the in-loop filtering process may be further applied to the reconstructed picture as described above.

[0146] Meanwhile, as described above, high-level syntax (HLS) can be compiled / signaled for video / image coding. A coded picture can consist of one or more slices. Parameters describing the coded picture are signaled in the picture header, and parameters describing the slice are signaled in the slice header. The picture header is carried in the form of the NAL unit itself. The slice header is present at the beginning of the NAL unit including the payload of the slice (i.e., the slice data).

[0147] Each picture is associated with a picture header. A picture may be composed of different types of slices (intra-coded slices (ie, I slices) and inter-coded slices (ie, P slices and B slices)). Therefore, the picture header may include syntax elements necessary for intra slices of a picture and inter slices of a picture. For example, the syntax of the picture header may be as shown in Table 1 below.

[0148] [Table 1]

[0149]

[0150]

[0151]

[0152]

[0153] Among the syntax elements of Table 1, the syntax element including "intra_slice" in its title (e.g., pic_log2_diff_min_qt_min_cb_intra_slice_luma) is a syntax element being used in the I slice of the corresponding picture, and the syntax elements related to the syntax elements including "inter_slice" in its title (e.g., pic_log2_diff_min_qt_min_cb_inter_slice, mvp, mvd, mmvd, and merge) (e.g., pic_temporal_mvp_enabled_flag) are syntax elements being used in the P slice and / or B slice of the corresponding picture.

[0154] That is, the picture header includes all syntax elements necessary for intra-coded slices and syntax elements necessary for inter-coded slices for each single picture. However, this is useful only with respect to a picture including mixed-type slices (a picture including all intra-coded slices and inter-coded slices). In general, since a picture does not include mixed-type slices (i.e., a general picture includes only intra-coded slices or only inter-coded slices), it is not necessary to perform signaling of all data (syntax elements used in intra-coded slices and syntax elements used in inter-coded slices).

[0155] The following drawings have been prepared to illustrate detailed examples of this document. Since the names of detailed devices or the names of detailed signals / information are exemplarily presented, the technical features of this document are not limited to the detailed names used in the following drawings.

[0156] This document provides the following methods to solve the above problems. The items of each method can be applied separately or in combination.

[0157] 1. A flag in the picture header that can be used to signal whether the syntax elements required to specify intra-coded slices only are present in the picture header. This flag can be called intra_signaling_present_flag.

[0158] a) When intra_signaling_present_flag is equal to 1, the syntax elements required for intra-coded slices are present in the picture header. Likewise, when intra_signaling_present_flag is equal to 0, the syntax elements required for intra-coded slices are not present in the picture header.

[0159] b) When the picture associated with the picture header has at least one intra-coded slice, the value of intra_signaling_present_flag in the picture header shall be equal to 1.

[0160] c) The value of intra_signaling_present_flag in the picture header may be equal to 1 even when the picture associated with the picture header does not have intra-coded slices.

[0161] d) The value of intra_signaling_present_flag should be set equal to 1 when a picture has one or more sub-pictures containing only intra-coded slices and it is expected that the one or more sub-pictures can be extracted and merged with a sub-picture containing one or more inter-coded slices.

[0162] 2. A flag in the picture header that can be used to signal whether the syntax elements required to specify inter-coded slices are present in the picture header. This flag can be called inter_signaling_present_flag.

[0163] a) When inter_signaling_present_flag is equal to 1, the syntax elements required for inter-coded slices are present in the picture header. Similarly, when inter_signaling_present_flag is equal to 0, the syntax elements required for inter-coded slices are not present in the picture header.

[0164] b) The value of inter_signaling_present_flag in the picture header shall be equal to 1 when the picture associated with the picture header has at least one inter-coded slice.

[0165] c) Even when the picture associated with the picture header does not have inter-coded slices, the value of inter_signaling_present_flag in the picture header may be equal to 1.

[0166] d) The value of inter_signaling_present_flag should be set equal to 1 when a picture has one or more sub-pictures containing only inter-coded slices and it is expected that the one or more sub-pictures can be extracted and merged with a sub-picture containing one or more intra-coded slices.

[0167] 3. The above flags (intra_signaling_present_flag and inter_signaling_present_flag) may be signaled in other parameter sets such as picture parameter set (PPS) instead of in the picture header.

[0168] 4. Another alternative for signaling the above flags may be as follows.

[0169] a) Two variables IntraSignalingPresentFlag and InterSignalingPresentFlag may be defined to specify whether syntax elements required for intra-coded slices and syntax elements required for inter-coded slices are respectively present in the picture header.

[0170] b) A flag in the picture header called mixed_slice_types_present_flag may be signaled. When mixed_slice_types_present_flag is equal to 1, the values ​​of IntraSignalingPresentFlag and InterSignalingPresentFlag are set equal to 1.

[0171] c) When mixed_slice_types_present_flag is equal to 0, an additional flag called intra_slice_only_flag may be signaled in the picture header and the following applies. If intra_slice_only_flag is equal to 1, the value of IntraSignalingPresentFlag is set to 1 and the value of InterSignalingPresentFlag is set to 0. Otherwise, the value of IntraSignalingPresentFlag is set equal to 0 and the value of InterSignalingPresentFlag is set equal to 1.

[0172] 5. A fixed-length syntax element in the picture header may be signaled, which may be called slice_types_idc, specifying the following information.

[0173] a) Whether the picture associated with the picture header contains intra-coded slices only. For this type, the value of slice_types_idc can be set equal to 0.

[0174] b) Whether the picture associated with the picture header contains only inter-coded slices. The value of slice_types_idc may be set equal to 1.

[0175] c) Whether a picture associated with a picture header can contain intra-coded slices and inter-coded slices. The value of slice_types_idc may be set equal to 2.

[0176] Note that when slice_types_idc has a value equal to 2, it is still possible that a picture contains only intra-coded slices or only inter-coded slices.

[0177] d) Other values ​​of slice_types_idc may be reserved for future use.

[0178] 6. For the slice_types_idc semantics in the picture header, the following constraints may be further specified.

[0179] a) When the picture associated with the picture header has one or more intra-coded slices, the value of slice_types_idc shall not be equal to 1.

[0180] b) When the picture associated with the picture header has one or more inter-coded slices, the value of slice_types_idc shall not be equal to 0.

[0181] 7. slice_types_idc may be signaled in other parameter sets such as picture parameter set (PPS) instead of in the picture header.

[0182] As an embodiment, the encoding device and the decoding device may use the following Table 2 and Table 3 as the syntax and semantics of the picture header based on Methods 1 and 2 described above.

[0183] [Table 2]

[0184]

[0185]

[0186] [Table 3]

[0187]

[0188]

[0189] Referring to Table 2 and Table 3, if the value of intra_signaling_present_flag is 1, this may indicate that a syntax element used only in an intra-coded slice is present in the picture header. If the value of intra_signaling_present_flag is 0, this may indicate that a syntax element used only in an intra-coded slice is not present in the picture header. Therefore, if a picture associated with a picture header includes one or more slices having a slice type of I slice, the value of intra_signaling_present_flag becomes 1. In addition, if a picture associated with a picture header does not include a slice having a slice type of I slice, the value of intra_signaling_present_flag becomes 0.

[0190] If the value of inter_signaling_present_flag is 1, this may indicate that a syntax element used only in an inter-coded slice is present in the picture header. If the value of inter_signaling_present_flag is 0, this may indicate that a syntax element used only in an inter-coded slice is not present in the picture header. Therefore, if the picture associated with the picture header includes one or more slices having a slice type of P slice and / or B slice, the value of intra_signaling_present_flag becomes 1. In addition, if the picture associated with the picture header does not include a slice having a slice type of P slice and / or B slice, the value of intra_signaling_present_flag becomes 0.

[0191] Furthermore, in case a picture includes one or more sub-pictures including intra-coded slices that can be merged with one or more sub-pictures including inter-coded slices, the value of intra_signaling_present_flag and the value of inter_signaling_present_flag are both set to 1.

[0192] For example, in the case where only inter-coded slices (P slices and / or B slices) are included in the current picture, the encoding device may determine the value of inter_signaling_present_flag to be 1 and the value of intra_signaling_present_flag to be 0.

[0193] As another example, in the case where only intra-coded slices (I slices) are included in the current picture, the encoding apparatus may determine the value of inter_signaling_present_flag to be 0 and the value of intra_signaling_present_flag to be 1.

[0194] As still another example, in a case where at least one inter-coded slice or at least one intra-coded slice is included in the current picture, the encoding apparatus may determine the value of inter_signaling_present_flag and the value of intra_signaling_present_flag to be 1 in total.

[0195] In the case where the value of intra_signaling_present_flag is determined to be 0, the encoding device may generate image information in which syntax elements necessary for intra slices are excluded or omitted and only syntax elements necessary for inter slices are included in the picture header. If the value of inter_signaling_present_flag is determined to be 0, the encoding device may generate image information in which syntax elements necessary for inter slices are excluded or omitted and only syntax elements necessary for intra slices are included in the picture header.

[0196] If the value of inter_signaling_present_flag obtained from the picture header in the image information is 1, the decoding device can determine that at least one inter-coded slice is included in the corresponding picture, and can parse the syntax elements necessary for intra-frame prediction from the picture header. If the value of inter_signaling_present_flag is 0, the decoding device can determine that only intra-coded slices are included in the corresponding picture, and can parse the syntax elements necessary for intra-frame prediction from the picture header. If the value of intra_signaling_present_flag obtained from the picture header in the image information is 1, the decoding device can determine that at least one intra-coded slice is included in the corresponding picture, and can parse the syntax elements necessary for intra-frame prediction from the picture header. If the value of intra_signaling_present_flag is 0, the decoding device can determine that only inter-coded slices are included in the corresponding picture, and can parse the syntax elements necessary for inter-frame prediction from the picture header.

[0197] As another embodiment, the encoding device and the decoding device may use the following Table 4 and Table 5 as the syntax and semantics of the picture header based on the above-mentioned methods 5 and 6.

[0198] [Table 4]

[0199]

[0200]

[0201] [Table 5]

[0202]

[0203]

[0204] Referring to Table 4 and Table 5, if the value of slice_types_idc is 0, this indicates that the types of all slices in the picture associated with the picture header are I slices. In the case where the value of slice_types_idc is 1, this indicates that the types of all slices in the picture associated with the picture header are P or B slices. In the case where the value of slice_types_idc is 2, this indicates that the slice types of the slices in the picture associated with the picture header are I, P, and / or B slices.

[0205] For example, if only intra-coded slices are included in the current picture, the encoding device may determine the value of slice_types_idc to be 0, and may include syntax elements necessary for decoding only intra-frame slices in the picture header. That is, in this case, syntax elements necessary for inter-frame slices are not included in the picture header.

[0206] As another example, if only inter-coded slices are included in the current picture, the encoding device may determine the value of slice_types_idc to be 1, and may include syntax elements necessary for decoding only inter-frame slices in the picture header. That is, in this case, syntax elements necessary for intra-frame slices are not included in the picture header.

[0207] As another example, if at least one inter-coded slice and at least one intra-coded slice are included in the current picture, the encoding device may determine the value of slice_types_idc to be 2, and may include all of the syntax elements required for decoding of the inter-frame slices and the syntax elements required for decoding of the intra-frame slices in the picture header.

[0208] If the value of slice_types_idc obtained from the picture header in the image information is 0, the decoding device can determine that only intra-coded slices are included in the corresponding picture, and can parse the syntax elements necessary for decoding of intra-coded slices from the picture header. If the value of slice_types_idc is 1, the decoding device can determine that only inter-coded slices are included in the corresponding picture, and can parse the syntax elements necessary for decoding of inter-coded slices from the picture header. If the value of slice_types_idc is 2, the decoding device can determine that at least one intra-coded slice and at least one inter-coded slice are included in the corresponding picture, and can parse the syntax elements necessary for decoding of intra-coded slices and the syntax elements necessary for decoding of inter-coded slices from the picture header.

[0209] As another embodiment, the encoding device and the decoding device may use a flag indicating whether the picture includes intra-coded slices and inter-coded slices. If the flag is true, that is, if the value of the flag is 1, all intra-frame slices and inter-frame slices may be included in the corresponding picture. In this case, the following Tables 6 and 7 may be used as the syntax and semantics of the picture header.

[0210] [Table 6]

[0211]

[0212]

[0213]

[0214] [Table 7]

[0215]

[0216] Referring to Tables 6 and 7, if the value of mixed_slice_signaling_present_flag is 1, this may mean that a picture associated with a corresponding picture header has one or more slices of different types. If the value of mixed_slice_signaling_present_flag is 0, this may mean that a picture associated with a corresponding picture header includes data associated with only a single slice type.

[0217] The variables InterSignalingPresentFlag and IntraSignalingPresentFlag respectively indicate whether the syntax elements required for intra-coded slices and the syntax elements required for inter-coded slices are present in the corresponding picture header. If the value of mixed_slice_signaling_present_flag is 1, the values ​​of IntraSignalingPresentFlag and InterSignalingPresentFlag are set to 1.

[0218] If the value of intra_slice_only_flag is set to 1, this means that the value of IntraSignalingPresentFlag is set to 1, and the value of InterSignalingPresentFlag is set to 0. If the value of intra_slice_only_flag is set to 0, this means that the value of IntraSignalingPresentFlag is set to 0, and the value of InterSignalingPresentFlag is set to 1.

[0219] If the picture associated with the picture header has one or more slices of slice type I slice, the value of IntraSignalingPresentFlag is set to 1. If the picture associated with the picture header has one or more slices of slice type P or B slice, the value of InterSignalingPresentFlag is set to 1.

[0220] For example, if only intra-coded slices are included in the current picture, the encoding device may determine the value of mixed_slice_signaling_present_flag to be 0, may determine the value of intra_slice_only_flag to be 1, may determine the value of IntraSignalingPresentFlag to be 1, and may determine the value of InterSignalingPresentFlag to be 0.

[0221] As another example, if only inter-coded slices are included in the current picture, the encoding device may determine the value of mixed_slice_signaling_present_flag to 0, may determine the value of intra_slice_only_flag to 0, may determine the value of IntraSignalingPresentFlag to 0, and may determine the value of InterSignalingPresentFlag to 1.

[0222] As yet another example, if at least one intra-coded slice and at least one inter-coded slice are included in the current picture, the encoding apparatus may determine the values ​​of mixed_slice_signaling_present_flag, IntraSignalingPresentFlag, and InterSignalingPresentFlag to be 1, respectively.

[0223] If the value of mixed_slice_signaling_present_flag obtained from the picture header in the image information is 0, the decoding device can determine that only intra-coded slices or inter-coded slices are included in the corresponding picture. In this case, if the value of intra_slice_only_flag obtained from the picture header is 0, the decoding device can parse the syntax elements necessary for decoding of only inter-coded slices from the picture header. If the value of intra_slice_only_flag is 1, the decoding device can parse the syntax elements necessary for decoding of only intra-coded slices from the picture header.

[0224] If the value of mixed_slice_signaling_present_flag obtained from the picture header in the image information is 1, the decoding device can determine that at least one intra-coded slice and at least one inter-coded slice are included in the corresponding picture, and can parse the syntax elements necessary for decoding the inter-coded slice and the syntax elements necessary for decoding the intra-coded slice from the picture header.

[0225] Fig.12 and Fig.13 An example of a video / image encoding method and related components according to an embodiment of this document is schematically illustrated.

[0226] Fig.12 The video / image encoding method disclosed in Figure 2 and Fig.13 The (video / image) encoding device 200 disclosed in is executed. Specifically, for example, Fig.12 S1200 and S1210 may be performed by the predictor 220 of the encoding apparatus 200 , and S1220 and S1230 may be performed by the entropy encoder 240 of the encoding apparatus 200 . Fig.12 The video / image encoding method disclosed in may include the above-mentioned embodiments of this document.

[0227] Specifically, refer to Fig.12 and Fig.13 , the predictor 220 of the encoding device may determine a prediction mode of a current block in a current picture (S1200). The current picture may include a plurality of slices. The predictor 220 of the encoding device may generate a prediction sample (prediction block) of the current block based on the prediction mode (S1210). Here, the prediction mode may include an inter-prediction mode and an intra-prediction mode. If the prediction mode of the current block is an inter-prediction mode, the prediction sample may be generated by the inter-predictor 221 of the predictor 220. If the prediction mode of the current block is an intra-prediction mode, the prediction sample may be generated by the intra-predictor 222 of the predictor 220.

[0228] The residual processor 230 of the encoding device can generate residual samples and residual information based on the prediction samples and the original picture (original block and original samples). Here, the residual information is information about the residual samples and may include information about (quantized) transform coefficients for the residual samples.

[0229] The adder (or reconstructor) of the encoding device can generate a reconstructed sample (reconstructed picture, reconstructed block or reconstructed sample array) by adding the residual sample generated by the residual processor 230 and the prediction sample generated by the inter predictor 221 or the intra predictor 222 to each other.

[0230] At the same time, the entropy encoder 240 of the encoding device may generate first information indicating whether information necessary for an inter-frame prediction operation of a decoding process exists in a picture header associated with the current picture or second information indicating whether information necessary for an intra-frame prediction operation of a decoding process exists in a picture header associated with the current picture (S1220). Here, the first information and the second information are information included in a picture header of image information, and may correspond to the above-mentioned intra_signaling_present_flag, inter_signaling_present_flag, slice_type_idc, mixed_slice_signaling_present_flag, intra_slice_only_flag, IntraSignalingPresentFlag, and / or InterSignalingPresentFlag.

[0231] As an example, in the case where information necessary for an inter prediction operation of a decoding process is included in a picture header related to the current picture due to an inter-coded slice being included in the current picture, the entropy encoder 240 of the encoding device may determine the value of the first information to be 1. In addition, in the case where information necessary for an intra prediction operation of a decoding process is included in a corresponding picture header due to an intra-coded slice being included in the current frame, the entropy encoder 240 of the encoding device may determine the value of the second information to be 1. In this case, the first information may correspond to inter_signaling_present_flag, and the second information may correspond to intra_signaling_present_flag. The first information may be referred to as a first flag, information on whether a syntax element used for an inter slice exists in a picture header, a flag for whether a syntax element used for an inter slice exists in a picture header, information on whether a slice in the current picture is an inter slice, or a flag for whether a slice is an inter slice. The second information may be referred to as a second flag, information about whether a syntax element used for intra-frame slicing exists in a picture header, a flag for whether a syntax element used for intra-frame slicing exists in a picture header, information about whether a slice in a current picture is an intra-frame slice, or a flag for whether a slice is an intra-frame slice.

[0232] Meanwhile, in the case where only information necessary for an intra prediction operation is included in a corresponding picture header due to the inclusion of only intra-coded slices in a picture, the entropy encoder 240 of the encoding device may determine the value of the first information to be 0, and may determine the value of the second information to be 1. In addition, in the case where only information necessary for an inter prediction operation is included in a corresponding picture header due to the inclusion of only inter-coded slices in a picture, the value of the first information may be determined to be 1, and the value of the second information may be determined to be 0. Accordingly, if the value of the first information is 0, all slices in the current picture may have an I slice type. If the value of the second information is 0, all slices in the current picture may have a P slice type or a B slice type. Here, the information necessary for an intra prediction operation may include a syntax element used for decoding of an intra slice, and the information necessary for an inter prediction operation may include a syntax element used for decoding of an inter slice.

[0233] As another example, if all slices in the current picture have an I slice type, the entropy encoder 240 of the encoding device may determine the value of the information about the slice type to be 0, and if all slices in the current picture have a P slice type or a B slice type, the entropy encoder 240 of the encoding device may determine the value of the information about the slice type to be 1. If all slices in the current picture have an I slice type, a P slice type, and / or a B slice type (that is, the slice types of the slices in the picture are mixed), the entropy encoder 240 of the encoding device may determine the value of the information about the slice type to be 2. In this case, the information about the slice type may correspond to slice_type_idc.

[0234] As yet another example, if all slices in the current picture have the same slice type, the entropy encoder 240 of the encoding device may determine the value of the information about the slice type to be 0, and if the slices in the current picture have different slice types, the entropy encoder 240 of the encoding device may determine the value of the information about the slice type to be 1. In this case, the information about the slice type may correspond to mixed_slice_signaling_present_flag.

[0235] If the value of the information about the slice type is 0, the information about whether an intra slice is included in the slice may be included in the corresponding picture header. The information about whether an intra slice is included in the slice may correspond to intra_slice_only_flag. If all slices in the picture have an I slice type, the entropy encoder 240 of the encoding device may determine the value of the information about whether an intra slice is included in the slice to be 1, determine the value of the information about whether a syntax element used for an intra slice exists in the picture header to be 1, and determine the value of the information about whether a syntax element used for an inter slice exists in the picture header to be 0. If the types of all slices in the picture are P slice types and / or B slice types, the entropy encoder 240 of the encoding device may determine the value of the information about whether an intra slice is included in the slice to be 0, determine the value of the information about whether a syntax element used for an intra slice exists in the picture header to be 0, and determine the value of the information about whether a syntax element used for an inter slice exists in the picture header to be 1.

[0236] The entropy encoder 240 of the encoding device may encode the image information including the first information, the second information, the information about the slice type, the residual information, and the prediction-related information (S1230). For example, the image information may include partition-related information, information about the prediction mode, residual information, in-loop filtering-related information, the first information, the second information, and information about the slice type, and may include various syntax elements thereof. As an example, the image information may include information about various parameter sets such as an adaptive parameter set (APS), a picture parameter set (PPS), a sequence parameter set (SPS), or a video parameter set (VPS). In addition, the image information may include various pieces of information such as a picture header syntax, a picture header structure syntax, a slice header syntax, and a coding unit syntax. The above-mentioned first information, the second information, the information about the slice type, the information necessary for the intra-frame prediction operation, and the information necessary for the inter-frame prediction operation may be included in the syntax in the picture header.

[0237] The information encoded by the entropy encoder 240 of the encoding device can be output in the form of a bitstream. The bitstream can be transmitted through a network or a storage medium.

[0238] Fig.14 and Fig.15 An example of a video / image decoding method and related components according to an embodiment of this document is schematically illustrated.

[0239] Fig.14 The video / image decoding method disclosed in Figure 3 and Fig.15 The (video / image) decoding device 300 disclosed in is executed. Specifically, for example, Fig.14S1400 and S1410 may be performed by the entropy decoder 310 of the decoding device, S1420 may be performed by the predictor 330 of the decoding device 300, and S1430 may be performed by the adder 340 of the decoding device 300. Fig.14 The video / image decoding method disclosed in may include the above-mentioned embodiments of this document.

[0240] refer to Fig.14 and Fig.15 , the entropy decoder 310 of the decoding device may obtain image information from the bitstream (S1400). The image information may include a picture header related to the current picture. The current picture may include multiple slices.

[0241] At the same time, the entropy decoder 310 of the decoding device can parse from the picture header whether the information necessary for the inter-frame prediction operation of the decoding process is present in the picture header related to the current picture and / or whether the information necessary for the intra-frame prediction operation of the decoding process is present in the picture header related to the current picture. (S1410). Here, the first flag and the second flag may correspond to the above-mentioned intra_signaling_present_flag, inter_signaling_present_flag, slice_type_idc, mixed_slice_signaling_present_flag, intra_slice_only_flag, IntraSignalingPresentFlag and / or InterSignalingPresentFlag. The entropy decoder 310 of the decoding device can parse the syntax elements included in the picture header of the image information based on any one of the picture header syntaxes in Table 2, Table 4, and Table 6 as described above.

[0242] The decoding apparatus may generate a prediction sample by performing at least one of intra prediction or inter prediction on a slice in a current picture based on the first flag, the second flag, and the information about the slice type ( S1420 ).

[0243] Specifically, the entropy decoder 310 of the decoding device can parse (or obtain) at least one of the information necessary for the intra-frame prediction operation and / or the inter-frame prediction operation for the decoding process from the picture header related to the current picture based on the first flag, the second flag and / or the information about the slice type. The predictor 330 of the decoding device can generate a prediction sample by performing intra-frame prediction and / or inter-frame prediction based on at least one of the information necessary for the intra-frame prediction operation or the information for the inter-frame prediction. Here, the information necessary for the intra-frame prediction operation may include syntax elements for decoding of intra-frame slices, and the information necessary for the inter-frame prediction operation may include syntax elements for decoding of inter-frame slices.

[0244] As an example, if the value of the first flag is 0, the entropy decoder 310 of the decoding device may determine (or decide) that the syntax element for inter prediction does not exist in the picture header, and may parse only the information necessary for the intra prediction operation from the picture header. If the value of the first flag is 1, the entropy decoder 310 of the decoding device may determine (or decide) that the syntax element for inter prediction exists in the picture header, and may parse the information necessary for the inter prediction operation from the picture header. In this case, the first flag may correspond to inter_signaling_present_flag.

[0245] In addition, if the value of the second flag is 0, the entropy decoder 310 of the decoding device can determine (or decide) that the syntax element for intra prediction does not exist in the picture header, and can parse only the information necessary for the inter-frame prediction operation from the picture header. If the value of the second flag is 1, the entropy decoder 310 of the decoding device can determine (or decide) that the syntax element for intra prediction exists in the picture header, and can parse the information necessary for the intra-frame prediction operation from the picture header. In this case, the second flag may correspond to intra_signaling_present_flag.

[0246] If the value of the first flag is 0, the decoding device may determine that all slices in the current picture have an I slice type. If the value of the first flag is 1, the decoding device may determine that 0 or more slices in the current picture have a P slice or a B slice type. In other words, if the value of the first flag is 1, a slice having a P slice type or a B slice type may be included in the current picture, or a slice having a P slice type or a B slice type may not be included in the current picture.

[0247] In addition, if the value of the second flag is 0, the decoding device may determine that all slices in the current picture have a type of P slice or B slice. If the value of the second flag is 1, the decoding device may determine that 0 or more slices in the current picture have a type of I slice. In other words, if the value of the second flag is 1, a slice having a type of I slice may be included in the current picture, or a slice having a type of I slice may not be included in the current picture.

[0248] As another example, if the value of the information about the slice type is 0, the entropy decoder 310 of the decoding device can determine that all slices in the current picture have an I slice type, and can parse only the information necessary for the intra-frame prediction operation. If the information about the slice type is 1, the entropy decoder 310 of the decoding device can determine that all slices in the corresponding picture have a P slice type or a B slice type, and can parse only the information necessary for the inter-frame prediction operation from the picture header. If the value of the information about the slice type is 2, the entropy decoder 310 of the decoding device can determine that the slice in the corresponding picture has a slice type in which the I slice type, the P slice type, and / or the B slice type are mixed, and can parse all of the information necessary for the inter-frame prediction operation and the information necessary for the intra-frame prediction operation from the picture header. In this case, the information about the slice type may correspond to slice_type_idc.

[0249] As yet another example, the entropy decoder 310 of the decoding device may determine that all slices in the current picture have the same slice type if the value of the information about the slice type is determined to be 0, and may determine that the slices in the current picture have different slice types if the value of the information about the slice type is determined to be 1. In this case, the information about the slice type may correspond to mixed_slice_signalling_present_flag.

[0250] If the value of the information about the slice type is determined to be 0, the entropy decoder 310 of the decoding device may parse information about whether an intra slice is included in the slice from the picture header. The information about whether an intra slice is included in the slice may correspond to intra_slice_only_flag as described above. If the information about whether an intra slice is included in the slice is 1, all slices in the picture may have an I slice type.

[0251] If the value of the information about whether an intra slice is included in the slice is 1, the entropy decoder 310 of the encoding device can parse only information necessary for the intra prediction operation from the picture header. If the value of the information about whether an intra slice is included in the slice is 0, the entropy decoder 310 of the decoding device can parse only information necessary for the inter prediction operation from the picture header.

[0252] If the value of the information about the slice type is 1, the entropy decoder 310 of the decoding device may parse all of information required for an inter prediction operation and information necessary for an intra prediction operation from a picture header.

[0253] Meanwhile, the residual processor 320 of the decoding device may generate residual samples based on the residual information obtained by the entropy decoder 310 .

[0254] The adder 340 of the decoding device may generate a reconstructed sample (1430) based on the prediction sample generated by the predictor 330 and the residual sample generated by the residual processor 320. In addition, the adder 340 of the decoding device may generate a reconstructed picture (reconstructed block) based on the reconstructed sample.

[0255] Thereafter, as needed, in order to improve subjective / objective picture quality, an in-loop filtering process, such as deblocking filtering, SAO and / or AFL process, may be applied to the reconstructed picture.

[0256] Although the method has been described based on a flowchart in which steps or boxes are listed in sequence in the above-mentioned embodiments, the steps of the present disclosure are not limited to a specific order, and a certain step may be performed in a different step or in a different order or simultaneously relative to the above-mentioned order. In addition, it should be understood by a person of ordinary skill in the art that the steps in the flowchart are not exclusive, and another step may be included therein or one or more steps in the flowchart may be deleted without affecting the scope of the present disclosure.

[0257] The above-mentioned method according to the present disclosure may be in the form of software, and the encoding device and / or decoding device according to the present disclosure may be included in a device for performing image processing (e.g., TV, computer, smart phone, set-top box, display device, etc.).

[0258] When the embodiments of the present disclosure are implemented by software, the above-mentioned methods can be implemented by modules (processing or functions) that perform the above-mentioned functions. The module can be stored in a memory and executed by a processor. The memory can be installed inside or outside the processor and can be connected to the processor via various well-known devices. The processor may include an application-specific integrated circuit (ASIC), other chipsets, logic circuits and / or data processing devices. The memory may include a read-only memory (ROM), a random access memory (RAM), a flash memory, a memory card, a storage medium and / or other storage devices. In other words, according to the embodiments of the present disclosure, it can be implemented and executed on a processor, a microprocessor, a controller or a chip. For example, the functional units illustrated in the corresponding figures can be implemented and executed on a computer, a processor, a microprocessor, a controller or a chip. In this case, information about the implementation (e.g., information about instructions) or an algorithm can be stored in a digital storage medium.

[0259] In addition, the decoding device and encoding device of the embodiment of the present disclosure can be included in a multimedia broadcast transceiver, a mobile communication terminal, a home theater video device, a digital theater video device, a surveillance camera, a video chat device, a real-time communication device such as video communication, a mobile streaming device, a storage medium, a portable camera, a video on demand (VoD) service provider, an over-the-top (OTT) video device, an Internet streaming service provider, a 3D video device, a virtual reality (VR) device, an augmented reality (AR) device, an image phone video device, a vehicle terminal (e.g., a vehicle (including an autonomous vehicle) terminal, an aircraft terminal or a ship terminal) and a medical video device; and can be used to process image signals or data. For example, an OTT video device may include a game console, a Blueray player, a networked TV, a home theater system, a smart phone, a tablet PC, and a digital video recorder (DVR).

[0260] In addition, the processing method of the embodiment of the present disclosure can be generated in the form of a program executed by a computer and can be stored in a computer-readable recording medium. The multimedia data with a data structure according to the embodiment of the present disclosure can also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices storing computer-readable data. 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. The computer-readable recording medium also includes a medium implemented in the form of a carrier wave (e.g., transmission on the Internet). In addition, the bit stream generated by the encoding method can be stored in a computer-readable recording medium, or can be transmitted through a wired or wireless communication network.

[0261] In addition, the embodiments of the present disclosure can be implemented as a computer program product based on a program code, and the program code can be executed on a computer according to the embodiments of this document. The program code can be stored on a computer readable carrier.

[0262] Fig.16 An example of a content streaming system to which an embodiment of the present disclosure can be applied is shown.

[0263] refer to Fig.16 The content streaming system to which the embodiments of the present disclosure are applied may generally include an encoding server, a streaming server, a network server (web server), a media storage, a user device, and a multimedia input device.

[0264] The encoding server is used to compress the content input from the multimedia input device such as a smart phone, a camera, a camcorder, etc. into digital data, generate a bit stream, and transmit it to the streaming server. As another example, in the case where the multimedia input device such as a smart phone, a camera, a camcorder, etc. directly generates a bit stream, the encoding server can be omitted.

[0265] The bitstream may be generated by the encoding method or the bitstream generation method to which the embodiment of the present disclosure is applied, and the streaming server may temporarily store the bitstream in the process of transmitting or receiving the bitstream.

[0266] The streaming server transmits multimedia data to the user device based on the user's request through the network server, which acts as a tool to inform the user of what services are available. When the user requests the service the user wants, the network server transfers the request to the streaming server, and the streaming server transmits the multimedia data to the user. In this regard, the content streaming system may include a separate control server, and in this case, the control server is used to control the commands / responses between the various devices in the content streaming system.

[0267] The streaming server may receive content from a media storage device and / or an encoding server. For example, in the case where the content is received from the encoding server, the content may be received in real time. In this case, the streaming server may store the bitstream for a predetermined period of time to smoothly provide a streaming service.

[0268] For example, user devices may include mobile phones, smart phones, laptop computers, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation, tablet PCs, tablet PCs, ultrabooks, wearable devices (e.g., watch-type terminals (smart watches), glasses-type terminals (smart glasses), head-mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc.

[0269] Each server in the content streaming system may be operated as a distributed server, and in this case, data received by each server may be processed in a distributed manner.

Claims

1. A video decoding method performed by a video decoding device, the method comprising: receiving ( S1400 ) a bitstream, the bitstream including a picture header for a current picture; parsing (S1410) from the picture header a first flag related to whether a syntax element required only for inter-frame slices exists in the picture header and a second flag related to whether a syntax element required only for intra-frame slices exists in the picture header; Based on at least one of the first flag or the second flag, deriving (S1420) a prediction sample for a block in a slice in the current picture, wherein the prediction sample is derived by performing at least one of intra prediction or inter prediction; as well as generating (S1430) a reconstructed sample based on the predicted sample, It is characterized in that When the value of the first flag is equal to 1, the current picture includes one or more slices having a P slice type or a B slice type, and only syntax elements required by the inter slices are present in the picture header, and When the value of the second flag is equal to 1, the current picture includes one or more slices of I slice type, and only syntax elements required by the intra slices are present in the picture header.

2. A video encoding method performed by a video encoding device, the method comprising: Determining (S1200) a type of a slice in a current picture, the current picture including the slice; generating (S1220) a first flag related to whether a syntax element required only for inter-frame slices exists in a picture header related to the current picture and a second flag related to whether a syntax element required only for intra-frame slices exists in the picture header; and encoding the image information including the first mark and the second mark (S1230), It is characterized in that The first flag and the second flag are included in a picture header of the image information, wherein, when the value of the first flag is equal to 1, the current picture includes one or more slices having a P slice type or a B slice type, and only syntax elements required by the inter-frame slices are present in the picture header, and When the value of the second flag is equal to 1, the current picture includes one or more slices of I slice type, and only syntax elements required by the intra slices are present in the picture header.

3. A method for transmitting video data, the method comprising: Obtaining a bitstream for the video, wherein the bitstream is generated based on the following steps: determining (S1200) a type of a slice in a current picture, the current picture including the slice, generating (S1220) a first flag related to whether a syntax element required only for an inter-frame slice exists in a picture header related to the current picture and a second flag related to whether a syntax element required only for an intra-frame slice exists in the picture header, and encoding image information including the first flag and the second flag (S1230); and sending data comprising said bit stream, It is characterized in that The first flag and the second flag are included in a picture header of the image information, wherein, when the value of the first flag is equal to 1, the current picture includes one or more slices having a P slice type or a B slice type, and only syntax elements required by the inter-frame slices are present in the picture header, and When the value of the second flag is equal to 1, the current picture includes one or more slices of I slice type, and only syntax elements required by the intra slices are present in the picture header.

Citation Information

Patent Citations

  • Encoder, decoder and corresponding methods for simplifying indication picture header

    CN114503592A