Method and storage medium for video decoding and video encoding
By adjusting the video coding unit structure and prediction mode and optimizing the encoding method of the chroma channel, the problem of low compression efficiency of the chroma channel in the existing technology is solved, and efficient video data processing and high-quality output are achieved.
Patent Information
- Application Number
- CN201910234246.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2013-04-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2033-04-26
AI Technical Summary
Existing video coding technology is difficult to achieve sufficient compression or information retention in the chroma channel when dealing with professional broadcast and digital theater equipment, affecting the efficiency and quality of video processing.
A new video coding unit structure is adopted. By adjusting the size and shape of the coding unit and combining different prediction modes and transformation technologies, the coding method of the chroma channel is optimized to adapt to high resolution and high quality video data.
Improved compression efficiency and quality of video data in chroma channels, suitable for high-resolution videos, especially in professional broadcast and digital theater equipment, reducing bitrate and maintaining high image quality.
Smart Images

Figure CN110225337B_ABST
Abstract
Description
[0001] This application is a divisional application of Chinese patent application No. 201380022424.1.
[0002] CROSS-REFERENCE TO RELATED APPLICATIONS
[0003] This application claims the benefit of GB1220836.9, GB1211067.2 and GB 1207459.7 filed in the UK Intellectual Property Office on earlier filing dates of 19 November 2012, 22 June 2012 and 26 April 2012 respectively, the entire contents of which are incorporated herein by reference. Technical Field
[0004] The present disclosure relates to data encoding and decoding. Background Art
[0005] The "background art" description set forth herein is for the purpose of generally presenting the context of the present disclosure. The work of the presently named inventors (to the extent that it is described in this prior art section and in the form of a description that does not otherwise qualify as prior art at the time of filing) is not explicitly or implicitly admitted as prior art against the present disclosure.
[0006] There are several video data encoding and decoding systems that involve transforming the video data into a frequency domain representation, quantizing the frequency domain coefficients, and then applying some form of entropy coding to the quantized coefficients. This can achieve compression of the video data. Corresponding decoding or decompression techniques are applied to recover a reconstructed version of the original video data.
[0007] Current video codecs (coders-decoders) such as those used in H.264 / MPEG-4 Advanced Video Coding (AVC) achieve data compression primarily by encoding only the differences between consecutive video frames. These codecs use a regular array of so-called macroblocks, each of which is used as a comparison area with a corresponding macroblock in a previous video frame, and the image area within the macroblock is then encoded according to the level of motion found between corresponding current and previous macroblocks in the video sequence, or between adjacent macroblocks within a single frame of the video sequence.
[0008] High Efficiency Video Coding (HEVC), also known as H.265 or MPEG-H Part 2, is a proposed successor to H.264 / MPEG-4 AVC. HEVC is expected to improve quality and double the data compression ratio (compared to H.264), and is expected to scale from 128×96 to 7680×4320 pixel resolution, which roughly translates to bit rates from 128 kbit / s to 800 Mbit / s.
[0009] In HEVC, a so-called 4:2:0 block structure is proposed for consumer devices, where the amount of data used in each chroma channel is one-fourth of that used in the luma channel. This is because subjectively humans are more sensitive to brightness changes than color changes, and therefore greater compression and / or less data in the color channels can be used without subjective quality loss.
[0010] HEVC replaces the macroblocks found in existing H.264 and MPEG standards with a more flexible technology based on coding units (CUs), which are variable-sized structures.
[0011] Therefore, when encoding image data in a video frame, the CU size can be selected in response to the apparent image complexity or detected motion level, instead of using uniformly distributed macroblocks. As a result, significantly greater compression can be obtained in areas with little motion between frames and in areas with little change within a frame, while better image quality can be retained in areas of high inter-frame motion or image complexity.
[0012] Each CU contains one or more prediction units (PUs) of variable block size, either intra-image or inter-image prediction type, and one or more transform units (TUs) containing coefficients for spatial block transform and quantization.
[0013] Furthermore, the PU and TU blocks are provided with three channels each: luma (Y), which is the brightness or luminance channel, and which can be considered as a grayscale channel; and two color difference or color (chrominance) channels Cb and Cr. These channels provide the color of the grayscale image of the luma channel. The terms Y, luminance, and brightness are used interchangeably in this specification, while the similar terms Cb and Cr, color (chrominance), and chrominance are used interchangeably as appropriate, noting that color or chrominance can generally be used for one or both of Cr and Cb; and when discussing a specific color channel it will be identified by the term Cb or Cr.
[0014] In general, PUs are considered channel-independent, except that the PU has a luma portion and a chroma portion. In general, this means that the samples forming part of the PU of each channel represent the same area of the image, so that there is a fixed relationship between the PUs across the three channels. For example, for 4:2:0 video, an 8×8 PU for luma always has a corresponding 4×4 PU for chroma, whose chroma portions represent the same area as the luma portions, but contain fewer pixels due to the subsampling quality of the 4:2:0 chroma data compared to the luma data in 4:2:0 video. (In 4:4:4, the sampling rate is the same, so the same PU structure can be used for luma sampling and color sampling). The two chroma channels share intra-prediction information; and the three channels share inter-prediction information. Similarly, the TU structure also has a fixed relationship between the three channels.
[0015] However, for professional broadcast and digital theater equipment, it is desirable to have less compression (or more information) in the chrominance channel, and this may affect how current and proposed HEVC processing will work. Summary of the invention
[0016] The present disclosure addresses or mitigates the problems arising from such processing.
[0017] The forms and features of the present disclosure are defined in the appended claims.
[0018] It is to be understood that both the foregoing general description and the following detailed description are exemplary rather than restrictive of the present technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] A more complete understanding of the present disclosure and many of its attendant advantages will be readily obtained as the same becomes more appreciated by reference to the following detailed description when considered in conjunction with the accompanying drawings, wherein:
[0020] Figure 1 An audio / video (A / V) data transmission and reception system using video data compression and decompression is generally described;
[0021] Figure 2 A video display system using video data decompression is generally described;
[0022] Figure 3 An audio / video storage system using video data compression and decompression is generally described;
[0023] Figure 4 A video camera using video data decompression is generally described;
[0024] Figure 5 Provides a general overview of video data compression and decompression equipment;
[0025] Figure 6 Briefly explain the generation of prediction images;
[0026] Figure 7 A large coding unit (LCU) is briefly explained;
[0027] Figure 8 A group of four coding units (CUs) is schematically illustrated;
[0028] Fig. 9 and Fig.10 Briefly explain the Figure 8 The coding unit is divided into smaller coding units;
[0029] Fig.11 A schematic diagram of an array of prediction units (PUs);
[0030] Fig.12 An array of transform units (TUs) is schematically illustrated;
[0031] Fig.13 schematically illustrating a portion of the coded image;
[0032] Fig.14 To outline a set of possible intra-predictive directions;
[0033] Fig.15 To outline a set of prediction models;
[0034] Fig.16 Schematically illustrate the vertical and diagonal scan;
[0035] Fig.17 Provide an overview of video compression equipment;
[0036] Fig.18A and Fig.18B Outline possible block sizes;
[0037] Fig.19 The use of co-location information from chrominance and luma blocks is briefly explained;
[0038] Fig. 20 A situation is schematically illustrated in which colocation information from one chrominance channel is used for another chrominance channel;
[0039] Fig.21 Schematically illustrating the pixels used for LM-CHROMA mode;
[0040] Fig. 22 A set of brightness prediction directions are outlined;
[0041] Fig.23 Briefly explain Fig. 22 direction, such as applied to horizontally sparse chroma channels;
[0042] Fig.24 Schematically illustrates the mapping of the Fig. 22 direction;
[0043] Figure 25-28 Provides a brief explanation of luma and chroma pixel interpolation;
[0044] Fig.29A and Fig.29B A brief description of the quantization parameter tables for 4:2:0 and 4:2:2 respectively; and
[0045] Fig.30 and Fig.31 Briefly explain the quantitative variation table. DETAILED DESCRIPTION
[0046] Now refer to the graphic, Figure 1-4 Provided to give a schematic diagram of a device or system that utilizes compression and / or decompression devices, for description below in conjunction with embodiments of the present technology.
[0047] All data compression and / or decompression described below may be implemented in hardware, in software running on a general-purpose data processing device such as a general-purpose computer, as programmable hardware such as an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA), or as a combination of these. In the case where the embodiments are implemented by software and / or firmware, it should be understood that such software and / or firmware, and the non-transitory data storage medium on which such software and / or firmware is stored or provided, are considered embodiments of the present technology.
[0048] Figure 1 An audio / video data transmission and reception system using video data compression and decompression is generally described.
[0049] An input audio / video signal 10 is supplied to a video data compression device 20 which compresses at least the video component of the audio / video signal 10 for transmission along a transmission route 30, such as a cable, optical fiber, wireless link, etc. The compressed signal is processed by a decompression device 40 to provide an output audio / video signal 50. For the return path, a compression device 60 compresses the audio / video for transmission along the transmission route 30 to a decompression device 70.
[0050] The compression device 20 and the decompression device 70 may thus form one node of the transmission link. The decompression device 40 and the compression device 60 may form another node of the transmission link. Of course, in the example where the transmission link is unidirectional, only one of the nodes requires a compression device and the other node only requires a decompression device.
[0051] Figure 2A video display system using video data decompression is briefly described. In particular, a compressed audio / video signal 100 is processed by a decompression device 110 to provide a decompressed signal that can be displayed on a display 120. The decompression device 110 can be implemented as part of the display 120, for example, provided in the same housing as the display device. On the other hand, the decompression device 110 can be provided as (for example) a so-called set-top box (STB), note: the word "on-the-box" does not imply that the box needs to be set in any specific orientation or position relative to the display 120; it is only a term used in the present technology to indicate a device that can be connected to a display as a peripheral device.
[0052] Figure 3 An audio / video storage system using video data compression and decompression is schematically illustrated. An input audio / video signal 130 is supplied to a compression device 140, which produces a compressed signal for storage by a storage device 150, such as a magnetic disk device, an optical disk device, a tape device, a solid-state storage device (such as a semiconductor memory or other storage device). For playback, the compressed data is read from the storage device 150 and passed to a decompression device 160 for decompression to provide an output audio / video signal 170.
[0053] It should be understood that compressed or encoded signals, and storage media storing the signals are considered embodiments of the present technology.
[0054] Figure 4 A video camera using video data decompression is generally described. Figure 4 , an image capture device 180, such as a charge coupled device (CCD) image sensor and associated control and readout electronics, generates a video signal that is passed to a compression device 190. A microphone (or microphones) 200 generates an audio signal for passing to the compression device 190. The compression device 190 generates a compressed audio / video signal 210 for storage and / or transmission (generally shown as storage and / or transmission 220).
[0055] The techniques to be described below relate primarily to video data compression and decompression. It should be understood that many existing techniques may be used for audio data compression in conjunction with the video data compression techniques to be described to produce a compressed audio / video signal. Thus, a separate discussion of audio data compression will not be provided. It should also be understood that the data rates associated with video data (particularly broadcast quality video data) are generally much higher than the data rates associated with audio data (whether compressed or uncompressed). Thus, it should be understood that uncompressed audio data may accompany compressed video data to form a compressed audio / video signal. It should be further understood that although the present examples ( Figure 1-4) related to audio / video data, but the techniques to be described below may find application to systems that only process (i.e., compress, decompress, store, display and / or transmit) video data. In other words, embodiments may be applied to video data compression without necessarily having any associated audio data handling.
[0056] Figure 5 Provides a high-level overview of video data compression and decompression equipment.
[0057] Controller 343 controls the overall operation of the device and, in particular when targeting compression modes, controls a trial encoding procedure (described below) by acting as a selector to select various modes of operation such as CU, PU and TU block sizes and whether to encode the video data losslessly or otherwise.
[0058] Successive images of the input video signal 300 are supplied to the adder 310 and the image predictor 320. The image predictor 320 refers to Figure 6 The adder 310 actually performs a subtraction (negative addition) operation with the input video signal 300 at the "+" input and the output of the image predictor 320 at the "-" input, so that the predicted image is subtracted from the input image. The result is a so-called residual image signal 330 representing the difference between the actual and projected images.
[0059] One reason why a residual image signal is generated is explained as follows. The data encoding schemes to be described (i.e., the techniques to be applied to the residual image signal) tend to work more efficiently when there is less "energy" in the image to be encoded. Here, the term "efficiently" refers to the generation of a small amount of encoded data; for a particular level of image quality, it is desirable to generate as little data as is practical. The so-called "energy" in the residual image refers to the amount of information contained in the residual image. If the predicted image will be exactly the same as the actual image, then the difference between the two (i.e., the residual image) will contain zero information (zero energy) and will be very easy to encode into a small amount of encoded data. In general, if the prediction process can be made to work reasonably well, it is expected that the residual image data will contain less information (less energy) than the input image and will therefore be easier to encode into a small amount of encoded data.
[0060] The remainder of the apparatus for use as an encoder (for encoding a residual or difference image) is now described. The residual image signal 330 is coupled to a transform unit 340 which produces a discrete cosine transform (DCT) representation of the residual image data. DCT techniques are well known per se and will not be described in detail herein. However, there are aspects of the technique used in the present apparatus which will be described in more detail below, particularly with regard to the selection of different blocks of data to which the DCT operation may be applied. These will be referred to in detail in Figure 7-12 and are described below.
[0061] The output of transform unit 340 (i.e., a set of DCT coefficients for each transformed block of image data) is supplied to quantizer 350. Various quantization techniques are known in the art of video data compression, ranging from simple multiplication by quantization scaling factors to the use of complex lookup tables, under the control of quantization parameters. The general goal is twofold. First, the quantization process reduces the number of possible values for the transformed data. Second, the quantization process can increase the probability that the transformed data has a value of zero. Both of these can allow the entropy encoding process (described below) to act more efficiently to produce a small amount of compressed video data.
[0062] A data scanning process is applied by scanning unit 360. The purpose of the scanning process is to rearrange the quantized transformed data so as to collect together as many non-zero quantized transformed coefficients as possible, and of course thereby collect together as many zero-valued coefficients as possible. These features allow so-called run-length coding or similar techniques to be applied efficiently. Therefore, the scanning process involves selecting coefficients from the quantized transformed data, and in particular from blocks of coefficients corresponding to a block of image data that has been transformed and quantized according to a "scanning order" so that: (a) all coefficients are selected once as part of the scan; and (b) the scan always provides the desired rearrangement. An exemplary scanning order that often provides useful results is a so-called straight diagonal scanning order.
[0063] The scanned coefficients are then passed to an entropy encoder (EE) 370. Again, various types of entropy coding may be used. Two examples are variations of the so-called CABAC (context adaptive binary arithmetic coding) system and variations of the so-called CAVLC (context adaptive variable length coding) system. In general, CABAC is considered to provide better efficiency and has been shown in some studies to provide a 10-20% reduction in the amount of encoded output data for comparable image quality (compared to CAVLC). However, CAVLC is considered to represent a much lower level of complexity than CABAC (depending on its implementation). Note: The scanning process and the entropy encoding process are shown as separate processes, but in fact may be combined or processed together. That is, the reading of data into the entropy encoder may occur in scanning order. Corresponding considerations apply to the respective reverse processes to be described below. Note: The current HEVC documents under consideration at the time of this filing no longer include the possibility of a CAVLC coefficient encoder.
[0064] The output of the entropy encoder 370 , together with additional data (mentioned above and / or discussed below), such as defining the manner in which the predictor 320 generated the predicted picture, provides a compressed output video signal 380 .
[0065] However, a return path is also provided since the operation of predictor 320 itself depends on the decompressed version of the compressed output data.
[0066] The reason for this feature is as follows. At an appropriate stage, in the decompression process (described below), a decompressed version of the residual data is generated. This decompressed residual data needs to be added to the predicted picture to produce the output picture (because the original residual data is the difference between the input picture and the predicted picture). In order for this process to be comparable, i.e. between the compression side and the decompression side, the predicted picture generated by the predictor 320 should be the same during the compression process and during the decompression process. Of course, when decompressing, the device does not have access to the original input picture, but only to the decompressed picture. Therefore, when compressing, the predictor 320 bases its predictions (at least, for inter-picture coding) on the decompressed version of the compressed picture.
[0067] The entropy encoding process performed by the entropy encoder 370 is considered "lossless", that is, it can be reversed to achieve exactly the same data as it was first supplied to the entropy encoder 370. Therefore, the return path can be implemented before the entropy encoding stage. Indeed, the scanning process performed by the scanning unit 360 is also considered lossless, but in this embodiment, the return path 390 is from the output of the quantizer 350 to the input of a complementary inverse quantizer 420.
[0068] In general, entropy decoder 410, inverse scan unit 400, inverse quantizer 420, and inverse transform unit 430 provide the inverse functions of respective entropy encoder 370, scan unit 360, quantizer 350, and transform unit 340. The discussion of the overall compression process will now continue; the process for decompressing an input compressed video signal will be discussed separately below.
[0069] In the compression process, the scan coefficients are passed from the quantizer 350 via return path 390 to the inverse quantizer 420 which performs the inverse operation of the scan unit 360. The inverse quantization and inverse transform processes are performed by the units 420, 430 to produce a compressed and decompressed residual image signal 440.
[0070] The image signal 440 is added (in adder 450) to the output of the predictor 320 to produce a reconstructed output image 460. This forms the input to the image predictor 320 as will be described below.
[0071] Returning now to the procedure for decompressing a received compressed video signal 470, the signal is supplied to the entropy decoder 410 and from there to the chain of inverse scanning unit 400, inverse quantizer 420 and inverse transform unit 430, before being added to the output of the picture predictor 320 by adder 450. Thus, on the decoder side, the decoder reconstructs a version of the residual image, which is then applied (via adder 450) to the predicted version of the image (block by block) in order to decode each block. Specifically, the output 460 of adder 450 forms the output decompressed video signal 480. In practice, further filtering may be applied before the signal is output.
[0072] therefore, Figure 5 and 6 The device can function as either a compression device or a decompression device. The functionality of the two types of devices overlaps quite a bit. Scan unit 360 and entropy encoder 370 are not used in the decompression mode, and the operation of predictor 320 (which will be described in detail below) and other units follows the mode and parameters contained in the received compressed bitstream rather than generating such information themselves.
[0073] Figure 6 The generation of a predicted image, and more specifically the operation of the image predictor 320, is briefly explained.
[0074] There are two basic modes of prediction by the picture predictor 320: the so-called intra-picture prediction and the so-called inter-picture (or motion compensated (MC)) prediction. On the encoder side, each prediction consists of detecting the prediction direction of the current block to be predicted and generating a prediction block of samples from other samples (in the same (intra) or another (inter) picture). In view of the unit 310 or 450, the difference between the predicted block and the actual block is coded or applied in order to encode or decode the block, respectively.
[0075] (The prediction direction may be detected in the decoder, or on the reverse decoding side of the encoder, by the encoder, in response to data associated with the encoded data indicating which direction was used in the encoder. Alternatively, the detection may be responsive to the same factors as those used to make the decision in the encoder.)
[0076] Intra-picture prediction performs a prediction of the content of a block of a picture based on data from within the same picture. This corresponds to so-called I-frame coding in other video compression techniques. In contrast to I-frame coding (where the entire picture is intra-coded), in this embodiment the choice between intra- and inter-coding can be made on a block-by-block basis, although in other embodiments the choice is still made on a picture-by-picture basis.
[0077] Motion compensated prediction is an example of inter-picture prediction and uses it to try to determine the motion information of the source (in another adjacent or nearby picture) of the picture detail to be encoded in the current picture. Thus, in an ideal example, the contents of a block of the picture in the predicted picture can be encoded very simply as a reference (motion vector) pointing to a corresponding block in an adjacent picture at the same or slightly different position.
[0078] Back to Figure 6 , showing two picture prediction arrangements (corresponding to intra-picture and inter-picture prediction), the result of which is selected by multiplexer 500 under control of mode signal 510 to provide a block of predicted pictures for supply to adders 310 and 450. The selection is made according to which selection provides the lowest "energy" (which, as discussed above, can be considered as the information content to be encoded), and the selection is sent to the encoder within the encoded output data stream. Picture energy (in this context) can be detected, for example, by performing a trial subtraction of a region of two versions of the predicted picture from the input picture, squaring the pixel values of the difference picture, summing the squared values, and identifying which of the two versions results in a lower RMS value of the difference picture associated with the picture region.
[0079] In an intra-coding system, the actual prediction is performed based on picture blocks which are received as part of the signal 460, in other words the prediction is based on coded-decoded picture blocks so that exactly the same prediction can be performed on the decompression device. However, data may be obtained from the input video signal 300 by the intra-mode selector 520 to control the operation of the intra-picture predictor 530.
[0080] For inter-picture prediction, a motion compensated (MC) predictor 540 uses motion information, such as motion vectors obtained by a motion estimator 550 from the input video signal 300. These motion vectors are applied by the motion compensated predictor 540 to a processed version of the reconstructed picture 460 to produce inter-picture predicted blocks.
[0081] Thus, each unit 530 and 540 (operating using the estimator 550) acts as a detector for detecting the prediction direction of the current block to be predicted, and as a generator for generating a sampled prediction block (forming part of the prediction passed to units 310 and 450), depending on the other samples defined by the prediction direction.
[0082] The processing applied to signal 460 will now be described. First, the signal is filtered by filter unit 560, which will be described in more detail below. This involves applying a "deblocking" filter to remove, or at least attempt to reduce, the block-based processing and subsequent operations performed by transform unit 340. A sample adaptive offset (SAO) filter (described further below) may also be used. At the same time, a sample loop filter is applied that uses coefficients obtained by processing reconstructed signal 460 and input video signal 300. An adaptive loop filter is a type of filter that (using known techniques) applies adaptive filter coefficients to the data to be filtered. That is, the filter coefficients may vary according to various factors. Data defining which filter coefficients should be used is included as part of the encoded output data stream.
[0083] Adaptive filtering stands for in-loop filtering for image restoration. An LCU can be filtered by up to 16 filters, which gets the filter selection and ALF on / off status for each CU within the LCU (Adaptive Loop Filter, see below). Currently the control is at the LCU level, not the CU level.
[0084] The filtered output from the filter unit 560 actually forms the output video signal 480 when the device is operated as a compression device. It is also buffered in one or more picture or frame stores 570; the storage of consecutive pictures is a necessary condition for the motion compensated prediction process, and in particular the generation of motion vectors. In order to save storage requirements, the stored pictures in the picture store 570 can be kept in compressed form and then decompressed for the generation of motion vectors. For this particular purpose, any known compression / decompression system can be used. The stored pictures are passed to the interpolation filter 580, which produces a higher resolution version of the stored pictures; in this example, intermediate samples (subsamples) are produced so that: the resolution of the interpolated pictures output by the interpolation filter 580 is 4 times (in each dimension) the resolution of the pictures stored in the picture store 570 for the 4:2:0 luma channel; and 8 times (in each dimension) the resolution of the pictures stored in the picture store 570 for the 4:2:0 color channels. The interpolated picture is passed as input to the motion estimator 550 and also to the motion compensated predictor 540 .
[0085] In an embodiment, a further optional stage is provided which uses a multiplier 600 to multiply the data values of the input video signal by a factor of four (effectively only shifting the data values left by two bits); and uses a divider or right shifter 610 to apply a corresponding division operation (right shift by two bits) at the output of the device. Thus, the left and right shifts change the data purely for the internal operation of the device. This treatment can provide higher computational accuracy within the device, as well as the effect of reducing any data rounding errors.
[0086] The manner in which a picture is partitioned for the compression process will now be described. At a basic level, a picture to be compressed is viewed as an array of blocks of samples. For the purposes of this discussion, the largest such block under consideration is the so-called Largest Coding Unit (LCU) 700 ( Figure 7 ), which represents a square array of typically 64×64 samples (LCU size is configurable by the encoder, up to a maximum size such as defined by the HEVC profile). Here, the discussion is about luma samples. Depending on the color mode, such as 4:4:4, 4:2:2, 4:2:0 or 4:4:4:4 (GBR+key data), there will be a different number of corresponding color samples corresponding to the luma block.
[0087] Three basic block types will be described: coding units, prediction units and transform units. In general, recursive subdivision of LCUs allows the input image to be partitioned such that block sizes and block coding parameters (such as prediction or residual coding mode) can be set according to specific characteristics of the image to be encoded.
[0088] The LCU can be subdivided into so-called coding units (CUs). Coding units are always square and have a size between 8×8 samples and the full size of the LCU 700. Coding units can be arranged in a tree structure so that the first division can occur like Figure 8 As shown in FIG. 7 , a coding unit 710 of 32×32 samples is given; subsequent subdivision may then occur in a selective manner to give certain coding units 720 of 16×16 samples ( Fig. 9 ) and potential coding units 730 of 8×8 samples ( Fig.10 ). In summary, this process can provide a content-adaptive coding tree structure of CU blocks, each of which can be as large as an LCU or as small as 8×8 samples. The encoding of the output video data occurs based on the coding unit structure, that is, one LCU is encoded, and then the process moves to the next LCU, and so on.
[0089] Fig.11 Schematically illustrating an array of prediction units (PUs). A prediction unit is a basic unit used to carry information about the picture prediction process, or (in other words) is added to the entropy coded residual picture data to form a Figure 5The prediction unit is an additional data of the output video signal of the device. In general, the prediction unit is not limited to be square in shape. It can have other shapes, in particular a rectangular shape forming half of one of the square coding units (for example, an 8×8 CU can have an 8×4 or 4×8 PU). The use of PUs to match image features is not a mandatory part of the HEVC system, but a general goal will be to allow a good encoder to match the boundaries of adjacent prediction units to coincide (as closely as possible) with the boundaries of real objects in the image, so that different prediction parameters can be applied to different real objects. Each coding unit can contain more than one prediction unit.
[0090] Fig.12 An array of transform units (TUs) is schematically illustrated. A transform unit is the basic unit of transform and quantization procedures. A transform may or may not be square and may have a size of 4×4 to 32×32 samples. Each coding unit may contain more than one transform unit. Fig.12 The abbreviation SDIP-P in HEVC stands for a so-called short distance intra prediction partitioning. In this configuration, only one-dimensional transforms are used, so a 4×N block is passed through N transforms, where the input data of these transforms are based on previously decoded neighboring blocks and previously decoded neighboring lines within the current SDIP-P. SDIP-P was not yet included in HEVC at the time of filing.
[0091] As described above, encoding is performed one LCU, then the next LCU, and so on. Within an LCU, encoding is performed CU by CU. Within a CU, encoding is performed one TU, then the next TU, and so on.
[0092] The intra prediction process will now be discussed.In general, intra prediction involves generating a prediction of a current block of samples (prediction units) from previously encoded and decoded samples in the same picture. Fig.13 A partially encoded image 800 is schematically illustrated. Here, the image is encoded from top left to bottom right based on LCUs. An example LCU that is partially encoded through the processing of the entire image is shown as block 810. The shaded area 820 in the upper left half of block 810 has been encoded. In-image prediction of the content of block 810 can utilize any of the shaded areas 820 but cannot utilize the unshaded area below it. However, note that it is for respective TUs within the current LCU, and the hierarchical order of encoding discussed above (CU by CU and then TU by TU) means that there may be previously encoded samples in the current LCU and available for encoding of the TU, which is (for example) the upper right or lower left of the TU.
[0093] Block 810 represents an LCU; as discussed above, this may be subdivided into a set of smaller prediction units and transform units for the purpose of intra-picture prediction processing. An example of a current TU 830 is shown within LCU 810.
[0094] Intra-picture prediction considers samples that were coded before the current TU is considered, such as those above and / or to the left of the current TU. The source samples (from which the desired samples are predicted) may be placed at different locations or directions relative to the current TU. To decide which direction is appropriate for the current prediction unit, a mode selector 520 of a sample encoder may test all combinations of available TU structures for each candidate direction and select the PU direction and TU structure with the best compression efficiency.
[0095] Images can also be encoded on a "slice" basis. In one example, a slice is a horizontally adjacent group of LCUs. But more generally, a complete residual image may form a slice, or a slice may be a single LCU, or a slice may be a row of LCUs, and so on. Slices provide resilience to errors because they are encoded as independent units. The encoder and decoder are completely reconfigured on slice boundaries. For example, intra prediction is not performed across slice boundaries; slice boundaries are treated as picture boundaries for this purpose.
[0096] Fig.14 The set of possible (candidate) prediction directions is schematically illustrated. A full set of 34 candidate directions is available for prediction units of 8×8, 16×16, and 32×32 samples. The special cases of prediction unit sizes of 4×4 and 64×64 samples have a reduced set of candidate directions available to them (17 and 5 candidate directions, respectively). These directions are determined by the horizontal and vertical displacements relative to the current block position, but are encoded as prediction "modes", a set of which is shown in Fig.15 Note: The so-called DC mode represents the simple arithmetic mean of the surrounding upper and left samples.
[0097] Generally speaking, after detecting a prediction direction for each prediction unit, these systems are operable to generate a prediction block of samples based on other samples defined by the prediction direction.
[0098] Fig.16 The so-called straight diagonal scan is schematically illustrated as an example of a scan pattern that can be applied by the scanning unit 360. Fig.16 , the pattern is shown for 8×8 DCT coefficients of an example block with the DC coefficient being placed at the upper left position 840 of the block, and increasing horizontal and vertical spatial frequencies being represented by the coefficients at increasing distance downward and towards the upper left position 840. Other alternative scanning orders may be used instead.
[0099] The changes in block configuration and CU, PU and TU structures will be discussed below. Fig.17 The background of the device is similar in many respects to that discussed above. Figure 5 and 6Indeed, many of the same reference numerals have been used, and these parts will not be discussed further.
[0100] against Figure 5 and 6 The main significant difference with respect to filter 560 ( Figure 6 ), which is Fig.17 1000 and an associated coding decision block 1030, a sample adaptive offset (SAO) filter 1010 and an associated coefficient generator 1040, and an adaptive loop filter (ALF) 1020 and an associated coefficient generator 1050.
[0101] The deblocking filter 1000 attempts to reduce artifacts and improve visual quality and prediction performance by smoothing the sharp edges between CU, PU, and TU boundaries that may form when a block coding scheme is used.
[0102] The SAO filter 1010 classifies the reconstructed pixels into different categories and then attempts to reduce distortion by adding compensation only to the pixels in each category. Pixel intensity and edge properties are used for pixel classification. To further improve coding efficiency, an image can be divided into regions for localization of compensation parameters.
[0103] ALF 1020 attempts to restore the compressed image so that the difference between the reconstructed and source frames is minimized. The coefficients of ALF are calculated and transmitted on a frame basis. ALF can be applied to the entire frame or to a local area.
[0104] As mentioned above, the proposed HEVC files use a specific chroma sampling technique known as the 4:2:0 technique. The 4:2:0 scheme may be used for native / consumer devices. However, several other techniques are also possible.
[0105] In particular, a so-called 4:4:4 scheme would be suitable for professional broadcasting, mastering and digital theatre and would theoretically have the highest quality and data rate.
[0106] Similarly, a so-called 4:2:2 scheme may be used for professional broadcast, mastering, and digital theater with some loss of fidelity.
[0107] These techniques and their corresponding possible PU and TU block structures are described below.
[0108] In addition, other technologies include 4:0:0 monochrome technology.
[0109] In the 4:4:4 scheme, each of the three Y, Cb and Cr channels has the same sample rate. Therefore, in principle, there will be twice as much chrominance data as luma data in this technique.
[0110] Thus in HEVC, in this technique, each of the three Y, Cb and Cr channels will have corresponding PU and TU blocks that are the same size; for example, an 8x8 luma block will have corresponding 8x8 chroma blocks for each of the two chroma channels.
[0111] Therefore, in this technique, there will generally be a direct 1:1 relationship between the block sizes in each channel.
[0112] In a 4:2:2 scheme, the two chroma components are sampled at half the sampling rate of luma (e.g., using vertical or horizontal subsampling, but for the purposes of this description horizontal subsampling is assumed). Thus, in principle, there would be as much chroma data as luma data in this technique, although the chroma data would be split between the two chroma channels.
[0113] Thus in HEVC, in this technique, the Cb and Cr channels will have different sized PU and TU blocks for the luma channel; for example, an 8x8 luma block will have a corresponding 4x8 chroma block for each chroma channel.
[0114] Therefore, it should be noted that in this technique, chroma blocks can be non-square even if they correspond to square luma blocks.
[0115] In the currently proposed HEVC 4:2:0 scheme, the two chroma components are sampled at one-quarter the sampling rate of luma (e.g., using vertical and horizontal subsampling). Therefore, in principle, in this technique there will be half as much chroma data as luma data, and the chroma data will be split between the two chroma channels.
[0116] So in HEVC, in this technique, again the Cb and Cr channels will have different sized PU and TU blocks for the luma channel. For example, an 8×8 luma block will have a corresponding 4×4 chroma block for each chroma channel.
[0117] The above technique is colloquially known in the art as a "channel ratio", such as "4:2:0 channel ratio"; however, it should be understood from the above description that this does not always mean that the Y, Cb and Cr channels are compressed or provided in this ratio. Therefore, although it is called a channel ratio, this should not be assumed to be literal. In fact, the correct ratio of the 4:2:0 technique is 4:1:1 (the ratio of the 4:2:2 scheme and the 4:4:4 technique is actually correct).
[0118] In reference Fig.18A and 18B Before discussing specific configurations, some general terms will be outlined or restated.
[0119] The Largest Coding Unit (LCU) is the root image target. Typically, it covers an area equivalent to 64×64 luma pixels. It is recursively split to form a tree hierarchy of coding units (CUs). Generally, the three channels (one luma channel and two chroma channels) have the same CU tree hierarchy. However, in this way, depending on the channel ratio, a specific luma CU may include a different number of pixels for the corresponding chroma CU.
[0120] The CU at the end of the hierarchy, i.e. the smallest CU resulting from the recursive splitting procedure, is then split into prediction units (PUs). The three channels (one luma channel and two chroma channels) have the same PU structure, except when the corresponding PU of a chroma channel would have too few samples, in which case only one PU is available for that channel. This is configurable, but typically the minimum size of an intra-PU is 4 samples; the minimum size of an inter-PU is 4 luma samples (or 2 chroma samples for 4:2:0). The restriction on the minimum CU size is always large enough for at least one PU for any channel.
[0121] Leaf-CUs are also split into transform units (TUs). A TU can, and must be, split into further TUs when it is too large (e.g., more than 32×32 samples). A restriction is imposed so that TUs can be split down to a maximum tree depth, currently configured as 2 levels. That is, there must be no more than 16 TUs for each CU. An exemplary minimum allowable TU size is 4×4 samples and the maximum allowable TU size is 32×32 samples. Again, the three channels have the same TU structure whenever possible, but if a TU cannot be split to a specific depth for a given channel due to size restrictions, it is kept at the larger size. The so-called non-square quadruple tree transform configuration (NSQT) is similar, but the splitting into four TUs does not need to be 2×2 but can be 4×1 or 1×4.
[0122] refer to Fig.18A and 18B , outlining the different possible block sizes for CU, PU and TU blocks, with "Y" referring to luma blocks and "C" generally referring to a representative of chroma blocks, and numbers referring to pixels. "Inter" refers to inter-predicted PUs (as opposed to intra-predicted PUs). In many cases, only the block size of luma blocks is shown. The corresponding sizes of the associated chroma blocks are related to the luma block size based on the channel ratio.
[0123] So for 4:4:4, the chroma channels have Fig.18A and 18B. Therefore, the chroma PU structure mirrors (or is respectively identical to) the PU structure at all split levels (where "split level" means selecting a CU size option, and within the CU size option, selecting a CU size and shape option). Although the same set of possible block sizes and shapes may be used, it may be possible to allow different sets of block sizes and shapes to be selected relative to the luma and chroma components of the CU. In some embodiments of the present disclosure, the same PU block size and shape are selected for the chroma and luma components corresponding to the CU. Therefore, no matter which PU size and shape is selected for the luma CU, a PU of the same size and shape is selected for the chroma components of the CU. It should be noted that, as described below, the selection of the block size and shape of the PU is based on the decision of the encoder under the control of the controller 343. In this setting, the luma samples and color samples have a 4:4:4 format and are arranged as multiple coding units, each of which includes a block of luma samples and color samples; and the prediction direction of the current prediction unit is detected, which is a block of luma or color samples representing at least a subset of the respective coding units. For a particular coding unit, one or more prediction units (each including luma samples and color samples from the coding unit) are made to have a size and shape (e.g., by controller 343) such that the size and shape of the prediction unit are selected to be the same as the luma samples and color samples.
[0124] For 4:2:2 and 4:2:0, the chroma blocks will each have fewer pixels than the corresponding luma blocks, depending on the channel ratio.
[0125] Fig.18A and 18B The configuration shown in considers four possible CU sizes: 64×64, 32×32, 16×16, and 8×8 luma pixels, respectively. Each of these CUs has a corresponding column of PU options (shown in row 1140) and TU options (shown in row 1150). For the possible CU sizes as defined above, these column options are referenced as 1100, 1110, 1120, and 1130, respectively.
[0126] Note: 64×64 is the current maximum CU size, but this limit may change.
[0127] Different PU options are shown applicable to that CU size in each column 1100 ... 1130. The TU options applicable to those PU configurations are shown horizontally aligned with the respective PU options.
[0128] Note: In several cases, multiple PU options are provided. As discussed above, the goal of the device in selecting PU configuration is to match (as closely as possible) the boundaries of real objects in the image, so that different prediction parameters can be applied to different real objects.
[0129] The block size and shape and PU are based on the decisions of the encoder, under the control of the controller 343. The current method involves trying many TU tree structures for many directions, obtaining the best "cost" at each level. Here, the cost can be expressed as a measure of distortion, or noise, or error, or bit rate obtained from each block structure. Therefore, the encoder may try more than two (or even all possible) permutations of block sizes and shapes within those allowed under the tree structures and hierarchies discussed above, before selecting one of the trials that provides the lowest bit rate for some required quality measure, or provides the lowest distortion (or error, or noise, or a combination of these measures) for a required bit rate, or a combination of these measures.
[0130] Given the selection of a particular PU configuration, various levels of splitting may be applied to generate corresponding TUs. Referring to column 1100, in the case of a 64x64 PU, this block size is too large for use as a TU, and so a first level of splitting (from "level 0" (unsplit) to "level 1") is necessary, which results in an array of four 32x32 luma TUs. Each of these may receive further splitting in the tree hierarchy (from "level 1" to "level 2") as required, with the split being performed before transforming or quantizing the TU. The maximum number of levels in the TU tree is limited by the HEVC specification (for example).
[0131] Other options are provided for PU size and shape in the case of 64×64 luma pixel CUs. These are restricted to use with intra-coded pictures only, and (in some cases) enabled with the so-called AMP option. AMP stands for Asymmetric Motion Partitioning and allows the PU to be partitioned asymmetrically.
[0132] Similarly, in some cases, options are provided for TU size and shape. If NQST (Non-square Quadtree Transform, essentially allowing non-square TUs) is enabled, splitting into level 1 and / or level 2 can be performed as shown, while if NQST is not enabled, the TU size follows the splitting shape of the respective largest TU of the CU size.
[0133] Similar options are provided for other CU sizes.
[0134] Apart from Fig.18A and 18B In addition to the graphical representation shown in FIG, the numerical portion of the same information is provided in the subsequent tables, although Fig.18A and 18BThe representations in are to be considered restrictive. "n / a" indicates that the mode is not allowed. The horizontal pixel size is quoted first. If a third number is provided, it refers to the number of instances of that block size, e.g. (horizontal) x (vertical) x (number of instances) blocks. N is an integer.
[0135]
[0136]
[0137] 4:2:0, 4:2:2 and 4:4:4 block structure variations
[0138] It is understood that both 4:2:0 and 4:4:4 schemes have square PU blocks for intra prediction coding. In addition, the current 4:2:0 scheme allows 4×4 pixel PU and TU blocks.
[0139] In an embodiment, it is therefore proposed that for a 4:4:4 scheme, recursion for CU blocks is allowed down to 4×4 pixels instead of 8×8 pixels, because as mentioned above: in 4:4:4 mode, luma and chroma blocks will be the same size (i.e., chroma data is not subsampled) and therefore no PU or TU for a 4×4 CU will need to be less than the allowed minimum of 4×4 pixels. Thus, this is an example of selecting the size and shape of one or more prediction units for a particular coding unit, each prediction unit comprising luma or color samples of at least a subset of the coding unit, the size and shape of the prediction unit being selected to be the same as the luma samples and color samples.
[0140] It is noted that, at the decoder side (or in the reverse decoding path of the encoder), the selection is responsive to data associated with the encoded data, representing the selection made in the forward encoding path of the encoder. Alternatively, the selection may be responsive to the same factors as those used to make the decision in the encoder.
[0141] Similarly, in a 4:4:4 scheme, in one embodiment, each Y, Cr, Cb channel (or Y together with both Cr, Cb channels) may have its own CU tree hierarchy. A flag may then be used to tell which hierarchy or configuration of hierarchies should be used. This approach may also be used for 4:4:4 RGB color space techniques. However, alternatively, the tree hierarchies for chrominance and luma may be independent.
[0142] In the example of an 8×8 CU in a 4:2:0 technique, this results in four 4×4 luma PUs and one 4×4 chroma PU. Thus, in a 4:2:2 scheme, there is twice as much chroma data, and one option is to have two 4×4 chroma PUs in this case, where (for example) the bottom chroma block would correspond in position to the bottom left luma block. However, it is understood that using a non-square 4×8 luma PU in this case would better align with the configuration of the 4:2:0 chroma format.
[0143] In the 4:2:0 scheme, in principle there are some non-square TU blocks that are allowed for some types of inter-prediction coding, but not for intra-prediction coding. However, when non-square quadruple tree transform (NSQT) is disabled (which is the current default for 4:2:0 technology) for inter-prediction coding, all TUs are square. So in effect the 4:2:0 scheme currently forces square TUs. For example, a 16×16 4:2:0 luma TU will correspond to a respective Cb&Cr 8×8 4:2:0 chroma TU.
[0144] However, as mentioned previously, a 4:2:2 scheme may have non-square PUs. Therefore, in one embodiment, it is proposed to allow non-square for a 4:2:2 scheme.
[0145] For example, while a 16x16 4:2:2 luma TU may correspond to two respective Cb and Cr 8x8 4:2:2 chroma TUs, in this embodiment, they may instead correspond to respective Cb and Cr 8x16 4:2:2 chroma TUs.
[0146] Similarly, four 4x4 4:2:2 luma TUs may correspond to two respective 4x4 Cb+Cr 4:2:2 TUs, or alternatively to respective 4x8 Cb and Cr 4:2:2 TUs in this embodiment.
[0147] Having non-square chroma TUs (and therefore fewer TUs) may be more efficient because they may contain less information. However, this may affect the transform and scanning procedures of such TUs, as will be described later.
[0148] Finally, for the 4:4:4 scheme, it may be desirable to make the TU structure channel independent, selectable at the sequence, picture, slice or finer level.
[0149] As mentioned above, NSQT is currently disabled for the 4:2:0 scheme of HEVC. However, if NSQT is enabled and asymmetric motion partitioning (AMP) is allowed for inter-picture prediction, this allows the PUs to be partitioned asymmetrically; so, for example, a 16×16 CU can have 4×16 PUs and 12×16 PUs. In these cases, further consideration of the block structure is important for each of the 4:2:0 and 4:2:2 schemes.
[0150] For the 4:2:0 scheme, in NSQT, the minimum width / height of a TU can be limited to 4 luma / chroma samples:
[0151] Thus, in a non-limiting example, a 16×4 / 16×12 luma PU structure has four 16×4 luma TUs and four 4×4 chroma TUs, where the luma TUs are arranged in 1×4 vertical blocks and the chroma TUs are arranged in 2×2 blocks.
[0152] In a similar arrangement where the partitioning is vertical instead of horizontal, the 4x16 / 12x16 luma PU structure has four 4x16 luma TUs and four 4x4 chroma TUs, where the luma TUs are arranged in 4x1 horizontal blocks and the chroma TUs are arranged in 2x2 blocks.
[0153] For the 4:2:2 scheme, in NSQT, as a non-limiting example, the 4×16 / 12×16 luma PU structure has four 4×16 luma TUs and four 4×8 chroma TUs, where the luma TUs are arranged in 4×1 horizontal blocks; the chroma TUs are arranged in 2×2 blocks.
[0154] However, it is understood that different structures may be considered in certain situations. Therefore, in one embodiment of the present disclosure, in NSQT, as a non-limiting example, a 16×4 / 16×12 luma PU structure has four 16×4 luma TUs and four 8×4 chroma TUs, but now the luma and chroma TUs are arranged in 1×4 vertical blocks, aligned with the PU layout (as opposed to the 4:2:0 type arrangement of four 4×8 chroma TUs in a 2×2 block arrangement).
[0155] Similarly, a 32x8 PU may have four 16x4 luma TUs and four 8x4 chroma TUs, but now the luma and chroma TUs are arranged in 2x2 blocks.
[0156] Therefore, more generally, for 4:2:2 schemes, in NSQT, the TU block size is chosen to align with the asymmetric PU block layout. Thus, NSQT usefully allows TU boundaries to align with PU boundaries, which reduces high frequency artefacts that might otherwise occur.
[0157] In general, embodiments of the present disclosure may be related to a video encoding method, device or program that can operate for a 4:2:2 format video signal, wherein the image to be encoded is divided into coding units, prediction units and transform units for encoding, the coding unit is a square array of luminance samples and corresponding color samples, there is more than one prediction unit in a coding unit, and there is more than one transform unit in a coding unit; wherein the prediction unit is a basic unit of prediction so that all samples within a single prediction unit are predicted using a common prediction technique, and the transform unit is a basic unit of transformation and quantization.
[0158] A non-square transform mode (such as NSQT mode) is enabled to allow non-square prediction units. Optionally, asymmetric motion partitioning is enabled to allow asymmetry between more than two prediction units corresponding to a single coding unit.
[0159] The controller 343 controls the selection of the transform unit block size to align the prediction unit block layout, for example, by detecting image features in the portion of the image corresponding to a PU and selecting a TU block size for the PU so that the TU boundary is aligned with the edge of the image feature in the portion of the image.
[0160] The rules discussed above dictate which combinations of block sizes are available. The encoder may try different combinations. As discussed above, the trial may include more than two up to all available options. The trial encoding process may be performed based on a cost function metric and the result selected based on an estimate of the cost function.
[0161] Assuming there are three levels of variation, in terms of CU size and shape, PU size and shape, and TU size and shape, this can result in a large number of permutations to be tried out for encoding. To reduce this variation, the system can try out encoding for CU size by using an arbitrarily selected one of the permissible PU / TU configurations for each CU size; then, having selected a CU size, the PU size and shape can be selected by trial encoding different PUs, each with a single arbitrarily selected TU configuration. Then, having selected a CU and PU, the system can try all applicable TU configurations to select a final TU configuration.
[0162] Another possibility is that some encoders may use a fixed choice of block configurations, or may allow a limited subset of the combinations set out in the above discussion.
[0163] Internal prediction
[0164] 4:2:0 internal prediction
[0165] Now back to Fig. 22 , for intra prediction, HEVC allows angular chromaticity prediction.
[0166] Through introduction, Fig. 22 35 prediction modes applicable to luma blocks are illustrated, of which 33 specify the direction of samples used to reference the current prediction sample position 110. The remaining two modes are mode 0 (planar) and mode 1 (dc).
[0167] HEVC allows chroma to have DC, vertical, horizontal, planar, DM_CHROMA and LM_CHROMA modes.
[0168] DM_CHROMA indicates that the prediction mode to be used is the same as the prediction mode of the co-located luma PU (ie, Fig. 22 one of the 35 shown in ).
[0169] LM_CHROMA (Linear Mode Chroma) indicates that co-located luma samples (appropriately downsampled to the channel ratio) are used to obtain the predicted chroma samples. In this case, if the luma PU (from which the DM_CHROMA prediction mode will be obtained) selects DC, Vertical, Horizontal, or Planar, then the entry in the chroma prediction column is replaced with mode 34. In LM_CHROMA mode, the luma pixels (from which the chroma pixels are predicted) are scaled (and compensation applied if appropriate) according to the linear relationship between luma and chroma. This linear relationship is derived from the surrounding pixels, and the deriving can be performed on a block-by-block basis, with the decoder decoding one block before moving on to the next.
[0170] In an embodiment of the present disclosure, it may be defined that all regions of one image or all regions of each image use the same prediction mode (for example, for indicating luma sampling), for example, the DM_CHROMA mode.
[0171] Note that prediction modes 2-34 sample the angular range from 45 to 225 degrees; in other words, half the diagonal of the square. This can be used in the case of 4:2:0 techniques, which (as described above) only use square chroma PUs for intra-image prediction.
[0172] 4:2:2 Prediction variation within
[0173] However, as also mentioned above, a 4:2:2 scheme may have rectangular (non-square) chroma PUs, even when the luma PU is square. Or indeed, the opposite may be true: a rectangular luma PU may correspond to a square luma PU. The reason for the difference is that in 4:2:2, chroma is subsampled horizontally (relative to luma) rather than vertically. So the aspect ratio of a luma block and the corresponding chroma block would be expected to be different.
[0174] As a result, in one embodiment, a mapping table for that direction may be needed for chroma PUs with different aspect ratios for corresponding luma blocks. Assuming (for example) a 1 to 2 aspect ratio for rectangular chroma PUs, for example mode 18 (currently at an angle of 135 degrees) may be remapped to 123 degrees. Alternatively, the current selection of mode 18 may be remapped to the current selection of mode 22, to almost the same effect.
[0175] Thus, more generally, for non-square PUs, a different mapping between the direction of reference samples and the selected intra prediction mode may be provided for comparison with the mapping for square PUs.
[0176] Still more generally, any of these modes (including non-directional modes) can also be remapped based on empirical evidence.
[0177] It is possible that this mapping will result in a many-to-one relationship, making specification of a full set of modes redundant for a 4:2:2 chroma PU. In this case, for example, only 17 modes (corresponding to half the angular resolution) may be needed. Alternatively or additionally, the modes may be angularly distributed in a non-uniform manner.
[0178] Similarly, the smoothing filter used on the reference sample (when predicting the pixel at the sample position) may be used differently; in the 4:2:0 scheme, it is used only to smooth luma pixels, not chroma pixels. However, in the 4:2:2 and 4:4:4 schemes, this filter may also be used for chroma PUs. In the 4:2:2 scheme, again the filter may be modified in response to different aspect ratios of the PU, for example being used only for a subset of near-horizontal modes. An example subset of modes is preferably 2-18 and 34; or more ideally 7-14. In 4:2:2, only smoothing of the left field of the reference sample may be performed in an embodiment.
[0179] These configurations are discussed in more detail below.
[0180] 4:4:4 Prediction variation within
[0181] In the 4:4:4 scheme, the chroma and luma PUs are the same size, and so the intra-prediction mode of the chroma PU can be the same as that of the co-located luma PU (thus saving some overhead in the bitstream by not needing to encode separate modes), or alternatively, it can be selected independently.
[0182] Therefore, in the latter case, in one embodiment, the system may have 1, 2, or 3 different prediction modes for each PU in the CU.
[0183] In the first example, Y, Cb and Cr PUs may all use the same intra prediction mode.
[0184] In a second example, the Y PU may use one intra prediction mode, while the Cb and Cr PUs may each use another independently selected intra prediction mode.
[0185] In the third example, Y, Cb and Cr PUs each use an independently selected intra prediction mode.
[0186] It will be appreciated that having independent prediction modes for most chroma channels (or each chroma channel) will improve color prediction accuracy, but this requires additional data overhead to convey the independent prediction modes as part of the encoded data.
[0187] To ease this burden, the choice of the number of modes may be indicated in a high-level syntax (e.g., at sequence, picture, or slice level). Alternatively, the number of independent modes may be taken from the video format; for example, GBR may have up to 3, while YCbCr may be limited to up to 2.
[0188] In addition to selecting the modes independently, the available modes may be allowed to be different in the 4:4:4 scheme from the 4:2:0 scheme.
[0189] For example, when luma and chroma PUs are the same size in 4:4:4, the chroma PUs may benefit from access to all available 35+LM_CHROMA+DM_CHROMA directions. Thus, for the case of Y, Cb and Cr each with independent prediction modes, the Cb channel may have access to DM_CHROMA&LM_CHROMA, and the Cr channel may have access to DM_CHROMA_Y, DM_CHROMA_Cb, LM_CHROMA_Y and LM_CHROMA_Cb, where these replace references to the luma channel with references to the Y or Cb chroma channels.
[0190] While the luma prediction mode is signaled by getting a list of most portable modes and sending a pointer to that list, if the chroma prediction modes are independent, it may be necessary to get a separate list of most portable modes for each channel.
[0191] Finally, in a manner similar to that described above for the 4:2:2 case, in the 4:4:4 scheme, the smoothing filter used on the reference samples when predicting the pixel at the sample position can be applied to the chroma PU in a manner similar to the luma PU. Currently, a [1,2,1] low-pass filter can be applied to the reference samples before intra prediction. This is only used for luma TUs when certain prediction modes are used.
[0192] One of the intra prediction modes available for chroma TUs is to base the prediction samples on co-located luma samples. This configuration is schematically illustrated in Fig.19, which shows an array of TUs 1200 represented by small squares in the Cb, Cr, and Y channels (from a region of a source image), showing a particular alignment between image features in the Cb and Y channels and in the Cr and Y channels (roughly represented by the dark and light shaded squares 1200). In this example, it is advantageous to force the chroma TUs to base prediction samples on co-located luma samples. However, it is not always the case that image features correspond between the three channels. In fact, certain features may only appear in one or two of the channels, and in general the images of the three channels may be different.
[0193] In one embodiment, for a Cr TU, LM_Chroma may be selectively based on co-located samples from the Cb channel (or, in other embodiments, the correlation may be reversed). This configuration is shown in schematic form at Fig. 20 Here, spatially aligned TUs are shown between the Cr, Cb, and Y channels. Another set of TUs labeled "Source" is a schematic representation of a color image (seen as a whole). The image features seen in the source image (the upper left triangle and the lower right triangle) do not actually represent changes in brightness, but only changes in brightness between the two triangles. In this case, basing LM_Chroma of Cr on luma samples will produce a poor prediction, but basing it on Cb samples will provide a better prediction.
[0194] The decision as to which LM_Chroma mode should be used can be made by the controller 343 and / or the mode controller 520 based on trial encodings of different options (including the option of basing LM_Chroma on co-located luma or co-located chroma samples), which decision as to which mode should be selected is made by accessing cost functions (similar to those described above) for the different trial encodings. Examples of cost functions are noise, distortion, error rate, or bit rate. The mode from those that accept the trial encodings that provides the lowest of more than one of these cost functions is selected.
[0195] Fig.21 The method for obtaining the reference sample pattern for intra-prediction in the embodiment is briefly explained. Fig.21 When encoding the LCU, it should be noted that the encoding is performed according to the scanning pattern, so that (generally speaking) the encoded version of the block above and to the left of the current block to be encoded is used in the encoding process. Sometimes the lower left or upper right samples are used if they have been previously encoded as part of other encoded TUs in the current LCU. For example, referring to the above Fig.13 .
[0196] The shaded area 1210 represents the current TU, ie, the TU currently being encoded.
[0197] In 4:2:0 and 4:2:2, the row of pixels immediately to the left of the current TU does not contain co-located luma and chroma samples due to horizontal subsampling. In other words, because the 4:2:0 and 4:2:2 formats have half as many color pixels (in the horizontal direction) as luma pixels, not every luma sample position has a co-located color sample. Therefore, while luma samples may appear in the row of pixels immediately to the left of the TU, color samples do not. Therefore, in some embodiments, the row located two samples to the left of the current TU is used to provide a reference sample for LM_Chroma. Note: The situation is different in 4:4:4, where the row immediately to the left of the current TU does contain co-located luma and chroma samples. This row can therefore be used to provide a reference sample.
[0198] The reference samples were used as follows.
[0199] In LM_Chroma mode, the predicted samples are taken from the reconstructed luma samples according to a linear relationship. Therefore, in general, it can be said that the predicted color value within a TU is provided by:
[0200] P C =a+bP L
[0201] Where P C is the color sample value, P L is the reconstructed luma sample value at that sample position, and a and b are constants. These constants are obtained for a particular block by detecting the relationship between the reconstructed luma samples and the chroma samples in the row just above the block and in the column just to the left of the block, which are the sample positions that have been coded (see above).
[0202] In some embodiments, constants a and b are obtained as follows:
[0203] a=R(P L ',P C ') / R(P L ',P L ')
[0204] where R represents the linear (least square) regression function, and P L ' and P C ' are the brightness samples and color samples from adjacent columns and rows, respectively, as discussed above, and:
[0205] b=mean(P C ')–a.mean(P L ')
[0206] For 4:4:4, P L ' and P C'The value is taken from the column immediately to the left of the current TU and the row immediately above the current TU. For 4:2:2, P L ' and P C The value is taken from the row immediately above the current TU and the column two sample positions away from the left edge of the current TU. For 4:2:0 (which is subsampled vertically and horizontally), P L ' and P C 'The values would ideally be taken from the row two columns above the current TU, but are actually taken from the row in the neighboring block one sample position above the current TU, and the column in the neighboring block two sample positions away from the left edge of the current TU. The reason for this is to avoid having to maintain an extra entire column of data in memory. So in this respect, 4:2:2 and 4:2:0 are handled in a similar way.
[0207] Thus, these techniques are applicable to a video coding method with a color prediction mode, wherein a current block of color samples representing a region of an image is encoded by deriving and encoding a relationship of the color samples relative to luma samples (such as reconstructed luma samples) of a co-located block representing the same region of the image. This relationship (such as a linear relationship) is obtained by comparing co-located (otherwise expressed as correspondingly located) luma samples and color samples from adjacent coded blocks. Color samples are derived from the luma samples according to the relationship; and the difference between the predicted color samples and the actual color samples is encoded as residual data.
[0208] For a first sampling resolution (such as 4:4:4), where color samples have the same sampling rate as luma samples, the co-located samples are samples in sample positions adjacent to the current block.
[0209] For a second sampling resolution such as 4:2:2 or 4:2:0, wherein the color samples have a lower sampling rate than the luma samples, the nearest row or column of luma and color samples at the common position from an adjacent coded block is used to provide the samples at the common position, or wherein, in the case where the second sampling resolution is a 4:2:0 sampling resolution, the samples at the corresponding position are samples of the corresponding column of the adjacent current block and the nearest row or column of luma and color samples at the corresponding position are from an adjacent coded block.
[0210] Fig. 22 The available prediction angles for luma samples are illustrated probabilistically. The current pixel is predicted to be pixel 1220, which is shown in the center of the graphic. The smaller dots 1230 represent neighboring pixels. Those above or to the left of the current pixel can be used as reference samples to generate the prediction because they have been previously encoded. Other pixels are currently unknown (at the time of predicting pixel 1220) and will themselves be predicted in due course.
[0211] Each numbered prediction direction points to a reference sample 1230 on the top or left edge of the current block which is used to generate the current predicted pixel. In the case of smaller blocks, where the prediction direction points to a location between reference samples, linear interpolation between adjacent reference samples is used.
[0212] Now returning to the intra prediction of chroma samples, for 4:2:0, there are fewer prediction directions available due to the relative scarcity of chroma samples. However, if DM_CHROMA mode is selected then the current chroma block will use the same prediction direction as the co-located luma block. Thus, this means that the luma direction of intra prediction can also be used for chroma.
[0213] However, for chroma samples in 4:2:2, it may be considered counter-intuitive to use the same prediction algorithm as luma (when DM_CHROMA is selected), assuming that the chroma blocks now have a different aspect ratio than the luma blocks. For example, the 45 degree lines of the square luma array's samples should still be mapped to the 45 degree lines of the chroma samples, albeit with an array of rectangular sized samples. Superimposing a rectangular grid on top of a square grid indicates that its 45 degree lines will then actually map to 26.6 degree lines.
[0214] Fig.23 Schematically illustrating the luma intra prediction direction as applied to chroma pixels in 4:2:2, for the current pixel to be predicted 1220. Note: there are half as many pixels horizontally as vertically, because 4:2:2 has half the horizontal sampling rate at the chroma channel (compared to the luma channel).
[0215] Fig.24 The transformation or mapping of 4:2:2 chroma pixels to a square grid is schematically illustrated, and thus how this transformation changes the prediction direction.
[0216] The luma prediction direction is shown as dashed line 1240. The chroma pixels 1250 are remapped to a square grid, which provides a rectangular array (such as Fig. 22 (as shown in ). Fig.23 The prediction directions shown in have been remapped to a rectangular array. It can be seen that for some pairs of directions (one pair being a luma direction and a chroma direction), there is either an overlap or a close relationship. For example, direction 2 in the luma array is substantially above direction 6 in the chroma array. However, it will also be noted that some luma directions (about half of them) do not have a corresponding chroma direction. An example is luma direction numbered 3. Also, some chroma directions (2-5) have no equivalent in the luma array, and some luma directions (31-34) have no equivalent in the chroma array. But in general, Fig.24 The overlay shown in shows that it would not be appropriate to use the same angle for both the luma and chroma channels.
[0217] Therefore, in order to obtain the appropriate prediction angle for chroma, when (a) DM_CHROMA is selected and (b) the currently used DM_CHROMA mode indicates that the chroma prediction direction should be the direction of the co-located luma block, the following procedure is followed.
[0218] (i) Obtain the intra prediction angle step and its inverse according to the luma direction according to the normal HEVC rule.
[0219] (ii) If the luma direction is predominantly vertical (ie, for example, modes numbered from 18 to 34), the intra prediction angle step is halved and its inverse is multiplied by two.
[0220] (iii) Otherwise, if the luma direction is predominantly horizontal (ie, for example, modes numbered from 2 to 17), the intra prediction angle step is multiplied by two and its inverse is halved.
[0221] Therefore, these embodiments relate to a video encoding or decoding method, apparatus or program, wherein luma samples and color samples are predicted from other respective reference samples according to a prediction direction associated with the sample to be predicted. In a mode such as 4:2:2, the color samples have a lower horizontal and / or vertical sampling rate than the luma samples, so that the ratio of the luma horizontal resolution to the color horizontal resolution is different from the ratio of the luma vertical resolution to the color vertical resolution. In short, this means that the block of luma samples has a different aspect ratio than the corresponding block of color samples.
[0222] The intra predictor 530 may, for example, be operable to detect a first prediction direction defined relative to a grid of a first aspect ratio for a current set of samples to be predicted, and to apply a directional mapping to the prediction direction to generate a second prediction direction defined relative to a grid of samples of a different aspect ratio for the same current set of samples to be predicted.
[0223] In an embodiment, the first prediction direction is defined for one of the luma or color samples, and the second prediction direction is defined for the other of the luma or color samples. In the specific examples discussed in this specification, the luma prediction direction may be modified to provide a color prediction direction. However, the reverse approach may also be used.
[0224] This technique is particularly applicable to intra prediction, so that the reference samples are samples of the same respective picture as the samples to be predicted.
[0225] In at least some configurations, a first prediction direction is defined for a square block of luma samples (including a current luma sample); and a second prediction direction is defined for a rectangular block of color samples (including a current color sample).
[0226] Independent prediction modes are provided for two color components. In such a configuration, the color samples include samples of a first color component and a second color component, and the technique includes applying the directional mapping discussed in the above steps to the first color component (such as Cb); and providing different prediction modes for the second color component (such as Cr).
[0227] The video data may be in a 4:2:2 format or a 4:4:4 format, for example.
[0228] In general, embodiments of the present disclosure may provide independent prediction modes for color components (e.g., separately for each of the luma and color components). These embodiments relate to a video encoding method in which luma samples and color samples of a picture are predicted from their other respective reference samples from the same picture according to a prediction direction associated with the sample to be predicted, the color samples have a lower horizontal and / or vertical sampling rate than the luma samples such that a ratio of luma horizontal resolution to color horizontal resolution is different from a ratio of luma vertical resolution to color vertical resolution, such that a block of luma samples has a different aspect ratio than a corresponding block of color samples, and the color samples represent first and second color samples.
[0229] The intra mode selector 520 selects a prediction mode that defines a selection of one or more reference samples for predicting a current color sample of a first color component (such as Cb). It also selects a different prediction mode that defines a different selection of one or more reference samples for predicting a current color sample of a second color component (such as Cr) that is co-located with the current color sample of the first color component.
[0230] A reference sample filter may be selectively applied to horizontal samples or vertical samples (or both), e.g., as part of the operation of the frame store 570 and / or predictors 530, 540 used as filter settings. The filter may be a 3-tap "1 2 1" filter, currently applied to all luma reference samples except the bottom left and top right (the samples of the NxN block are grouped together to form a single 1D array of size 2N+1, and then selectively filtered). In embodiments of the present technique, it is applied only to the first (left hand edge) or last (top edge) N+1 chroma samples for 4:2:2, but note that the bottom left, top right, and top left will then not be adjusted; or to all chroma samples (like luma) for 4:2:2 and 4:4:4.
[0231] Embodiments may also provide a video encoding or decoding method, apparatus or program, wherein luma component samples and first color component samples and second color component samples are predicted (from other respective reference samples) according to a prediction mode associated with the sample to be predicted, which involves predicting samples of the second color component from samples of the first color component.
[0232] Embodiments may also provide a video encoding or decoding method, apparatus or program, wherein the luma component sample and the first color component sample and the second color component sample are predicted from other respective reference samples according to a prediction direction associated with the sample to be predicted, which involves filtering the reference samples.
[0233] As reference Fig.19 and 20 As discussed, it is possible that the different prediction modes include a mode by which samples of the second color component are predicted from samples of the first color component.
[0234] Note: Modes 0 and 1 are not angular prediction modes and are therefore not included in this procedure. The effect of the procedure shown above is to map the chrominance prediction direction to Fig.24 In the brightness prediction direction.
[0235] For 4:2:0, when pure horizontal prediction mode (luma mode 10) or pure vertical prediction mode (luma mode 26) is selected, the top or left edge of the predicted TU is filtered only for the luma channel. For horizontal prediction mode, the top row is filtered in the vertical direction. For vertical prediction mode, the left row is filtered in the horizontal direction.
[0236] Filtering a row of samples in the horizontal direction can be understood as applying a horizontally oriented filter to each sample in the sample row sequence. Thus, for an individual sample, its value will be modified by the movement of the filter based on the filtered value generated from the current value of the sample and one or more other samples at the sample position horizontally removed from the sample (i.e., one or more other samples to the left and / or right of the sample in question).
[0237] Filtering a row of samples in the vertical direction can be understood as applying a vertically oriented filter to each sample in the order of the sample row. Thus, for an individual sample, its value will be modified by the movement of the filter based on the filtered value generated from the current value of the sample and one or more other samples at the sample position vertically removed from the sample (i.e., one or more other samples above and / or below the sample in question).
[0238] One purpose of the edge pixel filtering process is to reduce the block based on edge effects in prediction, thereby reducing the energy in the residual image data.
[0239] In an embodiment, a corresponding filtering procedure is also provided for chroma TUs in 4:4:4 and 4:2:2. Considering horizontal subsampling, one proposal is to filter only the top row of the chroma TU in 4:2:2, rather than filtering both the top row and the left row in 4:4:4 (appropriately, depending on the selected mode). It is considered appropriate to filter only in these areas to avoid filtering out too much useful detail, which (if filtered out) would result in increased energy of the residual data.
[0240] For 4:2:0, when DC mode is selected, one or both of the top and / or left edges of the predicted TU are filtered for the luma channel only. Here, this is an example of the case where the luma sample represents one luma component and each color sample represents two chroma components, the filtering step is applied to a subset of these three components, which is either one or two of these three components. The subset may include the luma component. The filtering may involve filtering the left column samples in the sampled prediction block and / or the top row samples in the sampled prediction block.
[0241] The filtering may be such that in DC mode the filter applies an averaging operation of (1×neighboring external samples+3*edge samples) / 4 for all samples on both edges. However, for the top left, the filter function is (2×current sample+1×upper sample+1×left sample) / 4. This is an example of the following operation: in DC mode where the prediction samples are generated as the sample arithmetic mean of the surrounding samples, the filtering step includes filtering the left column samples in the sampled prediction block and the top row samples in the sampled prediction block. The H / V filter is an average between the neighboring external samples and the edge samples.
[0242] In some embodiments, this filtering is also provided for chroma TUs in 4:4:4 and 4:2:2. Again, considering horizontal subsampling, in some embodiments only the top row of chroma samples is filtered for 4:2:2, but the top row and left row of chroma TUs are filtered for 4:4:4.
[0243] Therefore, the technology can be applied to video encoding or decoding methods, devices or programs, wherein luma samples and color samples in (for example) a 4:4:4 format or a 4:2:2 format are predicted from other respective samples according to a prediction direction associated with a block of samples to be predicted.
[0244] In an embodiment of the present technique, a prediction direction is detected with respect to a current block to be predicted. A prediction block of color samples is generated based on other color samples defined by the prediction direction. If the predicted direction is detected to be substantially vertical (e.g., in a mode within + / -n angles of a fully vertical mode where n is, for example, 2), the left row of samples is filtered (e.g., in a horizontal direction using a horizontally oriented filter) on the prediction block of color samples. Alternatively, if the predicted direction is detected to be substantially horizontal (e.g., in a mode within + / -n angles of a fully horizontal mode where n is, for example, 2), the top row of samples is filtered (e.g., in a vertical direction using a vertically oriented filter) on the prediction block of color samples. In each case, the operation may be applied only to the left column and top row, respectively. The difference between the filtered predicted color block and the actual color block is then encoded, for example, as residual data. Alternatively, this test may be for a fully vertical or horizontal mode instead of a substantially vertical or horizontal mode. A tolerance of + / -n may be applied to one of these tests (vertical or horizontal) but not the other. In an embodiment of the present disclosure, only the prediction blocks in the left column or the top row may be filtered, and the filtering may be performed by a horizontally oriented filter or a vertically oriented filter, respectively.
[0245] In this regard, filtering may be performed by the respective predictors 520, 530 acting as filters.
[0246] After the filtering process, embodiments of the present technology encode the difference between the filtered predicted chroma block and the actual chroma block (in the encoder), or apply the decoded difference to the filtered predicted chroma block in order to encode the block (on the decoder side).
[0247] Inter-prediction
[0248] Note: Inter prediction in HEVC already allows rectangular PUs, so 4:2:2 mode and 4:4:4 mode are already compatible with inter PU prediction.
[0249] Each frame of a video image is a discrete sample of the actual scene, and therefore each pixel is a step-by-step approximation of the real-world gradient of color and brightness.
[0250] In view of this, when predicting Y, Cb, or Cr values in a new video frame from values in a previous video frame, the pixels in the previous video frame are interpolated to produce a better estimate of the original real-world gradient to allow for a more accurate selection of the brightness or color of the new pixel. Therefore, the motion vector used to point between video frames is not limited to integer pixel resolution. Instead, it can point to sub-pixel locations within the interpolated image.
[0251] 4:2:0 prediction
[0252] Reference now Fig.25 and26 , in the 4:2:0 scheme as described above, typically an 8x8 luma PU 1300 will be associated with a Cb and Cr 4x4 chroma PU 1310. Therefore, in order to interpolate luma and chroma pixels to the same effective resolution, different interpolation filters are used.
[0253] For example, for an 8×8 4:2:0 luma PU, the interpolation is 1 / 4 pixel, and therefore an 8-tap×4 filter is first applied horizontally, and then the same 8-tap×4 filter is applied vertically, so that the luma PU is effectively stretched 4 times in each direction to form Fig.25 At the same time, the corresponding 4×4 4:2:0 chroma PU is interpolated by 1 / 8 pixel to produce the same final resolution, and therefore a 4-tap×8 filter is first applied horizontally, followed by the same 4-tap×8 filter being applied vertically, so that the 4:2:0 chroma PU is effectively stretched 8 times in each direction to form as shown in FIG. Fig.26 Array 1330 shown in .
[0254] 4:2:2 Inter-prediction
[0255] Now refer to Fig. 27 and 28 A similar configuration for 4:2:2 is described, which illustrates a luma PU 1350 and a pair of corresponding chroma PUs 1360 .
[0256] refer to Fig.28 As previously mentioned, in a 4:2:2 scheme, the chroma PU 1360 may be non-square, whereas for the case of an 8×8 4:2:2 luma PU, each Cb and Cr channel will typically be a 4:2:2 chroma PU of width 4×height 8. Note: The chroma PUs are depicted (for Fig.28 For purposes of this disclosure, PU 1360 is a square shaped array of non-square pixels, but in general, it can be noted that PU 1360 is a 4 (horizontal)×8 (vertical) pixel array.
[0257] While it is possible to therefore use an existing 8-tap×4 luma filter vertically on the chroma PUs, in embodiments of the present disclosure, it is understood that the existing 4-tap×8 chroma filter will suffice for vertical interpolation as, in practice, only one is interested in interpolating even a small portion of the chroma PUs.
[0258] therefore, Fig. 27 An 8x8 4:2:2 luma PU 1350 interpolated with an 8-tap×4 filter, and a 4x8 4:2:2 chroma PU 1360 interpolated with a 4-tap×8 chroma filter are shown as before, in both horizontal and vertical directions, but only with even a small portion of the result used to form the interpolated image in the vertical direction.
[0259] These techniques may be applied to a video encoding or decoding method, apparatus, or program that uses inter-image prediction to encode input video data, where each color component has 1 / Mth of the horizontal resolution of the luma component and 1 / Nth of the vertical resolution of the luma component, where M and N are integers equal to 1 or greater. For example, for 4:2:2, M=2, N=1. For 4:2:0, M=2, N=2.
[0260] Frame store 570 is operable to store one or more images preceding a current image.
[0261] The interpolation filter 580 is operable to interpolate a higher resolution version of a prediction unit of a stored image such that an interpolated prediction unit has a horizontal resolution of P times that of a corresponding portion of the stored image and a vertical resolution of Q times that of a corresponding portion of the stored image, where P and Q are integers greater than 1. In the current example, P=Q=4 such that the interpolation filter 580 is operable to generate an interpolated image having a 1 / 4 sample resolution.
[0262] The motion estimator 550 is operable to detect inter-image motion between a current image and one or more interpolated stored images to generate motion vectors between a prediction unit of the current image and regions of one or more previous images.
[0263] The motion compensated predictor 540 is operable to generate motion compensated predictions of prediction units of a current picture for interpolated stored pictures pointed to by respective motion vectors.
[0264] Returning to the discussion of the operation of the interpolation filter 580, an embodiment of this filter may be operable to apply xR horizontal and xS vertical interpolation filters to the color components of a stored image to produce an interpolated color prediction unit, where R equals (U×M×P) and S equals (V×N×Q), U and V being integers equal to 1 or greater; and subsample the interpolated color prediction unit so that its horizontal resolution is divided by a factor of U and its vertical resolution is divided by a factor of V, thereby obtaining a block of MP×NQ samples.
[0265] Thus, in the 4:2:2 case, interpolation filter 580 applies x8 interpolation in both the horizontal and vertical directions, but then subsamples vertically by a factor of 2, such as by using every second sample in the interpolated output.
[0266] This technique thus allows the same (eg, x8) filter to be used for both 4:2:0 and 4:2:2, but requires a further step of subsampling in the 4:2:2 case.
[0267] In an embodiment, as previously discussed, the interpolated color prediction unit has twice the height of the samples of the 4:2:0 format prediction unit to which it is interpolated using the same xR and xS interpolation filters.
[0268] Use of these techniques may avoid or alleviate the need to provide different filters, particularly by using the same xR horizontal and xS vertical interpolation filters for 4:2:0 input video data and 4:2:2 input video data.
[0269] As discussed above, the step of sub-sampling the interpolated color prediction unit includes using every Vth sample of the interpolated color prediction unit in the vertical direction and / or using every Uth sample of the interpolated color prediction unit in the vertical direction.
[0270] Embodiments may involve obtaining a luma motion vector for a prediction unit; and independently obtaining one or more color motion vectors for the prediction unit.
[0271] In some embodiments, at least one of R and S is equal to 2 or greater, and in some embodiments, xR horizontal and xS vertical interpolation filters are also applied to store the luma component of the image.
[0272] 4:4:4 prediction variant
[0273] By extension, the same principle of using only an even small portion of the results of the existing 4-tap×8 chroma filters can be applied to 8×8 4:4:4 chroma PUs both vertically and horizontally.
[0274] Further to these examples, a x8 chroma filter may be used for all interpolations, including luma.
[0275] Further prediction variants
[0276] In one implementation of motion vectors (MVs), one vector is generated for a PU in a P slice and two vectors are generated for a PU in a B slice (where a P slice gets predictions from the previous frame and a B slice gets predictions from the previous and subsequent frames, in a manner similar to MPEG P and B frames). It is worth noting that in this implementation of the 4:2:0 technique, the vectors are common to all channels and furthermore, chroma data need not be used to calculate the motion vectors. In other words, all channels use a motion vector based on luma data.
[0277] In one embodiment, in a 4:2:2 scheme, the chroma vector may be derived independently from luma (i.e., a single vector for the Cb and Cr channels may be derived separately), and in a 4:4:4 scheme, the chroma vector may be further derived independently for each of the Cb and Cr channels.
[0278] Transform
[0279] In HEVC, most images are encoded as motion vectors from previously encoded / decoded frames, with their motion vectors telling the decoder where to copy a good approximation of the current image (in these other decoded frames). The result is an approximate version of the current image. HEVC then encodes the so-called residual, which is the error between the approximate version and the correct image. This residual requires much less information than directly specifying the actual image. However, it is generally still better to compress this residual information to further reduce the overall bit rate.
[0280] In many encoding methods, including HEVC, such data is transformed into the spatial frequency domain using an integer cosine transform (ICT), and typically some compression is then obtained by retaining low spatial frequency data and discarding higher spatial frequency data, depending on the desired level of compression.
[0281] 4:2:0 conversion
[0282] The spatial frequency transform used in HEVC traditionally produces power-of-4 coefficients (e.g., 64 frequency coefficients) because this is particularly amenable to common quantization / compression methods. Square TUs in a 4:2:0 scheme are all power-of-4 and are therefore directly accessible.
[0283] If the NSQT option is enabled, some non-square transforms are available for non-square TUs (such as 4×16), but again, it is worth noting that these result in 64 coefficients (ie, again a power of 4).
[0284] 4:2:2 and 4:4:4 conversion variants
[0285] The 4:2:2 scheme may result in non-square TUs that are not multiples of 4; for example, a 4x8 TU has 32 pixels, while 32 is not multiples of 4.
[0286] In one embodiment, therefore, a non-square transform for coefficients of order other than 4 may be used, which is known to require modifications to the subsequent quantization process.
[0287] Alternatively, in one embodiment, the non-square TU is split into square blocks of multiple times with 4 regions for transform, and then the resulting coefficients may be interleaved.
[0288] For example, for a 4×8 block, the odd / even vertical samples may be split into two square blocks. Alternatively, for a 4×8 block, the top 4×4 pixels and the bottom 4×4 pixels may form two square blocks. Alternatively, again, for a 4×8 block, Haar wavelet decomposition may be used to form lower and higher frequency 4×4 blocks.
[0289] Any of these options may become available, and the selection of a particular alternative may be informed or acquired by the decoder.
[0290] Other transformation modes
[0291] In the 4:2:0 scheme, there is a proposed flag (the so-called "qpprime_y_zero_transquant_bypass_flag") that allows the residual data to be losslessly included in the bitstream (ie, not transformed, quantized or further filtered). In the 4:2:0 scheme, this flag applies to all channels.
[0292] Thus, such embodiments represent a video encoding or decoding method, apparatus or program in which luma samples and color samples are predicted and the differences between the samples and the respective predicted samples are encoded, using an indicator configured to indicate whether luma difference data is losslessly included in the output bitstream; and independently indicate whether color difference data is losslessly included in the bitstream. For example, the controller 343 may insert such a flag or flags (or indicators, respectively).
[0293] In one embodiment, it has been proposed that the flag for the luma channel be separate for the chroma channels. Thus, for a 4:2:2 scheme, such flags should be provided separately to the luma channel and to the chroma channels, and for a 4:4:4 scheme, such flags should be provided separately to the luma and chroma channels; or one flag to each of the three channels. This is recognized in conjunction with the increased chroma data rates associated with 4:2:2 and 4:4:4 techniques, and enables, for example, lossless luma data along with compressed chroma data.
[0294] For intra-prediction coding, the Mode Dependent Directional Transform (MDDT) allows the horizontal or vertical ICT (or both ICTs) for a TU to be replaced by an integer sine transform, depending on the intra-prediction direction. In the 4:2:0 scheme, this is not applied to chroma TUs. However, in one embodiment, it is proposed to apply it to 4:2:2 and 4:4:4 chroma TUs, noting that IST is currently only defined for 4-sample transform dimensions (horizontally or vertically), and thus cannot currently be applied vertically to 4×8 chroma TUs. MDDT will be discussed further below.
[0295] In a method of video encoding, various embodiments may be configured to indicate whether luma difference data is losslessly included in an output bitstream; and independently indicate whether color difference data is losslessly included in the bitstream, and encode or include the relevant data in a form defined by such indication.
[0296] Quantification
[0297] In the 4:2:0 scheme, the quantization calculation for color is the same as the quantization calculation for luma. Only the quantization parameter (QP) is different.
[0298] The QP for color is calculated from the luma QP as follows:
[0299] Q Cb =scalingTable[Qp luminance +chroma_qp_index_offset]
[0300] Q Cr =scalingTable[Qp luminance +second_chroma_qp_index_offset]
[0301] The scaling table is defined as Fig.29A or as seen in 29B (for 4:2:0 and 4:2:2, respectively), and "chroma_qp_index_offset" and "second_chroma_qp_index_offset" are defined in the graphics parameter set and may be the same or different for Cr and Cb. In other words, the values in square brackets define an "index" in each case into the calibration table ( Fig.29A and B) and the calibration table then gives the revised value of Qp ("value").
[0302] NOTE: “chroma_qp_index_offset” and “second_chroma_qp_index_offset” may alternatively be referred to as cb_qp_offset and cr_qp_offset, respectively.
[0303] Color channels typically contain less information than luminance, and therefore have smaller-valued coefficients; this limit on the color QP prevents all color detail from being lost at a large number of quantization levels.
[0304] The QP divisor relationship in 4:2:0 is logarithmic, so that an increase of 6 in QP is equivalent to doubling the divisor (the quantization step size discussed elsewhere in this specification, although note that it may be further modified by the Q matrix before use). Therefore the maximum difference in the scaling table of 51-39=12 represents a change of a factor of 4 in the divisor.
[0305] However, in one embodiment, for a 4:2:2 scheme, which potentially contains twice as much chroma information as a 4:2:0 scheme, the maximum color QP value in the scaling table may be raised to 45 (i.e., half the divisor). Similarly for a 4:4:4 scheme, the maximum color QP value in the scaling table may be raised to 51 (i.e., the same divisor). In this case, the scaling table is effectively redundant, but may be retained only for operational efficiency (i.e., so that the system operates with reference to the table in the same manner for each scheme). Thus, more generally, in one embodiment, the chroma QP divisor is modified in response to the amount of information in the encoding scheme (relative to the 4:2:0 scheme).
[0306] Thus, embodiments apply to a video encoding or decoding method operable to quantize blocks of channel-converted luminance and color component video data in 4:4:4 or 4:2:2 format according to a selected quantization parameter defining a quantization step size. The quantization parameter is associated (such as, for example, Fig.29A or the appropriate table in 29B) is defined between luma and color quantization parameters, wherein the association is such that the maximum color quantization step size is less than the maximum luma quantization step size for the 4:2:2 format (e.g., 45), but equal to the maximum luma quantization step size for the 4:4:4 format (e.g., 51). The quantization process operates such that each component of the frequency transformed data is divided by a respective value derived from the respective quantization step size, and the result is rounded to an integer value to produce a corresponding block of quantized spatial frequency data.
[0307] It should be understood that the division and rounding steps are indicative of examples of general quantization stages, depending on the respective quantization step size (or data derived therefrom, for example, by application of a Q matrix).
[0308] An embodiment comprises the step of selecting a quantization parameter or index (QP for luma) for quantizing spatial frequency coefficients, the quantization parameter serving as a respective reference for a set of quantization step sizes according to a QP table applicable to luma data. The procedure for defining the quantization parameter association may then comprise: for a color component, according to the selected quantization parameter, referencing a table of modified quantization parameters (such as Fig.29A and 29B), which may thus involve (i) for a first color component, adding a first compensation (such as chroma_qp_index_offset) to the quantization parameter and selecting a modified quantization index corresponding to the entry (in the table), the first compensation being added to the quantization index; and (ii) for a second color component, adding a second compensation (such as second_chroma_qp_index_offset) to the quantization parameter and selecting a modified quantization index corresponding to the entry (in the table), the second compensation being added to the quantization index; and first and second modified quantization indices of the luminance data and the first and second color components to refer to the respective quantization step sizes in the group. Viewed in a different way, this is an example of a procedure involving selecting a quantization parameter for quantizing spatial frequency coefficients, the quantization parameter serving as a respective reference for a set of quantization step sizes; and wherein a defining step comprises: for color components, referencing a table of modified quantization parameters based on the selected quantization parameter, the referencing step comprising: for each color component, adding a respective compensation to the quantization parameter and selecting a modified quantization index corresponding to the entry (in the table), adding the respective compensation to the quantization index; and referencing the respective quantization step sizes in the set based on first and second modified quantization parameters for luminance data and the first and second color components.
[0309] These techniques are particularly applicable to configurations in which successive values of the quantization step sizes in the set are logarithmically related, such that a change in the quantization parameter by m (where m is an integer) represents a change in the quantization step size by a factor of p (where p is an integer greater than 1). In the present embodiment, m=6 and p=2.
[0310] In an embodiment, as discussed above, the maximum luma quantization parameter is 45 for the 4:2:2 format; and the maximum color quantization parameter is 51 for the 4:4:4 format.
[0311] In an embodiment, the first and second offsets may be communicated in association with the encoded video data.
[0312] In 4:2:0, the transform matrix A is initially generated (by transform unit 340) from the true normalized NxN DCT A' using:
[0313]
[0314] where i and j indicate positions in the matrix. This scaling relative to the normalized transformation matrix provides an increase in accuracy, avoiding the need for fractional calculations and increasing internal precision.
[0315] Ignore differences due to rounding of Aij, since X is multiplied by A and A T(permutation of matrix A) both, so the resulting coefficients differ from those of the true normalized M×N (M=height; N=width) DCT by the following common scaling factor:
[0316]
[0317] Note: The common scaling factor can be different from this example. Also note: The matrix multiplications A and A T Both can be performed in various ways, such as the so-called butterfly method. The important fact is whether the operations performed are equivalent to traditional matrix multiplication, not whether they are performed in a specific traditional order of operations.
[0318] This scaling factor is equal to the number of binary left shift operations transformedShift, since in HEVC this results in a power of 2:
[0319] transformShift=(12+0.5log2(N)+0.5log2(M))
[0320] To reduce the requirements on internal bit precision, the coefficients are right-shifted (using positive rounding) twice during the transformation process:
[0321] shift1=log2(N)+bitDepth-9
[0322] shift2=log2(M)+6
[0323] As a result, the coefficients (as they leave the forward transform process and enter the quantizer) are effectively left-shifted by:
[0324] resultingShift=(12+0.5log2(NM))-(shift1+shift2)=(12+0.5log2(N)+0.5log2(M))-(log2(N)+bitDepth-9+log2(M)+6)=15-(0.5log2(N)+0.5log2(M)+bitDepth)
[0325] In 4:2:0, the frequency separation coefficients produced by the frequency transform (eg, DCT) are (2 resultingShift ) is a factor greater than the coefficients that its normalized DCT would produce.
[0326] In some embodiments, the blocks are square or rectangular with a 2:1 aspect ratio.
[0327] Therefore, for a block size of N×M, any:
[0328] N=M, in which case resultingShift is an integer and S=N=M=sqrt(NM); or
[0329] 0.5N = 2M or 2N = 0.5M, in which case resultingShift is still an integer and S = sqrt(NM)
[0330] resultingShift=15-(0.5log2(N)+0.5log2(M)+bitDepth)=15-(log2(S)+bitDepth)
[0331] These coefficients are successively quantized, wherein the quantization divisor is taken according to the quantization parameter QP.
[0332] Note: resultingShift is equivalent to an integer, so the common scaling factor is an integer multiple of 2. The overall left shift of the transform "resultingShift" is also taken into account at this stage by applying an equal but opposite right shift "quantTransformRightShift".
[0333] This bit shift operation is possible because resultingShift is an integer.
[0334] Also note that the divisor-QP (quantization parameter or exponent) relationship follows a 2-order based curve, as described above, where increasing QP by 6 has the effect of doubling the divisor, and increasing QP by 3 has the effect of increasing the divisor by a factor of sqrt(2) (square root of 2).
[0335] Due to the 4:2:2 chroma format, there is a larger TU width:height (N:M) ratio:
[0336] N = M (from before) where S = N = M = sqrt (NM) (resultingShift is an integer
[0337] 0.5N=2M and 2N=0.5M (from before) where S=sqrt(NM) (resultingShift is an integer
[0338] N = 2M where S = sqrt(NM)
[0339] 2M=N where S=sqrt(NM)
[0340] 4N=0.5M Where S=sqrt(NM)
[0341] resultingShift=15-(log2(S)+bitDepth)
[0342] In these latter three cases, resultingShift is not an integer. For example, this may apply where at least some blocks of video data samples comprise M×N samples, where the square root of N / M is not equal to an integer multiple of 2. Such block sizes may occur in some present embodiments for chroma samples.
[0343] Thus, in such examples, the following techniques are relevant, namely, in a video encoding or decoding method, apparatus or program operable to generate a block of quantized spatial frequency data by performing a frequency transform on video data samples, using a transform matrix comprising an array of integer values each scaled with respect to a respective value of a normalized transform matrix (by an amount dependent on the dimension of the transform matrix); and quantizing the spatial frequency data according to a selected quantization step size, having the step of frequency transforming the block by matrix multiplying the block by the transform matrix and transposing the transform matrix to generate a block of scaled spatial frequency coefficients each greater than the spatial frequency coefficients (which would result from the normalized frequency transform of the block of video data samples) by a common scaling factor (e.g., a resulting Shift).
[0344] Therefore, during the quantization stage, an appropriate bit shift operation cannot be used to undo this operation in a simple way.
[0345] A solution to this suggestion is as follows:
[0346] At the quantizer stage, a right shift is applied:
[0347] quantTransformRightShift=15–log2(S')–bitDepth
[0348] The value S' is obtained such that
[0349] resultingShift-quantTransformRightShift=+1 / 2
[0350] quantTransformRightShift is an integer
[0351] The difference between a shift of 1 / 2 is equivalent to multiplying by sqrt(2), ie, at this moment, the coefficient is sqrt(2) times greater than it should be, making the shift an integer digit shift.
[0352] For the quantization process, a quantization parameter of (QP+3) is applied, which means that the quantization divisor is effectively increased by a factor of sqrt(2), thus eliminating the sqrt(2) scaling factor from the previous step.
[0353] Thus, the steps may be summarized in the context of a video encoding or decoding method (or corresponding apparatus or program) operable to generate a block of quantized spatial frequency data by performing a frequency transform on a block of video data samples, using a transform matrix comprising an array of integer values each scaled with respect to a respective value of a normalized transform matrix; and quantizing the spatial frequency data according to a selected quantization step size, which involves frequency transforming the block of video data samples by matrix multiplying the block by the transform matrix and transposing the transform matrix to generate spatial frequency coefficients each greater by a common scaling factor (which would be obtained from the normalized frequency transform of the block of video data samples), as follows: selecting a quantization step size for quantizing the spatial frequency coefficients; applying an n-bit shift (e.g., quantTransformRightShift) to divide each of the scaled spatial frequency coefficients by 2 n A factor of , where n is an integer; and a detection residual calibration factor (e.g., resultingShift-quantTransformRightShift), which is divided by 2 n For example, in the case discussed above, the quantization step size is then dependent on the residual scaling factor to produce a modified quantization step size; and each of the scaled spatial frequency coefficients in the block is divided by a value dependent on the modified quantization step size and the result is rounded to an integer value to produce a block of quantized spatial frequency data. As discussed above, modification of the quantization step size may be performed simply by adding an offset to the QP to select a different quantization step size when the QP is mapped into a table of quantization step sizes.
[0354] The coefficients are now the correct size for the original QP.
[0355] The transformation matrix may comprise an array of integer values, each of which is scaled for a respective value of the normalized transformation matrix by an amount that depends on the dimension of the transformation matrix.
[0356] It can be seen that the required value of S' can always be obtained as follows:
[0357] S'=sqrt(2*M*N)
[0358] As an alternative proposal, S' can be obtained such that:
[0359] resultingShift-quantTransformRightShift=-1 / 2
[0360] In this case, S'=sqrt(1 / 2*M*N), and the applied quantization parameter is (QP-3).
[0361] In either of these cases, (adding 3 to the QP or subtracting 3 from the QP), the step of selecting a quantization step size includes selecting a quantization index (e.g., QP) that defines a respective entry in a table of quantization step sizes, and the step of modifying includes changing the quantization index to select a different quantization step size such that a ratio of the different quantization step size relative to the originally selected quantization step size is substantially equal to the residual scaling factor.
[0362] This works particularly well where (as in the present embodiment) the values of the quantization step sizes in the table are logarithmically related, so that a change in the quantization index (e.g., QP) of m represents a change in the quantization step size by a factor of p (where p is an integer greater than 1). In the present embodiment, m=6 and p=2, so that an increase of 6 in QP represents a doubling of the applied quantization step size, while a decrease of 6 in QP represents a halving of the resulting quantization step size.
[0363] As discussed above, the modification may be by: selecting a quantization index for luma samples (e.g., a base QP); generating a quantization index compensation for samples of each or both color components (relative to the quantization index selected for luma samples); varying the quantization index compensation according to a residual scaling factor; and transmitting the quantization index compensation associated with the encoded video data. In an embodiment of HEVC, QP compensations for both chroma channels are transmitted in the bitstream. These steps correspond to a system where a + / -3 QP compensation (to account for the residual scaling factor) can be incorporated into these compensations, or they can be incremented / decremented when used to obtain the chroma QP.
[0364] Note: the QP compensation does not have to be + / - 3 if different shaped blocks are used; it's just that + / - 3 represents a compensation that can be applied to the block shapes and aspect ratios discussed above for 4:2:2 video (for example).
[0365] In some embodiments, n (ie, the number of bit shifts applied) is selected such that 2 n is greater than or equal to the common scaling factor. In other embodiments, n is selected so that 2 n In embodiments (using any of these arrangements), the bit shift n may be chosen to be next closest (in either direction) to the common scaling factor, such that the residual scaling factor represents a factor having a magnitude less than two.
[0366] In other embodiments, the modification of the quantization step size may be performed simply by multiplying the quantization step size by a factor that depends on the residual scaling factor. That is, this modification does not necessarily involve a modification of the exponent QP.
[0367] Note also that the quantization step sizes discussed are not necessarily the actual quantization step sizes into which the transformed samples are partitioned. The quantization step sizes obtained in this way may be further modified. For example, in some arrangements, the quantization step sizes are further modified by respective entries in the matrix of values (Q matrix) so that different final quantization step sizes are used for different coefficient positions in the quantized block of coefficients.
[0368] It is also worth noting that in the 4:2:0 scheme, the maximum chroma TU is 16×16, while for the 4:2:2 scheme a 16×32 TU is possible; and for the 4:4:4 scheme a 32×32 chroma TU is possible. Therefore, in one embodiment of the present disclosure, a quantization matrix (Q matrix) for a 32×32 chroma TU is proposed. Similarly, a Q matrix should be defined for non-square TUs, such as a 16×32 TU, with one embodiment being a subsampling of a larger square Q matrix.
[0369] The Q matrix can be defined by either:
[0370] The values in the grid (for 4×4 and 8×8 Q matrices);
[0371] Spatially interpolate from various smaller or larger matrices;
[0372] - In HEVC, the larger Q matrix can be derived from the respective group of coefficients of the smaller reference, or the smaller matrix can be subsampled from the larger matrix. Note: This interpolation or subsampling can be performed within a channel ratio - for example, the larger matrix for a channel ratio can be interpolated from the smaller one for that channel ratio.
[0373] relative to other Q matrices (i.e., differences, or deltas);
[0374] -Therefore only these differences need to be transmitted.
[0375] Just to give a small example for the purpose of illustration, a specific matrix for a channel ratio may be defined, such as a 4×4 matrix with respect to 4:2:0
[0376] (ab)
[0377] (cd)
[0378] Where a, b, c and d are the coefficients of each. This serves as a reference matrix.
[0379] Embodiments of the present disclosure may then define a set of difference values for a similarly sized matrix with respect to another channel ratio:
[0380] (diff1 diff2)
[0381] (diff3 diff4)
[0382] So that to generate the Q matrix for other channel ratios, the matrix of differences is matrix-added to the reference matrix.
[0383] Instead of differences, a matrix of multiple factors may be defined for other channel ratios such that (i) the matrix of multiple factors is matrix multiplied with a reference matrix to produce a Q matrix for the other channel ratios, or (ii) each coefficient in the reference matrix is independently multiplied by its own factor to produce a Q matrix for the other channel ratios.
[0384] as a function of another Q matrix;
[0385] - For example, a scaling ratio relative to another matrix (so that each of a, b, c and d in the above example is multiplied by the same factor, or has the same difference added to that number). This reduces the data required to transmit the difference or factor data.
[0386] - therefore, only the coefficients of these functions need to be transmitted (such as the scaling ratio),
[0387] Treated as an equation / function (e.g., block linear curve, exponential, polynomial);
[0388] -Therefore, only the coefficients of these equations need to be transmitted to obtain the matrix,
[0389] Or any combination of the above. For example, each of a, b, c and d may in fact be defined by a function that may include dependencies based on the coefficient position (i, j) within the matrix. (i, j) may represent, for example, the coefficient position from left to right, followed by the coefficient position from the top to the bottom of the matrix. An example is:
[0390] coefficient i,j =3i+2j
[0391] NOTE: The Q matrix may be referred to as a scaling table in the HEVC context. In embodiments where equalization is applied after the scanning process, the scan data may be a linear stream of consecutive data samples. In such examples, the concept of a Q matrix still applies, but the matrix (or scan table) may be viewed as a 1×N matrix, such that the order of the N data values in the 1×N matrix corresponds to the order of the scan samples to which the respective Q matrix values are to be applied. In other words, there is a 1:1 relationship between the order of the data in the scan data (a spatial frequency with a scan pattern) and the order of the data in the 1×N Q matrix.
[0392] Note: In some implementations, it is possible to skip or omit the DCT (frequency separation) stage, but keep the quantization stage.
[0393] Other useful information includes selective indicators of which other matrices these values relate to, i.e., the previous channel or the first (main) channel; for example, the matrix for Cr can be a scaled factor of the matrix for Y (or for Cb), as shown.
[0394] Thus, embodiments of the present disclosure may provide a video encoding or decoding method (and a corresponding apparatus or computer program) operable to generate blocks of quantized spatial frequencies by (selectively) performing a frequency transform on video data samples and quantizing the video data (such as spatial frequency data) according to a selected quantization step size and a matrix of data that modifies the quantization step size for different respective positions within a sequential block of samples (such as a sequential block of frequency transformed samples), the method being operable with respect to at least two different color subsampling formats.
[0395] For at least one of the color subsampling formats, one or more quantization matrices are defined as one or more predetermined modifications with respect to one or more reference quantization matrices defined for a reference one of the color subsampling formats.
[0396] In an embodiment of the present disclosure, the defining step includes defining one or more quantization matrices as matrices of values each interpolated from respective complex values of a reference quantization matrix. In other embodiments, the defining step includes defining one or more quantization matrices as matrices of values each subsampled from values of a reference quantization matrix.
[0397] In an embodiment of the present disclosure, the defining step includes defining one or more quantization matrices as matrices of differences of corresponding values with respect to a reference quantization matrix.
[0398] In an embodiment of the present disclosure, the defining step includes defining one or more quantization matrices as predetermined functions of values of a reference quantization matrix. In such examples, the predetermined function may be a polynomial function.
[0399] In embodiments of the present disclosure, one or both of the following are provided, for example, as part of or associated with encoded video data: (i) reference indicator data for indicating (with respect to the encoded video data) a reference quantization matrix; and (ii) modification indicator data for indicating (with respect to the encoded data value) one or more predetermined modifications.
[0400] These techniques are particularly useful where both the color subsampling formats are 4:4:4 and 4:2:2 formats.
[0401] For each transform size: 3, the number of Q matrices in HEVC 4:2:0 is currently 6 (for the corresponding channels), with one set for intra and one set for inter. In the case of 4:4:4 GBR technology, it should be understood that any one set of quantization matrices can be used for all channels, or three respective sets of quantization matrices can be used.
[0402] In embodiments of the present disclosure, at least one of these matrices is a 1×N matrix. This would be the case where one or more of these matrices is in fact a calibration table or the like (as described herein), which is a linear 1×N array of coefficients.
[0403] The proposed solution involves increasing or decreasing the applied QP. However, this can be achieved in several ways:
[0404] In HEVC, QP compensations for both chroma channels are transmitted in the bitstream. + / -3 can be incorporated into these compensations, or it can be incremented / decremented when it is used to obtain the chroma QP.
[0405] As discussed above, in HEVC, (luma QP + chroma compensation) is used as an index to a table used to obtain chroma QP. This table can be modified to incorporate + / -3 (ie, by incrementing / decrementing the original table values by 3).
[0406] After the chroma QP has been obtained, the result can then be incremented (or decremented) by 3, as per normal HEVC processing.
[0407] As an alternative to modifying the QP, sqrt(2) or 1 / sqrt(2) can be used to modify the quantization coefficients.
[0408] For forward / inverse quantization, the division / multiplication process is performed by using (QP%6) as an index to a table to obtain the quantization coefficient or quantization step size, inverseQStep / scaledQstep. (Here, QP%6 means QP modulo 6). Note: As discussed above, this may not represent the final quantization step size that is applied to the transformed data; it may be further modified by the Q matrix before use.
[0409] The default tables in HEVC are of length 6, covering multiples (doubles) of values. This is merely a means to reduce storage requirements; the tables are extended for practical use by selecting an entry in the table according to the modulus of the QP (mod 6) and then multiplying or dividing by the appropriate number of 2, depending on the difference from a predetermined base value (QP - QP mod 6).
[0410] This configuration can be changed to allow for a + / -3 compensation in the QP value. The compensation can be applied to the table lookup process, or the modulo process discussed above can be performed instead using the modified QP. Assuming that the compensation is applied to the table lookup, however, an additional entry in the table can be provided as follows:
[0411] An alternative is to extend the tables by 3 entries, where the new entries are as follows (for index values of 6-8).
[0412] Fig.30 The example table shown in will be indexed by [(QP%6)+3] (a "QP increment method"), where the code QP%6 represents "QP modulo 6".
[0413] Fig.31 The example table shown in would be indexed by [(QP%6)-3] (a "QP decrementing method") with additional entries for pointer values of -1 to -3.
[0414] Entropy Coding
[0415] Basic entropy coding involves assigning codewords to input data symbols, where the shortest available codeword is assigned to the most portable symbol in the input data. On average, this results in a lossless but much smaller representation of the input data.
[0416] The basic technique can be further improved by knowing that symbol probabilities are often conditional on recent previous data, and thus making the assignment process context-adaptive.
[0417] In this technique, content variables (CVs) are used to determine the selection of respective probability models, and such CVs are provided in the HEVC 4:2:0 scheme.
[0418] To extend entropy coding for the 4:2:2 scheme, which for example would use 4x8 chroma TUs instead of 4x4 TUs for an 8x8 luma TU, optionally content variation can be provided simply by repeating the same CV selection vertically.
[0419] However, in one embodiment of the present disclosure, the CV selection is not repeated for the top left coefficients (i.e., high energy, DC and / or low spatial frequency coefficients), but a new CV is obtained instead. In this case, for example, the mapping can be obtained from the brightness map. This approach can also be used for 4:4:4 schemes.
[0420] During encoding, in the 4:2:0 scheme, a so-called zigzag scan sequentially scans these coefficients from high to low frequency. However, note again that the chroma TUs in the 4:2:2 scheme may be non-square, and therefore in one embodiment of the present disclosure, a different chroma scan is proposed, where the scanning angle is tilted to make it more horizontal, or more generally, in response to the aspect ratio of the TU.
[0421] Similarly, importance maps near CV selections and c1 / c2 systems for greater than one and greater than two CV selections can be adapted accordingly.
[0422] Likewise, in one embodiment of the present disclosure, the least significant coefficient position (which becomes the starting point during decoding) may also be adjusted for 4:4:4, where the least significant position of the chroma TU is encoded differently than the least significant position in the co-located luma TU.
[0423] The coefficient scanning can also become dependent on the prediction mode of a certain TU size. Therefore, different scanning orders can be used for certain TU sizes depending on the intra prediction mode.
[0424] In the 4:2:0 scheme, mode dependent coefficient scanning (MDCS) is only applied to 4×4 / 8×8 luma TUs and 4×4 chroma TUs for intra prediction. MDCS is used depending on the intra prediction mode, considering angles from horizontal and vertical + / - 4.
[0425] In one embodiment of the present disclosure, it is proposed that in a 4:2:2 scheme, MDCS is applied to 4×8 and 8×4 chroma TUs for intra prediction. Similarly, it is proposed that in a 4:4:4 scheme, MDCS is applied to 8×8 and 4×4 chroma TUs. MDCS for 4:2:2 can only be performed in the horizontal or vertical direction, and the angular range can be different for 4:4:4 chroma vs. 4:4:4 luma vs. 4:2:2 chroma vs. 4:2:2 luma vs. 4:2:0 luma.
[0426] In-circuit filter
[0427] Deblocking
[0428] The exclusion block is applied to all CU, PU and TU boundaries, and the CU / PU / TU shape is not taken into account. The filter strength and size depend on local statistics, and the exclusion block has a granularity of 8×8 luma pixels.
[0429] Therefore, it is expected that the current deblocking applied to 4:2:0 technology should also be applicable to 4:2:2 and 4:4:4 schemes.
[0430] Sample adaptation compensation
[0431] In Sample Adaptive Offset (SAO), each channel is completely independent. SAO uses a quadtree to split the image data for each channel, and the resulting block size is at least one LCU. Leaf blocks are aligned to LCU boundaries and each leaf can operate in one of three modes, as determined by the encoder ("center band compensation", "side band compensation" or "edge compensation"). Each leaf classifies its pixels, and the encoder obtains compensation values for each of the 16 categories by comparing the SAO input data with the source data. These compensations are sent to the decoder. The compensation for the class of the decoded pixel is added to its value to minimize its deviation from the source.
[0432] Furthermore, SAO is enabled or disabled at the picture level; if enabled for luma, it can also be enabled separately for each chroma channel. SAO will thus be applied to chroma only if it is applied to luma.
[0433] Therefore, this process is very transparent to the important block technologies and it is expected that the current SAO applied to 4:2:0 technology should also be applicable to 4:2:2 and 4:4:4 schemes.
[0434] Adjusting the circuit filter
[0435] In the 4:2:0 scheme, adaptive loop filtering (ALF) is disabled by default. However, in theory (i.e., if allowed) ALF would be applied to the entire chrominance graph.
[0436] In ALF, luma samples can be classified into one of several classes, as determined by the HEVC profile; each class uses a different Wiener-based filter.
[0437] Conversely, in 4:2:0, chroma samples are not sorted - there is only one power-based filter for Cb, and one for Cr.
[0438] Therefore, in one embodiment of the present disclosure, due to the increased chrominance information in the 4:2:2 and 4:4:4 schemes, it is proposed that the chrominance samples thereof be classified, such as K class in 4:2:2 and J class in 4:4:4.
[0439] While ALF can be disabled on a per-CU basis for luma (down to its CU level specified by the ALF control depth) in a 4:2:0 scheme using the ALF control flag, it can only be disabled on a per-picture basis for chroma. Note: In HEVC, this depth is currently limited to LCU level only.
[0440] Therefore, in one embodiment of the present disclosure, 4:2:2 and 4:4:4 schemes are provided with ALF control flags specific to one or both chrominance channels.
[0441] grammar
[0442] In HEVC, syntax has been proposed to indicate 4:2:0, 4:2:2 or 4:4:4 schemes and is indicated at the sequence level. However, in one embodiment of the present disclosure, it is proposed to also indicate 4:4:4 GBR encoding at this level.
[0443] Data Signal
[0444] It should be understood that the data signals (and storage or transmission media carrying such signals) produced by the variations of the encoding devices discussed above are considered to represent embodiments of the present disclosure.
[0445] Various aspects and features of at least embodiments of the present technology are defined by the following clauses:
[0446] 1. A video encoding or decoding method, wherein a luma sample and a color sample in a 4:4:4 format or a 4:2:2 format are predicted from other samples according to a prediction direction associated with a block of samples to be predicted;
[0447] The method comprises:
[0448] Detecting the prediction direction relative to the current block to be predicted;
[0449] generating a prediction block of color samples according to other color samples defined by the prediction direction;
[0450] If the detected prediction direction is substantially vertical, filtering the left column of samples in the prediction block of color samples, or if the detected prediction direction is substantially horizontal, filtering the top row of samples in the prediction block of color samples; and
[0451] The difference between the filtered predicted chroma block and the actual chroma block is encoded, or the decoded difference is applied to the filtered predicted chroma block to encode or decode the block, respectively.
[0452] 2. A method according to clause 1, wherein, in case the detected prediction direction is substantially vertical, the filtering step comprises filtering the left column samples using a horizontally oriented filter.
[0453] 3. The method of clause 2, wherein the filtering step comprises filtering only the left column samples.
[0454] 4. A method according to clause 1, wherein, in the case where the detected prediction direction is substantially horizontal, the filtering step comprises filtering the top row samples using a vertically oriented filter.
[0455] 5. The method of clause 4, wherein the filtering step comprises filtering only the top row samples.
[0456] 6. A method according to any of the preceding clauses, comprising the steps of:
[0457] Indicates whether to include luma difference data losslessly in the output bitstream; and
[0458] Separately indicates whether chroma difference data is included losslessly in the bitstream.
[0459] 7. A method according to any of the preceding clauses, wherein:
[0460] The luma samples and color samples have a 4:4:4 format and are arranged into a plurality of coding units, each coding unit comprising a block of luma samples and color samples; and
[0461] The detecting step is configured to detect the prediction direction with respect to a current prediction unit, the current prediction unit being a block of luma or color samples representing at least a subset of the respective coding units.
[0462] 8. The method according to clause 7, comprising the steps of:
[0463] For a particular coding unit, selecting a size and a shape of one or more prediction units, each prediction unit including a luminance sample and a color sample of the coding unit, and the size and shape of the prediction unit are selected the same as the luminance sample and the color sample;
[0464] 9. A video encoding or decoding method, wherein luma samples and color samples are predicted and the difference between the samples and the respective predicted samples is encoded, the method comprising the following steps:
[0465] Indicates whether to include luma difference data losslessly in the output bitstream; and
[0466] Separately indicates whether chroma difference data is included losslessly in the bitstream.
[0467] 10. A video encoding or decoding method, wherein luma samples and color samples having a 4:4:4 format are arranged into a plurality of coding units, each coding unit comprising a block of luma samples and color samples; the method comprising:
[0468] For a particular coding unit, selecting a size and shape of one or more prediction units, each prediction unit comprising luma or color samples of at least a subset of the coding unit, the size and shape of the prediction unit being selected the same as the luma samples and the color samples;
[0469] With respect to each prediction unit, detecting a prediction direction; and
[0470] A prediction block of samples is generated based on other samples defined by the prediction direction.
[0471] 11. Computer software which, when executed by a computer, causes the computer to perform a method according to any of the preceding clauses.
[0472] 12. A machine-readable non-volatile storage medium storing the software according to clause 11.
[0473] 13. A data signal comprising encoded data generated according to the method of any of clauses 1 to 10.
[0474] 14. A video encoding or decoding device, wherein luma samples and colour samples in a 4:4:4 format or a 4:2:2 format are predicted from other samples according to a prediction direction associated with a block of samples to be predicted;
[0475] The device comprises:
[0476] a detector configured to detect a prediction direction relative to a current block to be predicted;
[0477] A generator is configured to generate a prediction block of color samples based on other color samples defined by a prediction direction.
[0478] a filter configured to filter a left column of samples in a prediction block of color samples if the detected prediction direction is substantially vertical, or to filter a top row of samples in a prediction block of color samples if the detected prediction direction is substantially horizontal; and
[0479] An encoder configured to encode the difference between the filtered predicted chroma block and the actual chroma block, or to apply the decoded difference to the filtered predicted chroma block, so as to encode or decode the block, respectively.
[0480] 15. A video encoding or decoding device, wherein luma samples and color samples are predicted and the difference between the samples and the respective predicted samples is encoded, the device comprising:
[0481] An indicator configured to indicate whether luma difference data is losslessly included in the output bitstream; and separately indicate whether chroma difference data is losslessly included in the bitstream.
[0482] 16. A video encoding or decoding device, wherein luma samples and color samples having a 4:4:4 format are arranged into a plurality of coding units, each coding unit comprising a block of luma samples and color samples; the method comprising:
[0483] A selector configured to select, for a particular coding unit, a size and a shape of one or more prediction units, each prediction unit comprising luma or color samples of at least a subset of the coding unit, the size and shape of the prediction unit being selected the same as the luma samples and the color samples;
[0484] a detector configured to detect a prediction direction with respect to each prediction unit; and
[0485] A generator is configured to generate a prediction block of samples based on other samples defined by the prediction direction.
[0486] Various further aspects and features of at least embodiments of the present technology are defined by the following clauses:
[0487] 1. A video encoding or decoding method, wherein a luma sample and a color sample in a 4:4:4 format or a 4:2:2 format are predicted from other samples according to a prediction direction associated with a block of samples to be predicted;
[0488] The method comprises:
[0489] Detecting the prediction direction relative to the current block to be predicted;
[0490] generating a prediction block of color samples according to other color samples defined by the prediction direction;
[0491] If the detected prediction direction is substantially vertical, filtering the left column of samples in the prediction block of color samples, or if the detected prediction direction is substantially horizontal, filtering the top row of samples in the prediction block of color samples; and
[0492] The difference between the filtered predicted chroma block and the actual chroma block is encoded.
[0493] 2. A method according to clause 1, wherein, in case the detected prediction direction is substantially vertical, the filtering step comprises filtering the left column samples using a horizontally oriented filter.
[0494] 3. The method of clause 2, wherein the filtering step comprises filtering only the left column samples.
[0495] 4. A method according to clause 1, wherein, in the case where the detected prediction direction is substantially horizontal, the filtering step comprises filtering the top row samples using a vertically oriented filter.
[0496] 5. The method of clause 4, wherein the filtering step comprises filtering only the top row samples.
[0497] 6. A method according to any of the preceding clauses, comprising the steps of:
[0498] Indicates whether to include luma difference data losslessly in the output bitstream; and
[0499] Separately indicates whether chroma difference data is included losslessly in the bitstream.
[0500] 7. A video encoding or decoding method, wherein luma samples and color samples are predicted and the difference between the samples and the respective predicted samples is encoded, the method comprising the following steps:
[0501] Indicates whether to include luma difference data losslessly in the output bitstream; and
[0502] Separately indicates whether chroma difference data is included losslessly in the bitstream.
[0503] 8. Computer software which, when executed by a computer, causes the computer to perform a method according to any of the preceding clauses.
[0504] 9. A machine-readable non-volatile storage medium storing the software according to clause 8.
[0505] 10. A data signal comprising encoded data generated according to the method of any of clauses 1 to 7.
[0506] 11. A video encoding or decoding device, wherein luma samples and colour samples in a 4:4:4 format or a 4:2:2 format are predicted from other samples according to a prediction direction associated with a block of samples to be predicted;
[0507] The device comprises:
[0508] a detector configured to detect a prediction direction relative to a current block to be predicted;
[0509] A generator is configured to generate a prediction block of color samples based on other color samples defined by a prediction direction.
[0510] a filter configured to filter a left column of samples in a prediction block of color samples if the detected prediction direction is substantially vertical, or to filter a top row of samples in a prediction block of color samples if the detected prediction direction is substantially horizontal; and
[0511] An encoder configured to encode a difference between the filtered predicted chroma block and an actual chroma block.
[0512] 12. A video encoding or decoding device, wherein luma samples and color samples are predicted and the difference between the samples and the respective predicted samples is encoded, the device comprising:
[0513] An indicator configured to indicate whether luma difference data is losslessly included in the output bitstream; and separately indicate whether chroma difference data is losslessly included in the bitstream.
[0514] Insofar as embodiments of the invention have been described as being implemented (at least in part) by data processing apparatus controlled by software, it should be understood that a data processing apparatus carrying such software (such as an optical disk, magnetic disk, semiconductor memory, etc.) is also considered to represent embodiments of the invention.
[0515] It is clear that various modifications and variations of the present invention are possible in light of the above teachings. It should therefore be understood that within the scope of the appended claims, this technology may be practiced otherwise than as explicitly described herein.
Claims
1. A method for video decoding, operable with respect to a block of spatial frequency data, for performing a frequency transform by applying a frequency transform to generate a block of video data samples, said video data samples being each scaled by a common scaling factor with respect to video data samples that would result from a normalized frequency transform of said block of spatial frequency data, and for inverse quantization according to a quantization step size, said method comprising: Apply n bit shift to divide the processed data by a factor of 2 n , where n is an integer; Detecting a residual calibration factor, the residual calibration factor is the common calibration factor divided by 2 n ; modifying the quantization step size according to the residual scaling factor to generate a modified quantization step size; multiplying each data sample for inverse quantization by a value dependent on the modified quantization step size; applying the frequency transform, and A quantization index is selected which defines a corresponding entry in a lookup table of 6 or 9 quantization steps.
2. The method according to claim 1, comprising selecting a different quantization step size for changing the quantization index so that the ratio of the different quantization step size to the initially selected quantization step size is equal to the residual scaling factor.
3. The method according to claim 2, wherein: Selecting a quantization index for luma samples and, for each sample of a chroma component or samples of two chroma components, generating a quantization index offset relative to the quantization index selected for the luma sample; The quantization index offset is changed according to the residual scaling factor.
4. The method according to any one of claims 1 to 3, wherein: Successive values of the quantization step size in the lookup table are logarithmically related such that a change in the quantization index m represents a change in the quantization step size by a factor p, where m is an integer and p is an integer greater than 1.
5. The method according to claim 4, wherein: m=6 and p=2. The method of claim 5 , comprising modifying the quantization index by + / -3.
7. The method according to claim 5, wherein the quantization index Index is associated with the quantization step size scaledQstep and the inverse of the quantization step size inverseQstep through one or both of the following lookup tables: 。 8. The method according to claim 7, wherein: The lookup table includes nine quantization index values, each of which is associated with the quantization step size and the inverse of the quantization step size.
9. The method according to claim 8, wherein: The lookup table includes the following values: quantization index index, quantization step size scaledQstep, and inverse quantization step size inverseQstep: 。 10. A method according to any one of claims 1 to 3, comprising selecting n such that 2 n Greater than or equal to the common scaling factor.
11. A method according to any one of claims 1 to 3, comprising selecting n such that 2 n Less than or equal to the common scaling factor.
12. The method of claim 1, comprising multiplying the quantization step size by a factor that depends on the residual scaling factor.
13. The method according to any one of claims 1 to 3, wherein: At least some of the blocks of video data samples comprise MxN samples, where the square root of N / M is not equal to an integer power of 2.
14. The method according to claim 13, wherein: At least some of the blocks are blocks of chroma samples.
15. The method according to claim 14, wherein: The video data samples are in 4:2:2 format.
16. The method according to any one of claims 1 to 3, wherein: A matrix multiplication is performed on a block of spatial frequency data by a transformation matrix and a transposition of the transformation matrix, wherein the transformation matrix comprises an array of integer values, each of which is scaled by the common scaling factor relative to a corresponding value of a normalized transformation matrix.
17. The method according to claim 16, wherein: The transform matrix comprises an array of integer values, each of which is scaled relative to a corresponding value of a normalized transform matrix by an amount that depends on the dimensionality of the transform matrix.
18. The method according to any one of claims 1 to 3, wherein: The inverse quantization is configured to operate with respect to the block of quantized spatial frequency data to generate the block of inverse quantized spatial frequency data; and An operation is performed with respect to the block of inverse quantized spatial frequency data to generate a block of video data samples.
19. A method for video encoding, operable to generate a block of spatial frequency data by frequency transforming a block of video data samples to generate spatial frequency coefficients, said spatial frequency coefficients being each scaled by a common scaling factor relative to coefficients that would result from a normalized frequency transform of said block of video data samples, and for quantization according to a selected quantization step size, the method comprising: frequency transforming blocks of video data samples; Selecting a quantization step size for quantization; Apply n bit shift to divide by factor 2 n , where n is an integer; Detecting a residual calibration factor, the residual calibration factor is the common calibration factor divided by 2 n ; modifying a quantization step size according to the residual scaling factor to generate a modified quantization step size; dividing each data value used for quantization by a value dependent on the modified quantization step size and rounding the result to an integer value, and A quantization index is selected which defines a corresponding entry in a lookup table of 6 or 9 quantization steps.
20. A machine-readable non-transitory storage medium storing computer software which, when executed by a computer, causes the computer to perform the method according to claim 1 or 19.
21. A video decoding method for decoding both video signals in 4:2:0 format and in 4:2:2 format, the video signal comprising luma samples and chroma samples predicted from other reference samples derived from the same picture from which the decoded luma samples and chroma samples are predicted, wherein: For 4: a video signal in 2:0 format, the prediction of luma samples and chroma samples derived from corresponding reference samples is based on an angular prediction mode having a prediction direction within 180 degrees in a diagonal half of a square; and For a video signal in 4:2:2 format, prediction of luma samples derived from reference samples is based on an angular prediction mode having a prediction direction within 180 degrees in a diagonal half of a square, and prediction modes for chroma samples derived from the reference samples are associated with a grid of a first aspect ratio, which grid is directional mapped to generate second prediction modes associated with a grid of a different second aspect ratio, which modifies the prediction modes for the chroma samples.
22. The video decoding method according to claim 21, wherein: The grid of the first aspect ratio is defined relative to square blocks of luma samples.
23. The video decoding method according to claim 21 or 22, wherein: The grid of the second aspect ratio is defined relative to rectangular blocks of chroma samples.
24. The video decoding method according to claim 21 or 22, wherein: Modification of the prediction mode for chroma samples modifies the prediction direction for the chroma samples.
25. The video decoding method according to claim 24, wherein: The modification of the prediction mode reduces the angle of the prediction direction for at least some chroma samples.
26. The video decoding method according to claim 21 or 22, wherein: For video signals in 4:2:0 format and 4:2:2 format, prediction from other reference samples also includes prediction using a non-directional mode.
27. The video decoding method according to claim 21 or 22, wherein: The prediction direction defines a sample position relative to a set of candidate reference samples, the set of candidate reference samples comprising horizontal rows and vertical columns of samples respectively arranged above and to the left of a current set of samples to be predicted.
28. The video decoding method according to claim 21 or 22, wherein: The step of applying the directional mapping comprises indexing a lookup table using a prediction mode associated with a grid of a first aspect ratio, the lookup table providing a corresponding value for the second prediction mode.
29. The video decoding method according to claim 21 or 22, wherein: For a video signal in 4:2:2 format, the prediction mode associated with the grid of the first aspect ratio is used for prediction of luma samples of the sample set, and the second prediction mode is used for prediction of chroma samples of the sample set.
30. A storage medium storing a computer program which, when executed by a computer, causes the computer to perform the method according to any one of claims 21 to 29.
Citation Information
Patent Citations
Method and apparatus for chrominance processing in high efficiency video codecs
GB201207459D0
Filtering Predicted Chrominance Samples When Encoding 4:2:2 Format Video Using HEVC
GB2501547A
Data encoding and decoding
GB2501566A
Coding and decoding for interlaced video
CN101411195A
Quantization adjustment based on texture level
CN101416512A
