METHOD AND APPARATUS FOR CHROMA INTRA PREDICTION IN VIDEO CODING - Patent application
The method improves video coding efficiency by deriving chroma intra prediction modes from luma modes through wide-angle mapping and subsampling adjustments, addressing inefficiencies in chroma component handling.
Patent Information
- Application Number
- JP2023098183
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2019-03-24
- Filing Date
- 2023-06-15
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2040-03-24
AI Technical Summary
Existing video coding technologies face challenges in achieving high compression ratios with minimal quality loss, particularly in handling chroma components with different subsampling ratios, leading to inefficiencies in video data transmission and storage.
A method and apparatus for chroma intra prediction that involves obtaining an initial intra prediction mode for the chroma component, performing wide-angle mapping, and deriving an intraPredAngle parameter to improve prediction accuracy, using a lookup table to map luma to chroma prediction modes, and adjusting for subsampling ratios.
Enhances video coding efficiency by reducing the number of entries in the lookup table and improving prediction accuracy for chroma components, thereby optimizing compression and decompression processes.
Smart Images

Figure 0007553007000040 
Figure 0007553007000037 
Figure 0007553007000053
Abstract
Description
[Technical field]
[0001] [CROSS-REFERENCE TO RELATED APPLICATIONS] This application claims priority to U.S. Provisional Application No. 62 / 822,981, filed March 24, 2019, which is incorporated by reference.
[0002] [Technical field] FIELD OF THE DISCLOSURE Embodiments of the present disclosure relate generally to the field of picture processing, and more particularly to a method for chroma intra prediction in video coding. [Background technology]
[0003] Video coding (video encoding and decoding) is used in a wide range of digital video applications, such as broadcast digital TV, video transmission over the Internet and mobile networks, real-time conversation applications such as video chat, video conferencing, DVDs and Blu-ray discs, video content acquisition and editing systems, and camcorders in security applications.
[0004] The amount of video data required to render even a relatively short video can be substantial, which can create difficulties when the data is streamed or communicated across communication networks with limited bandwidth capacity. Therefore, video data is typically compressed before being communicated across modern telecommunication networks. The size of the video can also be an issue when the video is stored on a storage device, since memory resources may be limited. Video compression devices often use software and / or hardware at the source to code the video data 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. Due to limited network resources and ever-increasing demands for higher video quality, improved compression and decompression techniques are desirable that improve compression ratios with little or no sacrifice in picture quality. Summary of the Invention
[0005] Embodiments of the present application provide devices and methods for encoding and decoding according to the independent claims.
[0006] These and other objects are achieved by the subject matter of the independent claims. Further realisation forms are evident from the dependent claims, the description and the drawings.
[0007] According to a first aspect, the present invention relates to a method of directional intra prediction for a chroma component of a picture, the method comprising the steps of obtaining an initial intra prediction mode of the chroma component (e.g., mode X in the process map 422) and deriving a chroma intra prediction mode (intraPredModeC) (e.g., mode Y in the process map 422) from a look up table (LUT) by using the initial intra prediction mode of the chroma component, the chroma component having different subsampling ratios in the horizontal and vertical directions. The method further comprises the steps of performing a wide-angle mapping on the chroma intra prediction mode (intraPredModeC) to obtain a modified intraPredModeC, obtaining an intraPredAngle parameter for the chroma component based on the modified intraPredModeC, and obtaining a prediction sample of the chroma component based on the intraPredAngle parameter.
[0008] As an implementation of the first aspect, the method includes: - obtaining a value of a luma intra prediction mode (intraPredModeY) from the bitstream; The step of obtaining an initial intra prediction mode for a chroma component includes: - Obtaining an initial intra-prediction mode for a chroma component based on a value of a luma intra-prediction mode (intraPredModeY).
[0009] As an implementation method of the first aspect, the step of performing wide-angle mapping on a chroma intra prediction mode (intraPredModeC) to obtain a modified intraPredModeC includes: Performing wide-angle mapping on an original intra-prediction mode (predModeIntra) to obtain a modified predModeIntra, where the value of the original predModeIntra is equal to the value of the chroma intra-prediction mode (intraPredModeC).
[0010] As an implementation of the first aspect, the LUT (eg, table 8-4) has 67 entries, and the indexes for the LUT are 0-66.
[0011] The method according to the first aspect of the present invention may be performed by a device according to the second aspect of the present invention. The device for directional intra prediction for chroma components of a picture includes an acquisition unit, a derivation unit, and a mapping unit. The acquisition unit is configured to acquire an initial intra prediction mode of the chroma components. The derivation unit is configured to derive a chroma intra prediction mode (intraPredModeC) from a look up table (LUT) by using the initial intra prediction mode of the chroma components, the chroma components having different subsampling ratios in horizontal and vertical directions. The mapping unit is configured to perform wide-angle mapping on the chroma intra prediction mode (intraPredModeC) to acquire a modified intraPredModeC, and the acquisition unit is further configured to acquire an intraPredAngle parameter for the chroma components based on the modified intraPredModeC, and to acquire a prediction sample of the chroma components based on the intraPredAngle parameter.
[0012] Further features and implementations of the method according to the second aspect of the invention correspond to the features and implementations of the device according to the first aspect of the invention.
[0013] According to a third aspect, the invention relates to an apparatus for decoding a video stream, comprising a processor and a memory, the memory storing instructions causing the processor to carry out the method according to the first aspect.
[0014] According to a fourth aspect, the invention relates to an apparatus for encoding a video stream, comprising a processor and a memory, the memory storing instructions causing the processor to carry out the method according to the first aspect.
[0015] According to a fifth aspect, a computer-readable storage medium is proposed having stored thereon instructions which, when executed, cause one or more processors configured to code video data to perform a method according to the first aspect or any possible embodiment of the first aspect.
[0016] 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.
[0017] According to a seventh aspect, the present disclosure further provides an encoder including processing circuitry for performing the above method.
[0018] According to an eighth aspect, the present disclosure further provides a decoder including processing circuitry for performing the above method.
[0019] Embodiments of the present invention provide a minimum number of entries in the LUT used to determine a chrominance intra prediction mode from an initial chrominance intra prediction mode, which may be equal to the initial luma intra prediction mode. This is achieved by the order of steps performed, i.e., chrominance intra prediction mode mapping to luma mode being performed before wide-angle mapping.
[0020] 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]
[0021] In the following, embodiments of the invention will be explained in more detail with reference to the accompanying figures and drawings. [Figure 1A] 1 is a block diagram illustrating an example of a video coding system configured to implement embodiments of the present invention. [Figure 1B] FIG. 2 is a block diagram illustrating another example of a video coding 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 6] FIG. 1 is a diagram showing angular intra-prediction directions and associated intra-prediction modes in VTM-4.0 and VVC specification draft v.4. [Figure 7] FIG. 2 illustrates the luma and chroma color planes for YUV 4:2:0 and YUV 4:2:2 chroma formats. [Figure 8] An example is shown where IntraPredModeC is derived from IntraPredModeY, where IntraPredModeY is a wide-angle intra-prediction mode and IntraPredModeC is a non-wide-angle intra-prediction mode. [Figure 9] An example is shown where IntraPredModeC is derived from IntraPredModeY, where IntraPredModeY is a non-wide angle intra prediction mode and IntraPredModeC is a non-wide angle intra prediction mode. [Figure 10] An example is shown where IntraPredModeC is derived from IntraPredModeY, where IntraPredModeY is a non-wide angle intra prediction mode and IntraPredModeC is a wide angle intra prediction mode. [Figure 11]An example is shown where IntraPredModeC is derived from IntraPredModeY using prediction mode clipping, where IntraPredModeY is a non-wide angle intra prediction mode and IntraPredModeC is a wide angle intra prediction mode. [Figure 12A] 12 illustrates an embodiment of a block 1200 of intra prediction of chroma components implemented in accordance with the present invention. [Figure 12B] 12 illustrates an embodiment of a block 1210 of intra prediction of chroma components implemented in accordance with the present invention. [Figure 13] 13 illustrates an embodiment of a method 1300 for intra prediction of chroma components implemented in accordance with the present invention. [Figure 14] 14 shows an embodiment of a device 1400 for intra prediction of chroma components implemented according to the invention. [Figure 15] 31 is a block diagram showing an exemplary structure of a content delivery system 3100 for implementing a content distribution service. [Figure 16] FIG. 2 is a block diagram illustrating the structure of an example terminal device.
[0022] In the following, identical reference signs denote identical or at least functionally equivalent features, unless expressly specified otherwise. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] In the following description, reference is made to the accompanying drawings which form a part of this disclosure and which show, by way of example, 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. Therefore, the following detailed description is not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims.
[0024] For example, it is understood that disclosure related to a described method may also apply to a corresponding device or system configured to perform the method, and vice versa. For example, when one or more specific method steps are described, the corresponding device may include one or more units, e.g., functional units, for performing the described one or more method steps, even if such one or more units are not explicitly described or shown in the drawings (e.g., one unit performs one or more steps, or multiple units each perform one or more of the multiple steps). On the other hand, for example, when a particular apparatus is described based on one or more units, e.g., functional units, the corresponding method may include one step for performing the function of one or more units, even if such one or more steps are not explicitly described or shown in the drawings (e.g., one step performs the function of one or more units, or multiple steps each perform the function of one or more of the multiple units). 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.
[0025] Typically, video coding refers to the processing of a sequence of pictures forming a video or a video sequence. Instead of the term "picture", the terms "frame" or "image" may be used synonymously in the field of video coding. Video coding (or coding in general) includes two parts: video encoding and video decoding. Video encoding is performed at the source side and typically involves processing the original video picture (e.g., by compression) to reduce the amount of data required to represent the video picture (for more efficient storage and / or transmission). Video decoding is performed at the destination side and typically involves the reverse processing compared to the encoder to reconstruct the video picture. The embodiments referring to "coding" of a video picture (or pictures in general) shall 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).
[0026] 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 is no transmission loss or other data loss 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 low or poor compared to the quality of the original video picture.
[0027] 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 to apply 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, a video is typically processed, i.e., encoded, at the block (video block) level, for example, by generating a predictive block using spatial (intra-picture) prediction and / or temporal (inter-picture) prediction, subtracting the predictive block from a current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block and quantizing the residual block in the transform domain to reduce the amount of data to be transmitted (compression). Meanwhile, in a decoder, the inverse processing compared to the encoder is applied to the coded or compressed block to reconstruct the current block for representation. Furthermore, the encoder replicates the decoder processing loop, so that both generate the same predictions (e.g., intra- and inter-predictions) and / or reconstructions for processing, i.e., coding, subsequent blocks.
[0028] In the following embodiment of the video coding system 10, a video encoder 20 and a video decoder 30 will be described with reference to FIGS.
[0029] 1A is a schematic block diagram illustrating an example coding system 10 that may utilize techniques of the present application, such as a video coding system 10. A video encoder 20 (or encoder 20 for short) and a video decoder 30 (or decoder 30 for short) of the video coding system 10 represent examples of devices that may be configured to perform techniques according to various examples described herein.
[0030] As shown in FIG. 1A, coding system 10 includes a source device 12 configured to provide encoded picture data 21 to a destination device 14 for decoding, for example, encoded picture data 13.
[0031] The source device 12 includes an encoder 20, and may further, i.e. 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.
[0032] The picture source 16 may be or may include any kind of picture capture device, e.g., a camera for capturing real-world pictures, and / or any kind of picture generation device, e.g., a computer graphics processor for generating computer animated pictures, or any kind of device for obtaining and / or providing 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). The picture source may also be any kind of memory or storage for storing any of the above pictures.
[0033] 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 .
[0034] The pre-processor 18 is configured to receive (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 optical component.
[0035] Video encoder 20 is configured to receive pre-processed picture data 19 and to provide encoded picture data 21 (further details are described below, eg, with reference to FIG. 2).
[0036] 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) over the communications channel 13 to another device, such as the destination device 14 or any other device, for storage or direct reconstruction.
[0037] The destination device 14 includes a decoder 30 (e.g., a video decoder 30), and may further, i.e. optionally, include a communications interface or unit 28, a post-processor 32 (or post-processing unit 32), and a display device 34.
[0038] 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 an encoded picture data storage device, and to provide the encoded picture data 21 to a decoder 30.
[0039] 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, e.g., a direct wired or wireless connection, or via any type of network, e.g., a wired or wireless network, or any combination thereof, or any type of private and public network, or any combination thereof.
[0040] The communications interface 22 may be configured, for example, to package the encoded picture data 21 into a suitable format, e.g. packets, and / or process the encoded picture data using any type of transmission encoding or processing, for transmission over a communications link or network.
[0041] The communications interface 28, forming the counterpart to the communications interface 22, may for example be configured to receive transmitted data and process the transmitted data using any type of corresponding transmission decoding or processing and / or unpackaging to obtain the encoded picture data 21.
[0042] Both communication interface 22 and communication interface 28 may be configured as unidirectional communication interfaces, as indicated by the arrow for communication channel 13 pointing from source device 12 to destination device 14 in FIG. 1A, or as bidirectional communication interfaces, e.g., configured to send and receive messages to, e.g., establish a connection, to acknowledge and exchange a communication link and / or any other information related to data transmission, e.g., encoded picture data transmission.
[0043] The decoder 30 is arranged to receive the encoded picture data 21 and to provide decoded picture data 31 or decoded pictures 31 (as will be explained in further detail below, for example with reference to FIG. 3 or FIG. 5).
[0044] 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., a 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.
[0045] A display device 34 of destination device 14 is configured to receive the post-processed picture data 33 and, for example, display the picture to a user or viewer. Display device 34 may be or include any type of display, for example an integrated or external display or monitor, that presents the reconstructed picture. The display may include, for example, a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro LED display, liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display.
[0046] 1A illustrates source device 12 and destination device 14 as separate devices, an embodiment of the devices may also include both or both the functionality of source device 12 or corresponding functionality and destination device 14 or corresponding functionality. 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 by separate hardware and / or software or any combination thereof.
[0047] As will be clear to one of ordinary skill in the art based on the description, the presence and (exact) division of different units or functions within source device 12 and / or destination device 14 as shown in FIG. 1A may vary depending on the actual device and application.
[0048] 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 via processing circuitry as 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 video coding, or any combination thereof. Encoder 20 may be implemented via processing circuitry 46 to embody various modules as described with respect to encoder 20 of FIG. 2 and / or any other encoder system or subsystem described herein. Decoder 30 may be implemented via processing circuitry 46 to embody various modules as described 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 described below. 5, where the techniques are implemented in part in software, a device 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 and video decoder 30 may be integrated as part of a combined encoder / decoder (CODEC) in a single device, for example, as shown in FIG. 1B.
[0049] Source device 12 and destination device 14 may include any of a wide range of devices, including any type of handheld or stationary 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 receiver device, a broadcast transmitter device, and the like, 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.
[0050] In some cases, the video coding system 10 shown in FIG. 1A is merely an example, and the techniques of the present application may be applied to video coding settings (e.g., video encoding or video decoding) that do not necessarily include any data communication between an encoding device and a decoding device. In other examples, data may be retrieved 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 retrieve 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 to memory and / or retrieve data from memory and decode it.
[0051] For ease of explanation, embodiments of the present invention are described herein by reference to, for example, High-Efficiency Video Coding (HEVC) or Versatile Video coding (VVC) reference software, next-generation video coding standards 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 (MEPEG). Those skilled in the art will appreciate that embodiments of the present invention are not limited to HEVC or VVC.
[0052] 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, 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 as shown in FIG. 2 may also be referred to as a hybrid video encoder or a video encoder with a hybrid video codec.
[0053] 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 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 decoder 30 in 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.
[0054] Pictures and picture partitions (pictures and blocks) The encoder 20 may be arranged 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 also be a preprocessed picture 19 (preprocessed picture data 19). For the sake of brevity, the following description refers to the picture 17. The picture 17 may also be called a current picture or a picture to be coded (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 that also includes the current picture).
[0055] A (digital) picture can be or be considered as a two-dimensional array or matrix of samples with intensity values. The samples in the array may also be called pixels (short for picture element) or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the picture. For color representation, typically three color components are used, i.e. a picture may be represented by or contain three sample arrays. In an 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 luminance and chrominance format or color space, e.g. YCbCr, which contains a luminance component denoted by Y (sometimes L is also used instead) and two chrominance components denoted by Cb and Cr. The luminance (or luma for short) component Y represents the brightness or gray level intensity (such as in a grayscale picture). On the other hand, the two chrominance (or chroma for short) components Cb and Cr represent chromaticity or color information components. Thus, a picture in YCbCr format includes a luminance sample array of luminance 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 the picture is monochrome, the picture may include only a luminance sample array. Thus, a picture may be, for example, an array of luma samples or an array of luma samples in monochrome format and two corresponding arrays of chroma samples in 4:2:0, 4:2:2 and 4:4:4 color formats.
[0056] 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 also 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 among pictures or a subset or group of pictures, and to partition each picture into corresponding blocks.
[0057] In further embodiments, the video encoder may be configured to directly receive block 203 of picture 17, e.g., one, some or all of the blocks forming picture 17. Picture block 203 may also be referred to as a current picture block or a picture block to be coded.
[0058] Similar to the picture 17, the picture block 203 can again be considered as or be 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, for example, contain 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 applied color format. The number of samples in the horizontal and vertical directions (or axes) of the block 203 defines the size of the block 203. Thus, the block may, for example, be an M×N (M columns×N rows) array of samples, or an M×N array of transform coefficients.
[0059] An embodiment of video encoder 20 as shown in FIG. 2 may be configured to encode picture 17 on a block-by-block basis, eg, encoding and prediction is performed for each block 203.
[0060] An embodiment of video encoder 20 as shown in FIG. 2 may be further configured to partition and / or encode a picture using slices (also referred to as video slices), where a picture may be partitioned into or encoded using one or more (typically non-overlapping) slices, each of which may include one or more blocks (e.g., CTUs).
[0061] An embodiment of video encoder 20 as shown in FIG. 2 may be further configured to partition and / or encode a picture by using tile groups (also referred to as video tile groups) and / or tiles (also referred to as video tiles), where a picture may be partitioned into or encoded using one or more (typically non-overlapping) tile groups, each of which may, for example, include one or more blocks (e.g., CTUs) or one or more tiles, and each tile may, for example, be rectangular in shape and include one or more blocks (e.g., CTUs), e.g., complete or partial blocks.
[0062] Residual calculation The residual calculation unit 204 is configured to calculate the residual block 205 based on the picture block 203 and the prediction block 265 (further details regarding the prediction block 265 are provided below), for example by subtracting sample values of the prediction block 265 from sample values of the picture block 203 on a sample-by-sample (pixel-by-pixel) basis to obtain the residual block 205 in the sample domain.
[0063] conversion The transform processing unit 206 is 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 in a transform domain 207. The transform coefficients 207 may also be called transformed residual coefficients and represent the residual block 205 in the transform domain.
[0064] 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 certain factor. In order to maintain the norm of the residual block processed by the forward transform and the inverse transform, a further scaling factor is applied as part of the transform process. The scaling factor is typically selected based on certain constraints, such as the scaling factor being a power of two due to shift operations, the bit depth of the transform coefficients, a trade-off between accuracy and implementation cost, etc. A certain scaling factor may be specified, for example, for the inverse transform by the inverse transform processing unit 212 (and the corresponding inverse transform by the inverse transform processing unit 312, for example, in the video decoder 30), and a corresponding scaling factor for the forward transform by the transform processing unit 206, for example, in the encoder 20, may be specified accordingly.
[0065] 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, that are encoded or compressed, e.g., directly or via entropy coding unit 270, so that, for example, video decoder 30 may receive and use the transform parameters for decoding.
[0066] 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.
[0067] 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 a finer quantization, while a larger quantization step size corresponds to a coarser quantization. The applicable quantization steps 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), or vice versa. Quantization may include division by the quantization step size, while the corresponding and / or inverse dequantization by, for example, the inverse quantization unit 210 may include multiplication by the quantization step size. Some standards, for example, embodiments according to HEVC, may be configured to use a quantization parameter to determine the quantization step size. In general, the quantization step size may be calculated based on the quantization parameter using a fixed-point approximation of a formula that includes a division. Due to the scaling used in the fixed-point approximation of the formula for the quantization step size and the quantization parameter, additional scaling factors for quantization and dequantization may be introduced to restore the norm of the residual block, which may change. In one exemplary implementation, the scaling of the inverse transform and dequantization may be combined. Alternatively, customized quantization tables may be used, for example signaled in the bitstream from the encoder to the decoder. Quantization is a lossy operation, and the loss increases with increasing quantization step size.
[0068] Embodiments of video encoder 20 (respectively, quantization unit 208) may be configured to output a quantization parameter (QP), e.g., encoded directly or via entropy encoding unit 270, such that video decoder 30 may receive and apply the quantization parameter for decoding, for example.
[0069] 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 dequantized coefficients 211. The dequantized coefficients 211 are also referred to as dequantized residual coefficients 211, and may correspond to the transform coefficients 207, although they are typically not identical to the transform coefficients due to loss due to quantization.
[0070] 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, for example an inverse discrete cosine transform (DCT) or an inverse discrete sine transform (DST), 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.
[0071] Reconstruction The reconstruction unit 214 (e.g., an adder or summer 214) is configured to add the transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265, e.g., by adding sample values of the reconstructed residual block 213 and the prediction block 265 sample by sample, to obtain a reconstructed block 215 in the sample domain.
[0072] filtering The loop filter unit 220 (or "loop filter" 220 for short) is configured to filter the reconstructed 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 to, for example, smooth pixel transitions or 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, 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 realized as a post-loop filter. The filtered block 221 may also be referred to as a filtered reconstruction block 221.
[0073] An embodiment of video encoder 20 (respectively, loop filter unit 220) may be configured to output loop filter parameters (e.g., sample adaptive offset information), e.g., encoded directly or via entropy encoding unit 220, such that decoder 30 may receive and apply the same loop filter parameters or respective loop filters for decoding.
[0074] 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 video data by the video encoder 20. The 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 previously filtered blocks, e.g., previously reconstructed filtered blocks 221, of the same current picture or a different picture, e.g., a previously 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 also 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 other further processed versions of any of the reconstructed blocks or samples.
[0075] 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, e.g., original block 203 (current block 203 of current picture 17), and reconstructed picture data, e.g., filtered and / or unfiltered reconstructed samples or blocks of the same (current) picture and / or from one or more previously decoded pictures, e.g., 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, e.g., inter prediction or intra prediction, to obtain a prediction block 265 or predictor 265.
[0076] The mode selection unit 260 may be configured to determine or select a partition (including no partition) and a prediction mode (e.g., intra or inter prediction mode) for the current block 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.
[0077] 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 fit 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 indicate an overall "best", "minimum", "optimum", etc., but may indicate the satisfaction of a termination or selection criterion, such as a value above or below a threshold, or other constraint that potentially results in a "suboptimal selection" but reduces complexity and processing time.
[0078] 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., using quad-tree partitioning (QT), binary partitioning (BT) or triple-tree partitioning (TT) or any combination thereof repeatedly, and to perform prediction for each of the block partitions or sub-blocks, e.g., where the mode selection includes selecting a tree structure of the partitioned block 203, and a prediction mode is applied to each of the block partitions or sub-blocks.
[0079] The partitioning (eg, by partition unit 260) and prediction processes (by inter prediction unit 244 and intra prediction unit 254) performed by example video encoder 20 are described in further detail below.
[0080] 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, e.g., a root block at root tree level 0 (hierarchical level 0, depth 0) may be recursively partitioned, e.g., into two or more blocks at the next lower tree level, e.g., nodes at tree level 1 (hierarchical level 1, depth 1), which may again be partitioned into two or more blocks at the next lower tree level, e.g., tree level 2 (hierarchical level 2, depth 2), etc., until 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).
[0081] As mentioned above, the term "block" as used herein may be a portion of a picture, in particular a square or rectangular portion. For example, with reference to HEVC and VVC, a block may be or correspond to a coding tree unit (CTU), coding unit (CU), prediction unit (PU), and transform unit (TU) and / or corresponding block, such as a coding tree block (CTB), coding block (CB), transform block (TB), or prediction block (PB).
[0082] For example, a coding tree unit (CTU) may be or may include a CTB of luma samples, two corresponding CTBs of chroma samples for a picture with a three sample arrangement, or a CTB of samples for a monochrome picture or a picture coded using a syntax structure used for coding 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, whereby the division of the components into CTBs is a partition. A coding unit (CU) may be or may include a coding block of luma samples, two corresponding coding blocks of chroma samples for a picture with a three sample arrangement, or a coding block of samples for a monochrome picture or a picture coded using a syntax structure used for coding 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, whereby the division of the CTB into coding blocks is a partition.
[0083] For example, in an HEVC embodiment, a coding tree unit (CTU) may be partitioned into CUs by using a quadtree structure, denoted as a coding tree. The decision of whether to code a picture region using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the CU level. Each CU can be further partitioned into one, two or four PUs according to the PU partition type. Within one PU, the same prediction process is applied and related information is sent to the decoder for each PU. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be partitioned into transform units (TUs) according to another quadtree structure similar to the coding tree for the CU.
[0084] For example, in an embodiment according to the latest video coding standard currently under development called Versatile Video Coding (VVC), a combined quad-tree and binary tree (QTBT) partition is used, for example, to partition the coding blocks. In the QTBT block structure, the CUs can have either a square or a rectangular shape. For example, a coding tree unit (CTU) is first partitioned by a quad-tree. The quad-tree leaf nodes are further partitioned by a binary tree or a ternary (ternary) tree structure. The partition tree leaf nodes are called coding units (CUs), and their segmentation is used for prediction and transformation processes without further partitioning. This means that CUs, PUs and TUs have the same block size in the QTBT coding block structure. In parallel, multiple partitions, for example ternary tree partitions, may be used with the QTBT block structure.
[0085] In one example, mode selection unit 260 of video encoder 20 may be configured to perform any combination of the partitioning techniques described herein.
[0086] As described above, video encoder 20 may be configured to determine or select a best or optimal prediction mode from a (e.g., predetermined) set of prediction modes, which may include, for example, intra-prediction modes and / or inter-prediction modes.
[0087] Intra prediction The set of intra prediction modes may include 35 different intra prediction modes, e.g., non-directional modes such as DC (or average) mode and planar mode, or directional modes, e.g., as defined in HEVC, or may include 67 different intra prediction modes, e.g., non-directional modes such as DC (or average) mode and planar mode, or directional modes, e.g., as defined for VVC.
[0088] 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.
[0089] The intra prediction unit 254 (or generally the mode selection unit 260) may be further configured to output intra prediction parameters (or generally information indicating the selected intra prediction mode for the block) to the entropy encoding unit 270 in the form of a syntax element 226 for inclusion in the encoded picture data 21, so that, for example, the video decoder 30 may receive and use the prediction parameters for decoding.
[0090] Inter Prediction The set (or possibilities) of inter prediction modes depends on the available reference pictures (i.e., previous, at least partially decoded pictures, e.g., stored in DBP230) and other inter prediction parameters, such as whether the entire reference picture is used to search for the best matching reference block, or only a portion of the reference picture, e.g., a search window area around the area of the current block, is used, and / or, for example, whether pixel interpolation, e.g., half / semi-pel and / or quarter-pel interpolation, is applied.
[0091] In addition to the above prediction modes, skip mode and / or direct mode may also be applied.
[0092] The inter prediction unit 244 may include a motion estimation (ME) unit and a motion compensation (ME) unit (both not shown in FIG. 2). The motion estimation unit may be configured to receive or obtain a picture block 203 (current block 203 of current picture 17) and a decoded picture 231, or at least one or more previously reconstructed blocks, e.g., a reconstructed block of one or more other / different previous decoded pictures 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.
[0093] The encoder 20 may be configured to, for example, select a reference block from multiple reference blocks of the same or different pictures of 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).
[0094] 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 the motion / block vectors 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 find the prediction block to which the motion vector points in one of the reference picture lists.
[0095] 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. In addition to or as an alternative to slices and their respective syntax elements, tile groups and / or tiles and their respective syntax elements may be generated or used.
[0096] Entropy Coding The entropy coding unit 270 is configured to apply, for example, an entropy coding 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) coding or other entropy coding method or technique) to the quantized coefficients 209, the inter-prediction parameters, the intra-prediction parameters, the loop filter parameters and / or other syntax elements or to obtain coded picture data 21 which can be output via an output 272, for example in the form of a coded bitstream 21, so that, for example, the video decoder 30 may receive and use the parameters for decoding. Encoded bitstream 21 may be transmitted to video decoder 39 or may be stored in memory for later transmission or retrieval by video decoder 30 .
[0097] Other structural variations of the video encoder 20 can be used to encode the video stream. For example, a non-transform-based encoder 20 can directly quantize the residual signal for a particular block or frame, without the transform processing unit 206. In other implementations, the encoder 20 can have the quantization unit 208 and the inverse quantization unit 210 combined into a single unit.
[0098] 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 a decoded picture 331. The decoded picture data or bitstream includes information for decoding the coded picture data, e.g., data representing picture blocks of coded video slices (and / or tile groups or tiles) and associated syntax elements.
[0099] In the example of Figure 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, a mode application unit 360, 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 path that is generally inverse to the encoding path described with respect to video encoder 100 from Figure 2.
[0100] 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 may also be 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.
[0101] Entropy Decoding The entropy decoding unit 304 is configured to parse the bitstream 21 (or the coded picture data 21 in general) and, e.g., perform entropy decoding on the coded picture data 21 to obtain, e.g., quantized coefficients 309 and / or decoded coding parameters (not shown in FIG. 3), e.g., 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 provide 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. In addition to or as an alternative to slices and their respective syntax elements, tile groups and / or tiles and their respective syntax elements may be received and / or used.
[0102] inverse quantization Inverse quantization unit 310 may be configured to receive a quantization parameter (QP) (or generally, information regarding inverse quantization) and quantized coefficients from encoded picture data 21 (e.g., by parsing and / or decoding by entropy decoding unit 304), and apply inverse quantization to the decoded quantized coefficients 309 based on the quantization parameter to obtain dequantized coefficients 311, which may also be referred to as transform coefficients 311. The inverse quantization process may involve use of the quantization parameter determined by video encoder 20 for each video block in a video slice (or tile or group of tiles) to determine the degree of quantization, and thus the degree of inverse quantization to be applied.
[0103] 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 apply a transform to the dequantized coefficients 311 to obtain a 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 a transform to be applied to the dequantized coefficients 311.
[0104] Reconstruction The reconstruction unit 314 (e.g., an adder or summer 314) may be configured to add the reconstructed residual block 313 to the prediction block 365, e.g., by adding sample values of the reconstructed residual block 313 and sample values of the prediction block 365, to obtain a reconstructed block 315 in the sample domain.
[0105] 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 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 shown 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.
[0106] 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 as a reference picture for subsequent motion compensation for other pictures and / or for output to a respective display.
[0107] The decoder 30 is arranged to output the decoded pictures 331, for example via output 312, for presentation or viewing to a user.
[0108] 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 splitting or partition decision and prediction based on the partition and / or prediction parameters or respective information received from the coded picture data 21 (e.g. by parsing and / or decoding by the entropy decoding unit 304). The mode application 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.
[0109] When the video slice is coded as an intra coded (I) slice, intra prediction unit 354 of mode application 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 block decoded prior to the current picture. When the video picture is coded as an inter coded (i.e., B or P) slice, inter prediction unit 344 (e.g., a motion compensation unit) of mode application 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 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. Video decoder 30 may construct the reference frame lists, List 0 and List 1, using a default construction technique based on the reference pictures stored in DPB 330. The same or similar may apply to or with embodiments that use tile groups (e.g., video tile groups) and / or tiles (e.g., video tiles) in addition to or as an alternative to slices (e.g., video slices), e.g., video may be coded using I, P or B tile groups and / or tiles.
[0110] Mode application unit 360 is configured to determine prediction information for video blocks of the current video slice by parsing the motion vectors or related information and other syntax elements, and uses the prediction information to generate predictive blocks for the current video block being decoded. For example, mode application unit 360 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) used to code the video blocks of the video slice, an inter prediction slice type (e.g., B slice, P slice, or 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. The same or similar may apply to or with embodiments that use tile groups (e.g., video tile groups) and / or tiles (e.g., video tiles) in addition to or as an alternative to slices (e.g., video slices), e.g., video may be coded using I, P, or B tile groups and / or tiles.
[0111] An embodiment of video decoder 30 such as that shown in FIG. 3 may be configured to partition and / or decode a picture using slices (also referred to as video slices), where a picture may be partitioned into or decoded using one or more (typically non-overlapping) slices, each of which may include one or more blocks (e.g., CTUs).
[0112] An embodiment of video decoder 30 as shown in FIG. 3 may be configured to partition and / or decode a picture by using tile groups (also referred to as video tile groups) and / or tiles (also referred to as video tiles), and a picture may be partitioned into or decoded using one or more (typically non-overlapping) tile groups, each of which may include, for example, one or more blocks (e.g., CTUs) or one or more tiles, and each tile may be, for example, rectangular in shape and may include one or more blocks (e.g., CTUs), e.g., complete or partial blocks.
[0113] 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 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 an inverse transform processing unit 312. In other implementations, the video decoder 30 may have the inverse quantization unit 310 and the inverse transform processing unit 312 combined into a single unit.
[0114] 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.
[0115] 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 vectors in affine mode, sub-block motion vectors in affine, planar, ATMVP modes, temporal motion vectors, etc.). For example, the value of the motion vector is constrained to a predefined 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 exponential calculation. For example, if bitDepth is set equal to 16, the range is -32768 to 32767, and if bitDepth is set equal to 18, the range is -131072 to 131071. For example, the value of the derived motion vector (e.g., MV of 4x4 sub-blocks in one 8x8 block) is constrained such that the maximum difference between the integer parts of the MV of four 4x4 sub-blocks is less than or equal to N pixels, which is less than or equal to 1 pixel. Here, we provide two methods for constraining motion vectors according to bitDepth.
[0116] Method 1: Remove the overflow most significant bit (MSB) using the following operation: ux=(mvx+2bitDepth)%2bitDepth (1) mvx=(ux>=2bitDepth-1)?(ux-2bitDepth):ux (2) uy=(mvy+2bitDepth)%2bitDepth (3) mvy=(uy>=2bitDepth-1)?(uy-2bitDepth):uy (4) where mvx is the horizontal component of the motion vector of the image block or sub-block, mvy is the vertical component of the motion vector of the image block or sub-block, and ux and uy denote intermediate values.
[0117] For example, if the value of mvx is -32769, then after applying equations (1) and (2), the resulting value is 32767. In computer systems, decimal numbers are stored as two's complement numbers. The two's complement of -32769 is 1, 0111, 1111, 1111, 1111 (17 bits), in which case the MSB is discarded, so the resulting two's complement is 0111, 1111, 1111, 1111 (decimal number is 32767), which is the same as the output by applying equations (1) and (2). ux=(mvpx+mvdx+2bitDepth)%2bitDepth (5) mvx=(ux>=2bitDepth-1)?(ux-2bitDepth):ux (6) uy=(mvpy+mvdy+2bitDepth)%2bitDepth (7) mvy=(uy>=2bitDepth-1)?(uy-2bitDepth):uy (8) An operation may be applied between the sum of mvp and mvd as shown in equations (5) to (8).
[0118] Method 2: Remove the overflow MSB by clipping the value. vx=Clip3(-2bitDepth-1,2bitDepth-1-1,vx) vy=Clip3(-2bitDepth-1,2bitDepth-1-1,vy) where vx is the horizontal component of the motion vector of the image block or sub-block, vy is the vertical component of the motion vector of the image block or sub-block, x, y and z respectively correspond to the three input values of the MV clipping process, and the definition of the function Clip3 is as follows:
number
[0119] Video coding device 400 includes an ingress port 410 (or input port 410) and a receiver unit (Rx) 420 for receiving data, a processor, logic unit, or central processing unit (CPU, central processing unit) 430 for processing data, a transmitter unit (Tx) 440 and an egress port 450 (or output port 450) for transmitting data, and a memory 460 for storing data. Video coding device 400 may also include optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to the ingress port 410, the receiver unit 420, the transmitter unit 440, and the egress port 450 for the egress or ingress of optical or electrical signals.
[0120] The processor 430 is implemented by hardware and software. The processor 430 may be implemented as one or more CPU chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs. The processor 430 communicates with the ingress port 410, the receiver unit 420, the transmitter unit 440, the egress port 450, and the memory 460. The processor 430 includes a coding module 470. The coding module 470 implements the above disclosed embodiments. For example, the coding module 470 implements, processes, prepares, or provides various coding operations. Thus, what is included in the coding module 470 provides substantial improvements to the functionality of the video coding device 400 and results in the transformation of the video coding device 400 to a different state. Alternatively, the coding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
[0121] Memory 460 may include one or more disks, tape drives, and solid state drives, and may be used for storing programs when such programs are selected for execution and as an overflow data storage device for storing 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).
[0122] 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 according to an example embodiment.
[0123] 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, now existing or later developed, that can manipulate or process information. Although the disclosed implementations may be implemented with a single processor as shown, such as the processor 502, benefits in speed and efficiency may be achieved using more than one processor.
[0124] The memory 504 in the apparatus 500 may be a read only memory (ROM) device or a random access memory (RAM) device in an implementation. 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, which 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, which may further include a video coding application that performs the methods described herein.
[0125] The apparatus 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 a display with a touch-sensitive element operable to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512.
[0126] 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 coupled 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. Thus, device 500 may be implemented in a wide variety of configurations.
[0127] Directional intra prediction is a well-known technique that involves propagating the values of neighboring samples to a prediction block as specified by the prediction direction. Figure 6 shows the 93 prediction directions, with the dashed directions associated with the wide-angle mode that applies only to non-square blocks.
[0128] The direction may be specified by an increase in the offset between the positions of the predicted and reference samples. A larger magnitude of this increase corresponds to a larger distortion of the prediction direction. Table 1 specifies a mapping table between predModeIntra and the angle parameter intraPredAngle. This parameter is actually the increase of this offset row by row (or column) specified in 1 / 32 sample resolution. [Table 1] The wide angle mode may be identified by an absolute value of intraPredAngle greater than 32 (1 sample), which corresponds to a prediction direction tilt greater than 45 degrees.
[0129] Prediction samples ("predSamples") may be obtained from neighboring samples "p" as described below.
number
number
[0130] The chroma format determines the priority and subsampling of the chroma arrays, as shown in Figure 7. In monochrome sampling, there is only one sample array, nominally considered as the luma array.
[0131] In 4:2:0 sampling, each of the two chroma arrays has half the height and half the width of the luma array.
[0132] In 4:2:2 sampling, each of the two chroma arrays has the same height and half the width of the luma array.
[0133] This solution provides the same intra prediction direction for predicting chroma samples as specified for luma samples. However, when the chroma subsampling ratio in the horizontal direction is not equal to the chroma subsampling ratio in the vertical direction, the intra prediction direction for chroma is affected by the subsampling, resulting in a different mapping of intra prediction modes to the angles of the intra prediction direction. To compensate for this effect, it was proposed in the HM range extension to perform a mode mapping step, i.e., fetching from a dedicated lookup table (LUT) for the corresponding luma intra prediction mode (IntraPredModeY) and using the fetched value for the chroma intra prediction mode (IntraPredModeC). Table 4 gives this LUT for the set of modes specified in the HEVC standard. [Table 2] In the VVC specification draft 4 in the intra prediction process, the index of the intra prediction mode (intraPredMode) is modified according to the aspect ratio as follows:
number
[0134] When applying state-of-the-art techniques, as specified for the YUV 4:2:2 chroma format, the conditions for luma and chroma blocks are different due to horizontal chroma subsampling, so the intra prediction direction for a chroma sample may be opposite to the direction specified for the co-located luma sample.
[0135] An embodiment of the present invention proposes to consider the block aspect ratio and the chroma subsampling format together when using the luma intra prediction mode for chroma intra prediction.
[0136] The present invention provides several methods / embodiments to solve this problem. One method introduces a clipping operation to ensure that luma and chroma directional intra prediction use the same side of a block.
[0137] Another method involves modifying the wide-angle mapping process to ensure that the resulting chroma prediction modes have the same angle of the mapped direction, which, as explained above, are not the same ("(predModeIntra-67)" and "(predModeIntra+65)").
[0138] The third method involves adjusting the input parameters for the wide-angle mapping process. In particular, it is proposed to use the luma aspect ratio instead of the chroma aspect ratio. Furthermore, the intraPredAngle parameter is shifted left or right to compensate for the effect of chroma subsampling.
[0139] Alternatively, for the set of signaled luma intra prediction modes (in the range 0..66) given in the VVC specification draft, the following look-up table may be used (Table 5). [Table 3] One possible solution involves applying the LUT specified in Table 5 to the value of the luma intra prediction mode (IntraPredModeY) and using the obtained mode as the input intra prediction mode (IntraPredModeC) of the directional intra prediction process for the chroma blocks, which is -Wide-angle mapping for IntraPredModeC - Derivation of the reference sample sequence ("ref") and the intraPredAngle parameter - Obtaining the value of the predicted chroma sample using the reference sample ("ref") determined above and the intraPredAngle parameter Includes.
[0140] This technique works well when the luma intra prediction mode (IntraPredModeY) is not a wide-angle mode. As shown in Figure 9, predicted chroma and luma samples on the same spatial location "A" use reference samples that are also located at the same spatial location.
[0141] This method also works for the case shown in Figure 11 because it specifies a clipping of the output chroma intra prediction direction to a 45 degree angle (mode 2). This clipping is achieved by specifying the same value for a set of entries in the LUT (note the entry IntraPredModeY=2..8).
[0142] Another embodiment of the present invention involves a modification of the wide-angle mapping process for when the step "Wide-angle Mapping of IntraPredModeC" is performed.
[0143] The following description specifies further dependencies of the wide-angle mapping process regarding whether or not the mapped direction is performed for chroma intra prediction for chroma formats that specify different subsampling ratios in the horizontal and vertical directions (further indicated as "SubWidthC" and "SubHeightC", respectively).
number
[0144] - If IntraPredModeFinalY is not less than 34, the intraPredAngle parameter is redefined as follows:
[0145] intraPredAngle=intraPredAngle>>1 Otherwise, the intraPredAngle parameter is redefined as follows:
[0146] intraPredAngle=intraPredAngle<<1 -Get the value of the predicted chroma sample using the reference sample ("ref") determined above and the intraPredAngle parameter.
[0147] Alternatively, instead of the operation "intraPredAngle=intraPredAngle>>1", other division by two implementations may be used, such as "intraPredAngle=sign(intraPredAngle)*((Abs(intraPredAngle)+1)>>1)" or "intraPredAngle=intraPredAngle / 2".
[0148] A combination of both methods may also be applied.An embodiment includes the following steps for an input luma intra prediction mode (IntraPredModeY) that is directional (ie, not equal to DC and not equal to planar). -If IntraPredModeY is not less than 18 and not greater than 50, the following steps apply.
[0149] · Fetch from the LUT (e.g., as specified in Table 5) using the key value of the luma intra prediction mode (IntraPredModeY) to yield the chroma input intra prediction mode (IntraPredModeC).
[0150] - Wide-angle mapping of IntraPredModeC Derivation of the reference sample sequence ("ref") and the intraPredAngle parameter Obtain the value of the predicted chroma sample using the reference sample ("ref") determined above and the intraPredAngle parameter. -If not, perform the steps specified in the instructions under "Method 3".
[0151] The embodiments of the present invention may also be expressed in the following form:
number
number
number
[0152] According to embodiment 1200 (see FIG. 12A), when the value of idc_chrom_format indicates a 4:2:2 chroma format, a chroma intra prediction mode (intraPredModeC) 1203 is derived from a look up table (LUT) 1202 by using an initial intra prediction mode of a chroma component. The value of the initial intra prediction mode of a chroma component may be equal to the value of a luma intra prediction mode intraPredModeY. Table 2, Table 3, Table 8-2 or Table 8-3 gives an example between the value of the initial intra prediction mode of a chroma component intra_chroma_pred_mode[xCb][yCb] and the value of the luma intra prediction mode intraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2].
[0153] An example of the lookup table 1202 is Table 5 or Table 8-4. The lookup table includes 67 entries with indexes 0-66.
[0154] After performing wide-angle mapping 1204 on the chroma intra prediction mode 1203, a modified chroma intra prediction mode is obtained. A parameter intraPredAngle 1205 is obtained based on the modified chroma intra prediction mode. For example, by using the modified chroma intra prediction mode as predModeIntra, intraPredAngle 1205 is obtained from Table 1. Prediction samples of chroma components are obtained by performing chroma directional intra prediction 1206 based on the intraPredAngle parameter.
[0155] According to an embodiment 1210 (see FIG. 12B), a wide-angle mapping 1212 is performed on a luma intra prediction mode intraPredModeY 1211 to obtain a modified intraPredModeY. When the value of idc_chrom_format indicates a 4:2:2 chroma format, a chroma intra prediction mode (intraPredModeC) 1214 is derived from a look up table (LUT) 1213 by using the modified intraPredModeY. The look up table 1213 may have 95 entries with indexes 0 to 94.
[0156] The parameter intraPredAngle 1215 is obtained based on the chroma intra prediction mode 1214. For example, by using the chroma intra prediction mode as predModeIntra, the intraPredAngle 1215 is obtained from Table 1. The prediction samples of the chroma components are obtained by performing chroma directional intra prediction 1216 based on the intraPredAngle parameter.
[0157] The embodiment 1300 includes the following steps. In step 1301, the device obtains a value of a luma intra prediction mode (intraPredModeY). For example, the device obtains the value of intraPredModeY by parsing a bitstream. In step 1302, the device obtains an initial intra prediction mode (IntraPredModeC) of a chroma component based on the value of the luma intra prediction mode (intraPredModeY), for example, based on Table 2, Table 3, Table 8-2, or Table 8-3. In step 1303, the device derives a chroma intra prediction mode (intraPredModeC) from a look up table (LUT) by using the initial intra prediction mode (intraPredModeC) of the chroma component when the chroma format is 4:2:2. In the example of Table 8-4, the initial intra prediction mode of the chroma component is mode X, and the chroma intra prediction mode (intraPredModeC) is mode Y. This means that the original intraPredModeC is adjusted to obtain intraPredModeC.
[0158] Step 1304 includes performing a wide-angle mapping on the chroma intra-prediction mode (intraPredModeC) to obtain a modified intraPredModeC. As noted above, the wide-angle mapping includes, for non-square blocks (nW not equal to nH), the following:
[0159] If all of the following conditions are true, then wideAngle is set equal to 1 and predModeIntra is set equal to (predModeIntra+65):
[0160] nW is greater than nH predModeIntra is 2 or greater predModeIntra is less than (whRatio>1)?(8+2*whRatio):8 Otherwise, if all of the following conditions are true, then wideAngle is set equal to 1, and predModeIntra is set equal to (predModeIntra-67):
[0161] nH is greater than nW predModeIntra is 66 or less predModeIntra is greater than (whRatio>1)?(60-2*whRatio):60 Step 1305 includes obtaining an intraPredAngle parameter for the chroma component based on the modified intraPredModeC. For example, by using the modified intraPredModeC as predModeIntra, the intraPredAngle 1215 is obtained from Table 1. Step 1306 includes obtaining a predicted sample for the chroma component based on the intraPredAngle parameter.
[0162] Detailed information about this embodiment 1300 is provided in the above embodiments.
[0163] Figure 14 shows an embodiment of a device 1400. The device 1400 may be the video decoder 30 of Figure 1A or the decoder 30 of Figure 3, or the video encoder 20 of Figure 1A or the encoder 20 of Figure 2. The device 1400 may be used to implement the embodiments 1200, 1210, 1300 and the other embodiments described above.
[0164] The device for directional intra prediction for a chroma component of a picture includes an obtaining unit 1401, a derivation unit 1402, and a mapping unit 1403.
[0165] The obtaining unit 1401 is configured to obtain an initial intra-prediction mode of a chroma component. The derivation unit 1402 is configured to derive a chroma intra-prediction mode (intraPredModeC) from a look up table (LUT) by using the initial intra-prediction mode of the chroma component, where the chroma component has different subsampling ratios in the horizontal and vertical directions. The derivation unit 1402 can be used to derive a chroma intra-prediction mode IntraPredModeC[xCb][yCb] by using intra_chroma_pred_mode[xCb][yCb] and IntraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2] as specified in Table 8-2 and Table 8-3.
[0166] The mapping unit 1403 is configured to perform wide-angle mapping on a chroma intra-prediction mode (intraPredModeC) to obtain a modified intraPredModeC. As an example, the mapping unit 1403 performs wide-angle mapping on an original intra-prediction mode (predModeIntra) to obtain a modified predModeIntra, where the value of the original predModeIntra is equal to the value of the chroma intra-prediction mode (intraPredModeC).
[0167] The obtaining unit 1401 is further configured to obtain, for example from a mapping table, an intraPredAngle parameter for the chroma component based on the modified intraPredModeC, and obtain a predicted sample of the chroma component based on the intraPredAngle parameter.
[0168] The obtaining unit 1401 may also be configured to obtain a value of a luma intra prediction mode (intraPredModeY) from the bitstream, and then obtain an initial intra prediction mode of a chroma component based on the value of the luma intra prediction mode (intraPredModeY).
[0169] The present disclosure provides the following set of aspects.
[0170] Embodiment 1. A method of directional intra prediction for chroma components of a picture having different subsampling ratios in the horizontal and vertical directions, comprising: - obtaining an array of reference samples ("ref") for a chroma component and an intraPredAngle parameter, the derivation of the intraPredAngle parameter being adjusted according to the difference between the chroma component subsampling ratios in the horizontal and vertical directions; - obtaining predicted samples for the chroma components using an array of reference samples ("ref") for the chroma components and the intraPredAngle parameter; The method includes:
[0171] Embodiment 2. The method comprises: 2. The method of embodiment 1, further comprising the step of obtaining a value of a luma intra prediction mode (intraPredModeY) from the bitstream.
[0172] Embodiment 3. The method of embodiment 2, wherein the intraPredAngle parameter for the chroma components is obtained from a chroma intra prediction mode (intraPredModeC) that is derived from a value of a luma intra prediction mode (intraPredModeY).
[0173] Embodiment 4. The method of embodiment 3, wherein the derivation of the chroma intra prediction mode (intraPredModeC) is performed by fetching from the LUT.
[0174] Embodiment 5. The method according to embodiment 3 or 4, wherein a clipping operation is performed if the obtained chroma intra prediction mode (intraPredModeC) is wide-angle.
[0175] Embodiment 6. The method of embodiment 5, wherein the chroma intra prediction mode is set to the closest non-wide-angle mode if intraPredModeC satisfies a mapping condition of the wide-angle mapping process.
[0176] Embodiment 7. A method according to any one of embodiments 1 to 6, wherein wide-angle mapping is performed for the luma intra-prediction mode (intraPredModeY) and the resulting intra-prediction mode is used to obtain the value of the intraPredAngle parameter.
[0177] Embodiment 8. The method according to embodiment 7, in which the value of the intraPredAngle parameter is adjusted according to the chroma format and used to obtain predicted samples of the chroma components.
[0178] Embodiment 9. The method according to embodiment 7 or 8, wherein the chroma format is defined as YUV4:2:2.
[0179] Embodiment 10. A method according to any one of embodiments 7 to 9, wherein wide-angle mapping of (IntraPredModeY) using the aspect ratio of the luma block results in IntraPredModeFinalY.
[0180] Embodiment 11. When IntraPredModeFinalY is not less than 34, the intraPredAngle parameter is defined as follows: intraPredAngle=intraPredAngle>>1; 11. The method of claim 10, wherein if not, the intraPredAngle parameter is redefined as intraPredAngle=intraPredAngle<<1.
[0181] Embodiment 12. A method according to any one of embodiments 1 to 11, wherein the intraPredAngle parameter is shifted left or right to compensate for the effect of chroma subsampling.
[0182] Embodiment 13. A method according to any one of embodiments 1 to 12, wherein the chroma intra-prediction mode IntraPredModeC[xCb][yCb] is derived using intra_chroma_pred_mode[xCb][yCb] and IntraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2] as specified in Tables 8-2 and 8-3.
[0183] Embodiment 14. The method according to any one of embodiments 1 to 12, wherein the chrominance intra-prediction mode IntraPredModeC[xCb][yCb] is derived using the process map 422.
[0184] Embodiment 15. For non-square blocks (nW is not equal to nH), the intra prediction mode predModeIntra is If all of the following conditions are true, wideAngle is set equal to 1 and predModeIntra is set equal to (predModeIntra + 65) nW is greater than nH predModeIntra is 2 or greater predModeIntra is less than (whRatio>1)?(8+2*whRatio):8 Otherwise, if all of the following conditions are true, then wideAngle is set equal to 1 and predModeIntra is set equal to (predModeIntra-67): nH is greater than nW predModeIntra is 66 or less predModeIntra is greater than (whRatio>1)?(60-2*whRatio):60 The method according to any one of embodiments 1 to 14, wherein the method is obtained as follows:
[0185] The chroma mode derivation process according to the proposed method enjoys beneficial effects compared to conventional approaches. One of these effects is that the embodiments of the present invention provide a minimum number of entries in the LUT used to determine the chroma intra prediction mode from the initial luma intra prediction mode. This is achieved by the order of steps performed, i.e., chrominance to luma mode intra prediction mode mapping being performed before wide-angle mapping. When applying the chroma-to-luma LUT without wide-angle mapping, it is necessary to specify mapping for square block shapes only, thus limiting the required LUT entries to 67.
[0186] Besides, in the proposed embodiment of the present invention, chrominance mode derivation is not required to obtain the shape of the co-located luminance block. In the conventional method, the mapping of the luminance intra-prediction direction, which is the result of the wide-angle mapping process, needs to take into account the aspect ratio of the luminance block as well. The reason for this dependency is that the wide-angle mapping process requires information about the aspect ratio of the block to determine the value of the mapped intra-prediction mode. In the present embodiment, the wide-angle mapping is not performed on the input luminance intra-prediction mode, and therefore the input luminance intra-prediction mode can be obtained by parsing the bitstream. Since there is no need to deal with the partition structure of the luminance component, the decoding latency is improved when the proposed order of steps is used.
[0187] The following is a description of the application of the encoding and decoding methods as illustrated in the above embodiments and the systems using them.
[0188] 15 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 over a communication link 3104. The communication link may include the above-mentioned communication channel 13. 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.
[0189] 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 deliver the data to a streaming server (not shown in the drawing), 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 the source device 12 as described above. When the data includes video, the video encoder 20 included in the capture device 3102 may actually perform the video encoding process. When the data includes audio (i.e., voice), the audio encoder included in the capture device 3102 may actually perform the audio encoding process. In some practical scenarios, the capture device 3102 delivers the encoded video and audio data by multiplexing them together. In other practical scenarios, for example, in a video conferencing 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 .
[0190] In the content supply system 3100, the terminal device 310 receives and plays the encoded data. The terminal device 3106 may be a device having 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, that can decode the encoded data. For example, the terminal device 3106 may include the 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.
[0191] In a terminal device having its own display, such as a smartphone or pad 3108, a computer or laptop 3110, a network video recorder (NVR) / digital video decoder (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 a terminal device without a display, such as a STB 3116, a video conferencing system 3118 or a video surveillance system 3120, an external display 3126 is brought into contact with it to receive and display the decoded data.
[0192] 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 embodiment.
[0193] 16 is a diagram showing an example structure of a terminal device 3106. After the terminal device 3106 receives a stream from the capture device 3102, the protocol processing 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.
[0194] After the protocol processing 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 conference 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.
[0195] Through the demultiplexing process, a video elementary stream (ES), an audio ES, and optional subtitles are generated. A video decoder 3206 including 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 the data to a synchronization unit 3212. An audio decoder 3208 decodes the audio ES to generate audio frames, and supplies the data to a synchronization unit 3212. Alternatively, the video frames may be stored in a buffer (not shown in FIG. Y) before being supplied to the synchronization unit 3212. Similarly, the audio frames may be stored in a buffer (not shown in FIG. Y) before being supplied to the synchronization unit 3212.
[0196] 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. The information may be coded in a syntax using timestamps for the presentation of the coded audio and visual data and timestamps for the delivery of the data stream itself.
[0197] If subtitles are included in the stream, the subtitle decoder 3210 decodes the subtitles, synchronizes them with the video and audio frames, and provides the video / audio / subtitles to the video / audio / subtitle display 3216 .
[0198] The present invention is not limited to the above system, and either the picture encoding device or the picture decoding device in the above embodiments can be embedded in other systems, for example a vehicle system.
[0199] Mathematical Operators The mathematical operators used in this application are similar to those used in the C programming language. However, the results of integer division and arithmetic shift operations are more precisely defined, and additional operators such as exponentiation and division of real values are defined. Numbering and counting conventions generally start from 0, e.g., "first" is equivalent to 0th, "second" is equivalent to 1st, etc.
[0200] Logical Operators The following logical operators are defined as follows:
number
[0201] x&&y The Boolean logic "product" of x and y x||y The Boolean logic "union" of x and y Boolean logic "negation" x?y:z Evaluates to the value of y if x is true or not equal to 0, otherwise evaluates to the value of z. Relational Operators The following relational operators are defined as follows:
[0202] > Greater than >= Greater than or equal to < Less than <= Less than or equal == Equal != Not equal When a relational operator is applied to a syntax element or variable that has been assigned the value "na" (not applicable), the value "na" is treated as a separate value of the syntax element or variable. The value "na" is considered not equal to any other value.
[0203] Bitwise Operators The following bitwise operators are defined as follows:
[0204] & Bitwise "product". When operating on integer arguments, the operation is performed on the two's complement representation of the integer values. When operating on a binary argument that contains fewer bits than the other argument, the shorter argument is extended by adding higher-order bits equal to 0.
[0205] | Bitwise "sum". When operating on integer arguments, the operation is performed on the two's complement representation of the integer values. When operating on a binary argument that contains fewer bits than the other argument, the shorter argument is extended by adding higher-order bits equal to 0.
[0206] ^ Bitwise "exclusive sum". When operating on integer arguments, the operation is performed on the two's complement representation of the integer values. When operating on a binary argument that contains fewer bits than the other argument, the shorter argument is extended by adding higher-order bits equal to 0.
[0207] x>>y Arithmetic right shift of the two's complement integer representation of x by y binary digits. This function is defined only for non-negative integer values of y. The bit shifted into the most significant bit (MSB) as a result of the right shift has the same value as the MSB of x before the shift operation.
[0208] x<<y Arithmetic left shift of the two's complement integer representation of x by y binary digits. This function is defined only for non-negative integer values of y. The bit shifted into the least significant bit (LSB) as a result of the left shift has a value equal to 0.
[0209] Assignment operator The following assignment operators are defined as follows.
[0210] = Assignment operator ++ Increment. That is, x++ is equal to x=x+1. When used in an array index, it is evaluated to the value of the variable before the increment operation.
[0211] -- Decrement, i.e. x-- is equal to x=x-1. When used in an array index, evaluates to the value of the variable before the decrement operation.
[0212] += increment by the specified amount, i.e. x+=3 is equal to x=x+3 and x+=(-3) is equal to x=x+(-3).
[0213] -= Decrement by the specified amount, i.e. x-=3 is equal to x=x-3 and x-=(-3) is equal to x=x-(-3).
[0214] Range Notation The following notation is used to specify ranges of values:
[0215] x=y..zx takes an integer value greater than or equal to y and less than or equal to z, where x, y, and z are integers and z is greater than y.
[0216] Mathematical Functions The following mathematical functions are defined:
number
[0217] Atan(x) The trigonometric arctangent function, operated on the argument x, has an output value in radians in the range -π÷2 to π÷2 inclusive.
number
[0218] Clip1Y(x)=Clip3(0,(1< <BitDepthY)-1,x) Clip1C(x)=Clip3(0,(1< <BitDepthC)-1,x)
number
[0219] Floor(x) The largest integer less than or equal to x.
number
[0220] Log2(x) The base 2 logarithm of x.
[0221] Log10(x) The base 10 logarithm of x.
number
number
number
[0222] Sqrt(x) = √x Swap(x,y)=(y,x) Tan(x) The trigonometric tangent function for the argument x in radians.
[0223] Operation precedence When the precedence of an expression is not explicitly indicated through the use of parentheses, the following rules apply:
[0224] -An operation with a higher priority is evaluated before any operation with a lower priority.
[0225] -Operations of equal precedence are evaluated sequentially from left to right.
[0226] The following table specifies the priority of operations from highest to lowest, with a higher position in the table indicating a higher priority.
[0227] For operators that are also used in the C programming language, the precedence used herein is the same as the precedence used in the C programming language. [Table 4] Text description of logical operations In text, the format is: if(condition 0) Statement 0 else(condition 1) Statement 1 ... else / *Notes regarding remaining conditions* / Statement n A statement of logical operation as mathematically described in may be written in the following manner:
[0228] ...as / ...the following applies: -If condition 0, then statement 0 - Else, if condition 1, then statement 1 -... - otherwise (reference note for remaining conditions), statement n Each "if..., else, if..., otherwise" statement in the text is introduced by "as" or "if... holds" immediately followed by "if...". The final condition of an "if..., else, if..., otherwise" is always "otherwise". Alternating "if..., else, if..., otherwise" statements can be identified by matching the "as" or "if... holds" that ends with "otherwise".
[0229] In the text, the following forms: if(condition0a&&condition0b) Statement 0 else if(condition 1a||condition 1b) Statement 1 ... else Statement n A statement of logical operation as mathematically described in may be written in the following manner:
[0230] ...as / ...the following applies: -Statement 0 if all of the following conditions are true: -Condition 0a -condition 0b - Otherwise, if one or more of the following conditions are true, then statement 1: -Condition 1a -Condition 1b -… - if not, statement n In the text, the following forms: if(condition 0) Statement 0 if(condition1) Statement 1 A statement of logical operation as mathematically described in may be written in the following manner:
[0231] If condition 0, then statement 0 If condition 1 is true, then statement 1 Although embodiments of the present invention have been described primarily in the context of video coding, it should be noted that embodiments of coding system 10, encoder 20 and decoder 30 (and correspondingly system 10), as well as other embodiments described herein, may also be configured for still image picture processing or coding, i.e., processing or coding of individual pictures independent of any previous or subsequent pictures, as in video coding. In general, when picture processing coding is limited to a single picture 17, only inter prediction units 244 (encoder) and 344 (decoder) may not be 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 picture processing, e.g., residual calculation 204 / 304, transform 206, quantization 208, inverse quantization 210 / 310, (inverse) transform 212 / 312, partitioning 262 / 362, intra prediction 254 / 354, and / or loop filtering 220, 320, as well as entropy coding 270 and entropy decoding 304.
[0232] For example, embodiments of the encoder 20 and the decoder 30, and the functions described herein with respect to 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. A 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, for example, any medium that facilitates the transfer of a computer program from one place to another according to a communication protocol. Thus, a 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. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementation of the techniques described in this disclosure. A computer program product may include a computer-readable medium.
[0233] 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 that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. 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 media. 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 disc, 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.
[0234] 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. Thus, the term "processor" as used herein may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. Furthermore, in some aspects, the functionality described herein may be provided in dedicated hardware and / or software modules configured for encoding and decoding or incorporated into a combined codec. Additionally, the techniques may be fully implemented in one or more circuit or logic elements.
[0235] The techniques of the present disclosure may be implemented in a wide variety of devices or apparatuses, including a wireless handset, an integrated circuit (IC) or a set of ICs (e.g., a chipset). Various components, modules or units are described in this disclosure to highlight functional aspects of devices configured to perform the techniques of the disclosure, but do not necessarily require implementation by different hardware units. Rather, as noted above, the various units may be combined with a codec hardware unit in combination with appropriate software and / or firmware, or may be provided by a collection of interoperable hardware units including one or more processors as described above.
Claims
1. 1. A method of directional intra prediction for a chroma component of a picture, comprising: Obtaining an intra-prediction mode of the chroma component based on a value of a luma intra-prediction mode (intraPredModeY) by using a first look-up table (LUT); deriving a chromintra prediction mode (intraPredModeC) from a second LUT by using the intra prediction modes of the chrominance components, the chrominance components having different subsampling ratios in horizontal and vertical directions; performing wide-angle mapping on the chroma intra-prediction mode (intraPredModeC) to obtain a modified intraPredModeC; obtaining an intraPredAngle parameter for the chroma component based on the modified intraPredModeC; obtaining predicted samples of the chroma components based on the intraPredAngle parameter; encoding the value of the luma intra prediction mode (intraPredModeY) into a bitstream; The method includes:
2. performing wide-angle mapping on the chrominance intra-prediction mode (intraPredModeC) to obtain the modified intraPredModeC; 2. The method of claim 1, comprising: performing a wide-angle mapping on an original intra-prediction mode (predModeIntra) to obtain a modified predModeIntra, wherein the value of the original predModeIntra is equal to the value of the chroma intra-prediction mode (intraPredModeC).
3. The step of obtaining the intraPredAngle parameter based on the modified intraPredModeC includes: The method of claim 2 , comprising obtaining the intraPredAngle parameter for the chroma component from a mapping table by using the modified predModeIntra.
4. 4. The method of claim 1, wherein a wide-angle mapping is performed for the luma intra-prediction mode (intraPredModeY) and the resulting intra-prediction mode is used to obtain the value of the intraPredAngle parameter.
5. The method of claim 4 , wherein the wide angle mapping is performed for the luma intra prediction mode (intraPredModeY) by using an aspect ratio of a luma component, resulting in IntraPredModeFinalY.
6. When IntraPredModeFinalY is not less than 34, the intraPredAngle parameter intraPredAngle=intraPredAngle>>1 It is defined as Otherwise, the intraPredAngle parameter is intraPredAngle=intraPredAngle<<1 The method of claim 5, wherein:
7. 7. The method of claim 1, wherein the intraPredAngle parameter is shifted left or right to compensate for the effects of chroma subsampling.
8. the intra prediction mode of the chroma components is obtained by using intra_chroma_pred_mode[xCb][yCb] and IntraPredModeY[xCb+cbWidth / 2][yCb+cbHeight / 2] as specified in the first LUT; When sps_cclm_enabled_flag is equal to 0, the first LUT is [Table 1] Including, When sps_cclm_enabled_flag is equal to 1, the first LUT: [Table 2] The method of any one of claims 1 to 7, comprising:
9. 9. The method of claim 1, wherein the second LUT has 67 entries, and the indices for the second LUT are 0 to 66, each index relating to an angle of an intra-prediction direction.
10. The mapping between the index and the corresponding angle is: [Table 3] The method of claim 9, wherein
11. The mapping between the index and the corresponding angular parameter is: [Table 4] The above is shown in The method of claim 9 , wherein predModeIntra represents the index and intraPredAngle represents the angle parameter of the corresponding index.
12. The second LUT is [Table 5] 12. The method of claim 1, further comprising:
13. 13. The method according to claim 1, wherein the chroma format of the chroma components is defined as YUV4:2:
2.
14. An encoder comprising processing circuitry for carrying out a method according to any one of claims 1 to 13.
15. A computer program causing a computer to carry out a method according to any one of claims 1 to 13.
16. 1. An encoder comprising: one or more processors; a non-transitory computer-readable storage medium coupled to the processor and storing programming for execution by the processor; Including, An encoder, wherein the programming, when executed by the processor, configures the encoder to perform a method according to any one of claims 1 to 13.
Citation Information
Patent Citations
Image encoding apparatus, image decoding apparatus, image encoding method, and image decoding method
JP2015177343A
Generating subpixel values for different color sampling formats
WO2013160699A1
Image encoding device, image encoding method, image encoding program, image decoding device, image decoding method, and image decoding program
WO2014156046A1
Entropy decoding apparatus, entropy encoding device, image decoding apparatus and image encoding apparatus
WO2018070107A1
