Image encoding / decoding method and apparatus, and recording medium having bitstream stored therein

By dividing the reference region and generating sub-regions in image coding, and optimizing the intra-frame prediction mode using gradient histograms, the problem of insufficient efficiency in high-resolution image coding is solved, and more efficient image coding is achieved.

CN123187431APending Publication Date: 2026-11-27LG ELECTRONICS INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202580029642.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-04-23
Filing Date
2025-04-23
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing image compression techniques are inefficient in encoding high-resolution and high-quality images, especially lacking optimization when exporting intra-prediction modes (DIPM).

Method used

Image blocks are divided using a method based on a predetermined reference region to generate multiple sub-regions. The DIPM is derived through gradient histogram (HoG) and integrated HoG to optimize intra-frame prediction mode and adaptive signaling to improve coding efficiency.

Benefits of technology

It improves the intra-frame prediction efficiency of image coding, and enhances coding efficiency and quality through more accurate DIPM derivation and signal transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123187431A_ABST
    Figure CN123187431A_ABST
Patent Text Reader

Abstract

The image decoding method and apparatus according to the present disclosure can derive one or more derived intra prediction modes (DIPMs) for a current block based on a predetermined reference region, generate a prediction block for the current block based on the one or more DIPMs, and reconstruct the current block based on the generated prediction block. Here, the reference region can include a plurality of reference sample lines, and the reference region can be divided into a plurality of sub-regions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to image encoding / decoding methods and apparatus, as well as recording media for storing bit streams. Background Technology

[0002] Recently, the demand for high-resolution and high-quality images, such as HD (high-definition) and UHD (ultra-high-definition) images, has been increasing in various application fields, and therefore, efficient image compression technology is being discussed.

[0003] There are various techniques, such as inter-frame prediction, which uses video compression technology to predict the pixel values ​​included in the current image from images before or after the current image; intra-frame prediction, which uses pixel information in the current image to predict the pixel values ​​included in the current image; and entropy coding, which assigns short codes to values ​​that occur frequently and long codes to values ​​that occur infrequently. These image compression techniques can be used to effectively compress image data and transmit or store it. Summary of the Invention

[0004] Technical issues

[0005] This invention provides a method and apparatus for deriving DIPM.

[0006] The present invention provides a method and apparatus for configuring a reference area for DIPM.

[0007] This disclosure provides a signaling method and apparatus for adaptive use of DIPM mode.

[0008] Technical solution

[0009] The image decoding method and apparatus according to this disclosure can derive one or more derived intra-prediction modes (DIPMs) for the current block based on a predetermined reference region, generate a prediction block for the current block based on one or more DIPMs, and reconstruct the current block based on the prediction block. Here, the reference region may include multiple reference sample lines, and the reference region may be divided into multiple sub-regions.

[0010] In the image decoding method and apparatus according to the present disclosure, a reference sample line belonging to one sub-region may not belong to another sub-region.

[0011] In the image decoding method and apparatus according to the present disclosure, at least one reference sample line belonging to one sub-region may belong to another sub-region.

[0012] In the image decoding method and apparatus according to the present disclosure, the number of sub-regions available for the current block can be determined differently based on the size of the current block.

[0013] In the image decoding method and apparatus according to this disclosure, deriving one or more DIPMs may include deriving multiple gradient histograms (HoGs) based on multiple sub-regions respectively. Here, HoG can be defined as a group of one or more intra-prediction modes having cumulative magnitude values.

[0014] In the image decoding method and apparatus according to the present disclosure, an integrated HoG can be generated based on the sum of the amplitude values ​​of the same intra-frame prediction modes within multiple HoGs.

[0015] In the image decoding method and apparatus according to the present disclosure, an integrated HoG can be generated based on the weighted sum of the amplitude values ​​of the same intra-frame prediction modes within multiple HoGs.

[0016] In the image decoding method and apparatus according to the present disclosure, an integrated mode list can be constructed by selecting at least one intra-frame prediction mode from each of a plurality of HoGs.

[0017] In the image decoding method and apparatus according to this disclosure, at least one HoG can be selected based on a predetermined cost of multiple HoGs. Here, the cost of the HoG can be calculated based on the difference between the predicted value and the reconstructed value of the template region of the current block. The predicted value of the template region can be generated based on the first T intra-frame prediction modes in descending order of amplitude values ​​within the HoG.

[0018] In the image decoding method and apparatus according to the present disclosure, deriving one or more DIPMs may include specifying at least one of a plurality of reference sample lines, and deriving HoG based on the sub-region to which the at least one reference sample line belongs.

[0019] In the image decoding method and apparatus according to the present disclosure, one or more DIPMs can be derived for the luminance component and chrominance component of the current block, respectively.

[0020] The image coding method and apparatus according to this disclosure can derive one or more derived intra-prediction modes (DIPMs) for the current block based on a predetermined reference region, generate a prediction block for the current block based on the one or more DIPMs, generate a residual block for the current block based on the prediction block, derive the transform coefficients of the current block based on the residual block, and encode residual information related to the transform coefficients. Here, the reference region may include multiple reference sample lines, and the reference region may be divided into multiple sub-regions.

[0021] A computer-readable digital storage medium is provided that stores encoded video / image information that enables the decoding apparatus according to the present disclosure to perform an image decoding method.

[0022] A computer-readable digital storage medium is provided for storing video / image information generated according to the image encoding method of this disclosure.

[0023] A method and apparatus are provided for transmitting video / image information generated according to the image encoding method disclosed herein.

[0024] Beneficial effects

[0025] According to the present invention, a DIPM, which is a more optimized mode for the current block, can be derived and used in the encoding and decoding apparatus, thereby improving the coding efficiency of intra-frame prediction.

[0026] According to the present invention, a more accurate DIPM can be derived based on various or variable reference regions, thereby improving the coding efficiency of intra-frame prediction.

[0027] According to this disclosure, DIPM-related information can be effectively transmitted using signals. Attached Figure Description

[0028] Figure 1 A video / image encoding system according to this disclosure is shown.

[0029] Figure 2 A schematic block diagram illustrating an encoding apparatus to which embodiments of the present disclosure are applicable and to perform encoding of video / image signals is shown.

[0030] Figure 3 A schematic block diagram of a decoding apparatus to which embodiments of the present disclosure are applicable and to perform decoding of video / image signals is shown.

[0031] Figure 4 The illustration shows a decoding method performed by the decoding device 300 as an embodiment according to this disclosure.

[0032] Figure 5 The illustration shows a schematic configuration of a decoding apparatus 300 performing the decoding method according to the present disclosure.

[0033] Figure 6 The diagram illustrates an encoding method performed by encoding device 200 as an embodiment of this disclosure.

[0034] Figure 7 The illustration shows a schematic configuration of an encoding apparatus 200 performing the encoding method according to the present disclosure.

[0035] Figure 8 Examples of content streaming systems to which embodiments of this disclosure can be applied are shown. Detailed Implementation

[0036] Because this disclosure can be modified in various ways and has several embodiments, specific embodiments will be illustrated in the accompanying drawings and described in detail in the detailed description. However, this disclosure is not intended to be limited to the specific embodiments and should be understood to include all variations, equivalents, and substitutions included within the spirit and scope of this disclosure. In describing each drawing, similar reference numerals are used for similar components.

[0037] Terms such as "first," "second," etc., may be used to describe various components, but components should not be limited by these terms. These terms are used only to distinguish one component from other components. For example, without departing from the scope of this disclosure, a first component may be referred to as a second component, and similarly, a second component may be referred to as a first component. Terms and / or combinations of any one or more related statement items are included.

[0038] When a component is described as "connected" or "linked" to another component, it should be understood that it can be directly connected or linked to another component, but there may also be another component in between. On the other hand, when a component is described as "directly connected" or "directly linked" to another component, it should be understood that there is no other component in between.

