Encoder, decoder and corresponding method of boundary strength derivation of deblocking filter
By adjusting deblocking filter boundary strengths based on CIIP prediction modes, the method addresses block artifacts in video encoding, enhancing video quality and optimizing hardware efficiency.
Patent Information
- Application Number
- JP2024110997
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2019-01-14
- Filing Date
- 2024-07-10
- Publication Date
- 2024-11-06
- Estimated Expiration
- 2039-12-07
AI Technical Summary
Existing video coding standards fail to effectively address block artifacts caused by combined inter-intra prediction (CIIP) in video encoding, leading to poor subjective and objective quality due to inadequate deblocking filter settings.
The proposed method adjusts the boundary strength derivation for deblocking filters based on the prediction modes of adjacent blocks, specifically setting a higher boundary strength when at least one block is predicted using CIIP, thereby improving the deblocking filter's effectiveness on CIIP block boundaries and sub-block edges.
This approach enhances video quality by reducing block artifacts and improving subjective and objective quality, while also optimizing hardware implementation by reducing line memory requirements.
Smart Images

Figure 2024156686000001_ABST
Abstract
Description
[Technical field]
[0001] [Related Applications] This application claims the benefit of U.S. Provisional Application No. 62 / 776,491, filed December 7, 2018, and entitled "AN ENCODER, A DECODER AND CORRESPONDING METHODS OF DEBLOCKING FILTER ADAPTATION," and U.S. Provisional Application No. 62 / 792,380, filed January 14, 2019, and entitled "AN ENCODER, A DECODER AND CORRESPONDING METHODS OF DEBLOCKING FILTER ADAPTATION," both of which are incorporated herein by reference. [Technical field] FIELD OF THE DISCLOSURE Embodiments of the present disclosure relate generally to the field of picture processing, and more particularly to encoders, decoders, and corresponding methods of boundary strength derivation for deblocking filters. [Background technology]
[0002] Video coding (video encoding and decoding) is used in a wide range of digital video applications, such as broadcast digital television, video transmission over the Internet and mobile networks, real-time conversation applications such as video chat, video conferencing, DVDs and Blue-ray discs, video content acquisition and editing systems, and camcorders in security applications.
[0003] The amount of video data required to render even a relatively short video can be substantial. This can pose challenges when the data is streamed or otherwise communicated across communication networks with limited bandwidth capabilities. Thus, video data is typically compressed before being communicated across today's telecommunications networks. When the video is stored on a storage device, the size of the video can also be an issue since memory resources may be limited. Video compression devices often use software and / or hardware to encode video data at the source before transmission or storage, thereby reducing the amount of data required to represent a digital video image. The compressed data is then received at the destination by a video decompression device, which decodes the video data. With limited network resources and an ever-increasing demand for higher video quality, improved compression and decompression techniques that increase compression ratios with little or no sacrifice in picture quality are desirable. Summary of the Invention
[0004] Embodiments of the present application provide encoding and decoding apparatus and methods according to the independent claims.
[0005] These and other objects are achieved by the subject matter of the independent claims. Further implementation forms are evident from the dependent claims, the description and the drawings.
[0006] According to a first aspect, the invention relates to a method of encoding, said encoding including decoding or coding, comprising a step of determining whether at least one of two blocks is a CIIP (or MH) predicted block, said two blocks comprising a first block (block Q) and a second block (block P), said two blocks being associated with a boundary, said method further comprising a step of setting a boundary strength (Bs) of said boundary to a first value when at least one of said two blocks is a CIIP block, or setting the boundary strength (Bs) of said boundary to a second value when neither of said two blocks is a CIIP block.
[0007] The method according to the first aspect of the invention may be performed by a device according to the second aspect of the invention. The device according to the second aspect of the invention includes a determining unit configured to determine whether at least one of two blocks is predicted by application of combined inter-intra prediction (CIIP), the two blocks including a first block (block Q) and a second block (block P), the two blocks being associated with a boundary. The device according to the second aspect of the invention further includes a setting unit for setting a boundary strength (Bs) of the boundary to a first value when at least one of the two blocks is predicted by application of CIIP, and for setting the boundary strength (Bs) of the boundary to a second value when neither of the two blocks is predicted by application of CIIP.
[0008] Further features and implementation forms of the method according to the second aspect of the invention correspond to the features and implementation forms of the apparatus according to the first aspect of the invention.
[0009] According to a third aspect, the invention relates to an apparatus for decoding a video stream, comprising a processor and a memory, said memory storing instructions causing said processor to carry out the method according to the first aspect.
[0010] According to a fourth aspect, the invention relates to an apparatus for encoding a video stream, comprising a processor and a memory, said memory storing instructions causing said processor to carry out the method according to the first aspect.
[0011] According to a fifth aspect, a computer-readable storage medium is proposed having stored thereon instructions which, when executed, cause one or more processors to configure for encoding video data, said instructions causing said one or more processors to perform a method according to the first or second aspect or any possible embodiment of the first aspect.
[0012] According to a sixth aspect, the present invention relates to a computer program comprising a program code for performing the method according to the first aspect or any possible embodiment of the first aspect, when the computer program is executed on a computer.
[0013] According to an embodiment of the present invention, when at least one of the two blocks is a CIIP block, the boundary strength is set to the first value (e.g., set to 2), thereby increasing the chance of a deblocking filter for a block edge predicted by applying CIIP prediction.
[0014] 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]
[0015] In the following, embodiments of the invention are explained in more detail with reference to the accompanying drawings and figures. [Figure 1A] 1 is a block diagram illustrating an example of a video encoding system configured to implement embodiments of the present invention. [Figure 1B] 2 is a block diagram illustrating another example of a video encoding system configured to implement embodiments of the present invention. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a video encoder configured to implement embodiments of the present invention. [Diagram 3] 2 is a block diagram illustrating an exemplary structure of a video decoder configured to implement embodiments of the present invention. [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 6A] 13 shows an example of all sub-block boundaries within a CU to which combined inter-intra prediction (CIIP) is applied. [Figure 6B] Examples of boundary P and Q blocks are shown below. [Figure 7] 4 shows an example of a Bs derivation process according to the first embodiment. [Figure 8] An example of the Bs derivation process in VVC is shown below. [Figure 9] 13 shows an example of a Bs derivation process according to the second embodiment. [Figure 10] 13 shows an example of a Bs derivation process according to the third embodiment. [Figure 11] 13 shows an example of deblocking all sub-block edges within a CU that overlap (align) with an 8×8 sample grid. [Figure 12] 13 shows an example of deblocking all sub-block edges in a CU that overlaps a 4×4 sample grid. [Figure 13] FIG. 2 is a block diagram showing an example structure of an apparatus for boundary strength derivation processing. [Figure 14] 31 is a block diagram showing an exemplary structure of a content delivery system 3100 for implementing a content distribution service. [Figure 15] FIG. 2 is a block diagram showing the structure of an example of a terminal device.
[0016] In the following, unless expressly stated otherwise, identical reference signs denote identical or at least functionally equivalent features. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] In the following description, reference is made to the accompanying drawings which form part of this disclosure and which show by way of illustration certain aspects of embodiments of the invention or in which embodiments of the invention may be used. It is understood that embodiments of the invention 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 invention is defined by the appended claims.
[0018] 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.
[0019] 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 coding 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 "encoding" 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).
[0020] In the case of lossless video coding, the original video picture can be reconstructed, i.e. 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, e.g. by quantization, is performed to reduce the amount of data representing the video picture, which cannot be fully reconstructed at the decoder, i.e. the quality of the reconstructed video picture is lower or worse than the quality of the original video picture.
[0021] Some video coding standards 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 that applies 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) 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 replicates the decoder processing loop so that both generate the same predictions (eg, intra and inter predictions) and / or reconstructions for processing, i.e., encoding, subsequent blocks.
[0022] In the following embodiment of a video encoding system 10, a video encoder 20 and a video decoder 30 are described with reference to FIGS.
[0023] 1A is a schematic block diagram illustrating an example encoding system 10 that may utilize techniques of the present application, such as video encoding system 10 (or encoding 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 encoding system 10 represent examples of devices that may be configured to perform techniques in accordance with various examples described herein.
[0024] As shown in FIG. 1A, encoding system 10 includes a source device 12 configured to provide encoded picture data 21 to a destination device 14 that, for example, decodes encoded picture data 13 .
[0025] The source device 12 includes an encoder 20 , and may additionally / 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 .
[0026] 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.
[0027] 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 .
[0028] 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.
[0029] 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).
[0030] 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.
[0031] 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 .
[0032] 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.
[0033] 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 and public network, or any combination thereof.
[0034] The communications interface 22 may be configured, for example, to package the encoded picture data 21 in a suitable format, e.g. into packets, for transmission over a communications link or network, and / or to process the encoded picture data using any type of transmission encoding or processing.
[0035] 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.
[0036] 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 send and receive messages, for example, to establish a connection, to acknowledge, and to exchange any other information related to the communication link and / or data transmission, e.g., encoded picture data transmission.
[0037] 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).
[0038] 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.
[0039] 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.
[0040] 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 with separate hardware and / or software, or any combination thereof.
[0041] As will be clear to one of ordinary skill in the art based on the description, the presence and (exact) division of functions or features of different units within source device 12 and / or destination device 14 as shown in FIG. 1A may vary depending on the actual device and application.
[0042] Encoder 20 (e.g., video encoder 20), or decoder 30 (e.g., video decoder 30), or both encoder 20 and decoder 30 may be implemented by processing circuitry shown in FIG. 1B , such as one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), discrete logic, hardware, dedicated to video encoding, or any combination thereof. Encoder 20 may be implemented by processing circuitry 46 to implement various modules such as those discussed with respect to encoder 20 of FIG. 2 and / or any other encoder system or subsystem described herein. Decoder 30 may be implemented by processing circuitry 46 to implement various modules such as those discussed with respect to decoder 30 of FIG. 3 and / or any other decoder system or subsystem described herein. The processing circuitry may be configured to perform various operations as discussed below. 5, where the techniques are implemented partially 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. Either video encoder 20 or video decoder 30 may be integrated as part of a combined encoder / decoder (CODEC) in a single apparatus, for example as shown in FIG. 1B.
[0043] 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 (such as 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.
[0044] In some cases, the video encoding system 10 shown in FIG. 1A is merely an example, and the techniques of the present application may be applied to video encoding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between an encoding device and a decoding device. In other examples, data may be read from local memory, streamed over a network, etc. A video encoding device may encode data and store it in memory, and / or a video decoding device may read data from memory and decode it. 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 data from memory and decode it.
[0045] For ease of explanation, embodiments of the present invention are described herein with reference to, for example, High-Efficiency Video Coding (HEVC), or Versatile Video coding (VVC) reference software, the 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 invention are not limited to HEVC or VVC.
[0046] 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.
[0047] 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.
[0048] 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).
[0049] A (digital) picture is or can be thought of 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.
[0050] 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.
[0051] 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.
[0052] Similar to the picture 17, the picture block 203 is again 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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 norm of the residual block that may change 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] Reconstruction The reconstruction unit 214 (e.g., an adder or 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.
[0064] 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 filter, 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] In other words, the partition unit 262 may be configured to partition the block 203 into smaller block partitions or sub-blocks (which also form blocks), e.g., by repeatedly using quad-tree (QT), binary (BT) or triple-tree (TT) partitions, or any combination thereof, and perform prediction for each block partition or sub-block, e.g., where the mode selection includes selecting a prediction mode to be applied to each of the tree structure of the partitioned block 203 and the block partitions or sub-blocks.
[0071] 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.
[0072] 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).
[0073] 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).
[0074] 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.
[0075] For example, in an embodiment according to HEVC, a coding tree unit may be 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 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 quadtree structure similar to the coding tree of the CU.
[0076] 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 can 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.
[0077] In one example, mode selection unit 260 of video encoder 20 may be configured to perform any combination of the partitioning techniques described herein.
[0078] 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.
[0079] 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 VCC.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] In addition to the prediction modes mentioned above, skip mode and / or direct mode may be applied.
[0084] 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 picture block 203 of current picture 17) and at least one or more of the decoded picture 231 or previous reconstructed blocks, such as one or more reconstructed blocks of another / different previously 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 forming a video sequence.
[0085] 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).
[0086] 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.
[0087] 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.
[0088] 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 scheme (CAVLC), an arithmetic coding scheme, binarization, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) encoding, 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 .
[0089] 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.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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 coding 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.
[0094] 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.
[0095] 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.
[0096] Reconstruction The reconstruction unit 314 (e.g., an adder or 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.
[0097] 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.
[0098] 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.
[0099] The decoder 30 is arranged to output the decoded pictures 311, for presentation or viewing to a user, eg via an output 312.
[0100] 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.
[0101] 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 prescribed construction technique based on the reference pictures stored in the DPB 330.
[0102] 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 generate predictive blocks for the current video block being decoded using the prediction information. For example, mode selection unit 360 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) used to encode 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.
[0103] 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.
[0104] It should be understood that in the encoder 20 and the decoder 30, the processing result of the current step may be further processed and then output to the next step. For example, after the interpolation filtering, the motion vector derivation or the loop filtering, further operations such as clipping or shifting may be performed on the processing result of the interpolation filtering, the motion vector derivation or the loop filtering.
[0105] It should be noted that further operations may be applied to the derived motion vector of the current block (including but not limited to control point motion vector in affine mode, sub-block motion vector in affine, planar, ATMVP mode, temporal motion vector, etc.). For example, the value of the motion vector is constrained to a certain range according to its representation bit. If the representation bit of the motion vector is bitDepth, the range is -2^(bitDepth-1) to 2^(bitDepth-1)-1, where "^" means exponentiation. For example, if bitDepth is equal to 16, the range is -32768 to 32767, and if bitDepth is equal to 18, the range is -131072 to 131071. For example, the value of the derived motion vector (e.g., MV of four 4x4 sub-blocks in one 8x8 block) is constrained such that the maximum difference between the integer parts of the MV of the 4x4 sub-blocks is not greater than N pixels, such as not greater than 1 pixel.
[0106] Here, we provide two methods to constrain the motion vectors according to bitDepth.
[0107] Method 1: Remove the overflow MSB (most significant bit) by the following calculation:
number
[0108]
number
[0109] Method 2: Remove the overflow MSB by clipping the value below.
number
number
[0110] The video encoding 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. The video encoding 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 the ingress port 410, the receiver unit 420, the transmitter unit 440, and the egress port 450.
[0111] 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 an encoding module 470. The encoding module 470 implements the above-disclosed embodiments. For example, the encoding module 470 implements, processes, prepares, or provides various encoding operations. The inclusion of the encoding module 470 thus provides substantial improvements to the functionality of the video encoding device 400 and results in the transformation of the video encoding device 400 into different states. Alternatively, the encoding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
[0112] 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).
[0113] FIG. 5 is a simplified block diagram of an apparatus 500 that may be used as one or both of source device 12 and destination device 14 from FIG. 1 in accordance with an exemplary embodiment.
[0114] 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.
[0115] 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 encoding application that performs the methods described herein. The device 500 may also include one or more output devices, such as a display 518. The display 518 may, in one example, be a touch-sensitive display that combines the display with a touch-sensitive element operative to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512.
[0116] 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.
[0117] Combined Inter-Intra Prediction (CIIP) Traditionally, a coding unit is either intra predicted (i.e., using reference samples in the same picture) or inter predicted (i.e., using reference samples in other pictures). Multi-hypothesis prediction combines these two prediction approaches. Therefore, it is sometimes called combined inter-intra prediction (CIIP). When combined inter-intra prediction is enabled, the intra-predicted and inter-predicted samples are applied with weights, and the final prediction is derived as a weighted average sample.
[0118] A flag, the multiple hypothesis prediction (CIIP) flag, is used to indicate when a block is subject to joint inter-intra prediction.
[0119] A block to which CIIP is applied can be further divided into several sub-blocks, as shown in Figure 6A. In one example, the sub-blocks are derived by dividing the block horizontally, with each sub-block having the same width as the original block but 1 / 4 the height of the original block.
[0120] In one example, the sub-blocks are derived by dividing the block vertically, with each sub-block having the same height as the original block but 1 / 4 the width of the original block.
[0121] CIIP prediction may introduce block artifacts because it involves the result of intra prediction, which usually has more residual signal. Block artifacts occur not only at the boundaries of CIIP blocks, but also at sub-block edges inside CIIP blocks, such as the vertical sub-block edges A, B, and C in Fig. 6A. Horizontal sub-block edges can be identified accordingly.
[0122] Block artifacts can occur both at CIIP boundaries and at sub-block edges inside CIIP blocks, but the distortions caused by these two boundaries may be different and may require different boundary strengths.
[0123] In the remainder of this application, the following terminology is used.
[0124] CIIP block: A coding block that is predicted by applying multi-hypothesis prediction (CIIP).
[0125] Intra block: A coded block that is predicted by applying intra prediction rather than CIIP prediction.
[0126] Inter Block: A coding block that is predicted by applying inter prediction rather than CIIP prediction.
[0127] Deblocking Filter and Boundary Strength Video coding schemes such as HEVC and VVC are designed along the successful principle of block-based hybrid video coding. With this principle, a picture is first partitioned into blocks, and then each block is predicted using intra-picture or inter-picture prediction. These blocks are coded relative to each other from neighboring blocks and approximate the original signal with a certain degree of similarity. Since the coding blocks only approximate the original signal, differences between the approximations may cause discontinuities at the prediction and transformation block boundaries. These discontinuities are attenuated by a deblocking filter.
[0128] The decision whether to filter a block boundary uses bitstream information such as prediction mode and motion vectors. Some coding conditions are more likely to generate strong block artifacts, which is expressed by a so-called boundary strength (Bs or BS) variable that is assigned to every block boundary and determined as in Table 1. [Table 1] Deblocking is applied only to block boundaries with Bs greater than zero for the luma component and Bs greater than 1 for the chroma components. Higher values of Bs allow for stronger filtering by using higher clipping parameter values. The Bs derivation condition reflects the probability that the strongest block artifacts will appear at intra-prediction block boundaries.
[0129] Usually, the two adjacent blocks of a boundary are labeled P and Q as shown in Figure 6B, which shows the case of a vertical boundary. If a horizontal boundary is considered, Figure 6B should be rotated 90 degrees clockwise, so that P becomes the top and Q becomes the bottom.
[0130] Build the most accurate mode list A Most Probable Mode (MPM) list is used in intra mode coding to improve coding efficiency. Due to the large number of intra modes (e.g., 35 in HEVC and 67 in VVC), the intra mode of the current block is not directly signaled. Instead, the most probable mode list of the current block is built based on the intra prediction modes of its neighboring blocks. Since the intra mode of the current block is relative to that of its neighbors, the MPM list usually provides a good prediction, as its name (Most Probable Mode List) suggests. Thus, the intra mode of the current block has a high probability of being included in the MPM list. In this method, only the index of the MPM list is signaled to derive the intra mode of the current block. Compared to the number of all intra modes, the length of the MPM list is much smaller (e.g., a 3-MPM list is used in HEVC and a 6-MPM list is used in VVC), and therefore fewer bits are needed to code the intra modes. A flag (mpm_flag) is used to indicate whether the intra mode of the current block belongs to the MPM list. If so, the intra mode of the current block can be indexed using the MPM list. Otherwise, the intra mode is directly signaled using the binarization code. In both VVC and HEVC, the MPM list is built based on its neighboring left and top blocks. When the left and top neighboring blocks of the current block are unavailable for prediction, the default mode list is used.
[0131] Motion Vector Prediction Motion vector prediction is a technique used in motion data coding. A motion vector usually has two components x and y, which represent horizontal and vertical motion, respectively. The motion vector of a current block is usually correlated with the motion vectors of neighboring blocks in the current picture or in a previous coded picture. This is because neighboring blocks are likely to correspond to the same moving object with similar motion, and the motion of an object is unlikely to change rapidly over time. Therefore, using the motion vectors in neighboring blocks as predictors reduces the size of the signaled motion vector difference. The motion vector predictor (MVP) is usually derived from already decoded motion vectors from spatial neighboring blocks or from temporal neighboring blocks in the co-located picture.
[0132] If a block is determined to be predicted by applying CIIP prediction, its final predicted samples are based in part on intra prediction samples. Since intra prediction is also included, the residuals and transform coefficients are usually more than INTER blocks (mvd, merge, skip). Therefore, when these MH blocks are adjacent to other blocks, there are more discontinuities across the boundary. In HEVC and VVC, when any of the two adjacent blocks of a boundary is intra predicted, a strong deblocking filter is applied to this boundary, and the Boundary Strength (BS) parameter is set to 2 (strongest).
[0133] In VTM3.0, however, possible block artifacts caused by blocks predicted by CIIP prediction are not taken into account. The boundary strength derivation still considers blocks with CIIP prediction as inter blocks. Under certain circumstances, such a processing approach may result in poor subjective and objective quality.
[0134] Embodiments of the present invention provide several alternatives for incorporating MH blocks to improve the deblocking filter, where the boundary strength derivation of a particular boundary is influenced by the MH block.
[0135] The reference document Versatile Video Coding (Draft 3) is defined as VVC Draft 3.0 and can be found at the following link:
[0136] http: / / phenix.it-sudparis.eu / jvet / doc_end_user / documents / 12_Macao / wg11 / JVET-L1001-v3.zip
[0137] EMBODIMENT 1 For a two-sided boundary (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is determined as follows.
[0138] 1. As shown in FIG. 7, if at least one block among P and Q is a block with CIIP prediction, the boundary strength parameter of this boundary is set to a first value, which may be equal to 2, for example.
[0139] 2. If both P and Q blocks are not predicted by applying CIIP prediction, and if at least one of block Q or block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0140] 3. If both P and block Q are not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation), and the derivation of the boundary strength of this boundary is shown in FIG. 7.
[0141] 4. For comparison, the method specified in the VVC or ITU-H.265 video coding standard is provided in FIG.
[0142] 5. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0143] EMBODIMENT 2 As shown in FIG. 9, for a boundary having two sides (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is derived as follows:
[0144] 6. If at least one block among P and Q is an intra predicted block, the boundary strength is set to 2.
[0145] 7. Otherwise, if at least one block among P and Q is a CIIP predicted block, the boundary strength parameter of this boundary is set to a first value, e.g., 1 or 2.
[0146] 8. Otherwise, if at least one of the neighboring blocks P and Q has non-zero transform coefficients, then the boundary strength parameter for this boundary is set to a second value, for example one.
[0147] 9. Otherwise, if the absolute difference between the motion vectors belonging to the P and Q blocks is greater than or equal to one integer luma sample, the boundary strength parameter of this boundary is set to a second value, for example one.
[0148] 10. Otherwise, if the motion predictions in the neighboring blocks refer to different reference pictures or the number of motion vectors is different, the boundary strength parameter of this boundary is set to 1.
[0149] 11. Otherwise, the boundary strength parameter for this boundary is set to 0.
[0150] 12. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0151] EMBODIMENT 3 As shown in FIG. 10, for a boundary having two sides (with spatially adjacent blocks on each side denoted as P block and Q block), the boundary strength parameter of this boundary is set as follows:
[0152] 13. If at least one of blocks P and Q is predicted by applying intra prediction rather than applying CIIP prediction (possibilities include the case where P block is predicted by intra prediction rather than by multi-hypothesis prediction and Q block is predicted by any prediction function, and vice versa), then the boundary strength is set equal to 2.
[0153] 14. When both blocks Q and P are predicted by applying inter prediction or by applying CIIP prediction (possibilities include that P block is an inter block and Q block is an inter block, or alternatively, P block is an inter block and Q block is an MH block, or alternatively, P block is an HM block and Q block is an inter block, or alternatively, P block is an MH block and Q block is an MH block).
[0154] 1. If at least one of blocks P and Q has a non-zero transform coefficient, then the boundary strength parameter of that boundary is set equal to one. 2. Otherwise (if blocks Q and P have no non-zero transform coefficients), if the absolute difference between the motion vectors used to predict blocks P and Q is greater than or equal to one integer sample, then the boundary strength parameter of this boundary is set equal to 1.
[0155] 3. In other cases (when blocks Q and P do not have non-zero transform coefficients and the absolute difference between the motion vectors is less than one sample), if blocks P and Q are predicted based on different reference pictures or the number of motion vectors used to predict blocks Q and P is unequal, then the boundary strength parameter of this boundary is set equal to 1.
[0156] 4. Otherwise (if the above three conditions evaluate to false), the boundary strength parameter for this boundary is set equal to 0.
[0157] 15. If at least one block among P and Q is a CIIP predicted block, the boundary strength is modified as follows:
[0158] 1. If the boundary strength is not equal to the predetermined first value (in one example, the predetermined first value is equal to 2), then the boundary strength is incremented by a predetermined second value (in one example, the predetermined second value is equal to 1).
[0159] 16. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0160] EMBODIMENT 4 For a boundary with two sides (P and Q as defined in VVC draft 3.0), the boundary strength is derived as follows:
[0161] 17. If this boundary is a horizontal boundary and P and Q belong to different CTUs, then: 1. If block Q is a CIIP predicted block, the boundary strength is set to 2.
[0162] 2. Otherwise, boundary strengths are derived as specified in VVC Draft 3.0.
[0163] 18. In other cases: 1. If at least one block among P and Q is a CIIP predicted block, the boundary strength parameter of this boundary is set to 2.
[0164] Otherwise, derive the boundary strength of this boundary as specified in VVC Draft 3.0.
[0165] EMBODIMENT 5 For a two-sided boundary (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is determined as follows.
[0166] 19. If at least one of the P blocks or the Q blocks is predicted by application of intra prediction rather than by application of CIIP prediction (possibilities include the P block being predicted by intra prediction rather than by multi-hypothesis prediction and the Q block being predicted by any prediction function, and vice versa), the boundary strength is set equal to 2.
[0167] 20. If both of the blocks are predicted by applying inter prediction or CIIP prediction (possibilities include: P block is an inter block and Q block is an inter block, or alternatively, P block is an inter block and Q block is an MH block, or alternatively, P block is an HM block and Q block is an inter block, or alternatively, P block is an MH block and Q block is an MH block), 1. If the boundary is a horizontal boundary and P and Q are located in two different CTUs, then: 1. If a block Q (Q block is denoted as a block located downward compared to P block) is predicted by applying CIIP prediction, the boundary strength parameter of said boundary is set equal to one.
[0168] 2. Otherwise (if block Q is not predicted by applying CIIP prediction), if at least one of the neighboring blocks P and Q has non-zero transform coefficients, then the boundary strength parameter of the boundary is set equal to 1.
[0169] 3. Otherwise, if the absolute difference between the motion vectors used to predict blocks P and Q is greater than or equal to one integer luma sample, then the boundary strength parameter of that boundary is set equal to 1.
[0170] 4. Otherwise, if motion compensated prediction in neighboring blocks P and Q is performed based on different reference pictures, or if the number of motion vectors used to predict blocks Q and P is not equal, the boundary strength parameter of the boundary is set equal to 1.
[0171] 5. Otherwise, the boundary strength parameter of the boundary is set equal to 0.
[0172] 2. In other cases (when the boundary is a vertical boundary or when Block Q and Block P are contained in the same CTU), 1. If at least one of blocks P and Q is predicted by applying CIIP prediction, the boundary strength parameter of said boundary is set equal to 1.
[0173] 2. Otherwise, if at least one of the neighboring blocks P and Q has a non-zero transform coefficient, then the boundary strength parameter of that boundary is set equal to one.
[0174] 3. Otherwise, if the absolute difference between the motion vectors used to predict blocks P and Q is greater than or equal to one integer luma sample, then the boundary strength parameter of the boundary is set equal to 1.
[0175] 4. Otherwise, if motion compensated prediction in neighboring blocks P and Q is performed based on different reference pictures, or if the number of motion vectors used to predict blocks Q and P is not equal, the boundary strength parameter of the boundary is set equal to 1.
[0176] 5. Otherwise, the boundary strength parameter for this boundary is set equal to 0.
[0177] 21. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0178] EMBODIMENT 6 For a two-sided boundary (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is determined as follows.
[0179] 22. First, determine the boundary strength of the boundary according to the method specified in the VVC or ITU-H.265 video coding standard.
[0180] 23. If the boundary is a horizontal boundary and P and Q are located in two different CTUs, then: 1. If block Q is predicted by applying CIIP prediction, the boundary strength is modified as follows:
[0181] 1. If the boundary strength is not equal to 2, the boundary strength is incremented by 1.
[0182] 24. In other cases (when the boundary is a vertical boundary or when Block Q and Block P are contained in the same CTU), 1. If at least one of blocks P or Q is predicted by applying CIIP prediction, the boundary strength parameter of said boundary is adjusted as follows:
[0183] 1. If the boundary strength is not equal to 2, the boundary strength is incremented by 1.
[0184] 25. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0185] EMBODIMENT 7 For a boundary with two sides (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is derived as follows:
[0186] 26. If the boundary is a horizontal boundary and blocks P and Q are located in different CTUs, 1. If a block Q (Q block is denoted as a block located downwards compared to P block) is predicted by applying CIIP prediction, the boundary strength is set equal to 2.
[0187] 2. If the Q block is not predicted by applying CIIP prediction, and if at least one of the block Q or the block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0188] 3. If block Q is not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0189] 27. In other cases (when the boundary is a vertical boundary or when Block Q and Block P are contained in the same CTU): 1. If at least one of blocks P or Q is predicted by application of CIIP prediction, the boundary strength parameter of said boundary is set equal to 2.
[0190] 2. If both P and Q blocks are not predicted by applying CIIP prediction, and if at least one of block Q or block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0191] 3. If both P and block Q are not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0192] 28. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0193] EMBODIMENT 8 For a two-sided boundary (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is determined as follows.
[0194] 29. If at least one of blocks P and Q is predicted by applying intra prediction rather than applying CIIP prediction (possibilities include the case where the P block is predicted by intra prediction rather than by multi-hypothesis prediction and the Q block is predicted by an arbitrary prediction function, and vice versa), then the boundary strength is set equal to 2.
[0195] 30. When both blocks Q and P are predicted by applying inter prediction or by applying CIIP prediction (possibilities include that P block is an inter block and Q block is an inter block, or alternatively, P block is an inter block and Q block is an MH block, or alternatively, P block is an HM block and Q block is an inter block, or alternatively, P block is an MH block and Q block is an MH block).
[0196] 1. If at least one of blocks P and Q has a non-zero transform coefficient, then the boundary strength parameter of that boundary is set equal to one. 2. Otherwise (if blocks Q and P have no non-zero transform coefficients), if the absolute difference between the motion vectors used to predict blocks P and Q is greater than or equal to one integer sample, then the boundary strength parameter of this boundary is set equal to 1.
[0197] 3. In other cases (when blocks Q and P do not have non-zero transform coefficients and the absolute difference between the motion vectors is less than one sample), if blocks P and Q are predicted based on different reference pictures or the number of motion vectors used to predict blocks Q and P is unequal, then the boundary strength parameter of this boundary is set equal to 1.
[0198] 4. Otherwise (if the above three conditions evaluate to false), the boundary strength parameter for this boundary is set equal to 0.
[0199] 31. If the boundary is a horizontal boundary and P and Q are located in two different CTUs, then: 1. If block Q is predicted by applying CIIP prediction, the determined boundary strength is modified as follows:
[0200] 1. If the boundary strength is not equal to 2, the boundary strength is incremented by 1.
[0201] 32. If the boundary is a vertical boundary or if block Q and block P are contained in the same CTU: 1. If at least one of blocks P and Q is predicted by applying CIIP prediction, the boundary strength parameter of said boundary is adjusted as follows:
[0202] 1. If the boundary strength is not equal to 2, the boundary strength is incremented by 1.
[0203] 33. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0204] EMBODIMENT 9 In one example, the boundary strength (Bs) of CIIP block boundaries is set to a value of 2, but the boundary strength of sub-block boundaries within the CIIP is set to a value of 1. When sub-block boundaries are not aligned to an 8x8 sample grid, the boundary strength of such edges is set to a value of 0. An 8x8 grid is shown in Figure 11.
[0205] In another example, the boundary strength of an edge is determined as follows.
[0206] For a boundary with two sides (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is derived as follows:
[0207] 34. If the boundary is a horizontal boundary and blocks P and Q are located in different CTUs, 1. If a block Q (Q block is denoted as a block located downwards compared to P block) is predicted by applying CIIP prediction, the boundary strength is set equal to 2.
[0208] 2. If the Q block is not predicted by applying CIIP prediction, and if at least one of the block Q or the block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0209] 3. If block Q is not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0210] 35. In other cases (P and Q correspond to two sub-blocks in a CIIP block, i.e., the target boundary is a sub-block boundary in the CIIP block), 1. If the sub-block border is aligned to an 8x8 grid, set the border strength to a value of 1.
[0211] 2. Else (sub-block border is not aligned to an 8x8 grid), set the border strength to a value of 0.
[0212] 36. In other cases (when the boundary is a vertical boundary or when blocks Q and P are contained in the same CTU and P and Q are not in the same CIIP block), 1. If at least one of blocks P or Q is predicted by application of CIIP prediction, the boundary strength parameter of said boundary is set equal to 2.
[0213] 2. If both P and Q blocks are not predicted by applying CIIP prediction, and if at least one of block Q or block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0214] 3. If both P and block Q are not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0215] 37. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0216] EMBODIMENT 10 In one example, the boundary strength (Bs) of CIIP block boundaries is set to a value of 2, but the boundary strength of sub-block boundaries within the CIIP is set to a value of 1. When sub-block boundaries are not aligned to a 4x4 sample grid, the boundary strength of such edges is set to a value of 0. A 4x4 grid is shown in Figure 12.
[0217] In another example, the boundary strength of an edge is determined as follows.
[0218] For a boundary with two sides (with spatially adjacent blocks on each side denoted as P and Q blocks), the boundary strength is derived as follows:
[0219] 38. If the boundary is a horizontal boundary and blocks P and Q are located in different CTUs, 1. If a block Q (Q block is denoted as a block located downwards compared to P block) is predicted by applying CIIP prediction, the boundary strength is set equal to 2.
[0220] 2. If the Q block is not predicted by applying CIIP prediction, and if at least one of the block Q or the block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0221] 3. If block Q is not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0222] 39. In other cases (P and Q correspond to two sub-blocks in a CIIP block, i.e., the target boundary is a sub-block boundary in the CIIP block), 1. If the sub-block border is aligned to a 4x4 grid, set the border strength to a value of 1.
[0223] 2. Else (sub-block border is not aligned to a 4x4 grid), set the border strength to a value of 0.
[0224] 40. In any other case (when the boundary is a vertical boundary or when blocks Q and P are contained in the same CTU and P and Q are not in the same CIIP block), 1. If at least one of blocks P or Q is predicted by application of CIIP prediction, the boundary strength parameter of said boundary is set equal to 2.
[0225] 2. If both P and Q blocks are not predicted by applying CIIP prediction, and if at least one of block Q or block P is predicted by applying intra prediction, the boundary strength is determined to be equal to 2.
[0226] 3. If both P and block Q are not predicted by applying CIIP prediction, and if both blocks Q and P are predicted by applying inter prediction, then the boundary strength is determined to be less than 2 (the exact value of the boundary strength is determined according to further condition evaluation).
[0227] 41. The pixel samples contained in blocks Q and P are filtered by applying a deblocking filter according to the determined boundary strength.
[0228] The present invention further provides the following embodiments.
[0229]
[0023] Embodiment 1. A method of encoding, wherein the encoding includes decoding or encoding, the method comprising: determining whether a current coding unit (or coding block) is predicted by applying joint inter-intra prediction; setting a boundary strength (Bs) of a boundary of the current coding unit to a first value when the current coding unit is predicted by applying joint inter-intra prediction; setting a boundary strength (Bs) of a boundary of a sub-coding unit to a second value, wherein the current coding unit includes at least two sub-coding units and the boundary of the sub-coding unit is a boundary between the at least two sub-coding units.
[0230]
[0023] Embodiment 2. The method of embodiment 1, further comprising the steps of: performing deblocking when the value of the Bs is greater than zero for a luma component, or performing deblocking when the value of the Bs is greater than one for a chroma component, wherein the value of the Bs is one of the first value or the second value.
[0231]
[0023] Embodiment 3. The method of embodiment 1 or 2, wherein when the current coding unit (or block) is predicted by applying joint inter-intra prediction, the current coding unit is considered to be an intra-predicted unit when performing deblocking.
[0232] 13 is a block diagram showing an example structure of an apparatus 1300 for the boundary strength derivation process. The apparatus 1300 is configured to perform the above-mentioned method, A determining unit 1302 configured to determine whether at least one of two blocks is predicted by applying combined inter-intra prediction (CIIP), the two blocks including a first block (block Q) and a second block (block P), the two blocks being associated with a boundary; and a setting unit 1304 configured to set a boundary strength (Bs) of the boundary to a first value when at least one of the two blocks is predicted by application of the CIIP, and to set the boundary strength (Bs) of the boundary to a second value when neither of the two blocks is predicted by application of the CIIP.
[0233] As an example, the setting unit is configured to set the Bs of the boundary to a first value when the first block is predicted by applying the CIIP or when the second block is predicted by applying the CIIP.
[0234] The apparatus 2500 may further include a parsing unit (not shown in FIG. 13) configured to parse the bitstream to obtain a flag, which is used to indicate whether at least one of the two blocks is predicted by application of CIIP.
[0235] The determining unit 1302 may be further configured to determine whether at least one of the two blocks is predicted by applying intra prediction. The setting unit 1304 is configured to set the Bs of the boundary to a first value when none of the two blocks is predicted by applying intra prediction and when at least one of the two blocks is predicted by applying CIIP. For example, the first value may be 1 or 2.
[0236] The setting unit 1304 is configured to set the Bs of the boundary to a second value when none of the two blocks is predicted by applying intra prediction and none of the two blocks is predicted by applying CIIP. For example, the second value may be 1 when at least one of the two blocks (P and Q) has a non-zero transform coefficient.
[0237] Advantages of the embodiment Deblocking filtering of blocks predicted by application of a multi-hypothesis prediction with a deblocking filter with medium strength (boundary strength equal to 1).
[0238] When a block is predicted by applying CIIP prediction, the first prediction is obtained by applying inter prediction, and the second prediction is obtained by applying intra prediction, which are then combined. Since the final prediction includes an intra prediction part, this is usually observed to have more block artifacts. Therefore, there may be block artifacts even at the boundary of the block predicted by CIIP prediction. To alleviate this problem, according to an embodiment of the present invention, the boundary strength is set to 2, which improves the chances of the deblocking filter of the block edge predicted by applying CIIP prediction.
[0239] Further embodiments of the present invention reduce the required line memory as follows: Line memory is defined as the memory required to store information corresponding to the upper CTU row and during processing of the neighboring lower CTU row. For example, to filter the horizontal boundary between two CTU rows, the prediction mode information (intra prediction / inter prediction / multi-hypothesis prediction) of the upper CTU needs to be stored in a list memory. Since three states (intra prediction / inter prediction / multi-hypothesis prediction) are possible to describe the prediction mode of a block, the line memory requirement can be defined as 2 bits per block.
[0240] According to an embodiment of the present invention, if a block (in the embodiment, a P block) belongs to an upper CTU row, the deblocking operation only needs information about whether the block is predicted by inter prediction or intra prediction (so there are only two states, which can be stored using one bit per block). The reason is as follows.
[0241] If the boundary between the P block and the Q block is a horizontal boundary, and the Q block and the P block belong to two different CTUs (in all embodiments, the Q block is the one below with respect to the P block), the information of whether the P block is predicted by applying CIIP prediction is not utilized in determining the boundary strength parameter. Therefore, it does not need to be stored. With the help of the embodiment of the present invention, in the hardware implementation, the prediction mode of the P block can be temporarily changed as inter prediction (when the P block is predicted by CIIP prediction), and the determination of the boundary strength can be performed according to the changed prediction mode. After that (after the determination of the boundary strength), the prediction mode can be changed back to CIIP prediction. Note that the hardware implementation is not limited to the method described here (changing the prediction mode of the P block at the CTU boundary), and this is merely presented as an example to illustrate that, according to the embodiment of the present invention, the information of whether the P block is predicted by CIIP prediction is not essential in the determination of the boundary strength (at the horizontal CTU boundary).
[0242] Thus, according to an embodiment of the present invention, the required line memory is reduced from 2 bits per block to 1 bit per block. Note that the total line memory that needs to be implemented in hardware is proportional to the picture width and inversely proportional to the minimum block width.
[0243] According to an embodiment, all the above-mentioned embodiments note that when a block is predicted by applying CIIP prediction, the first prediction is obtained by applying inter prediction, and the second prediction is obtained by applying intra prediction, and they are later combined.
[0244] The above embodiments show that CIIP blocks are considered as intra blocks to different extents when performing deblocking filter. Embodiments 1, 2 and 3 use three different strategies to adjust the boundary strength of the boundary. Embodiment 1 considers MH blocks as completely intra blocks. Therefore, the condition for setting Bs to 2 is the same as Table 1.
[0245] The second embodiment also considers that the distortion caused by MH blocks is not as high as that of intra blocks. Therefore, the boundary strength condition is checked first for intra blocks and then for CIIP blocks. However, when a CIIP block is detected, Bs is still considered to be 2.
[0246] The third embodiment regards the MH block as a partially intra block, and if at least one neighboring block on the boundary is an MH block, Bs is increased by 1. Using the conventional derivation strategy, if Bs is already 2, Bs is not changed.
[0247] Figure 8 shows the derivation of Bs in VVC Draft 3.0. Figures 7, 9, and 10 show modifications to the Bs derivation in embodiments 1, 2, and 3, respectively.
[0248] It is worth noting that in the first and second embodiments, not only the potential distortion but also the processing logic is reduced. In the first and second embodiments, as long as the P or Q block is a MH block, the check on the coefficients and motion vectors is no longer necessary, and thus the delay of the condition check is shortened.
[0249] Embodiments 4, 5, and 6 are modifications of embodiments 1, 2, and 3, respectively, in which a line buffer memory is taken into account. Their core modification to embodiments 1, 2, and 3 is that when two sides P and Q are located in different CTUs and the edge is horizontal, the check of the MH block is performed asymmetrically, that is, the P side block (i.e., the upper side) is not checked, but only the Q side (i.e., the lower side) is checked. In this way, no additional line buffer memory is allocated to store the CIIP flag of the P side block located in another CTU.
[0250] In addition to the above six embodiments, one further feature of MH blocks may be that MH blocks do not need to be considered as intra blocks consistently. In one example, when searching for a motion vector predictor for a current block, if its neighboring blocks are MH blocks, the motion vectors of these MH blocks can be considered as motion vector predictors. In this case, the inter prediction information of the HM block is used, and therefore the HM block is no longer considered as an intra block. In another example, when building an MPM list of intra blocks, the neighboring MH blocks of the current block can be considered not to contain intra information. Therefore, when checking the availability of those MH blocks for building the MPM list of the current block, they are labeled as unavailable. Note that the MH blocks referred to in this paragraph are not limited to only the MH blocks used to determine the Bs value of the deblocking filter.
[0251] In addition to the above six embodiments, one further feature of MH blocks may be that MH blocks are consistently considered as intra blocks. In one example, when searching for the motion vector predictor of the current block, if its neighboring blocks are MH blocks, the motion vectors of these MH blocks are excluded from the motion vector predictor. In this case, the inter prediction information of the HM block is not used, and therefore the HM block is considered as an intra block. In another example, when building the MPM list of intra blocks, the neighboring MH blocks of the current block can be considered to contain intra information. Therefore, when checking the availability of those MH blocks for building the MPM list of the current block, they are labeled as available. Note that the MH blocks referred to in this paragraph are not limited to only the MH blocks used to determine the Bs value of the deblocking filter.
[0252] The following is a description of the application of the encoding and decoding methods as illustrated in the above embodiments, and the systems that use them.
[0253] 14 is a block diagram showing a content supply system 3100 for implementing a content distribution service. The content supply system 3100 includes a capture device 3102, a terminal device 3106, and optionally a display 3126. The capture device 3102 communicates with the terminal device 3106 via a communication link 3104. The communication link may include the communication channel 13 described above. The communication link 3104 includes, but is not limited to, WIFI, Ethernet, cable, wireless (3G / 4G / 5G), USB, or any type of combination thereof, etc.
[0254] The capture device 3102 may generate data and encode the data by the encoding method as shown in the above embodiment. Alternatively, the capture device 3102 may distribute the data to a streaming server (not shown), which encodes the data and transmits the encoded data to the terminal device 3106. The capture device 3102 includes, but is not limited to, a camera, a smartphone or Pad, a computer or laptop, a video conferencing system, a PDA, an in-vehicle device, or any combination thereof. For example, the capture device 3102 may include a source device 12 as described above. When the data includes video, a video encoder 20 included in the capture device 3102 may actually perform a video encoding process. When the data includes audio (i.e., voice), an audio encoder included in the capture device 3102 may actually perform an audio encoding process. In some practical scenarios, the capture device 3102 distributes the encoded video and audio data by multiplexing them together. In other practical scenarios, for example, in a video camera system, the encoded audio data and the encoded video data are not multiplexed. The capture device 3102 delivers the encoded audio data and the encoded video data separately to the terminal device 3106 .
[0255] In the content delivery system 3100, the terminal device 310 receives and plays the encoded data. The terminal device 3106 may be a device with data receiving and recovering capabilities, such as a smartphone or Pad 3108, a computer or laptop 3110, a network video recorder (NVR) / digital video recorder (DVR) 3112, a TV 3114, a set top box (STB) 3116, a video conferencing system 3118, a video surveillance system 3120, a personal digital assistant (PDA) 3122, an in-vehicle device 3124, or any combination thereof, capable of decoding the encoded data described above. For example, the terminal device 3106 may include a destination device 14 as described above. When the encoded data includes video, the video decoder 30 included in the terminal device is prioritized to perform the video decoding. When the encoded data includes audio, the audio decoder included in the terminal device is prioritized to perform the audio decoding process.
[0256] In terminal devices with a display, such as a smartphone or Pad 3108, a computer or laptop 3110, a network video recorder (NVR) / digital video recorder (DVR) 3112, a TV 3114, a personal digital assistant (PDA) 3122, or an in-vehicle device 3124, the terminal device can provide the decoded data to its own display. In terminal devices without a display, such as a STB 3116, a video conferencing system 3118, or a video surveillance system 3120, an external display 3126 is connected to receive and display the decoded data.
[0257] When each device in the system performs encoding or decoding, it can use a picture encoding device or a picture decoding device as shown in the above embodiments.
[0258] 15 is a diagram showing an example structure of the terminal device 3106. After the terminal device 3106 receives a stream from the capture device 3102, the protocol progression unit 3202 analyzes the transmission protocol of the stream. The protocol includes, but is not limited to, Real Time Streaming Protocol (RTSP), Hyper Text Transfer Protocol (HTTP), HTTP Live streaming protocol (HLS), MPEG-DASH, Real-time Transport protocol (RTP), Real Time Messaging Protocol (RTMP), or any kind of combination thereof, etc.
[0259] After the protocol progression unit 3202 processes the stream, a stream file is generated. The file is output to the demultiplexing unit 3204. The demultiplexing unit 3204 can separate the multiplexed data into encoded audio data and encoded video data. As mentioned above, in some practical scenarios, for example in a video conferencing system, the encoded audio data and encoded video data are not multiplexed. In this situation, the encoded data is sent to the video decoder 3206 and the audio decoder 3208 without passing through the demultiplexing unit 3204.
[0260] The demultiplexing process generates a video elementary stream (ES), an audio ES, and any subtitles. The video decoder 3206, which includes the video decoder 30 as described in the above embodiment, decodes the video ES by the decoding method as shown in the above embodiment to generate video frames, and supplies this data to the synchronization unit 3212. The audio decoder 3208 decodes the audio ES to generate audio frames, and supplies this data to the synchronization unit 3212. Alternatively, the video frames may be stored in a buffer (not shown in Figure Y) before being supplied to the synchronization unit 3212. Similarly, the audio frames may be stored in a buffer (not shown in Figure Y) before being supplied to the synchronization unit 3212.
[0261] The synchronization unit 3212 synchronizes the video and audio frames and provides the video / audio to a video / audio display 3214. For example, the synchronization unit 3212 synchronizes the presentation of video and audio information, which may be encoded in the syntax with timestamps for the presentation of the encoded audio and visual data, and for the delivery of the data stream itself.
[0262] If subtitles are included in the stream, the subtitle decoder 3210 decodes the subtitles, synchronizes it with the video and audio frames, and provides the video / audio / subtitles to the video / audio / subtitle display 3216.
[0263] The present invention is not limited to the above-mentioned system, and either the picture encoding device or the picture decoding device in the above-mentioned embodiments can be incorporated into other systems, for example, a vehicle system.
[0264] Although the embodiments of the present invention have been described mainly 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.
[0265] 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.
[0266] 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.
[0267] 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 circuits or logic elements.
[0268] 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. [Explanation of symbols]
[0269] 12 Source Device 14 Destination Device 18 Video Sources 20 Video Encoder 22 Output Interface 28 Input Interface 30 Video Decoder 32 Display device
Claims
1. 1. A method of video encoding, comprising: determining whether at least one of two blocks of an image of a video is predicted by combined inter-intra prediction (CIIP), the two blocks including a first block and a second block, and a boundary exists between the first block and the second block; setting a boundary strength (Bs) of the boundary to a first value when at least one of the two blocks is predicted by CIIP, the first value being 2; encoding a flag into a video bitstream, the flag being used to indicate whether at least one of the two blocks is predicted by CIIP; The method includes:
2. setting the boundary strength (Bs) of the boundary to a second value when neither of the two blocks is predicted by CIIP; The method of claim 1 further comprising:
3. determining whether at least one of the two blocks is predicted by intra prediction; 3. The method of claim 1 or 2, wherein the boundary strength (Bs) of the boundary is set based on determining whether at least one of the two blocks is predicted by CIIP and based on determining whether at least one of the two blocks is predicted by intra prediction.
4. The step of setting the Bs of the boundary to the first value includes:
4. The method of claim 3, further comprising setting the Bs of the boundary to the first value when neither of the two blocks is predicted by intra prediction and when at least one of the two blocks is predicted by CIIP.
5. 4. The method of claim 3, wherein when neither of the two blocks is predicted by intra prediction and neither of the two blocks is predicted by CIIP, the Bs of the boundary is set to a second value.
6. 3. The method of claim 2, wherein the second value is one when at least one of the two blocks has non-zero transform coefficients and when neither of the two blocks is predicted by CIIP.
7. The method comprises: performing a deblocking filter on a boundary between the luma components of the first block and the second block; The method of any one of claims 1 to 6, further comprising:
8. The method comprises: when the value of Bs is greater than 1, performing a deblocking filter on the boundary between the chroma components of the first block and the second block; The method of any one of claims 1 to 7, further comprising:
9. 1. A method of video decoding, comprising: Parsing a video bitstream to obtain a flag, the flag being used to indicate whether at least one of two blocks of an image in the video is predicted by combined inter-intra prediction (CIIP), the two blocks including a first block and a second block, and a boundary exists between the first block and the second block; determining whether at least one of the two blocks is predicted by CIIP; setting a boundary strength (Bs) of the boundary to a first value when at least one of the two blocks is predicted by CIIP, the first value being 2; The method includes:
10. setting the boundary strength (Bs) of the boundary to a second value when neither of the two blocks is predicted by CIIP; 10. The method of claim 9 further comprising:
11. determining whether at least one of the two blocks is predicted by intra prediction; 11. The method according to claim 9 or 10, wherein the boundary strength (Bs) of the boundary is set based on determining whether at least one of the two blocks is predicted by CIIP and based on determining whether at least one of the two blocks is predicted by intra prediction.
12. The step of setting the Bs of the boundary to the first value includes:
12. The method of claim 11, comprising setting the Bs of the boundary to the first value when neither of the two blocks is predicted by intra prediction and when at least one of the two blocks is predicted by CIIP.
13. 12. The method of claim 11, wherein when neither of the two blocks is predicted by intra prediction and neither of the two blocks is predicted by CIIP, the Bs of the boundary is set to a second value.
14. 11. The method of claim 10, wherein the second value is one when at least one of the two blocks has non-zero transform coefficients and when neither of the two blocks is predicted by CIIP.
15. The method comprises: performing a deblocking filter on a boundary between the luma components of the first block and the second block; The method according to any one of claims 9 to 14, further comprising:
16. The method comprises: when the value of Bs is greater than 1, performing a deblocking filter on the boundary between the chroma components of the first block and the second block; The method according to any one of claims 9 to 15, further comprising:
17. 1. An encoder comprising: one or more processors; a computer-readable medium communicatively coupled to the one or more processors; Including, The computer readable medium stores instructions which, when executed by the one or more processors, cause the encoder to perform the method of any one of claims 1 to 8.
18. A decoder comprising: one or more processors; a computer-readable medium communicatively coupled to the one or more processors; Including, The computer readable medium storing instructions which, when executed by the one or more processors, cause the decoder to perform the method of any one of claims 9 to 16.
19. An encoder comprising processing circuitry for carrying out the method according to any one of claims 1 to 8.
20. A decoder including processing circuitry for carrying out the method according to any one of claims 9 to 16.
21. A computer program comprising a program code for carrying out the method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Method and apparatus for encoding hybrid intra-inter coded blocks
JP2007503775A
Method and apparatus for encoding hybrid intra-inter coded blocks
US8085845B2
Video coding using combined inter and intra predictors
US9374578B1
Determining application of deblocking filtering to palette coded blocks in video coding
WO2015191834A1
