AU2019210549A1 - Enhanced intra-prediction coding using planar representations - Google Patents
Enhanced intra-prediction coding using planar representations Download PDFInfo
- Publication number
- AU2019210549A1 AU2019210549A1 AU2019210549A AU2019210549A AU2019210549A1 AU 2019210549 A1 AU2019210549 A1 AU 2019210549A1 AU 2019210549 A AU2019210549 A AU 2019210549A AU 2019210549 A AU2019210549 A AU 2019210549A AU 2019210549 A1 AU2019210549 A1 AU 2019210549A1
- Authority
- AU
- Australia
- Prior art keywords
- prediction
- value
- pixel
- boundary pixels
- block
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Landscapes
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
ENHANCED INTRA-PREDICTION CODING USING PLANAR REPRESENTATIONS Disclosed is a video encoding method and video encoder for predicting pixel values in a target block, and a video decoding method and video decoder for predicting pixel values in a target block. In one aspect, the video encoding method comprises steps of: calculating a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode; calculating a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode; averaging the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and averaging pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
Description
ENHANCED INTRA-PREDICTION CODING USING PLANAR REPRESENTATIONS
RELATED APPLICATIONS [0001] The present application is a divisional of Australian Patent Application No.
2018201830, filed 14 March 2018, which in turn is a divisional of Australian Patent Application No. 2016202817, filed 3 May 2016, which in turn is a divisional of Australian Patent Application No. 2015203228, filed 15 June 2015, which in turn is a divisional of Australian Patent Application No. 2011349244, filed 21 December 2011, which claims priority from U.S. Provisional Patent Application Serial Nos. 61/425,670, filed 21 December 2010 and 61/449,528 filed 4 March 2011. Australian Patent Application Nos. 2018201830, 2016202817, 2015203228, 2011349244 and US Provisional Patent Application Nos. 61/425,670 and 61/449,528 are hereby incorporated by reference in their entirety.
BACKGROUND
1. Field of the Invention [0002] The present invention relates to video coding and in particular to intra-frame prediction enhanced with low complexity planar prediction mode coding.
2. Description of the Related Art [0003] Digital video requires a large amount of data to represent each and every frame of a digital video sequence (e.g., series of frames) in an uncompressed manner. It is not feasible for most applications to transmit uncompressed digital video across computer networks because of bandwidth limitations. In addition, uncompressed digital video requires a large amount of storage space. The digital video is normally encoded in some manner to reduce the storage requirements and reduce the bandwidth requirements.
[0004] One technique for encoding digital video is inter-frame prediction, or interprediction. Inter-prediction exploits temporal redundancies among different frames. Temporally adjacent frames of video typically include blocks of pixels, which remain substantially the same. During the encoding process, a motion vector interrelates the movement of a block of pixels in one frame to a block of similar pixels in another frame. Accordingly, the system is not required to encode the block of pixels twice, but rather encodes the block of pixels once and provides a motion vector to predict the other block of pixels.
23171341 (IRN: P077659D5)
2019210549 31 Jul 2019 [0005] Another technique for encoding digital video is intra-frame prediction or intra-prediction. Intra-prediction encodes a frame or a portion thereof without reference to pixels in other frames. Intra-prediction exploits spatial redundancies among blocks of pixels within a frame. Because spatially adjacent blocks of pixels generally have similar attributes, the efficiency of the coding process is improved by referencing the spatial correlation between adjacent blocks. This correlation may be exploited by prediction of a target block based on prediction modes used in adjacent blocks.
[0006] Typically, an encoder comprises a pixel predictor, which comprises an inter-predictor, an intra-predictor and a mode selector. The inter-predictor performs prediction for a received image, based on a motion compensated reference frame. The intra-predictor performs prediction for the received image based on already processed parts of the current frame or picture. The intrapredictor further comprises a plurality of different intra-prediction modes and performs prediction under the respective prediction modes. The outputs from the inter-predictor and the intra-predictor are supplied to the mode selector.
[0007] The mode selector determines which coding method is to be used, the inter-prediction coding or the intra-prediction cording, and, when the intraprediction coding is to be used, determines which mode of the intra-prediction coding is to be used among the plurality of intra-prediction modes. In the determining process, the mode selector uses cost functions to analyze which encoding method or which mode gives the most efficient result with respect to coding efficiency and processing costs.
[0008] The intra-prediction modes comprise a DC mode and directional modes. The DC mode suitably represents a block whose pixel values are constant across the block. The directional modes are suited to represent a block which has a stripe pattern in a certain direction. There is another image pattern in which the image is smooth and its pixel values gradually change in a block. The DC mode and the directional modes are not suited to predict small gradual changes in the image content and can create annoying blocking artifacts especially at low to medium bitrates. This is because when blocks with gradually changing pixel values are
2019210549 31 Jul 2019 encoded, the AC coefficients of the blocks tend to be quantized to zero, while the DC coefficients have non-zero values.
[0009] In order to cope with this problem, the intra-prediction modes under the H.264/AVC standard additionally include a planar mode to represent a block with a smooth image whose pixel values gradually change with a small planar gradient. Under the planar mode of the H.264/AVC standard, a planar gradient is estimated and signaled in a bitstream to a decoder.
SUMMARY [0009a] It is the object of the present invention to substantially overcome or at least ameliorate one or more of the above disadvantages.
[0010] The present disclosure provides a low complexity planar mode coding which can improve the coding efficiency of the intra-prediction coding. In the present disclosure, under the planar prediction mode, an encoder calculates a first prediction value and a second prediction value. The first prediction value is calculated using linear interpolation between a value of respective horizontal boundary pixels and a value of one of vertical boundary pixels. The second prediction value is calculated using linear interpolation between a value of respective vertical boundary pixels and a value of one of the horizontal boundary values. The encoder further performs averaging the first and second prediction value to derive a respective prediction value in a prediction block.
[0011] In one aspect of the present disclosure, the encoder signals a residual between the prediction block and a target block in a bitstream to a decoder.
[0012] In another aspect of the present disclosure, a primary set of transform kernel HN (i.j) is switched to a secondary set of transform kernel GN (i.j). The encoder transforms the residual, using the secondary set of transform kernel GN (i.j).
[0013] The secondary set of transform kernel GN (i.j) may be defined by one of the following equations:
AH26(23171340vl)
2019210549 31 Jul 2019 (a)
(b) (c)
G>(i,j) = k: xsin((2; ϊ)π), VI < i,j < N; and
4.V
[0014] In another aspect of the present disclosure, the secondary set of transform kernel GN (i.j) for size NxN is defined by the primary set of transform kernel HM (i.j) for size MxM, where M>N. Specifically, the secondary set of transform kernel GN (i., j) may be defined by (A (ij) = kiX H2n (2i,N + 1- j), if transform kernels of size 2Nx2N (H2N) are supported, or
GN (ij) = HN (ij) otherwise.
[0015] The present disclosure also provides low complexity planar mode coding used for decoding. Under the planar mode, a decoder calculates a first prediction value and a second prediction value. The first prediction value is calculated using linear interpolation between a value of respective horizontal boundary pixels and a value of one of vertical boundary pixels. The second prediction value is calculated using linear interpolation between a value of respective vertical boundary pixels and a value of one of the horizontal boundary pixels. The decoder then performs averaging the first and second prediction value to derive a respective prediction pixel value in a prediction block. The decoder decodes a residual signaled from the encoder which was generated under the planar mode at the encoder and adds the decoded residual the prediction block to reconstruct image data.
[0015a] According to an aspect of the present disclosure, there is provided a video encoding method for predicting pixel values of each target pixel in a target block under a plurality of different intra-prediction modes including a DC mode, directional modes and a planar mode, the method comprising computer executable steps executed by a processor of a video encoder to implement: calculating a first prediction value of each target pixel using linear interpolation between a pixel value of a horizontal boundary pixel in the same horizontal position as each target pixel, from among a plurality of horizontal boundary pixels on the upper side of the target block, and a pixel value of one vertical boundary pixel from among a plurality of vertical boundary pixels on the left side of the target block when using the planar mode; calculating a second prediction value of each target pixel using linear interpolation between a pixel value of a
AH26(23171340vl)
4a
2019210549 31 Jul 2019 vertical boundary pixel in the same vertical position as each target pixel, from among a plurality of the vertical boundary pixels, and a pixel value of one horizontal boundary pixel from among a plurality of the horizontal boundary pixels when using the planar mode; and averaging the first prediction value and second prediction value of each target pixel to derive each prediction pixel value in a prediction block when using the planar mode.
[0015b] According to an aspect of the present disclosure, there is provided a video decoding method for predicting pixel values of each target pixel in a target block, the method comprising computer executable steps executed by a processor of a video decoder to implement: deriving a prediction mode selected by an encoder from among a plurality of different intra-prediction modes including a DC mode, directional modes, and a planar mode; calculating a first prediction value of each target pixel using linear interpolation between a pixel value of a horizontal boundary pixel in the same horizontal position as each target pixel, from among a plurality of horizontal boundary pixels on the upper side of the target block, and a pixel value of one vertical boundary pixel from among a plurality of vertical boundary pixels on the left side of the target block when the prediction mode is the planar mode; calculating a second prediction value of each target pixel using linear interpolation between a pixel value of a vertical boundary pixel in the same vertical position as each target pixel, from among a plurality of the vertical boundary pixels, and a pixel value of one horizontal boundary pixel from among a plurality of the horizontal boundary pixels when the prediction mode is the planar mode; and averaging the first prediction value and second prediction value of each target pixel to derive each prediction pixel value in a prediction block when the prediction mode is the planar mode.
[0015c] According to an aspect of the present disclosure, there is provided a video encoder that predicts pixel values of each target pixel in a target block under a plurality of different intraprediction modes including a DC mode, directional modes and a planar mode, comprising a processor of a computer system and a memory that stores programs executable by the processor to: calculate a first prediction value of each target pixel using linear interpolation between a pixel value of a horizontal boundary pixel in the same horizontal position as each target pixel, from among a plurality of horizontal boundary pixels on the upper side of the target block, and a pixel value of one vertical boundary pixel from among a plurality of vertical boundary pixels on the left side of the target block when using the planar mode; calculate a second prediction value of each target pixel using linear interpolation between a pixel value of a vertical boundary pixel
AH26(23171340vl)
4b
2019210549 31 Jul 2019 in the same vertical position as each target pixel, from among a plurality of the vertical boundary pixels, and a pixel value of one horizontal boundary pixel from among a plurality of the horizontal boundary pixels when using the planar mode; and average the first prediction value and second prediction value of each target pixel to derive each prediction pixel value in a prediction block when using the planar mode.
[0015d] According to an aspect of the present disclosure, there is provided a video decoder that predicts pixel values of each target pixel in a target block, comprising a processor of a computer system and a memory that stores programs executable by the processor to: deriving a prediction mode selected by an encoder from among a plurality of different intra-prediction modes including a DC mode, directional modes, and a planar mode; calculate a first prediction value of each target pixel using linear interpolation between a pixel value of a horizontal boundary pixel in the same horizontal position as each target pixel, from among a plurality of horizontal boundary pixels on the upper side of the target block, and a pixel value of one vertical boundary pixel from among a plurality of vertical boundary pixels on the left side of the target block when the prediction mode is the planar mode; calculate a second prediction value of each target pixel using linear interpolation between a pixel value of a vertical boundary pixel in the same vertical position as each target pixel, from among a plurality of the vertical boundary pixels, and a pixel value of one horizontal boundary pixel from among a plurality of the horizontal boundary pixels when the prediction mode is the planar mode; and average the first prediction value and second prediction value of each target pixel to derive each prediction pixel value in a prediction block when the prediction mode is the planar mode.
[0015e] According to an aspect of the present invention, there is provided a video encoding method for predicting pixel values in a target block, the method comprising computer executable steps executed by a processor of a video encoder to implement: calculating a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode; calculating a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode; averaging the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and averaging pixel values of the
AH26(23171340vl)
4c
2019210549 31 Jul 2019 horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
[0015f] According to an aspect of the present invention, there is provided a video decoding method for predicting pixel values in a target block, the method comprising computer executable steps executed by a processor of a video decoder to implement: calculating a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode; calculating a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode; averaging the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and averaging pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
[0015g] According to an aspect of the present invention, there is provided a video encoder that predicts pixel values in a target block, comprising a processor of a computer system and a memory that stores programs executable by the processor to: calculate a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode; calculate a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode; average the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and average pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
[0015h] According to an aspect of the present invention, there is provided a video decoder that predicts pixel values in a target block, comprising a processor of a computer system and a memory that stores programs executable by the processor to: calculate a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left
AH26(23171340vl)
4d
2019210549 31 Jul 2019 outside of the target block when using a planar mode; calculate a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode; average the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and average pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
BRIEF DESCRIPTION OF THE DRAWINGS [0016] FIG. 1 is a block diagram showing an exemplary hardware architecture on which the present invention may be implemented.
[0017] FIG. 2 is a block diagram showing a general view of a video encoder to which the present invention may be applied.
[0018] FIG. 3 is a block diagram showing a general view of a video decoder to which the present invention may be applied.
AH26(23171340vl)
2019210549 31 Jul 2019 [0019] FIG. 4 is a block diagram showing the functional modules of an encoder according to an embodiment of the present invention.
[0020] FIG. 5 is a flowchart showing an encoding process performed by the video encoder according to an embodiment of the present invention.
[0021] FIG. 6 is a block diagram showing the functional modules of a decoder according to an embodiment of the present invention.
[0022] FIG. 7 is a diagram showing a decoding process performed by the video decoder according to an embodiment of the present invention.
[0023] FIG. 8 is a schematic representation of a target block containing 8*8 pixels P(i,j) and reference pixels used to predict the pixels P(i,j).
[0024] FIG. 9 is a schematic representation showing the process of generating prediction pixels according to the planar mode coding proposed in JCT-VC Al 19. [0025] FIG. 10 is a schematic representation showing the process of generating prediction pixels according to the planar mode coding of the present invention. [0026] FIG. 11 is another schematic representation showing the process of generating prediction pixels according to the planar mode coding of the present invention.
[0027] FIG. 12 is a flowchart showing the process of switching between a primary set of transform kernel and a secondary set of transform kernel.
DETAILED DESCRIPTION OF THE DRAWINGS AND THE PRESENTLY PREFERRED EMBODIMENTS [0028] FIG. 1 shows an exemplary hardware architecture of a computer 100 on which the present invention may be implemented. Please note that the hardware architecture shown in FIG. 1 may be common in both a video encoder and a video decoder which implement the embodiments of the present invention. The computer 100 includes a processor 101, memory 102, storage device 105, and one or more input and/or output (I/O) devices 106 (or peripherals) that are communicatively coupled via a local interface 107. The local interface 105 can be, for example, but not limited to, one or more buses or other wired or wireless connections, as is known in the art.
2019210549 31 Jul 2019 [0029] The processor 101 is a hardware device for executing software, particularly that stored in the memory 102. The processor 101 can be any custom made or commercially available processor, a central processing unit (CPU), an auxiliary processor among several processors associated with the computer 100, a semiconductor based microprocessor (in the form of a microchip or chip set), or generally any device for executing software instructions.
[0030] The memory 102 comprises a computer readable medium, which can include any one or combination of volatile memory elements (e.g., random access memory (RAM, such as DRAM, SRAM, SDRAM, etc.)) and nonvolatile memory elements (e.g., ROM, hard drive, tape, CDROM, etc.). Moreover, the memory 102 may incorporate electronic, magnetic, optical, and/or other types of storage media. A computer readable medium can be any means that can store, communicate, propagate or transport the program for use by or in connection with the instruction execution system, apparatus or device. Please note that the memory 102 can have a distributed architecture, where various components are situated remote from one another, but can be accessed by the processor 101.
[0031] The software 103 in the memory 102 may include one or more separate programs, each of which contains an ordered listing of executable instructions for implementing logical functions of the computer 100, as described below. In the example of FIG. 1, the software 103 in the memory 102 defines the computer 100's video encoding or video decoding functionality in accordance with the present invention. In addition, although not required, it is possible for the memory 102 to contain an operating system (O/S) 104. The operating system 104 essentially controls the execution of computer programs and provides scheduling, input-output control, file and data management, memory management, and communication control and related services.
[0032] The storage device 105 of the computer 100 may be one of many different types of storage device, including a stationary storage device or portable storage device. As an example, the storage device 105 may be a magnetic tape, disk, flash memory, volatile memory, or a different storage device. In addition,
2019210549 31 Jul 2019 the storage device 105 may be a secure digital memory card or any other removable storage device 105.
[0033] The I/O devices 106 may include input devices, for example, but not limited to a touch screen, a keyboard, mouse, scanner, microphone or other input device. Furthermore, the I/O devices 106 may also include output devices, for example, but not limited to a display or other output devices. The I/O devices 106 may further include devices that communicate via both inputs and outputs, for instance, but not limited to a modulator/demodulator (e.g., modem; for accessing another device, system, or network), a radio frequency (RF), wireless or other transceiver, a telephonic interface, a bridge, a router or other devices that function both as an input and an output.
[0034] As is well known by those having ordinary skill in the art, video compression is achieved by removing redundant information in a video sequence. Many different video coding standards exist, examples of which include MPEG-1, MPEG-2, MPEG-4, H.261, H.263, and H.264/AVC. It should be noted that the present invention is not intended to be limited in application of any specific video coding standard. However, the following description of the present invention is provided, using the example of H.264/AVC standard, which is incorporated herein by reference. H.264/AVC is the newest video coding standard and achieves a significant performance improvement over the previous coding standards such as MPEG-1, MPEG-2, H.261 and H.263.
[0035] In H.264/AVC, each frame or picture of a video can be broken into several slices. The slices are then divided into blocks of 16* 16 pixels called macroblocks, which can then be further divided into blocks of 8x16, 16x8, 8x8, 4x8, 8x4, down to 4x4 pixels. There are five types of slices supported by H.264/AVC. In I slices, all the macroblocks are coded using intra-prediction. In P slices, macroblocks can be coded using intra or inter-prediction. P slices allow only one motion compensated prediction (MCP) signal per macroblock to be used. In B slices, macroblocks can be coded using intra or inter-prediction. Two MCP signals may be used per prediction. SP slices allow P slices to be switched
2019210549 31 Jul 2019 between different video streams efficiently. An SI slice is an exact match for an SP slice for random access or error recovery, while using only intra-prediction. [0036] FIG. 2 shows a general view of a video encoder to which the present invention may be applied. The blocks shown in the figure represent functional modules realized by the processor 101 executing the software 103 in the memory 102. A picture of video frame 200 is fed to a video encoder 201. The video encoder treats the picture 200 in units of macroblocks 200A. Each macroblock contains several pixels of picture 200. On each macroblock, a transformation into transform coefficients is performed followed by a quantization into transform coefficient levels. Moreover, intra-prediction or inter-prediction is used, so as not to perform the coding steps directly on the pixel data but on the differences of same to predicted pixel values, thereby achieving small values which are more easily compressed.
[0037] For each slice, the encoder 201 generates a number of syntax elements, which form a coded version of the macroblocks of the respective slice. All residual data elements in the syntax elements, which are related to the coding of transform coefficients, such as the transform coefficient levels or a significance map indicating transform coefficient levels skipped, are called residual data syntax elements. Besides these residual data syntax elements, the syntax elements generated by the encoder 201 contain control information syntax elements containing control information as to how each macroblock has been encoded and has to be decoded, respectively. In other words, the syntax elements are dividable into two categories. The first category, the control information syntax elements, contains the elements related to a macroblock type, sub-macroblock type and information on prediction modes both of a spatial and temporal types, as well as slice-based and macroblock-based control information, for example. In the second category, all residual data elements, such as a significance map indicating the locations of all significant coefficients inside a block of quantized transform coefficients and the values of the significant coefficients, which are indicated in units of levels corresponding to the quantization steps, are combined and become residual data syntax elements.
2019210549 31 Jul 2019 [0038] The encoder 201 comprises an entropy coder which encodes syntax elements and generates arithmetic codewords for each slice. When generating the arithmetic codewords for a slice, the entropy coder exploits statistical dependencies among the data values of syntax elements in the video signal bit stream. The encoder 201 outputs an encoded video signal for a slice of picture 200 to a video decoder 301 shown in FIG. 3.
[0039] FIG. 3 shows a general view of a video decoder to which the present invention may be applied. Likewise, the blocks shown in the figure represent functional modules realized by the processor 101 executing the software 103 in the memory 102. The video decoder 301 receives the encoded video signal and first entropy-decodes the signal back into the syntax elements. The decoder 301 uses the syntax elements in order to reconstruct, macroblock by macroblock and then slice after slice, the picture samples 300A of pixels in the picture 300.
[0040] FIG. 4 shows the functional modules of the video encoder 201. These functional modules are realized by the processor 101 executing the software 103 in the memory 102. An input video picture is a frame or a field of a natural (uncompressed) video image defined by sample points representing components of original colors, such as chrominance (“chroma”) and luminance (“luma”) (other components are possible, for example, hue, saturation and value). The input video picture is divided into macroblocks 400 that each represent a square picture area consisting of 16x 16 pixels of the luma component of the picture color. The input video picture is also partitioned into macroblocks that each represent 8x8 pixels of each of the two chroma components of the picture color. In general encoder operation, inputted macroblocks may be temporally or spatially predicted using inter or intra-prediction. It is however assumed for the purpose of discussion that the macroblocks 400 are all I-slice type macroblocks and subjected only to intraprediction.
[0041] Intra-prediction is accomplished at an intra-prediction module 401, the operation of which will be discussed below in detail. The intra-prediction module 401 generates a prediction block 402 from horizontal and vertical boundary pixels of neighboring blocks, which have previously been encoded, reconstructed and
2019210549 31 Jul 2019 stored in a frame memory 403. A residual 404 of the prediction block 402, which is the difference between a target block 400 and the prediction block 402, is transformed by a transform module 405 and then quantized by a quantizer 406. The transform module 405 transforms the residual 404 to a block of transform coefficients. The quantizer 406 quantizes the transform coefficients to quantized transform coefficients 407. The quantized transform coefficients 407 are then entropy-coded at an entropy-coding module 408 and transmitted (together with other information relating to the selected intra-prediction mode) as an encoded video signal 409.
[0042] The video encoder 201 contains decoding functionality to perform intra-prediction on target blocks. The decoding functionality comprises an inverse quantizer 410 and an inverse transform module 411, which perform inverse quantization and inverse transformation on the quantized transform coefficients 407 to produce the decoded prediction residual 412, which is added to the prediction block 402. The sum of the decoded prediction residual 410 and the prediction block 402 is a reconstructed block 413, which is stored in the frame memory 403 and will be read therefrom and used by the intra-prediction module 401 to generate a prediction block 402 for decoding of a next target block 400. A deblocking filter may optionally be placed at either the input or output of the frame memory 403 to remove blocking artifacts from the reconstructed images.
[0043] FIG. 5 is a flowchart showing processes performed by the video encoder 201. In accordance with the H.264/AVC Standard, intra-prediction involves predicting each pixel of the target block 400 under a plurality of prediction modes, using interpolations of boundary pixels (“reference pixels”) of neighboring blocks previously encoded and reconstructed. The prediction modes are identified by positive integer numbers 0, 1,2... each associated with a different instruction or algorithm for predicting specific pixels in the target block 400. The intra-prediction module 401 runs intra-prediction under the respective prediction modes and generates different prediction blocks. Under a full search (“FS”) algorithm, each of the generated prediction blocks is compared to the target block 400 to find the optimum prediction mode, which minimizes the prediction residual
2019210549 31 Jul 2019
404 or produces a lesser prediction residual 404 among the prediction modes (Step
501) . The identification of the optimum prediction mode is compressed (Step
502) and will be signaled to the decoder 301 with other control information syntax elements.
[0044] Each prediction mode may be described by a general direction of prediction as described verbally (i.e., horizontal up, vertical and diagonal down left). A prediction direction may be described graphically by an angular direction. The angle corresponding to a prediction mode has a general relationship to the direction from the weighted average location of the reference pixels used to predict a target pixel to the target pixel location. In the DC prediction mode, the prediction block 402 is generated such that each pixel in the prediction block 402 is set uniformly to the mean value of the reference pixels.
[0045] Turning back to FIG. 5, the intra-prediction module 401 outputs the prediction block 402, which is subtracted from the target block 400 to obtain the residual 404 (Step 503). The transform module 405 transforms the residual 404 into a block of transform coefficients (Step 504). The quantizer 406 quantizes the transform coefficients to quantized transform coefficients. The entropy coding mode 408 entropy-encodes the quantized transform coefficients (Step 506), which are sent along with the compressed identification of the optimum prediction mode. The inverse quantizer 410 inversely quantizes the quantized transform coefficients (Step 507). The inverse transform module 411 performs inverse transform to derive the decoded prediction residual 412 (Step 508), which is added with the prediction block 402 to become the reconstructed block 413 (Step 509).
[0046] FIG. 6 shows the functional modules of the video decoder 301. These functional modules are realized by the processor 101 executing the software 103 in the memory 102. The encoded video signal from the encoder 201 is first received by an entropy decoder 600 and entropy-decoded back to quantized transform coefficients 601. The quantized transform coefficients 601 are inversely quantized by an inverse quantizer 602 and inversely transformed by an inverse transform module 603 to generate a prediction residual 604. An intra-prediction module 605 is notified of the prediction mode selected by the encoder 201. According to the
2019210549 31 Jul 2019 selected prediction mode, the intra-prediction module 605 performs an intraprediction process similar to that performed in Step 503 of FIG. 5 to generate a prediction block 606, using boundary pixels of neighboring blocks previously reconstructed and stored in a frame memory 607. The prediction block 606 is added to the prediction residual 604 to reconstruct a block 608 of decoded video signal. The reconstructed block 608 is stored in the frame memory 607 for use in prediction of a next block.
[0047] FIG. 7 is a flowchart showing processes performed by the video encoder 201. The video decoder 301 decodes the identification of the optimum prediction mode signaled from the video encoder 201 (Step 701). Using the decoded prediction mode, the intra-prediction module 605 generates the prediction block 606, using boundary pixels of neighboring blocks previously reconstructed and stored in a frame memory 607 (Step 702). The arithmetic decoder 600 decodes the encoded video signal from the encoder 201 back to the quantized transform coefficients 601 (Step 703). The inverse quantizer 602 inversely quantizes the quantized transform coefficients to the transform coefficients (Step 704). The inverse transform module 603 inversely transforms the transform coefficients into the prediction residual 604 (Step 705), which is added with the prediction block 606 to reconstruct the block 608 of decoded video signal (Step 706).
[0048] The encoding process performed by the video encoder 201 may further be explained with reference to FIG. 8. FIG. 8 is a schematic representation of a target block containing 8x8 pixels P(i,j) and reference pixels used to predict the pixels P(i, j). In FIG. 8, the reference pixels consist of 17 horizontal pixels and 17 vertical pixels, where the upper left pixel is common to both horizontal and vertical boundaries. Therefore, 32 different pixels are available to generate prediction pixels for the target block. Please note that although FIG. 8 shows an 8x8 block to be predicted, the following explanation is generalized to become applicable to various numbers of pixels in different configurations. For example, a block to be predicted may comprises a 4x4 array of pixels. A prediction block
2019210549 31 Jul 2019 may also comprise an 8x8 array of pixels, a 16x16 array of pixels, or larger arrays of pixels. Other pixel configurations, including both square and rectangular arrays, may also make up a prediction block.
[0049] Suppose that a block of pixels ({P(i,f) :l<i,j < N }) undergoes intraprediction coding using horizontal and vertical reference pixels ({P(i,0): 0 < i < IN} u {P(0,j): 0 < j < 2N}). Where Po(i,j) denotes the original pixel values of the target block, Pp(i,j) denotes the predicted pixel values, PR(i,j) denotes the residual values, Pe(i,j) denotes the compressed residual values and Pc(i,j} denotes the compressed values for the pixels P(i,f), the following equations define their relationship:
Pr (6 J) = Po(i, J) ~ PP(i, J), VI < z, j < TV
PT(1: W1: N) = QF(HN F *PR(\- N,\: N) * «)r)
Pe(l: W1: N) = < *2/(^(1: A,1: A))
PC<J,J) = Pe(i,j} + Pp(i,j}yi < i,j < N
HP is an N xN matrix representing the forward transform kernel. is an
N *N matrix representing the inverse transform kernel. //(I: N,1: N} represents the transformed and quantized residual signals in a bitstream. QF( ) represents the quantization operation and (?,( ) represents the inverse quantization operation. [0050] The predicted pixel values PP(i,j} are determined by an intra-prediction mode performed with the reference pixels {P(i,0) :Q<i< 2N} u {P(0, j): 0 < j < 2N}. H.264/AVC supports Intra_4x4 prediction, Intra_8x8 prediction and Intra_16xl6 prediction. Intra_4x4 prediction is performed under nine prediction modes, including a vertical prediction mode, a horizontal prediction mode, a DC prediction mode and six angular prediction modes. Intra_8x8 prediction is performed under the nine prediction modes as performed in Intra_4x4 prediction. Intra_16x 16 prediction is performed under four prediction modes, including one a vertical prediction mode, a horizontal prediction mode, a DC prediction mode and a planar prediction mode. For
2019210549 31 Jul 2019 example, the predicted pixel values Pp(i.j) derived under the DC prediction mode, the vertical prediction mode and the horizontal prediction mode are defined as follows:
DC prediction mode:
N ^Pc(k,0) + Pc(0,k) p P(i,j) = -------—-------, VI < i,j < N
Vertical prediction mode:
pP(ij) = pc(o,j)yi<i,j<N
Horizontal prediction mode:
Pp(i,j) = Pc(i,0),VI <i,j< N [0051] Recently, Proposal No. JCT-VC Al 19 was submitted to Joint Collaborative Team on Video Coding (JCT-VC), which is incorporated herein by reference. Proposal No. JCT-VC Al 19 proposes a low complexity planar mode operation which uses a combination of linear and bi-linear interpolation operations to predict gradually changing pixel values with a small planar gradient. The proposed planar mode process is schematically shown in FIG. 9. The process begins with identifying the value Pp(N,N) of the bottom-right pixel in a block to be predicted. Then, linear interpolations are performed between the value Pp(N,N) and reference pixel value Pc(N,0)to obtain predicted pixel values Pp(N,j) of the bottom row in the block. Likewise, linear interpolations are performed between the value Pp(N,N) and reference pixel value Pc(0,N)to obtain predicted pixel values Pp(i,N) of the rightmost column in the block. Thereafter, bi-linear interpolations are performed among the predicated pixel values Pp(N,j) andPp(i,N) and reference pixel values //(7,0) and 7/,(0,/) to obtain the rest of the pixel values Pp(i,j) in the block. The proposed planar mode process may be expressed by the following equations:
Right column:
PrlJ, N) = (-0xA(0A) + /xP,WW) >V1,,., (W _,)
2019210549 31 Jul 2019
Bottom row:
PP(N,j) = (N - j)xPc(N,0) + jxPp(N,N)
N
Rest of the pixels:
PP(i,j) = (N - z) x Pc(0,7) + z x Pp(N,j) + (N - j) x Pc(i,G) + j xPp(i,N) 2N ,Vl<z,7<(W-l) [0052] There are two issues to be resolved may be found in the planar mode process proposed in JCT-VC Al 19. In the proposed process, the value Pp(N,N) of the bottom-right pixel is signaled in a bitstream to the decoder and used to decode the target block at the decoder. In other words, the decoder needs the value of the bottom-right pixel to perform prediction under the proposed planar mode. Also, in the proposed process, the residual is not derived under the planar mode and thus not signaled to the decoder. Omission of residual signaling may contribute to reduction of encoded video data to be transmitted, but limits the application of the planar mode to low bit-rate video coding.
[0053] The planar mode according to the present invention is designed to resolve the above-mentioned issues associated with the planar mode process proposed in JCT-VC Al 19. According to an embodiment of the present invention, the value Pp(N,N) of the bottom-right pixel is derived from the reference pixels. Therefore, there is no need to signal the pixel value Ρρ(Ν,Ν)οΐthe bottom-right pixel to the decoder. In another embodiment of the present invention, the prediction block formed under the planar mode is used to derive a residual, which is transformed and quantized for signaling to the decoder. The application of conventional discrete cosine transform (DCT) and quantization with a mid or coarse quantization parameter tends to yield zero AC coefficients and non-zero DC coefficients from residuals obtained under the planar mode. To avoid this, an embodiment of the present invention uses a secondary transform kernel, instead of the primary transform kernel, to transform a residual obtained under the planar mode. Also, another embodiment performs adaptive quantization under the planar
2019210549 31 Jul 2019 mode in which the quantization parameter changes adaptively according to the spatial activity in the target block.
[0054] In an embodiment of the present invention, the value Pp(N,N) of the bottom-right pixel is calculated from the reference pixels. The value Pp(N,N) is calculated according to one of the following three methods:
Method 1:
PP(N,N) = ((Pc(N,0) + Pc(0,N))»l), where the operator “»” represents a right-shift operation with or without rounding.
[0055] Method 2:
PP(N,N) = wh x Pc(N,0) + wv x Pc(0,Nj, where wh and wv are weights determined, using /(0,1: N) and Pc(l: N,0). For example, wh and wv are calculated as follows:
_ var(/(l: /V,0)) h var(Pc(1: N,0) + var(Pc(0,1: N)) w =________var(Pc(0,l: AQ)________ var(Pc (1: N,0) + var(Pc (0,1: N)) where the operator “var( )” represents an operation to computer a variance.
[0056] Method 3:
PP(N,N) = ((Pc f(N,Q) + Pc f(Q,N))»l), where P/(0, A) = /(/,(0,0),/,(0,1),...,/,(0,22V)) and
P/«0) = /(/.(0,0),/.(1,0),...,PC(22V,0)). y = f (χ0,χλ,...,χ2Ν) represents an arithmetic operation. In an embodiment of the present invention, the arithmetic operation is defined as y = f(x0,xx,...,x2N) = Xn^ +x«n jn anothcr embodiment of the present invention, the arithmetic operation is simply defined as y = f (x0,x2N) = x2N . Please note that in the present invention, the value Pp(N,N) of the bottom-right pixel is not signaled to the decoder. Instead, the decoder calculates the value Pp(N,N) according to the method adopted by the
2019210549 31 Jul 2019 encoder, which may be predetermined or the identification of which may be signaled to the decoder.
[0057] FIG. 10 is a schematic view showing the process of predicting pixel values performed under the planar mode according to the embodiment of the present invention, in which above Method 1 is implemented. The process begins with calculating the value Pp(N,N) of the bottom-right pixel in a block using Method 1. After the value Pp (N, N) is calculated, linear interpolations are performed between the value PP(N,N) and reference pixel value Pc(N,0) to obtain predicted pixel values PP(N,j) of the bottom row in the block. Likewise, linear interpolations are performed between the value Pp(N,N) and reference pixel value Pc(fi,N) to obtain predicted pixel values PP(i,N) of the rightmost column in the block. Thereafter, bi-linear interpolations are performed among the predicted pixel values Pp(N, j) andPp(i,N) and reference pixel values Pc(z,0) and
Pc (0,/) to obtain the rest of the pixel values Pp (/, j) in the block. As shown by the following equations and FIG. 11, Method 1 can simplify the operation of predicting the pixel values PP(i,j) in a target block:
/>,</, ό = «/J (/, /)+p;a, Λ)»i), vi < /, j < n ,
Where and p;a,ji = (A-z)xFc(0,7-) + zxFc«0)
N if fractional accuracy is needed.
[0058] The above equations require divisions by the value N to calculate the pixel values PP(i,j) in the block. The divisional operations can be avoided by using an integer arithmetic as follows:
Pp(i,j) = ((Pp (i,j) + p;(i,j))»(1 + log2 N), VI < i,j < N , where Pp (i, j) = (N- j) x Pc (z,0) + j*Pc (0, N) and p; (i, j) = (N- i) X Pc (0,7) + i X Pc (N,Q)
If integer accuracy suffices, the pixel values Pp(i,f) may be expressed by
2019210549 31 Jul 2019
Pp(i,f) = C(Pp (i, J) + Pp(i,f)) »1), Vl i,j N where PpfJ) = ((N - j)xPc(i,0) + JxPc(0,N))» (log2V) and
P)(i, j) = ((N -i)xPc(0,7) + ixPc(A,0)) » (log2N) [0059] Method 1 may be modified as follows:
Pp(i,j) = ((PfiiJ) + p;(/,7) »1), Vl < i,j < N ph(i j} = (N-j)xPc(i,0) + jxPc f(0,N) p . (N-i)xPc(O,j) + ixPf (N,0)
Pf = f(Pc(fi,0),Pc(fi,l),...,Pc(fi,2Ny)
Pc f(N,0) = /(7^(0,0),Pc(l,0),...,PC(2A,0)), wherey = f(xQ,x},...,x2N) represents an arithmetic operation. In an embodiment of the present invention, the arithmetic operation is defined as y = f(x0,xl,...,x2N) = Χ'''1 + j'· in another embodiment of the present invention, the arithmetic operation is simply defined as y = f (x0,xx,...,x1N) = x1N . [0060] Method 1 may further be modified as follows:
pPd,j) = ((pfiij) + p;(ij) »i), vi < i,j < n ph(i ί} = (N- j)xPc(i,0) + j xP((i,N) p{,J) n pV(i SN-i)xPc(Q,j) + ixPf(N,j)
Pc f(i,N) = g(i,Pc(0,0),Pc(0,l),...,Pc(0,2N))
Pcf(N,j) = ^7,^(0,0),^(1,0),...,^(2^,0)), where y = g(i,xQ,x},...,x2N) represents a function which may be defined by one of the following four equations:
Equation 1:
y = g(i,x0,xl,...,x2N) = x2N
Equation 2:
2019210549 31 Jul 2019 y = g(i,x0,x1,...,x2N) = x(N+i)
Equation 3:
Equation 4:
y = = x(4+;), where x(4+;) is a filtered value of x(N+i} when a fdter is applied on the array [χθ,Χρ.,.χ^]. In an embodiment of the present invention, the filter may be a 3-tap filter · [0061] In the above embodiments, it is assumed that the vertical and horizontal reference pixels {P(z,0): 0 < i < 2N} u {P(0, j): 0 < j < 2N} are all available for prediction. The reference pixels may not be available if the target block is located at a boundary of slice or frame. If the vertical reference pixels {Τ’(ζ,Ο): 0 < i < 2N} are not available for prediction, but the horizontal reference pixels {P(0,j): 0 < j < 2N} are available, the assignment Pc(i,0) = 7^(0,1), VI < z < 2N is performed to generate the vertical reference pixels for prediction. If the horizontal reference pixels {P(0,j): 0 < i < 2N} are not available for prediction but the vertical reference pixels {P(i,f): 0 < j < 2N} are available, the assignment 7^(0,/) = pcVI -z - 2/V is performed to generate the horizontal reference pixels for prediction. If neither the vertical reference pixels nor the horizontal reference pixels are available for prediction, the assignment Pc(i,O) = Pc(0,j) = (
1« (Nb -1)), VI < i,j < 2N is performed to generate both vertical and horizontal reference pixels. In the equation, Nb represents the bit-depth used for representing the pixel values.
[0062] In an embodiment of the present invention, like prediction blocks generated under the other prediction modes, a prediction block generated under the planar mode is used to derive a residual 7^(1: N,1: N), which is transformed by the transform module 405 and quantized by the quantizer 406. The transformed and quantized residual 7^.(1: N,1: N) is signaled in a bitstream to the decoder.
2019210549 31 Jul 2019
Also, the transformed and quantized residual 7^.(1: N,1: N) is inversely transformed and quantized by the inverse transform module 410 and the inverse quantizer 411 to become a compressed residual PQ(\: 7V,1: N), which is stored in the frame memory 403 for use in predicting subsequent target blocks.
[0063] The entire transformed and quantized residual fy fl: N,1: N) may be signaled in a bitstream to the decoder. Alternatively, only a part of the residual 7j.(l: K,1: K) may be signaled in a bitstream to the decoder. K is smaller than N (K<N) and is set to a predetermined value, e.g., 1. The value of K may be signaled in a bitstream to the decoder. If the decoder receives only a part of the residual 7^.(1: K,1: K), it decodes the part of the residual and sets 0 to the remaining part of the residual. Although only a part of the residual is signaled to the decoder, the entire residual 7j.(l: 7V,1: N) is inversely transformed and quantized to derive a compressed residual 7^(1: 7V,1: N) for the purpose of predicting subsequent target blocks.
[0064] Further, in another embodiment of the present invention, the quantization parameter is adaptively changed to quantize a residual generated under the planar mode. The planar mode is applied to a block with a smooth image whose pixel values gradually change with a small planar gradient. A residual from such a smooth block tends to be quantized to zero with a mid or coarse quantization parameter. To assure that quantization yields non-zero coefficients, in the embodiment of the present invention, the quantization parameter is switched to a finer quantization parameter when a residual generated under the planar mode is quantized. The quantization parameter ((JT’^Jused to quantize a residual generated under the planar mode may be defined with a base quantization parameter (QPbaseP). QPbasePmay be set to a predetermined value representing a finer quantization parameter. If QPbaseP is not known to the decoder, it may be signaled in a bitstream to the decoder, or more specifically signaled in the slice header or in the picture parameter set, as defined in H.264/AVC.
2019210549 31 Jul 2019 [0065] In an embodiment of the present invention, QPPlimar is simply set to
QPbasep(QPplanar = QPbasepY QPpianar be defined with a sum of QPbaseP and QPN (QPpianar = Qpbasep + QPN where QPN is determined, using a look-up table which lists values of QPN in relation to values of N. QPPlanar may alternatively be defined as QPpianar = QP^eP + QPdtffW) · (A) is a function of the value N and signaled in a bitstream to the decoder, or more specifically signaled in the slice header or in the picture parameter set, as defined in H.264/AVC. The decoder determines QPdtff(N) from the bitstream for each of the values N supported in its video codec scheme.
[0066] In another embodiment of the present invention, by adding a differential quantization parameter (QPddta), QPbaseP is modified as QPbaseP = QPbaseP + QPddta.
QPdelta is a quantization parameter determined from a spatial activity in a block or group of blocks to adjust QPbaseP adaptively to the spatial activity. QPdelta is signaled in a bitstream to the decoder. Since QPdelta is determined from a spatial activity in a block, it may become zero depending on the image content in the block and does not affect QPbaseP for the planar prediction mode.
[0067] Further in another embodiment of the present invention, QPPtanar is determined with a normal quantization parameter QPnormal, which is used to quantize residuals generated under prediction modes other than the planar mode. In such an embodiment, QPPtanar is determined according to one of the following five ways:
op = OP ’ Planar normal
Ί. QPpianar = QPnOrmai + QPN > where QPN is determined from a look-table which lists values of QPN in relation to values of N.
3. QPpianar = QPnormai + QPdiffW , where QPdiff(N) is a function of the value N and signaled in a bitstream to the decoder.
2019210549 31 Jul 2019
4· QPpianar = Qpnonnai + Qpdeita, where QP^ is a quantization parameter determined from a spatial activity in a block or group of blocks to adaptively adjust QPnormai and is signaled in a bitstream to the decoder.
· QPPlanar = QPnormal + QPN + QPdelta [0068] In another embodiment of the present invention, the transform module 405 and the inverse transform module 410 use a secondary set of forward and inverse transform kernels (Gj and Gj) for forward and inverse transform of a residual generated under the planar mode, instead of using the primary set of forward and inverse transform kernels (Hf and ). The primary set of transform kernels are used to transform residuals generated under prediction modes other than the planar mode and suited for blocks in which there is high frequency energy. On the other hand, blocks to be subjected to the planar prediction mode have low spatial activities therein and need transform kernels adapted for blocks with smooth images. In this embodiment, the transform module 405 and the inverse transform module 410 switch between the primary set of transform kernels and the secondary set of transform kernels, as shown in FIG. 12, and use the primary set of transform kernel when transforming residuals generated under prediction modes other than the planar mode, whereas using the secondary set of transform kernel when transforming residuals generated under the planar prediction mode. Please note, however, that the secondary set of transform kernel is not limited to transforming residuals generated under the planar prediction mode and may be used to transform residuals generated under prediction modes other than the planar mode.
[0069] The secondary set of forward transform kernel (Gp ) may be a fixedpoint approximation derived from one of the following options: Option 1 (type-7 DST):
Gn f (i,f) = k, x sin(^F^), VI < i,j < N
Option 2 (type-4 DST):
2019210549 31 Jul 2019
Gf (i,jj = kt x sin((2; ^),71 < i,j < N
Option 3 (type-2 DCT, commonly known as DCT):
Gf(i,j) = kt x cos((z ^), VI < i,j < N
Option 4:
Gf (i,f) = kt x H2 F N (2i,N +1 - j), VI < i,j < N if transform kernels of size 2N*2N (H2 P N) are supported by the video codec. Otherwise,
Gf (i,j) = Hf (i,j), VI <i,j < N. Therefore, in Option 4, if the smallest and largest transform sizes supported in a video code are 4x4 and 32x32, the secondary set of transform kernel for size 4x4 is derived from the primary set of transform kernel for size 8χ8. Likewise, the secondary set of transform kernel for size 8χ8 is derived from the primary set of transform kernel for size 16x16, and the secondary set of transform kernel for size 16x 16 is derived from the primary set of transform kernel for size 32x32. However, due to the size limitation in which the largest size supported is 32x32, the secondary set of transform kernel for size 32x32 is derived from the primary set of transform kernel for size 32x32.
[0070] The scaling factor k, may be defined to satisfy
N (i,j/)2 = 1, VI < z < TV. The scaling factor kj may be used to adjust the
7=1 quantization parameter as used in H.264/AVC. The secondary set of inverse transform kernel Gf may be derived, using the forward transform kernel Gf, from Gf *Gf = IN, where IN represents the identify matrix of size A* A.
[0071] If the primary set of transform kernel satisfies the property
H2n(z,7) = (-1)!+1 xH™(i,2N + 1- /),71 < i,j < 2N, the secondary set of transform kernel defined in Option 4 is preferable. Option 4 is advantageous in that the secondary set of transform kernel does not need to be stored separately from the primary set of transform kernel because the secondary set can be derived from the primary set. If the primary set of transform kernel for size 2N*2N (H2 F N) is an approximation of type-2 DCT, the above property is satisfied, and the
2019210549 31 Jul 2019 secondary set of transform kernel for size N*N (GP) may be an approximation of type-4 DST. If the primary set of transform kernel does not satisfy the above property, the secondary set of transform kernel defined in Option 1 is preferable. [0072] The planar prediction mode may be selected in one of two ways. In the first way, a prediction block generated under the planar prediction mode is evaluated for coding efficiency, along with the prediction blocks generated under the other prediction modes. If the prediction block generated under the planar mode exhibits the best coding efficiency among the prediction blocks, the planar mode is selected. Alternatively, the planar mode is evaluated alone for coding efficiency. The planar prediction mode is preferable for an area where an image is smooth and its planar gradient is small. Accordingly, the content of a target block is analyzed to see the amount of high frequency energy in the block and the image discontinuities along the edges of the block. If the amount of high frequency energy is blow a threshold, and no significant discontinuities are found along the edges of the block, the planar mode is selected. Otherwise, prediction blocks generated under the other prediction modes are evaluated to select one mode. In both cases, a selection of the planar prediction mode is signaled in a bitstream to the decoder.
[0073] Whereas many alterations and modifications of the present invention will no doubt become apparent to a person of ordinary skill in the art after having read the foregoing description, it is to be understood that any particular embodiment shown and described by way of illustration is in no way intended to be considered limiting. Therefore, references to details of various embodiments are not intended to limit the scope of the claims, which in themselves recite only those features regarded as essential to the invention.
Claims (15)
- CLAIMS:1. A video encoding method for predicting pixel values in a target block, the method comprising computer executable steps executed by a processor of a video encoder to implement:calculating a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode;calculating a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode;averaging the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and averaging pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
- 2. The method according to claim 1, further comprising signaling a residual between the prediction block and the target block.
- 3. The method according to claim 2, further comprising:switching from a primary set of transform kernel HN(i, j) to a secondary set of transform kernel GN(i, j) so that the primary set of transform kernel HN(i, j) is used when transforming the residual generated under prediction mode other than the planar mode, whereas the secondary set of transform kernel GN(i, j) is used when transforming the residual generated under the planar mode; and transforming the residual generated under the planar mode, using the secondary set of transform kernel GN(i, j), wherein — hj — , and N is a positive integer.
- 4. The method according to claim 3, wherein the secondary set of transform kernel GN(i, j) is defined by one of the following equations:23171339 (IRN: P077659D5)2019210549 31 Jul 2019 (a) G'G, j) - kt x sin((2i ' J v 27V + 1 (b) G (z, j) = k, x sin(---------'—) (c) GN (z, j) = kt x cos(0~1)(22^~1);r) wherein ki is a scaling factor.
- 5. The method according to claim 3, wherein the secondary set of transform kernel GN(i, j) for size NxN is defined by the primary set of transform kernel HM(i, j) for size MxM, where M>N.
- 6. The method according to claim 5, wherein the secondary set of transform kernel GN(i, j) is defined byGN(i, j) = ki x H2N(2i, N+l-j), if transform kernels of size 2Nx2N(H2n) are supported, orGN(i, j) = HN(i, j) otherwise wherein ki is a scaling factor.
- 7. A video decoding method for predicting pixel values in a target block, the method comprising computer executable steps executed by a processor of a video decoder to implement:calculating a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode;calculating a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode;averaging the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and23171339 (IRN: P077659D5)2019210549 31 Jul 2019 averaging pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
- 8. The method according to claim 7, further comprising:decoding a residual signaled from an encoder which was generated under the planar mode at an encoder; and adding the decoded residual to the prediction block to reconstruct image data.
- 9. A video encoder that predicts pixel values in a target block, comprising a processor of a computer system and a memory that stores programs executable by the processor to:calculate a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode;calculate a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode;average the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and average pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
- 10. The video encoder according to claim 9, wherein the processor signals a residual between the prediction block and the target block.
- 11. The video encoder according to claim 10, wherein the processor:switch from a primary set of transform kernel HN(i, j) to a secondary set of transform kernel GN(i, j) so that the primary set of transform kernel HN(i, j) is used when transforming the residual generated under prediction mode other than the planar mode, whereas the secondary set of transform kernel GN(i, j) is used when transforming the residual generated under the planar mode; and23171339 (IRN: P077659D5)2019210549 31 Jul 2019 transform the residual generated under the planar mode, using the secondary set of transform kernel GN(i, j), wherein — J — 1 , and N is a positive integer.
- 12. The video encoder according to claim 11, wherein the secondary set of transform kernel GN(i, j) is defined by one of the following equations:(a) (b) wherein ki is a scaling factor.
- 13. The video encoder according to claim 11, wherein the secondary set of transform kernelGN(i, j) for size NxN is defined by the primary set of transform kernel HM(i, j) for size MxM, where M>N.
- 14. A video decoder that predicts pixel values in a target block, comprising a processor of a computer system and a memory that stores programs executable by the processor to:calculate a first prediction value using linear interpolation between a value of respective horizontal boundary pixels on the upper outside of the target block, and a value of one pixel of vertical boundary pixels on the left outside of the target block when using a planar mode;calculate a second prediction value using linear interpolation between a value of respective vertical boundary pixels, and a value of one pixel of the horizontal boundary pixels when using the planar mode;average the first prediction value and second prediction value to derive each prediction pixel value in a prediction block when using the planar mode; and23171339 (IRN: P077659D5)2019210549 31 Jul 2019 average pixel values of the horizontal boundary pixels and pixel values of the vertical boundary pixels to derive each prediction pixel value in the prediction block when using a DC mode.
- 15. The video decoder according to claim 14, wherein the processor further:decodes a residual signaled from an encoder; and adds the decoded residual to the prediction block.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU2019210549A AU2019210549B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
Applications Claiming Priority (7)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US61/425,670 | 2010-12-21 | ||
US61/449,528 | 2011-03-04 | ||
AU2011349244A AU2011349244C1 (en) | 2010-12-21 | 2011-12-21 | Enhanced intra-prediction coding using planar representations |
AU2015203228A AU2015203228B2 (en) | 2010-12-21 | 2015-06-15 | Enhanced intra-prediction coding using planar representations |
AU2016202817A AU2016202817B2 (en) | 2010-12-21 | 2016-05-03 | Enhanced intra-prediction coding using planar representations |
AU2018201830A AU2018201830B2 (en) | 2010-12-21 | 2018-03-14 | Enhanced intra-prediction coding using planar representations |
AU2019210549A AU2019210549B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2018201830A Division AU2018201830B2 (en) | 2010-12-21 | 2018-03-14 | Enhanced intra-prediction coding using planar representations |
Publications (2)
Publication Number | Publication Date |
---|---|
AU2019210549A1 true AU2019210549A1 (en) | 2019-08-15 |
AU2019210549B2 AU2019210549B2 (en) | 2020-12-17 |
Family
ID=56090688
Family Applications (8)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2016202817A Active AU2016202817B2 (en) | 2010-12-21 | 2016-05-03 | Enhanced intra-prediction coding using planar representations |
AU2018201830A Active AU2018201830B2 (en) | 2010-12-21 | 2018-03-14 | Enhanced intra-prediction coding using planar representations |
AU2019210549A Active AU2019210549B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210553A Active AU2019210553B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210555A Active AU2019210555B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210547A Active AU2019210547B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210554A Active AU2019210554B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210559A Active AU2019210559B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
Family Applications Before (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2016202817A Active AU2016202817B2 (en) | 2010-12-21 | 2016-05-03 | Enhanced intra-prediction coding using planar representations |
AU2018201830A Active AU2018201830B2 (en) | 2010-12-21 | 2018-03-14 | Enhanced intra-prediction coding using planar representations |
Family Applications After (5)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
AU2019210553A Active AU2019210553B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210555A Active AU2019210555B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210547A Active AU2019210547B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210554A Active AU2019210554B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
AU2019210559A Active AU2019210559B2 (en) | 2010-12-21 | 2019-07-31 | Enhanced intra-prediction coding using planar representations |
Country Status (1)
Country | Link |
---|---|
AU (8) | AU2016202817B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114938449B (en) * | 2022-07-20 | 2023-10-27 | 浙江大华技术股份有限公司 | Intra-frame prediction method, image encoding method, image decoding method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101011303B1 (en) * | 2006-07-28 | 2011-01-28 | 가부시끼가이샤 도시바 | Image encoding and decoding method and apparatus |
EP2099210B1 (en) * | 2006-11-24 | 2015-10-21 | NEC Corporation | Coding and decoding device, coding and decoding method and program |
WO2009004985A1 (en) * | 2007-06-29 | 2009-01-08 | Sharp Kabushiki Kaisha | Image encoding device, image encoding method, image decoding device, image decoding method, program, and recording medium |
-
2016
- 2016-05-03 AU AU2016202817A patent/AU2016202817B2/en active Active
-
2018
- 2018-03-14 AU AU2018201830A patent/AU2018201830B2/en active Active
-
2019
- 2019-07-31 AU AU2019210549A patent/AU2019210549B2/en active Active
- 2019-07-31 AU AU2019210553A patent/AU2019210553B2/en active Active
- 2019-07-31 AU AU2019210555A patent/AU2019210555B2/en active Active
- 2019-07-31 AU AU2019210547A patent/AU2019210547B2/en active Active
- 2019-07-31 AU AU2019210554A patent/AU2019210554B2/en active Active
- 2019-07-31 AU AU2019210559A patent/AU2019210559B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
AU2019210559B2 (en) | 2020-12-24 |
AU2016202817B2 (en) | 2017-12-21 |
AU2019210559A1 (en) | 2019-08-22 |
AU2019210547B2 (en) | 2020-12-24 |
AU2019210555B2 (en) | 2020-12-24 |
AU2019210553B2 (en) | 2020-12-17 |
AU2018201830A1 (en) | 2018-04-12 |
AU2016202817A1 (en) | 2016-05-26 |
AU2019210554A1 (en) | 2019-08-15 |
AU2018201830B2 (en) | 2019-06-20 |
AU2019210555A1 (en) | 2019-08-15 |
AU2019210554B2 (en) | 2020-12-24 |
AU2019210547A1 (en) | 2019-08-15 |
AU2019210549B2 (en) | 2020-12-17 |
AU2019210553A1 (en) | 2019-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10834423B2 (en) | Enhanced intra-prediction coding using planar representations | |
AU2019210554B2 (en) | Enhanced intra-prediction coding using planar representations | |
AU2015203228B2 (en) | Enhanced intra-prediction coding using planar representations |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FGA | Letters patent sealed or granted (standard patent) |