[0039] The terminology used in this application is for describing particular embodiments only and is not intended to limit this disclosure. Singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, it should be understood that terms such as “comprising” or “having” are intended to designate the presence of features, numbers, steps, operations, components, parts, or combinations thereof described in the specification, but do not preclude the possibility of the presence or addition of one or more other features, numbers, steps, operations, components, parts, or combinations thereof.

[0040] This disclosure relates to video / image coding. For example, the methods / exercises disclosed herein can be applied to methods disclosed in the Universal Video Coding (VVC) standard. Additionally, the methods / exercises disclosed herein can be applied to methods disclosed in the Basic Video Coding (EVC) standard, the AOMedia Video 1 (AV1) standard, the second-generation Audio Video Coding (AVS2) standard, or next-generation video / image coding standards (e.g., H.267 or H.268).

[0041] This specification presents various embodiments of video / image encoding, and unless otherwise stated, these embodiments may be combined with each other to perform the task.

[0042] Here, video can refer to a collection of images over time. An image generally refers to a unit representing an image within a specific time period, and a tile is a unit that forms part of an image during encoding. A tile can include at least one Code Tree Unit (CTU). An image can consist of at least one tile. A tile is a rectangular area consisting of multiple CTUs within a specific tile column and a specific tile row of an image. A tile column is a rectangular area of ​​CTUs with the same height as the image and a width assigned by the syntax requirements of the image parameter set. A tile row is a rectangular area of ​​CTUs with the same height assigned by the image parameter set and a width equal to the width of the image. CTUs within a tile can be arranged consecutively according to a CTU raster scan, and tiles within an image can be arranged consecutively according to a tile raster scan. A tile can include an integer number of complete tiles or an integer number of consecutive complete CTU rows that can be exclusively included within a single NAL unit of an image. Simultaneously, an image can be divided into at least two sub-images. A sub-image can be a rectangular area of ​​at least one tile within an image.

[0043] A pixel, cell, or pixel unit 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.

[0044] 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, units may be used interchangeably with terms such as block or region. In general, an MxN block may include a set (or array) of transform coefficients or samples (or sample arrays) consisting of M columns and N rows.

[0045] Here, "A or B" can refer to "A only", "B only", or "both A and B". In other words, "A or B" can be interpreted as "A and / or B". For example, "A, B or C" can refer to "A only", "B only", "C only", or "any combination of A, B and C".

[0046] The forward slash ( / ) or comma used in this article can refer to "and / or". For example, "A / B" can refer to "A and / or B". Therefore, "A / B" can refer to "A only", "B only", or "both A and B". For example, "A, B, C" can refer to "A, B, or C".

[0047] Here, "at least one of A and B" can refer to "only A", "only B" or "both A and B". Furthermore, expressions such as "at least one of A or B" or "at least one of A and / or B" can be interpreted in the same way as "at least one of A and B".

[0048] Additionally, here, "at least one of A, B, and C" can refer to "A only", "B only", "C only" or "any combination of A, B, and C". Furthermore, "at least one of A, B, or C" or "at least one of A, B, and / or C" can refer to "at least one of A, B, and C".

[0049] Additionally, the parentheses used in this document can refer to "for example". Specifically, when the indication is "prediction (intra-frame prediction)", "intra-frame prediction" can be cited as an example of "prediction". In other words, "prediction" here is not limited to "intra-frame prediction", and "intra-frame prediction" can be cited as an example of "prediction". Furthermore, even when the indication is "prediction (i.e., intra-frame prediction)", "intra-frame prediction" can be cited as an example of "prediction".

[0050] Here, a technical feature described individually in a single figure can be implemented individually or simultaneously.

[0051] Figure 1 A video / image encoding system according to this disclosure is shown.

[0052] refer to Figure 1 A video / image encoding system may include a first device (source device) and a second device (receiving device).

[0053] A source device can transmit encoded video / image information or data to a receiving device in the form of a file or stream via digital storage media or a network. The source device may include a video source, an encoding device, and a transmitting unit. The receiving device may include a receiving unit, a decoding device, and a renderer. The encoding device may be referred to as a video / 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 unit, and the display unit may consist of a separate device or an external component.

[0054] A video source can acquire video / images through the process of capturing, compositing, or generating video / images. A video source can include devices for capturing video / images and devices for generating video / images. Devices for capturing video / images can include at least one camera, video / image archives containing previously captured video / images, etc. Devices for generating video / images can include computers, tablets, smartphones, etc., and can generate video / images (electronically). For example, virtual video / images can be generated by computers, etc., and in this case, the process of capturing video / images can be replaced by the process of generating related data.

[0055] An encoding device can encode input video / images. The encoding device can perform a series of processes such as prediction, transformation, and quantization for compression and encoding efficiency. The encoded data (encoded video / image information) can be output as a bitstream.

[0056] The transmitting unit can send encoded video / image information or data, output in bitstream form, to the receiving unit of the receiving device via digital storage media or a network, either as a file or a stream. Digital storage media can include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. The transmitting unit can include elements for generating media files according to a predetermined file format and may include elements for transmission over a broadcast / communication network. The receiving unit can receive / extract the bitstream and send it to a decoding device.

[0057] Decoding devices can decode video / images by performing a series of processes, such as dequantization, inverse transform, and prediction, that correspond to the operations of encoding devices.

[0058] The renderer can render decoded video / images. The rendered video / images can be displayed through a display unit.

[0059] Figure 2 A schematic block diagram of an encoding apparatus that can be applied to embodiments of the present disclosure and perform encoding of video / image signals is shown.

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

[0061] Image segmenter 210 can partition an input image (or picture, frame) input to encoding device 200 into at least one processing unit. As an example, a processing unit can be referred to as a coding unit (CU). In this case, the coding unit can be recursively partitioned from coding tree unit (CTU) or maximum coding unit (LCU) according to a quadtree-binary-tritree (QTBTTT) structure.

[0062] For example, a coding unit can be segmented into multiple coding units of greater depth based on a quadtree structure, a binary tree structure, and / or a ternary structure. In this case, for example, a quadtree structure can be applied first, and a binary tree structure and / or a ternary structure can be applied later. Alternatively, a binary tree structure can be applied before the quadtree structure. The coding process according to this specification can be performed based on the final coding unit that is no longer segmented. In this case, based on coding efficiency according to image characteristics, the largest coding unit can be directly used as the final coding unit, or if necessary, the coding unit can be recursively segmented into deeper coding units, and the coding unit with the optimal size can be used as the final coding unit. Here, the coding process can include processes such as prediction, transformation, and reconstruction, as described later.

[0063] As another example, the processing unit may further include a prediction unit (PU) or a transform unit (TU). In this case, the prediction unit and the transform unit may be divided or segmented from the aforementioned final encoding unit, respectively. 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.

[0064] In some cases, a unit can be used interchangeably with terms such as block or region. Generally, an MxN block can represent a set of transform coefficients or samples consisting of M columns and N rows. Samples can typically represent pixels or pixel values, and can represent only the pixel / pixel value of the luminance component, or only the pixel / pixel value of the chrominance component. Samples can be used as a term to correspond a picture (or image) to pixels or cells.

[0065] The encoding device 200 can subtract the prediction signal (prediction block, prediction sample array) output from the inter-frame predictor 221 or the intra-frame predictor 222 from the input image signal (original block, original sample array) to generate a residual signal (residual signal, residual sample array), and the generated residual signal is sent to the converter 232. In this case, the unit in the 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 the subtractor 231.

[0066] Predictor 220 can perform prediction on the block to be processed (hereinafter referred to as the current block) and generate a block of predictions including prediction samples for the current block. Predictor 220 can determine whether to apply intra-frame prediction or inter-frame prediction on a block or CU basis. Predictor 220 can generate various information about the prediction, such as prediction mode information, and send it to entropy encoder 240, as described later in the description of each prediction mode. The information about the prediction can be encoded in entropy encoder 240 and output as a bitstream.

