Method of intra prediction of blocks of a picture
By employing sample weighting and normalization techniques in intra prediction, the method addresses the challenge of balancing bandwidth and quality in video coding, enhancing compression efficiency and reducing prediction errors.
Patent Information
- Application Number
- JP2023206545
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2018-11-26
- Filing Date
- 2023-12-07
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2039-11-26
AI Technical Summary
Existing video coding standards face challenges in achieving a balance between bandwidth requirements and video quality, particularly with high-resolution videos, and there is a need for improved intra prediction methods to enhance compression efficiency.
The method involves obtaining predicted sample values through intra prediction using DC and planar modes, applying sample weighting factors, adding an additive value, and normalizing the results using arithmetic right shifts to improve intra prediction accuracy.
This approach enhances intra prediction accuracy and reduces the occurrence of erroneous predictions, leading to improved video coding efficiency and quality.
Smart Images

Figure 0007571987000078 
Figure 0007571987000079 
Figure 0007571987000080
Abstract
Description
[Technical field]
[0001] The present disclosure relates to the technical field of image and / or video coding and decoding, and in particular to a method and apparatus for intra prediction. [Background technology]
[0002] Digital video has been widely used since the introduction of DVD discs. Before transmission, the video is encoded and transmitted over a transmission medium. A viewer receives the video and decodes and displays the video using a viewing device. Over the years, video quality has improved, for example with higher resolution, color depth and frame rate. This has resulted in larger data streams that are commonly transmitted over the Internet and mobile communication networks today.
[0003] Higher resolution videos, however, typically require more bandwidth since they contain more information. To reduce the bandwidth requirements, video coding standards have been introduced that involve compression of the video. When the video is encoded, the bandwidth requirements (or the corresponding memory requirements in case of storage) are reduced. Sometimes this reduction comes at the expense of quality. Therefore, video coding standards try to find a balance between bandwidth requirements and quality.
[0004] High Efficiency Video Coding (HEVC) is an example of a video coding standard commonly known to those skilled in the art. HEVC divides coding units (CUs) into prediction units (PUs) or transform units (TUs). The Versatile Video Coding (VVC) next generation standard is the latest collaborative video project of the ITU-T Video Coding Experts Group (VCEG) and ISO / IEC Moving Picture Experts Group (MPEG) standardization organizations working together in a partnership known as the Joint Video Exploration Team (JVET). VVC is also known as the ITU-T H.266 / Next Generation Video Coding (NGVC) standard. In VVC, the concept of multiple partition types, i.e., the separation of the CU, PU, and TU concepts, should be removed, if necessary, except in the case of CUs that have sizes that are too large for the maximum transform length, to support more flexibility in CU partition shapes.
[0005] The processing of these coding units (CUs), also called blocks, depends on their size, spatial location, and the coding mode specified by the encoder. Coding modes can be classified into two groups according to the prediction type: intra-prediction and inter-prediction modes. Intra-prediction modes use samples of the same picture (also called frame or image) to generate reference samples and calculate predictions of samples of the block being reconstructed. Intra-prediction is also called spatial prediction. Inter-prediction modes are designed for temporal prediction and use reference samples of the previous or next picture to predict samples of a block of the current picture.
[0006] ITU-T VCEG (Q6 / 16) and ISO / EIC MPEG (JTC 1 / SC29 / WG11) are studying the potential need for standardization of future video coding technologies with compression capabilities significantly beyond those of the current HEVC standard (including its current and near-term extensions for screen content coding and high dynamic range coding). The groups are working together on this exploration in a collaborative effort known as the Joint Video Exploration Team (JVET) to evaluate compression technology designs proposed by their experts in the field.
[0007] The Versatile Test Model (VTM) version 3.0 uses 93 intra prediction modes and several intra smoothing tools, including 4-tap subpixel intra interpolation filtering and position-dependent prediction combination (PDPC), which is proposed as a unified mechanism for modifying prediction samples that are the result of DC, planar, or angular intra prediction modes. Summary of the Invention
[0008] The embodiments of the present application provide an apparatus and a method for improved intra prediction of a current block of a picture. The invention is defined in the independent claims. The dependent claims describe advantageous embodiments. Further implementation forms are evident from the description and the drawings.
[0009] According to a first aspect, there is provided a method of intra prediction of a block of a picture, comprising the steps of: obtaining predicted sample values from one or more reference sample values by intra prediction using a DC intra prediction mode; multiplying the predicted sample values by sample weighting factors to produce weighted predicted sample values; adding an addend value to the weighted predicted sample value to produce a non-normalized predicted sample value; normalizing the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, A method is provided in which wT is a vertical weighting factor.
[0010] According to a second aspect, there is provided a method of intra prediction of a first block and a second block of a picture, the method comprising: for samples of the first block and for samples of the second block: Obtaining a predicted sample value from one or more reference sample values by intra prediction using an intra prediction mode (S100); multiplying the predicted sample values by sample weighting factors to produce weighted predicted sample values; adding an addend value to the weighted predicted sample value to produce a non-normalized predicted sample value; normalizing the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, wT is the vertical weighting factor, A method is provided in which the intra prediction mode used to obtain the predicted sample value for the first block is a DC intra prediction mode, and the intra prediction mode used to obtain the predicted sample value for the second block is a planar intra prediction mode.
[0011] For example, the parameter of the sample weighting coefficients is the precision of the sample weighting coefficients.
[0012] In some embodiments, the normalized predicted sample value may be the end result of a prediction process.
[0013] The method according to the first or second aspect may enable an improved intra prediction of the current block, and in case of DC intra prediction of the current sample, the occurrence of erroneous predicted sample values may be prevented.
[0014] In an embodiment, a planar intra prediction mechanism is used to calculate said sum.
[0015] This can allow for a reduced degree of complexity by simplifying the procedure for intra prediction, since the planar intra prediction mechanism, used for determining the non-normalized predicted sample values, can be reused for the calculation of the sum values.
[0016] In an embodiment, the sample weighting factor is (64-wL-wT).
[0017] In an embodiment, said sum is a sum of one or more augends, including an augend that depends on one or more of said reference samples.
[0018] For example, the one or more summands may include a rounding offset.
[0019] Adding a rounding offset may enable the result of an arithmetic right shift of the integer representation of the unnormalized prediction samples to be correctly rounded.
[0020] In an embodiment, the summand, which depends on one or more reference samples, is wL×R -1,y +wT×R x,-1 and R x,-1 and R -1,y represents the value of the nearest reference sample located above and to the left of the predicted sample.
[0021] In an embodiment, said picture is part of a video sequence.
[0022] In an embodiment, the horizontal weighting factor wL and the vertical weighting factor wT are powers of two.
[0023] This allows the calculation of the multiplication by the weighting factor to be implemented using shift operations on the integer representation of the coefficient to be multiplied by the weighting factor.
[0024] In an embodiment, the horizontal weighting factor wL=(2<<(p-1))>>((x<<1)>>nScale), where x is the horizontal coordinate of the sample; the vertical weighting factor wT=(2<<(p-1))>>((y<<1)>>nScale), where y is the vertical coordinate of the sample; nScale is the scale parameter.
[0025] In an embodiment, the scale parameter nScale is derived from the size of the block.
[0026] Deriving the parameter nScale from the size of the block may enable horizontal and vertical weights to be calculated in an appropriate manner, thereby improving prediction accuracy.
[0027] In an embodiment, the scale parameter nScale is determined as ((Log2(nTbW)+Log2(nTbH)-2)>>2), where nTbW is the width of the block and nTbH is the height of the block.
[0028] In an embodiment, a normalized predicted sample value is calculated from the predicted sample value, (wL×R -1,y +wT×R x,-1 +(64-wL-wT)×P(x,y)+32)>>6, P(x,y) is the predicted sample value, R x,-1 , R -1,yrepresents the value of the nearest reference sample located above and to the left of the predicted sample, wL is the horizontal weighting factor, wT is the vertical weighting factor.
[0029] In an embodiment, the added rounding offset is 32.
[0030] This may allow the correctly rounded result of the right shift operation to be >>6.
[0031] In an embodiment, said normalization of said non-normalized predicted sample values results in normalized predicted sample values.
[0032] In an embodiment, the plurality of samples of the block comprises all samples of the block.
[0033] Further, there is provided a method for encoding or decoding a picture, comprising the steps of: Obtaining a normalized predicted sample value by performing any one of the steps described above; adding residual values to the normalized predicted sample values to produce reconstructed sample values; A method is provided that includes:
[0034] According to a third aspect, there is provided an apparatus for encoding or decoding a picture, said apparatus comprising a processing circuit configured to perform any one of the methods described above.
[0035] In an embodiment, the processing circuitry includes one or more processors and a non-transitory computer-readable medium coupled to the one or more processors, the non-transitory computer-readable medium carrying program code that, when executed by the one or more processors, causes the apparatus to perform the method.
[0036] According to a fourth aspect, there is provided a non-transitory computer readable medium carrying program code which, when executed by a computing device, causes the computing device to perform any one of the methods set out above.
[0037] According to a fifth aspect, there is provided a computer program comprising program code for performing any one of the methods described above.
[0038] According to an aspect, an encoder apparatus is provided, the encoder apparatus being configured to perform intra prediction of a block of a picture, the encoder apparatus comprising: an obtainer configured to obtain predicted sample values from one or more reference sample values by intra prediction using a DC intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, An encoder apparatus is provided, where wT is the vertical weighting factor.
[0039] According to an aspect, an encoder apparatus is provided, the encoder apparatus being configured to perform intra prediction of a first block and a second block of a picture, the encoder apparatus comprising: an obtainer configured to obtain a predicted sample value from one or more reference sample values by intra prediction using an intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, and wT is a vertical weighting factor, wherein the intra prediction mode used to obtain the predicted sample values for samples of the first block is a DC intra prediction mode and the intra prediction mode used to obtain the predicted sample values for samples of the second block is a planar intra prediction mode.
[0040] According to an aspect, there is provided a decoder device, the decoder device being configured to perform intra prediction of a block of a picture, the decoder device comprising: an obtainer configured to obtain predicted sample values from one or more reference sample values by intra prediction using a DC intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, where wT is a vertical weighting factor. A decoder apparatus is provided.
[0041] According to an aspect, there is provided a decoder device, the decoder device being configured to perform intra prediction of a first block and a second block of a picture, an obtainer configured to obtain a predicted sample value from one or more reference sample values by intra prediction using an intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, and wT is a vertical weighting factor, wherein the intra prediction mode used to obtain the predicted sample values for samples of the first block is a DC intra prediction mode, and the intra prediction mode used to obtain the predicted sample values for samples of the second block is a planar intra prediction mode.
[0042] According to an embodiment, a prediction device for intra prediction of a block of a picture, comprising: an obtainer configured to obtain, for samples of said block, predicted sample values from one or more reference sample values by intra prediction using a DC intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, A predictor is provided, where wT is the vertical weighting factor.
[0043] According to an embodiment, a prediction device for intra prediction of a first block and a second block of a picture, comprising: an obtainer configured to obtain predicted sample values from one or more reference sample values by intra prediction using an intra prediction mode for samples of the first block and the second block; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; Including, The sample weighting coefficients are ((2< <p)-wL-wT)であり、 p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, and wT is a vertical weighting factor. The intra prediction mode used to obtain the predicted sample values for the first block is a DC intra prediction mode, and the intra prediction mode used to obtain the predicted sample values for the second block is a planar intra prediction mode.
[0044] According to an embodiment, a method of intra prediction of a block of a picture comprises the steps of: for a sample (x, y) of said block: obtaining a predicted sample value P(x,y) from one or more reference sample values by intra prediction using a DC intra prediction mode; generating a resultant predicted sample value P'(x,y) based on the predicted sample value P(x,y) and based on reference sample values R(x,-1) and R(-1,y), P'(x,y)=(wL×R(-1,y)+wT×R_(x,-1)+(64-wL-wT)×P(x,y)+32))>>6, the reference sample value R(x,-1) is the value of the sample (x,-1) located at the top of the block, the reference sample value R(-1,y) is the value of the sample (-1,y) located to the left of the block, wL is a horizontal weighting factor, and wT is a vertical weighting factor.
[0045] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will become apparent from the description, drawings, and claims. [Brief description of the drawings]
[0046] In the following, embodiments of the present disclosure are explained in more detail with reference to the accompanying drawings and figures. [Figure 1A] FIG. 1 is a block diagram illustrating an example of a video coding system configured to implement embodiments of the present disclosure. [Figure 1B] 1 is a block diagram illustrating another example of a video coding system configured to implement embodiments of the present disclosure. [Diagram 2] 1 is a block diagram illustrating an example of a video encoder configured to implement embodiments of the present disclosure. [Diagram 3] 2 is a block diagram illustrating an example structure of a video decoder configured to implement embodiments of the present disclosure. [Figure 4] FIG. 2 is a block diagram showing an example of an encoding device or a decoding device. [Diagram 5] FIG. 13 is a block diagram showing another example of an encoding device or a decoding device. [Figure 6] 4 shows examples of angular intra prediction directions and modes, and associated values of pang for the vertical prediction direction. [Figure 7] An example of conversion of pref~p1,ref for a 4x4 block is shown below. [Figure 8] 13 shows an example of the configuration of p1,ref for horizontal angle prediction. [Figure 9] 13 shows an example of the configuration of p1,ref for vertical angle prediction. [Figure 10A] 1 shows examples of angular intra-prediction directions and associated intra-prediction modes in JEM and BMS-1. [Figure 10B] 1 shows examples of angular intra-prediction directions and associated intra-prediction modes in VTM-2. [Figure 10C] 1 shows examples of angular intra-prediction directions and associated intra-prediction modes in VTM-3. [Figure 11] 1 shows examples of angular intra-prediction directions and associated intra-prediction modes in HEVC. [Figure 12] Here is an example of QTBT. [Figure 13] 1 shows an example of DC mode PDPC weights for the (0,0) and (1,0) positions within a 4×4 block. [Figure 14] 13 shows an example of intra prediction of a block from a reference sample of a primary reference edge. [Figure 15] 1 illustrates a method for intra predicting a block of a picture according to an embodiment. [Figure 16A] 2 shows an encoder or decoder device according to an embodiment; [Figure 16B] 2 shows an encoder or decoder device according to an embodiment; [Figure 17] of DC mode PDPC weights at (0,0) and (1,0) positions inside a 4x4 block; [Figure 18] 1 shows a sample intra prediction example.
[0047] In the following, unless expressly stated otherwise, identical reference signs denote identical or at least functionally equivalent features. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0048] In the following description, reference is made to the accompanying drawings, which form a part of this disclosure and which show, by way of illustration, certain aspects of the disclosed embodiments or in which the disclosed embodiments may be used. It is understood that the disclosed embodiments may be used in other ways and may include structural or logical changes not shown in the drawings. The following detailed description is therefore not to be taken in a limiting sense, and the scope of the present disclosure is defined by the appended claims.
[0049] For example, disclosure related to a described method also applies to a corresponding apparatus or system configured to perform the method, and vice versa. For example, when one or more specific method steps are described, the corresponding apparatus may include one or more units, e.g., functional units, to perform the described method steps (e.g., one unit performs one or more steps, or each of the multiple units performs one or more of the multiple steps), even if one or more units are not explicitly described or shown. On the other hand, for example, when a particular device is described based on one or more units, e.g., functional units, the corresponding method may include one step to perform the function of one or more units (e.g., one step performs the function of one or more units, or each of the multiple steps performs the function of one or more of the multiple units), even if one or more steps are not explicitly described or shown. Furthermore, it is understood that the features of various exemplary embodiments and / or aspects described herein may be combined with each other, unless otherwise specified.
[0050] Video coding typically refers to the processing of a sequence of pictures to form a video or a video sequence. Instead of the term "picture", the terms "frame" or "image" may be used synonymously in the field of video coding. Video coding (or coding in general) includes two parts: video encoding and video decoding. Video encoding is performed on the source side and typically involves processing the original video picture (e.g., by compression) to reduce the amount of data needed to represent the video picture (for more efficient storage and / or transmission). Video decoding is performed on the destination side and typically involves the reverse process compared to the encoder to reconstruct the video picture. The embodiments referring to "coding" of a video picture (or pictures in general) should be understood to relate to "encoding" or "decoding" of the video picture or the respective video sequence. The combination of the encoding and decoding parts is also called CODEC (Coding and Decoding).
[0051] In the case of lossless video coding, the original video picture can be reconstructed and the reconstructed video picture has the same quality as the original video picture (assuming there are no transmission losses or other data losses during storage or transmission). In the case of lossy video coding, further compression, for example by quantization, is performed to reduce the amount of data representing the video picture, which cannot be perfectly reconstructed at the decoder and the quality of the reconstructed video picture is lower or worse than the quality of the original video picture.
[0052] Some video coding standards belong to the group of "lossy hybrid video codecs" (e.g., combining spatial and temporal prediction in the sample domain with 2D transform coding applying quantization in the transform domain). Each picture of a video sequence is typically partitioned into a set of non-overlapping blocks, and coding is typically performed at the block level. In other words, in an encoder, video is typically processed or encoded at the block (video block) level, e.g., by generating a predictive block using spatial (intra-picture) prediction and / or temporal (inter-picture) prediction, subtracting the predictive block from a current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block, and quantizing the residual block in the transform domain to reduce (compress) the amount of data to be transmitted. Meanwhile, in a decoder, the reverse process compared to the encoder is applied to the coded or compressed block to reconstruct the current block for presentation. Additionally, the encoder may replicate the decoder processing loop such that both generate the same predictions (eg, intra and inter predictions) and / or reconstructions for processing, eg, coding, subsequent blocks.
[0053] In the following embodiment of the video coding system 10, the video encoder 20 and the video decoder 30 are described with reference to FIGS.
[0054] 1A is a schematic block diagram illustrating an example coding system 10 that may utilize techniques of the present application, such as video coding system 10 (or coding system 10 for short). A video encoder 20 (or encoder 20 for short) and a video decoder 30 (or decoder 30 for short) of video coding system 10 represent examples of devices that may be configured to perform techniques in accordance with various examples described herein.
[0055] As shown in FIG. 1A, coding system 10 includes a source device 12 configured to provide encoded picture data 21 to a destination device 14, for example, which decodes encoded picture data 21.
[0056] The source device 12 includes an encoder 20 , and may additionally and optionally include a picture source 16 , a pre-processor (or pre-processing unit) 18 , for example a picture pre-processor 18 , and a communication interface or unit 22 .
[0057] Picture source 16 may include or be any kind of picture capture device, such as a camera that captures real pictures, and / or any kind of picture generation device, such as a computer graphics processor that generates computer animated pictures, or any kind of other device that obtains and / or provides real-world pictures, computer-generated pictures (e.g., screen content, virtual reality (VR) pictures), and / or any combination thereof (e.g., augmented reality (AR) pictures). Picture source may be any kind of memory or memory that stores any of the aforementioned pictures.
[0058] In contrast to the pre-processor 18 and the processing performed by the pre-processing unit 18 , the pictures or picture data 17 may also be referred to as raw pictures or raw picture data 17 .
[0059] The pre-processor 18 is configured to receive the (raw) picture data 17 and perform pre-processing on the picture data 17 to obtain a pre-processed picture 19 or pre-processed picture data 19. The pre-processing performed by the pre-processor 18 may include, for example, cropping, color format conversion (e.g., from RGB to YCbCr), color correction, or noise removal. It can be understood that the pre-processing unit 18 may be an optional component.
[0060] A video encoder 20 is arranged to receive pre-processed picture data 19 and to provide encoded picture data 21 (further details are described below, for example with reference to FIG. 2).
[0061] The communications interface 22 of the source device 12 may be configured to receive the encoded picture data 21 and to transmit the encoded picture data 21 (or any further processed version thereof) via the communications channel 13 to another device, such as the destination device 14 or any other device, for storage or direct reconstruction.
[0062] Destination device 14 includes a decoder 30 (eg, a video decoder 30 ), and may additionally, or optionally, include a communications interface or unit 28 , a post-processor 32 (or post-processing unit 32 ), and a display device 34 .
[0063] The communications interface 28 of the destination device 14 is configured to receive the encoded picture data 21 (or any further processed version thereof), for example directly from the source device 12 or from any other source, for example a storage device, for example a coded picture data storage device, and to provide the encoded picture data 21 to a decoder 30.
[0064] The communications interface 22 and the communications interface 28 may be configured to transmit or receive the encoded picture data 21 or the encoded data 13 via a direct communications link between the source device 12 and the destination device 14, such as a direct wired or wireless connection, or via any type of network, such as a wired or wireless network, or any combination thereof, or via any type of private or public network, or any combination thereof.
[0065] The communications interface 22 may be configured to process the encoded picture data 21 using any type of transmission encoding or processing, for example to package the encoded picture data 21 in a suitable format, e.g. into packets, and / or for transmission over a communications link or network.
[0066] Communications interface 28 forms the counterpart to communications interface 22 and may be configured, for example, to receive transmitted data and process and / or unpackage the transmitted data using any type of corresponding transmission decoding or processing to obtain encoded picture data 21.
[0067] Both communication interface 22 and communication interface 28 may be configured as unidirectional communication interfaces, as indicated by the arrow of communication channel 13 pointing from source device 12 to destination device 14 in FIG. 1A, or as bidirectional communication interfaces, and may be configured to, for example, send and receive messages, for example to establish a connection, to acknowledge and exchange a communication link and / or any other information related to a data transmission, for example a coded picture data transmission.
[0068] The decoder 30 is arranged to receive the encoded picture data 21 and to provide decoded picture data 31 or decoded pictures 31 (further details are given below, for example with reference to FIG. 3 or FIG. 5).
[0069] The post-processor 32 of the destination device 14 is configured to post-process the decoded picture data 31 (also called reconstructed picture data), e.g. the decoded picture 31, to obtain post-processed picture data 33, e.g. the post-processed picture 33. The post-processing performed by the post-processing unit 32 may include, e.g. color format conversion (e.g. from YCbCr to RGB), color correction, cropping or resampling, or any other processing, e.g. to prepare the decoded picture data 31 for display, e.g. by a display device 34.
[0070] A display device 34 of the destination device 14 is configured to receive the post-processed picture data 33, for example to display the picture to a user or viewer. The display device 34 may be or include any type of display, such as an internal or external display or monitor, that presents the reconstructed picture. The display may include, for example, liquid crystal displays (LCD), organic light emitting diodes (OLED) displays, plasma displays, projectors, micro LED displays, liquid crystal on silicon (LCoS), digital light processors (DLP), or any other type of display.
[0071] 1A depicts source device 12 and destination device 14 as separate devices, an embodiment of the devices may include both source device 12 or corresponding functionality and destination device 14 or corresponding functionality, or both. In such an embodiment, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and / or software or separate hardware and / or software, or any combination thereof.
[0072] As will be clear to one of ordinary skill in the art based on the description, the presence and (exact) division of different units or functions within source device 12 and / or destination device 14 as shown in FIG. 1A may vary depending on the actual device and application.
[0073] Each of the encoder 20 (e.g., video encoder 20) and the decoder 30 (e.g., video decoder 30) may be implemented as any of a variety of suitable circuits, such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, hardware, or any combination thereof, as shown in FIG. 1B. If the techniques are implemented in part in software, an apparatus may store instructions for the software in a suitable non-transitory computer-readable storage medium and execute the instructions in hardware using one or more processors to perform the techniques of this disclosure. Any of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be considered to be one or more processors. Each of the video encoder 20 and the video decoder 30 may be included in one or more encoders or decoders, or any may be integrated within the respective apparatus as part of a combined encoder / decoder (CODEC).
[0074] Source device 12 and destination device 14 may include any of a wide range of devices, including any type of handheld or fixed device, such as a notebook or laptop computer, a mobile phone, a smartphone, a tablet or tablet computer, a camera, a desktop computer, a set-top box, a television, a display device, a digital media player, a video game console, a video streaming device (e.g., a content service server or a content delivery server), a broadcast receiving device, a broadcast sending device, etc., and may or may not use any type of operating system. In some cases, source device 12 and destination device 14 may be equipped for wireless communication. Thus, source device 12 and destination device 14 may be wireless communication devices.
[0075] In some cases, the video coding system 10 shown in FIG. 1A is merely an example, and the techniques of the present application may be applied to video coding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between an encoder and a decoder. In other examples, data may be read from local memory, streamed over a network, etc. A video encoder may encode data and store it in memory, and / or a decoder may read and decode data from memory. In some examples, encoding and decoding are performed by devices that do not communicate with each other, but simply encode data into memory and / or read and decode data from memory.
[0076] 1B is an illustration of another example video coding system 40 including the encoder 20 of FIG. 2 and / or the decoder 30 of FIG. 3, according to an example embodiment. System 40 can implement techniques according to various examples described herein. In the illustrated implementation, video coding system 40 may include an image device 41, a video encoder 100, a video decoder 30 (and / or a video coder implemented by logic circuitry 47 of a processing unit 46), an antenna 42, one or more processors 43, one or more memory stores 44, and / or a display device 45.
[0077] As shown, imaging device 41, antenna 42, processing unit 46, logic circuitry 47, video encoder 20, video decoder 30, processor 43, memory store 44, and / or display device 45 may be in communication with one another. As discussed, although shown with both video encoder 20 and video decoder 30, video coding system 40 may include only video encoder 20 or only video decoder 30 in various examples.
[0078] As shown, in some examples, video coding system 40 may include antenna 42. Antenna 42 may be configured to transmit or receive, for example, an encoded bitstream of video data. Additionally, in some examples, video coding system 40 may include display device 45. Display device 45 may be configured to present the video data. As shown, in some examples, logic circuitry 47 may be implemented by processing unit 46. Processing unit 46 may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, etc. Video coding system 40 may also include optional processor 43, which may also include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, etc. In some examples, logic circuitry 47 may be implemented by hardware, dedicated video coding hardware, etc., and processor 43 may implement general-purpose software, an operating system, etc. Further, memory store 44 may be any type of memory, such as volatile memory (e.g., Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), etc.) or non-volatile memory (e.g., flash memory, etc.). In a non-limiting example, memory store 44 may be implemented by a cache memory. In some examples, logic circuitry 47 may access memory store 44 (e.g., for implementation of an image buffer). In other examples, logic circuitry 47 and / or processing unit 46 may include a memory store (e.g., a cache, etc.) for implementation of an image buffer, etc.
[0079] In some examples, video encoder 20 implemented by logic circuitry may include an image buffer (e.g., by either processing unit 46 or memory store 44) and a graphics processing unit (e.g., by processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include video encoder 20 implemented by logic circuitry 47 to implement various modules such as those discussed with respect to FIG. 2 and / or any other encoder system or subsystems described herein. The logic circuitry may be configured to perform various operations as discussed herein.
[0080] Video decoder 30 may be implemented in a manner similar to that implemented by logic circuitry 47 to implement various modules as discussed with respect to decoder 30 of FIG. 3 and / or any other decoder system or subsystem described herein. In some examples, video decoder 30 may be implemented via logic circuitry and may include an image buffer (e.g., by either processing unit 420 or memory store 44) and a graphics processing unit (e.g., by processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include video decoder 30 as implemented by logic circuitry 47 to implement various modules as discussed with respect to decoder 30 of FIG. 3 and / or any other decoder system or subsystem described herein.
[0081] In some examples, antenna 42 of video coding system 40 may be configured to receive an encoded bitstream of video data. As discussed, the encoded bitstream may include data related to the encoding of video frames as discussed herein, such as data related to coding partitions (e.g., transform coefficients or quantized transform coefficients, optional indicators (as discussed), and / or data defining coding partitions), indicators, index values, mode selection data, etc. Video coding system 40 may also include a video decoder 30 coupled to antenna 42 and configured to decode the encoded bitstream. Display device 45 is configured to present the video frames.
[0082] For ease of explanation, embodiments of the present disclosure are described herein with reference to, for example, High-Efficiency Video Coding (HEVC), or Versatile Video coding (VVC) reference software, a next-generation video coding standard developed by the ITU-T Video Coding Experts Group (VCEG) and the Joint Collaboration Team on Video Coding (JCT-VC) of the ISO / IEC Motion Picture Experts Group (MPEG). Those skilled in the art will appreciate that embodiments of the present disclosure are not limited to HEVC or VVC.
[0083] Encoder and encoding method FIG. 2 shows a schematic block diagram of an exemplary video encoder 20 configured to implement the techniques of the present application. In the example of FIG. 2, the video encoder 20 includes an input 201 (or an input interface 201), a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210 and an inverse transform processing unit 212, a reconstruction unit 214, a loop filter unit 220, a decoded picture buffer (DPB) 230, a mode selection unit 260, an entropy coding unit 270, and an output 272 (or an output interface 272). The mode selection unit 260 may include an inter prediction unit 244, an intra prediction processing unit 254, and a partition unit 262. The inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The video encoder 20 shown in FIG. 2 may also be referred to as a hybrid video encoder or a video encoder according to a hybrid video codec.
[0084] The residual calculation unit 204, the transform processing unit 206, the quantization unit 208, and the mode selection unit 260 may be referred to as forming a forward signal path of the encoder 20. Meanwhile, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, the inter prediction processing unit 244, and the intra prediction unit 254 may be referred to as forming a backward signal path of the video encoder 20, which corresponds to the signal path of the decoder (see the video decoder 30 of FIG. 3). The inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the loop filter 220, the decoded picture buffer (DPB) 230, the inter prediction unit 244, and the intra prediction unit 254 may also be referred to as forming a “built-in decoder” of the video encoder 20.
[0085] Pictures and picture partitions (pictures and blocks) The encoder 20 may be configured to receive, for example via an input 201, a picture 17 (or picture data 17), for example a picture of a sequence of pictures forming a video or a video sequence. The received picture or picture data may be a preprocessed picture 19 (or preprocessed picture data 19). For simplicity, the following description refers to the picture 17. The picture 17 may also be called a current picture or a coded picture (particularly in video coding, to distinguish the current picture from other pictures, for example previously coded and / or decoded pictures of the same video sequence, i.e. a video sequence which also contains the current picture).
[0086] A (digital) picture is or can be considered as a two-dimensional array or matrix of samples with intensity values. The samples in the array may also be called pixels (short for picture element) or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the picture. For color representation, typically three color components are used. That is, a picture may be represented in or contain three sample arrays. In RBG format or color space, a picture contains corresponding red, green, and blue sample arrays. However, in video coding, each pixel is typically represented in a luma and chrominance format or color space, e.g. YCbCr, which contains a luma component denoted by Y (sometimes L is used instead) and two chrominance components denoted by Cb and Cr. The luma (or luma for short) component Y represents the brightness or gray level intensity (e.g. as in a grayscale picture). On the other hand, the two chromaticity (or chroma for short) components Cb and Cr represent chromaticity or color information components. Thus, a picture in YCbCr format includes a luma sample array of luma sample values (Y) and two chrominance sample arrays of chrominance values (Cb and Cr). A picture in RGB format may be converted or transformed into YCbCr format, or vice versa, a process also known as color conversion or transformation. If a picture is monochromatic, the picture may include only a luma sample array. Thus, a picture may be, for example, an array of luma samples or an array of luma samples in a monochromatic format and two corresponding arrays of chroma samples in 4:2:0, 4:2:2, and 4:4:4 color formats.
[0087] An embodiment of video encoder 20 may include a picture partition unit (not shown in FIG. 2) configured to partition picture 17 into multiple (typically non-overlapping) picture blocks 203. These blocks may be called root blocks, macroblocks (H.264 / AVC) or coding tree blocks (CTBs) or coding tree units (CTUs) (H.265 / HEVC and VVC). The picture partition unit may be configured to use the same block size for all pictures of a video sequence and a corresponding grid that defines the block size, or to vary the block size between pictures or subsets or groups of pictures, and to partition each picture into corresponding blocks.
[0088] In a further embodiment, the video encoder may be configured to directly receive blocks 203 of picture 17, such as one, some or all of the blocks forming picture 17. Picture blocks 203 may also be referred to as current picture blocks or coded picture blocks.
[0089] Similar to the picture 17, the picture block 203 is or can be considered as a two-dimensional array or matrix of samples with intensity values (sample values), but with smaller dimensions than the picture 17. In other words, the block 203 may contain, for example, one sample array (e.g., a luma array in case of a monochrome picture 17, or a luma or chroma array in case of a color picture), or three sample arrays (e.g., a luma and two chroma arrays in case of a color picture 17), or any other number and / or type of arrays depending on the color format applied. The number of samples in the horizontal and vertical directions (or axes) of the block 203 determines the size of the block 203. Thus, the block may be, for example, an M×N (M columns×N rows) array of samples, or an M×N array of transform coefficients.
[0090] 2 may be configured to encode picture 17 on a block-by-block basis. For example, encoding and prediction is performed on a block-by-block basis.
[0091] Residual calculation The residual calculation unit 204 may be configured to calculate a residual block 205 (also referred to as residual 205) based on the picture block 203 and a prediction block 265 (further details regarding the prediction block 265 are provided later), for example by subtracting sample values of the prediction block 265 from sample values of the picture block 203 sample-by-sample (pixel-by-pixel) to obtain the residual block 205 in the sample domain.
[0092] conversion The transform processing unit 206 may be configured to apply a transform, such as a discrete cosine transform (DCT) or a discrete sine transform (DST), to the sample values of the residual block 205 to obtain transform coefficients 207 in a transform domain. The transform coefficients 207 may also be referred to as transformed residual coefficients and represent the residual block 205 in the transform domain.
[0093] The transform processing unit 206 may be configured to apply an integer approximation of a DCT / DST, such as the transform specified for H.265 / HEVC. Compared to an orthogonal DCT transform, such an integer approximation is typically scaled by a particular factor. In order to maintain the norm of the residual blocks processed by the forward and inverse transforms, an additional scaling factor is applied as part of the transform processing. The scaling factor is typically selected based on certain constraints, such as the scaling factor being a power of two for shift operations, the bit depth of the transform coefficients, a trade-off between accuracy and implementation cost, etc. A particular scaling factor may be specified, for example, for the inverse transform, e.g., by the inverse transform processing unit 212 (and the corresponding inverse transform, e.g., by the inverse transform processing unit 312 in the video decoder 30), and a corresponding scaling factor for the forward transform, e.g., by the transform processing unit 206 in the encoder 20, may be specified accordingly.
[0094] An embodiment of video encoder 20 (respectively, transform processing unit 206) may be configured to output transform parameters, e.g., a type of transform or multiple transforms, e.g., direct or encoded or compressed by entropy coding unit 270. As a result, for example, video decoder 30 may receive and use the transform parameters for decoding.
[0095] Quantization The quantization unit 208 may be configured to quantize the transform coefficients 207, for example by applying scalar quantization or vector quantization, to obtain quantized coefficients 209. The quantized coefficients 209 may also be referred to as quantized transform coefficients 209 or quantized residual coefficients 209.
[0096] The quantization process may reduce the bit depth associated with some or all of the transform coefficients 207. For example, an n-bit transform coefficient may be truncated to an m-bit transform coefficient during quantization, where n is greater than m. The degree of quantization may be changed by adjusting a quantization parameter (QP). For example, in scalar quantization, different scaling may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to finer quantization. On the other hand, a larger quantization step size corresponds to coarser quantization. The applicable quantization step sizes may be indicated by a quantization parameter (QP). The quantization parameter may, for example, be an index to a predefined set of applicable quantization step sizes. For example, a small quantization parameter may correspond to finer quantization (smaller quantization step size) and a large quantization parameter may correspond to coarser quantization (larger quantization step size). Vice versa. Quantization may include division by the quantization step size. The corresponding and / or inverse inverse quantization, for example by the inverse quantization unit 210, may include multiplication by a quantization step size. An embodiment according to some standards, for example HEVC, may be configured to use a quantization parameter to determine the quantization step size. Typically, the quantization step size may be calculated based on the quantization parameter using a fixed-point approximation of a formula that includes division. Additional scaling factors for quantization and inverse quantization may be introduced to restore the levels of the residual block that may be changed due to the scaling used in the fixed-point approximation of the formula of the quantization step size and the quantization parameter. In one exemplary implementation, the scaling of the inverse transform and the inverse quantization may be combined. Alternatively, customized quantization tables may be used and signaled from the encoder to the decoder, for example in the bitstream. Quantization is a lossy operation, and the loss increases with increasing quantization step size.
[0097] Embodiments of video encoder 20 (respectively, quantization unit 208) may be configured to output quantization parameters (QP), e.g., directly or encoded by entropy encoding unit 270. Then, for example, video decoder 30 may receive and apply the quantization parameters for decoding.
[0098] inverse quantization The inverse quantization unit 210 is configured to apply the inverse quantization of the quantization unit 208 to the quantized coefficients, e.g., by applying the inverse of the quantization scheme applied by the quantization unit 208, based on or using the same quantization step size as the quantization unit 208, to obtain the inverse quantized coefficients 211. The inverse quantized coefficients 211, also referred to as the inverse quantized residual coefficients 211, may correspond to the transform coefficients 207, although they are not typically the same as the transform coefficients due to losses due to quantization.
[0099] Inverse transformation The inverse transform processing unit 212 is configured to apply an inverse transform of the transform applied by the transform processing unit 206, such as an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST) or other inverse transform, to obtain a reconstructed residual block 213 (or corresponding dequantized coefficients 213) in the sample domain. The reconstructed residual block 213 may also be referred to as a transform block 213.
[0100] Reconstruction The reconstruction unit 214 (e.g., an adder or analog adder 214) is configured to add the transformation block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 to obtain a reconstructed block 215 in the sample domain, for example by adding sample values of the reconstructed residual block 213 and sample values of the prediction block 265 sample by sample.
[0101] filtering The loop filter unit 220 (or "loop filter" 220 for short) is configured to filter the reconstruction block 215 to obtain a filtered block 221, or in general, to filter the reconstructed samples to obtain filtered samples. The loop filter unit is configured, for example, to smooth pixel transitions or otherwise improve video quality. The loop filter unit 220 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, such as a bilateral filter, an adaptive loop filter (ALF), a sharpening, a smoothing filter, or a collaborative filter, or any combination thereof. Although the loop filter unit 220 is illustrated in FIG. 2 as being an in-loop filter, in other configurations the loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 may be referred to as a filtered reconstruction block 221. The decoded picture buffer 230 may store the reconstructed coding blocks after the loop filter unit 220 performs filtering operations on the reconstructed coding blocks.
[0102] Embodiments of video encoder 20 (respectively, loop filter unit 220) may be configured to output loop filter parameters (such as sample adaptive offset information), e.g., directly or encoded by entropy encoding unit 270. As a result, for example, decoder 30 may receive and apply the same loop filter parameters or respective loop filters for decoding.
[0103] Decoded Picture Buffer The decoded picture buffer (DPB) 230 may be a memory that stores reference pictures, or reference picture data in general, for encoding of video data by video encoder 20. DPB 230 may be formed of any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. The decoded picture buffer (DPB) 230 may be configured to store one or more filtered blocks 221. The decoded picture buffer 230 may further be configured to store other previous filtered blocks, e.g., previous reconstructed and filtered blocks 221, of the same current picture or of a different picture, e.g., a previous reconstructed picture, and may provide a complete previously reconstructed, i.e. decoded, picture (and corresponding reference blocks and samples) and / or a partially reconstructed current picture (and corresponding reference blocks and samples), e.g., for inter prediction. The decoded picture buffer (DPB) 230 may be configured to store one or more unfiltered reconstructed blocks 215, or in general, unfiltered reconstructed samples, e.g., in case the reconstructed blocks 215 are not filtered by the loop filter unit 220, or any other further processed version of the reconstructed blocks or samples.
[0104] Mode Selection (Partition and Prediction) The mode selection unit 260 includes a partition unit 262, an inter prediction unit 244, and an intra prediction unit 254, and is configured to receive or obtain original picture data, such as the original block 203 (current block 203 of current picture 17), and reconstructed picture data, such as filtered and / or unfiltered reconstructed samples or blocks of the same (current) picture and / or from one or more previous decoded pictures, for example from the decoded picture buffer 230 or other buffers (e.g. line buffers, not shown). The reconstructed picture data is used as reference picture data for prediction, such as inter prediction or intra prediction, to obtain a prediction block 265 or a predictor 265.
[0105] The mode selection unit 260 may be configured to determine or select a partition (including no partitioning) of the current block prediction mode and a prediction mode (e.g., intra or inter prediction mode) and generate a corresponding prediction block 265 used for calculation of the residual block 205 and for reconstruction of the reconstruction block 215.
[0106] An embodiment of the mode selection unit 260 may be configured to select a partition and prediction mode (e.g., from those supported or available by the mode selection unit 260) that provides the best match or in other words the smallest residual (smallest residual means better compression for transmission or storage) or the smallest signaling overhead (smallest signaling overhead means better compression for transmission or storage), or that considers or balances both. The mode selection unit 260 may be configured to determine the partition and prediction mode based on rate distortion optimization (RDO), i.e., to select the prediction mode that provides the smallest rate distortion. Terms such as “best”, “minimum”, “optimum”, etc. in this context do not necessarily represent an overall “best”, “minimum”, “optimum”, etc., but may also represent a termination or selection criterion, such as a value that is above or below a threshold, or the satisfaction of other constraints that may result in a “suboptimal selection”, but that reduce complexity and processing time.
[0107] In other words, the partition unit 262 may be configured to partition the block 203 into smaller block partitions or sub-blocks, e.g., using a quad-tree (QT), binary-tree (BT) or triple-tree (TT) partition, or any combination thereof, repeatedly, and perform prediction on each block partition or sub-block, e.g., where the mode selection includes selecting a tree structure of the partitioned block 203, and a prediction mode is applied to each of the block partitions or sub-blocks.
[0108] Below, the partitioning (eg, by partition unit 260) and prediction processes (by inter prediction unit 244 and intra prediction unit 254) performed by exemplary video encoder 20 are described in further detail.
[0109] partition The partition unit 262 may partition (or split) the current block 203 into smaller partitions, e.g. smaller blocks of square or rectangular size. These smaller blocks (which may also be called sub-blocks) may be further partitioned into even smaller partitions. This is also called tree partitioning or hierarchical tree partitioning. Here, for example, a root block at root tree level 0 (hierarchical level 0, depth 0) may be recursively partitioned into, for example, two or more blocks at the next lower tree level, e.g., nodes at tree level 1 (hierarchical level 1, depth 1). Now, these blocks may be partitioned again into two or more blocks at the next lower level, e.g., tree level 2 (hierarchical level 2, depth 2), etc., until, for example, the partitioning is terminated, e.g., because a termination criterion is met, e.g., a maximum tree depth or a minimum block size is reached. Blocks that are not further partitioned are also called leaf blocks or leaf nodes of the tree. A tree that uses a partition into two partitions is called a binary-tree (BT), a tree that uses a partition into three partitions is called a ternary-tree (TT), and a tree that uses a partition into four partitions is called a quad-tree (QT).
[0110] As mentioned above, the term "block" as used herein may refer to a portion of a picture, in particular a square or rectangular portion. With reference to HEVC and VVC, for example, a block may be or correspond to a coding tree unit (CTU), a coding unit (CU), a prediction unit (PU), and a transform unit (TU), and / or a corresponding block, such as a coding tree block (CTB), a coding block (CB), a transform block (TB), or a prediction block (PB).
[0111] For example, a coding tree unit (CTU) may be or include a CTB of luma samples, two corresponding CTBs of chroma samples of a picture with a three sample arrangement, or a CTB of samples of a monochrome picture, or a picture coded with a syntax structure used to code three separate color planes and samples. Correspondingly, a coding tree block (CTB) may be an N×N block of samples for some value of N. As a result, the division of components into CTBs is a partition. A coding unit (CU) may be or include a coding block of luma samples, two corresponding coding blocks of chroma samples of a picture with a three sample arrangement, or a coding block of samples of a monochrome picture, or a picture coded with a syntax structure used to code three separate color planes and samples. Correspondingly, a coding block (CB) may be an M×N block of samples for some values of M and N. As a result, the division of a CTB into coding blocks is a partition.
[0112] For example, in an embodiment according to HEVC, a coding tree unit may be divided into CUs using a quad-tree structure, denoted as a coding tree. The decision of whether to code a picture region using inter-picture (temporal) or intra-picture (spatial) prediction is made at the CU level. Each CU can be further divided into 1, 2, or 4 PUs according to a PU partition type. Within one PU, the same prediction process is applied, and related information is sent to the decoder for each PU. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be partitioned into transform units (TUs) according to another quad-tree structure similar to the coding tree of the CU.
[0113] In an embodiment according to the latest video coding standard currently under development, for example called Versatile Video Coding (VVC), quad-tree and binary tree (QTBT) partitions are used to partition the coding blocks. In the QTBT block structure, the CUs may have either a square or rectangular shape. For example, a coding tree unit (CTU) is first partitioned by a quad-tree structure. The leaf nodes of the quad-tree are further partitioned by a binary or ternary (or triple) tree structure. The leaf nodes of the partition tree are called coding units (CUs), and segmentation is used for prediction and transform processes without any further partitions. This means that CUs, PUs, and TUs have the same block size in the QTBT coding block structure. At the same time, multiple partitions, for example ternary tree partitions, have also been proposed for use with the QTBT block structure.
[0114] In one example, mode selection unit 260 of video encoder 20 may be configured to perform any combination of the partitioning techniques described herein.
[0115] As mentioned above, video encoder 20 may be configured to determine or select a best or optimal prediction mode from a set of (predetermined) prediction modes, which may include, for example, intra-prediction modes and / or inter-prediction modes.
[0116] Intra prediction The set of intra prediction modes may include 35 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes such as defined for example in HEVC, or may include 67 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes such as defined for example for VVC.
[0117] The intra prediction unit 254 is configured to use reconstructed samples of neighboring blocks of the same current picture to generate an intra prediction block 265 according to an intra prediction mode from a set of intra prediction modes.
[0118] Intra prediction unit 254 (or generally, mode selection unit 260) is further configured to output the intra prediction parameters (or generally, information indicative of the selected intra prediction mode for the block) to entropy encoding unit 270 in the form of syntax element 266 for inclusion in encoded picture data 21. As a result, for example, video decoder 30 may receive and use the prediction parameters for decoding.
[0119] Inter Prediction The set of inter prediction modes (or possibilities) depends on the available reference pictures (i.e., previous, at least partially decoded pictures, e.g., stored in DBP 230) and other inter prediction parameters, e.g., whether the entire reference picture or only a portion of it is used to search for the best matching reference block, e.g., a search window region around the region of the current block of the reference picture, and / or whether, e.g., pixel interpolation is applied, e.g., half / semi-pel and / or quarter-pel interpolation.
[0120] In addition to the prediction modes mentioned above, skip mode and / or direct mode may be applied.
[0121] The inter prediction unit 244 may include a motion estimation (ME) unit and a motion compensation (MC) unit (both not shown in FIG. 2). The motion estimation unit may be configured to receive or obtain a picture block 203 (current block 203 of current picture 17) and at least one or more of a decoded picture 231 or a previous reconstructed block, such as one or more reconstructed blocks of another / different previous decoded picture 231, for motion estimation. For example, a video sequence may include the current picture and the previous decoded picture 231, or in other words, the current picture and the previous decoded picture 231 may be part of or form a sequence of pictures that form a video sequence.
[0122] The encoder 20 may be configured to, for example, select a reference block from multiple reference blocks of the same or different pictures from multiple other pictures, and provide the reference picture (or reference picture index) and / or an offset (spatial offset) between the position (x,y coordinates) of the reference block and the position of the current block as an inter prediction parameter to the motion estimation unit, which offset is also called a motion vector (MV).
[0123] The motion compensation unit is configured to obtain, for example receive, inter prediction parameters and perform inter prediction based on or using the inter prediction parameters to obtain an inter prediction block 265. The motion compensation performed by the motion compensation unit may include fetching or generating a prediction block based on a motion / block vector determined by motion estimation, and possibly performing interpolation to sub-pixel accuracy. Interpolation filtering may generate additional pixel samples from known pixel samples, thus potentially increasing the number of candidate prediction blocks that can be used to code the picture block. Upon receiving the motion vector of the PU of the current picture block, the motion compensation unit may locate the prediction block pointed to by the motion vector in one of the reference picture lists.
[0124] The motion compensation unit may also generate syntax elements associated with the blocks and video slices, for use by video decoder 30 in decoding picture blocks of the video slices.
[0125] Entropy Coding The entropy encoding unit 270 is configured to, for example, apply or bypass (do not compress) an entropy encoding algorithm or scheme (e.g., a variable length coding (VLC) scheme, a context adaptive VLC (CAVLC) scheme, an arithmetic coding scheme, binarization, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or another entropy encoding method or technique) to the quantized residual coefficients 209, the inter-prediction parameters, the intra-prediction parameters, the loop filter parameters, and / or other syntax elements to obtain encoded picture data 21, which may be output via an output 272, for example in the form of an encoded bitstream 21. As a result, for example, the video decoder 30 may receive and use the parameters for decoding. Encoded bitstream 21 may be transmitted to video decoder 30 or stored in memory for later transmission or retrieval by video decoder 30 .
[0126] Other structural variations of the video encoder 20 may be used to encode the video stream. For example, a non-transform based encoder 20 may directly quantize the residual signal for a particular block or frame without having a transform processing unit 206. In another implementation, the encoder 20 may have the quantization unit 208 and the inverse quantization unit 210 combined into a single unit.
[0127] Decoder and decoding method 3 shows an example of a video decoder 30 configured to implement the techniques of the present application. The video decoder 30 is configured to receive coded picture data 21 (e.g., coded bitstream 21), e.g., coded by encoder 20, to obtain decoded picture 331. The coded picture data or bitstream includes information for decoding the coded picture data, e.g., data indicating picture blocks of coded video slices and associated syntax elements.
[0128] In the example of FIG. 3, decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (e.g., summer 314), a loop filter 320, a decoded picture buffer (DBP) 330, an inter prediction unit 344, and an intra prediction unit 354. Inter prediction unit 344 may be or include a motion compensation unit. Video decoder 30, in some examples, may perform a decoding pass that is generally reciprocal to the encoding passes described with respect to video encoder 100 from FIG. 2.
[0129] As described with respect to encoder 20, inverse quantization unit 210, inverse transform processing unit 212, reconstruction unit 214, loop filter 220, decoded picture buffer (DPB) 230, inter prediction unit 344, and intra prediction unit 354 are also referred to as forming a “built-in decoder” of video encoder 20. Thus, inverse quantization unit 310 may be functionally identical to inverse quantization unit 110, inverse transform processing unit 312 may be functionally identical to inverse transform processing unit 212, reconstruction unit 314 may be functionally identical to reconstruction unit 214, loop filter 320 may be functionally identical to loop filter 220, and decoded picture buffer 330 may be functionally identical to decoded picture buffer 230. Thus, the descriptions provided for the respective units and functions of video encoder 20 apply correspondingly to the respective units and functions of video decoder 30.
[0130] Entropy Decoding The entropy decoding unit 304 is configured to parse the bitstream 21 (or the coded picture data 21 in general) and, for example, perform entropy decoding on the coded picture data 21 to obtain, for example, the quantized coefficients 309 and / or decoded coding parameters (not shown in FIG. 3 ), for example, any or all of inter prediction parameters (e.g., reference picture indexes and motion vectors), intra prediction parameters (e.g., intra prediction modes or indices), transform parameters, quantization parameters, loop filter parameters, and / or other syntax elements. The entropy decoding unit 304 may be configured to apply a decoding algorithm or scheme corresponding to an encoding scheme as described with respect to the entropy encoding unit 270 of the encoder 20. The entropy decoding unit 304 may be further configured to provide the inter prediction parameters, intra prediction parameters, and / or other syntax elements to the mode application unit 360 and other parameters to other units of the decoder 30. The video decoder 30 may receive video slice level and / or video block level syntax elements.
[0131] inverse quantization The inverse quantization unit 310 may be configured to receive a quantization parameter (QP) (or generally, information regarding inverse quantization) and quantized coefficients from the coded picture data 21 (e.g., by parsing and / or decoding by the entropy decoding unit 304), and apply inverse quantization to the decoded quantized coefficients 309 based on the quantization parameter to obtain inverse quantized coefficients 311, which may also be referred to as transform coefficients 311. The inverse quantization process may include determining, for each video block in a video slice, the degree of quantization, and likewise the degree of inverse quantization to be applied, using the quantization parameter determined by the video encoder 20.
[0132] Inverse transformation The inverse transform processing unit 312 may be configured to receive the dequantized coefficients 311, also referred to as transform coefficients 311, and to apply a transform to the dequantized coefficients 311 to obtain the reconstructed residual block 213 in the sample domain. The reconstructed residual block 213 may also be referred to as a transform block 313. The transform may be an inverse transform, e.g., an inverse DCT, an inverse DST, an inverse integer transform, or a conceptually similar inverse transform process. The inverse transform processing unit 312 may be further configured to receive transform parameters or corresponding information from the coded picture data 21 (e.g., by parsing and / or decoding by the entropy decoding unit 304) to determine the transform to be applied to the dequantized coefficients 311.
[0133] Reconstruction The reconstruction unit 314 (e.g., an adder or analog adder 314) may be configured to add the reconstructed residual block 313 to the prediction block 365 to obtain a reconstructed block 315 in the sample domain, for example by adding sample values of the reconstructed residual block 313 and sample values of the prediction block 365.
[0134] filtering A loop filter unit 320 (in the coding loop or after the coding loop) is configured to filter the reconstructed block 315 to obtain a filtered block 321, e.g., to smooth pixel transitions or otherwise improve video quality. The loop filter unit 320 may include one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or one or more other filters, e.g., a bilateral filter, an adaptive loop filter (ALF), a sharpening, a smoothing filter, or a collaborative filter, or any combination thereof. Although the loop filter unit 320 is illustrated in FIG. 3 as being an in-loop filter, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.
[0135] Decoded Picture Buffer The decoded video blocks 321 of the picture are then stored in a decoded picture buffer 330, which stores the decoded picture 331 as a reference picture for subsequent motion compensation for other pictures and / or for display output, respectively.
[0136] The decoder 30 is arranged to output the decoded pictures 311, for presentation or viewing to a user, eg via an output 312.
[0137] prediction The inter prediction unit 344 may be identical to the inter prediction unit 244 (in particular the motion compensation unit), and the intra prediction unit 354 may be functionally identical to the inter prediction unit 254, performing the division or partition decision and prediction based on the partition and / or prediction parameters or respective information received (e.g. by parsing and / or decoding by the entropy decoding unit 304) from the coded picture data 21. The mode selection unit 360 may be configured to perform prediction (intra or inter prediction) for each block based on the reconstructed picture, block, or respective (filtered or unfiltered) samples to obtain a prediction block 365.
[0138] When the video slice is coded as an intra coded (I) slice, the intra prediction unit 354 of the mode selection unit 360 is configured to generate a prediction block 365 for a picture block of the current video slice based on the signaled intra prediction mode and data from a previous decoded block of the current picture. When the video picture is coded as an inter coded (i.e., B or P) slice, the inter prediction unit 344 (e.g., a motion compensation unit) of the mode selection unit 360 is configured to generate a prediction block 365 for a video block of the current video slice based on the motion vector and other syntax elements received from the entropy decoding unit 304. In inter prediction, the prediction block may be generated from one of the reference pictures in one of the reference picture lists. The video decoder 30 may construct the reference frame lists: List 0 and List 1 using a specified construction technique based on the reference pictures stored in the DPB 330.
[0139] Mode selection unit 360 is configured to determine prediction information for video blocks of the current video slice by parsing the motion vectors and other syntax elements, and to use the prediction information to generate predictive blocks for the current video block being decoded. For example, mode selection unit 360 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) to be used to code the video blocks of the video slice, an inter-prediction slice type (e.g., a B slice, a P slice, or a GPB slice), configuration information for one or more of the reference picture lists of the slice, motion vectors for each inter-coded video block of the slice, an inter-prediction state for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0140] Other variations of the video decoder 30 may be used to decode the encoded picture data 21. For example, the decoder 30 may generate an output video stream without having a loop filter unit 320. For example, a non-transform-based decoder 30 may directly inverse quantize the residual signal for a particular block or frame without having an inverse transform processing unit 312. In another implementation, the video decoder 30 may have the inverse quantization unit 310 and the inverse transform processing unit 312 combined into a single unit.
[0141] 4 is a schematic diagram of a video coding device 400 according to an embodiment of the present disclosure. The video coding device 400 is suitable for implementing embodiments of the disclosure as described herein. In one embodiment, the video coding device 400 may be a decoder, such as the video decoder 30 of FIG. 1A, or an encoder, such as the video encoder 20 of FIG. 1A.
[0142] Video coding device 400 includes an ingress port 410 (or input port 410) and a receiver unit (Rx) 420 for receiving data, a processor, logic unit, or central processing unit (CPU) 430 for processing data, a transmitter unit (Tx) 440 and an egress port 450 (or output port 460) for transmitting data, and a memory 460 for storing data. Video coding device 400 may also include optical-to-electrical (OE) and electrical-to-optical (EO) components for egress or ingress of optical or electrical signals connected to ingress port 410, receiver unit 420, transmitter unit 440, and egress port 450.
[0143] The processor 430 is implemented by hardware and software. The processor 430 may be implemented as one or more CPU chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs. The processor 430 communicates with the ingress port 410, the receiver unit 420, the transmitter unit 440, the egress port 450, and the memory 460. The processor 430 includes a coding module 470. The coding module 470 implements the above-disclosed embodiments. For example, the coding module 470 implements, processes, prepares, or provides various coding operations. The inclusion of the coding module 470 thus provides substantial improvements to the functionality of the video coding device 400 and results in the transformation of the video coding device 400 into different states. Alternatively, the coding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
[0144] Memory 460 may include one or more disks, tape drives, and solid state drives, and may be used to store programs when they are selected for execution and as overflow data storage to store instructions and data read during execution of the programs. Memory 460 may be, for example, volatile and / or non-volatile, and may be read-only memory (ROM), random access memory (RAM), ternary content-addressable memory (TCAM), and / or static random-access memory (SRAM).
[0145] 5 is a simplified block diagram of a device 500 that may be used as one or both of source device 12 and destination device 14 from FIG. 1A in accordance with an exemplary embodiment. Device 500 is capable of implementing the techniques of this disclosure as described above. Device 500 may be in the form of a computing system including multiple computing devices, or in the form of a single computing device, such as a mobile phone, tablet computer, laptop computer, notebook computer, desktop computer, etc.
[0146] The processor 502 in the device 500 may be a central processing unit. Alternatively, the processor 502 may be any other type of device or devices capable of manipulating or processing information, either now existing or developed in the future. Although implementations of the disclosure may be performed with a single processor, such as the processor 502, as shown, benefits in speed and efficiency may be achieved using more than one processor.
[0147] The memory 504 in the device 500 may be, in one implementation, a read only memory (ROM) device or a random access memory (RAM) device. Any other suitable type of storage device may be used as the memory 504. The memory 504 may include code and data 506 that is accessed by the processor 502 using a bus 512. The memory 504 may further include an operating system 508 and application programs 510. The application programs 510 include at least one program that enables the processor 502 to perform the methods described herein. For example, the application programs 510 may include applications 1-N, further including a video coding application that performs the methods described herein. The device 500 may also include additional memory in the form of a secondary storage 514, which may be, for example, a memory card used with a mobile computing device. Because video communication sessions may include a significant amount of information, they may be stored in whole or in part in the secondary storage 514 and loaded into the memory 504 as needed for processing.
[0148] Device 500 may also include one or more output devices, such as a display 518. Display 518, in one example, may be a touch-sensitive display that combines a display with touch-sensitive elements operative to sense touch input. Display 518 may be coupled to processor 502 via bus 512. Other output devices that enable a user to program or use device 500 may be provided in addition to or as an alternative to display 518. When an output device is or includes a display, the display may be implemented in a variety of ways, including a liquid crystal display (LCD), a cathode-ray tube (CRT) display, a plasma display, or a light emitting diode (LED) display, such as an organic LED (OLED) display.
[0149] Device 500 may also include or communicate with an image sensing device 520, such as a camera or any other existing or future developed image sensing device 520 capable of sensing images, such as an image of a user operating device 500. Image sensing device 520 may be positioned to be pointed at a user operating device 500. In one example, the position and optical axis of image sensing device 520 may be configured such that the field of view includes an area immediately adjacent to display 518 and from which display 518 is visible.
[0150] Device 500 may also include or communicate with a voice sensing device 522, such as a microphone or any other existing or future developed voice sensing device capable of sensing sound proximate device 500. Voice sensing device 522 may be positioned to face a user operating device 500 and configured to receive sound, e.g., speech or other utterances, generated by the user while the user is operating device 500.
[0151] Although FIG. 5 depicts the processor 502 and memory 504 of device 500 as integrated in a single unit, other configurations are available. The operations of processor 502 may be distributed across multiple machines (each machine having one or more processors) that may be directly coupled or across a local area or other network. Memory 504 may be distributed across multiple machines, such as a network-based memory or memory among multiple machines that perform the operations of device 500. Although shown here as a single bus, bus 512 of device 500 may be comprised of multiple buses. Additionally, secondary storage 514 may be directly connected to other components of device 500 or may be accessible over a network, and may include a single integrated unit such as a memory card or multiple units such as multiple memory cards. Device 500 may thus be implemented in a variety of configurations.
[0152] Position-dependent prediction combination (PDPC) In recent developments in video coding, more advanced techniques and schemes for prediction have emerged.
[0153] One such technique is Position-dependent prediction combination (PDPC). PDPC is a scheme devised to solve certain problems and improve intra prediction. In a PDPC scheme, an image or video coder determines the value of a predicted sample based on a filtered reference sample, an unfiltered reference sample, and the position of the predicted sample within the current block. The use of a PDPC scheme may be associated with coding efficiency gains. For example, the same amount of video data may be encoded using fewer bits.
[0154] Video coding schemes such as H.264 / AVC and HEVC are designed around the successful principle of block-based hybrid video coding, where a picture is first partitioned into blocks, and then each block is predicted using intra-picture or inter-picture prediction.
[0155] Some video coding standards after H.261 belong to the group of "lossy hybrid video codecs" (i.e. they combine spatial and temporal prediction in the sample domain with 2D transform coding applying quantization in the transform domain). Each picture of a video sequence is typically partitioned into a set of non-overlapping blocks and coding is typically performed at the block level. In other words, in the encoder, video is typically processed, i.e. encoded, at the block (picture block) level, for example by generating a predictive block using spatial (intra-picture) and temporal (inter-picture) prediction, subtracting the predictive block from a current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block and quantizing the residual block in the transform domain to reduce (compress) the amount of data to be transmitted. Meanwhile, in the decoder, the reverse process compared to the encoder is partially applied to the coded or compressed block to reconstruct the current block for presentation. Additionally, the encoder replicates the decoder processing loop so that both generate the same predictions (eg, intra and inter predictions) and / or reconstructions for processing, ie, coding, subsequent blocks.
[0156] As used herein, the term "block" may be a portion of a picture or a frame. For ease of explanation, embodiments of the present disclosure are described herein with reference to High-Efficiency Video Coding (HEVC), or Versatile Video Coding reference software developed by the ITU-T Video Coding Experts Group (VCEG) and the Joint Collaboration Team on Video Coding (JCT-VC) of the ISO / IEC Motion Picture Experts Group (MPEG). Those skilled in the art will appreciate that embodiments of the present disclosure are not limited to HEVC or VVC. CUs, PUs, and TUs may be referenced. In HEVC, a CTU is divided into CUs using a quadtree structure, denoted as a coding tree. The decision of whether to code a picture region using inter-picture (temporal) or intra-picture (spatial) prediction is made at the CU level. Each CU can be further divided into 1, 2, or 4 PUs according to the PU partition type. Within one PU, the same prediction process is applied, and related information is sent to the decoder for each PU. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be partitioned into transform units (TUs) according to another quad-tree structure similar to the coding tree of the CU. In the latest development of video compression technology, quad-tree and binary tree (QTBT) partitions are used to partition the coding blocks. In the QTBT block structure, the CU can have either a square or a rectangular shape. For example, the coding tree unit (CTU) is first partitioned by the quad-tree structure. The leaf nodes of the quad-tree are further partitioned by the binary tree structure.The leaf node of the binary tree is called a coding unit (CU), and segmentation is used for prediction and transformation processes without further partitioning. This means that CU, PU, and TU have the same block size in the QTBT coding block structure. At the same time, multiple partitions, such as ternary tree partitions, have also been proposed for use with the QTBT block structure.
[0157] ITU-T VCEG (Q6 / 16) and ISO / EIC MPEG (JTC 1 / SC29 / WG11) are studying the potential need for standardization of future video coding technologies with compression capabilities significantly beyond those of the current HEVC standard (including its current and near-term extensions for screen content coding and high dynamic range coding). The groups are working together on this exploration in a collaborative effort known as the Joint Video Exploration Team (JVET) to evaluate compression technology designs proposed by their experts in the field.
[0158] In one example, bidirectional intra prediction has intra prediction modes available that represent different prediction angles from diagonal up to diagonal down. To define the prediction angles, an offset value p ang is defined. ang The association of p to the corresponding intra prediction mode is visualized in Fig. 6 for the vertical prediction mode. For the horizontal prediction modes, the scheme is flipped to the vertical direction, and p ang Values are assigned accordingly. As mentioned above, angular prediction modes are available for all applicable intra prediction block sizes. They may use the same 32-sample grid for the definition of the prediction angle. p across the 32-sample grid in FIG. angThe distribution of values reveals an improved resolution of the predicted angles around the vertical direction, and a coarser resolution of the predicted angles towards the diagonal direction. The same for the horizontal direction. This design comes from the observation that in many video contents, near-horizontal and vertical structures play a significant role compared to diagonal structures.
[0159] In the example, for horizontal and vertical prediction directions, the selection of the sample to be used for prediction is straightforward, but this task is more laborious in the case of angular prediction. For modes 11 to 25, the prediction sample p ref When predicting the current block Bc from the set of ref Samples from both the vertical and horizontal parts of p may be relevant. ref Since determining the location of each sample in any of the branches requires some computational effort, a unified 1-D prediction reference was designed for HEVC intra prediction. The scheme is visualized in Figure 7. Before performing the actual prediction operation, the reference sample p ref The set of is a one-dimensional vector p 1,ref The projection used for the mapping depends on the direction indicated by the intra prediction angle of the respective intra prediction mode. ref Only the reference samples from part 1,ref The p of reference samples for each angle prediction mode is 1,ref The actual mapping to the reference sample set p is shown in Figures 8 and 9 for the horizontal and vertical angle prediction directions, respectively. 1,ref is constructed once for a prediction block. The prediction is then derived from two neighboring reference samples in the set, as described in more detail below. As can be seen from Figures 8 and 9, the one-dimensional reference sample set is not completely filled for all intra-prediction modes. Only positions that are within the projection range of the corresponding intra-prediction direction are included in the set.
[0160] Prediction for both horizontal and vertical prediction modes is performed in the same way, just by swapping the x and y coordinates of the blocks.1,ref Predictions from 1,ref are made with a precision of 1 / 32 pels. Angle parameter p ang depends on the value of p 1,ref in the sample offset i idx and the weight factor i of the sample at position (x, y) are determined. Here, the derivation of the vertical mode is provided. The derivation of the horizontal mode is thus as follows, swapping x and y. fact When i
Number
Number
[0161] VTM-1.0 (Versatile Test Model) uses 35 intra modes, while BMS (Benchmark Set) uses 67 intra modes. Intra prediction is a mechanism used in many video coding frameworks to improve compression efficiency when only a given frame can be included.
[0162] Figure 10A shows an example of 67 intra prediction modes as proposed for VVC, for example. A number of the intra prediction modes among the 67 intra prediction modes include a planar mode (index 0), a DC mode (index 1), and angular modes with indexes 2 to 66, where the angular mode at the bottom left of Figure 10A represents index 2, and the index numbering is incremented until index 66 is the top right-most angular mode of Figure 10A.
[0163] As shown in FIG. 10A, the latest version of JEM has several modes corresponding to skewed intra prediction directions. In any of these modes, if the corresponding position in the edge of the block is fractional, an interpolation of a set of neighboring reference samples should be performed to predict a sample in the block. HEVC and VVC use linear interpolation between two adjacent reference samples. JEM uses a more advanced 4-tap interpolation filter. The filter coefficients are selected to be either Gaussian or cubic coefficients depending on the width or height value. The decision on whether to use the width or height is coordinated with the decision on the selection of the primary reference edge. When the intra prediction mode is greater than or equal to the diagonal mode, the top edge of the reference sample is selected as the primary reference edge, and the width value is selected to determine the interpolation filter in use. Alternatively, the primary reference edge is selected from the left side of the block, and the height controls the filter selection process. Specifically, if the length of the selected edge is 8 samples or less, a cubic interpolation 4-tap is applied. Alternatively, the interpolation filter is a 4-tap Gaussian filter.
[0164] The specific filter coefficients used in JEM are given in Table 1. The predicted samples are calculated by convolution with coefficients selected from Table 1 according to the sub-pixel offset and filter type as follows:
number
[0165] If a cubic filter is selected, the prediction samples are further clipped to a tolerance range defined in the sequence parameter set (SPS) or derived from the bit depth of the selected component.
[0166] An SPS may specify the features and activated tools used in coding a video sequence. In contrast to a video parameter set (VPS), which pertains to an entire bitstream, SPS information applies only to the layer specified by the layer identifier. For example, features specified in an SPS include the color format and bit depth, as well as the sample resolution of the coded picture.
[0167] Table 1 Intra prediction interpolation filters used in JEM [Table 1]
[0168] Another set of interpolation filters with 6-bit precision is presented in Table 2.
[0169] Table 2. Set of interpolation filters with 6-bit precision [Table 2]
[0170] The intra prediction samples are calculated by convolution with coefficients selected from Table 2 according to the sub-pixel offset and filter type as follows:
number
[0171] Another set of interpolation filters with 6-bit precision is presented in Table 3.
[0172] Table 3. Set of interpolation filters with 6-bit precision [Table 3]
[0173] FIG. 11 shows a schematic diagram of multiple intra prediction modes used in the HEVC UIP scheme. For luma blocks, the intra prediction modes may include up to 36 intra prediction modes, which may include 3 omnidirectional modes and 33 directional modes. The omnidirectional modes may include a planar prediction mode, a DC prediction mode, and a chroma from luma (LM) prediction mode. The planar prediction modes may perform prediction by assuming a block amplitude surface with horizontal and vertical gradients derived from the boundaries of the block. The DC prediction modes may perform prediction by assuming a planar block surface with values that match the average values of the block boundaries. The LM prediction modes may perform prediction by assuming that the chroma values of the block match the luma values of the block. The directional modes may perform prediction based on neighboring blocks as shown in FIG. 11.
[0174] H.264 / AVC and HEVC specify that a low-pass filter may be applied to the reference samples before they are used in the intra prediction process. The decision of whether to use a reference sample filter or not is determined by the intra prediction mode and the block size. This mechanism may be called Mode Dependent Intra Smoothing (MDIS). There are also several methods related to MDIS. For example, the Adaptive Reference Sample Smoothing (ARSS) method may signal whether the prediction samples are filtered or not explicitly (e.g., a flag is included in the bitstream) or implicitly (e.g., data hiding is used to avoid putting a flag in the bitstream to reduce signaling overhead). In this case, the encoder may make a decision about smoothing by testing the Rate-Distortion (RD) cost for all possible intra prediction modes.
[0175] Figure 10A shows an example of 67 intra prediction modes as proposed for VVC, for example. A number of the intra prediction modes among the 67 intra prediction modes include a planar mode (index 0), a DC mode (index 1), and angular modes with indexes 2 to 66, where the angular mode at the bottom left of Figure 10A represents index 2, and the index numbering is incremented until index 66 is the top right-most angular mode of Figure 10A.
[0176] As shown in FIG. 10B and FIG. 10C, from the second version, VVC has several modes corresponding to skewed intra prediction directions, including wide-angle directions (shown as dashed lines). In any of these modes, if the corresponding position in the edge of the block is fractional, an interpolation of a set of neighboring reference samples should be performed to predict a sample in the block. HEVC and VVC use linear interpolation between two adjacent reference samples. JEM uses a more advanced 4-tap interpolation filter. The filter coefficients are selected to be either Gaussian or cubic coefficients depending on the width or height value. The decision on whether to use the width or height is coordinated with the decision on the selection of the primary reference edge. When the intra prediction mode is greater than or equal to the diagonal mode, the top edge of the reference sample is selected as the primary reference edge, and the width value is selected to determine the interpolation filter in use. Alternatively, the primary reference edge is selected from the left side of the block, and the height controls the filter selection process. Specifically, if the length of the selected edge is 8 samples or less, a cubic interpolation 4-tap is applied. Alternatively, the interpolation filter is a 4-tap Gaussian filter.
[0177] In VVC, a partitioning mechanism known as QTBT is used that is based on both quad-trees and binary trees. As shown in Fig. 12, QTBT partitioning can provide rectangular as well as square blocks. Of course, some signaling overhead and increased computational complexity at the encoder side are the price of QTBT partitioning compared to the traditional quad-tree based partitioning used in the HEVC / H.265 standard. However, QTBT-based partitioning has better segmentation properties and therefore demonstrates significantly higher coding efficiency than traditional quad-trees.
[0178] The leaves of the tree used for partitioning are processed in Z-scan order. As a result, the current block corresponding to the current leaf has left and top neighboring blocks already reconstructed during the encoding or decoding process, unless the current block is located on a slice boundary. This is also shown in Figure 12. The left-to-right traversal of the tree leaves shown in the right part of Figure 12 corresponds to the spatial Z-scan order of the blocks shown in the left part of this figure. The same traversal applies in the case of a quadtree or a multi-type tree.
[0179] In directional intra prediction, reference samples are obtained from previously reconstructed samples of neighboring blocks. Depending on the size of the block and the intra prediction mode, a filter may be applied to the reference samples before they are used to obtain the values of the prediction samples.
[0180] In the case of boundary smoothing and PDPC, some of the first columns and some of the first rows of a prediction block are combined with an additional prediction signal generated from neighboring samples.
[0181] The particular implementation of the simplified PDPC may be performed in different manners depending on the intra-prediction mode.
[0182] For Planar, DC, HOR / VER (horizontal / vertical) intra prediction modes (shown as 0, 1, 18, 50 in Figures 10B and 10C, respectively), the following steps are performed.
[0183] The predicted sample P̂(x,y) located at (x,y) is calculated as follows:
number
number
[0184] BitDepth C is the bit depth of the chroma samples.
[0185] BitDepth Y and BitDepth C may be signaled in the sequence parameter set (SPS) of the bitstream.
[0186] Alternative definitions of Clip1Y(x) and Clip1C(x) are possible. In particular, Clip1Cmp(x) = Clip3(min C ,max C ,x). where min C is the lower clipping boundary used in the current slice for component ID C. max C is the upper clipping boundary used in the current slice for component ID C. C is the color component (e.g., Y for luma, Cb and Cr for chroma). "x>>y" is the arithmetic right shift of the binary two's complement integer representation of x × y. The function is defined only for nonnegative integer values of y. The bit shifted into the most significant bit (MSB) of the result of the right shift has a value equal to the MSB of x before the shift operation.
[0187] The DC mode weights are calculated as follows:
number
[0188] R -1,y =0, R x,-1 =0, R -1,-1 = 100, P(x,y) = 0, from equation (1), we see that for the (0,0) location of the 4x4 prediction block, as shown in Figure 13:
number
[0189] Although the problems associated with clipping performed in PDPC have been described in the case of planar intra prediction, a similar situation may arise for PDPC using DC intra prediction.
[0190] For diagonal (shown as 2 and 66 in Figures 10B and 10C) and adjacent modes (directional modes not less than 58 and not more than 10 in Figures 10B or 10C), processing is performed using the same equation (1) as described below.
[0191] FIG. 14A shows the extension of the PDPC to the upper right diagonal mode, with the reference sample R x,-1 , R -1,y , and R -1,-1 Here is the definition of the predicted sample pred(x',y') located at (x',y') in the predicted block. x,-1 The coordinate x of the reference sample R is given by x=x'+y'+1. -1,y The y coordinate of is similarly given by y=x'+y'+1.
[0192] The PDPC weights for the lower left diagonal mode are
number
[0193] Similarly, FIG. 14B shows the extension of the PDPC to the lower left diagonal mode with respect to the reference sample R x,-1 , R -1,y , and R -1,-1 The definition of the reference sample R x,-1 The coordinate x of the reference sample R is given by x=x'+y'+1. -1,y The y coordinate of is given by y=x'+y'+1. The PDPC weights of the upper right diagonal mode are
number
number
number
[0194] The simplified PDPC may be implemented as specified in the VVC specification. In addition, the following notation is used:
number
[0195] If a term is not explained here, it is understood that its definition can be found in the VVC specification or the HEVC / H.265 standard specification.
[0196] Given the above notation, the steps of simplified PDPC can be defined as follows:
[0197] The inputs to this process are: Intra prediction mode predModeIntra, · Variable nTbW, which specifies the conversion block width; · Variable nTbH, which specifies the transformation block height; · Variable refW, which specifies the reference sample width; A variable refH that specifies the reference sample height, Prediction sample:
number
number
[0198] The output of this process is the following modified predicted sample:
number
[0199] Depending on the value of cIdx, the function clip1Cmp is set as follows: If cIdx is equal to 0, clip1Cmp is Clip1 Y is set equal to Otherwise, clip1Cmp is Clip1 C is set equal to
[0200] The variable nScale is set to:
number
number
number
[0201] variable
number
number
number
number
number
number
number
number
number
number
[0202] A modification of the VVC specification to enable use of the method may include replacing "neighboring sample p[x][y]" with "reference sample p[x][y]" in the section describing the simplified PDPC.
[0203] The angle parameter intraPredAngle indicates a sub-pixel offset between two adjacent rows of predicted samples in a fixed-point representation having a length of the fractional part equal to 5 bits. This parameter (intraPredAngle) may be derived from an intra-prediction mode (predModeIntra). An exemplary derivation of intraPredAngle from predModeIntra may be defined by a look-up-table (LUT), for example as shown in Table 4. Table 4. Exemplary LUT for deriving intraPredAngle from predModeIntra [Table 4]
[0204] Currently, from the HEVC and VVC draft specifications, planar intra prediction mode is used, the VVC draft 3 section is incorporated below for reference.
[0205] 8.2.4.2.5. INTRA_PLANAR Intra Prediction Mode Specifications The inputs to this process are: · Variable nTbW, which specifies the conversion block width; · Variable nTbH, which specifies the transformation block height; Nearby samples:
number
number
number
Number
[0206] The present disclosure solves the above-described problem regarding the negative shift operation when applying DC intra prediction using PDPC, which can produce an incorrect predicted sample value.
[0207] The provided solution relates to an alternative PDPC method that does not have the defect of Equation (1).
[0208] Specifically, the method includes the following steps as shown in the flowchart of FIG. 15. The illustrated method of intra predicting a block of a picture is performed for each sample from a plurality of samples of the block.
[0209] In step S100, a predicted sample value from one or more reference sample values is obtained by intra prediction using the DC intra prediction mode.
[0210] Furthermore, in step S110, the predicted sample value is multiplied by a sample weight coefficient to produce a weighted predicted sample value. In particular, the sample weight coefficient is calculated as ((2 << p) - wL - wT). Here, p is the accuracy of the sample weight coefficient, wL is the horizontal weight coefficient, and wT is the vertical weight coefficient.
[0211] In step S120, an added value is added to the weighted predicted sample value to produce an unnormalized predicted sample value.
[0212] In step S130, the unnormalized predicted sample value is normalized by an arithmetic right shift of the integer representation of the unnormalized predicted sample value.
[0213] Thus, by the illustrated method, normalized predicted sample values may be determined, applying DC intra prediction within the PDPC framework while preventing the occurrence of erroneous predicted values by implementing a determination method that does not necessarily require a clipping procedure.
[0214] It is noted that further processing may be applied prior to and following the illustrated method steps.
[0215] For example, the residual value may be added to the normalized predicted sample value to produce a reconstructed sample value.
[0216] In an embodiment, the added value may include a rounding offset. An arithmetic right shift operation corresponds to a division by a power of 2, which typically results in a truncated value. To ensure a properly rounded result, a rounding offset may be added before performing the right shift operation. The rounding offset value corresponds to half the integer value after performing the right shift operation. Thus, the rounding offset ensures a properly rounded result value. For example, for a 6-bit right shift, this is 2 6 = 64, the rounding offset may be 32.
[0217] In another embodiment, a method for intra-predicting a first block and a second block of a picture is provided, where for each sample from a plurality of samples of the first block and for each sample from a plurality of samples of the second block, the steps shown in Fig. 15 and described above are performed, with the difference that the intra-prediction mode used for obtaining predicted sample values for the first block is a DC intra-prediction mode, and the intra-prediction mode used for obtaining predicted sample values for the second block is a planar intra-prediction mode.
[0218] Specifically, for each sample of the first block, in step S100, a predicted sample value is obtained from one or more reference sample values by intra prediction using a DC intra prediction mode.Furthermore, for each sample of the second block, in step S100, a predicted sample value is obtained from one or more reference sample values by intra prediction using a planar intra prediction mode.
[0219] In an embodiment, the described method may be included in a method for encoding or decoding a picture. Specifically, a predicted sample value may be obtained by performing any one of the steps of the above-mentioned methods. Furthermore, a reconstructed sample value may be obtained by adding a residual value to the obtained normalized predicted sample value.
[0220] The embodiments of the present disclosure may enable technical advantages of simplified hardware design and reduced number of condition checks to be performed. The steps performed to obtain predicted sample values for planar and DC intra prediction modes are different from those of directional intra prediction. An exemplary hardware implementation of intra prediction may include at least two modules:
[0221] -Directional intra prediction module, Omnidirectional intra prediction module.
[0222] For this reason, it is desirable to harmonize the PDPC filtering within each of these groups in the first place.Taking into account the fact that the complexity of the PDPC for DC modes exceeds the multiplicity of the PDPC for planar modes, the present disclosure makes it possible to simplify the PDPC processing for DC modes.
[0223] The two modules may implement their own PDPC filtering processes according to an embodiment of the present invention. Conventional solutions require either performing an additional check in the PDPC filtering in the omnidirectional intra prediction module whether the intra prediction mode is DC or planar, or implementing separate PDPC filtering modules for DC and planar intra prediction modes. This causes increased hardware complexity and energy consumption. Therefore, harmonizing the PDPC for both DC and planar modes may enable sharing the PDPC process (corresponding modules in the case of hardware) for DC and planar intra prediction modes.
[0224] Another technical advantage of the embodiments according to the present disclosure becomes apparent when used in a simplified encoder intra-prediction design. DC intra-prediction mode is typically the most computationally simple intra-prediction mode, and therefore in the worst case, the complexity of PDPC filtering may exceed that of the DC mode itself. By reducing the number of condition checks and / or the amount of computation of the DC mode, according to the present disclosure, the overall complexity of intra-prediction may be reduced, especially in simplified encoding scenarios implemented in so-called "lazy" encoders operating with a constrained set of intra-prediction modes.
[0225] The proposed method may be implemented by defining in an omni-directional intra-prediction method the PDPC process is the same for both intra-prediction modes processed by the module. In other words, the embodiments of the present disclosure may be realized by introducing changes only to the omni-directional intra-prediction module so that the PDPC process is the same for DC and planar intra-prediction modes.
[0226] The weight coefficients wL and wT may each be a power of 2, enabling the implementation of multiplication therewith using shift operations. This definition is hardware-friendly and may enable improved processing efficiency. Therefore, harmonizing the PDPC processing when using the DC intra prediction mode with the PDPC processing when using the planar intra prediction mode may simplify, for example, the intra prediction using PDPC. The above-described method may be executed by, for example, a prediction device, an encoder device, or a decoder device as shown in FIG. 16A.
[0227] The prediction, encoder, or decoder device 1000 includes an acquirer 1010, a multiplier 1020, an adder 1030, and a normalizer 1040. The acquirer 1010 is configured to acquire a predicted sample value from one or more reference sample values by intra prediction using the DC intra prediction mode. The multiplier 1020 is configured to multiply the predicted sample value by a sample weight coefficient to produce a weighted predicted sample value. In particular, the weight coefficient is ((2<<p)-wL-wT), where p is a parameter (e.g., precision) of the sample weight coefficient, wL is a horizontal weight coefficient, and wT is a vertical weight coefficient. The adder 1030 is configured to add an added value to the weighted predicted sample value to produce an unnormalized predicted sample value. The normalizer 1040 is configured to normalize the unnormalized predicted sample value by arithmetic right shift of the integer representation of the unnormalized predicted sample value.
[0228] Similarly, in an embodiment, the acquirer 1010 of the prediction, encoder, or decoder device 1000 may be configured to obtain a predicted sample value from one or more reference sample values for each sample of the plurality of samples of the first block and for each sample from the plurality of samples of the second block by intra prediction using an intra prediction mode. The intra prediction mode used to obtain the predicted value of the sample may be a DC intra prediction mode for the first block and a planar intra prediction mode for the second block. The multiplier 1020 is configured to multiply the predicted sample value by a sample weight coefficient to produce a weighted predicted sample value. In particular, the weight coefficient is ((2<<p)-wL-wT), where p is a parameter (e.g., precision) of the sample weight coefficient, wL is a horizontal weight coefficient, and wT is a vertical weight coefficient. The adder 1030 is configured to add an added value to the weighted predicted sample value to produce an unnormalized predicted sample value. The normalizer 1040 is configured to normalize the unnormalized predicted sample value by an arithmetic right shift of the integer representation of the unnormalized predicted sample value.
[0229] In an embodiment, the prediction, encoder, or decoder device 1000 may further add a residual value to the normalized predicted sample value to produce a reconstructed sample value.
[0230] In an embodiment of the described method, the horizontal weight coefficient wL may be a coefficient that is applied to the value of the left reference sample to produce a weighted left reference sample value. Further, the vertical weight coefficient wT may be a coefficient that is applied to the value of the upper reference sample to produce a weighted upper reference sample value.
[0231] Specifically, for example, the weighted left and upper reference sample values may be obtained by multiplying the left and upper reference sample values, respectively, by the corresponding horizontal and vertical weight coefficients wL and wT.
[0232] Further, in an embodiment, an added value may be obtained and may include the sum of the weighted upper reference sample value and the weighted left reference sample value.
[0233] The functional components of the encoder or decoder device 1000 may be implemented by a processing circuit 1040 configured to perform any one of the methods described above as illustrated in FIG. 16B.
[0234] In an embodiment, the processing circuitry may include one or more processors 1050 and a non-transitory computer-readable storage medium 1060 coupled to the one or more processors 1050. The storage medium includes program code that, when executed by the processor, causes the processor to perform any one of the methods described above.
[0235] In certain embodiments, the method may include the following steps.
[0236] The normalized predicted sample P̂(x,y) located at (x,y) may be calculated as follows:
number
[0237] It is worth noting that in the embodiment using equation (2), the function clip1Cmp is not used because the value of the predicted sample P(x,y) is always within the range of valid values, i.e., between the minimum and maximum pixel values. However, this disclosure is not limited to not performing a clipping operation, and clipping may still be applied.
[0238] For example, the normalized predicted sample values may be calculated from the predicted sample values, which includes calculating:
number
[0239] Therefore, by using the above clipping operation, the problem of negative values resulting in the occurrence of false positive non-zero predicted sample values can be prevented by applying the above-mentioned calculation of predicted sample values.
[0240] In the above formula, "x>>y" is the arithmetic right shift of the binary two's complement integer representation of x × y. This function is defined only for non-negative integer values of y. The bit shifted into the most significant bit (MSB) of the right shift result has a value equal to the MSB of x before the shift operation.
[0241] The DC mode weights may be calculated as follows:
number
[0242] The methods provided may be expressed in the form of a portion of the VVC specification.
[0243] Position-dependent intra-prediction sample filtering process The inputs to this process are: Intra prediction mode predModeIntra, · Variable nTbW, which specifies the conversion block width; · Variable nTbH, which specifies the transformation block height; · Variable refW, which specifies the reference sample width; · A variable refH that specifies the reference sample height, Prediction sample:
number
number
[0244] The output of this process is the following modified predicted sample:
number
[0245] Depending on the value of cIdx, the function clip1Cmp is set as follows: If cIdx is equal to 0, clip1Cmp is Clip1 Y is set equal to Otherwise, clip1Cmp is Clip1 C is set equal to
[0246] The variable nScale is set to:
number
number
number
number
number
number
number
number
number
[0247] The input to the illustrated method is a reference sample value, denoted as ref[] in the figure. Using the above reference samples, intra prediction is performed for the current sample. In particular, the intra prediction of the current sample value may be performed using the DC intra prediction mode. Further, the addition values are calculated using the left and upper reference sample values refL[x][y] and refT[x][y], together with the corresponding left weights wL[x] and wT[y], respectively. The intra prediction sample value is multiplied by the weight factor (64 - wL[x] - wT[y]). Subsequently, the addition value is added to the weighted prediction sample value. Next, since the weighted prediction sample value to which the addition value is added does not necessarily represent a normalized value, normalization processing is performed by applying a bitwise right shift operation indicated by ">>" in the figure. The resulting normalized prediction sample value does not require further clipping operations (in the figure, unnecessary clipping operations are indicated by dashed lines).
[0248] In the illustrated example, the weight factor is (64 - wL[x] - wT[x]), but the present disclosure is not limited thereto. In particular, the sample weight factor may exhibit different precisions. In other words, the sample weight factor may be expressed as ((2 << p) - wL - wT), where p is the precision. Further, although not necessary, clipping processing may still be performed.
[0249] In FIG. 14, the reference samples are used by the intra prediction process to generate predicted samples. Each predicted sample is further weighted with a sample weighting factor. The sample weighting factor may be equal to (64-wL[x]-wT[y]), for example. The same reference sample is used to calculate an addition value for each predicted sample depending on x and t, where x and y define the position of the predicted sample in the prediction block. These addition values are added to the corresponding weighted predicted sample. Each sample resulting from this operation is then normalized by right-shifting it according to a predefined precision of the sample weighting factor. For example, if the sample weighting factor is defined as (64-wL[x]-wT[y]), the precision is 6 bits. Thus, in this step, the right shift by 6 is performed to ensure that the minimum and maximum possible values of the output value are the same as the minimum and maximum possible values of the reference sample. However, the present disclosure is not limited to 6-bit precision, and any other precision may be applied.
[0250] One of the advantageous effects of the proposed solution is that the planar intra prediction mechanism can be reused to calculate the sum value. Specifically, the planar intra prediction may use the following equation to derive the horizontal and vertical prediction sample values:
number
[0251] In the above equations (8-82) and (8-83), predV denotes a vertical predicted sample value determined by applying planar intra prediction, and predH denotes a horizontal predicted sample value determined by applying planar intra prediction. Furthermore, nTbW and nTbH denote the width and height of the current block, respectively, when performing planar intra prediction. However, the variables nTbW, nTbH, x, and y are inputs of the planar intra prediction method, and therefore may be adjusted accordingly. Thus, (nTbW-1-x) can be expressed as D x Therefore, (nTbH-1-y) is D y It is possible to substitute in the input variables by: The bottom left and top right reference samples can be set to 0 since these are unused parameters.
[0252] In view of the above considerations, the above equations (8-82) and (8-83) may be rewritten according to which the inputs are predetermined.
number
[0253] Therefore, the following integration may be performed to determine the addition value to be added to the weighted predicted sample value: In the case of horizontal mode (mode 18), the additional value can be calculated as follows:
number
number
[0254] By way of an alternative reference sample selection, it may be shown that the merging may be performed for all intra prediction modes specified for the PDPC process.
[0255] In another embodiment, the PDPC process may be specified as follows:
[0256] Position-dependent intra-prediction sample filtering process The inputs to this process are: Intra prediction mode predModeIntra, · Variable nTbW, which specifies the conversion block width; · Variable nTbH, which specifies the transformation block height; · Variable refW, which specifies the reference sample width; A variable refH that specifies the reference sample height, Prediction sample:
number
number
number
number
number
number
number
number
number
number
number
number
number
number
[0257] Although the embodiments of the present disclosure have been described primarily based on video coding, it should be noted that the embodiments of the coding system 10, the encoder 20, and the decoder 30 (and correspondingly the system 10), as well as other embodiments described herein, may be configured for still image processing or coding, i.e., processing or coding of an individual picture independent of any preceding or subsequent pictures, as in video coding. In general, when picture processing coding is limited to a single picture 17, it is not necessary that only the inter prediction units 244 (encoder) and 344 (decoder) are available. All other functions (also called tools or techniques) of the video encoder 20 and the video decoder 30 may be equally used for still image processing, such as the residual calculation 204 / 304, the transform 206, the quantization 208, the inverse quantization 210 / 310, the (inverse) transform 212 / 312, the partition 262 / 362, the intra prediction 254 / 354, and / or the loop filter 220, 320, and the entropy coding 270 and the entropy decoding 304.
[0258] The embodiments of, e.g., the encoder 20 and the decoder 30, and the functions described herein with reference to, e.g., the encoder 20 and the decoder 30, may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on a computer-readable medium or transmitted over a communication medium as one or more instructions or codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium, including any medium that facilitates the transfer of a computer program from one place to another, e.g., according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium accessible by one or more computers or one or more processors to read instructions, codes, and / or data structures for implementing the techniques described in this disclosure. The computer program product may include a computer-readable medium.
[0259] By way of example, and not limitation, such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM, or other optical disk storage, magnetic disk storage, or other magnetic storage devices, flash memory, or any other medium accessible by a computer that can be used to store desired program code in the form of instructions or data structures. Also, any connection is properly referred to as a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwave, the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. Disk and disc, as used herein, include compact disc (CD), laser disc, optical disk, digital versatile disc (DVD), floppy disk, and Blu-ray disc, where disks typically reproduce data magnetically and discs reproduce data optically with a laser. Combinations of the above should also be included within the scope of computer readable media.
[0260] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term "processor" as used herein may refer to any of the foregoing structures, or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described herein may be provided within dedicated hardware and / or software modules configured for encoding and decoding or incorporated into a combined codec. Furthermore, the techniques may be implemented entirely in one or more circuit or logic elements. Processing circuitry referred to in this disclosure may include hardware and software.
[0261] The techniques of this disclosure may be implemented in a variety of devices or equipment, including a wireless handset, an integrated circuit (IC), or a set of ICs (e.g., a chipset). Various components, modules, or units have been described in this disclosure to highlight functional aspects of devices configured to perform the techniques of the disclosure, but do not necessarily require realization by different hardware units. Rather, as described above, the various units may be combined in a codec hardware unit, in combination with appropriate software and / or firmware, or provided by a collection of interoperable hardware units including one or more processors as described above.
[0262] Further embodiments are summarized below.
[0263] 1. A method for intra prediction of a block of a picture, comprising: For each sample from the plurality of samples of the block, obtaining a predicted sample value from one or more reference sample values by intra prediction using one of a DC intra prediction mode, a planar intra prediction mode, and an angular intra prediction mode; multiplying the predicted sample values by sample weighting factors to produce weighted predicted sample values; adding an addend value to the weighted predicted sample value to produce a non-normalized predicted sample value; normalizing the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values to produce normalized predicted sample values; A method is provided that includes:
[0264] In an embodiment, said picture is part of a video sequence.
[0265] In an embodiment, the sample weighting factor is ((2< <p)-wL-wT)であり、 p is the precision of the sample weighting coefficients, wL is the horizontal weighting factor, wT is the vertical weighting factor.
[0266] In an embodiment, the horizontal weighting factor is:
number
number
[0267] In an embodiment, the scale parameter nScale is derived from the size of the block.
[0268] In an embodiment, the scale parameter nScale is determined as follows:
number
[0269] In an embodiment, the normalized predicted sample values are calculated from the predicted sample values as follows:
number
[0270] In an embodiment, the horizontal weighting factor is:
number
number
[0271] In an embodiment, the scale parameter nScale is derived from the size of the block.
[0272] In an embodiment, the scale parameter nScale is determined as follows:
number
[0273] In an embodiment, the plurality of samples of the block comprises all samples of the block.
[0274] Further, there is provided an apparatus for encoding or decoding a picture, said apparatus comprising a processing circuit configured to perform any one of the above mentioned methods.
[0275] In an embodiment, the processing circuitry includes one or more processors and a non-transitory computer-readable medium coupled to the one or more processors, the non-transitory computer-readable medium carrying program code that, when executed by the one or more processors, causes the apparatus to perform the method.
[0276] Further provided is a non-transitory computer readable medium carrying program code which, when executed by a computing device, causes the computing device to perform any one of the methods described above.
[0277] Definitions of Abbreviations and Glossary JEM-Joint Exploration Model (the software codebase for future video coding exploration) JVET - Joint Video Experts Team LUT-Look-Up Table PDPC-Position-dependent prediction combination PPS-Picture parameter set QT-Quad Tree QTBT-Quad Tree plus Binary Tree RDO-Rate-distortion Optimization ROM - Read-Only Memory SPS-Sequence parameter set VTM-VVC Test Model VVC-Versatile Video Coding, the standardization project developed by JVET. CTU / CTB-Coding Tree Unit / Coding Tree Block CU / CB-Coding Unit / Coding Block PU / PB-Prediction Unit / Prediction Block TU / TB-Transform Unit / Transform Block HEVC-High Efficiency Video Coding [Explanation of symbols]
[0278] 10. Video Coding System 12 Source Device 14 Destination Device
Claims
1. A method of encoding or decoding a block of a picture, comprising the steps of: obtaining a predicted sample value from one or more reference sample values by intra prediction using a DC intra prediction mode; multiplying the predicted sample values by sample weighting factors to produce weighted predicted sample values; adding an addend value to the weighted predicted sample value to produce a non-normalized predicted sample value; normalizing the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; adding residual values to the unnormalized predicted sample values to obtain reconstructed sample values; Including, The sample weighting coefficients are ((2<<p)-wL-wT), p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, wT is the vertical weighting factor, A method according to claim 1, wherein the sum is a sum of one or more augends, the augends depending on one or more of the reference sample values.
2. A method of encoding or decoding a first block and a second block of a picture, comprising the steps of: for samples of the first block and for samples of the second block obtaining a predicted sample value from one or more reference sample values by intra prediction using an intra prediction mode; multiplying the predicted sample values by sample weighting factors to produce weighted predicted sample values; adding an addend value to the weighted predicted sample value to produce a non-normalized predicted sample value; normalizing the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; adding residual values to the unnormalized predicted sample values to obtain reconstructed sample values; Including, The sample weighting coefficients are ((2<<p)-wL-wT), p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, wT is the vertical weighting factor, A method according to claim 1, wherein the intra prediction mode used to obtain the predicted sample values for the first block is a DC intra prediction mode, and the intra prediction mode used to obtain the predicted sample values for the second block is a planar intra prediction mode.
3. The method according to claim 1 or 2, wherein a planar intra prediction mechanism is used to calculate the additional values.
4. The method according to any one of claims 1 to 3, wherein the sample weighting factor is (64-wL-wT).
5. The summand, which depends on one or more reference sample values, is wL×R -1,y + wT x R x,-1 and R x,-1 and R -1,y The method of claim 1 , wherein x represents the value of the nearest reference sample located above and to the left of the predicted sample value.
6. The method according to any one of claims 1 to 5, wherein the horizontal weighting factor wL and / or the vertical weighting factor wT are / is a power of two.
7. the horizontal weighting factor wL=(2<<(p-1))>>((x<<1)>>nScale), where x is the horizontal coordinate of the sample; the vertical weighting factor wT=(2<<(p-1))>>((y<<1)>>nScale), where y is the vertical coordinate of the sample; The method of any one of claims 1 to 6, wherein nScale is a scale parameter.
8. The method of claim 7 , wherein the scale parameter nScale is derived from a size of the block.
9. 8. The method of claim 7, wherein the scale parameter nScale is determined as ((Log2(nTbW)+Log2(nTbH)-2)>>2), where nTbW is the width of the block and nTbH is the height of the block.
10. A normalized predicted sample value is calculated from the predicted sample value, (wL×R -1,y + wT x R x,-1 +(64-wL-wT) x P(x,y) + 32) >> 6; P(x,y) is the predicted sample value, R x,-1 , R -1,y represents the value of the nearest reference sample located above and to the left of the predicted sample with said predicted sample value, wL is the horizontal weighting factor, wT is the vertical weighting factor; The method according to any one of claims 1 to 9.
11. 1. A method for encoding a picture, comprising the steps of: - obtaining normalized predicted sample values by executing the steps of the method according to any one of claims 1 to 10; adding residual values to the normalized predicted sample values to produce reconstructed sample values; The method includes:
12. 1. A method of decoding a picture, comprising: - obtaining normalized predicted sample values by executing the steps of the method according to any one of claims 1 to 10; adding residual values to the normalized predicted sample values to produce reconstructed sample values; The method includes:
13. An apparatus for coding of pictures comprising a processing circuit arranged to carry out the method according to any one of claims 1 to 11.
14. An apparatus for decoding pictures, comprising a processing circuit arranged to carry out the method according to any one of claims 1 to 10 and 12.
15. The apparatus of claim 13, wherein the processing circuitry includes one or more processors and a non-transitory computer readable medium coupled to the one or more processors, the non-transitory computer readable medium storing program code that, when executed by the one or more processors, causes the apparatus to perform the method of any one of claims 1 to 11.
16. The apparatus of claim 14, wherein the processing circuitry includes one or more processors and a non-transitory computer readable medium coupled to the one or more processors, the non-transitory computer readable medium storing program code that, when executed by the one or more processors, causes the apparatus to perform the method of any one of claims 1 to 10 and 12.
17. A non-transitory computer readable medium storing program code which, when executed by a computing device, causes the computing device to perform the method of any one of claims 1 to 11.
18. A non-transitory computer readable medium storing program code which, when executed by a computing device, causes said computing device to perform the method of any one of claims 1 to 10 and 12.
19. A computer program comprising a program code for carrying out the method according to any one of claims 1 to 11.
20. A computer program comprising a program code for carrying out the method according to any one of claims 1 to 10 and 12.
21. A prediction device for encoding or decoding a block of a picture, comprising: an obtainer configured to obtain, for samples of the block, predicted sample values from one or more reference sample values by intra prediction using a DC intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; a reconstruction unit configured to add residual values to the unnormalized predicted sample values to obtain reconstructed sample values; Including, The sample weighting coefficients are ((2<<p)-wL-wT), p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, wT is the vertical weighting factor, The sum value is a sum of one or more augends, including an augend that depends on one or more of the reference sample values.
22. A prediction device for encoding or decoding a first block and a second block of a picture, comprising: an obtainer configured to obtain, for a sample of the first block or the second block, a predicted sample value from one or more reference sample values by intra prediction using an intra prediction mode; a multiplier configured to multiply the predicted sample values by sample weighting factors to produce weighted predicted sample values; an adder configured to add a summation value to the weighted predicted sample value to produce a non-normalized predicted sample value; a normalizer configured to normalize the unnormalized predicted sample values by arithmetically right shifting integer representations of the unnormalized predicted sample values; a reconstruction unit configured to add residual values to the unnormalized predicted sample values to obtain reconstructed sample values; Including, The sample weighting coefficients are ((2<<p)-wL-wT), p is a parameter of the sample weighting coefficient, wL is the horizontal weighting factor, wT is the vertical weighting factor, the sum is a sum of one or more augends, the augend depending on one or more of the reference sample values; A prediction device, wherein the intra prediction mode used to obtain the predicted sample value for the first block is a DC intra prediction mode, and the intra prediction mode used to obtain the predicted sample value for the second block is a planar intra prediction mode.
Citation Information
Patent Citations
Intra reference filter for video coding
US20180324417A1
Prediction image generation device, moving image decoding device, and moving image coding device
WO2017134992A1
Image signal encoding / decoding method and apparatus therefor
WO2020096389A1
