Method and apparatus for interpolation filtering for predictive coding
The use of analytically calculated filter coefficients for a sub-pixel 4-tap interpolation filter improves video coding efficiency and reduces memory demands, addressing the challenge of high-quality video compression in limited resources.
Patent Information
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2025-01-07
- Publication Date
- 2026-03-10
AI Technical Summary
Existing video coding technologies face challenges in achieving efficient compression ratios with minimal sacrifice in picture quality, particularly in scenarios with limited network bandwidth and memory resources.
Implementing a sub-pixel 4-tap interpolation filter with analytically calculated filter coefficients for intra and inter prediction processing, eliminating the need for look-up tables and reducing memory access time.
Enhances prediction efficiency, reduces latency, and allows for low-cost implementation by calculating filter coefficients on the fly, ensuring consistent filter responses and minimizing artifacts.
Smart Images

Figure 0007827896000054 
Figure 0007827896000055 
Figure 0007827896000056
Abstract
Description
[Technical Field]
[0001] FIELD Embodiments of the present application (disclosure) relate generally to the field of picture processing, and more particularly to image and / or video coding and decoding, and in particular to methods and apparatus for intra / inter prediction. [Background technology]
[0002] Video coding (video encoding and video 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 interactive applications such as video chat and video conferencing, DVD and Blu-ray® discs, video content collection and editing systems, and camcorders for security applications.
[0003] The amount of video data required to render even a relatively short video can be considerable, which can pose challenges when the data is to be streamed or otherwise communicated over communication networks with limited bandwidth capacity. Therefore, video data is typically compressed before being communicated over modern telecommunications networks. Because memory resources may be limited, video size can also be an issue when the video is stored on a storage device. Video compression devices often use software and / or hardware at the source to code video data before transmission or storage, thereby reducing the amount of data needed to represent a digital video image. The compressed data is then received at the destination by a video decompression device, which decodes the video data. With limited network resources and an ever-increasing demand for higher video quality, improved compression and decompression techniques that improve compression ratios with little sacrifice in picture quality are desirable. Summary of the Invention [Means for solving the problem]
[0004] Embodiments of the present application provide apparatuses and methods for encoding and decoding according to the independent and dependent claims.
[0005] These and other objects are achieved by the subject matter of the independent and dependent claims. Further implementations are evident from the dependent claims, the description and the figures.
[0006] Embodiments of the invention are defined by the features of the independent claims, further advantageous implementations of the embodiments are defined by the features of the dependent claims.
[0007] According to one aspect of the present disclosure, there is provided a method for intra or inter prediction processing of a video frame, the method comprising: obtaining a reference sample; obtaining a value of a sub-pixel offset; and filtering the reference sample using a sub-pixel 4-tap interpolation filter to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are:
[0008]
number
[0009] where p is the fractional part of the value of the sub-pixel offset, and c0, c1, c2, and c3 are the filter coefficients of the sub-pixel 4-tap interpolation filter.
[0010] In one example implementation, the reference samples may be referred to as ref[x], which corresponds to an array of reference samples, ref[x]=p[-1-refIdx+x][-1-refIdx] (where x=0..nTbW+refIdx+1) where "p" refers to the xy two-dimensional array p[x][y] containing the sample values. The number of reference samples used may be at least 1. In another example, the number of reference samples may be 4.
[0011] In one exemplary implementation, the obtained sub-pixel offset values are: (y+1+refIdx)*intraPredAngle and "IntraPredAngle" is the value of the intra prediction angle.
[0012] In one exemplary implementation, the predicted sample values "predSamples[x][y]" are
[0013]
number
[0014] where fT[i] refers to filter coefficients. These coefficients may be luma or chroma filter coefficients for inter prediction, referred to as fG and fC, respectively.
[0015] The choice of whether the filter coefficients are luma or chroma depends on, for example, fT[j]=filterFlag ? fG[iFact][j] : fC[iFact][j] This may be implemented by using and setting the flag "filterFlag", such as iFact=((y+1+refIdx)*intraPredAngle)&31 is.
[0016] The value "31" refers to the fractional part of the sub-pixel offset value and may take other values different from "31." The values of the filter coefficients fG (luma) and / or fC (chroma) may be obtained analytically on the fly using the above analytical expressions for the filter coefficients of a 4-tap filter. Thus, the filter coefficients are defined according to the sub-pixel offset value.
[0017] Thus, the filter coefficients are obtained without accessing their respective values from the LUT, but rather by calculation.
[0018] Alternatively, the filter coefficients may be calculated using the above formulas and the values may be stored in a LUT.
[0019] According to one aspect of the present disclosure, the filter coefficients of the sub-pixel 4-tap interpolation filter are set in the following table:
[0020] [Table 1A]
[0021] [Table 1B]
[0022] It is specified in.
[0023] According to one aspect of the present disclosure, there is provided a method for intra or inter prediction processing of a video frame, the method comprising the steps of obtaining a reference sample; obtaining a value of a sub-pixel offset; and filtering the reference sample using a sub-pixel 4-tap interpolation filter to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are as follows:
[0024] [Table 2]
[0025] where p is the fractional part of the sub-pixel offset value, and c0, c1, c2, and c3 are filter coefficients.
[0026] In one example implementation, the values of the filter coefficients may be stored in a LUT, which means that the values of each of the filter coefficients will be fetched from the LUT for sub-pixel interpolation filtering.
[0027] FIG. 23 shows a flowchart of the intra / inter prediction process. In step 2301, a reference sample is obtained. The reference sample may include one or more reference samples. In step 2302, a sub-pixel offset value is then obtained. In step 2303, the reference sample is then filtered using the filter coefficients {c i}, where i=0,...3. This is called a 4-tap filter and / or a 4-point filter.
[0028] The filter coefficients may be obtained from an analytical expression of the sub-pixel offset value with a given fractional part p. The filter coefficients may also be obtained from a LUT with reference to the p value.
[0029] According to one aspect of the present disclosure, the bits of p are set to 0.
[0030] According to one aspect of the present disclosure, p is incremented by 1, and then the lower bits of the incremented p are set to 0 before it is used to obtain the filter coefficients.
[0031] According to one aspect of the present disclosure, obtaining the filter coefficients includes:
[0032]
number
[0033] This involves calculating the filter coefficients according to the previous filter coefficients c i to filter coefficient c i+1This may further reduce the time to calculate the filter coefficients.
[0034] According to one aspect of the present disclosure, there is provided a method of video coding, the method comprising intra-prediction processing of blocks of a video frame, the method comprising filtering reference samples of the video frame using a sub-pixel 4-tap interpolation filter, the sub-pixel 4-tap interpolation filter being a combination of filters, and filter coefficients of at least one of the filters being:
[0035]
number
[0036] where p is the fractional sample position of the sub-pixel offset, and c0, c1, c2, and c3 are filter coefficients.
[0037] A flowchart of video coding is shown in Figure 24. In step 2401, an intra prediction process is performed by filtering the reference samples of a block using a sub-pixel 4-tap interpolation filter.
[0038] According to one aspect of the present disclosure, the sub-pixel 4-tap interpolation filter is a smoothing filter that is a parallel combination of two phase-dependent linear filters and a low-pass filter.
[0039] According to one aspect of the present disclosure, the sub-pixel 4-tap interpolation filter is a sharpening filter that is a parallel combination of one phase-dependent linear filter and an intensity-varying high-pass filter.
[0040] According to one aspect of the present disclosure, the intensity-varying high-pass filter is a phase-independent high-pass finite impulse response FIR filter, the output of which is multiplied by a phase-dependent intensity parameter.
[0041] According to any one of the previous aspects of the present disclosure, the lower bits of p are set to 0.
[0042] According to one aspect of the present disclosure, p is incremented by 1, and then the lower bits of the incremented value are set to 0 before this value is used to derive the interpolation filter coefficients.
[0043] According to one aspect of the present disclosure, a clipping operation is performed on the output of the intensity variation high pass filter.
[0044] According to an aspect of the present disclosure, there is provided an apparatus for intra or inter prediction processing of a video frame, the apparatus including: a reference sample obtaining unit configured to obtain a reference sample; a sub-pixel offset value obtaining unit configured to obtain a value of a sub-pixel offset; and a sub-pixel 4-tap interpolation filter configured to filter the reference sample to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are:
[0045]
number
[0046] where p is the fractional part of the value of the sub-pixel offset, and c0, c1, c2, and c3 are the filter coefficients of the sub-pixel 4-tap interpolation filter.
[0047] According to one aspect of the present disclosure, the filter coefficients of the sub-pixel 4-tap interpolation filter are set in the following table:
[0048] [Table 3A]
[0049] [Table 3B]
[0050] It is specified in.
[0051] According to an aspect of the present disclosure, there is provided an apparatus for intra or inter prediction processing of a video frame, the apparatus comprising: a reference sample obtaining unit configured to obtain a reference sample; a sub-pixel offset value obtaining unit configured to obtain a value of a sub-pixel offset; and a sub-pixel 4-tap interpolation filter configured to filter the reference sample to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are as follows, i.e.
[0052] [Table 4]
[0053] where p is the fractional part of the sub-pixel offset value, and c0, c1, c2, and c3 are filter coefficients.
[0054] FIG. 25 shows a schematic diagram of an intra / inter processing module 2500, which includes a reference sample obtaining unit 2510, a sub-pixel offset value obtaining unit 2520, and a sub-pixel interpolation filter 2530.
[0055] According to one aspect of the present disclosure, there is provided an apparatus for video coding, the apparatus comprising: an intra-prediction processing unit configured to intra-predict blocks of a video frame; and a sub-pixel 4-tap interpolation filter configured to filter reference samples of the video frame, the sub-pixel 4-tap interpolation filter being a combination of filters, and filter coefficients of at least one of the filters being:
[0056]
number
[0057] where p is the fractional sample position of the sub-pixel offset, and c0, c1, c2, and c3 are filter coefficients.
[0058] FIG. 26 shows a schematic diagram of a video coding module 2600, comprising an intra-prediction processing unit 2610 and a sub-pixel interpolation filter 2620.
[0059] According to one aspect of the present disclosure, there is provided an encoder (20) comprising processing circuitry for performing a method according to any one of the previous aspects of the present disclosure.
[0060] According to one aspect of the present disclosure, there is provided a decoder (30) comprising processing circuitry for performing a method according to any one of the previous aspects of the present disclosure.
[0061] According to one aspect of the present disclosure, there is provided a computer program product comprising program code for performing a method according to any one of the previous aspects of the present disclosure.
[0062] According to one aspect of the present disclosure, there is provided a decoder comprising one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the decoder to perform a method according to any one of the previous aspects of the present disclosure.
[0063] According to one aspect of the present disclosure, there is provided an encoder comprising one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the encoder to perform a method according to any one of the previous aspects of the present disclosure.
[0064] The present disclosure according to any of the previous aspects may provide the advantage of performing fast intra / inter prediction of video frames because the filter coefficients of the interpolation filter are obtained analytically, i.e., the coefficients are calculated on the fly, which avoids storing the coefficients in a look-up table (LUT), which requires access time to read the coefficients from memory.
[0065] Therefore, the prediction becomes more efficient and places less demand on the memory required. This also allows for a low-cost implementation of the prediction. Furthermore, the analytical filter coefficients {c i Because {\displaystyle \mathbb {R}} is linear in the fractional sample position p and involves a divide-by-two operation, each operation can be performed efficiently by employing fast low-level bit operations. The time to perform the bit operations and to calculate the filter coefficients is shorter than the time to access the stored coefficients from the LUT. Thus, latency is reduced.
[0066] Furthermore, the specific analytical structure of the filter coefficients may provide the advantage of low-complexity implementation of the filter unit. In addition, the filter responses (i.e., frequency responses) for different sub-pixel positions are consistent in magnitude and phase, avoiding artifacts in the response, especially at high frequencies. The linearity of the filter coefficients may provide the advantage of hardware reuse.
[0067] The details of one or more embodiments are set forth in the accompanying drawings and the description below. Other features, objects, and advantages will be apparent from the description, drawings, and claims.
[0068] The present invention may be implemented in hardware and / or software.
[0069] For clarity, any one of the above embodiments may be combined with any one or more of the other above embodiments to create new embodiments within the scope of the present disclosure.
[0070] These and other features will be more clearly understood from the following detailed description taken in conjunction with the accompanying drawings and claims.
[0071] In the following, embodiments of the invention will be described in more detail with reference to the accompanying figures and drawings. [Brief explanation of the drawings]
[0072] [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. [Figure 2] 1 is a block diagram illustrating an example of a video encoder configured to implement embodiments of the present invention; [Figure 3] 1 is a block diagram illustrating an exemplary structure of a video decoder configured to implement embodiments of the present invention. [Figure 4] FIG. 1 is a block diagram illustrating an example of an encoding device or a decoding device. [Figure 5] FIG. 10 is a block diagram showing another example of an encoding device or a decoding device. [Figure 6] FIG. 1 illustrates angular intra-prediction directions and associated intra-prediction modes in HEVC. [Figure 7] FIG. 10 is a diagram illustrating angular intra-prediction directions and associated intra-prediction modes in JEM. [Figure 8] FIG. 1 is a diagram illustrating angular intra-prediction directions and associated intra-prediction modes in VTM-3.0 and VVC specification draft v.3. [Figure 9]FIG. 1 illustrates an example of filter combination for smoothing, where a set of reference samples is input to an interpolation filter. [Figure 10] FIG. 10 illustrates an exemplary combination of filters for sharpening interpolation filtering, including a clipping operation. [Figure 11] FIG. 10 illustrates an exemplary combination of filters for sharpening interpolation filtering with alternative locations of clipping operations. [Figure 12A] FIG. 10 illustrates an exemplary combination of filters for sharpening interpolation filtering using filters of adjustable strength. [Figure 12B] FIG. 10 illustrates another exemplary combination of filters for sharpening interpolation filtering using filters of adjustable strength. [Figure 13] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 14] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 15] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 16] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 17] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 18] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 19] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 20] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 21] 10A-10C illustrate various combinations of LUT-based and analytical representations of interpolation filter coefficients. [Figure 22] FIG. 1 illustrates an exemplary implementation of a coefficient calculation method. [Figure 23] 10 is a flowchart of an intra / inter prediction process. [Figure 24] 1 is a flowchart of video coding. [Figure 25] 1 is a block diagram of an intra / inter prediction processing module, including a reference sample acquisition unit, a sub-pixel offset value acquisition unit, and a sub-pixel interpolation filter. [Figure 26] FIG. 1 is a block diagram of a video coding module including an inter-prediction processing unit and sub-pixel interpolation filters. DETAILED DESCRIPTION OF THE INVENTION
[0073] In the following, identical reference signs, unless expressly specified otherwise, refer to identical or at least functionally equivalent features.
[0074] In the following description, reference is made to the accompanying figures, which form a part of this disclosure and which show, by way of illustration, specific 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 figures. 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.
[0075] For example, it will be understood that disclosure regarding 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 particular method steps are described, a corresponding device may include one or more units (e.g., one unit that performs one or more steps, or multiple units that each perform one or more of the multiple steps), 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 a figure. On the other hand, when a particular apparatus is described, for example, based on one or more units, e.g., functional units, a corresponding method may include one step (e.g., one step that performs the function of one or more units, or multiple steps that each perform one or more functions of multiple units) for performing the function of one or more units, even if such one or more steps are not explicitly described or shown in a figure. Furthermore, it will be understood that features of various exemplary embodiments and / or aspects described herein may be combined with each other, unless specifically stated otherwise.
[0076] Video coding typically refers to the processing of a sequence of pictures to form a video or 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, in general, coding) comprises two parts: video encoding and video decoding. Video encoding is performed at the source side and typically comprises processing an original video picture (e.g., by compression) to reduce the amount of data needed to represent the video picture (for more efficient storage and / or transmission). Video decoding is performed at the destination side and typically comprises the reverse process compared to an encoder to reconstruct a video picture. Embodiments referring to "coding" a video picture (or, in general, a picture) shall be understood to relate to "encoding" or "decoding" a video picture or a respective video sequence. The combination of the encoding and decoding parts is also called a codec (coding and decoding).
[0077] 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 is performed, e.g., by quantization, to reduce the amount of data representing the video picture, and the video picture cannot always be perfectly reconstructed at the decoder, i.e., the quality of the reconstructed video picture is lower, i.e., worse, than the quality of the original video picture.
[0078] 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 for applying quantization in the transform domain). Each picture of a video sequence is typically partitioned into a set of non-overlapping blocks, and coding is typically performed at the block level. In other words, at an encoder, video is typically processed or encoded at the block (video block) level, e.g., by using spatial (intra-picture) prediction and / or temporal (inter-picture) prediction to generate a predictive block, subtracting the predictive block from a current block (the block currently being / to be processed) to obtain a residual block, transforming the residual block, and quantizing the residual block in the transform domain to reduce (compress) the amount of data to be transmitted; while at a decoder, inverse processing is applied to the coded or compressed block compared to the encoder to reconstruct the current block for representation. Furthermore, the encoder replicates the decoder processing loop for processing or coding subsequent blocks, so that both generate the same predictions (e.g., intra-prediction and inter-prediction) and / or reconstructions.
[0079] In the following, embodiments of a video coding system 10, a video encoder 20, and a video decoder 30 will be described based on FIGS.
[0080] 1A is a schematic block diagram illustrating an example coding system 10, e.g., video coding system 10 (or short coding system 10), that may utilize the techniques of the present application. A video encoder 20 (or short encoder 20) and a video decoder 30 (or short decoder 30) of video coding system 10 represent examples of devices that may be configured to perform techniques according to various examples described herein.
[0081] 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.
[0082] Source device 12 comprises an encoder 20 and may additionally, i.e., optionally, comprise a picture source 16, a preprocessor (or preprocessing unit) 18, for example a picture preprocessor 18, and a communication interface or unit 22.
[0083] Picture source 16 may comprise or be 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 other 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). Picture source may be any kind of memory or storage that stores any of the above-mentioned pictures.
[0084] In contrast to the preprocessor 18 and the processing performed by the preprocessing unit 18, the pictures or picture data 17 are sometimes referred to as raw pictures or raw picture data 17.
[0085] 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 comprise, for example, cropping, color format conversion (e.g., from RGB to YCbCr), color correction, or noise removal. It may be understood that the pre-processing unit 18 may be an optional component.
[0086] Video encoder 20 is configured to receive pre-processed picture data 19 and provide encoded picture data 21 (further details are described below, eg, with reference to FIG. 2).
[0087] The communications interface 22 of the source device 12 may be configured to receive the encoded picture data 21 and transmit the encoded picture data 21 (or any further processed version thereof) via the communications channel 13 to another device, e.g., the destination device 14 or any other device, for storage or direct reconstruction.
[0088] The destination device 14 includes a decoder 30 (e.g., a video decoder 30), and may additionally, i.e., optionally, include a communication interface or communication unit 28, a post-processor 32 (or post-processing unit 32), and a display device 34.
[0089] The communication interface 28 of the destination device 14 is configured to receive the coded picture data 21 (or any further processed version thereof), for example, directly from the source device 12 or from any other source, for example, a storage device, for example, a coded picture data storage device, and to provide the coded picture data 21 to the decoder 30.
[0090] The communication interface 22 and the communication interface 28 may be configured to transmit or receive the encoded picture data 21 or the encoded data 13 via a direct communication link between the source device 12 and the destination device 14, e.g., a direct wired connection or a direct wireless connection, or via any type of network, e.g., a wired network or a wireless network or any combination thereof, or any type of private network and public network, or any type of combination thereof.
[0091] The communications interface 22 may be configured, for example, to package the encoded picture data 21 in a suitable format, e.g., in packets, and / or to process the encoded picture data using any type of transmission encoding or transmission processing for transmission over a communications link or network.
[0092] Communications interface 28, which forms the counterpart of communications interface 22, may be configured, for example, to receive transmitted data and process the transmitted data using any type of corresponding transmission decoding or transmission processing and / or depackaging to obtain encoded picture data 21.
[0093] Both communication interface 22 and communication interface 28 may be configured as unidirectional communication interfaces, as indicated by the arrow for communication channel 13 in FIG. 1A pointing from source device 12 to destination device 14, or as bidirectional communication interfaces, and may be configured to send and receive messages, for example, to set up a connection, to acknowledge, respond, and exchange any other information related to the communication link and / or data transmission, e.g., coded picture data transmission.
[0094] The decoder 30 is configured to receive the coded picture data 21 and to provide decoded picture data 31 or decoded pictures 31 (further details are described below, for example, based on Figure 3 or Figure 5).
[0095] Post-processor 32 of destination device 14 is configured to post-process decoded picture data 31 (also referred to as reconstructed picture data), e.g., decoded picture 31, to obtain post-processed picture data 33, e.g., post-processed picture 33. The post-processing performed by post-processing unit 32 may comprise, e.g., color format conversion (e.g., from YCbCr to RGB), color correction, cropping or resampling, or any other processing to prepare decoded picture data 31 for, e.g., display, by display device 34.
[0096] Display device 34 of destination device 14 is configured to receive post-processed picture data 33, e.g., for displaying the picture to a user or viewer. Display device 34 may be or comprise any type of display for presenting the reconstructed picture, e.g., an integrated or external display or monitor. The display may comprise, e.g., a liquid crystal display (LCD), an organic light emitting diode (OLED) display, a plasma display, a projector, a micro-LED display, a liquid crystal on silicon (LCoS), a digital light processor (DLP), or any other type of display.
[0097] 1A depicts source device 12 and destination device 14 as separate devices, device embodiments may also include both source device 12 or corresponding functionality and destination device 14 or corresponding functionality. In such embodiments, 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.
[0098] As will be clear to those skilled in the art based on the description, the presence and (exact) division of functions 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.
[0099] 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 to 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. As shown in FIG. 5, if the techniques are implemented partially 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 into a single device as part of a combined encoder / decoder (codec), for example, as shown in FIG. 1B.
[0100] Source device 12 and destination device 14 may comprise any of a wide range of devices, including any type of handheld or fixed device, e.g., 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 content distribution server), a broadcast receiver device, a broadcast transmitter device, etc., and may use no operating system or 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.
[0101] 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 encoding and decoding devices. In other examples, data may be retrieved from local memory, streamed over a network, etc. A video encoding device may encode and store data in memory, and / or a video decoding device may retrieve and decode data from memory. In some examples, encoding and decoding are performed by devices that do not communicate with each other, but simply encode data to memory and / or retrieve and decode data from memory.
[0102] For ease of explanation, embodiments of the present invention are described herein by reference to, for example, High-Efficiency Video Coding (HEVC) or to reference software for Versatile Video Coding (VVC), the next-generation video coding standard developed by the Joint Collaboration Team on Video Coding (JCT-VC) of the ITU-T Video Coding Experts Group (VCEG) and the ISO / IEC Motion Picture Experts Group (MPEG). Those skilled in the art will understand that embodiments of the present invention are not limited to HEVC or VVC.
[0103] 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 unit 201 (or an input interface 201), a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210 and an inverse transform processing unit 212, a reconstruction unit 214, a loop filter unit 220, a decoded picture buffer (DPB) 230, a mode selection unit 260, an entropy coding unit 270, and an output unit 272 (or an output interface 272). The mode selection unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a partitioning unit 262. The inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The video encoder 20 shown in FIG. 2 may also be referred to as a hybrid video encoder, i.e., a video encoder using a hybrid video codec.
[0104] 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, while 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 a decoder (see video 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 are also referred to as forming a “built-in decoder” of the video encoder 20.
[0105] Pictures and picture divisions (pictures and blocks) The encoder 20 may be configured to receive, e.g., via an input 201, a picture 17 (or picture data 17), e.g., 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 (or preprocessed picture data 19). For simplicity, the following description refers to the picture 17. The picture 17 may also be called the current picture or the picture to be coded (particularly in video coding, to distinguish the current picture from other pictures, e.g., previously coded and / or decoded pictures, of the same video sequence, i.e., the video sequence that also comprises the current picture).
[0106] A (digital) picture is, or can be considered as, a two-dimensional array or matrix of samples with intensity values. The samples in the array are sometimes called pixels (picture elements in short form) 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, three color components are usually employed, i.e., a picture may be represented by or contain three sample arrays. In an RBG format or color space, a picture comprises corresponding red, green, and blue sample arrays. However, in video coding, each pixel is usually represented in a luminance and chrominance format or color space, e.g., YCbCr, which comprises a luminance component denoted by Y (although sometimes L is also used instead) and two chrominance components denoted by Cb and Cr. The luminance (or short luma) component Y represents brightness or gray-level intensity (e.g., as in a grayscale picture), and the two chrominance (or short chroma) components Cb and Cr represent chromaticity or color information components. Thus, a picture in YCbCr format comprises 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 to YCbCr format, or vice versa, a process also called color transformation or color conversion. If a picture is monochrome, the picture may comprise only a luminance sample array. Thus, a picture may be, for example, an array of luma samples in monochrome format, or an array of luma samples and two corresponding arrays of chroma samples in 4:2:0, 4:2:2, and 4:4:4 color formats.
[0107] Embodiments of video encoder 20 may include a picture partition unit (not shown in FIG. 2 ) configured to partition picture 17 into multiple (usually non-overlapping) picture blocks 203. These blocks are sometimes 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 sizes, or to vary the block size among pictures or subsets or groups of pictures, and to partition each picture into corresponding blocks.
[0108] In further embodiments, the video encoder may be configured to directly receive blocks 203 of picture 17, e.g., one, several, or all of the blocks that form picture 17. Picture blocks 203 may also be referred to as current picture blocks or picture blocks to be coded.
[0109] Like picture 17, picture block 203 again may be or be considered to be a two-dimensional array or matrix of samples having intensity values (sample values), but with smaller dimensions than picture 17. In other words, block 203 may comprise, for example, one sample array (e.g., a luma array in the case of a monochrome picture 17, or a luma array or a chroma array in the case of a color picture), or three sample arrays (e.g., a luma array and two chroma arrays in the case of a color picture 17), or any other number and / or type of array depending on the applied color format. The number of samples in the horizontal and vertical directions (or axes) of block 203 define the size of block 203. Thus, a block may be, for example, an M×N (M columns by N rows) array of samples or an M×N array of transform coefficients.
[0110] An embodiment of video encoder 20, such as that shown in FIG. 2, may be configured to encode picture 17 block-by-block, eg, encoding and prediction is performed on a block-by-block basis.
[0111] Residual calculation The residual calculation unit 204 may be configured to calculate the residual block 205 (also referred to as the residual 205) based on the picture block 203 and the prediction block 265 (further details about the prediction block 265 will be provided later), for example, by subtracting the sample values of the prediction block 265 from the 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.
[0112] conversion The transform processing unit 206 may be configured to apply a transform, for example, a discrete cosine transform (DCT) or a discrete sine transform (DST), to the sample values of the residual block 205 to obtain transform coefficients 207 in the transform domain. The transform coefficients 207 may also be referred to as transform residual coefficients and may represent the residual block 205 in the transform domain.
[0113] 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 several factors. To preserve the norm of the residual block processed by the forward and inverse transforms, an additional scaling factor is applied as part of the transform process. The scaling factor is typically chosen based on several 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. For example, a particular scaling factor may be specified for, e.g., the inverse transform by inverse transform processing unit 212 (and the corresponding inverse transform by, e.g., inverse transform processing unit 312 in video decoder 30), and a corresponding scaling factor for the forward transform by, e.g., transform processing unit 206 in encoder 20 may be specified accordingly.
[0114] An embodiment of video encoder 20 (respectively, transform processing unit 206) may be configured to output transform parameters, e.g., one or more types of transform, 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.
[0115] 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.
[0116] 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 modified by adjusting a quantization parameter (QP). For example, in the case of scalar quantization, various scalings may be applied to achieve finer or coarser quantization. A smaller quantization step size corresponds to finer quantization, while a larger quantization step size corresponds to coarser quantization. The applicable quantization step size may be indicated by the quantization parameter (QP). The quantization parameter may, for example, be an index into a predefined set of applicable quantization step sizes. For example, a small quantization parameter may correspond to fine quantization (small quantization step size) and a large quantization parameter may correspond to coarse quantization (large quantization step size), or vice versa. Quantization may include division by a quantization step size, and corresponding inverse quantization and / or inverse dequantization, e.g., by the inverse quantization unit 210, may include multiplication by the quantization step size. Some standards, e.g., HEVC, embodiments may be configured to use a quantization parameter to determine the quantization step size. Generally, the quantization step size may be calculated based on the quantization parameter using a fixed-point approximation of an equation involving division. Additional scaling factors may be introduced for quantization and inverse quantization to restore the norm of the residual block, which may be modified due to scaling used in the fixed-point approximation of the equation for the quantization step size and the quantization parameter. In one exemplary implementation, the scaling of the inverse transform and inverse quantization may be combined. Alternatively, customized quantization tables may be used and may be signaled, e.g., in the bitstream, from the encoder to the decoder. Quantization is a lossy operation, and loss increases with increasing quantization step size.
[0117] 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 coding unit 270, so that, for example, video decoder 30 may receive and apply the quantization parameter for decoding.
[0118] inverse quantization The inverse quantization unit 210 is configured to apply the inverse quantization of the quantization unit 208 to the quantized coefficients to obtain the inverse quantized coefficients 211, 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. The inverse quantized coefficients 211, which are sometimes referred to as the inverse quantized residual coefficients 211, may correspond to the transform coefficients 207, although they are not typically identical to the transform coefficients due to loss due to quantization.
[0119] 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), or other inverse transform, to obtain a reconstructed residual block 213 in the sample domain (or corresponding dequantized coefficients 213). The reconstructed residual block 213 may also be referred to as a transform block 213.
[0120] 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 to obtain the reconstructed block 215 in the sample domain, for example, by adding the sample values of the reconstructed residual block 213 and the sample values of the prediction block 265 - sample by sample.
[0121] Filtering The loop filter unit 220 (or short "loop filter" 220) is configured to filter the reconstructed block 215 to obtain a filtered block 221, or generally to filter the reconstructed samples to obtain filtered samples. The loop filter unit is configured, for example, to smooth pixel transitions or otherwise improve video quality. The loop filter unit 220 may comprise one or more loop filters, such as a deblocking filter, a Sample-Adaptive Offset (SAO) filter, or one or more other filters, for example, a bilateral filter, an Adaptive Loop Filter (ALF), a sharpening filter, a smoothing filter, or a collaborative filter, or any combination thereof. Although the loop filter unit 220 is shown in FIG. 2 as being an in-loop filter, in other configurations, the loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 may also be referred to as a filtered reconstruction block 221.
[0122] Embodiments of video encoder 20 (respectively, loop filter unit 220) may be configured to output loop filter parameters (such as sample adaptive offset information), e.g., directly or encoded via entropy encoding unit 270, so that, for example, decoder 30 may receive and apply the same loop filter parameters or respective loop filters for decoding.
[0123] Decoded Picture Buffer The decoded picture buffer (DPB) 230 may be a memory that stores reference pictures, or generally reference picture data, for encoding video data by the video encoder 20. The DPB 230 may be formed by 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 and filtered blocks 221 of the same current picture or of a different picture, e.g., a previously reconstructed picture, and may provide, for example, a previously reconstructed or decoded overall picture (and corresponding reference blocks and samples) and / or a partially reconstructed current picture (and corresponding reference blocks and samples) for inter prediction. For example, if the reconstructed block 215 has not been filtered by the loop filter unit 220 or is any other further processed version of a reconstructed block or sample, the decoded picture buffer (DPB) 230 may also be configured to store one or more unfiltered reconstructed blocks 215, or generally, unfiltered reconstructed samples.
[0124] Mode Selection (Segmentation and Prediction) The mode select 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), as well as reconstructed picture data, e.g., filtered and / or unfiltered reconstructed samples or blocks, from the decoded picture buffer 230 or other buffers (e.g., line buffers, not shown) of the same (current) picture and / or from one or more previously decoded pictures. 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.
[0125] The mode selection unit 260 may be configured to determine or select a partition for the current block prediction mode (not including the partition) and a prediction mode (e.g., intra or inter prediction mode) and generate a corresponding prediction block 265 used for calculating the residual block 205 and for reconstructing the reconstruction block 215.
[0126] Embodiments of the mode selection unit 260 may be configured to select a partition and prediction mode (e.g., from those supported by or available to the mode selection unit 260) that gives the best match, or in other words, the smallest residual (smallest residual means better compression for transmission or storage), or the smallest signaling overhead (smallest signaling overhead means better compression for transmission or storage), or considers both, 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., select the prediction mode that results in the smallest rate distortion. Terms such as “best,” “minimum,” “optimal,” etc. in this context do not necessarily refer to an overall “best,” “minimum,” “optimal,” etc., but may refer to the satisfaction of a termination or selection criterion, such as a value above or below a threshold or other constraint, potentially leading to a “suboptimal selection,” but reducing computational effort and processing time.
[0127] In other words, the partitioning unit 262 may be configured to partition the block 203 into smaller block partitions or sub-blocks (which again form blocks), for example, using quadtree partitioning (QT), binary partitioning (BT), or triple tree partitioning (TT), or any combination thereof, iteratively, and to perform prediction on each of the block partitions or sub-blocks, for example, wherein the mode selection comprises selecting a tree structure of the partitioned block 203, and a prediction mode is applied to each of the block partitions or sub-blocks.
[0128] Below, the partitioning (eg, by partitioning unit 260) and prediction processes (by inter-prediction unit 244 and intra-prediction unit 254) performed by exemplary video encoder 20 are described in more detail.
[0129] classification The partitioning unit 262 may partition (i.e., divide) the current block 203 into smaller partitions, e.g., square or rectangular sized smaller blocks. These smaller blocks (sometimes called sub-blocks) may be further partitioned into even smaller partitions. This is also referred to as tree partitioning or hierarchical tree partitioning; for example, 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 level, e.g., tree level 2 (hierarchical level 2, depth 2), etc., until the partitioning is terminated, e.g., because a termination criterion is met, e.g., a maximum tree depth or a minimum block size has been reached. Blocks that are not further partitioned are also referred to as leaf blocks or leaf nodes of the tree. A tree that uses partitioning into two partitions is called a binary tree (BT), a tree that uses partitioning into three partitions is called a ternary tree (TT), and a tree that uses partitioning into four partitions is called a quad tree (QT).
[0130] As previously mentioned, the term "block" as used herein may refer to a portion of a picture, particularly 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), a coding unit (CU), a prediction unit (PU), and a transform unit (TU), and / or a corresponding block, such as a coding tree block (CTB), a coding block (CB), a transform block (TB), or a prediction block (PB).
[0131] For example, a coding tree unit (CTU) may be or comprise a CTB of luma samples for a picture having three sample arrays, two corresponding CTBs of chroma samples, or a CTB of samples for a monochrome picture or a picture coded using three separate color planes, and a syntax structure used to code the samples. Correspondingly, a coding tree block (CTB) may be an N×N block of samples for some values of N, such that the division of the components into CTBs is partitioned. A coding unit (CU) may be or comprise a coding block of luma samples for a picture having three sample arrays, two corresponding coding blocks of chroma samples, or a coding block of samples for a monochrome picture or a picture coded using three separate color planes, and a syntax structure used to code the samples. Correspondingly, a coding block (CB) may be an M×N block of samples for some values of M and N, such that the division of the CTB into coding blocks is partitioned.
[0132] For example, in an HEVC embodiment, a coding tree unit (CTU) may be divided into CUs by using a quadtree structure denoted as a coding tree. The decision of whether a picture area should be coded using (temporal) inter-picture prediction or (spatial) intra-picture prediction is made at the CU level. Each CU may be further divided into one, two, or four PUs according to a PU partition type. Inside one PU, the same prediction process is applied, and related information is transmitted to the decoder on a PU-by-PU basis. After obtaining residual blocks by applying a prediction process based on the PU partition type, the CU may be partitioned into transform units (TUs) according to another quadtree structure similar to the coding tree for CUs.
[0133] In an embodiment, for example, according to the latest video coding standard currently under development, called Versatile Video Coding (VVC), quad-tree and binary tree (QTBT) partitioning is used to partition coding blocks. Within the QTBT block structure, CUs can have either square or rectangular shapes. For example, coding tree units (CTUs) are first partitioned by a quad-tree structure. Quad-tree leaf nodes are further partitioned by a binary tree or ternary (or triple) tree structure. Partitioning tree leaf nodes is called coding units (CUs), and this segmentation is used for prediction and transform processes without further partitioning. This means that CUs, PUs, and TUs have the same block size within the QTBT coding block structure. In parallel, multiple partitions, for example, triple-tree partitioning, have also been proposed for use with the QTBT block structure.
[0134] In one example, mode select unit 260 of video encoder 20 may be configured to perform any combination of the partitioning techniques described herein.
[0135] As described above, video encoder 20 is configured to determine or select a best or optimal prediction mode from a (predetermined) set of prediction modes, which may comprise, for example, intra-prediction modes and / or inter-prediction modes.
[0136] Intra prediction The set of intra prediction modes may, for example, comprise 35 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes, as specified in HEVC, or may, for example, comprise 67 different intra prediction modes, e.g., omnidirectional modes such as DC (or average) mode and planar mode, or directional modes, as specified for VVC.
[0137] 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 of the set of intra prediction modes.
[0138] The intra prediction unit 254 (or generally, the mode selection unit 260) is further configured to output intra prediction parameters (or generally, information indicating the selected intra prediction mode for the block) to the entropy coding unit 270 in the form of a syntax element 266 for inclusion in the coded picture data 21, so that, for example, the video decoder 30 may receive and use the prediction parameters for decoding.
[0139] Inter Prediction The set of inter prediction modes (or possible inter prediction modes) depends on the available reference pictures (i.e., previous pictures that have been at least partially decoded and are, for example, stored in DBP230), as well as 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 it, for example, a search window area around the area of the current block of the reference picture, and / or whether pixel interpolation, for example, half-pel / semi-pel and / or quarter-pel interpolation, is applied.
[0140] In addition to the above prediction modes, skip mode and / or direct mode may be applied.
[0141] The inter prediction unit 244 may include a motion estimation (ME) unit and a motion compensation (MC) unit (both not shown in FIG. 2). The motion estimation unit may be configured to receive or obtain the picture block 203 (current picture block 203 of current picture 17) and the decoded picture 231, or at least one or more previously reconstructed blocks, e.g., reconstructed blocks of one or more other / different previously decoded pictures 231, for motion estimation. For example, a video sequence may comprise the current picture and the previously decoded picture 231; that is, in other words, the current picture and the previously decoded picture 231 may be part of or form a sequence of pictures that form a video sequence.
[0142] The encoder 20 may be configured to, for example, select a reference block from multiple reference blocks of the same or different pictures among 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 to the motion estimation unit as inter-prediction parameters. This offset is also called a motion vector (MV).
[0143] The motion compensation unit is configured to obtain, e.g., receive, inter prediction parameters and perform inter prediction based on or using the inter prediction parameters to obtain the inter prediction block 265. The motion compensation performed by the motion compensation unit may involve fetching or generating a predictive block based on motion / block vectors determined by motion estimation, 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 predictive blocks that can be used to code the picture block. Upon receiving a motion vector for the PU of the current picture block, the motion compensation unit may locate the predictive block to which the motion vector points in one of the reference picture lists.
[0144] 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.
[0145] Entropy Coding The entropy coding unit 270 may apply, for example, an entropy coding algorithm or scheme (e.g., a Variable Length Coding (VLC) scheme, a Context Adaptive VLC (CAVLC) scheme, an arithmetic coding scheme, a binarization scheme, a Context Adaptive Binary Arithmetic Coding (CABAC), a Syntax-Based Context-Adaptive Binary Arithmetic Coding (SBAC), a Probability Interval Partitioning Entropy (PIPE), a quantization algorithm or scheme) to the quantized coefficients 209, the inter-prediction parameters, the intra-prediction parameters, the loop filter parameters, and / or other syntax elements. 2. The video decoder 30 may be configured to apply (entropy coding, or another entropy encoding method or technique), or bypass (no compression) to obtain coded picture data 21 that may be output via output unit 272, e.g., in the form of coded bitstream 21, so that, e.g., video decoder 30 may receive and use the parameters for decoding. Coded bitstream 21 may be transmitted to video decoder 30 or may be stored in memory for later transmission or retrieval by video decoder 30.
[0146] Other structural variations of the video encoder 20 may be used to encode the video stream. For example, a non-transform-based encoder 20 may directly quantize the residual signal for some blocks or frames without using the transform processing unit 206. In another implementation, the encoder 20 may have the quantization unit 208 and the inverse quantization unit 210 combined into a single unit.
[0147] 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 coded picture data or bitstream comprises information for decoding the coded picture data, e.g., data representing picture blocks of coded video slices, and associated syntax elements.
[0148] 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., adder 314), a loop filter 320, a decoded picture buffer (DBP) 330, an inter prediction unit 344, and an intra prediction unit 354. Inter prediction unit 344 may be or may include a motion compensation unit. Video decoder 30 may, in some examples, perform a decoding path that is generally reciprocal to the encoding path described with respect to video encoder 100 from FIG. 2.
[0149] As described with respect to encoder 20, inverse quantization unit 210, inverse transform processing unit 212, reconstruction unit 214, loop filter 220, decoded picture buffer (DPB) 230, inter prediction unit 344, and intra prediction unit 354 are also referred to as forming a “built-in decoder” of video encoder 20. Accordingly, 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. Accordingly, 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.
[0150] Entropy Decoding The entropy decoding unit 304 is configured to parse the bitstream 21 (or generally, the coded picture data 21) and, e.g., perform entropy decoding on the coded picture data 21 to obtain, e.g., quantization 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 indices 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 such 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 selection unit 360 and other parameters to other units of the decoder 30. The video decoder 30 may receive syntax elements at a video slice level and / or a video block level.
[0151] inverse quantization Inverse quantization unit 310 may be configured to receive a quantization parameter (QP) (or generally, information related to 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 inverse quantized coefficients 311, which are sometimes referred to as transform coefficients 311. The inverse quantization process may involve using the quantization parameter determined by video encoder 20 for each video block in a video slice to determine the degree of quantization, and similarly, the degree of inverse quantization to be applied.
[0152] Inverse transformation The inverse transform processing unit 312 may be configured to receive the inverse quantized coefficients 311, also referred to as transform coefficients 311, and apply a transform to the inverse quantized coefficients 311 to obtain the reconstructed residual block 213 in the sample domain. The reconstructed residual block 213 may also be referred to as a transform block 313. The transform may be an inverse transform, e.g., an inverse DCT transform, an inverse DST transform, an inverse integer transform, or a conceptually similar inverse transform process. The inverse transform processing unit 312 may further be configured to receive transform parameters or corresponding information from the coded picture data 21 (e.g., by parsing and / or decoding by the entropy decoding unit 304) to determine the transform to be applied to the inverse quantized coefficients 311.
[0153] 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, for example, by adding the sample values of the reconstructed residual block 313 and the sample values of the prediction block 365, to obtain the reconstructed block 315 in the sample domain.
[0154] Filtering Loop filter unit 320 (either in the coding loop or after the coding loop) is configured to filter reconstruction block 315 to obtain filtered block 321, e.g., to smooth pixel transitions or otherwise improve video quality. Loop filter unit 320 may comprise 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 filter, a smoothing filter, or a collaborative filter, or any combination thereof. Although loop filter unit 320 is shown in FIG. 3 as being an in-loop filter, in other configurations, loop filter unit 320 may be implemented as a post-loop filter.
[0155] Decoded Picture Buffer The decoded video blocks 321 of the picture are then stored in a decoded picture buffer 330, which stores the decoded picture 331 as a reference picture for subsequent motion compensation relative to other pictures and / or for output display, respectively.
[0156] The decoder 30 is arranged to output the decoded pictures 311, for example via an output 312, for presentation or viewing to a user.
[0157] 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 identical in function to the inter prediction unit 254, performing the partitioning 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 selection unit 360 may be configured to perform prediction (intra prediction or inter prediction) for each block based on the (filtered or unfiltered) reconstructed picture, block, or respective sample to obtain a prediction block 365.
[0158] When a video slice is coded as an intra-coded (I) slice, intra prediction unit 354 of mode select unit 360 is configured to generate a predictive block 365 for a picture block of the current video slice based on the signaled intra prediction mode and data from previously decoded blocks of the current picture. When a 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 select unit 360 is configured to produce a predictive block 365 for a video block of the current video slice based on a motion vector and other syntax elements received from entropy decoding unit 304. For inter prediction, the predictive block may be produced from one of the reference pictures in one of the reference picture lists. Video decoder 30 may construct the reference frame lists, i.e., List 0 and List 1, using a default construction technique based on the reference pictures stored in DPB 330.
[0159] Mode select unit 360 is configured to determine prediction information for video blocks of the current video slice by parsing the motion vectors and other syntax elements, and to use the prediction information to produce predictive blocks for the current video block being decoded. For example, mode select unit 360 uses some of the received syntax elements to determine the prediction mode (e.g., intra-prediction or inter-prediction) used to code the video blocks of the video slice, the inter-prediction slice type (e.g., B slice, P slice, or GPB slice), configuration information for one or more of the reference picture lists for the slice, motion vectors for each inter-coded video block of the slice, inter-prediction status for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0160] Other variations of the video decoder 30 may be used to decode the coded picture data 21. For example, the decoder 30 may produce an output video stream without using a loop filtering unit 320. For example, a non-transform-based decoder 30 may directly inverse quantize the residual signal for some blocks or frames without using an inverse transform processing unit 312. In another implementation, the video decoder 30 may have the inverse quantization unit 310 and the inverse transform processing unit 312 combined into a single unit.
[0161] It should be understood that the processing result of the current step may be further processed and then output to the next step in the encoder 20 and the decoder 30. For example, after the interpolation filtering, motion vector derivation, or loop filtering, further operations such as clipping or shifting may be performed on the processing result of the interpolation filtering, motion vector derivation, or loop filtering.
[0162] 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 mode, planar mode, ATMVP mode, temporal motion vectors, etc.). For example, the value of a motion vector is constrained to a predetermined range according to its representation bits. If the representation bits of a motion vector are bitDepth, the range is -2^(bitDepth-1) to 2^(bitDepth-1)-1, where "^" means exponentiation. 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 a derived motion vector (e.g., MVs of four 4x4 sub-blocks in one 8x8 block) is constrained so that the maximum difference between the integer parts of the four 4x4 sub-block MVs is less than or equal to N pixels, such as less than or equal to 1 pixel. Here, we provide two methods for constraining motion vectors according to bitDepth.
[0163] Method 1: Remove the overflow MSB (Most Significant Bit) by flowing arithmetic. ux=(mvx+2 bitDepth )%2 bitDepth (1) mvx=(ux>=2 bitDepth-1 ) ? (ux-2 bitDepth ) : ux (2) uy=(mvy+2 bitDepth )%2 bitDepth (3) mvy=(uy>=2 bitDepth-1 ) ? (uy-2 bitDepth ) : 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 indicate intermediate values.
[0164] For example, if the value of mvx is -32769, after applying equation (1) and equation (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), then the MSB is discarded, so the resulting two's complement is 0111, 1111, 1111, 1111 (decimal 32767), which is the same as the output by applying equation (1) and equation (2). ux=(mvpx+mvdx+2 bitDepth )%2 bitDepth (5) mvx=(ux>=2 bitDepth-1 ) ? (ux-2 bitDepth ) : ux (6) uy=(mvpy+mvdy+2 bitDepth )%2 bitDepth (7) mvy=(uy>=2 bitDepth-1 ) ? (uy-2 bitDepth ) : uy (8)
[0165] As shown in equations (5) to (8), the operation can be applied between the sums of mvp and mvd.
[0166] Method 2: Remove the overflow MSB by clipping the value. vx=Clip3(-2 bitDepth-1 ,2 bitDepth-1 -1,vx) vy=Clip3(-2 bitDepth-1 ,2 bitDepth-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 correspond to the three input values of the MV clipping process, respectively, and the definition of the function Clip3 is as follows:
[0167]
number
[0168] 4 is a schematic diagram of a video coding device 400 according to one embodiment of the present disclosure. The video coding device 400 is suitable for implementing the disclosed embodiments as described herein. In one embodiment, the video coding device 400 may be a decoder, such as the video decoder 30 of FIG. 1A, or an encoder, such as the video encoder 20 of FIG. 1A.
[0169] Video coding device 400 comprises an ingress port 410 (or input port 410) and a receiver unit (Rx) 420 for receiving data, a processor, logic unit, or central processing unit (CPU) 430 for processing the data, a transmitter unit (Tx) 440 and an egress port 450 (or output port 450) for transmitting the data, and a memory 460 for storing the data. Video coding device 400 may also comprise optical-to-electrical (OE) and electrical-to-optical (EO) components coupled to ingress port 410, receiver unit 420, transmitter unit 440, and egress port 450 for the egress or ingress of optical or electrical signals.
[0170] 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 is in communication 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 disclosed embodiments described above. For example, the coding module 470 performs, processes, prepares, or provides various coding operations. Thus, the inclusion of the coding module 470 significantly improves the functionality of the video coding device 400 and allows the video coding device 400 to transform into different states. Alternatively, the coding module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
[0171] Memory 460 may comprise one or more disks, tape drives, and solid-state drives, and may be used as an overflow data storage device for storing programs when such programs are selected for execution, and for storing instructions and data read during program execution. 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).
[0172] FIG. 5 is a simplified block diagram of an apparatus 500 that may be used as either or both of source device 12 and destination device 14 from FIG. 1 according to an example embodiment.
[0173] The processor 502 in the apparatus 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, capable of manipulating or processing information. Although the disclosed implementations may be practiced with a single processor, e.g., processor 502, as shown, advantages in speed and efficiency may be achieved using two or more processors.
[0174] The memory 504 in the apparatus 500 may be a read-only memory (ROM) device or a random access memory (RAM) device in one 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 further include a video coding application that performs the methods described herein.
[0175] The apparatus 500 may also include one or more output devices, such as a display 518. The display 518, in one example, may be a touch-sensitive display that combines a display with touch-sensitive elements operable to sense touch input. The display 518 may be coupled to the processor 502 via the bus 512.
[0176] 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 accessed over a network, and may comprise a single integrated unit such as a memory card, or multiple units such as multiple memory cards. Accordingly, device 500 may be implemented in a wide variety of configurations.
[0177] Figure 6 shows a schematic diagram of multiple intra prediction modes used in the HEVC UIP scheme. For luma blocks, the intra prediction modes may comprise up to 36 intra prediction modes, which may include three omnidirectional modes and 33 directional modes. The omnidirectional modes may comprise a planar prediction mode, a mean (DC) prediction mode, and a luma-to-chroma (LM) prediction mode. The planar prediction mode may perform prediction by assuming a block deflection plane with horizontal and vertical gradients derived from the boundaries of the block. The DC prediction mode may perform prediction by assuming a flat block plane with values that match the mean values of the block boundaries. The LM prediction mode may perform prediction by assuming that the chroma values for the block match the luma values for the block.
[0178] FIG. 7 shows an example of 67 intra prediction modes, for example as proposed for VVC, where the intra prediction modes include a planar mode (index 0), a dc mode (index 1), and angular modes with indices 2 to 66, where the bottom-left angular mode in FIG. 7 refers to index 2, and the index numbering is incremented until index 66 is the top-right-most angular mode in FIG. 7.
[0179] As shown in Figure 8, starting with the second version, VVC has several modes corresponding to oblique intra-prediction directions, including a wide-angle mode (shown as a dashed line). For any of these modes, to predict a sample within a block, if the corresponding position within the block side is fractional, interpolation of a set of neighboring reference samples should be performed. HEVC and VVC use linear interpolation between two neighboring reference samples. JEM uses a more sophisticated 4-tap interpolation filter. The filter coefficients are selected to be either a Gaussian filter or a cubic filter depending on the width or height value. The decision on whether to use width or height is coordinated with the decision on dominant reference side selection; that is, when the intra-prediction mode is diagonal or higher, the upper side of the reference sample is selected to be the dominant reference side, and the width value is selected to determine the interpolation filter to be used. Otherwise, the dominant side reference is selected from the left side of the block, and the height controls the filter selection process. In particular, if the selected side length is 8 samples or less, cubic interpolation 4-tap is applied. Otherwise, the interpolation filter is a 4-tap Gaussian filter.
[0180] Similar to inter prediction, intra prediction may require interpolation filtering when samples in a block are predicted according to a fractional gradient directional mode. When a linear filter is used for this purpose, the filter coefficients can be easily calculated if the samples in the block to be predicted fall within fractional (sub-pel) positions in the reference samples. Therefore, a linear filter does not require a look-up table (LUT) to store its coefficients. However, an LUT may be used instead of direct calculation. However, if a prediction module uses a long-tap (e.g., 4- or 8-tap) interpolation filter, a LUT may be required to store the coefficients of the interpolation filter, as is done in the inter prediction module, where an 8-tap DCT-IF for luma and a 4-tap DCT-IF for chroma are tabulated as shown in Table 1 and Table 2, respectively.
[0181] [Table 5]
[0182] [Table 6]
[0183] A particular set of coefficients may be defined as shown in Table 3.
[0184] [Table 7]
[0185] The intra predicted samples are calculated by convolving with coefficients specified according to the sub-pixel offset and filter type as follows:
[0186]
number
[0187] In this expression, ">>" denotes a bitwise right shift operation.
[0188] The set of coefficients {c i} are fetched from a look-up table (LUT). Table 3 gives an example of values stored according to the current design of VVC, as described in the version 3 specification draft (JVET-L1001 "Versatile Video Coding (Draft 3)"). The selection between the smoothing (fG) and sharpening (fC) interpolation filters is performed using the MDIS (Mode Dependent Intra Smoothing) condition. Therefore, either fC or fG can be used to generate the predicted samples of a block.
[0189] If a sharpening filter is selected, the predicted samples s(x) are further clipped to an allowed range of values, i.e., either specified using the SPS or derived from the bit depth of the selected component.
[0190] For some use cases, it may be beneficial to avoid having explicit LUTs for the interpolation filters, as LUT processing requires additional memory and therefore increases energy consumption as well as die size. The first point is critical for mobile applications. The second point negatively impacts price.
[0191] For the stated use case, it is reasonable to analytically define the coefficients of the interpolation filter: rather than performing a fetch from a LUT, the filter coefficients can be calculated from the input fractional sample position p.
[0192] According to an embodiment of the present disclosure, there is provided a method for intra or inter prediction processing of a video frame, the method comprising: obtaining a reference sample; obtaining a value of a sub-pixel offset; and filtering the reference sample using a sub-pixel 4-tap interpolation filter to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are:
[0193]
number
[0194] where p is the fractional part of the value of the sub-pixel offset, and c0, c1, c2, and c3 are the filter coefficients of the sub-pixel 4-tap interpolation filter.
[0195] In one example implementation, the reference samples may be referred to as ref[x], which corresponds to an array of reference samples, ref[x]=p[-1-refIdx+x][-1-refIdx] (where x=0..nTbW+refIdx+1) where "p" refers to the xy two-dimensional array p[x][y] containing the sample values. The number of reference samples used may be at least 1. In another example, the number of reference samples may be 4.
[0196] In one exemplary implementation, the obtained sub-pixel offset values are: (y+1+refIdx)*intraPredAngle and "IntraPredAngle" is the value of the intra prediction angle.
[0197] In one exemplary implementation, the predicted sample values "predSamples[x][y]" are
[0198]
number
[0199] where fT[i] refers to filter coefficients. These coefficients may be luma or chroma filter coefficients for inter prediction, referred to as fG and fC, respectively.
[0200] The choice of whether the filter coefficients are luma or chroma depends on, for example, fT[j]=filterFlag ? fG[iFact][j] : fC[iFact][j] This may be implemented by the use and setting of the flag "filterFlag" as in iFact=((y+1+refIdx)*intraPredAngle)&31 is.
[0201] The value "31" refers to the fractional part of the sub-pixel offset value and may take other values different from "31." The values of the filter coefficients fG (luma) and / or fC (chroma) may be obtained analytically on the fly using the above analytical expressions for the filter coefficients of a 4-tap filter. Thus, the filter coefficients are defined according to the sub-pixel offset value.
[0202] Thus, the filter coefficients are obtained without accessing their respective values from the LUT, but rather by calculation.
[0203] Alternatively, the filter coefficients may be calculated using the above formulas and the values may be stored in a LUT.
[0204] According to one embodiment of the present disclosure, the filter coefficients of the sub-pixel 4-tap interpolation filter are listed in the following table:
[0205] [Table 8A]
[0206] [Table 8B]
[0207] It is specified in.
[0208] According to an embodiment of the present disclosure, there is provided a method for intra or inter prediction processing of a video frame, the method comprising the steps of obtaining a reference sample; obtaining a value of a sub-pixel offset; and filtering the reference sample using a sub-pixel 4-tap interpolation filter to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are as follows:
[0209] [Table 9]
[0210] where p is the fractional part of the sub-pixel offset value, and c0, c1, c2, and c3 are filter coefficients.
[0211] In one example implementation, the values of the filter coefficients may be stored in a LUT, which means that the values of each of the filter coefficients will be fetched from the LUT for sub-pixel interpolation filtering.
[0212] FIG. 23 shows a flowchart of the intra / inter prediction process. In step 2301, a reference sample is obtained. The reference sample may include one or more reference samples. In step 2302, a sub-pixel offset value is then obtained. In step 2303, the reference sample is then filtered using the filter coefficients {c i}, where i=0,...3. This is called a 4-tap filter and / or a 4-point filter.
[0213] The filter coefficients may be obtained from an analytical expression of the sub-pixel offset value with a given fractional part p. The filter coefficients may also be obtained from a LUT with reference to the p value.
[0214] According to one embodiment of the present disclosure, the bits of p are set to 0.
[0215] According to one embodiment of the present disclosure, p is incremented by 1, and then the lower bits of the incremented p are set to 0 before it is used to obtain the filter coefficients.
[0216] According to an embodiment of the present disclosure, obtaining the filter coefficients includes:
[0217]
number
[0218] This involves calculating the filter coefficients according to the previous filter coefficients c i to filter coefficient c i+1 This may further reduce the time to calculate the filter coefficients.
[0219] The proposed invention allows both approaches to derive the filter coefficients, i.e., LUT fetch calculations and derive calculations according to the proposed formulas.
[0220] One of the features of an interpolation filter consists of the linear dependence of its phase shift on the fractional sample position p. Embodiments of the present invention exploit this dependence to obtain the values of the filter coefficients using simple arithmetic on the fractional sample position p.
[0221] The linear dependence is used to derive the smoothing interpolation filter coefficients fG. The derivation of the sharpening interpolation filter coefficients fC is based on taking the absolute value of the linear expression based on p.
[0222] According to an embodiment of the present disclosure, there is provided a method of video coding, the method comprising intra-prediction processing of blocks of a video frame, the method comprising filtering reference samples of the video frame using a sub-pixel 4-tap interpolation filter, the sub-pixel 4-tap interpolation filter being a combination of filters, and filter coefficients of at least one of the filters being:
[0223]
number
[0224] where p is the fractional sample position of the sub-pixel offset, and c0, c1, c2, and c3 are filter coefficients.
[0225] A video coding flowchart is shown in Figure 24. In step 2410, an intra prediction process is performed by filtering the reference samples of the block using a sub-pixel 4-tap interpolation filter.
[0226] According to one embodiment of the present disclosure, the sub-pixel 4-tap interpolation filter is a smoothing filter that is a parallel combination of two phase-dependent linear filters and a low-pass filter.
[0227] According to one embodiment of the present disclosure, the sub-pixel 4-tap interpolation filter is a sharpening filter that is a parallel combination of one phase-dependent linear filter and an intensity-varying high-pass filter.
[0228] According to one embodiment of the present disclosure, the intensity-varying high-pass filter is a phase-independent high-pass finite impulse response FIR filter, the output of which is multiplied by a phase-dependent intensity parameter.
[0229] According to any one of the previous embodiments of the present disclosure, the lower bits of p are set to 0.
[0230] According to one embodiment of the present disclosure, p is incremented by 1, and then the lower bits of the incremented value are set to 0 before this value is used to derive the interpolation filter coefficients.
[0231] According to one embodiment of the present disclosure, a clipping operation is performed on the output of the intensity variation high pass filter.
[0232] An embodiment of the present invention represents the filter coefficients as a combination of two or more FIR (Finite Impulse Response) filters, which may have the following options: - Sequential combination, i.e., convolution of coefficients. - Parallel combination, i.e. weighted sum of coefficients.
[0233] Each of these filters may or may not depend on a phase parameter P, which is a function of the fractional sample position p. The coefficients of the filters belonging to the combination have a simple expression from the phase parameter P.
[0234] In one embodiment, in FIG. 9, a set of reference samples is input to an interpolation filter.
[0235] In one embodiment, for the smoothing interpolation filter, the value of the phase parameter P is the same as the value of the fractional sample position p. In Figure 9, blocks F1 and F2 represent linear interpolation filters. The coefficients for each of these filters are expressed in terms of the phase parameter p as follows:
[0236]
number
[0237] In one example, here, and further, a division operation may be defined with or without rounding, i.e.
[0238]
number
[0239] or
[0240]
number
[0241] where "a" is the division designator and "n" is the power of the two parameters in the denominator.
[0242] Block F3 is a constant coefficient c0=16 c1=16 represents a two-tap low-pass filter with
[0243] In one example, filters F1..F3 are not normalized, F3 has more DC gain than F1, and F3 has more DC gain than F2.
[0244] The outputs of the filters F1..F3 are summed and normalized. Normalization (block “>>”) can be performed, for example, by right-shifting or by division with rounding as explained above.
[0245] The resulting equation for this combination (equivalent 4-tap filter) is expressed as:
[0246]
number
[0247] This embodiment allows for a LUT-based implementation, according to which coefficient values can also be defined using a LUT, and the values stored in this LUT are defined using Table 4 (for both rounded and unrounded cases).
[0248] [Table 10]
[0249] It can be noted from Table 4 that the coefficients are in the range [0,31]. This fact explains the technical advantage of the present invention, which consists in the possibility of using 16-bit multipliers for 8-bit and 10-bit pictures, which are and will be most frequently used, at least in the medium term. A typical implementation of the present invention will comprise four parallel multiplication operations, the operands of which have a bit depth of up to 6 for the filter coefficients and 10 for the samples. The result of the multiplication will not exceed a 16-bit value, thus making the proposed coefficients favorable from an implementation point of view.
[0250] In inter prediction mode, block motion compensation is performed. Motion compensation may include an interpolation filtering step similar to intra interpolation filtering. Another beneficial feature of the present invention is that the coefficients of the interpolation filter have the same precision for both intra prediction and inter prediction modes (i.e., the bit depth of the coefficient values is the same). If the precision of the interpolation filter coefficients is higher in the intra prediction case, it may adversely affect the computational complexity of the video codec. This is because intra prediction is inherently sequential, requiring reconstructed samples of previous blocks. In contrast, inter prediction may be performed in parallel. Therefore, if the precision of interpolation is higher for intra prediction than for inter prediction, it may deepen the implementation misbalance between the intra prediction pipeline and the inter prediction pipeline. This matching of precision makes it possible to avoid such a negative conclusion.
[0251] Another advantage of the proposed invention is the reduction of coefficient diversity: considering that pairs of adjacent rows in Table 4 are identical, a practical implementation of the invention would fetch from a LUT with only 16 rows (rows corresponding to even values of p in the "no rounding" case and rows corresponding to odd values of p in the "rounding" case) instead of 32 rows.
[0252] The technical effect of the present invention is that the present invention has at least the following types of implementations: - a LUT-less implementation that uses the value of p to calculate the filter coefficients, where the calculation is based on the analytical formula described above; and - A LUT-based implementation that fetches filter coefficients from the LUT using an index value based on the value of p. The goal is to make it possible.
[0253] The precision of the value of p is reduced when calculating the value of the coefficient. In particular, the value of the coefficient is calculated using an integer division by 2, i.e.,
[0254]
number
[0255] In the case of a LUT-based implementation, this precision reduction results in a reduction in the memory required to store the LUT. In hardware, this also reduces the number of wires in the LUT's address bus.
[0256] According to an embodiment of the present disclosure, there is provided an apparatus for intra or inter prediction processing of a video frame, the apparatus including: a reference sample obtaining unit configured to obtain a reference sample; a sub-pixel offset value obtaining unit configured to obtain a value of a sub-pixel offset; and a sub-pixel 4-tap interpolation filter configured to filter the reference sample to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are:
[0257]
number
[0258] where p is the fractional part of the value of the sub-pixel offset, and c0, c1, c2, and c3 are the filter coefficients of the sub-pixel 4-tap interpolation filter.
[0259] According to one embodiment of the present disclosure, the filter coefficients of the sub-pixel 4-tap interpolation filter are listed in the following table:
[0260] [Table 11A]
[0261] [Table 11B]
[0262] It is specified in.
[0263] According to an embodiment of the present disclosure, there is provided an apparatus for intra or inter prediction processing of a video frame, the apparatus comprising: a reference sample obtaining unit configured to obtain a reference sample; a sub-pixel offset value obtaining unit configured to obtain a value of a sub-pixel offset; and a sub-pixel 4-tap interpolation filter configured to filter the reference sample to obtain a predicted sample value, wherein filter coefficients of the sub-pixel 4-tap interpolation filter are as follows, i.e.
[0264] [Table 12]
[0265] where p is the fractional part of the sub-pixel offset value, and c0, c1, c2, and c3 are filter coefficients.
[0266] FIG. 25 shows a schematic diagram of an intra / inter processing module 2500, which includes a reference sample obtaining unit 2510, a sub-pixel offset value obtaining unit 2520, and a sub-pixel interpolation filter 2530.
[0267] According to an embodiment of the present disclosure, there is provided an apparatus for video coding, the apparatus comprising: an intra-prediction processing unit configured to intra-predict blocks of a video frame; and a sub-pixel 4-tap interpolation filter configured to filter reference samples of the video frame, the sub-pixel 4-tap interpolation filter being a combination of filters, and filter coefficients of at least one of the filters being:
[0268]
number
[0269] where p is the fractional sample position of the sub-pixel offset, and c0, c1, c2, and c3 are filter coefficients.
[0270] FIG. 26 shows a schematic diagram of a video coding module 2600, comprising an intra-prediction processing unit 2610 and a sub-pixel interpolation filter 2620.
[0271] According to one embodiment of the present disclosure, there is provided an encoder (20) comprising processing circuitry for performing a method according to any one of the previous embodiments of the present disclosure.
[0272] According to one embodiment of the present disclosure, there is provided a decoder (30) comprising processing circuitry for performing a method according to any one of the previous embodiments of the present disclosure.
[0273] According to an embodiment of the present disclosure, there is provided a computer program product comprising a program code for performing a method according to any one of the previous embodiments of the present disclosure.
[0274] According to one embodiment of the present disclosure, there is provided a decoder comprising one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the decoder to perform a method according to any one of the previous embodiments of the present disclosure.
[0275] According to one embodiment of the present disclosure, there is provided an encoder comprising one or more processors and a non-transitory computer-readable storage medium coupled to the processors and storing programming for execution by the processors, the programming, when executed by the processors, configuring the encoder to perform a method according to any one of the previous embodiments of the present disclosure.
[0276] The present disclosure according to any of the previous embodiments may provide the advantage of performing intra / inter prediction of video frames quickly because the filter coefficients of the interpolation filter are obtained analytically, i.e., the coefficients are calculated on the fly, which avoids storing the coefficients in a look-up table (LUT), which requires access time to read the coefficients from memory.
[0277] Therefore, the prediction becomes more efficient and places less demand on the memory required. This also allows for a low-cost implementation of the prediction. Furthermore, the analytical filter coefficients {c i Because {\displaystyle \mathbb {R}} is linear in the fractional sample position p and involves a divide-by-two operation, each operation can be performed efficiently by employing fast low-level bit operations. The time to perform the bit operations and to calculate the filter coefficients is shorter than the time to access the stored coefficients from the LUT. Thus, latency is reduced.
[0278] Furthermore, the specific analytical structure of the filter coefficients may provide the advantage of low-complexity implementation of the filter unit. In addition, the filter responses (i.e., frequency responses) for different sub-pixel positions are consistent in magnitude and phase, avoiding artifacts in the response, especially at high frequencies. The linearity of the filter coefficients may provide the advantage of hardware reuse.
[0279] In one embodiment, for the sharpening interpolation filter, the strength parameter S is defined as:
[0280]
number
[0281] This intensity parameter S is defined to have a maximum value at half-pel positions (p=16). For sub-pixel positions closer to integer positions, the intensity parameter S has smaller values. An exemplary combination of filters is shown in Figure 10. Block F1 in this figure represents a linear filter whose coefficients are defined as follows: c0=64-(p<<1) c1=p<<1
[0282] Block F2 represents a high-pass filter with the following coefficients: c0=-1 c1=1 c2=1 c3=-1
[0283] The output of block F2 is being multiplied by a strength parameter S. The result of the multiplication is further summed with the output of linear filter F1, and the resulting sum is normalized.
[0284] The resulting equation for this combination (equivalent 4-tap filter) is expressed as: c0=-S c1=64-(p<<1)+S c2=(p<<1)+S c3=-S
[0285] A LUT-based implementation is also possible for this formula. Table 5 gives the values of the coefficients.
[0286] [Table 13]
[0287] When filter F2 has negative coefficients, the normalized result is further clipped to fit into a range of allowed values, which may either be signaled in the SPS or derived from the bit depth of the samples.
[0288] An alternative embodiment is to specify an alternative position for the clipping operation (see FIG. 11). This alternative design is based on the fact that the linear filter F1 may not have output values lower or higher than any of its input values.
[0289] In one embodiment, the clipping block operates using the following steps.
[0290] Step 1 is to decide whether minimum or maximum thresholding should be performed.
[0291] Step 2 depends on the outcome of step 1. In particular, either minimum or maximum thresholding is performed.
[0292] If the input to the clipping block is negative, then minimum thresholding is applied; otherwise, maximum thresholding is applied. The output of step 2 (and of the clipping block), v c can be defined as follows:
[0293]
number
[0294] For an input value v, the minimum threshold output v cmin is calculated as follows:
[0295]
number
[0296] The maximum thresholding output is calculated as follows:
[0297]
number
[0298] p max is the maximum value of the range of acceptable values for the sample.
[0299] Value ref x and ref x-1 is the input reference sample shown in FIG. 11, which is the input of the linear filter F1.
[0300] In one embodiment, if clipping is performed after the multiplication operation, v c is calculated as follows:
[0301]
number
[0302] In some embodiments, filter F3 in Figure 9 and filter F2 in Figures 10 and 11 may not depend on the phase parameter P. These embodiments simplify implementation because the outputs of these filters may be the same for each input row of prediction samples, and therefore this step may be performed before starting the interpolation process, for example, at the reference sample filtering process stage. This approach increases parallelism and therefore reduces the latency of directional filtering.
[0303] Another alternative embodiment (see FIG. 12) uses a filter of adjustable strength rather than just a multiplier of the filter output. FIG. 12A shows the case where clipping is performed on the output of the high-pass filter F2. FIG. 12B shows the case where clipping is performed on the output of the normalized output of the combination of F1 and F2. Examples of filters of adjustable strength can be: bilateral filters, inverse transform filters, etc.
[0304] Another embodiment uses a reduced resolution of p, i.e., only 16 of the 32 entries are used. This is achieved, for example, by setting the least significant bit of p to 0.
[0305] As shown in Figures 13-21, various combinations of LUT-based and analytical representations of interpolation filter coefficients are possible for both intra-prediction and inter-prediction. For example, Figure 14 shows a use case in which coefficients for a smoothing interpolation filter used in an intra-prediction case are calculated, while coefficients for other interpolation filters for both intra-prediction and inter-prediction are stored in a LUT. In addition, video coding specifications may include both LUT-based and analytical representations of interpolation filter coefficients to enable various implementations. When both representations are described, the LUT-based and analytical representations should provide identical coefficients.
[0306] FIG. 22 illustrates an implementation of the coefficient calculation method shown in FIG.
[0307] c0=-S c1=64-(p<<1)+S c2=(p<<1)+S c3=-S In this equation, the strength parameter S is defined as follows:
[0308]
number
[0309] This implementation corresponds to a different way to derive the intensity parameter S (shown as the obtained value of "q" in FIG. 22). The value of the fractional sample position p is transferred into a demultiplexer DEMUX controlled by an input 1-bit signal SEL, which is set to the value of the 5th least significant bit of p (which has an index of 4 if indexing starts from 0). If this bit is equal to "1", the SEL signal indicates that the value of p is greater than 16 and the following value should be calculated: q=-(not(31 xor p)) where "not" and "xor" are the bitwise NOT and XOR operations, respectively. This expression is equivalent to q=(32-p), which in the C / C++ programming language is q=-(~(0x1F^p)) can be written as
[0310] Otherwise (i.e., if the input signal SEL of the demultiplexer DEMUX is equal to "0"), any calculations are bypassed and the signal p is forwarded to the multiplexer MUX, as is the signal q. The output signal r of the multiplexer MUX is passed to a module that calculates the value of t as follows: t=((r<<1)+r)>>3 where "<<" and ">>" are left-shift and right-shift operations, respectively.
[0311] In effect, this value of t is the strength parameter S. Further optimization is possible by performing the steps shown in Figure 22 in parallel with one of the coefficients of the linear filter. z=(64-(p<<1))
[0312] Once the values of both z and S are calculated, they can be added together to get c1=z+S.
[0313] Although embodiments of the present invention are 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 processing or coding, i.e., processing or coding of individual pictures independent of any preceding or subsequent pictures, as in video coding. Generally, 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 functionality (also called tools or techniques) of the video encoder 20 and the video decoder 30 may be equally used for still image 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.
[0314] For example, embodiments of the encoder 20 and the decoder 30, and functions described herein with reference 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 code and executed by a hardware-based processing unit. Computer-readable media may include computer-readable storage media, which correspond to tangible media such as data storage media or communication media including any medium that facilitates transfer of a computer program from one place to another, for example, according to a communication protocol. In this manner, computer-readable media may generally correspond to (1) tangible computer-readable storage media that are non-transitory, or (2) communication media such as a signal or carrier wave. Data storage media 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.
[0315] By way of example, and not limitation, such computer-readable storage media may comprise 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 termed 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 within the definition of medium. However, it should be understood that computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but instead cover non-transitory tangible storage media. As used herein, disk and disc include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically and discs reproduce data optically using lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0316] The instructions may be executed by one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application-specific integrated circuits (ASICs), field-programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term "processor," as used herein, may refer to any of the above structures or any other structure suitable for implementing the techniques described herein. Additionally, 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. Also, the techniques may be implemented entirely within one or more circuits or logic elements.
[0317] The techniques of this 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 disclosed techniques, but do not necessarily require realization by various hardware units. Rather, as described above, the various units may be combined in a codec hardware unit or may be provided by a collection of interoperable hardware units, including one or more processors as described above, along with suitable software and / or firmware.
[0318] In summary, this disclosure relates to intra- or inter-prediction for video encoding and decoding. For that purpose, an apparatus and method obtain reference samples and sub-pixel offset values. To obtain predicted sample values, a sub-pixel 4-tap interpolation filter is used to filter the reference samples.
[0319]
number
[0320] As such, the filter coefficients of the sub-pixel 4-tap interpolation filter are defined according to the value of the sub-pixel offset, where p is the fractional part of the value of the sub-pixel offset.
[0321] The following sections summarize additional embodiments.
[0322] Section 1: A method for an intra or inter prediction process of a video coding technique, the method comprising: obtaining a reference sample (i.e., at least one reference sample, and in one example, the number of reference samples may be four); obtaining a value for the sub-pixel offset; filtering the reference samples using a sub-pixel interpolation filter to obtain predicted sample values, where filter coefficients of the sub-pixel interpolation filter are obtained according to the value of the sub-pixel offset.
[0323] Section 2: The method of section 1, wherein the filter coefficients of the subpixel interpolation filter are obtained according to a fractional part of the value of the subpixel offset.
[0324] Section 3: The method of section 1 or section 2, wherein the subpixel interpolation filter is an equivalent 4-tap filter.
[0325] Section 4: The filter coefficients of the subpixel interpolation filter are
[0326]
number
[0327] where p is the fractional part of the value of the sub-pixel offset.
[0328] Section 5: The filter coefficients of the subpixel interpolation filter are c0=-S c1=64-(p<<1)+S c2=(p<<1)+S c3=-S and the intensity parameter S is obtained as follows, i.e.,
[0329]
number
[0330] where p is the fractional part of the value of the sub-pixel offset.
[0331] Clause 6: Any one of clauses 1 to 5, wherein a bit (e.g., a least significant bit, or a lower-order bit) of the subpixel offset p is set to 0.
[0332] 7. The method of any one of clauses 1 through 5, wherein the value of the subpixel offset p is incremented by 1, and then the low-order bit of the incremented value is set to 0 before this value is used to derive the filter coefficients.
[0333] Section 8: A method of video coding, the method comprising intra prediction of a block comprising sub-pixel interpolation filtering applied to reference samples; The sub-pixel interpolation filter is a combination of filters, at least one of which is determined according to the sub-pixel offset.
[0334] Section 9: The method of section 8, wherein the interpolation filter is a smoothing filter that is a parallel combination of two phase-dependent linear filters and a low-pass filter.
[0335] Section 10: The method of section 8, wherein the interpolation filter is a sharpening filter that is a parallel combination of one phase-dependent linear filter and an intensity-varying high-pass filter.
[0336] Section 11: The method of section 10, wherein the intensity variation high-pass filter is a phase-independent high-pass FIR filter, the output of which is multiplied by a phase-dependent intensity parameter.
[0337] Section 12: Combining filters
[0338]
number
[0339] where p is the fractional sample position p.
[0340] Section 13: Combining filters c0=-S c1=64-(p<<1)+S c2=(p<<1)+S c3=-S and the strength parameter S is:
[0341]
number
[0342] The method of Section 11 is as follows:
[0343] Clause 14: Any one of the methods in the previous clauses, wherein the low-order bit of fractional sample position p is set to 0.
[0344] Clause 15: The method of any one of clauses 8 to 13, wherein the fractional sample position p is incremented by 1, then the low-order bit of the incremented value is set to 0, and then this value is used to derive the interpolation filter coefficients.
[0345] Clause 16: The method of clause 10 or clause 11, wherein a clipping operation is performed on the output of the intensity variation high pass filter.
[0346] Clause 17: An encoder (20) comprising processing circuitry for carrying out a method according to any one of clauses 1 to 16.
[0347] Clause 18: A decoder (30) comprising processing circuitry for carrying out a method according to any one of clauses 1 to 16.
[0348] Clause 19: A computer program product comprising a program code for performing the method according to any one of clauses 1 to 16.
[0349] Section 20: A decoder, one or more processors; and a non-transitory computer-readable storage medium coupled to the processor and storing programming for execution by the processor, the programming, when executed by the processor, configuring the decoder to perform a method according to any one of clauses 1 to 16.
[0350] Section 21: An encoder, one or more processors; and a non-transitory computer-readable storage medium coupled to the processor and storing programming for execution by the processor, the programming, when executed by the processor, configuring the encoder to perform a method according to any one of clauses 1 to 16.
[0351] Section 22: A method for an intra or inter prediction process of a video coding technique, the method comprising: obtaining a reference sample (i.e., at least one reference sample, and in one example, the number of reference samples may be four); obtaining fractional sample positions; and filtering the reference samples using a sub-pixel interpolation filter to obtain predicted sample values, wherein filter coefficients of the sub-pixel interpolation filter are: c0=-S c1=64-(p<<1)+S c2=(p<<1)+S c3=-S where S is the intensity parameter, p is the fractional sample position, and c0, c1, c2, c3 are the filter coefficients.
[0352] Section 23: The method obtaining a value of the SEL signal by taking the Nth least significant bit of fractional sample position p, where N is a positive integer; obtaining an intermediate value called q, where q is set equal to the value of fractional sample position p when the SEL signal is 0, or q is set to −(not(31 xor p)) when the SEL signal is not 0; One addition and shift operation, namely, S=((q<<1)+q)>>3 and obtaining an intensity parameter S using
[0353] Section 24: The method of Section 23, where N is equal to 5.
[0354] Clause 25: The method of any one of clauses 22 to 24, wherein the subpixel interpolation filter is an equivalent 4-tap filter.
[0355] Section 26: The intensity parameter S is calculated in parallel with the coefficients of the linear filter z, which are used to obtain the filter coefficients c1 of the sub-pixel interpolation filter; z=64-(p<<1) Any one of the methods in paragraphs 22 to 25.
[0356] Clause 27: Any one of the methods of clauses 22 to 25, wherein a bit (e.g., a least significant bit, or a lower-order bit) of fractional sample position p is set to 0.
[0357] Clause 28: The method of any one of clauses 22 to 26, wherein the fractional sample position p is incremented by 1, then the low-order bit of the incremented value is set to 0, and then this value is used to derive the filter coefficients.
[0358] Clause 29: A method of video coding, the method comprising intra prediction of a block comprising sub-pixel interpolation filtering applied to reference samples; The subpixel interpolation filter is a combination of filters, at least one of which is determined according to the fractional sample position.
[0359] Clause 29: The method of clause 28, wherein the interpolation filter is a smoothing filter that is a parallel combination of two phase-dependent linear filters and a low-pass filter.
[0360] Clause 30: The method of clause 29, wherein the interpolation filter is a sharpening filter that is a parallel combination of one phase-dependent linear filter and an intensity-varying high-pass filter.
[0361] Clause 31: The method of clause 30, wherein the intensity variation high pass filter is a phase independent high pass FIR filter, the output of which is multiplied by a phase dependent intensity parameter.
[0362] Clause 32: An encoder (20) comprising processing circuitry for carrying out a method according to any one of clauses 22 to 31.
[0363] Clause 33: A decoder (30) comprising processing circuitry for carrying out a method according to any one of clauses 22 to 31.
[0364] Clause 34: A computer program product comprising a program code for performing the method according to any one of clauses 22 to 31.
[0365] Section 35: A decoder, one or more processors; and a non-transitory computer-readable storage medium coupled to the processor and storing programming for execution by the processor, the programming, when executed by the processor, configuring the decoder to perform a method according to any one of clauses 22 to 31.
[0366] Section 36: An encoder, one or more processors; and a non-transitory computer-readable storage medium coupled to the processor and storing programming for execution by the processor, the programming, when executed by the processor, configuring the encoder to perform a method according to any one of clauses 22 to 31. [Explanation of symbols]
[0367] Figure 1A 10. Video Coding System 12 Source Devices 13 Communication Channels 14 Destination Device 16 Picture Source 17 Picture Data 18 Preprocessors 19 Preprocessed Picture Data 20 Video Encoder 21 Encoded Picture Data 22 Communication Interface 28 Communication Interface 30 Video Decoder 31 Decoded Picture Data 32 Post Processors 33 Post-processed picture data 34 Display Devices Figure 1B 40 Video Coding System 41 Imaging Devices 42 Antenna 43 processors 44 Memory Store 45 Display Devices 46 Processing circuit configuration 20 Video Encoder 30 Video Decoder Figure 2 17 Picture (data) 19 Preprocessed Picture (Data) 20 Video Encoder 21 Encoded Picture Data 201 Input section (interface) 204 Residual Calculation [unit or step] 206 Conversion Processing Unit 208 quantization units 210 Inverse Quantization Unit 212 Inverse Transformation Processing Unit 214 Reconstruction Unit 220 Loop Filter Unit 230 Decoded Picture Buffer (DPB) 260 Mode Selection Unit 270 Entropy Coding Unit 272 Output section (interface) 244 Inter Prediction Units 254 intra prediction units 262 division units 203 Picture Block 205 Residual Blocks 213 Reconstruction Residual Block 215 Reconstruction Block 221 Filtered Blocks 231 Decoded Picture 265 predicted blocks 266 Syntax Elements 207 Conversion Factor 209 Quantization Coefficients 211 Inverse quantization coefficients Figure 3 21 Encoded Picture Data 30 Video Decoder 304 Entropy Decoding Unit 309 Quantization Coefficients 310 Inverse Quantization Unit 311 Inverse quantization coefficients 312 Inverse Transformation Processing Unit 313 Reconstruction Residual Block 314 Reconstruction Unit 315 Reconstruction Block 320 Loop Filter 321 Filtered Blocks 330 Decoded Picture Buffer DBP 331 Decoded Picture 360 mode application unit 365 predicted blocks 366 Syntax Elements 344 Inter Prediction Unit 354 intra prediction units Figure 4 400 Video Coding Device 410 Inlet port / Input port 420 Receiver Unit Rx 430 processor 440 Transmitter Unit Tx 450 Exit Port / Output Port 460 memory 470 Coding Module Figure 5 500 source or destination devices 502 processor 504 memory 506 Code and Data 508 Operating Systems 510 Application Program 512 Bus 518 Display Figure 23 2300 Flowchart of Intra / Inter Prediction Processing Method Figure 24 2400 Video Coding Method Flowchart Figure 25 2500 Intra / Inter Processing Module 2510 Reference Sample Acquisition Unit 2520 Subpixel offset value acquisition unit 2530 Subpixel Interpolation Filter Figure 26 2600 Video Coding Module 2610 Intra Prediction Processing Unit 2620 Subpixel Interpolation Filter
Claims
1. 1. A method for intra- or inter-prediction processing of video frames, comprising: receiving a bitstream; applying an entropy decoding algorithm to the bitstream to obtain quantized coefficients, wherein the entropy decoding algorithm is a context-adaptive binary arithmetic coding algorithm; obtaining a residual block based on the quantized coefficients; obtaining a reference sample; obtaining a value for the sub-pixel offset; filtering the reference samples with a 4-tap interpolation filter to obtain predicted sample values of a predicted block; obtaining a decoded picture based on the residual block and the prediction block; Equipped with The filter coefficients of the 4-tap interpolation filter are [Equation 1] Fulfilling where p is the fractional part of the sub-pixel offset value, and c 0 , c 1 , c 2 , and c 3 are the filter coefficients of the 4-tap interpolation filter, method.
2. The filter coefficients of the 4-tap interpolation filter are as shown in the following table: Table 1 The method of claim 1, wherein
3. 2. The method of claim 1, wherein p is incremented by one, and then a low-order bit of the incremented p is set to zero before using p to obtain the filter coefficients.
4. The step of obtaining the filter coefficients includes: [Equation 2] The method of claim 1 , comprising calculating the filter coefficients according to:
5. 1. A method for intra- or inter-prediction processing of video frames, comprising: obtaining a picture block to be coded; obtaining a reference sample; obtaining a value for the sub-pixel offset; filtering the reference samples with a 4-tap interpolation filter to obtain predicted sample values of a predicted block; obtaining a residual block based on the prediction block and the picture block to be coded; obtaining quantization coefficients based on the residual block; applying an entropy coding algorithm to the quantized coefficients to obtain a bitstream, wherein the entropy coding algorithm is a context-adaptive binary arithmetic coding algorithm; Equipped with The filter coefficients of the 4-tap interpolation filter are [Equation 3] Fulfilling where p is the fractional part of the sub-pixel offset value, and c 0 , c 1 , c 2 , and c 3 are the filter coefficients of the 4-tap interpolation filter, method.
6. The filter coefficients of the 4-tap interpolation filter are as shown in the following table: Table 2 The method of claim 5, wherein
7. 6. The method of claim 5, wherein p is incremented by one, and then the least significant bits of the incremented p are set to zero before using p to obtain the filter coefficients.
8. The step of obtaining the filter coefficients includes: [Equation 4] The method of claim 5 , comprising calculating the filter coefficients according to:
9. 1. A video decoder comprising: at least one processor; one or more memories coupled to the at least one processor, the memories storing programming instructions that are executed by the at least one processor to cause the video decoder to perform the method of any one of claims 1 to 4; A video decoder comprising:
10. A video encoder at least one processor; one or more memories coupled to the at least one processor, the memories storing programming instructions that are executed by the at least one processor to cause the video encoder to perform the method of any one of claims 5 to 8; A video encoder comprising:
Citation Information
Patent Citations
Interpolation filters for intra prediction in video coding
US20180091825A1