[0067] Intra-predictor 222 can predict the current block by referencing samples within the current image. Depending on the prediction mode, the referenced samples can be located near the current block or at a specific distance away from the current block. In intra-prediction, the prediction mode can include at least one non-directional mode and multiple directional modes. The non-directional mode can include at least one of a DC mode or a planar mode. Depending on the granularity of the prediction direction, the directional modes can include 33 or 65 directional modes. However, this is just an example, and more or fewer directional modes can be used depending on the configuration. Intra-predictor 222 can determine the prediction mode applied to the current block by using the prediction modes applied to the template region.

[0068] Inter-frame predictor 221 can derive a prediction 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 the inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation between the template region and the motion information of the current block. Motion information may include motion vectors and reference image indices. Motion information may further include inter-frame prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-frame prediction, the template region may include a spatial template region (spatial neighbor block) existing in the current image and a temporal template region (temporal neighbor block) existing in the reference image. The reference image including the reference block and the reference image including the temporal template region may be the same or different. The temporal template region may be referred to as a juxtaposed reference block, juxtaposed CU (colCU), etc., and the reference image including the temporal template region may be referred to as a juxtaposed image (colPic). For example, inter-frame predictor 221 can configure a motion information candidate list based on the template region and generate information indicating which candidate is used to derive the motion vector and / or reference image index of the current block. Inter-frame prediction can be performed based on various prediction modes, and for example, for skip mode and merge mode, the inter-frame predictor 221 can use the motion information of the template region as the motion information of the current block. For skip mode, unlike merge mode, residual signals may not be sent. For motion vector prediction (MVP) mode, the motion vector of the template region is used as the motion vector predictor, and the motion vector difference is signaled to indicate the motion vector of the current block.

[0069] Predictor 220 can generate a prediction signal based on various prediction methods described later. For example, the predictor can not only apply intra-frame prediction or inter-frame prediction to predict a block, but also apply both intra-frame prediction and inter-frame prediction simultaneously. This can be referred to as a combined intra-frame and inter-frame prediction (CIIP) mode. Alternatively, the predictor can be based on an intra-block copy (IBC) prediction mode or a palette mode for prediction against a block. The IBC prediction mode or palette mode can be used for content image / video coding such as screen content coding (SCC) in games, etc. IBC essentially performs prediction within the current image, but it can be performed similarly to inter-frame prediction because it derives a reference block within the current image. In other words, IBC can use at least one of the inter-frame prediction techniques described herein. A palette mode can be considered an example of intra-frame coding or intra-frame prediction. When a palette mode is applied, sample values ​​within the image can be signaled based on information about the palette table and palette index. The prediction signal generated by predictor 220 can be used to generate a reconstructed signal or a residual signal.

[0070] Transformer 232 can generate transform coefficients by applying a transform technique to the residual signal. For example, the transform technique may include at least one of Discrete Cosine Transform (DCT), Discrete Sine Transform (DST), Karhunen-Loève Transform (KLT), Graphical Based Transform (GBT), or Conditional Nonlinear Transform (CNT). Here, GBT refers to the transform obtained from a graphic when the relationship information between pixels is expressed as a graphic. CNT refers to the transform obtained based on generating a prediction signal using all previously reconstructed pixels. Furthermore, the transform process can be applied to square pixel blocks of the same size or to non-square blocks of variable size.

[0071] Quantizer 233 can quantize the transform coefficients and send them to entropy encoder 240, which can encode the quantized signal (information about the quantized transform coefficients) and output it 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 into a one-dimensional vector form based on the coefficient scan order, and can generate information about the quantized transform coefficients based on the one-dimensional vector form of the quantized transform coefficients.

[0072] The entropy encoder 240 can perform various encoding methods, such as exponential Golomb, context-adaptive variable-length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoder 240 can encode information necessary for video / video image reconstruction (e.g., values ​​of syntax elements) in addition to the transform coefficients quantized together or individually.

[0073] Encoded information (e.g., encoded video / image information) can be transmitted or stored in bitstream form at the network abstraction layer (NAL) unit level. The video / image information may further include information about various parameter sets such as adaptive parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). Additionally, the video / image information may further include general constraint information. Here, information transmitted from the encoding device / signaled to the decoding device and / or syntax elements can be included in the video / image information. The video / image information can be encoded by the above-described encoding process and included in the bitstream. The bitstream can be transmitted over a network or stored in a digital storage medium. Here, the network may include broadcast networks and / or communication networks, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD, etc. Transmission units (not shown) for transmission and / or storage units (not shown) for storing signals output from the entropy encoder 240 can be configured as internal / external elements of the encoding device 200, or the transmission unit may also be included in the entropy encoder 240.

[0074] 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). When there is no residual for the block to be processed, such as when a skip mode is applied, the prediction block can be used as a reconstructed block. Adder 250 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 within the current image, and can also be used for inter-frame prediction of the next image by filtering, which will be described later. Meanwhile, a luminance mapping with chroma scaling (LMCS) can be applied during image encoding and / or reconstruction.

[0075] 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 the modified reconstructed image can be stored in memory 270, specifically in the DPB of memory 270. Various filtering methods can include deblocking filtering, sample adaptive offset, adaptive loop filtering, bilateral filtering, etc. Filter 260 can generate various information about the filtering and send it to entropy encoder 240. The information about the filtering can be encoded in entropy encoder 240 and output as a bitstream.

[0076] 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 through it, the encoding device can avoid prediction mismatch in encoding device 200 and decoding device, and can also improve encoding efficiency.

[0077] The DPB of memory 270 can store modified reconstructed images for use as reference images 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 the pre-reconstructed image. The stored motion information can be sent to inter-frame predictor 221 to be used as motion information for spatial template regions or temporal template regions. Memory 270 can store reconstructed samples of reconstructed blocks in the current image and send them to intra-frame predictor 222.

[0078] Figure 3 A schematic block diagram of a decoding apparatus that can be applied to embodiments of the present disclosure and perform decoding of video / image signals is shown.

[0079] refer to Figure 3 The decoding device 300 can be configured to include an entropy decoder 310, a residual processor 320, a predictor 330, an adder 340, a filter 350, and a memory 360. The predictor 330 may include an inter-frame predictor 332 and an intra-frame predictor 331. The residual processor 320 may include a dequantizer 321 and an inverse transformer 321.

[0080] According to an embodiment, the entropy decoder 310, residual processor 320, predictor 330, adder 340, and filter 350 described above can be configured by a single hardware component (e.g., a decoder chipset or processor). Additionally, the memory 360 may include a decoded image buffer (DPB) and can be configured by a digital storage medium. The hardware component may further include the memory 360 as an internal / external component.

[0081] When the input includes a bitstream containing video / image information, the decoding device 300 can respond to... Figure 2 The decoding device 300 reconstructs an image by processing video / image information in its encoding apparatus. For example, the decoding device 300 can derive units / blocks based on information related to block segmentation obtained from the bitstream. The decoding device 300 can perform decoding by using processing units applied in the encoding apparatus. Therefore, the processing unit for decoding can be an encoding unit, and the encoding unit can be segmented from encoding tree units or maximally encoded units according to a quadtree structure, binary tree structure, and / or ternary tree structure. At least one transform unit can be derived from the encoding unit. Furthermore, the reconstructed image signal decoded and output by the decoding device 300 can be played back by a playback device.

