Decoding and encoding apparatus and apparatus for transmitting data for image
By parsing the predictive weighting table syntax and deriving the relevant flags of the weighting factors, the problem of large information content in high-resolution image/video coding is solved, coding efficiency is improved and signaling overhead is reduced, and it is applicable to general video coding standards, basic video coding standards, AOMedia Video 1 standards and next-generation video/image coding standards.
Patent Information
- Application Number
- CN202511455997.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2019-12-20
- Filing Date
- 2020-12-11
- Publication Date
- 2025-11-14
AI Technical Summary
Existing technologies suffer from problems such as large information volume and high transmission and storage costs in the encoding and decoding of high-resolution, high-quality images/videos, especially in image/video broadcasting in virtual reality and immersive media, where efficient compression technologies are needed to reduce signaling overhead.
By parsing the prediction weighting table syntax in the video decoding device, the weighting factor related flags of the reference image list are derived, and weighted prediction is performed based on this to generate residual samples to reconstruct the current image. At the same time, the weighting factor related information is derived and encoded in the video encoding device to reduce redundant signaling information about weighted prediction.
It improves video/image compression efficiency, enables efficient weighted prediction and signal notification, and reduces redundant signaling overhead for transmitting information.
Smart Images

Figure CN120956933A_ABST
Abstract
Description
[0001] This application is a divisional application of the original invention patent application No. 202080096393.4 (International Application No.: PCT / KR2020 / 018128, Application Date: December 11, 2020, Invention Title: Image / Video Encoding / Decoding Method and Apparatus Using the Method). Technical Field
[0002] This disclosure relates to methods and apparatus for encoding / decoding images / videos. Background Technology
[0003] Recently, there has been an increasing demand for high-resolution, high-quality images / videos, such as 4K or 8K or higher Ultra High Definition (UHD) images / videos, across various fields. As image / video resolution or quality increases, a relatively larger amount of information or bits is transmitted compared to regular image / video data. Therefore, if image / video data is transmitted via media such as existing wired / wireless broadband lines or stored in traditional storage media, the costs for transmission and storage can easily increase.
[0004] Furthermore, there is growing interest and demand for virtual reality (VR) and artificial reality (AR) content, as well as immersive media such as holograms; and the broadcasting of images / videos that exhibit characteristics different from actual images / videos (e.g., game images / videos) is also increasing.
[0005] Therefore, highly efficient image / video compression technology is needed to effectively compress and send, store, or play high-resolution, high-quality images / videos that exhibit the various characteristics described above. Summary of the Invention
[0006] Technical issues
[0007] The technical subject of this document is to provide methods and devices for improving the efficiency of video / image encoding.
[0008] Another technical topic of this document is providing methods and apparatus for efficiently performing weighted prediction in inter-frame prediction.
[0009] Another technical subject of this document is to provide methods and apparatus for efficiently signaling information about weighted predictions.
[0010] Another technical subject of this document is to provide methods and apparatus for reducing signaling overhead in transmitting information about weighted predictions.
[0011] Problem-solving methods
[0012] According to an embodiment of this document, a video decoding method performed by a video decoding device may include the following steps: parsing a prediction weighting table syntax from a bitstream; parsing information about the number of weighted reference images in a list of reference images from the prediction weighting table syntax; deriving a weighting factor related flag for the list of reference images based on the number information; deriving a prediction sample for the current block by performing a weighted prediction on the current block based on the weighting factor related flag; generating a residual sample based on residual information obtained from the bitstream; and reconstructing the current image based on the prediction sample and the residual sample, wherein the prediction weighting table syntax can be parsed from the image header of the bitstream.
[0013] According to another embodiment of this document, a video encoding method performed by a video encoding device may include the following steps: deriving motion information about a current block; generating weighting factor-related information and quantity information about a list of weighted reference images in the list of reference images by performing a weighted prediction on the current block based on the motion information; and encoding image information including the weighting factor-related information and the quantity information, wherein the weighting factor-related information and the quantity information may be included in a prediction weighting table syntax in the image information, and the prediction weighting table syntax may be included in the image header of the image information.
[0014] According to another embodiment of this document, a computer-readable digital storage medium may include information that causes a video decoding device to perform a video decoding method, and the video decoding method may include the following steps: parsing a prediction weighting table syntax from image information; parsing quantity information about weighted reference images in a list of reference images from the prediction weighting table syntax; deriving weighting factor related flags of the list of reference images based on the quantity information; deriving a prediction sample of the current block by performing a weighted prediction on the current block based on the weighting factor related flags; generating residual samples based on residual information obtained from the image information; and reconstructing the current image based on the prediction samples and the residual samples, wherein the prediction weighting table syntax can be parsed from the image header of the image information.
[0015] Effects of the present invention
[0016] The implementation methods described in this document can improve overall video / image compression efficiency.
[0017] According to the implementation method described in this document, weighted prediction can be performed efficiently in inter-frame prediction.
[0018] According to the implementation method described in this document, information about weighted prediction can be efficiently communicated using signals.
[0019] According to the implementation method described in this document, redundant signaling for sending information about weighted predictions can be reduced. Attached Figure Description
[0020] Figure 1 Examples of video / image coding systems to which the implementation methods of this document can be applied are illustrated schematically.
[0021] Figure 2 This is a diagram that schematically illustrates the configuration of a video / image encoding device to which the implementation methods of this document can be applied.
[0022] Figure 3 This is a diagram that schematically illustrates the configuration of a video / image decoding device to which the implementation methods of this document can be applied.
[0023] Figure 4 An example of encoding a single syntax element is shown.
[0024] Figure 5 An example of a video / image coding method based on inter-frame prediction is shown.
[0025] Figure 6 An inter-frame predictor in a coding device is illustrated schematically.
[0026] Figure 7 An example of a video / image decoding method based on inter-frame prediction is shown.
[0027] Figure 8 An inter-frame predictor in a decoding device is illustrated schematically.
[0028] Figure 9 and Figure 10 Examples of video / image encoding methods and related components according to the embodiments of this document are illustrated schematically.
[0029] Figure 11 and Figure 12 Examples of video / image decoding methods and related components according to embodiments of this document are illustrated schematically.
[0030] Figure 13 Examples of content streaming systems to which the implementation methods disclosed in this document can be applied are illustrated. Detailed Implementation
[0031] The disclosure of this document may be modified in various forms, and its specific implementation will be described and illustrated in the accompanying drawings. The terminology used in this document is for descriptive purposes only and is not intended to limit the methods disclosed herein. The singular expression includes the expression "at least one," provided it is clearly interpreted differently. Terms such as "comprising" and "having" are intended to indicate the presence of features, quantities, steps, operations, elements, components, or combinations thereof used in the document, and therefore should be understood that the possibility of having or adding one or more different features, quantities, steps, operations, elements, components, or combinations thereof is not excluded.
[0032] Furthermore, the various configurations described in the accompanying drawings are independent illustrations for explaining the functions that are different features from each other, and do not imply that the various configurations are implemented by different hardware or different software. For example, two or more configurations may be combined to form one configuration, and one configuration may also be divided into multiple configurations. Implementations of combining and / or separating configurations are included within the scope of the disclosure of this document without departing from the spirit of the methods disclosed herein.
[0033] This document relates to video / image coding. For example, the methods / implementations disclosed in this document can be applied to methods disclosed in the Universal Video Coding (VVC) standard. Furthermore, the methods / implementations disclosed in this document can be applied to methods disclosed in the Basic Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the Audio Video Coding 2 (AVS2) standard, or next-generation video / image coding standards (e.g., H.267, H.268, etc.).
[0034] This document presents various implementation methods related to video / image encoding, and unless otherwise specified, these implementation methods may also be performed in combination with each other.
[0035] In this document, the terms " / " and "," should be interpreted as indicating "and / or". For example, the expression "A / B" can mean "A and / or B". Furthermore, "A, B" can mean "A and / or B". Additionally, "A / B / C" can mean "at least one of A, B, and / or C". Furthermore, "A / B / C" can mean "at least one of A, B, and / or C".
[0036] Furthermore, in this document, the term "or" should be interpreted as indicating "and / or". For example, expressing "A or B" could 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".
[0037] Furthermore, the parentheses used in this document may mean "for example". Specifically, when expressing "prediction (intra-frame prediction)", it may be indicated that "intra-frame prediction" is presented as an example of "prediction". In other words, the term "prediction" in this document is not limited to "intra-frame prediction", and may be indicated that "intra-frame prediction" is presented as an example of "prediction". Moreover, even when expressing "prediction (i.e., intra-frame prediction)", it may be indicated that "intra-frame prediction" is presented as an example of "prediction".
[0038] In this document, a technical feature described separately in a single figure may be implemented individually or simultaneously.
[0039] The embodiments described in this document will be described in detail below with reference to the accompanying drawings. Furthermore, in all the drawings, the same reference numerals will be used to indicate the same elements, and the same descriptions of the same elements will be omitted.
[0040] Figure 1 Examples of video / image coding systems to which the implementation methods of this document can be applied are illustrated.
[0041] Reference Figure 1 A video / image encoding system may include a first device (source device) and a second device (receiving device). The source device may transmit encoded video / image information or data to the receiving device in the form of a file or stream via a digital storage medium or network.
[0042] 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.
[0043] Video sources can acquire video / images through processes that capture, synthesize, or generate video / images. Video sources may include video / image capture devices and / or video / image generation devices. For example, a video / image capture device may include one or more cameras, a video / image archive including previously captured video / images, etc. For example, a video / image generation device may include a computer, tablet computer, and smartphone, and may generate video / images (electronically). For example, virtual video / images can be generated via a computer, etc. In this case, the video / image capture process can be replaced by a process that generates related data.
[0044] Encoding devices can encode input video / images. For compression and encoding efficiency, encoding devices can perform a series of processes such as prediction, transformation, and quantization. The encoded data (encoded video / image information) can be output as a bitstream.
[0045] The transmitter can send encoded images / image information or data, output as a bitstream, to the receiver of the receiving device in the form of a file or stream via a digital storage medium or 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 elements for generating media files according to a predetermined file format and may include elements for transmission over a broadcast / communication network. The receiver can receive / extract the bitstream and send the received bitstream to a decoding device.
[0046] Decoding devices can decode video / images by performing a series of processes such as dequantization, inverse transform, and prediction, which correspond to the operations of encoding devices.
[0047] The renderer can render decoded video / images. The rendered video / images can be displayed on a monitor.
[0048] In this document, video can refer to a series of images over time. An image typically refers to a unit representing an image at a specific time frame, and a slice / tile refers to a unit that constitutes part of an image in terms of coding. A slice / tile can include one or more Code Tree Units (CTUs). An image can consist of one or more slices / tiles. An image can consist of one or more groups of tiles. A group of tiles can include one or more tiles. A brick can represent a rectangular area of CTU rows within a tile in an image. A tile can be divided into multiple bricks, each brick consisting of one or more CTU rows within the tile. A tile that is not divided into multiple bricks can also be referred to as a brick. Tile scanning is a specific ordering of the CTUs that divide an image, where CTUs are ordered consecutively within a tile by CTU raster scans, bricks within a tile are ordered consecutively by the raster scans of the tiles within the tile, and bricks in an image are ordered consecutively by the raster scans of the tiles within the image. A tile is a rectangular region of a CTU within a specific tile column and a specific tile row in an image. A tile column is a rectangular region of a CTU with a height equal to the height of the image and a width specified by a syntax element in the image parameter set. A tile row is a rectangular region of a CTU with a height specified by a syntax element in the image parameter set and a width equal to the width of the image. A tile scan is a specific ordering of the CTUs that segment the image, where the CTUs are ordered consecutively in a tile by a CTU raster scan, and the tiles in the image are ordered consecutively by a raster scan of the image's tiles. A slice comprises an integer number of tiles of an image that can be contained within a single NAL unit. A slice can consist of multiple complete tiles or a consecutive sequence of complete tiles of a single tile. In this document, tile groups and slices are used interchangeably. For example, in this document, a tile group / tile group header can be referred to as a slice / slice header.
[0049] A pixel or cell (pel) can refer to the smallest unit that makes up a picture (or image). Additionally, "sample" can be used as the term corresponding to a pixel. A sample can typically represent a pixel or pixel value, and can represent only the pixel / pixel value of the luminance component or only the pixel / pixel value of the chrominance component.
[0050] A unit can represent a basic unit of image processing. A unit may include a specific region of an image and at least one of the information associated with that region. A unit may include a luminance block and two chrominance (e.g., cb, cr) blocks. In some cases, the term "unit" may be used interchangeably with terms such as "block" or "region." In general, an M×N block may include a set (or array) of samples (or sample arrays) or transform coefficients in M columns and N rows. Alternatively, a sample may refer to a pixel value in the spatial domain, and when such a pixel value is transformed to the frequency domain, it may refer to a transform coefficient in the frequency domain.
[0051] In some cases, a unit can be used interchangeably with terms such as block or region. Generally, an M×N block can represent a set of samples or transform coefficients consisting of M columns and N rows. A sample can typically represent a pixel or pixel value, and can represent only the pixel / pixel value of the luminance component or only the pixel / pixel value of the chrominance component. A sample can be used as a term corresponding to the pixels or cells that configure a picture (or image).
[0052] Figure 2 This diagram schematically illustrates the configuration of a video / image encoding device to which the embodiments described in this document can be applied. In the following text, a device referred to as a video encoding device may include an image encoding device.
[0053] Reference Figure 2 The encoding device 200 includes and is configured with an image partitioner 210, a predictor 220, a residual processor 230, an entropy encoder 240, an adder 250, a filter 260, and a memory 270. The predictor 220 may include an inter-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 reconstruction block generator. According to embodiments, the image partitioner 210, predictor 220, residual processor 230, entropy encoder 240, adder 250, and filter 260 described above may be configured by one or more hardware components (e.g., an encoder chipset or a processor). Additionally, the memory 270 may include a decoded picture buffer (DPB), or may be configured by a digital storage medium. The hardware components may also include the memory 270 as an internal / external component.
[0054] Image partitioner 210 can partition an input image (or picture, frame) input to 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 can be recursively partitioned from a coding tree unit (CTU) or a maximum coding unit (LCU) according to a quadtree-binary-tritree (QTBTTT) structure. For example, a coding unit can be partitioned into multiple deeper coding units based on a quadtree structure, a binary tree structure, and / or a ternary tree structure. In this case, for example, a quadtree structure can be applied first, followed by a binary tree structure and / or a ternary tree structure. Alternatively, a binary tree structure can be applied first. The encoding process according to this document can be performed based on the final coding unit that is no longer partitioned. In this case, the maximum coding unit can be directly used as the final coding unit based on image characteristics, coding efficiency, etc., or if necessary, the coding unit can be recursively partitioned into deeper coding units such that the coding unit with the optimal size can be used as the final coding unit. Here, the encoding process may include processes such as prediction, transformation, and reconstruction (described later). In another example, the processing unit may also include a prediction unit (PU) or a transform unit (TU). In this case, each of the prediction unit and the transform unit can be segmented or partitioned from the aforementioned final encoding unit. The prediction unit may be a unit for predicting samples, and the transform unit may be a unit for deriving transform coefficients and / or a unit for deriving residual signals from transform coefficients.
[0055] Encoding device 200 can subtract the prediction signal (prediction block, prediction sample array) output from inter-frame predictor 221 or intra-frame 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 converter 232. In this case, as shown, the unit in encoding device 200 that subtracts the prediction signal (prediction block, prediction sample array) from the input image signal (original block, original sample array) can be called subtractor 231. Predictor 220 can perform prediction on the processing target block (hereinafter referred to as the current block) and generate a prediction block including the prediction samples of the current block. Predictor 220 can determine whether to apply intra-frame prediction or inter-frame prediction in the unit of the current block or CU. As described later in the description of each prediction mode, predictor 220 can generate various types of information about the prediction (such as prediction mode information) and send the generated information to entropy encoder 240, as described below in the description of each prediction mode. Information about the prediction can be encoded by the entropy encoder 240 and output as a bitstream.
[0056] Intra-predictor 222 can refer to samples in the current image to predict the current block. Depending on the prediction mode, the referenced samples can be located near the current block or can be spaced out. In intra-prediction, the prediction mode can include multiple non-directional modes and multiple directional modes. For example, non-directional modes can include DC mode and planar mode. For example, depending on the level of detail in the prediction direction, the directional modes can include 33 or 65 directional prediction modes. However, this is just an example, and more or fewer directional prediction modes may be used depending on the settings. Intra-predictor 222 can also use prediction modes applied to neighboring blocks to determine the prediction mode applied to the current block.
[0057] Inter-frame predictor 221 can deduce the predicted block of the current block based on a reference block (reference sample array) specified by a motion vector on a reference image. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation between motion information between neighboring blocks and the current block. Motion information may include motion vectors and reference image indices. Motion information may also include inter-frame prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter-frame prediction, neighboring blocks may include spatially neighboring blocks existing in the current image and temporally neighboring blocks existing in the reference image. The reference image including the reference block and the reference image including the temporally neighboring block may be the same as or different from each other. The temporally neighboring block may be referred to as a juxtaposed reference block, a juxtaposed CU (colCU), etc., and the reference image including the temporally neighboring block may be referred to as a juxtaposed image (colPic). For example, inter-frame predictor 221 can configure a motion information candidate list based on neighboring blocks and generate information indicating which candidate is used to deduce the motion vector and / or reference image index of the current block. Inter-frame prediction can be performed based on various prediction modes. For example, in skip mode and merge mode, the inter-frame predictor 221 can use the motion information of neighboring blocks as the motion information of the current block. In skip mode, unlike merge mode, residual signals may not be sent. The motion vector prediction (MVP) mode uses the motion vectors of neighboring blocks as motion vector predictors and signals the motion vector difference to indicate the motion vector of the current block.
[0058] Predictor 220 can generate prediction signals based on various prediction methods described later. For example, predictor 220 can apply intra-frame prediction or inter-frame prediction to predict a block, and can apply both intra-frame and inter-frame prediction simultaneously. This can be referred to as combined intra-frame and inter-frame prediction (CIIP). Furthermore, the predictor can use an intra-block copy (IBC) prediction mode or a palette mode for predicting blocks. The IBC prediction mode or palette mode can be used for image / video coding of content such as games, for example, Screen Content Coding (SCC). IBC essentially performs prediction in the current frame, but it can be performed similarly to inter-frame prediction in that it derives a reference block in the current frame. That is, IBC can use at least one of the inter-frame prediction techniques described in this document. Palette mode can be considered as an example of intra-frame coding or intra-frame prediction. When applying palette mode, sample values in the image can be signaled based on information about the palette table and palette index.
[0059] The predicted signal generated by the predictor (including inter-frame predictor 221 and / or intra-frame predictor 222) can be used to generate the reconstructed signal or the residual signal.
[0060] Transformer 232 can generate transform coefficients by applying transform techniques to the residual signal. For example, the transform technique may include at least one of the following: Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Graphical Based Transform (GBT), or Conditional Nonlinear Transform (CNT). Here, GBT refers to a transform obtained from a graphic when the relationship information between pixels is illustrated as a graphic. CNT refers to a transform obtained based on a prediction signal generated using all previously reconstructed pixels. Additionally, the transform processing can be applied to pixel blocks that are squares of the same size, or it can be applied to blocks of variable size that are not squares.
[0061] Quantizer 233 quantizes the transform coefficients and sends the quantized transform coefficients to entropy encoder 240, which 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 can be referred to as residual information. Quantizer 233 can rearrange the quantized transform coefficients in block form as a one-dimensional vector based on the coefficient scan order, and can generate information about the transform coefficients based on the one-dimensional vector form of the quantized transform coefficients.
[0062] The entropy encoder 240 can perform various encoding methods such as, for example, Golomb, Context Adaptive Variable Length Coding (CAVLC), and Context Adaptive Binary Arithmetic Coding / Encoding (CABAC). The entropy encoder 240 can also encode, either together or separately, information necessary for video / image reconstruction (e.g., values of syntax elements, etc.) other than the quantized transform coefficients. The encoded information (e.g., encoded video / image information) can be transmitted or stored in bitstream form at the unit level of Network Abstraction Layer (NAL) units. The video / image information can also include information about various parameter sets, such as Adaptive Parameter Set (APS), Picture Parameter Set (PPS), Sequence Parameter Set (SPS), or Video Parameter Set (VPS). Additionally, the video / image information can also include general constraint information. In this document, information and / or syntax elements signaled from / transmitted from the encoding device to the decoding device can be included in the video / image information. The video / image information can be encoded by the aforementioned encoding process and thus included in the bitstream. The bitstream can be transmitted over a network or 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, and SSD. A transmitting unit (not shown) for transmitting the signal output from the entropy encoder 240 and / or a storage unit (not shown) for storing the signal may be configured as internal / external components of the encoding device 200, or the transmitting unit may also be included in the entropy encoder 240.
[0063] The quantized transform coefficients output from 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 using dequantizer 234 and inverse transformer 235. Adder 250 can add the reconstructed residual signal to the prediction signal output from inter-frame predictor 221 or intra-frame predictor 222 to generate a reconstructed signal (reconstructed image, reconstructed block, reconstructed sample array). For example, when skip mode is applied, the prediction block can be used as a reconstructed block when there is no residual for the processing target block. Adder 250 can be referred to as a restorer or restore block generator. The generated reconstructed signal can be used for intra-frame prediction of the next processing target block in the current image, or it can be used for inter-frame prediction of the next image after filtering, as described below.
[0064] In addition, Luminance Mapping and Chromaticity Scaling (LMCS) can also be applied during image encoding and / or reconstruction processing.
[0065] Filter 260 can improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, filter 260 can generate a modified reconstructed image by applying various filtering methods to the reconstructed image and store the modified reconstructed image in memory 270 (specifically, the DPB of memory 270). Various filtering methods may include deblocking filtering, sample adaptive shifting, adaptive loop filtering, bilateral filtering, etc. Filter 260 can generate various types of filtering-related information and transmit the generated information to entropy encoder 240, as described later in the description of the various filtering methods. The filtering-related information can be encoded by entropy encoder 240 and output as a bitstream.
[0066] The modified reconstructed image sent to memory 270 can be used as a reference image in inter-frame predictor 221. When inter-frame prediction is applied via the encoding device, prediction mismatch between the encoding device 200 and the decoding device can be avoided, and encoding efficiency can be improved.
[0067] The DPB of memory 270 can store the corrected reconstructed image for use as a reference image in inter-frame predictor 221. Memory 270 can store motion information of blocks from which motion information in the current image is derived (or encoded) and / or motion information of blocks in already reconstructed images. The stored motion information can be transmitted to inter-frame predictor 221 to be used as motion information for spatially or temporally neighboring blocks. Memory 270 can store reconstructed samples of reconstructed blocks in the current image and can transmit these reconstructed samples to intra-frame predictor 222.
[0068] Figure 3 This is a diagram illustrating the configuration of a video / image decoding device to which the implementation methods of this document can be applied.
[0069] Reference Figure 3 The decoding device 300 may include and be configured with an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 322. According to embodiments, the entropy decoder 310, residual processor 320, predictor 330, adder 340, and filter 350 described above may be configured by one or more hardware components (e.g., a decoder chipset or processor). Additionally, the memory 360 may include a decoded picture buffer (DPB) or may be configured by a digital storage medium. The hardware components may also include the memory 360 as an internal / external component.
[0070] When the input includes a bitstream containing video / image information, the decoding device 300 can respond to... Figure 2 The illustrated encoding apparatus processes video / image information to reconstruct the image. For example, decoding apparatus 300 can deduce units / blocks based on block partitioning information obtained from the bitstream. Decoding apparatus 300 can perform decoding using processing units applied to the encoding apparatus. Thus, for example, the decoding processing unit can be an encoding unit, and the encoding unit can be segmented from encoding tree units or maximum encoding units according to a quadtree structure, binary tree structure, and / or ternary tree structure. One or more transform units can be derived from the encoding unit. Furthermore, the reconstructed image signal decoded and output by decoding apparatus 300 can be reproduced by a reproduction apparatus.
[0071] Decoding device 300 can receive data in bitstream form from... Figure 2The signal output by the encoding device can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive the 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 adaptation parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). In addition, the video / image information may also include general constraint information. The decoding device can also decode the picture based on the information about the parameter sets and / or general constraint information. The information and / or syntax elements that are signaled / received, as described later in this document, can be decoded and obtained from the bitstream through the decoding process. For example, the entropy decoder 310 can decode the information within the bitstream based on encoding methods such as exponential Golomb coding, context-adaptive variable-length coding / encoding (CAVLC), or context-adaptive binary arithmetic coding (CABAC), and output the syntax elements required for image reconstruction and the quantized values of the transform coefficients for the residuals. More specifically, the CABAC entropy decoding method can receive bins corresponding to each syntax element in the bitstream, determine the context model by using information about the target syntax element, decoding information about the target block, or information about symbols / bins decoded in a previous stage, and perform arithmetic decoding on the bins by predicting the probability of bin occurrence based on the determined context model, generating symbols corresponding to the values of each syntax element. In this case, the CABAC entropy decoding method can update the context model after determining the context model by using the information of the decoded symbols / bins for the context model of the next symbol / bin. The prediction-related information among the information decoded by the entropy decoder 310 can be provided to the predictors (inter-frame predictor 332 and intra-frame predictor 331), and the residual values (i.e., quantized transform coefficients and related parameter information) from the entropy decoder 310 can be input to the residual processor 320.
[0072] The residual processor 320 can derive residual signals (residual blocks, residual samples, or residual sample arrays). Additionally, filtering information from the information decoded by the entropy decoder 310 can be provided to the filter 350. Meanwhile, a receiver (not shown) for receiving signals output from the encoding device can be configured as an internal / external component of the decoding device 300, or the receiver can be a component of the entropy decoder 310. Furthermore, the decoding device according to this document can be referred to as a video / image / picture decoding device, and the decoding device can be classified as an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include the 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.
[0073] Dequantizer 321 can dequantize the quantized transform coefficients to output transform coefficients. Dequantizer 321 can rearrange the quantized transform coefficients in a two-dimensional block format. In this case, the rearrangement can be performed based on the coefficient scan order performed by the encoding device. Dequantizer 321 can use quantization parameters (e.g., quantization step size information) to perform dequantization on the quantized transform coefficients and obtain the transform coefficients.
[0074] The inverse transformer 322 performs an inverse transformation on the transformation coefficients to obtain the residual signal (residual block, residual sample array).
[0075] In this document, at least one of quantization / dequantization and / or transform / inverse transform may be omitted. When quantization / dequantization is omitted, the quantization transform coefficients may be referred to as transform coefficients. When transform / inverse transform is omitted, the transform coefficients may be referred to as coefficients or residual coefficients, or for consistency, they may still be referred to as transform coefficients.
[0076] In this document, quantization transform coefficients and transform coefficients can be referred to as transform coefficients and scaling transform coefficients, respectively. In this context, residual information can include information about the transform coefficients, and this information can be signaled using residual coding syntax. Transform coefficients can be derived based on residual information (or information about the transform coefficients), and scaling transform coefficients can be derived by performing an inverse transform (scaling) on the transform coefficients. Residual samples can be derived based on the inverse transform (scaling) of the scaling transform coefficients. This can also be applied / expressed in other parts of this document.
[0077] Predictor 330 can perform prediction on the current block and generate a prediction block that includes prediction samples of the current block. The predictor can determine whether to apply intra-frame prediction or inter-frame prediction to the current block based on information about the prediction output from entropy decoder 310 and determine a specific intra-frame / inter-frame prediction mode.
[0078] Predictor 330 can generate a prediction signal based on various prediction methods described below. For example, the predictor can apply intra-frame prediction or inter-frame prediction to predict a block, and can apply both intra-frame and inter-frame prediction simultaneously. This can be referred to as combined intra-frame and inter-frame prediction (CIIP). Alternatively, the predictor can predict blocks based on an intra-block copy (IBC) prediction mode or a palette mode. IBC prediction mode or palette mode can be used for image / video coding of content such as games, for example, screen content coding (SCC). IBC can essentially perform prediction within the current frame, but can be performed similarly to inter-frame prediction, such that a reference block is derived within the current frame. That is, IBC can use at least one inter-frame prediction technique described in this document. Palette mode can be considered an example of intra-frame coding or intra-frame prediction. When a palette mode is applied, information about the palette table and palette index can be included in the video / image information and signaled.
[0079] Intra-predictor 331 can predict the current block by referencing samples in the current image. Depending on the prediction mode, the referenced samples may be located near the current block or separated from it. In intra-prediction, the prediction mode can include multiple non-directional modes and multiple directional modes. Intra-predictor 331 can determine the prediction mode applied to the current block by using prediction modes applied to neighboring blocks.
[0080] Inter-frame predictor 332 can deduce the predicted block for the current block based on a reference block (reference sample array) specified by motion vectors on a reference image. In this case, to reduce the amount of motion information transmitted in inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation of motion information between neighboring blocks and the current block. Motion information may include motion vectors and reference image indices. Motion information may also include information about the inter-frame prediction direction (L0 prediction, L1 prediction, dual prediction, etc.). In the case of inter-frame prediction, neighboring blocks may include spatially neighboring blocks existing in the current image and temporally neighboring blocks existing in the reference image. For example, inter-frame predictor 332 can construct a motion information candidate list based on neighboring blocks and deduce the motion vector and / or reference image index for the current block based on the received candidate selection information. Inter-frame prediction can be performed based on various prediction modes, and the information about the prediction may include information indicating the inter-frame prediction mode used for the current block.
[0081] Adder 340 can generate a reconstruction signal (reconstructed image, reconstruction block, reconstruction sample array) by adding the acquired residual signal to the prediction signal (prediction block or prediction sample array) output from the predictor (including inter-frame predictor 332 and / or intra-frame predictor 331). If there is no residual for the target block, such as when a skip mode is applied, the prediction block can be used as the reconstruction block.
[0082] Adder 340 can be referred to as a reconstructor or reconstructed block generator. The generated reconstructed signal can be used for intra-frame prediction of the next block to be processed in the current image, and as described later, it can also be output by filtering or used for inter-frame prediction of the next image.
[0083] In addition, Luminance Mapping and Chromatography Scaling (LMCS) can also be applied to image decoding processing.
[0084] Filter 350 can improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, filter 350 can generate a corrected reconstructed image by applying various filtering methods to the reconstructed image and store the corrected reconstructed image in memory 360, specifically in the DPB of memory 360. Various filtering methods may include, for example, deblocking filtering, adaptive sample shifting, adaptive loop filtering, bilateral filtering, etc.
[0085] The (modified) reconstructed image stored in the DPB of memory 360 can be used as a reference image in inter-frame predictor 332. Memory 360 can store motion information of blocks from which motion information within the current image is derived (decoded) and / or motion information of blocks within reconstructed images. The stored motion information can be transmitted to inter-frame predictor 332 to be used as motion information for spatially or temporally neighboring blocks. Memory 360 can store reconstructed samples of reconstructed blocks within the current image and transmit the reconstructed samples to intra-frame predictor 331.
[0086] In this document, the implementation described in the filter 260, inter-frame predictor 221 and intra-frame predictor 222 of the encoding device 200 can be equally applied to or correspond to the filter 350, inter-frame predictor 332 and intra-frame predictor 331.
[0087] Furthermore, the video / image coding method according to this document can be executed based on the following partitioning structure. Specifically, the aforementioned prediction, residual processing (inverse transform and dequantization), syntax element encoding, and filtering processes can be performed based on the CTU and CU (and / or TU and PU) derived from the partitioning structure. The block partitioning process can be performed by the image partitioner 210 of the aforementioned encoding device, and the partitioning-related information can be processed by the entropy encoder 240 (encoding) 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 partitioning structure of the current image based on the partitioning-related information obtained from the bitstream, and based on this, can perform a series of processes for image decoding (e.g., prediction, residual processing, block / image reconstruction, in-loop filtering, etc.). The CU size and TU size can be equal to each other, or multiple TUs can exist within the CU region. Furthermore, the CU size can generally represent the size of the luma component (sample) coded block (CB). The TU size can generally represent the size of the luma component (sample) transform block (TB). The size of the chroma component (sample) CB or TB can be derived based on the color format (chroma format, e.g., 4:4:4, 4:2:2, 4:2:0, etc.) of the image / picture according to the component ratio based on the size of the luminance component (sample) CB or TB. The TU size can be derived based on maxTbSize. For example, if the CU size is greater than maxTbSize, multiple TUs (TBs) of maxTbSize can be derived from the CU, and transform / inverse transform can be performed in units of TU (TB). Furthermore, for example, in the case of applying intra-frame prediction, the intra-frame prediction mode / type can be derived in units of CU (or CB), and the neighbor reference sample derivation and prediction sample generation process can be performed in units of TU (or TB). In this case, one or more TUs (or TBs) can exist in a CU (or CB) region, and multiple TUs (or TBs) can share the same intra-frame prediction mode / type.
[0088] Furthermore, in video / image encoding according to this document, the image processing unit can have a hierarchical structure. An image can be partitioned into one or more tiles, blocks, slices, and / or tile groups. A slice can include one or more blocks. A block can include one or more CTU rows within a tile. A slice can include an integer number of blocks in the image. A tile group can include one or more tiles. A tile can include one or more CTUs. A CTU can be partitioned into one or more CUs. A tile represents a rectangular area of a CTU within a specific tile column and a specific tile row in the image. A tile group can include an integer number of tiles based on a tile raster scan in the image. A slice header can carry information / parameters that can be applied to the corresponding slice (a block within a slice). If the encoding / decoding device has a multi-core processor, the encoding / decoding processes for tiles, slices, blocks, and / or tile groups can be processed in parallel. In this document, slices or tile groups can be used interchangeably. That is, a tile group header can be referred to as a slice header. Here, a slice can have one of the following slice types: intra-frame (I) slices, prediction (P) slices, and double prediction (B) slices. When predicting blocks in an I slice, inter-frame prediction may not be used, and intra-frame prediction may be used only. Of course, even in this case, signaling can be performed by encoding the original sample values without prediction. Regarding blocks in a P slice, either intra-frame or inter-frame prediction can be used, and if inter-frame prediction is used, only unidirectional prediction can be used. Furthermore, regarding blocks in a B slice, either intra-frame or inter-frame prediction can be used, and if inter-frame prediction is used, double prediction can be maximized.
[0089] Considering coding efficiency or parallel processing, or based on the characteristics of the video image (e.g., resolution), the encoding device can determine the size of the tile / tile group, tile, slice, and the maximum and minimum coding unit, and their information or information that can be deduced can be included in the bitstream.
[0090] Decoding devices can obtain information representing the tiles / groups of tiles, blocks, and slices of the current image, as well as whether the CTUs within a tile have been partitioned into multiple coding units. Efficiency can be improved by acquiring (transmitting) this information only under specific conditions.
[0091] As described above, an image can include multiple slices, and a slice can include a slice header and slice data. In this case, an image header can be further added to the multiple slices (a set of slice headers and slice data) in an image. The image header (image header syntax) can include information / parameters commonly applied to the image. The slice header (slice header syntax) can include information / parameters commonly applied to the slice. The Adaptive Parameter Set (APS) or Picture Parameter Set (PPS) can include information / parameters commonly applied to one or more images. The Sequence Parameter Set (SPS) can include information / parameters commonly applied to one or more sequences. The Video Parameter Set (VPS) can include information / parameters commonly applied to multiple layers. The Decoding Parameter Set (DPS) can include information / parameters commonly applied to the overall video. The DPS can include information / parameters related to the concatenation of encoded video sequences (CVS).
[0092] In this document, advanced syntax may include at least one of the following: APS syntax, PPS syntax, SPS syntax, VPS syntax, DPS syntax, image header syntax, and slice header syntax.
[0093] Additionally, information regarding the partitioning and configuration of tiles / tile groups / tiles / slices can be configured in the encoding device based on high-level syntax and sent to the decoding device as a bitstream.
[0094] Figure 4 An example of encoding a single syntax element is shown.
[0095] Figure 4 This is a block diagram illustrating CABAC for encoding individual syntax elements. In CABAC encoding, when the input signal is a non-binary syntax element, it is first converted to a binary value through binarization. If the input signal is already a binary value, it bypasses binarization. Here, the individual binary numbers 0 or 1 that form the binary value are called binaries. For example, when the binarized binary string (bin string) is 110, 1, 1, and 0 are respectively called binaries. The binaries of a syntax element can represent the value of the syntax element.
[0096] Binarized bins are input to either a regular encoding engine or a bypass encoding engine. The regular encoding engine assigns a context model reflecting the probability values of the corresponding bin and encodes the bin based on the assigned context model. The regular encoding engine can encode each bin individually and then update the probability model of the bin. These encoded bins are called context-encoded bins. The bypass encoding engine omits the process of estimating the probability of the input bin and updating the probability model applied to the bin after encoding. The bypass encoding engine speeds up encoding by applying a uniform probability distribution (e.g., 50:50) to the input bin instead of assigning context. These encoded bins are called bypass bins. Context models can be assigned and updated for each bin to be context-encoded (regular encoding) and can be indicated based on ctxidx or ctxInc. ctxidx can be derived based on ctxInc. Specifically, for example, the context index (ctxidx) indicating the context model of each bin to be regular encoded can be derived as the sum of the context index increment (ctxInc) and the context index offset (ctxIdxOffset). Here, ctxInc can be derived differently for each bin. ctxIdxOffset can be represented by the minimum value of ctxIdx. The minimum value of ctxIdx can be called the initial value (initValue) of ctxIdx. ctxIdxOffset is generally used to distinguish the context model of other syntax elements, and the context model of a syntax element can be distinguished / derived based on ctxinc.
[0097] During entropy encoding, it can be determined whether encoding is performed using a regular encoding engine or a bypass encoding engine, and the encoding path can be switched. In entropy decoding, the same processing is performed in reverse order as in entropy encoding.
[0098] For example, the aforementioned entropy encoding can be performed as follows.
[0099] Encoding devices (entropy encoders) perform entropy coding on images / image information. Image / image information may include partition-related information, prediction-related information (e.g., inter-frame / intra-frame prediction classification information, intra-frame prediction mode information, and inter-frame prediction mode information), residual information, in-loop filtering-related information, etc., or may include various related syntax elements. Entropy coding can be performed on a per-syntax-element basis.
[0100] Specifically, the encoding device performs binarization on the target syntax element. Binarization can be based on various binarization methods, such as truncated rice binarization and fixed-length binarization, and the binarization method for the target syntax element can be predefined. The binarization process can be performed by the binarizer 242 in the entropy encoder 240.
[0101] The encoding device performs entropy encoding on the target syntax element. The encoding device can encode the empty string of the target syntax element based on regular encoding (context) or bypass encoding using entropy encoding techniques such as context-adaptive arithmetic coding (CABAC) or context-adaptive variable-length coding (CAVLC), and its output can be included in the bitstream. The entropy encoding process can be executed by the entropy encoding processor 243 in the entropy encoder 240. As described above, the bitstream can be transmitted to the decoding device via a (digital) storage medium or network.
[0102] Decoding devices (entropy decoders) can decode encoded images / image information. Image / image information may include partition-related information, prediction-related information (e.g., inter-frame / intra-frame prediction classification information, intra-frame prediction mode information, and inter-frame prediction mode information), residual information, in-loop filtering-related information, etc., or may include various related syntax elements. Entropy coding can be performed on a syntax element-by-syntax basis.
[0103] Specifically, the decoding device performs binarization on the target syntax element. Here, binarization can be based on various binarization methods, such as truncated Ricean binarization and fixed-length binarization, and the binarization method for the target syntax element can be predefined. The decoding device can deduce available empty strings (empty string candidates) of available values for the target syntax element through the binarization process. The binarization process can be performed by the binarizer 312 in the entropy decoder 310.
[0104] The decoding device performs entropy decoding on the target syntax element. While sequentially decoding and parsing the individual bins of the target syntax element from the input bits in the bitstream, the decoding device compares the derived bin strings with the available bin strings of the syntax element. When the derived bin string matches one of the available bin strings, the value corresponding to that bin string is deduced as the value of the syntax element. Otherwise, the decoding device further parses the next bit in the bitstream and then repeats the above process. This process allows variable-length bits to be used to signal specific information without using the start or end bits of that specific information (the specific syntax element) in the bitstream. Therefore, fewer bits can be allocated to lower values, and overall encoding efficiency can be improved.
[0105] The decoding device can perform context-based or bypass-based decoding on individual bins in a bin string from a bitstream based on entropy coding techniques such as CABAC or CAVLC. The entropy decoding process can be executed by the entropy decoding processor 313 in the entropy decoder 310. The bitstream can include various information for image / video decoding as described above. As mentioned above, the bitstream can be transmitted to the decoding device via a (digital) storage medium or a network.
[0106] In this document, a table including syntax elements (syntax table) can be used to indicate signaling of information from an encoding device to a decoding device. The order of the syntax elements in the table including the syntax elements used in this document can indicate the order in which the syntax elements are parsed from the bitstream. The encoding device can construct and encode the syntax table such that the decoding device can parse the syntax elements in the parsing order, and the decoding device can parse and decode the syntax elements of the syntax table from the bitstream according to the parsing order to obtain the values of the syntax elements.
[0107] For example, a video / image coding process based on inter-frame prediction can schematically include the following.
[0108] Figure 5 An example of a video / image coding method based on inter-frame prediction is given, and Figure 6 An inter-frame predictor in a coding device is illustrated schematically.
[0109] Reference Figure 5 and Figure 6The encoding device performs inter-frame prediction on the current block (S500). The encoding device can derive the inter-frame prediction mode and motion information for the current block, and can generate prediction samples for the current block. Here, the processes for determining the inter-frame prediction mode, deriving motion information, and generating prediction samples can be performed simultaneously, or one process can be performed before the other. For example, the inter-frame predictor 221 of the encoding device may include a prediction mode determiner 221_1, a motion information derivator 221_2, and a prediction sample derivator 221_3, wherein the prediction mode determiner 221_1 can determine the prediction mode of the current block, the motion information derivator 221_2 can derive motion information about the current block, and the prediction sample derivator 221_3 can derive prediction samples for the current block. For example, the inter-frame predictor of the encoding device can search for blocks similar to the current block within a predetermined region (search region) of the reference image through motion estimation, and can derive reference blocks whose difference from the current block is the minimum value, a predetermined reference level, or fewer. The inter-frame predictor can derive a reference image index based on a reference block, which indicates the reference image in which the reference block is located, and can derive motion vectors based on the positional difference between the reference block and the current block. The encoding device can determine the prediction mode to be applied to the current block from among various prediction modes. The encoding device can compare the rate-distortion (RD) costs of various prediction modes and determine the optimal prediction mode for the current block.
[0110] For example, when a skip mode or merge mode is applied to the current block, the encoding device can construct a merge candidate list and deduce a reference block among the reference blocks indicated by the merge candidates included in the merge candidate list, whose difference from the current block is a minimum or a predetermined reference level or less. In this case, a merge candidate associated with the deduced reference block can be selected, and merge index information indicating the selected merge candidate can be generated and signaled to the decoding device. Motion information about the current block can be deduced using motion information about the selected merge candidate.
[0111] In another example, when the (A)MVP mode is applied to the current block, the encoding device can construct an (A)MVP candidate list and use the motion vector of a motion vector predictor (MVP) candidate selected from the MVP candidates included in the (A)MVP candidate list as the MVP of the current block. For example, in this case, the motion vector of a reference block derived through motion estimation can be used as the motion vector of the current block, and the MVP candidate with the motion vector having the smallest difference from the motion vector of the current block can be the selected MVP candidate. The motion vector difference (MVD) can be derived by subtracting the MVP from the motion vector of the current block. In this case, information about the MVD can be signaled to the decoding device. When the (A)MVP mode is applied, the value of the reference picture index can be configured as reference picture index information and can be signaled to the decoding device separately.
[0112] The encoding device can derive residual samples based on the predicted samples (S510). The encoding device can derive residual samples by comparing the original samples of the current block with the predicted samples.
[0113] The encoding device encodes image information, including prediction information and residual information (S520). The encoding device may output the encoded image information in the form of a bitstream. Prediction information is information related to the prediction process and may include prediction mode information (e.g., skip flag, merge flag, or mode index) and information about motion information. Information about motion information may include candidate selection information (e.g., merge index, MVP flag, or MVP index), which is information used to derive motion vectors. Additionally, information about motion information may include information about MVD and / or reference image index information. Furthermore, information about motion information may include information indicating whether L0 prediction, L1 prediction, or dual prediction is applied. Residual information is information about residual samples. Residual information may include information about the quantized transform coefficients of the residual samples.
[0114] The output bitstream can be stored in a (digital) storage medium and sent to the decoding device, or it can be sent to the decoding device via a network.
[0115] As described above, the encoding device can generate a reconstructed image (including reconstructed samples and reconstructed blocks) based on reference samples and residual samples. This reconstructed image is used by the encoding device to derive the same prediction result as that derived by the decoding device, and is used to improve encoding efficiency. Therefore, the encoding device can store the reconstructed image (or reconstructed samples and reconstructed blocks) in memory and can use it as a reference image for inter-frame prediction. As mentioned above, the in-loop filtering process can be further applied to the reconstructed image.
[0116] For example, a video / image decoding process based on inter-frame prediction can schematically include the following.
[0117] Figure 7 An example of a video / image decoding method based on inter-frame prediction is given, and Figure 8 An inter-frame predictor in a decoding device is illustrated schematically.
[0118] The decoding device can perform operations corresponding to those performed by the encoding device. The decoding device can predict the current block based on the received prediction information and can derive prediction samples.
[0119] Specifically, refer to Figure 7 and Figure 8 The decoding device can determine the prediction mode of the current block based on the prediction information received from the bitstream (S700). The decoding device can determine which inter-frame prediction mode to apply to the current block based on the prediction mode information in the prediction information.
[0120] For example, a merge flag can be used to determine whether to apply a merge mode to the current block or whether to determine (A)MVP mode. Alternatively, a variety of inter-frame prediction mode candidates can be selected based on a merge index. Inter-frame prediction mode candidates can include various inter-frame prediction modes, such as skip mode, merge mode, and / or (A)MVP mode.
[0121] The decoding device derives motion information about the current block based on the determined inter-frame prediction mode (S710). For example, when a skip mode or merge mode is applied to the current block, the decoding device can construct a merge candidate list, as described later, and select a merge candidate from the merge candidates included in the merge candidate list. The selection can be performed based on the selection information (merge index) described above. Motion information about the current block can be derived using the motion information about the selected merge candidate. The motion information about the selected merge candidate can be used as motion information for the current block.
[0122] In another example, when the (A)MVP mode is applied to the current block, the decoding device can construct an (A)MVP candidate list and use the motion vector of a motion vector predictor (MVP) candidate selected from the MVP candidates included in the (A)MVP candidate list as the MVP of the current block. Selection can be performed based on the aforementioned selection information (MVP flag or MVP index). In this case, the decoding device can deduce the MVD of the current block based on information about the MVD, and can deduce the motion vector of the current block based on the MVP and MVD of the current block. Furthermore, the decoding device can deduce the reference image index of the current block based on reference image index information. The image indicated by the reference image index in the reference image list of the current block can be deduced as the reference image referenced by the inter-frame prediction of the current block.
[0123] Motion information about the current block can be derived without constructing a candidate list, in which case the construction of the aforementioned candidate list can be omitted.
[0124] The decoding device can generate a predicted sample for the current block based on the motion information of the current block (S720). In this case, a reference image can be derived based on the reference image index of the current block, and the predicted sample for the current block can be derived using the sample of the reference block indicated by the motion vector of the current block in the reference image. In this case, as described later, a predicted sample filtering process for all or some of the predicted samples of the current block can be further performed as appropriate.
[0125] For example, the inter-frame predictor 332 of the decoding device may include a prediction mode determiner 332_1, a motion information deducer 332_2, and a prediction sample deducer 332_3. The prediction mode determiner 332_1 can determine the prediction mode of the current block based on the received prediction mode information, the motion information deducer 332_2 can deduce the motion information (motion vector and / or reference image index) of the current block based on the received information about motion information, and the prediction sample deducer 332_3 can deduce the prediction samples of the current block.
[0126] The decoding device generates residual samples for the current block based on the received residual information (S730). The decoding device can generate reconstructed samples for the current block based on the predicted samples and residual samples, and can generate a reconstructed image based on the reconstructed samples (S740). Subsequently, as described above, the in-loop filtering process can be further applied to the reconstructed image.
[0127] A prediction block for the current block can be derived based on motion information inferred from the prediction mode of the current block. The prediction block can include prediction samples (an array of prediction samples) of the current block. When the motion vector of the current block indicates a partial sample cell, an interpolation process can be performed, through which the prediction samples of the current block can be derived based on reference samples in a partial sample cell of a reference image. When affine inter-frame prediction is applied to the current block, prediction samples can be generated based on motion vectors (MV) in sample / sub-block cells. When dual prediction is applied, prediction samples derived by a weighted sum or weighted average of prediction samples derived based on L0 prediction (i.e., using reference images in the reference image list L0 and predictions of MVL0) and prediction samples derived based on L1 prediction (i.e., using reference images in the reference image list L1 and predictions of MVL1 (depending on the stage)) can be used as prediction samples for the current block. A true dual prediction is defined as the application of dual prediction where the reference images used for L0 prediction and L1 prediction are located in different time directions relative to the current image (i.e., corresponding to dual prediction and bidirectional prediction).
[0128] As described above, reconstructed samples and reconstructed images can be generated based on the derived predicted samples, and then an in-loop filtering process can be performed.
[0129] In inter-frame prediction, weighted sample prediction can be used. Weighted sample prediction can be referred to as weighted prediction. Weighted prediction can be applied when the slice type of the current slice containing the current block (e.g., CU) is either a P-slice or a B-slice. That is, weighted prediction can be used not only when applying dual prediction but also when applying single prediction. For example, as described below, the weighted prediction can be determined based on `weightedPredFlag`, and the value of `weightedPredFlag` can be determined based on `pps_weighted_pred_flag` (in the case of P-slices) or `pps_weighted_bipred_flag` (in the case of B-slices) as signaled. For example, when `slice_type` is P, `weightedPredFlag` can be set to `pps_weighted_pred_flag`. Otherwise (when `slice_type` is B), `weightedPredFlag` can be set to `pps_weighted_bipred_flag`.
[0130] The predicted samples or values of the predicted samples that are the output of the weighted prediction can be called pbSamples.
[0131] Weighted prediction processes can be broadly categorized into default weighted (sample) prediction processes and explicit weighted (sample) prediction processes. The term "weighted (sample) prediction process" can refer only to the explicit weighted (sample) prediction process. For example, when the value of `weightedPredFlag` is 0, the predicted sample values (pbSamples) can be derived based on the default weighted (sample) prediction process. When the value of `weightedPredFlag` is 1, the predicted sample values (pbSamples) can be derived based on the explicit weighted (sample) prediction process.
[0132] When applying dual prediction to the current block, the predicted samples can be derived based on a weighted average. Typically, the dual prediction signal (i.e., the dual prediction samples) can be derived by simply averaging the L0 prediction signal (L0 predicted sample) and the L1 prediction signal (L1 predicted sample). That is, the dual prediction samples are derived as the average of the L0 predicted sample based on the L0 reference image and MVL0 and the L1 predicted sample based on the L1 reference image and MVL1. However, according to this document, when applying dual prediction, the dual prediction signal (dual prediction samples) can be derived by weighted averaging the L0 and L1 prediction signals.
[0133] Bidirectional optical flow (BDOF) can be used to refine dual prediction signals. BDOF is used to generate prediction samples by computing improved motion information when applying dual predictions to the current block (e.g., CU), and the process of computing improved motion information can be included in the motion information derivation operation.
[0134] For example, BDOF can be applied horizontally in 4x4 sub-blocks. That is, BDOF can be performed in units of 4×4 sub-blocks within the current block. BDOF can only be applied to the luma component. Alternatively, BDOF can only be applied to the chroma component, or it can be applied to both the luma and chroma components.
[0135] As mentioned above, High-Level Syntax (HLS) can encode video / image information for signaling purposes. Video / image information can be included in HLS.
[0136] An encoded image may include one or more slices. The parameters describing the encoded image are indicated by signals in the image header, and the parameters describing the slices are indicated by signals in the slice header. The image header is carried as a separate NAL unit. The slice header is present at the beginning of the NAL unit, which contains the slice's payload (i.e., the slice data).
[0137] Each image is associated with an image header. Images can include different types of slices (intra-coded slices (i.e., I-slices) and inter-coded slices (i.e., P-slices and B-slices)). Therefore, the image header can include the syntax elements required for intra-frame and inter-frame slices of images.
[0138] Images can be divided into sub-images, tiles, and / or slices. The Sequence Parameter Set (SPS) can contain sub-image signaling, and the Picture Parameter Set (PPS) can contain tile and square slice signaling. The slice header can contain raster scan slice signaling.
[0139] When weighted prediction is applied to inter-frame prediction of the current block, weighted prediction can be performed based on information about the weighted prediction.
[0140] The weighted prediction process can begin with two flags in SPS.
[0141] For example, the syntactic elements shown in Table 1 below can be included in the SPS syntactic for weighted prediction.
[0142] [Table 1]
[0143]
[0144] In Table 1, a value of 1 for sps_weighted_pred_flag indicates that the weighted prediction is applied to the P-slice of the reference SPS.
[0145] A value of sps_weighted_bipred_flag equal to 1 indicates that weighted predictions are applied to the B-slice of the reference SPS. A value of sps_weighted_bipred_flag equal to 0 indicates that weighted predictions are not applied to the B-slice of the reference SPS.
[0146] In SPS, two flags are used to indicate whether weighted prediction is applied to P-slices and B-slices in a coded video sequence (CVS).
[0147] The syntax elements shown in Table 2 below can be included in the PPS syntax for weighted prediction.
[0148] [Table 2]
[0149]
[0150] In Table 2, a value of pps_weighted_pred_flag equal to 0 indicates that weighted prediction was not applied to the P-slice of the reference PPS. A value of pps_weighted_pred_flag equal to 1 indicates that weighted prediction was applied to the P-slice of the reference PPS. When the value of sps_weighted_pred_flag is 0, the value of pps_weighted_pred_flag is 0.
[0151] A value of 0 for pps_weighted_bipred_flag indicates that weighted predictions are not applied to the B-slice of the reference PPS. A value of 1 for pps_weighted_bipred_flag indicates that explicit weighted predictions are applied to the B-slice of the reference PPS. When the value of sps_weighted_bipred_flag is 0, the value of pps_weighted_bipred_flag is 0.
[0152] Additionally, the syntax elements shown in Table 3 below can be included in the slice header syntax.
[0153] [Table 3]
[0154]
[0155]
[0156] In Table 3, slice_pic_parameter_set_id indicates the value of pps_pic_parameter_set_id of the PPS used. The value of pps_pic_parameter_set_id is included in the range from 0 to 63.
[0157] The Temporal ID value of the current image must be greater than or equal to the Temporal ID value of the PPS that has the same pps_pic_parameter_set_id as slice_pic_parameter_set_id.
[0158] The prediction weighted table syntax can include information about the weighted predictions shown in Table 4 below.
[0159] [Table 4]
[0160]
[0161]
[0162] In Table 4, luma_log2_weight_denom is the base-2 logarithm of the denominator of all brightness weighting factors. Values of luma_log2_weight_denom are included in the range from 0 to 7.
[0163] delta_chroma_log2_weight_denom is the difference of the base-2 logarithms of the denominators of all chroma weighting factors. When delta_chroma_log2_weight_denom does not exist, delta_chroma_log2_weight_denom is inferred to be 0.
[0164] ChromaLog2WeightDenom is derived as luma_log2_weight_denom + delta_chroma_log2_weight_denom, and its value is included in the range from 0 to 7.
[0165] A value of luma_weight_10_flag[i] equal to 1 indicates the existence of weighting factors for the luminance components predicted using List 0 (L0) of RefPicList[0][i] (reference image). A value of luma_weight_10_flag[i] equal to 0 indicates that these weighting factors do not exist.
[0166] A value of chroma_weight_10_flag[i] equal to 1 indicates the weighting factor for the chroma prediction value predicted using L0 of RefPicList[0][i]. A value of chroma_weight_10_flag[i] equal to 0 indicates that these weighting factors do not exist. When chroma_weight_10_flag[i] does not exist, chroma_weight_10_flag[i] is inferred to be 0.
[0167] delta_luma_weight_10[i] is the difference in the weighting factor applied to the luma prediction value predicted using L0 of RefPicList[0][i].
[0168] LumaWeightL0[i] is inferred to be (1<<luma_log2_weight_denom)+delta_luma_weight_l0[i]. When luma_weight_10_flag[i] is 1, the value of delta_luma_weight_10[i] is included in the range from -128 to 127. When luma_weight_10_flag[i] is 0, LumaWeightL0[i] is inferred to be 2 luma _log2_weight_denom 。
[0169] luma_offset_10[i] is the cumulative offset applied to the luma prediction value predicted using L0 of RefPicList[0][i]. The value of luma_offset_10[i] is included in the range from -128 to 127. When the value of luma_weight_10_flag[i] is 0, the value of luma_offset_10[i] is inferred to be 0.
[0170] delta_chroma_weight_l0[i][j] is the difference in the weighting factor applied to the chroma prediction value predicted using L0 of RefPicList[0][i], where for Cb, j is 0, and for Cr, j is 1.
[0171] ChromaWeightL0[i][j] is derived as (1 << Chromalog2WeightDenom) + delta_chroma_weight_l0[i][j]. When chroma_weight_10_flag[i] is 1, the value of delta_chroma_weight_10[i][j] is included in the range from -128 to 127. When chroma_weight_l0_flag[i] is 0, ChromaWeightL0[i][j] is inferred as 2 ChromaLog2WeightDenom .
[0172] delta_chroma_offset_l0[i][j] is the cumulative offset applied to the chroma prediction value for L0 prediction using RefPicList[0][i], where for Cb, j is 0, and for Cr, j is 1.
[0173] The value of delta_chroma_offset_10[i][j] is included in the range from -4 × 128 to 4 × 127. When the value of chroma_weight_10_flag[i] is 0, the value of ChromaOffsetL0[i][j] is inferred as 0.
[0174] The prediction weighted table syntax is often used to modify sequences at scene changes. When the PPS flag for weighted prediction is enabled and the slice type is P, or when the PPS flag for weighted bi-prediction is enabled and the slice type is B, the existing prediction weighted table syntax is signaled in the slice header. However, typically, when there is a scene change, it is necessary to adjust the prediction weighted table for one or more frames. Usually, when multiple frames share a PPS, it may not be necessary to signal the information about weighted prediction for all frames with respect to the reference PPS.
[0175] The following figures are provided to describe specific examples of this document. Since specific terms of the devices illustrated in the figures or specific signal / message terms are used for illustration, the technical features of this disclosure are not limited to the specific terms used in the following figures.
[0176] This document provides the following methods to solve the above problems. These methods can be applied independently or can also be used in combination with each other.
[0177] 1. The tool for weighted prediction (information about weighted prediction) can be applied at the picture level instead of the slice level. The weighted value is applied to a specific reference picture of the picture and is used for all slices of the picture.
[0178] 2. The prediction weighting table syntax can be signaled at the picture level rather than the slice level. For this purpose, the prediction weighting table syntax can be signaled in the picture header (PH) or picture parameter set (PPS).
[0179] 3. When weighted prediction is applied to an image, all slices in the image can have the same active reference image. This includes the order of the active reference images in the Reference Image List (RPL) (i.e., L0 of slice P, L0 and L1 of slice B).
[0180] 4. Alternatively, when the above does not apply, the following may apply.
[0181] a. The signaling for weighted prediction is independent of the signaling for the reference image list. That is, there are no assumptions about the order of the reference images in the reference image list in the signaling for the weighted prediction table.
[0182] b. Signaling for weighted predictions without a reference image in L0 and L1. For reference images, weighted values are provided directly.
[0183] c. Only one loop, not two, should be used to signal the weighted values of the reference images. Within each loop, the reference images associated with the signaled weighted values are first identified.
[0184] d. Reference image recognition is based on the image sequence count (POC) value.
[0185] e. For bit saving, the incremental POC value between the reference image and the current image can be signaled instead of the POC value of the reference image.
[0186] 5. In addition to item 4, in order to signal the incremental POC value between the reference image and the current image, the following can be applied so that the absolute incremental POC value can be signaled as follows.
[0187] a. The first incremental POC notified by the signal is the increment between the POC of the reference image and the POC of the current image.
[0188] b. The remaining incremental POCs notified by signals (i.e., the case where i starts from 1) are the increments between the POC of the i-th reference image and the POC of the (i-1)-th reference image.
[0189] 6. The two flags in PPS can be unified into a single control flag (e.g., pps_weighted_pred_flag). This flag can be used to indicate the presence of additional flags in the image header.
[0190] a. Flags in PH can be conditional on the PPS flag, and can further indicate the presence of pred_weighted_table() data (predictive weighted table syntax) when the NAL unit type is not Instantaneous Decoding Refresh (IDR).
[0191] 7. The two flags (pps_weighted_pred_flag and pps_weighted_bipred_flag) that are signaled in PPS can be unified into a single flag. This single flag can use the existing name of pps_weighted_pred_flag.
[0192] 8. A signal flag can be included in the image header to indicate whether weighted prediction is applied to the image associated with the image header. This flag can be called `pic_weighted_pred_flag`.
[0193] a. The existence of pic_weighted_pred_flag is conditional on the value of pps_weighted_pred_flag. When the value of pps_weighted_pred_flag is 0, pic_weighted_pred_flag does not exist, and its value can be inferred to be 0.
[0194] b. When the value of pic_weighted_pred_flag is 1, the image header may contain the signaling of pred_weighted_table().
[0195] 9. Alternatively, when weighted prediction is enabled (i.e., pps_weighted_pred_flag is 1 or pps_weighted_bipred_flag is 1), information about weighted prediction may still be present in the slice header, and the following may apply.
[0196] a. A new flag can be signaled to indicate whether information about weighted prediction exists in the slice header. This flag can be called `slice_weighted_pred_present_flag`.
[0197] b. The existence of slice_weighted_pred_present_flag can be determined based on the slice type and the values of pps_weighted_pred_flag and pps_weighted_bipred_flag.
[0198] In this document, information regarding weighted prediction may include information / syntax elements related to weighted prediction as described in Tables 1 through 4. Video / image information may include various inter-frame prediction information, such as information about weighted prediction, residual information, and inter-frame prediction mode information. Inter-frame prediction mode information may include information / syntax elements such as information indicating whether a merge mode or MVP mode is applied to the current block, and selection information for selecting one of the motion candidates from the motion candidate list. For example, when a merge mode is applied to the current block, a merge candidate list is constructed based on the neighboring blocks of the current block, and a candidate can be selected / used from the merge candidate list (based on the merge index) to derive motion information about the current block. In another example, when the MVP mode is applied to the current block, an MVP candidate list can be constructed based on the neighboring blocks of the current block, and a candidate can be selected / used from the MVP candidate list (based on the MVP flag) to derive motion information about the current block.
[0199] In one implementation, for weighted prediction in inter-frame prediction, PPS may include the syntax elements shown in Table 5 below, and the semantics of the syntax elements may be as shown in Table 6 below.
[0200] [Table 5]
[0201]
[0202] [Table 6]
[0203]
[0204] Referring to Tables 5 and 6, a value of 0 for pps_weighted_pred_flag indicates that weighted prediction was not applied to the P or B slice of the reference PPS. A value of 1 for pps_weighted_pred_flag indicates that weighted prediction was applied to the P or B slice of the reference PPS.
[0205] In addition, the image header may include the syntax elements shown in Table 7 below, and the semantics of the syntax elements may be as shown in Table 8 below.
[0206] [Table 7]
[0207]
[0208] [Table 8]
[0209]
[0210] Referring to Tables 7 and 8, a value of 0 for pic_weighted_pred_flag indicates that weighted prediction was not applied to the P or B slices of the reference image header. A value of 1 for pic_weighted_pred_flag indicates that weighted prediction was applied to the P or B slices of the reference image header.
[0211] When pic_weighted_pred_flag is 1, all slices in the image associated with the image header can have the same list of reference images. Otherwise, when pic_weighted_pred_flag is 1, pic_rpl_present_flag can be 1.
[0212] If the above conditions are not met, pic_weighted_pred_flag can be notified by a signal, as shown in Table 9 below.
[0213] [Table 9]
[0214]
[0215] In addition, the slice header may include the syntax elements shown in Table 10 below.
[0216] [Table 10]
[0217]
[0218] Furthermore, the prediction weighted table syntax can include the syntax elements shown in Table 11 below, and the semantics of the syntax elements can be shown in Table 12 below.
[0219] [Table 11]
[0220]
[0221]
[0222] [Table 12]
[0223]
[0224] Referring to Tables 11 and 12, num_10_weighted_ref_pics can indicate the number of weighted reference images in reference image list 0. The value of num_10_weighted_ref_pics is included in the range from 0 to MaxDecPicBuffMinus1+14.
[0225] `num_11_weighted_ref_pics` indicates the number of weighted reference images in reference image list 1. The value of `num_11_weighted_ref_pics` is included in the range from 0 to `MaxDecPicBuffMinus1+14`.
[0226] The value of luma_weight_10_flag[i] equal to 1 indicates the existence of a weighting factor for the luminance component predicted using list 0 (L0) of RefPicList[0][i].
[0227] A value of chroma_weight_10_flag[i] equal to 1 indicates the presence of weighting factors for the chroma predictions using L0 predictions from RefPicList[0][i]. A value of chroma_weight_10_flag[i] equal to 0 indicates the absence of these weighting factors.
[0228] A value of 1 for luma_weight_11_flag[i] indicates the existence of a weighting factor for the luminance component predicted using list 1 (L1) of RefPicList[0][i].
[0229] `chroma_weight_11_flag[i]` indicates the presence of weighting factors for the chroma predictions using L1 predictions from `RefPicList[0][i]`. A value of 0 for `chroma_weight_10_flag[i]` indicates that these weighting factors do not exist.
[0230] For example, when applying weighted prediction to the current block, the encoding device can generate information about the number of weighted reference images in the reference image list for the current block based on the weighted prediction. This quantity information can refer to the number of weights signaled for items (reference images) in the L0 and / or L1 reference image lists. That is, the value of the quantity information can be equal to the number of weighted reference images in the reference image lists (L0 and / or L1). Therefore, when the value of the quantity information is n, the prediction weighting table syntax can include n weighting factor-related flags for the reference image list. These weighting factor-related flags can correspond to luma_weight_l0_flag, luma_weight_l1_flag, chroma_weight_l0_flag, and / or chroma_weight_l0_flag in Table 11. The weights of the current image can be derived based on these weighting factor-related flags.
[0231] When weighted double prediction is applied to the current block, the prediction weighting table syntax can independently include information about the number of weighted reference images in the L1 reference image list and information about the number of weighted reference images in the L0 reference image list, as shown in Table 11. Weighting factor-related flags can be independently included for each of the information about the number of weighted reference images in the L1 and L0 reference image lists. That is, the prediction weighting table syntax can include the same number of `luma_weight_l0_flag` and / or `chroma_weight_l0_flag` as the number of weighted reference images in the L0 reference image list, and can include the same number of `luma_weight_l1_flag` and / or `chroma_weight_l1_flag` as the number of weighted reference images in the L1 reference image list.
[0232] The encoding device can encode image information including quantity information and weighting factor related flags, and can output the encoded image information in the form of a bitstream. Here, the prediction weighting table syntax in the image information, as shown in Table 11, can include quantity information and weighting factor related flags. The prediction weighting table syntax can be included in the image header or the slice header of the image information. To indicate whether the prediction weighting table syntax is included in the image header, that is, to indicate whether information about weighted prediction exists in the image header, weighted prediction related flags can be included in the image parameter set and / or the image header. When weighted prediction related flags are included in the image parameter set, they can correspond to pps_weighted_pred_flag in Table 5. When weighted prediction related flags are included in the image header, they can correspond to pic_weighted_pred_flag in Table 7. Alternatively, pps_weighted_pred_flag and pic_weighted_pred_flag can be included in the image information to indicate whether the prediction weighted table syntax is included in the image header.
[0233] When parsing weighted prediction-related flags from a bitstream, the decoding device can parse the prediction weighted table syntax from the bitstream based on the parsed flags. Weighted prediction-related flags can be parsed from the picture parameter set and / or the picture header of the bitstream. In other words, weighted prediction-related flags may include pps_weighted_pred_flag and / or pic_weighted_pred_flag. When the value of pps_weighted_pred_flag and / or pic_weighted_pred_flag is 1, the decoding device can parse the prediction weighted table syntax from the picture header of the bitstream.
[0234] When the prediction weighted table syntax is parsed from the image header (when the values of pps_weighted_pred_flag and / or pic_weighted_pred_flag are 1), the decoding device can apply the information about weighted predictions included in the prediction weighted table syntax to all slices in the current image. In other words, when the prediction weighted table syntax is parsed from the image header, all slices in the image associated with the image header can have the same list of reference images.
[0235] The decoding device can parse the number of weighted reference images in the reference image list for the current block based on the prediction weighting table syntax. The value of the number information can be equal to the number of weighted reference images in the reference image list. When weighted double prediction is applied to the current block, the decoding device can independently parse the number of weighted reference images in the L1 reference image list and the L0 reference image list from the prediction weighting table syntax.
[0236] The decoding device can parse the weighting factor-related flags of the reference image list from the prediction weighting table syntax based on the quantity information. The weighting factor-related flags can correspond to `luma_weight_l0_flag`, `luma_weight_l1_flag`, `chroma_weight_l0_flag`, and / or `chroma_weight_l0_flag` in Table 11. For example, when the quantity information value is n, the decoding device can parse n weighting factor-related flags from the prediction weighting table syntax. The decoding device can deduce the weights of the reference images for the current block based on the weighting factor-related flags, and can perform weighted prediction on the current block based on the weights, thereby generating or deduce prediction samples. Subsequently, the decoding device can generate or deduce reconstructed samples for the current block based on the prediction samples, and can reconstruct the current image based on the reconstructed samples.
[0237] In another implementation, for weighted prediction in inter-frame prediction, the image header may include the syntax elements shown in Table 13 below, and the semantics of the syntax elements may be as shown in Table 14 below.
[0238] [Table 13]
[0239]
[0240] [Table 14]
[0241]
[0242] Referring to Tables 13 and 14, a value of pic_weighted_pred_flag equal to 0 indicates that weighted prediction was not applied to the P or B slices of the reference image header. A value of pic_weighted_pred_flag equal to 1 indicates that weighted prediction was applied to the P or B slices of the reference image header. When the value of sps_weighted_pred_flag is 0, the value of pic_weighted_pred_flag is 0.
[0243] The slice header can include the syntax elements shown in Table 15 below.
[0244] [Table 15]
[0245]
[0246]
[0247] Referring to Table 15, the weighted prediction-related flag (pic_weighted_pred_flag) can indicate whether the prediction weighted table syntax (information about weighted prediction) exists in the image header or the slice header. A value of pic_weighted_pred_flag equal to 1 indicates that the prediction weighted table syntax (information about weighted prediction) may exist in the image header, but not in the slice header. A value of pic_weighted_pred_flag equal to 0 indicates that the prediction weighted table syntax (information about weighted prediction) may exist in the slice header, but not in the image header. Although Tables 13 and 14 show that the weighted prediction-related flag is signaled in the image header, it can also be signaled in the image parameter set.
[0248] For example, when applying weighted prediction to the current block, the encoding device performs weighted prediction and can encode image information including weighted prediction-related flags and prediction weighting table syntax based on the weighted prediction. Here, when the prediction weighting table syntax is included in the image header of the image information, the encoding device can determine that the flag value is 1, and when the prediction weighting table syntax is included in the slice header of the image information, the encoding device can determine that the flag value is 0. When the flag value is 1, the information about weighted prediction included in the prediction weighting table syntax can be applied to all slices in the current image. When the flag value is 0, the information about weighted prediction included in the prediction weighting table syntax can be applied to the slices in the current image associated with the slice header. Therefore, when the image header includes the prediction weighting table syntax, all slices in the image associated with the image header can have the same list of reference images, and when the slice header includes the prediction weighting table syntax, the slices associated with the slice header can have the same list of reference images.
[0249] The prediction weighting table syntax may include information such as the number of weighted reference images in the reference image list for the current block, weighting factor related flags, etc. As mentioned above, the quantity information may refer to the number of weights signaled for items (reference images) in the L0 and / or L1 reference image lists, and the value of the quantity information may be equal to the number of weighted reference images in the reference image lists (L0 and / or L1). Therefore, when the value of the quantity information is n, the prediction weighting table syntax may include n weighting factor related flags for the reference image lists. The weighting factor related flags may correspond to luma_weight_l0_flag, luma_weight_l1_flag, chroma_weight_l0_flag, and / or chroma_weight_l0_flag in Table 11.
[0250] When weighted double prediction is applied to the current block, the encoding device can generate a prediction weighting table syntax that includes information about the number of weighted reference images in the L1 reference image list and information about the number of weighted reference images in the L0 reference image list. The prediction weighting table syntax can independently include weighting factor-related flags for each of the information about the number of weighted reference images in the L1 reference image list and the L0 reference image list. That is, the prediction weighting table syntax can include the same number of `luma_weight_l0_flag` and / or `chroma_weight_l0_flag` as the number of weighted reference images in the L0 reference image list, and can include the same number of `luma_weight_l1_flag` and / or `chroma_weight_l1_flag` as the number of weighted reference images in the L1 reference image list.
[0251] When parsing weighted prediction related flags from a bitstream, the decoding device can parse the prediction weighted table syntax from the bitstream based on the parsed flags. The weighted prediction related flags can be parsed from the picture parameter set and / or the picture header of the bitstream. In other words, the weighted prediction related flags can correspond to `pps_weighted_pred_flag` and / or `pic_weighted_pred_flag`. When the value of a weighted prediction related flag is 1, the decoding device can parse the prediction weighted table syntax from the picture header of the bitstream. When the value of a weighted prediction related flag is 0, the decoding device can parse the prediction weighted table syntax from the slice header of the bitstream.
[0252] When the prediction weighted table syntax is parsed from the image header, the decoding device can apply the information about weighted predictions included in the prediction weighted table syntax to all slices in the current image. In other words, when the prediction weighted table syntax is parsed from the image header, all slices in the image associated with the image header can have the same list of reference images. When the prediction weighted table syntax is parsed from the slice header, the decoding device can apply the information about weighted predictions included in the prediction weighted table syntax to the slices in the current image associated with the slice header. In other words, when the prediction weighted table syntax is parsed from the image header, the slices associated with the slice header can have the same list of reference images.
[0253] The decoding device can parse the number of weighted reference images in the reference image list for the current block based on the prediction weighting table syntax. The value of the number information can be equal to the number of weighted reference images in the reference image list. When weighted double prediction is applied to the current block, the decoding device can independently parse the number of weighted reference images in the L1 reference image list and the number of weighted reference images in the L0 reference image list from the prediction weighting table syntax.
[0254] The decoding device can parse the weighting factor-related flags of the reference image list from the prediction weighting table syntax based on the quantity information. The weighting factor-related flags can correspond to the aforementioned `luma_weight_l0_flag`, `luma_weight_l1_flag`, `chroma_weight_l0_flag`, and / or `chroma_weight_l0_flag`. For example, when the quantity information value is n, the decoding device can parse n weighting factor-related flags from the prediction weighting table syntax. The decoding device can deduce the weights of the reference images for the current block based on the weighting factor-related flags, and can perform inter-frame predictions for the current block based on the weights, thereby generating or deduce prediction samples. The decoding device can generate or deduce reconstructed samples for the current block based on the prediction samples, and can generate a reconstructed image of the current image based on the reconstructed samples.
[0255] In another embodiment, the prediction weighted table syntax may include the syntax elements shown in Table 16 below, and the semantics of the syntax elements may be as shown in Table 17 below.
[0256] [Table 16]
[0257]
[0258] [Table 17]
[0259]
[0260]
[0261] In Tables 16 and 17, when pic_poc_delta_sign[i] does not exist, pic_poc_delta_sign[i] is inferred to be 0. DeltaPocWeightedRefPic[i] can be derived as follows, where i is included in the range from 0 to num_weighted_ref_pics_minus1.
[0262] [Equation 1]
[0263]
[0264] Chromaweight[i][j] can be derived as (1 << Chromalog2WeightDenom) + delta_chroma_weight[i][j]. When the value of chroma_weight_flag[i] is 1, the value of delta_chroma_weight[i][j] is included in the range from -128 to 127. When the value of chroma_weight_flag[i] is 0, Chromaweight[i][j] can be derived as 2Chromalog2WeightDenom.
[0265] ChromaOffset[i][j] can be derived as follows.
[0266] [Equation 2]
[0267]
[0268] The value of delta_chroma_offset[i][j] can be included in the range from -4 × 128 to 4 × 127. When the value of chroma_weight_flag[i] is 0, the value of ChromaOffset[i][j] is inferred to be 9.
[0269] sumweightflags can be derived as the sum of luma_weight_flag[i] + 2 × chroma_weight_flag[i]. i is included in the range from 0 to num_weighted_ref_pics_minus1. When slice_type is P, sumweightl0flags is less than or equal to 24.
[0270] When the current slice is a P slice or a B slice and the value of pic_weighted_pred_flag is 1, L0ToWeightedRefIdx[i] can represent the mapping between the index in the weighted reference image list and the i-th reference image L0. i is included in the range from 0 to NumRefIdxActive[0]-1, and can be derived as follows.
[0271] [Formula 3]
[0272]
[0273] When the current slice is slice B and the value of pic_weighted_pred_flag is 1, L1ToWeightedRefIdx[i] can represent the mapping between the index in the weighted reference image list and the i-th active reference image L1. i is included in the range from 0 to NumRefIdxActive[1]-1, and can be derived as follows.
[0274] [Formula 4]
[0275]
[0276] When luma_weight_l0_flag[i] appears, luma_weight_l0_flag[i] is replaced by luma_weight_flag[L0ToWeightedRefIdx[i]], and when luma_weight_l1_flag[i] appears, luma_weight_l1_flag[i] is replaced by luma_weight_flag[L1ToWeightedRefIdx[i]].
[0277] When LumaWeightL0[i] appears, LumaWeightL0[i] is replaced by LumaWeight[L0ToWeightedRefIdx[i]], and when LumaWeightL1[i] appears, LumaWeightL1[i] is replaced by LumaWeight[L1ToWeightedRefIdx[i]].
[0278] When luma_offset_l0[i] appears, luma_offset_l0[i] is replaced by luma_offset[L0ToWeightedRefIdx[i]], and when luma_offset_l1[i] appears, luma_offset_l1[i] is replaced by luma_offset[L1ToWeightedRefIdx[i]].
[0279] When ChromaWeightL0[i] appears, ChromaWeightL0[i] is replaced by ChromaWeight[L0ToWeightedRefIdx[i]], and when ChromaWeightL1[i] appears, ChromaWeightL1[i] is replaced by ChromaWeight[L1ToWeightedRefIdx[i]].
[0280] In another embodiment, the slice header syntax may include the syntax elements shown in Table 18 below, and the semantics of the syntax elements may be shown in Table 19 below.
[0281] [Table 18]
[0282]
[0283] [Table 19]
[0284]
[0285] Referring to Tables 18 and 19, a flag indicating the presence of the prediction weighted table syntax can be used in the slice header. This flag can be signaled in the slice header and can be referred to as slice_weight_pred_present_flag.
[0286] A value of 1 for `slice_weight_pred_present_flag` indicates that the prediction weighting table syntax is present in the slice header. A value of 0 for `slice_weight_pred_present_flag` indicates that the prediction weighting table syntax is not present in the slice header. In other words, a value of 0 for `slice_weight_pred_present_flag` indicates that the prediction weighting table syntax is present in the image header.
[0287] In another implementation, the predicted weighted table syntax is parsed from the slice header, but the set of adaptation parameters included in the syntax elements shown in Table 20 below can be signaled.
[0288] [Table 20]
[0289]
[0290] Each APS RBSP needs to be available for the decoding process before being included for use as a reference in at least one access unit, the access unit having a TemporalId less than or equal to the TemporalId of the encoded slice NAL unit, which references the APS RBSP or is provided by an external method.
[0291] The `aspLayerId` can be referred to as the `nuh_layer_id` of an APS NAL unit. When the layer with a `nuh_layer_id` equal to `aspLayerId` is an independent layer (i.e., when `vps_independent_layer_flag[GeneralLayerIdx[aspLayerId]]` is 1), the APS NAL unit, including the APS RBSP, has the same `nuh_layer_id` as the coded slice NAL of the reference APS RBSP. Otherwise, the APS NAL unit, including the APS RBSP, has the same `nuh_layer_id` as the coded slice NAL unit of the reference APS RBSP or the `nuh_layer_id` of the directly dependent layer of the layer including the coded slice NAL unit of the reference APS RBSP.
[0292] All APS NAL units in the access unit that have specific values for adaptation_parameter_set_id and aps_params_type have the same content.
[0293] The adaptation_parameter_set_id provides an identifier for the APS so that other syntax elements can refer to the identifier.
[0294] When aps_params_type is ALF_APS, SCALING_APS, or PRED_WEIGHT_APS, the value of adaptation_parameter_set_id is included in the range from 0 to 7.
[0295] When aps_params_type is LMCS_APS, the value of adaptation_parameter_set_id is included in the range from 0 to 3.
[0296] aps_params_type indicates the type of APS parameters included in the APS, as shown in Table 21 below. When the value of aps_params_type is 1 (LMCS_APS), the value of adaptation_parameter_set_id is included in the range from 0 to 3.
[0297] [Table 21]
[0298]
[0299] Each type of APS uses a separate value space for adaptation_parameter_set_id.
[0300] APS NAL units (with specific values for adaptation_parameter_set_id and aps_params_type) can be shared between images, and different slices in an image can reference different ALF APSs.
[0301] A value of 0 for `aps_extension_flag` indicates that the `aps_extension_data_flag` syntax element does not exist in the APSRBSP syntax structure. A value of 1 for `aps_extension_flag` indicates that the `aps_extension_data_flag` syntax element exists in the APSRBSP syntax structure.
[0302] aps_extension_data_flag can have random values.
[0303] As mentioned above, a new aps_params_type (PRED_WEIGHT_APS) can be added to the existing type. Furthermore, the slice header can be modified to signal the APS ID instead of pred_weight_table(), as shown in Table 22 below.
[0304] [Table 22]
[0305]
[0306] In Table 22, slice_pred_weight_aps_id indicates the adaptation_parameter_set_id of the prediction weighting table APS. The TemporalId of the APS NAL unit with the same aps_params_type as PERD_WEIGHT_APS and the same adaptation_parameter_set_id as slice_pred_weight_aps_id is less than or equal to the TemporalId of the encoded slice NAL unit.
[0307] When the slice_pred_weight_aps_id syntax element exists in the slice header, the value of slice_pred_weight_aps_id is the same for all slices of the image.
[0308] In this case, the prediction weighting table syntax shown in Table 23 below can be signaled.
[0309] [Table 23]
[0310]
[0311]
[0312] In Table 23, a value of 1 for num_lists_active_flag indicates that the prediction weighting table information is signaled for a single list of reference images. A value of 0 for num_lists_active_flag indicates that the prediction weighting table information for two lists of reference images, L0 and L1, is not signaled.
[0313] numRefIdxActive[i] can be used to indicate the number of active reference indices. The value of numRefIdxActive[i] ranges from 0 to 14.
[0314] The syntax of Table 23 indicates whether information about one or two lists was parsed in the APS when num_lists_active_flag was parsed.
[0315] Instead of Table 23, the prediction weighted table syntax shown in Table 24 below can be used.
[0316] [Table 24]
[0317]
[0318]
[0319] In Table 24, a value of 1 for num_lists_active_flag indicates that prediction weighting table information is signaled for a list of reference images. A value of 0 for num_lists_active_flag indicates that prediction weighting table information is not signaled for two lists of reference images.
[0320] Figure 9 and Figure 10 Examples of video / image encoding methods and related components according to the embodiments of this document are illustrated schematically.
[0321] Figure 9 The publicly disclosed video / image coding methods can be derived from... Figure 2 and Figure 10 The (video / image) encoding device 200 disclosed herein performs the operation. Specifically, for example, Figure 9 S900 and S910 can be executed by the predictor 220 of the encoding device 200, and S920 can be executed by the entropy encoder 240 of the encoding device 200. Figure 9 The video / image encoding methods disclosed herein may include the embodiments described above.
[0322] Specifically, refer to Figure 9 and Figure 10 The predictor 220 of the encoding device can deduce motion information about the current block in the current image based on motion estimation (S900). For example, the encoding device can use the original block in the original image to search for similar reference blocks with high correlation to the current block in a predetermined search range in the reference image, on a partial pixel basis, and thus deduce motion information. The similarity of the blocks can be deduced based on the difference between sample values based on the stage. For example, the similarity of the blocks can be calculated based on the sum of the absolute differences (SAD) between the current block (or a template of the current block) and the reference block (or a template of the reference block). In this case, the motion information can be deduced based on the reference block with the minimum SAD in the search area. According to various methods, based on the inter-frame prediction mode, the deduced motion information can be signaled to the decoding device.
[0323] The predictor 220 of the encoding device can perform intra-frame prediction or inter-frame prediction on the current block based on motion information about the current block, thereby generating prediction samples (prediction blocks) and prediction-related information for the current block. Prediction-related information may include prediction mode information (merging mode, skipping mode, etc.), information about motion information, etc. Information about motion information may include candidate selection information (e.g., merge index, MVP flag, or MVP index), which is information used to derive motion vectors. Furthermore, information about motion information may include information about the aforementioned MVD and / or reference picture index information. Additionally, information about motion information may include information indicating whether L0 prediction, L1 prediction, or double prediction is applied. For example, when the current slice type is a P-slice or a B-slice, the predictor 220 can perform weighted prediction on the current block in the current slice. Weighted prediction can be used not only when double prediction is applied to the current block, but also when single prediction is applied to the current block.
[0324] Furthermore, the predictor 220 of the encoding device can perform weighted prediction based on motion information, thereby generating weighting factor-related information for a list of reference images for weighted prediction and information about the number of weighted reference images in the list of reference images (S910). In this case, the entropy encoder 240 of the encoding device can encode the image information including the weighting factor-related information and the quantity information (S920). The quantity information can be included in the prediction weighting table syntax in the image information, and even in this case, the prediction weighting table syntax can be included in the image header in the image information. Here, the value of the quantity information can be the same as the number of weighted reference images in the list of reference images. The prediction weighting table syntax can include as many weighting factor-related flags as the value of the quantity information. For example, when the value of the quantity information is n, the prediction weighting table syntax can include n weighting factor-related flags. When weighted double prediction is applied, the prediction weighting table syntax can independently include the quantity information and / or the weighting factor-related flags for each of L0 and L1. In other words, information about the number of weighted reference images in L0 and information about the number of weighted reference images in L1 can be signaled independently in the prediction weighted table syntax without depending on each other (not depending on the number of active reference images in each list).
[0325] The residual processor 230 of the encoding device can generate residual samples and residual information based on the predicted samples generated by the predictor 220 and the original images (original blocks and original samples). Here, the residual information is information about the residual samples and may include information about the (quantization) transform coefficients used for the residual samples.
[0326] The adder (or reconstructor) of the encoding device can generate reconstructed samples (reconstructed images, reconstructed blocks, or arrays of reconstructed samples) by adding the residual samples generated by the residual processor 230 and the predicted samples generated by the predictor 220.
[0327] The entropy encoder 240 of the encoding device can encode image information, which includes prediction-related information generated by the predictor 220, residual information generated by the residual processor 230, flags (information) related to weighted prediction, prediction weighting table syntax, etc.
[0328] For example, the entropy encoder 240 of the encoding device can encode image information based on at least one of Tables 5 to 23, and can output the encoded image information in the form of a bitstream. Specifically, the entropy encoder 240 of the encoding device can determine the value of a flag related to weighted prediction based on the prediction weighting table syntax of this document included in the image header of the image information, and can determine the value of the flag related to weighted prediction to 0 based on the prediction weighting table syntax included in the image header of the image information. Alternatively, the entropy encoder 240 of the encoding device can determine the value of a flag related to weighted prediction to 1 based on the information about weighted prediction included in the prediction weighting table syntax being applied to all slices in the current image including the current block, and can determine the value of a flag related to weighted prediction to 0 based on the information about weighted prediction included in the prediction weighting table syntax being applied to slices in the current image associated with the slice header. When the prediction weighting table syntax is included in the image header, all slices associated with the image header in the image can have the same list of reference images, and when the prediction weighting table syntax is included in the slice header, the slices associated with the slice header can have the same list of reference images. Flags related to weighted prediction can be included in the image header of the image parameter set or image information and sent to the decoding device. Flags related to weighted prediction can be information indicating whether there is information about weighted prediction in the image header.
[0329] Figure 11 and Figure 12 Examples of video / image decoding methods and related components according to embodiments of this document are illustrated schematically.
[0330] Figure 11 The publicly disclosed video / image decoding method can be used by Figure 3 and Figure 12 The (video / image) decoding device 300 disclosed herein performs the operation. Specifically, for example, Figure 11 S1100 to S1120 can be executed by the entropy decoder 310 of the decoding device. Figure 11S1130 can be executed by the predictor 330 of the decoding device, and S1140 can be executed by the residual processor 320 of the decoding device. Figure 11 S1150 can be executed by the adder 340 of the decoding device. Figure 11 The video / image decoding methods disclosed herein may include the embodiments described above.
[0331] refer to Figure 11 and Figure 12 The entropy decoder 310 of the decoding device can parse the flags related to weighted prediction from the bitstream, and can parse the prediction weighted table syntax from the bitstream based on the flags related to weighted prediction (S1100). The flags related to weighted prediction can be parsed from the picture parameter set or the picture header of the bitstream, and can indicate whether information about weighted prediction (predicted weighted table syntax) exists in the picture header. For example, when the value of the flag related to weighted prediction is 1, the entropy decoder 310 of the decoding device can parse the prediction weighted table syntax from the picture header of the bitstream, and when the value of the flag related to weighted prediction is 0, the entropy decoder 310 of the decoding device can parse the prediction weighted table syntax from the slice header of the bitstream. When the value of the flag related to weighted prediction is 1, the information about weighted prediction included in the prediction weighted table syntax can be applied to all slices in the current picture, and when the value of the flag related to weighted prediction is 0, the information about weighted prediction included in the prediction weighted table syntax can be applied to the slices in the current picture associated with the slice header. When parsing the prediction weighted table syntax from the image header, all slices in the image associated with the image header can have the same list of reference images, and when parsing the prediction weighted table syntax from the slice header, the slices associated with the slice header can have the same list of reference images.
[0332] The entropy decoder 310 of the decoding device can parse information about the number of weighted reference images in the reference image list from the prediction weighted table syntax (S1110). The value of the quantity information can be the same as the number of weighted reference images in the reference image list. The entropy decoder 310 of the decoding device can parse or derive as many weighting factor related flags as the value of the quantity information from the prediction weighted table syntax based on the quantity information (S1120). For example, when the value of the quantity information is n, the prediction weighted table syntax can include n weighting factor related flags. When applying weighted double prediction, the prediction weighted table syntax can independently include the quantity information and / or weighting factor related flags for each of L0 and L1. In one example, the information about the number of weighted reference images in L0 and the information about the number of weighted reference images in L1 can be parsed independently in the prediction weighted table syntax without depending on each other (not depending on the number of active reference images in each list).
[0333] The decoding device can perform weighted prediction on the current block in the current image based on prediction-related information (inter-frame / intra-frame prediction classification information, intra-frame prediction mode information, inter-frame prediction mode information, information about weighted prediction, etc.) obtained from the bitstream, thereby reconstructing the current image. Here, the information about weighted prediction can include the prediction weighting table syntax. For example, the predictor 330 of the decoding device can deduce the weights of the weighted prediction based on the weighting factor-related flags parsed from the quantity information in the prediction weighting table syntax. Specifically, if the value of the quantity information in the prediction weighting table syntax is n, the predictor 330 of the decoding device can parse n weighting factor-related flags from the prediction weighting table syntax. The predictor 330 of the decoding device can perform weighted prediction on the current block based on the weights, thereby deduce the prediction sample for the current block (S1130).
[0334] The residual processor 320 of the decoding device can generate residual samples based on the residual information obtained from the bitstream (S1140). The adder 340 of the decoding device can generate reconstructed samples based on the predicted samples generated by the predictor 330 and the residual samples generated by the residual processor 320. The adder 340 of the decoding device can generate a reconstructed image (reconstructed block) based on the reconstructed samples (S1150).
[0335] Subsequently, if needed, in-loop filtering processes (such as deblocking filtering, SAO, and / or ALF) can be applied to the reconstructed image to improve the quality of subjective / objective images.
[0336] Although the method has been described above based on a flowchart in which steps or boxes are listed in sequence, the steps in this document are not limited to a particular order, and a step may be performed in different steps, in different orders, or simultaneously with respect to the above order. Furthermore, those skilled in the art will understand that the steps in the flowchart are not exclusive, and one or more steps may be included or removed from the flowchart without affecting the scope of this document.
[0337] The methods mentioned above in this document can be in the form of software, and the encoding and / or decoding devices according to this document can be included in a device for performing image processing (e.g., TV, computer, smartphone, set-top box, display device, etc.).
[0338] When implementing the embodiments of this document in software, the methods described above can be implemented using modules (processes or functions) that perform the functions mentioned above. Modules can be stored in memory and executed by a processor. Memory can be installed internally or externally to the processor and can be connected to the processor via various known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. Memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory cards, storage media, and / or other storage devices. In other words, the embodiments of this document can be implemented and executed on a processor, microprocessor, controller, or chip. For example, the functional units illustrated in the corresponding figures can be implemented and executed on a computer, processor, microprocessor, controller, or chip. In this case, information about the implementation (e.g., information about instructions) or algorithms can be stored in a digital storage medium.
[0339] Furthermore, the decoding and encoding devices using the embodiments described in this document can be included in multimedia broadcast transceivers, mobile communication terminals, home theater video devices, digital cinema video devices, surveillance cameras, video chat devices, real-time communication devices such as video communication, mobile streaming devices, storage media, portable cameras, video-on-demand (VoD) service providers, over-the-top (OTT) video devices, internet streaming service providers, 3D video devices, virtual reality (VR) devices, augmented reality (AR) devices, video telephony devices, vehicle-mounted terminals (e.g., vehicle (including autonomous vehicle) terminals, aircraft terminals, or ship terminals), and medical video devices; and can be used to process image signals or data. For example, OTT video devices can include game consoles, Blu-ray players, networked TVs, home theater systems, smartphones, tablet PCs, and digital video recorders (DVRs).
[0340] Furthermore, the processing methods described in this document can be generated in the form of a computer-executable program and can be stored in a computer-readable recording medium. Multimedia data with data structures according to the embodiments of this document can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices and distributed storage devices storing computer-readable data. Computer-readable recording media can include, for example, Blu-ray discs (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disks, and optical data storage devices. Computer-readable recording media also include media implemented in the form of carrier waves (e.g., transmission over the Internet). Additionally, bitstreams generated by encoding methods can be stored in computer-readable recording media or transmitted via wired or wireless communication networks.
[0341] Furthermore, the implementations described in this document can be implemented as a computer program product based on program code, and the program code can be executed on a computer according to the implementations described in this document. The program code can be stored on a computer-readable medium.
[0342] Figure 13 This document provides examples of content streaming systems to which the implementation methods described herein can be applied.
[0343] refer to Figure 13 The implementation methods described in this document are applied to content streaming systems that typically include encoding servers, streaming servers, web servers, media storage, user devices, and multimedia input devices.
[0344] An encoding server is used to compress content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data, generate a bitstream, and then transmit it to a streaming server. In another example, where the bitstream is generated directly by the multimedia input device such as a smartphone, camera, or camcorder, the encoding server can be omitted.
[0345] Bitstreams can be generated using the encoding methods or bitstream generation methods described in this document. Furthermore, the streaming server can temporarily store the bitstream during transmission or reception.
[0346] A streaming server transmits multimedia data to a user's device via a web server based on a user's request. The web server acts as a tool to notify the user of available services. When a user requests a desired service, the web server forwards the request to the streaming server, which then delivers the multimedia data to the user. In this respect, the content streaming system may include a separate control server, which in this case controls the commands / responses between the various devices within the content streaming system.
[0347] A streaming server can receive content from media storage and / or encoding servers. For example, if content is received from an encoding server, it can be received in real time. In this case, the streaming server can store the bitstream for a predetermined period of time to provide a smooth streaming service.
[0348] For example, user equipment may include mobile phones, smartphones, laptops, digital broadcasting terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation systems, board PCs, tablet PCs, ultrabooks, wearable devices (e.g., watch-type terminals (smartwatches), glasses-type terminals (smart glasses), head-mounted displays (HMDs)), digital TVs, desktop computers, digital signage, etc.
[0349] Each server in the content streaming system can be operated as a distributed server, and in this case, the data received by each server can be processed in a distributed manner.
Claims
1. A decoding device for image decoding, the decoding device comprising: Memory; as well as At least one processor, connected to the memory, is configured to: Parse the number of weighted reference images in the reference image list from the prediction weighted table syntax; Based on the quantity information, the weighting factor-related label information used for the reference image list is derived; A prediction sample for the current block is derived by performing a weighted prediction on the current block based on the weighting factor-related flag information; Residual samples are generated based on residual information obtained from the bitstream; as well as The current image is reconstructed based on the predicted samples and the residual samples. The prediction weighting table syntax is included in the image header of the bitstream, and The quantity information and weighting factor-related flag information included in the prediction weighting table syntax are used to refer to all slices in the image of the image header.
2. An encoding device for image encoding, the encoding device comprising: Memory; as well as At least one processor, connected to the memory, is configured to: Derive motion information about the current block; Perform a weighted prediction on the current block based on the motion information; Generate weighting factor-related flag information for the reference image list used for the weighted prediction and information about the number of weighted reference images in the reference image list; as well as The image information, including the weighting factor-related label information and the quantity information, is encoded. The weighting factor-related flag information and the quantity information are included in the prediction weighting table syntax of the image information. The prediction weighting table syntax is included in the image header of the image information, and The quantity information and weighting factor-related flag information included in the prediction weighting table syntax are used to refer to all slices in the image of the image header.
3. An apparatus for transmitting data for an image, the apparatus comprising: At least one processor, configured to obtain a bitstream for the image, wherein the bitstream is generated based on the following operations: Derive motion information about the current block. A weighted prediction is performed on the current block based on the motion information. Generate weighting factor-related label information for the reference image list used for the weighted prediction and information about the number of weighted reference images in the reference image list, and Encode the image information including the weighting factor-related label information and the quantity information; and A transmitter configured to transmit the data comprising the bit stream. The weighting factor-related flag information and the quantity information are included in the prediction weighting table syntax of the image information. The prediction weighting table syntax is included in the image header of the image information, and The quantity information and weighting factor-related flag information included in the prediction weighting table syntax are used to refer to all slices in the image of the image header.