[0082] Decoding device 300 can receive data in bitstream form from... Figure 2 The signal output by the encoding device and the received signal can be decoded by the entropy decoder 310. For example, the entropy decoder 310 can parse the bitstream to derive information (e.g., video / image information) necessary for image reconstruction (or picture reconstruction). The video / image information may further include information about various parameter sets such as adaptive parameter sets (APS), picture parameter sets (PPS), sequence parameter sets (SPS), or video parameter sets (VPS). In addition, the video / image information may further include general constraint information. The decoding device can further decode the picture based on the information about the parameter sets and / or the general constraint information. The information sent / received by the signal and / or the syntax elements described later herein can be decoded and obtained from the bitstream through the decoding process. For example, the entropy decoder 310 can decode the information in the bitstream based on encoding methods such as exponential Golomb coding, CAVLC, CABAC, etc., and output the values ​​of the syntax elements necessary for image reconstruction and the quantized values ​​of the transform coefficients of the residuals. More specifically, the CABAC entropy decoding method can receive bins corresponding to each syntax element from the bitstream, determine a context model using information about the syntax element to be decoded, decoding information of neighboring blocks and the block to be decoded, or information about symbols / bins decoded in the previous step, perform arithmetic decoding on the bins by predicting the occurrence probability of the bins based on the determined context model, and generate symbols corresponding to the value of each syntax element. In this case, after determining the context model, the CABAC entropy decoding method can update the context model by using information about the decoded symbols / bins for the context model used for the next symbol / bin. Among the information decoded in the entropy decoder 310, information about prediction is provided to the predictors (inter-frame predictor 332 and intra-frame predictor 331), and the residual values ​​of entropy decoding performed on them in the entropy decoder 310, i.e., the quantized transform coefficients and related parameter information, can be input to the residual processor 320. The residual processor 320 can derive residual signals (residual blocks, residual samples, residual sample arrays). In addition, information about filtering among the information decoded in the entropy decoder 310 can be provided to the filter 350. Meanwhile, the receiving unit (not shown) that receives the signal output from the encoding device can be further configured as an internal / external element of the decoding device 300 or the receiving unit can be a component of the entropy decoder 310.

[0083] Furthermore, the decoding device according to this specification can be referred to as a video / image / picture decoding device, and the decoding device can be divided into an information decoder (video / image / picture information decoder) and a sample decoder (video / image / picture sample decoder). The information decoder may include an entropy decoder 310, and the sample decoder may include at least one of a dequantizer 321, an inverse transformer 322, an adder 340, a filter 350, a memory 360, an inter-frame predictor 332, and an intra-frame predictor 331.

[0084] Dequantizer 321 can dequantize the quantized transform coefficients and output the transform coefficients. Dequantizer 321 can rearrange the quantized transform coefficients into a two-dimensional block form. In this case, the rearrangement can be performed based on the coefficient scan order performed in the encoding device. Dequantizer 321 can obtain the transform coefficients by performing dequantization on the quantized transform coefficients using quantization parameters (e.g., quantization step size information).

[0085] The inverse transformer 322 performs an inverse transformation on the transformation coefficients to obtain the residual signal (residual block, residual sample array).

[0086] Predictor 320 can perform prediction on the current block and generate a prediction block including prediction samples for the current block. Predictor 320 can determine whether to apply intra-frame prediction or inter-frame prediction to the current block based on the prediction information output from entropy decoder 310, and determine a specific intra-frame / inter-frame prediction mode.

[0087] Predictor 320 can generate prediction signals based on various prediction methods described later. For example, predictor 320 can not only apply intra-frame prediction or inter-frame prediction to predict a block, but also apply intra-frame prediction and inter-frame prediction simultaneously. This can be referred to as a combined intra-frame and inter-frame prediction (CIIP) mode. Alternatively, the predictor can be based on an intra-block copy (IBC) prediction mode or a palette mode for block prediction. The IBC prediction mode or palette mode can be used for content image / video coding such as screen content coding (SCC) in games, etc. IBC essentially performs prediction within the current frame, but it can be performed similarly to inter-frame prediction because it derives a reference block within the current frame. In other words, IBC can use at least one of the inter-frame prediction techniques described herein. 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 transmitted as a signal.

[0088] Intra-predictor 331 can predict the current block by referencing samples within the current image. Depending on the prediction mode, the referenced samples can be located near the current block or at a specific distance away from the current block. In intra-prediction, the prediction mode can include at least one non-directional mode and multiple directional modes. Intra-predictor 331 can determine the prediction mode applied to the current block by using the prediction mode applied to the template region.

[0089] Inter-frame predictor 332 can derive a prediction 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 the inter-frame prediction mode, motion information can be predicted on a block, sub-block, or sample basis based on the correlation between the template region and the motion information of the current block. Motion information may include motion vectors and reference image indices. Motion information may further include inter-frame prediction direction information (L0 prediction, L1 prediction, Bi prediction, etc.). For inter-frame prediction, the template region may include a spatial template region (spatial neighbor block) existing in the current image and a temporal template region (temporal neighbor block) existing in the reference image. For example, inter-frame predictor 332 can configure a motion information candidate list based on the template region and derive the motion vector and / or reference image index of the current block based on the received candidate selection information. Inter-frame prediction can be performed based on various prediction modes, and information about the prediction may include information indicating the inter-frame prediction mode used for the current block.

[0090] Adder 340 can add the obtained residual signal to the prediction signal (prediction block, prediction sample array) output from the predictor (including inter-frame predictor 332 and / or intra-frame predictor 331) to generate a reconstruction signal (reconstructed image, reconstruction block, reconstruction sample array). When there is no residual for the block to be processed, such as when a skip mode is applied, the prediction block can be used as the reconstruction block.

[0091] 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, output by filtering as described later, or it can be used for inter-frame prediction of the next image. Meanwhile, a luminance map with chroma scaling (LMCS) can be applied during image decoding.

[0092] Filter 350 can improve subjective / objective image quality by applying filtering to the reconstructed signal. For example, filter 350 can generate a modified reconstructed image by applying various filtering methods to the reconstructed image and send the modified reconstructed image to memory 360, specifically the DPB of memory 360. Various filtering methods can include deblocking filtering, adaptive sampling offset, adaptive loop filtering, bilateral filtering, etc.

[0093] 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 derive (or decode) motion information of blocks from its current image and / or motion information of blocks in the pre-reconstructed image. The stored motion information can be sent to inter-frame predictor 332 as motion information for spatial template regions or temporal template regions. Memory 360 can store reconstructed samples of reconstructed blocks in the current image and send them to intra-frame predictor 331.

[0094] Here, the embodiments described in the encoding device 200’s filter 260, inter-frame predictor 221 and intra-frame predictor 222 can also be applied equally or correspondingly to the decoding device 300’s filter 350, inter-frame predictor 332 and intra-frame predictor 331, respectively.

[0095] Figure 4 An image decoding method performed by a decoding device 300 is shown as an embodiment according to this disclosure.

[0096] Reference Figure 4 It can derive one or more exported intra-prediction modes (DIPM) for the current block based on a predetermined reference area (S400).

[0097] A reference region is the area referenced for deriving the DIPM and can be a pre-reconstructed region surrounding the current block. A reference region can include multiple reference sample lines. For example, a reference region can consist of up to 18 reference sample lines. However, this is merely an example, and it goes without saying that the number of reference sample lines configured for a reference region can be fewer or more than 18.

[0098] The reference region can be divided into multiple sub-regions. An index can be assigned to each sub-region to identify it. When the reference region is divided into N sub-regions, indices from 0 to (N-1) can be assigned to the first through Nth sub-regions respectively. Smaller indices can be assigned to sub-regions closer to the current block. Here, N can be an integer greater than or equal to 2. Each sub-region can consist of K reference sample lines. K can be an integer of 1, 2, 3, or greater.

[0099] Multiple subregions can be defined as non-overlapping. In other words, a reference sample line belonging to one subregion may not belong to another subregion. For example, suppose the reference region is divided into N subregions (first to Nth subregions), and each subregion consists of three reference sample lines. In this case, the first subregion may consist of reference sample lines 0 to 2. The second subregion may consist of reference sample lines 3 to 5. Similarly, the Nth subregion may consist of reference sample lines (3... N-3) to (3) It consists of N-1). Here, the reference sample line P can refer to a line spaced P samples from the left boundary and / or top boundary of the current block. It can also be applied to the embodiments described later.

[0100] Alternatively, multiple subregions can be defined to overlap each other. In other words, at least one reference sample line belonging to one subregion can belong to another subregion. For example, a reference region can consist of five reference sample lines. In this case, the first subregion can consist of reference sample lines 0 to 2. The second subregion can consist of reference sample lines 1 to 3. The third subregion can consist of reference sample lines 2 to 4.

[0101] The number of available sub-regions can vary depending on the size of the current block. Here, the size can be defined as at least one of the following: width or height, the product of width and height, the maximum / minimum value of width and height, or the ratio of width to height.

[0102] For example, K sub-regions can be used when the product of the width and height of the current block is less than X. L sub-regions can be used when the product of the width and height of the current block is greater than or equal to X. Here, X, K, and L can be integers greater than or equal to 0. K can be an integer less than L. For example, at least three sub-regions can be used when the product of the width and height of the current block is less than 64. At least four sub-regions can be used when the product of the width and height of the current block is greater than or equal to 64. Alternatively, at least one sub-region can be used when the product of the width and height of the current block is less than 64. At least two sub-regions can be used when the product of the width and height of the current block is greater than or equal to 64.

[0103] For example, K sub-regions can be used when at least one of the width or height of the current block is less than X. M sub-regions can be used when at least one of the width or height of the current block is greater than or equal to X. Here, X, K, and M can be integers greater than or equal to 0. K can be an integer less than M. For example, at least three sub-regions can be used when the width and height of the current block are both less than 8. At least four sub-regions can be used when the width and height of the current block are both greater than or equal to 8. Alternatively, at least one sub-region can be used when the width and height of the current block are both less than 8. At least two sub-regions can be used when the width and height of the current block are both greater than or equal to 8.

[0104] For example, K sub-regions can be used when the product of the width and height of the current block is less than X. L sub-regions can be used when the product of the width and height of the current block is greater than or equal to X and less than Y. J sub-regions can be used when the product of the width and height of the current block is greater than or equal to Y. Here, X, Y, K, L, and J can all be integers greater than or equal to 0. K can be an integer less than L, and L can be an integer less than J. For example, at least three sub-regions can be used when the product of the width and height of the current block is less than 64. At least four sub-regions can be used when the product of the width and height of the current block is greater than or equal to 64 and less than 256. At least five sub-regions can be used when the product of the width and height of the current block is greater than or equal to 256. Alternatively, at least one sub-region can be used when the product of the width and height of the current block is less than 64. At least two sub-regions can be used when the product of the width and height of the current block is greater than or equal to 64 and less than 256. At least three sub-regions can be used when the product of the width and height of the current block is greater than or equal to 256.

[0105] For example, N sub-regions can be used when at least one of the width or height of the current block is less than X. M sub-regions can be used when at least one of the width or height of the current block is greater than or equal to X and less than Y. L sub-regions can be used when at least one of the width or height of the current block is greater than or equal to Y. Here, X, Y, N, M, and L can be integers greater than or equal to 0. N can be an integer less than M. M can be an integer less than L. For example, at least three sub-regions can be used when the width and height of the current block are less than 8. At least four sub-regions can be used when the width and height of the current block are greater than or equal to 8 and less than 16. At least five sub-regions can be used when the width and height of the current block are greater than or equal to 16. Alternatively, at least one sub-region can be used when the width and height of the current block are less than 8. At least two sub-regions can be used when the width and height of the current block are greater than or equal to 8 and less than 16. At least three sub-regions can be used when the width and height of the current block are greater than or equal to 16.

[0106] In this example, the block size is divided into two or three categories, but this is just an example. For instance, the number of available sub-regions could be divided into N categories based on more granular block size criteria.

[0107] The positions (or numbers) of the reference sample lines corresponding to the available sub-regions can be predefined in the encoding and decoding devices. Alternatively, the available sub-regions can be defined by grouping a predetermined number of reference sample lines in ascending order of the numbers assigned to them.

[0108] Regardless of the current block size, the same number of sub-regions can be configured to be used.

[0109] By applying a predetermined filter to the samples belonging to each sub-region, a gradient histogram (HoG) can be derived for each sub-region.

[0110] Specifically, a predetermined filter can be applied to samples belonging to a sub-region to derive the horizontal and vertical variations in the corresponding samples. Gradients can be derived based on the horizontal and vertical variations, and an intra-prediction mode to be mapped to the derived gradient can be determined. The intra-prediction mode to be mapped to the gradient can be an intra-prediction mode with the most similar orientation to the corresponding gradient. Predetermined amplitude values ​​can be assigned / accumulated to the mapped intra-prediction mode. Here, the amplitude values ​​can be derived based on at least one of the amplitude of the horizontal or vertical variation. For example, the amplitude value can be defined as the sum of the horizontal and vertical variation amplitudes. The samples to which the filter is applied within the sub-region can be all samples belonging to the sub-region, or they can be some samples at predefined locations.

[0111] While moving samples within a sub-region in the horizontal and / or vertical directions, the above process can be repeated to derive one or more intra-prediction modes, through which amplitude values ​​are accumulated. Therefore, the HoG according to this disclosure can be defined as a group of one or more intra-prediction modes having accumulated amplitude values.

[0112] Example 1

[0113] An integrated HoG can be generated based on multiple HoGs derived for multiple sub-regions. The integrated HoG can include at least one of the intra-prediction modes included in the multiple HoGs. Each intra-prediction mode included in the integrated HoG can have an integrated amplitude value. Here, the integrated amplitude value can be derived based on the sum of the amplitude values ​​of the corresponding intra-prediction modes within the multiple HoGs.

[0114] Specifically, suppose the reference region is divided into three sub-regions. In this case, HoG[0] for the first sub-region may include mode A, mode B, and mode C. In HoG[0], mode A, mode B, and mode C may have amplitude values ​​of amplitude[0][A], amplitude[0][B], and amplitude[0][C], respectively. HoG[1] for the second sub-region may include mode A and mode B, but may not include mode C. In HoG[1], mode A and mode B may have amplitude values ​​of amplitude[1][A] and amplitude[1][B], respectively. HoG[2] for the third sub-region may include mode A, but may not include mode B and mode C. In HoG[2], mode A may have an amplitude value of amplitude[2][A]. Mode X may refer to intra-frame prediction mode X, which may be applied equivalently in this specification.

[0115] An integrated HoG may include HoG[0], HoG[0] and HoG[2] including modes A, B and C. In an integrated HoG, the integrated amplitude value for mode A can be derived based on the sum of amplitudes[0][A], [1][A] and [2][A], the integrated amplitude value for mode B can be derived based on the sum of amplitudes[0][B] and [1][B], and the integrated amplitude value for mode C can be derived based on the amplitude value for mode C (i.e., amplitude[0][C]) in HoG[0].

[0116] Therefore, when at least two of a plurality of HoGs include the same intra-prediction mode, an integrated amplitude value for the respective intra-prediction mode can be derived based on the sum of the amplitude values ​​of the respective intra-prediction modes. For an intra-prediction mode that is included in only any one of the plurality of HoGs, the amplitude value of the respective intra-prediction mode can be set as the integrated amplitude value for the respective intra-prediction mode.

[0117] Using the method described above, an integrated HoG can be generated as a group of one or more intra-prediction modes with integrated amplitude values. The top M intra-prediction modes can be selected from the integrated HoG in descending order of integrated amplitude values. The DIPM can be derived based on the top M intra-prediction modes. Here, M can be an integer greater than or equal to 1.

[0118] For example, suppose the reference region is divided into five sub-regions, and each sub-region consists of three reference sample lines. In this case, HoG (i.e., HoG[0]) can be derived based on the first sub-region consisting of reference sample lines 0 to 2. HoG (i.e., HoG[1]) can be derived based on the second sub-region consisting of reference sample lines 3 to 5. HoG (i.e., HoG[2]) can be derived based on the third sub-region consisting of reference sample lines 6 to 8. HoG (i.e., HoG[3]) can be derived based on the fourth sub-region consisting of reference sample lines 9 to 11. HoG (i.e., HoG[4]) can be derived based on the fifth sub-region consisting of reference sample lines 12 to 14. When the vertical mode is included in at least two of HoG[0], HoG[1], HoG[2], HoG[3] and HoG[4] respectively, the integrated amplitude value for the vertical mode can be derived based on the sum of the amplitude values ​​of the respective vertical modes.

[0119] Example 2

[0120] An integrated HoG can be generated based on multiple HoGs derived for multiple sub-regions. The integrated HoG can include at least one of the intra-prediction modes included in the multiple HoGs. Each of the intra-prediction modes included in the integrated HoG can have an integrated magnitude value. Here, the integrated magnitude value can be derived based on a weighted sum of the magnitude values ​​of the corresponding intra-prediction modes within the multiple HoGs.

[0121] Specifically, suppose the reference region is divided into three sub-regions. In this case, HoG[0] for the first sub-region may include pattern A, pattern B, and pattern C. In HoG[0], pattern A, pattern B, and pattern C may have amplitude values ​​of amplitude[0][A], amplitude[0][B], and amplitude[0][C], respectively. HoG[1] for the second sub-region may include pattern A and pattern B, but may not include pattern C. In HoG[1], pattern A and pattern B may have amplitude values ​​of amplitude[1][A] and amplitude[1][B], respectively. HoG[2] for the third sub-region may include pattern A, but may not include pattern B and pattern C. In HoG[2], pattern A may have an amplitude value of amplitude[2][A].

[0122] An integrated HoG may include HoG[0], HoG[0] and HoG[2] including modes A, B and C. In an integrated HoG, the integrated amplitude value for mode A can be derived based on the weighted sum of amplitudes[0][A], [1][A] and [2][A], the integrated amplitude value for mode B can be derived based on the weighted sum of amplitudes[0][B] and [1][B], and the integrated amplitude value for mode C can be derived based on the amplitude value for mode C in HoG[0] (i.e., amplitude[0][C]).

[0123] Therefore, when at least two of the multiple HoGs include the same intra-prediction mode, an integrated amplitude value for the respective intra-prediction mode can be derived based on a weighted sum of the amplitude values ​​of the respective intra-prediction modes. For an intra-prediction mode that is included in only any one of the multiple HoGs, the amplitude value of the respective intra-prediction mode can be set as the integrated amplitude value for the respective intra-prediction mode.

[0124] The weights used for the weighted sum of magnitude values ​​can be determined based on the index of the HoG to which the corresponding intra-prediction mode belongs, or the location (or index) of the sub-region used to derive the corresponding HoG. For example, smaller weights can be applied to HoGs derived from sub-regions closer to the current block. Conversely, larger weights can be applied to HoGs derived from sub-regions closer to the current block. Alternatively, predefined fixed weights can be applied to each sub-region.

[0125] Using the method described above, an integrated HoG can be generated as a group of one or more intra-prediction modes with integrated amplitude values. The top M intra-prediction modes can be selected from the integrated HoG in descending order of amplitude values. The DIPM can be derived based on the top M intra-prediction modes. Here, M can be an integer greater than or equal to 1.

[0126] For example, the reference region can be divided into first to third sub-regions. HoG (i.e., HoG[0]) can be derived based on the first sub-region consisting of reference sample lines 0 to 2. HoG (i.e., HoG[1]) can be derived based on the second sub-region consisting of reference sample lines 3 to 5. HoG (i.e., HoG[2]) can be derived based on the third sub-region consisting of reference sample lines 6 to 8. When the vertical mode is included in at least two of HoG[0], HoG[1], or HoG[2], the integrated amplitude value for the vertical mode can be derived by applying a predetermined weight to the amplitude value of the respective vertical mode.

[0127] Example 3

[0128] HoGs can be derived for sub-regions within a reference region. At least one intra-prediction mode can be selected from the HoG of each sub-region, and a mode list for the corresponding HoG can be generated based on the selected intra-prediction modes. An integrated mode list can be constructed based on the generated mode list of the HoGs. DIPM can be derived based on one or more intra-prediction modes belonging to the integrated mode list.

[0129] The number of intra-prediction modes selected from the HoG for the corresponding sub-region may vary depending on the distance between the current block and the sub-region. For example, a larger number of intra-prediction modes can be selected from the HoG for a sub-region that is closer to the current block.

[0130] For example, the reference region can be divided into first to third sub-regions. HoG (i.e., HoG[0]) can be derived based on the first sub-region consisting of reference sample lines 0 to 2. HoG (i.e., HoG[1]) can be derived based on the second sub-region consisting of reference sample lines 3 to 5. HoG (i.e., HoG[2]) can be derived based on the third sub-region consisting of reference sample lines 6 to 8. A first mode list can be constructed by selecting three intra-prediction modes from HoG[0]. The three selected intra-prediction modes can be the top three intra-prediction modes in HoG[0] in descending order of amplitude value. A second mode list can be constructed by selecting two intra-prediction modes from HoG[1]. The two selected intra-prediction modes can be the top two intra-prediction modes in HoG[1] in descending order of amplitude value. A third mode list can be constructed by selecting one intra-prediction mode from HoG[2]. The selected intra-prediction mode can be the intra-prediction mode in HoG[2] with the highest amplitude value. An integrated mode list can be constructed based on the intra-prediction modes that belong to the first to third mode lists mentioned above.

[0131] Example 4

[0132] HoGs can be derived for sub-regions within a reference area. Predetermined costs for each HoG can be calculated. DIPMs can be derived based on the top L HoGs in ascending order of calculated costs. L can be an integer greater than or equal to 1. For example, when L is 1, any one of multiple HoGs can be selected based on cost, thus omitting the signaling used to specify an index for any one of the multiple HoGs.

[0133] Alternatively, multiple HoGs can be reordered in ascending order of computational cost. An index of at least one of the reordered HoGs can be signaled. A DIPM can be derived based on the HoG specified by the signaled index.

[0134] The cost for HoG can be calculated based on the difference between the predicted and reconstructed values ​​of the template region in the current block. The predicted value for the template region can be generated based on the top T intra-prediction modes within the corresponding HoG, ordered by descending magnitude. T can be an integer greater than or equal to 1. For example, when T is 1, intra-prediction can be performed on the template region based on one intra-prediction mode to generate the predicted value for the template region. When T is 2, intra-prediction can be performed based on two intra-prediction modes to generate two predicted values ​​(i.e., a first predicted value and a second predicted value), and the predicted value for the template region can be generated by a weighted sum of the first and second predicted values.

[0135] Based on the above embodiment 4, DIPM can be derived by selectively using some HoGs for sub-regions.

[0136] Example 5

[0137] You can specify at least one of multiple reference sample lines for the current block. You can derive a HoG based on the sub-region to which the specified reference sample line belongs. You can derive a DIPM based on the derived HoG.

[0138] At least one of a plurality of reference sample lines can be specified based on an index to be explicitly signaled for the current block. Here, the index can specify the number / position of reference sample lines (or sub-regions) used to derive the HoG. One or more indices can be signaled for the current block. Alternatively, at least one of a plurality of reference sample lines can be predefined in the encoding and decoding devices.

[0139] For example, when specifying reference sample line 2 for the current block, the HoG can be derived based on the sub-region consisting of reference sample lines 2 to 4. Alternatively, when specifying reference sample lines 2 and 7 for the current block respectively, the HoG can be derived based on the sub-region consisting of reference sample lines 2 to 4, and the HoG can be derived based on the sub-region consisting of reference sample lines 7 to 9.

[0140] The DIPM export method described above can be applied to at least one of the luminance or chrominance components of the current block.

[0141] For the chroma component of the current block (i.e., the chroma block), the variation in sample values ​​may be relatively limited compared to the luma block corresponding to the chroma block. Therefore, a HoG independent of the luma block can be derived for each of the two component blocks (Cb component block and Cr component block) configuring the chroma block, and a DIPM can be derived based on the derived HoG. In other words, the HoG can be derived based on a reference region of the Cb component block, and a DIPM for the Cb component block can be derived based on the derived HoG. Here, the reference region of the Cb component block may include at least one of a pre-reconstructed region surrounding the Cb component block or a pre-reconstructed luma block. Similarly, a HoG can be derived based on a reference region of the Cr component block, and a DIPM for the Cr component block can be derived based on the derived HoG. Here, the reference region of the Cr component block may include at least one of a pre-reconstructed region surrounding the Cr component block or a pre-reconstructed luma block.

[0142] Alternatively, a HoG can be derived for the chromaticity blocks based on a reference region of the Cb and Cr component blocks. Here, the reference region of the Cb and Cr component blocks may include at least one of a pre-reconstructed region around the Cb component block, a pre-reconstructed region around the Cr component block, or a pre-reconstructed luminance block. In this case, a DIPM can be derived based on a HoG derived for the Cb and Cr component blocks, and the derived DIPM can be applied jointly to the Cb and Cr component blocks.

[0143] Reference Figure 4 A prediction block for the current block can be generated based on one or more DIPMs (S410).

[0144] For example, when a DIPM is exported, intra-frame prediction can be performed based on the corresponding DIPM to generate the prediction block for the current block.

[0145] For example, when multiple DIPMs are exported, intra-frame prediction can be performed based on the corresponding DIPMs to generate prediction blocks separately, and the prediction block of the current block can be generated based on the weighted sum of the generated prediction blocks.

[0146] For example, when exporting multiple DIPMs, at least one DIPM can be selected from among them, and the intra-prediction mode of the current block can be exported based on the selected DIPM. The prediction block of the current block can be generated by performing intra-prediction based on the intra-prediction mode of the current block.

[0147] The prediction block for the current block can also be generated based on a combination of at least two of a plurality of DIPMs. Specifically, at least two DIPMs can be selected from a plurality of DIPMs, and the intra-prediction mode for the current block can be set based on the selected DIPMs. Multiple prediction blocks can be generated based on multiple set intra-prediction modes, and the prediction block for the current block can be generated based on the weighted sum of the multiple prediction blocks.

[0148] To select a DIPM, an index indicating the corresponding DIPM among multiple DIPMs can be explicitly signaled for the current block. Alternatively, at least one of the multiple DIPMs can be selected based on their amplitude values. This allows for the generation of a prediction block by selectively using some DIPMs instead of all of them.

[0149] Reference Figure 4 The current block can be reconstructed based on the predicted block of the current block (S420).

[0150] Transform coefficients can be derived based on residual information transmitted via a bitstream signal. A residual block can be generated by applying at least one of dequantization or inverse transform to the derived transform coefficients. A reconstructed block of the current block can be generated based on the predicted block and the residual block of the current block.

[0151] In the method proposed according to this disclosure, the index or weights for HoG integration can be selected based on at least one of the following: prediction mode (e.g., intra-frame mode, inter-frame mode, etc.), width of the current block, height of the current block, number of samples belonging to the current block, position of sub-blocks within the current block, syntax elements explicitly signaled, statistical characteristics of neighboring samples of the current block, or whether a quadratic transformation is used. Here, the index may include an index for specifying at least one of a plurality of HoGs, an index for specifying at least one of a plurality of sub-regions, an index indicating a reference sample line, or an index indicating at least one of a plurality of DIPMs.

[0152] Information associated with the selected index / weight can be binarized using a predetermined binarization method and sent to the decoding device. Binary bits can also be saved during the binarization process through context modeling. Considering the total number of predefined sub-regions in the encoding and decoding devices, the information can be binarized using binarization methods such as truncated binary, truncated unary, or fixed-length binarization.

[0153] The inverse transform according to this disclosure can be performed based on at least one of the primary transform or the secondary transform. The transform type for the inverse transform can be selected based on at least one of the following: neural network matrix pattern, width of the current block, height of the current block, number of samples belonging to the current block, position of sub-blocks within the current block, syntax elements explicitly signaled, or statistical characteristics of neighboring samples of the current block. For example, for a block to which the method proposed according to this disclosure is applied, the primary transform can be performed based on a transform method based on Multiple Transform Selection (MTS). For a block to which the method proposed according to this disclosure is applied, the transform kernel for the secondary transform can be selected based on the DIPM derived for the current block.

[0154] Whether the method proposed according to this disclosure is applied (or available) can be signaled in the High-Level Syntax (HLS). The HLS may include at least one of VPS, SPS, PPS, picture header, slice header, or decoding capability information (DCI). For example, whether the method proposed according to this disclosure is applied can be determined in units of PPS.

[0155] In the absence of the aforementioned signaling, it can be adaptively determined in the encoding and decoding apparatus whether the method proposed in this disclosure is applied (or available).

[0156] Information relating to whether or not the proposed method according to this disclosure is applied can be transmitted by signal, and the application of the proposed method can be determined based on the information transmitted by signal. For example, a flag indicating whether the proposed method is applied can be transmitted by signal at the unit of coding tree unit (CTU) or coding unit (CU). When the flag indicates that the proposed method is applied (e.g., when the flag is 1 or true), the aforementioned index can be transmitted by signal.

[0157] When an Intra-Mode Derived (DIMD) mode is defined in the HLS, the method proposed according to this disclosure can be applied. Furthermore, the application of the method proposed according to this disclosure can be determined within the DIMD mode via signaling of additional information.

[0158] When it is determined that the proposed method according to this disclosure can be used for the current block based on the size / shape of the current block or whether certain conditions are met, a flag indicating whether the proposed method should be applied can be signaled. For example, if the height of the current block is four times or more the width of the current block, it can be determined that the proposed method according to this disclosure cannot be used for the current block, and in this case, a flag indicating whether the proposed method should be applied does not need to be signaled.

[0159] Whether to apply the method proposed in this disclosure can be implicitly determined based on whether specific conditions are met.

[0160] Information related to whether the method proposed according to this disclosure is applied (or available) can be defined in the HLS. Based on this information, information related to whether the proposed method is applied can be adaptively signaled at the coding unit level. For example, when the information related to whether the proposed method is applied (or available) in the SPS is false, it can be determined that the proposed method is not applied at the coding unit level, and the signaling related to whether the proposed method is applied at the coding unit level can be omitted.

[0161] Figure 5 A schematic configuration of a decoding apparatus 300 performing a decoding method according to the present disclosure is shown.

[0162] Reference Figure 5 The decoding device 300 may include a DIPM exporter 500, a prediction block generator 510, and a reconstructor 520. The DIPM exporter 500 and the prediction block generator 510 may be equipped with... Figure 3 The intra-frame predictor 331.

[0163] The DIPM exporter 500 can perform the process of exporting DIPM according to S400. The prediction block generator 510 can perform the process of generating prediction blocks according to S410. The reconstructor 520 can perform the process of reconstructing the current block according to S420.

[0164] Figure 6 An encoding method performed by encoding device 200 is shown as an embodiment according to this disclosure.

[0165] One or more DIPMs can be exported for the current block based on a predetermined reference region (S600). Methods for exporting DIPMs include, for example, using a reference... Figure 4 As stated above.

[0166] A prediction block for the current block can be generated based on the DIPM exported in S600 (S610). The method for generating the prediction block is the same as that used by referring to... Figure 4 The method described is the same.

[0167] The transform coefficients of the current block can be derived based on the residual block of the current block (S620). The residual block of the current block can be generated based on the prediction block generated in S610. The transform coefficients can be derived by performing at least one of transformation or quantization on the residual block.

[0168] The residual information associated with the transform coefficients of the current block can be encoded to generate a bit stream (S630).

[0169] Figure 7 A schematic configuration of an encoding apparatus 200 performing the encoding method according to the present disclosure is shown.

[0170] refer toFigure 7 The encoding device 200 may include a DIPM derivative 700, a prediction block generator 710, a transform coefficient derivative 720, and a residual information encoder 730.

[0171] The DIPM exporter 700 and the prediction block generator 710 can be equipped with Figure 2 The intra-frame predictor 222. The transform coefficient derivator 720 can be equipped with Figure 2 The residual processor 230. The residual information encoder 730 can be equipped with an entropy encoder 240.

[0172] The DIPM exporter 700 can perform the process of exporting the DIPM according to S600. The prediction block generator 710 can perform the process of generating prediction blocks according to S610. The transform coefficient exporter 720 can perform the process of exporting transform coefficients according to S620. The residual information encoder 730 can perform the process of encoding the residual information according to S630.

[0173] In the above embodiments, the method is described as a series of steps or blocks based on the flowchart. However, the corresponding embodiments are not limited to the order of the steps, and some steps may occur simultaneously or in a different order than the other steps described above. Furthermore, those skilled in the art will understand that the steps shown in the flowchart are not exclusive, and other steps may be included or one or more steps in the flowchart may be deleted without affecting the scope of the embodiments of this disclosure.

[0174] The methods described above according to embodiments of the present disclosure can be implemented in software, and the encoding and / or decoding apparatus according to the present disclosure can be included in devices performing image processing, such as TVs, computers, smartphones, set-top boxes, display devices, etc.

[0175] In this disclosure, when the embodiments are implemented as software, the above methods can be implemented as modules (processes, functions, etc.) performing the above functions. Modules can be stored in memory and can be executed by a processor. Memory can be located inside or outside the processor and can be connected to the processor by various well-known means. The processor may include application-specific integrated circuits (ASICs), another chipset, 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 described herein can be implemented on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure can be implemented on a computer, processor, microprocessor, controller, or chip. In this case, information for implementation (e.g., information about instructions) or algorithms can be stored in a digital storage medium.

[0176] Furthermore, the decoding and encoding devices using embodiments of this disclosure can be included in multimedia broadcasting transmitting and receiving devices, mobile communication terminals, home theater video devices, digital cinema video devices, surveillance cameras, video conferencing devices, real-time communication devices such as video communication, mobile streaming devices, storage media, cameras, devices for providing video-on-demand (VoD) services, over-the-top (OTT) devices, devices for providing internet streaming services, three-dimensional (3D) video devices, virtual reality (VR) devices, augmented reality (AR) devices, videophone video devices, transportation terminal devices (e.g., vehicle (including autonomous vehicles) terminals, aircraft terminals, ship terminals, etc.), and medical video devices, and can be used to process video signals or data signals. For example, over-the-top (OTT) devices can include game consoles, Blu-ray players, networked TVs, home theater systems, smartphones, tablets, digital video recorders (DVRs), etc.

[0177] Furthermore, the processing methods applying embodiments of this disclosure can be generated in the form of a computer-executable program and can be stored in a computer-readable recording medium. Multimedia data having data structures according to embodiments of this disclosure can also be stored in a computer-readable recording medium. Computer-readable recording media include all types of storage devices and distributed storage devices that store computer-readable data. 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 media storage devices. Additionally, computer-readable recording media include media implemented in carrier wave form (e.g., transmitted via the Internet). Furthermore, bitstreams generated by encoding methods can be stored in a computer-readable recording medium or transmitted via wired or wireless communication networks.

[0178] Furthermore, the embodiments of this disclosure can be implemented by a computer program product using program code, and this program code can be executed on a computer by the embodiments of this disclosure. The program code can be stored on a computer-readable medium.

[0179] Figure 8 Examples of content streaming systems to which embodiments of the present disclosure may be applied are shown.

[0180] refer to Figure 8 The content streaming system using embodiments of this disclosure may mainly include an encoding server, a streaming server, a web server, media storage, user equipment, and multimedia input devices.

[0181] An encoding server generates a bitstream by compressing content input from multimedia input devices such as smartphones, cameras, and camcorders into digital data, and then sends it to a streaming server. As another example, when multimedia input devices such as smartphones, cameras, and camcorders generate bitstreams directly, the encoding server can be omitted.

[0182] A bitstream can be generated by applying the encoding method or bitstream generation method of the embodiments of this disclosure, and the streaming server can temporarily store the bitstream during the sending or receiving of the bitstream.

[0183] A streaming server sends multimedia data to a user's device via a web server based on the user's request, and the web server acts as a medium to notify the user what services are available. When a user requests a service from the web server, the web server delivers it to the streaming server, and the streaming server sends the multimedia data to the user. In this scenario, the content streaming system may include a separate control server, which in this case controls the commands / responses between each device in the content streaming system.

[0184] A streaming server can receive content from media storage and / or encoding servers. For example, when receiving content from an encoding server, the content can be received in real time. In this case, to provide a smooth streaming service, the streaming server can store bitstreams for specific time periods.

[0185] Examples of user equipment may include mobile phones, smartphones, laptops, digital broadcast terminals, personal digital assistants (PDAs), portable multimedia players (PMPs), navigation devices, tablet PCs, tablet computers, ultrabooks, wearable devices (e.g., smartwatches, smart glasses, head-mounted displays (HMDs), digital TVs, desktop computers, digital signage, etc.).

[0186] In a content streaming system, each server can be operated as a distributed server, and in this case, data received from each server can be distributed and processed.

[0187] The claims set forth herein can be combined in various ways. For example, the technical features of the method claims of this disclosure can be combined and implemented as a device, and the technical features of the device claims of this disclosure can be combined and implemented as a method. Furthermore, the technical features of the method claims and the technical features of the device claims of this disclosure can be combined and implemented as a device, and the technical features of the method claims and the technical features of the device claims of this disclosure can be combined and implemented as a method.

Claims

1. A method comprising: Based on a predetermined reference region, one or more derived intra-prediction modes (DIPM) are derived for the current block. The prediction block for the current block is generated based on one or more DIPMs; as well as The current block is reconstructed based on the predicted block. The reference region includes multiple reference sample lines, and The reference region is divided into multiple sub-regions.

2. The method according to claim 1, wherein, A reference sample line belonging to one sub-region does not belong to another sub-region.

3. The method according to claim 1, wherein, At least one reference sample line belonging to one subregion belongs to another subregion.

4. The method according to claim 1, wherein, The number of sub-regions available for the current block is determined differently based on the size of the current block.

5. The method according to claim 1, wherein, Derivation of one or more DIPMs includes: Multiple gradient histograms (HoG) are derived based on the aforementioned multiple sub-regions. HoG is a group of one or more intra-prediction modes with cumulative amplitude values.

6. The method according to claim 5, wherein, An integrated HoG is generated based on the sum of the magnitude values ​​of the same intra-frame prediction modes within the multiple HoGs.

7. The method according to claim 5, wherein, An integrated HoG is generated by weighting the magnitude values ​​of the same intra-prediction modes within the multiple HoGs.

8. The method according to claim 5, wherein, An integrated mode list is constructed by selecting at least one intra-prediction mode from each of the multiple HoGs.

9. The method according to claim 5, wherein, At least one HoG is selected based on the predetermined cost for the plurality of HoGs. The cost for the HoG is calculated based on the difference between the predicted and reconstructed values ​​of the template region of the current block. Specifically, the predicted value of the template region is generated based on the first T intra-frame prediction modes in descending order of the amplitude values ​​within the HoG.

10. The method according to claim 1, wherein, Derivation of one or more DIPMs includes: At least one reference sample line is specified among the plurality of reference sample lines; and The HoG is derived based on the sub-region to which the at least one reference sample line belongs.

11. The method according to claim 1, wherein, The one or more DIPMs are derived for the luminance and chrominance components of the current block, respectively.

12. A method comprising: Based on a predetermined reference region, one or more derived intra-prediction modes (DIPM) are derived for the current block. The prediction block for the current block is generated based on one or more DIPMs; Generate the residual block of the current block based on the predicted block of the current block; The transformation coefficients of the current block are derived based on the residual block; as well as The residual information associated with the transformation coefficients is encoded. The reference region includes multiple reference sample lines, and The reference region is divided into multiple sub-regions.

13. A computer-readable storage medium storing a bit stream generated by the method of claim 12.

14. A method comprising: A bitstream for image information is obtained, wherein the bitstream is generated based on the following steps: deriving one or more derived intra-prediction modes (DIPMs) for the current block based on a predetermined reference region; generating a prediction block for the current block based on the one or more DIPMs; generating a residual block for the current block based on the prediction block; deriving transform coefficients for the current block based on the residual block; and encoding residual information associated with the transform coefficients; and Send data including the bit stream. The reference region includes multiple reference sample lines, and The reference region is divided into multiple sub-regions.