Simplifying clipping value calculation for adaptive loop filters
Simplified integer arithmetic methods for calculating clipping values in adaptive loop filters address computational complexity and decoding errors in video coding, improving efficiency and reducing hardware burden.
Patent Information
- Application Number
- JP2021568791
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-05-19
- Filing Date
- 2020-05-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-20
AI Technical Summary
Existing video coding techniques face challenges in efficiently calculating clipping values for adaptive loop filters, leading to increased computational complexity and decoding errors due to the use of floating-point arithmetic.
The implementation of simplified integer arithmetic methods for calculating clipping values, specifically through left-shifting operations and predetermined offset values, to determine clipping values for adaptive loop filters in video coding, reducing computational burden and errors.
This approach simplifies clipping value calculations, reduces computational complexity, minimizes hardware burden, and decreases decoding errors in video coding processes, enhancing efficiency and performance.
Smart Images

Figure 0007554776000020 
Figure 0007554776000017 
Figure 0007554776000024
Abstract
Description
[Technical field]
[0001] In some examples, aspects of the present disclosure relate to simplifying clipping value calculations for adaptive loop filters and / or other filters used to encode and / or decode video data. [Background technology]
[0002] Many types of computing devices and systems enable video data to be processed and output for consumption. Digital video data comprises large amounts of data driven in part by great demand from consumers and video providers. For example, consumers of video data desire high quality video having high fidelity, resolution, frame rates, etc. The large amounts of video data typically required to meet such demands place a great strain on communication networks and devices that process and store such video data. Generally, various video coding techniques are used to compress video data, which may limit the bandwidth and storage burden of such video data on communication networks and devices.
[0003] Video coding may be performed according to one or more video coding standards. Exemplary video coding standards include Versatile Video Coding (VVC), High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), Moving Picture Experts Group (MPEG) coding, among others. Video coding generally uses prediction methods (e.g., inter-prediction, intra-prediction, etc.) that exploit redundancy present in a video image or sequence. Video coding techniques may use such redundancy to compress video data into a form that uses a lower bit rate while avoiding or minimizing degradation of video quality. Summary of the Invention [Problem to be solved by the invention]
[0004] With ever-evolving video services becoming available, encoding techniques with better coding efficiency are needed. [Means for solving the problem]
[0005] A system, method, and computer-readable medium for effectively and efficiently calculating a clipping value for an adaptive loop filter used in video coding are disclosed. According to at least one example, a method is provided for simplified and efficient calculation of a clipping value for an adaptive loop filter. The method may include obtaining video data including one or more pictures, obtaining a block of a picture from the one or more pictures, determining a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer including a result of subtracting an offset value associated with a clipping index value from a bit depth value for a sample from the block, and applying the at least one filter to the block.
[0006] According to at least one example, an apparatus is provided for simplified and efficient calculation of clipping values for an adaptive loop filter. The apparatus may include a memory and one or more processors coupled to the memory, where the one or more processors are configured to: obtain video data including one or more pictures, obtain a block of a picture from the one or more pictures, determine a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer including a result of subtracting an offset value associated with the clipping index value from a bit depth value for a sample from the block, and apply the at least one filter to the block.
[0007] According to at least one example, another apparatus is provided for simplified and efficient computation of clipping values for an adaptive loop filter. The apparatus may include means for obtaining video data including one or more pictures, means for obtaining a block of a picture from the one or more pictures, means for determining a clipping value for the at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left shifting a first integer by a second integer, the second integer including a result of a bit depth value for a sample from the block minus an offset value associated with the clipping index value, and means for applying the at least one filter to the block.
[0008] According to at least one example, a non-transitory computer-readable storage medium for simplified and efficient calculation of clipping values for an adaptive loop filter is provided. The non-transitory computer-readable storage medium may include instructions stored thereon that, when executed by one or more processors, cause the one or more processors to: obtain video data including one or more pictures, obtain a block of a picture from the one or more pictures, determine a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer including a result of subtracting an offset value associated with the clipping index value from a bit depth value for a sample from the block, and apply the at least one filter to the reconstructed block.
[0009] In some aspects, the at least one filter in the above-mentioned methods, non-transitory computer-readable media, and apparatus may include an adaptive loop filter. Moreover, in some examples, the clipping values may include a first set of clipping values for the luma component and a second set of clipping values for the chroma components, both of which are determined by left-shifting a first integer by a second integer.
[0010] In some cases, the first integer is 1, and left-shifting the first integer by the second integer may include raising 2 to a power of the exponent that includes the second integer.
[0011] In some aspects, the clipping value may correspond to a set of filter clipping values in a clipping index table, and different filter clipping values in the set of filter clipping values in the clipping index table may correspond to different positions in the picture.
[0012] In some examples, the offset value may include a predetermined offset value from a plurality of predetermined offset values, and the offset value may be determined from the plurality of predetermined offset values based on the clipping index value.
[0013] In some aspects, determining a clipping value for the at least one filter may include determining corresponding clipping values for a plurality of samples from the picture, each corresponding clipping value being associated with a particular sample from the plurality of samples, and each corresponding clipping value being determined by left-shifting a first integer by a particular integer associated with the particular sample. In some examples, the particular integer may include a particular result of subtracting a particular offset value from a plurality of predefined offset values from a bit depth value for the particular sample. In some cases, the particular offset value may be determined from the plurality of predefined offset values based on a particular clipping index value associated with the particular sample.
[0014] In some aspects, the clipping values for the at least one filter may include one or more luma clipping values for the luma component and one or more chroma clipping values for the chroma components, where the one or more luma clipping values are determined by left shifting a first integer by a third integer, the third integer including a second result of subtracting a luma offset value associated with the second clipping index value from a bit depth value for a luma sample from the picture, and the one or more chroma clipping values are determined by left shifting the first integer by a fourth integer, the fourth integer including a third result of subtracting a chroma offset value associated with the third clipping index value from a bit depth value for a chroma sample from the picture.
[0015] In some cases, the at least one filter may include a 5×5 adaptive loop filter and a 7×7 adaptive loop filter, and applying the at least one filter to the reconstructed block may include applying a 5×5 adaptive loop filter to chroma components and applying a 7×7 adaptive loop filter to luma components.
[0016] In some cases, determining clipping values for the at least one filter may include determining filter coefficient values for the at least one filter.
[0017] In some aspects, the above-mentioned methods, non-transitory computer-readable media, and devices may include generating an encoded video bitstream including one or more pictures. In some examples, the encoded video bitstream may be generated based on the video data and a result of applying at least one filter to the blocks. In some cases, the above-mentioned methods, non-transitory computer-readable media, and devices may include sending the encoded video bitstream to a decoding device, where the encoded video bitstream is sent with signaling information, where the signaling information includes an offset value, a clipping index value, a filter parameter, and / or an adaptive loop filter flag. In some aspects, the above-mentioned methods, non-transitory computer-readable media, and devices may include storing the encoded video bitstream.
[0018] In some aspects, the methods, non-transitory computer-readable media, and apparatus described above may include obtaining an encoded video bitstream including one or more pictures; identifying signaling information associated with the encoded video bitstream, where the signaling information includes an offset value, a clipping index value, a filter parameter, and / or an adaptive loop filter flag; and decoding a block from the encoded video bitstream.
[0019] In some aspects, decoding a block of a picture from the encoded video bitstream may include reconstructing the block of the picture, and applying the at least one filter may include applying the at least one filter to the reconstructed block.
[0020] In some examples, the above-mentioned devices may include one or more sensors. In some aspects, the above-mentioned devices may include mobile devices. In some examples, the above-mentioned devices may include mobile phones, wearable devices, display devices, mobile computers, head-mounted devices, and / or cameras.
[0021] This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used alone to determine the scope of the claimed subject matter, which subject matter should be understood by reference to the entire specification of this patent, any or all drawings, and appropriate portions of each claim.
[0022] The above, together with other features and embodiments, will become more apparent with reference to the following specification, claims, and accompanying drawings.
[0023] To describe the manner in which the disclosed and other advantages and features of the present disclosure may be obtained, a more particular description of the above-described principles will be made by reference to specific embodiments of the disclosure that are illustrated in the accompanying drawings, with the understanding that these drawings depict only exemplary embodiments of the disclosure and should not be considered as limiting its scope, and the principles herein will be described and explained with additional specificity and detail using the drawings. [Brief description of the drawings]
[0024] [Figure 1] 1 is a block diagram illustrating an example of an encoding device and a decoding device according to some examples of this disclosure. [Figure 2A] 1 is a simplified diagram illustrating an example system for applying an adaptive loop filter (ALF) with clipping to an input frame, in accordance with some examples of the present disclosure. [Figure 2B] 1 is a flowchart of an example method for ALF filtering with clipping implemented by an encoding device, in accordance with some examples of the present disclosure. [Figure 2C] 1 is a flowchart illustrating an example method for ALF filtering with clipping implemented by a decoding device, in accordance with some examples of the present disclosure. [Figure 3A] FIG. 2 illustrates examples of chroma filter configurations according to some examples of the present disclosure. [Figure 3B] FIG. 2 illustrates an example of a luma filter configuration according to some examples of this disclosure. [Figure 4A] FIG. 2 illustrates an example filter without geometric transformation, in accordance with some examples of the present disclosure. [Figure 4B] 1A-1C are diagrams illustrating example filters with different geometric transformations, in accordance with certain examples of the present disclosure. [Figure 4C] 1A-1C are diagrams illustrating example filters with different geometric transformations, in accordance with certain examples of the present disclosure. [Figure 4D] 1A-1C are diagrams illustrating example filters with different geometric transformations, in accordance with certain examples of the present disclosure. [Diagram 5] 1A-1C show example tables of clipping values derived based on simplified clipping value calculations in accordance with some examples of the present disclosure. [Figure 6] 6 is a flowchart illustrating an example method 600 for processing video data, in accordance with some examples of the present disclosure. [Figure 7] 1 is a block diagram illustrating an example video encoding device according to some examples of this disclosure. [Figure 8] 1 is a block diagram illustrating an example video decoding device according to some examples of this disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] Some aspects and embodiments of the present disclosure are provided below. As will be apparent to those skilled in the art, some of these aspects and embodiments may be applied independently, and some of them may be applied in combination. In the following description, for the purposes of explanation, specific details are described to provide a thorough understanding of the embodiments of the present application. However, it will be apparent that various embodiments can be practiced without these specific details. The figures and descriptions are not intended to be limiting.
[0026] The following description provides exemplary embodiments only and is not intended to limit the scope, applicability, or configuration of the present disclosure. Instead, the following description of exemplary embodiments provides those skilled in the art with an enabling description for implementing the exemplary embodiments. It should be understood that various changes can be made in the function and arrangement of elements without departing from the spirit and scope of the present application as set forth in the appended claims.
[0027] Video coding devices may implement video compression techniques to efficiently encode and decode video data. Video compression techniques may include applying different prediction modes, including spatial prediction (e.g., intraframe or intra prediction), temporal prediction (e.g., interframe or inter prediction), inter-layer prediction (across different layers of video data), and / or other prediction techniques to reduce or remove redundancy inherent in video sequences, among others. A video encoder may partition each picture of an original video sequence into rectangular regions called video blocks or coding units, which are described in more detail below. These video blocks may be encoded using a particular prediction mode.
[0028] In some cases, a video block may be divided in one or more ways into one or more groups of smaller blocks. A block may include a coding tree block, a prediction block, a transform block, and / or other appropriate blocks. References to a "block" generally may refer to such a video block (e.g., a coding tree block, a coding block, a prediction block, a transform block, or other appropriate blocks or sub-blocks as would be understood by one of ordinary skill in the art) unless otherwise specified. These blocks may also be referred to interchangeably herein as "units" (e.g., a coding tree unit (CTU), a coding unit (CU), a prediction unit (PU), a transform unit (TU), etc.). In some cases, a unit may refer to a coding logical unit that is encoded into a bitstream, and a block may refer to a portion of a video frame buffer that a process targets.
[0029] For inter-prediction modes, the video encoder may search for a block similar to the block encoded in a frame (or picture) at another temporal location, called a reference frame or picture. The video encoder may limit the scope of this search to a certain spatial displacement from the block to be encoded. A two-dimensional (2D) motion vector, including a horizontal displacement component and a vertical displacement component, may be used to identify the best match. For intra-prediction modes, the video encoder may form a predicted block using spatial prediction techniques based on data from previously encoded neighboring blocks in the same picture.
[0030] The video encoder may determine a prediction error. In some examples, the prediction may be determined as a difference between pixel values in the block being coded and the predicted block. The prediction error may also be referred to as a residual. The video encoder may also apply a transform (e.g., a discrete cosine transform (DCT) or other appropriate transform) to the prediction error to generate transform coefficients. After the transform, the video encoder may quantize the transform coefficients. The quantized transform coefficients and the motion vectors may be represented using syntax elements and, together with the control information, form a coded representation of the video sequence. In some instances, the video encoder may entropy code the syntax elements, thereby further reducing the number of bits used to represent them.
[0031] A video decoder can use the syntax elements and control information discussed above to construct prediction data (e.g., a prediction block) for decoding a current frame. For example, the video decoder can add a predicted block and a compressed prediction error. The video decoder can determine the compressed prediction error by weighting a transform basis function using the quantized coefficients. The difference between the reconstructed frame and the original frame is called the reconstruction error.
[0032] In some cases, an adaptive loop filter using clipping may be applied to enhance the quality of the reconstructed frame. Clipping is an image processing technique that may be used to process images and / or improve the quality of an image or frame when the intensity or brightness in one or more areas of the image or frame deviates from a minimum or maximum intensity or brightness that may be represented. For example, clipping may be used to adjust the intensity or brightness values for such areas of the image or frame to or within a minimum or maximum value that may be represented.
[0033] The techniques described herein can simplify and increase the efficiency of clipping value calculations for adaptive loop filters used in video coding. In some examples, the techniques described herein can reduce the complexity of such calculations, reduce decoding errors, and minimize the processing burden on the computational resources of a device. Moreover, the techniques described herein can be applied to any video codec (e.g., High Efficiency Video Coding (HEVC), Advanced Video Coding (AVC), or other suitable existing video codecs) and / or be efficient coding tools for any video coding standard, including current video coding standards, developing video standards, and / or future video coding standards, such as, for example, Versatile Video Coding (VVC), Joint Exploration Model (JEM), and / or other video coding standards under development or to be developed.
[0034] FIG. 1 is a block diagram illustrating an example system 100 including an encoding device 104 and a decoding device 112. The encoding device 104 may be part of a source device, and the decoding device 112 may be part of a receiving device. The source device and / or the receiving device may include electronic devices such as mobile or fixed telephone handsets (e.g., smartphones, cellular telephones, etc.), desktop computers, laptop or notebook computers, tablet computers, set-top boxes, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, Internet Protocol (IP) cameras, head-mounted displays (HMDs), and / or any other suitable electronic devices. In some examples, the source device and the receiving device may include one or more wireless transceivers for wireless communication. The coding techniques described herein may be applied to video coding in various multimedia applications, including, for example, streaming video transmission (e.g., over the Internet), television broadcasting or transmission, encoding digital video for storage on a data storage medium, decoding digital video stored on a data storage medium, and / or other applications. In some examples, the system 100 may support one-way or two-way video transmission to support applications such as video conferencing, video streaming, video playback, video broadcasting, gaming, video telephony, and the like.
[0035] The encoding device 104 (i.e., an encoder) may be used to encode the video data using a video coding standard or video coding protocol to generate an encoded video bitstream. Examples of video coding standards include ITU-T H.261, ISO / IEC MPEG-1 Visual, ITU-T H.262 or ISO / IEC MPEG-2 Visual, ITU-T H.263, ISO / IEC MPEG-4 Visual, ITU-T H.264 (also called ISO / IEC MPEG-4 AVC), including its Scalable Video Coding (SVC) and Multiview Video Coding (MVC) extensions, and High Efficiency Video Coding (HEVC), i.e., ITU-T H.265. There are various extensions of HEVC that deal with multi-layer video coding, including range extension and screen content coding extension, 3D video coding (3D-HEVC) extension and multiview extension (MV-HEVC), and scalable extension (SHVC). HEVC and its extensions are being developed by the Joint Study Group on Video Coding (JCT-VC) as well as the Joint Study Group on 3D Video Coding Extensions Development (JCT-3V) of the ITU-T Video Coding Expert Group (VCEG) and the ISO / IEC Motion Picture Expert Group (MPEG).
[0036] MPEG and ITU-T VCEG have also formed the Joint Research Video Team (JVET) to explore and develop new video coding tools for the next generation video coding standard named Versatile Video Coding (VVC). The reference software is called the VVC Test Model (VTM). The goal of VVC is to provide significant improvements in compression performance over the existing HEVC standard to support the deployment of higher quality video services as well as emerging applications (e.g., 360° omnidirectional immersive multimedia, high dynamic range (HDR) video, among others).
[0037] Various aspects described herein provide examples using VTM, VVC, HEVC, and / or extensions thereof. However, the techniques and systems described herein may also be applicable to other coding standards, such as AVC, MPEG, JPEG (or other coding standards for still images), extensions thereof, or other suitable coding standards that are already available or have not yet been available or developed. Thus, although the techniques and systems described herein may be described with reference to a particular video coding standard, those skilled in the art will appreciate that the description should not be construed as applying only to that particular standard.
[0038] 1, video source 102 may provide video data to encoding device 104. Video source 102 may be part of a source device or part of a device other than a source device. Video source 102 may include a video capture device (e.g., a video camera, a camera phone, a video phone, etc.), a video archive containing stored video, a video server or content provider providing video data, a video feed interface receiving video from a video server or content provider, a computer graphics system for generating computer graphics video data, a combination of such sources, or any other suitable video source.
[0039] The video data from the video source 102 may include one or more input pictures. A picture may also be referred to as a "frame." A picture or frame is a still image that is possibly part of a video. In some examples, the data from the video source 102 may be a still image that is not part of a video. In HEVC, VVC, and other video coding specifications, a video sequence may include a series of pictures. A picture may include three sample arrays, denoted SL, SCb, and SCr. SL is a two-dimensional array of luma samples, SCb is a two-dimensional array of Cb chroma samples, and SCr is a two-dimensional array of Cr chroma samples. The chroma samples are sometimes referred to herein as "chroma" samples. In other cases, a picture may be monochrome and may only include an array of luma samples.
[0040] The encoder engine 106 (or encoder) of the encoding device 104 encodes the video data to generate a coded video bitstream. In some examples, the coded video bitstream (or "video bitstream" or "bitstream") is a series of one or more coded video sequences. A coded video sequence (CVS) includes a series of access units (AUs) starting from an AU having a random access point picture with some characteristics in a base layer up to just before a next AU having a random access point picture with some characteristics in a base layer. For example, some characteristics of a random access point picture that initiates a CVS may include a RASL flag (e.g., NoRaslOutputFlag) equal to 1. Otherwise, a random access point picture (having a RASL flag equal to 0) does not initiate a CVS.
[0041] An access unit (AU) contains one or more coded pictures and control information corresponding to coded pictures that share the same output time. Coded slices of a picture are encapsulated at the bitstream level into data units called network abstraction layer (NAL) units. For example, a HEVC video bitstream may contain one or more CVSs that contain NAL units. Each of the NAL units has a NAL unit header. In one example, the header is 1 byte in H.264 / AVC (except for multi-layer extensions) and 2 bytes in HEVC. Syntax elements in the NAL unit header take designated bits and are therefore recognizable to all kinds of systems and transport layers, such as transport streams, real-time transport (RTP) protocols, file formats, etc., in particular.
[0042] Two classes of NAL units exist in the HEVC standard, including video coding layer (VCL) NAL units and non-VCL NAL units. A VCL NAL unit contains one slice or slice segment (described below) of coded picture data, and a non-VCL NAL unit contains control information related to one or more coded pictures. In some cases, a NAL unit may be referred to as a packet. An HEVC AU contains VCL NAL units that contain coded picture data and non-VCL NAL units that correspond to the coded picture data (if any).
[0043] A NAL unit may include a sequence of bits (e.g., an encoded video bitstream, CVS of a bitstream, etc.) that form a coded representation of video data, such as a coded representation of a picture in a video. The encoder engine 106 may generate the coded representation of the picture by partitioning each picture into multiple slices. A slice may be independent of other slices such that information in a slice is coded without depending on data from other slices in the same picture. A slice includes one or more slice segments, including an independent slice segment and, if present, one or more dependent slice segments that depend on a previous slice segment.
[0044] In HEVC, a slice is partitioned into coding tree blocks (CTBs) of luma samples and chroma samples. A CTB of luma samples and one or more CTBs of chroma samples, together with syntax for the samples, are called a coding tree unit (CTU). A CTU is sometimes called a "tree block" or a "largest coding unit" (LCU). A CTU is the basic processing unit for HEVC encoding. A CTU may be divided into multiple coding units (CUs) of various sizes. A CU contains a luma sample array and a chroma sample array, called a coding block (CB).
[0045] The luma CB and the chroma CB may be further divided into prediction blocks (PBs). A PB is a block of luma or chroma component samples that uses the same motion parameters for inter prediction or intra block copy prediction (when available or valid). A luma PB and one or more chroma PBs together with associated syntax form a prediction unit (PU). In the case of inter prediction, a set of motion parameters (e.g., one or more motion vectors, reference indexes, etc.) is signaled in the bitstream for each PU and is used for inter prediction of the luma PB and one or more chroma PBs. The motion parameters are sometimes referred to as motion information. A CB may also be partitioned into one or more transform blocks (TBs). A TB represents a square block of samples of a color component on which the same two-dimensional transform is applied to code a prediction residual signal. A transform unit (TU) represents a TB of luma and chroma samples and corresponding syntax elements.
[0046] The size of a CU corresponds to the size of a coding mode and may be square in shape in some cases. For example, the size of a CU may include 8×8 samples, 16×16 samples, 32×32 samples, 64×64 samples, or any other suitable size up to the size of a corresponding CTU. As used herein, the phrase “N×N” is used to refer to the pixel dimensions of a video block with respect to vertical and horizontal dimensions (e.g., 8 pixels×8 pixels). The pixels in a block may be arranged in rows and columns. In some examples, a block may not have the same number of pixels in the horizontal direction as in the vertical direction. Syntax data associated with a CU may, for example, describe the partitioning of the CU into one or more PUs. The partitioning mode may differ between whether the CU is intra-prediction mode coded or inter-prediction mode coded. The PU may be partitioned to be non-square in shape. Syntax data associated with a CU may also, for example, describe the partitioning of a CU by a CTU into one or more TUs. The TUs may be square or non-square in shape.
[0047] According to the HEVC standard, the transform may be implemented using transform units (TUs). The TUs may be different for different CUs. The TUs may be sized based on the size of the PUs in a given CU. The TUs may be the same size or smaller than the PUs. In some examples, the residual samples corresponding to a CU may be subdivided into smaller units using a quadtree structure called a residual quadtree (RQT). The leaf nodes of the RQT may correspond to the TUs. Pixel difference values associated with the TUs may be transformed to generate transform coefficients. The transform coefficients may then be quantized by the encoder engine 106.
[0048] Once a picture of video data is partitioned into CUs, the encoder engine 106 predicts each PU using a prediction mode. The prediction unit or prediction block is then subtracted from the original video data to obtain a residual (described below). For each CU, a prediction mode may be signaled inside the bitstream using syntax data. The prediction mode may include intra prediction (or intra-picture prediction) or inter prediction (or inter-picture prediction). Intra prediction uses correlation between spatially neighboring samples within a picture. For example, with intra prediction, each PU is predicted from neighboring image data in the same picture, for example, using DC prediction to find the average value for the PU, planar prediction to fit a flat surface to the PU, directional prediction to extrapolate from neighboring data, or any other suitable type of prediction. Inter prediction uses temporal correlation between pictures to derive a motion compensated prediction for a block of image samples. For example, with inter prediction, each PU is predicted using motion compensated prediction from image data in one or more reference pictures (before or after the current picture in output order). The decision of whether to code a picture area using inter-picture prediction or intra-picture prediction may be made, for example, at the CU level.
[0049] The encoder engine 106 and the decoder engine 116 (described in more detail below) may be configured to operate according to VVC. In VVC, a video coder (such as the encoder engine 106 and / or the decoder engine 116) may partition a picture into multiple coding tree units (CTUs). The video coder may partition the CTUs according to a tree structure, such as a quad-tree binary tree (QTBT) structure or a multi-type tree (MTT) structure. The QTBT structure eliminates the concept of multiple partition types, such as the distinction between CUs, PUs, and TUs in HEVC. The QTBT structure includes two levels, including a first level partitioned according to a quad-tree partition and a second level partitioned according to a binary tree partition. The root node of the QTBT structure corresponds to a CTU. The leaf nodes of the binary tree correspond to coding units (CUs).
[0050] In the MTT partition structure, blocks may be partitioned using quad-tree partitioning, binary tree partitioning, and one or more types of triple tree partitioning. Triple tree partitioning is a partition in which a block is divided into three sub-blocks. In some examples, triple tree partitioning divides a block into three sub-blocks without splitting the original block through the center. Partition types in MTT (e.g., quad-tree, binary tree, and triple tree) can be symmetric or asymmetric.
[0051] In some examples, the video coder may use a single QTBT or MTT structure to represent each of the luma and chroma components, while in other examples, the video coder may use two or more QTBT or MTT structures, such as one QTBT or MTT structure for the luma component and another QTBT or MTT structure for both chroma components (or two QTBT and / or MTT structures for each chroma component).
[0052] The video coder may be configured to use quadtree partitioning, QTBT partitioning, MTT partitioning, or other partitioning structures per HEVC. For purposes of explanation, the description herein may refer to QTBT partitioning. However, it should be understood that the techniques of this disclosure may also be applied to video coders configured to use quadtree partitioning, or other types of partitioning.
[0053] In some examples, one or more slices of a picture are assigned a slice type. The slice types include I slice, P slice, and B slice. An I slice (independently decodable intra frame) is a slice of a picture that is coded only by intra prediction, and is therefore independently decodable, since an I slice only needs data in a frame to predict any prediction unit or prediction block of the slice. A P slice (unidirectionally predicted frame) is a slice of a picture that can be coded using intra prediction and using unidirectional inter prediction. Each prediction unit or prediction block in a P slice is coded using either intra prediction or inter prediction. When inter prediction is applied, a prediction unit or prediction block is predicted by only one reference picture, and therefore the reference samples are from only one reference area of a frame. A B slice (bidirectionally predicted frame) is a slice of a picture that can be coded using intra prediction and using inter prediction (e.g., either bi-predictive or uni-predictive). A prediction unit or prediction block of a B slice may be bidirectionally predicted from two reference pictures, where each picture contributes to one reference region, and the sample sets of the two reference regions are weighted (for example, with equal weights or with different weights) to generate a prediction signal of the bidirectionally predicted block. As mentioned above, the slices of a picture are coded independently. In some cases, a picture may be coded as only one slice.
[0054] As mentioned above, intra-picture prediction uses correlation between spatially neighboring samples within a picture. Inter-picture prediction uses temporal correlation between pictures to derive a motion compensated prediction for a block of image samples. Using a translational motion model, the position of a block in a previously decoded picture (reference picture) is indicated by a motion vector (Δx, Δy), where Δx specifies the horizontal displacement and Δy specifies the vertical displacement of the reference block relative to the position of the current block. In some cases, the motion vector (Δx, Δy) may be at integer sample accuracy (also called integer accuracy), in which case the motion vector points to an integer pel grid (or integer pixel sampling grid) of a reference frame. In some cases, the motion vector (Δx, Δy) may be at fractional sample accuracy (also called fractional pel accuracy or non-integer accuracy) to more accurately capture the motion of the underlying object without being restricted to the integer pel grid of the reference frame.
[0055] The accuracy of a motion vector may be represented by the quantization level of the motion vector. For example, the quantization level may be integer accuracy (e.g., 1 pixel) or fractional pel accuracy (e.g., ¼ pixel, ½ pixel, or other sub-pixel value). When the corresponding motion vector has fractional sample accuracy, interpolation is applied to the reference picture to derive a prediction signal. For example, samples available at integer positions may be filtered (e.g., with one or more interpolation filters) to estimate values at fractional positions. The previously decoded reference picture is indicated by a reference index (refIdx) into a reference picture list. The motion vector and the reference index may be referred to as motion parameters. Two types of inter-picture prediction may be implemented, including uni-prediction and bi-prediction.
[0056] With inter prediction using bi-prediction, two sets of motion parameters (Δx0, y0, refIdx0 and Δx1, y1, refIdx1) are used to generate two motion compensation predictions (from the same reference picture or possibly from different reference pictures). For example, with bi-prediction, each prediction block uses two motion compensation prediction signals to generate B prediction units. The two motion compensation predictions are then combined to obtain a final motion compensation prediction. For example, the two motion compensation predictions may be combined by taking an average. In another example, weighted prediction may be used, in which case different weights may be applied to each motion compensation prediction. Reference pictures that may be used in bi-prediction are stored in two separate lists, denoted as list 0 and list 1. Using a motion estimation process, the motion parameters may be derived in the encoder.
[0057] With inter prediction using uni-prediction, one set of motion parameters (Δx0, y0, refIdx0) is used to generate motion compensated prediction from a reference picture. For example, with uni-prediction, each prediction block uses at most one motion compensated prediction signal to generate P prediction units.
[0058] A PU may include data regarding the prediction process (e.g., motion parameters or other suitable data). For example, when a PU is encoded using intra prediction, the PU may include data describing an intra prediction mode for the PU. As another example, when a PU is encoded using inter prediction, the PU may include data specifying a motion vector for the PU. The data defining the motion vector of a PU may describe, for example, a horizontal component (Δx) of the motion vector, a vertical component (Δy) of the motion vector, a resolution of the motion vector (e.g., integer precision, ¼ pixel precision, or ⅛ pixel precision), a reference picture to which the motion vector points, a reference index, a reference picture list for the motion vector (e.g., list 0, list 1, or list C), or any combination thereof.
[0059] The encoding device 104 may then perform transformation and quantization. For example, following prediction, the encoder engine 106 may calculate a residual value corresponding to the PU. The residual value may include pixel difference values between the current block of pixels being coded (PU) and a predictive block (e.g., a predicted version of the current block) used to predict the current block. For example, after generating a predictive block (e.g., using inter-prediction or intra-prediction), the encoder engine 106 may generate a residual block by subtracting the predictive block generated by the prediction unit from the current block. The residual block includes a set of pixel difference values that quantify differences between pixel values of the current block and pixel values of the predictive block. In some examples, the residual block may be represented in a two-dimensional block format (e.g., a two-dimensional matrix or array of pixel values). In such examples, the residual block is a two-dimensional representation of pixel values.
[0060] Any residual data that may remain after prediction is performed is transformed using a block transform, which may be based on a discrete cosine transform, a discrete sine transform, an integer transform, a wavelet transform, other suitable transform functions, or any combination thereof. In some cases, one or more block transforms (e.g., size 32×32, 16×16, 8×8, 4×4, or other suitable sizes) may be applied to the residual data in each CU. In some examples, TUs may be used for the transform and quantization processes implemented by the encoder engine 106. A given CU having one or more PUs may also include one or more TUs. As described in more detail below, the residual values may be transformed into transform coefficients using a block transform, and may be quantized and scanned using the TUs to generate serialized transform coefficients for entropy coding.
[0061] In some examples, following intra-predictive coding or inter-predictive coding using a PU of a CU, the encoder engine 106 may calculate residual data for the TU of the CU. The PU may include pixel data in the spatial domain (i.e., pixel domain). The TU may include coefficients in the transform domain after applying a block transform. As mentioned above, the residual data may correspond to pixel difference values between pixels of the uncoded picture and predicted values corresponding to the PU. The encoder engine 106 may form a TU including the residual data of the CU and then transform the TU to produce transform coefficients for the CU.
[0062] The encoder engine 106 may perform quantization of the transform coefficients. Quantization provides further compression by quantizing the transform coefficients to reduce the amount of data used to represent the coefficients. For example, quantization may reduce the bit depth associated with some or all of the coefficients. In one example, a coefficient having an n-bit value may be truncated to an m-bit value during quantization, where n is greater than m.
[0063] Once quantization is performed, the coded video bitstream includes the quantized transform coefficients, prediction information (e.g., prediction modes, motion vectors, block vectors, etc.), partition information, and any other suitable data, such as other syntax data. Various elements of the coded video bitstream may then be entropy coded by the encoder engine 106. In some examples, the encoder engine 106 may use a predefined scan order to scan the quantized transform coefficients and generate serialized vectors that may be entropy coded. In some examples, the encoder engine 106 may perform an adaptive scan. After scanning the quantized transform coefficients to form vectors (e.g., one-dimensional vectors), the encoder engine 106 may entropy code the vectors. For example, the encoder engine 106 may use context-adaptive variable length coding, context-adaptive binary arithmetic coding, syntax-based context-adaptive binary arithmetic coding, probability interval partition entropy coding, or another suitable entropy coding technique.
[0064] An output 110 of the encoding device 104 may send the NAL units constituting the encoded video bitstream data to a decoding device 112 of a receiving device via a communication link 120. An input 114 of the decoding device 112 may receive the NAL units. The communication link 120 may include channels provided by a wireless network, a wired network, or a combination of wired and wireless networks. The wireless network may include any wireless interface or combination of wireless interfaces, and may include any suitable wireless network (e.g., Internet or other wide area network, packet-based network, WiFi™, radio frequency (RF), UWB, WiFi-Direct, cellular, Long Term Evolution (LTE), WiMax™, etc.). The wired network may include any wired interface (e.g., fiber, Ethernet, powerline Ethernet, Ethernet over coaxial cable, digital signal line (DSL), etc.). Wired and / or wireless networks may be implemented using a variety of equipment and / or components, such as base stations, routers, access points, bridges, gateways, switches, servers, software containers, virtual machines, etc. The encoded video bitstream data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to a receiving device.
[0065] In some examples, encoding device 104 may store the encoded video bitstream data in storage 108. Output 110 may retrieve the encoded video bitstream data from encoder engine 106 or from storage 108. Storage 108 may include any of a variety of distributed or locally accessed data storage media. For example, storage 108 may include a hard drive, a storage disk, flash memory, volatile or non-volatile memory, one or more nodes in a distributed storage system, or any other suitable digital storage medium for storing encoded video data.
[0066] An input 114 of the decoding device 112 may receive the encoded video bitstream data and provide the video bitstream data to the decoder engine 116 or to a storage 118 for later use by the decoder engine 116. The decoder engine 116 may decode the encoded video bitstream data by entropy decoding (e.g., with an entropy decoder) and extracting elements of one or more coded video sequences that make up the encoded video data. The decoder engine 116 may rescale the encoded video bitstream data and perform an inverse transform on the encoded video bitstream data. Residual data is passed to a prediction stage of the decoder engine 116. The decoder engine 116 then predicts a block of pixels (e.g., a PU). In some examples, the prediction is added to the output of the inverse transform (the residual data).
[0067] The decoding device 112 may output the decoded video to the video destination device 122, which may include a display or other output device for displaying the decoded video data. In some aspects, the video destination device 122 may be part of a receiving device that includes the decoding device 112. In some aspects, the video destination device 122 may be part of a separate device other than the receiving device.
[0068] In some examples, the video encoding device 104 and / or the video decoding device 112 may be integrated with an audio encoding device and an audio decoding device, respectively. The video encoding device 104 and / or the video decoding device 112 may also include other hardware or software used to implement the coding techniques described herein, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), central processing units (CPUs), discrete logic, software, hardware, firmware, or any combination thereof. In some cases, the video encoding device 104 and the video decoding device 112 may be integrated within the respective devices as part of a combined encoder / decoder (codec). An example of specific details of the encoding device 104 is described below with reference to FIG. 7. An example of specific details of the decoding device 112 is described below with reference to FIG. 8.
[0069] Extensions to the HEVC standard include a multiview video coding extension called MV-HEVC and a scalable video coding extension called SHVC. MV-HEVC and SHVC extensions share the concept of layered coding, where different layers are included in the coded video bitstream. Each layer in a coded video sequence is addressed by a unique layer identifier (ID). The layer ID may be present in the header of a NAL unit to identify the layer with which the NAL unit is associated. In MV-HEVC, different layers may represent different views of the same scene in the video bitstream. In SHVC, different scalable layers are provided that represent the video bitstream at different spatial resolutions (i.e., picture resolutions) or with different reconstruction fidelity. The scalable layers may include a base layer (with layer ID=0) and one or more enhancement layers (with layer ID=1, 2, ... n). The base layer may conform to the first version profile of HEVC and represent the lowest available layer in the bitstream. An enhancement layer has increased spatial resolution, temporal resolution or frame rate, and / or reconstruction fidelity (i.e., quality) compared to a base layer. Enhancement layers may be hierarchically organized and may (or may not) depend on lower layers. In some examples, different layers may be coded using a single-standard codec (e.g., all layers are encoded using HEVC, SHVC, or other coding standard). In some examples, different layers may be coded using a multi-standard codec. For example, a base layer may be coded using AVC, and one or more enhancement layers may be coded using SHVC and / or MV-HEVC extensions to the HEVC standard.
[0070] In general, a layer includes a set of VCL NAL units and a corresponding set of non-VCL NAL units. The NAL units are assigned a specific layer ID value. Layers may be hierarchical in the sense that a layer may depend on a lower layer. A layer set refers to a set of layers represented in a self-contained bitstream, where self-contained means that a layer in a layer set may depend on other layers in the layer set in the decoding process, but does not depend on any other layers for decoding. Thus, layers in a layer set may form an independent bitstream that can represent video content. A set of layers in a layer set may be obtained from another bitstream by the operation of a sub-bitstream extraction process. A layer set may correspond to a set of layers to be decoded when a decoder wishes to operate according to some parameters.
[0071] As previously described, an HEVC bitstream includes a group of NAL units, including VCL NAL units and non-VCL NAL units. The VCL NAL units include coded picture data that form a coded video bitstream. For example, a sequence of bits that form a coded video bitstream resides in a VCL NAL unit. The non-VCL NAL units may include parameter sets that have high-level information related to the coded video bitstream, in addition to other information. For example, the parameter sets may include a video parameter set (VPS), a sequence parameter set (SPS), and a picture parameter set (PPS). Examples of purposes of parameter sets include providing bitrate efficiency, error resiliency, and a system layer interface. Each slice references a single active PPS, SPS, and VPS to access information that the decoding device 112 may use to decode the slice. An identifier (ID) may be coded for each parameter set and includes a VPS ID, an SPS ID, and a PPS ID. The SPS includes an SPS ID and a VPS ID. The PPS includes a PPS ID and an SPS ID. Each slice header includes a PPS ID. The IDs can be used to identify the active parameter set for a given slice.
[0072] The PPS contains information that applies to all slices in a given picture. This causes all slices in a picture to reference the same PPS. Slices in different pictures may also reference the same PPS. The SPS contains information that applies to all pictures in the same coded video sequence (CVS) or bitstream. As previously explained, a coded video sequence is a series of AUs starting from a random access point picture (e.g., an instantaneous decoding reference (IDR) picture or a broken link access (BLA) picture, or other suitable random access point picture) with some characteristics (as explained above) in the base layer until just before the next access unit (AU) that has a random access point picture with some characteristics in the base layer (or the end of the bitstream). The information in the SPS may not change from picture to picture in the coded video sequence. Pictures in a coded video sequence may use the same SPS. The VPS contains information that applies to all layers in the coded video sequence or bitstream. The VPS contains a syntax structure with syntax elements that apply to the entire coded video sequence. In some examples, the VPS, SPS, or PPS may be transmitted in-band with the encoded bitstream, in some examples, the VPS, SPS, or PPS may be transmitted out-of-band, in a transmission separate from the NAL units that contain the coded video data.
[0073] The video bitstream may also include supplemental enhancement information (SEI) messages. For example, an SEI NAL unit may be part of the video bitstream. In some cases, the SEI message may include information that is not required by the decoding process. For example, the information in the SEI message may not be essential for a decoder to decode a video picture of the bitstream, but the decoder may use the information to improve the display or processing of the picture (e.g., the decoded output). The information in the SEI message may be embedded metadata. In one illustrative example, the information in the SEI message may be used by a decoder-side entity to improve the viewability of the content. In some instances, some application standards may require the presence of such SEI messages in the bitstream so that quality improvements can be provided to all devices that comply with the application standard (e.g., the carrying of frame packing SEI messages for frame-compatible planar stereoscopic 3DTV video formats in which SEI messages are carried for every frame of the video, the processing of recovery point SEI messages, the use of pan-scan rectangular SEI messages in DVB, in addition to many other examples).
[0074] In the field of video coding, filtering may be applied to enhance the quality of a decoded video signal. The filter may be applied as a post-filter where the filtered frame is not used for prediction of future frames, or as an in-loop filter where the filtered frame is used to predict future frames. The filter may be designed, for example, by minimizing the error between the original signal and the decoded filtered signal. In some examples, an adaptive loop filter (ALF) with clipping may be applied to enhance the quality of the decoded video signal, as further described below. Clipping is an image processing technique that may be used to process and / or improve the quality of an image when the intensity or brightness in one or more areas of the image deviates from the minimum or maximum intensity or brightness that may be represented.
[0075] In some examples, clipping may adjust the intensity or brightness values for such areas of the image to the minimum or maximum (or within the minimum and maximum) that can be represented. For example, if a particular area of the image has an intensity value below the minimum intensity that can be represented, the image may be clipped to increase the intensity value for that area of the image to the minimum intensity value (or not below the minimum intensity value), and if a particular area of the image has an intensity value above the maximum intensity that can be represented, the image may be clipped to decrease the intensity value for that area of the image to the maximum intensity value (or below the maximum intensity value). Exemplary techniques for calculating clipping values for an image are described further below.
[0076] 2A is a simplified diagram illustrating an example system 200 for applying an ALF with clipping 206 to an input block 202 in a frame. The block 202 may include color components 204 for an image pixel representing the block 202. In this example, the color components 204 are in a YCbCr color space and may include luma Y, chroma Cb, and chroma Cr components. The chroma Cb and chroma Cr components in the YCbCr color space may represent blue-difference and red-difference chroma signals, respectively, associated with the block 202.
[0077] The ALF 206 with ALF filter coefficient values and clipping values may be applied to the luma (Y) component samples 204A, the chroma (Cb) component samples 204B, and the chroma (Cr) component samples 204C in the block 202. In some examples, the ALF 206 with ALF filter coefficient values and clipping values may be applied to the samples (e.g., 204A, 204B, 204C) on a block-by-block basis (e.g., to a particular video block). For example, a video encoder or decoder may process blocks in a frame individually, and when processing a block (e.g., 202) in the frame, the video encoder or decoder may apply the ALF filter coefficients and clipping values from the ALF 206 to that block. When processing other blocks, the video encoder or decoder may similarly apply the ALF filter coefficients and clipping values to those blocks. In some examples, the ALF 206 using clipping may be applied to the luma (Y) component samples 204A, the chroma (Cb) component samples 204B, and the chroma (Cr) component samples 204C to correct artifacts in block 202, reduce errors between the original frame and the reconstructed frame, and / or increase the quality of the decoded video signal.
[0078] Moreover, the ALF 206 may include one or more filters, each having a particular filter size and shape, as further described below with respect to FIGs. 3A and 3B. For example, the ALF 206 may include a filter of a particular size and shape used for luma (Y) filtering and a filter of a particular size and shape for chroma filtering. As previously described, in some examples, the ALF 206 may be applied at the block level. For example, in some cases, the ALF 206 may be applied at the CTU or CU level. In other examples, the ALF 206 may be applied at the frame level and / or to other portions of a frame.
[0079] A luma filtering result 208 may be obtained from the ALF 206 applied to the luma (Y) component sample 204A. Similarly, a chroma filtering result 210 may be obtained from the ALF 206 applied to the chroma (Cb) component sample 204B and the chroma (Cr) component sample 204C. The luma filtering result 208 may include filtered (e.g., modified and / or clipped) luma values for the output block 212, and the chroma filtering result 210 may include filtered chroma Cb and chroma Cr values for the output block 212. The output block 212 may include a reconstructed block and / or frame including the luma, chroma Cb and chroma Cr values from the luma filtering result 208 and the chroma filtering result 210. In some cases, the output block 212, along with other output blocks similarly processed, may be used to generate a reconstructed frame using ALF filtering and clipping.
[0080] In some examples, on the encoder side, the luma filtering result 208 and the chroma filtering result 210 may be used to determine whether luma and chroma ALF filtering should be enabled. For example, the quality of the reconstructed block and / or frame after ALF filtering may be compared to the quality of the reconstructed block and / or frame before ALF filtering. ALF filtering may then be enabled or disabled based on the quality of the reconstructed block and / or frame after ALF filtering relative to the quality of the reconstructed block and / or frame before ALF filtering. An ALF flag may then be signaled along with the encoded bitstream to indicate whether ALF filtering is enabled or disabled for the block. In some cases, the ALF flag may specify whether luma ALF filtering is enabled or disabled, whether luma and chroma ALF filtering is enabled or disabled, or whether ALF filtering is completely disabled. On the decoder side, the decoder may use the ALF flag to determine whether to perform ALF filtering for a block in the reconstructed image and / or for the reconstructed image.
[0081] 2B is a flowchart of an example method 220 for ALF filtering with clipping implemented by encoding device 104. In this example, at block 222, encoding device 104 may receive an input frame. The input frame may include color components, such as luma and chroma components, as previously described. In some examples, the input frame may include blocks in a frame that were encoded by encoding device 104 prior to ALF filtering. In some examples, the input frame may be a frame associated with an image and / or a video sequence.
[0082] In block 224, the encoding device 104 may classify the luma components in the frame. In some examples, the encoding device 104 may also classify the chroma components in the frame. The classification may be applied to the luma components at the block level (e.g., at the 4×4 block level) or at the sample level (for each sample of the frame). In some cases, the classification may include classifying the direction and activity for each block or sample associated with each luma component in the frame. In some examples, for the luma components, 4×4 blocks in the entire frame, where N represents a number greater than 0, may be classified based on 1D Laplacian directions (e.g., up to 5 directions) and 2D Laplacian activities (e.g., up to 5 activity values). In some cases, the encoding device 104 may classify the direction Dir b and non-quantized activity Act b In some cases, Act b may be further quantized to the range 0 to 4, inclusive.
[0083] In some cases, in addition to the horizontal and vertical gradients used in existing ALF, two diagonal gradient values may be calculated using the 1D Laplacian. As can be seen from the following equations (1)-(4), the sum of the gradients of all pixels in an 8×8 window covering the target pixel may be used as the represented gradient of the target pixel, where R(k,l) is the reconstructed pixel at location (k,l) and indexes i and j refer to the coordinates of the top-left pixel in a 4×4 block (e.g., from multiple 4×4 blocks in a frame). Each pixel is associated with four gradient values, with the vertical gradient being g v and the horizontal gradient is g h The slope of 135 degrees is g d1 The slope of 45 degrees is g d2 It is written by:
[0084]
number
[0085] Directional Dir b In order to assign h,v The ratio of maximum to minimum horizontal and vertical gradients, denoted by d0,d1 (sometimes denoted by R d1,d2 , the ratio of the maximum and minimum of the two slopes is compared with each other at two thresholds t1 and t2.
[0086]
number
[0087] By comparing the detected ratios of horizontal and vertical gradients and diagonal gradients, five directional modes (e.g., Dir within the range [0,4] inclusive) are identified. b ) is defined in the following formula (7). b The values of and their physical meanings are described in Table 1 below.
[0088]
number
[0089] [Table 1]
[0090] The activity value Act is
[0091]
number
[0092] It can be calculated as:
[0093] In some cases, the Act value may be further quantized to a range of 0 to 4 inclusive, the quantized value being:
[0094]
number
[0095] From the activity value Act to the activity index
[0096]
number
[0097] The quantization process to is described below.
[0098] The quantization process may be defined as follows: avg_var=Clip_post(NUM_ENTRY-1,(Act*ScaleFactor)>>shift);
[0099]
number
[0100] where NUM_ENTRY is set to 16 (or other appropriate value), ScaleFactor is set to 64 (or other appropriate value), shift is (4 + internal coding bit depth) or other appropriate value, ActivityToIndex[NUM_ENTRY] = {0, 1, 2, 2, 2, 2, 2, 3, 3, 3, 3, 3, 3, 3, 4} or other appropriate set of values, and the function Clip_post(a,b) returns the smaller value between a and b.
[0101] In total, each 4×4 luma block may be categorized into one of 25 (5×5) classes, and the Dir b and Act b An index is assigned to each 4×4 block according to the value of
[0102]
number
[0103] where:
[0104]
number
[0105] Act b is the quantized value of
[0106] In block 226, the encoding device 104 may determine ALF coefficients and clipping values for the ALF, and in block 228, the encoding device 104 may apply the ALF filter to the frame. In some examples, the ALF filter shape may determine the number of coefficients that will affect the filtering process. Non-limiting example filter shapes may include 5×5, 7×7, and 9×9 diamond shapes. Figures 3A and 3B show example ALF filters that may be applied for chroma and luma filtering.
[0107] Referring to FIG. 3A, an example filter 300 for chroma filtering is shown. The filter 300 in this example is a 5×5 filter and has a diamond shape. The filter 300 includes cells 302-326 for 13 input chroma samples. The cells 302-326 include coefficients and clipping values (e.g., C0-C6) to be applied to the corresponding chroma samples. Each cell (302-326) may include a filter coefficient value and a clipping value to be applied to the chroma sample associated with that cell.
[0108] 3B, an example filter 330 for luma filtering is shown. The filter 330 in this example is a 7×7 filter and has a diamond shape. The filter 330 includes cells 332-380 for 25 input luma samples. The cells 332-380 include coefficients and clipping values (e.g., C0-C12) to be applied to the corresponding luma samples. Each cell (332-380) may include a filter coefficient value and a clipping value to be applied to the luma sample associated with that cell.
[0109] Returning to FIG. 2A, in some examples, the decoded filter coefficients f(k,l) corresponding to the coefficients at positions k and l and the clipping values c(k,l) corresponding to the clipping values at positions k and l may be applied to the reconstructed image R(i,j) as follows:
[0110]
number
[0111] In some examples, a 5×5 filter, such as filter 300 shown in Figure 3A, may be applied to the chroma components, and a 7×7 filter, such as filter 330 shown in Figure 3B, may be applied to the luma component. The output value of equation (10) may define the value that is applied to the center of the filter.
[0112] For example, referring to FIG. 3A, each cell (302-326) in filter 300 may have a filter coefficient f(k,l) and a clipping value c(k,l), and each of these values in the cell may be applied to a corresponding pixel.
[0113]
number
[0114] The center of filter 300 (e.g., cell 314), represented by, may be placed on or applied to a pixel, and the remaining cells of filter 300 (e.g., cells 302-312 and 316-326) may be placed on or applied to surrounding or neighboring pixels.
[0115] Further, referring to FIG. 3B, each cell (332-380) in the filter 330 may have a filter coefficient f(k,l) and a clipping value c(k,l), and each of these values in the cell may be applied to a corresponding pixel.
[0116]
number
[0117] The center of filter 330 (e.g., cell 356), represented by, may be placed on or applied to a pixel, and the remaining cells of filter 330 (e.g., cells 332-354 and 358-380) may be placed on or applied to surrounding or neighboring pixels.
[0118] Returning to FIG. 2A, in equation (10),
[0119]
number
[0120] is to add the current sample R(i,j) of the frame (e.g., luma sample, chroma sample) to the filter coefficient times the sum of the clipped difference (e.g., sum(filter coefficient * clipped difference), i.e.
[0121]
number
[0122] where the sum may be the difference between the neighbor sample R(i+k,j+l) and the current sample R(i,j). The output of equation (10) may define a range of values for clipping. In some cases, a value may be selected from a range of values. In some examples, the selected value may be the highest value in a range of values within the minimum and maximum values that can be represented in the frame. Furthermore, the selected value may provide a pixel value to use for the sample.
[0123] In some cases, the clipping value c(k,l) may be calculated as follows: For the luma component, the clipping value c(k,l) may be calculated as follows: c(k,l) = Round(2 (BitDepthY*(4-clipIdx(k,l)) / 4) ), equation (11)
[0124] where BitDepthY is the bit depth (e.g., color depth) for the luma component, and clipIdx(k,l) is the clipping value at position (k,l). In some cases, clipIdx(k,l) may be 0, 1, 2, or 3.
[0125] For the chroma components, the clipping values c(k,l) may be calculated as follows: c(k,l) = Round(2 (BitDepthC-8) *2 (8*(3-clipIdx[k,l]) / 3) ), equation (12)
[0126] where BitDepthC is the bit depth for the chroma components and clipIdx(k,l) is the clipping value at position (k,l). In some cases, clipIdx(k,l) can be 0, 1, 2 or 3.
[0127] At block 230, the encoding device 104 may generate an output frame. The output frame may include a reconstructed image after ALF filtering. The output frame may include pixel values for the luma and chroma components calculated based on the filter coefficients and clipping values, as previously described.
[0128] In some examples, pixel values generated for a sample by the ALF filtering method 220 may be compared to pixel values of the original sample to determine whether luma and chroma filtering should be enabled. For example, if the luma filtering results provide better image quality than the original luma samples, the encoding device 104 may enable luma filtering for the frame. If the chroma filtering results provide better image quality than the original chroma samples, the encoding device 104 may enable chroma filtering for the frame.
[0129] In some cases, the encoding device 104 may signal an ALF flag along with the encoded bitstream. The signaled ALF flag may indicate to a decoding device (e.g., 112) whether ALF filtering is enabled or disabled for a particular frame.
[0130] In some cases, the method 220 may include performing a geometric transformation. In some examples, one set of filter coefficients and clipping values may be signaled for each category from the pixel classification described in block 224. In some cases, four geometric transformations, including no transformation, diagonal, vertical flip, and rotation, may be performed to better distinguish different orientations of blocks marked with the same category index.
[0131] An exemplary 5×5 filter 400 without any transformation for the cells 402-426 is shown in Figure 4A, and an exemplary 5×5 filter with a diagonal transformation 430 for the cells 402-426, a vertical flip transformation 440 for the cells 402-426, and a rotation transformation 450 for the cells 402-426 are shown in Figures 4B-4D. Specifically, Figure 4B shows an example of a diagonal geometric transformation 430, Figure 4C shows an example of a vertical flip geometric transformation 440, and Figure 4D shows an example of a rotation geometric transformation 450.
[0132] If the exemplary 5×5 filter 400 without transformation shown in FIG. 4A is compared with the diagonal geometric transformation 430 of FIG. 4B, the vertical flip geometric transformation 440 of FIG. 4C, and the rotation geometric transformation 450 of FIG. 4D, the following formulaic forms of the three additional geometric transformations (e.g., the diagonal geometric transformation 430, the vertical flip geometric transformation 440, and the rotation geometric transformation 450) may be obtained: Diagonal: f D (k,l) = f(l,k), c D (k, l) = c(l, k), Vertical flip:f V (k,l)=f(k,Kl-1), c V (k, l) = c(k, Kl-1) Rotation:f R (k,l)=f(Kl-1,k), c R (k,l)=c(Kl-1,k), Eq. (13)
[0133] In the above equation, K is the size of the filter, and 0≦k, l≦K-1 are the coefficient coordinates such that location (0,0) is in the upper left corner and location (K-1,K-1) is in the lower right corner. Note that when a diamond-shaped filter support is used, coefficients with coordinates from the filter support can be set to 0. One way to indicate the geometry transform index is to derive it implicitly to avoid additional overhead. In the geometry transform based ALF (GALF), a transform may be applied to the filter coefficients f(k,l) depending on the gradient value calculated for that block. The relationship between the transform and the four gradients calculated using equations (3)-(7) is described in Table 2 below.
[0134] [Table 2]
[0135] The transformation may be based on which one of the two gradients (horizontal and vertical, or 45-degree and 135-degree gradients) is larger. Based on the comparison, more accurate directional information may be extracted. Thus, the transformation may obtain different filtering results while not increasing the overhead of filter coefficients.
[0136] In some examples, filter information signaling may be provided along with the encoded bitstream. For example, one luma filter set may include filter information (including, for example, filter coefficients, clipping values, offset values, etc.) for all classes. Fixed filters may be used to predict filters for each class. A flag may be signaled for each class to indicate whether the class uses a fixed filter as its filter predictor. If so, fixed filter information may be signaled. In some examples, the signaled filters may be predicted from previously signaled filters.
[0137] To reduce the number of bits used to represent the filter coefficients, different classes may be merged. Information about which classes are merged is stored for each of the classes with index i C For the same index i C The classes with index i may share the same filter coefficients that are coded. The mapping between classes and filters may be signaled for each luma filter set. C can be coded using a truncated binary binarization method.
[0138] In VTM-5.0, an adaptive parameter set (APS) can be used to carry the ALF filter coefficients in the bitstream. An APS can contain a set of luma filters or chroma filters or both. A tile group only signals the index of the APS used for the current tile group in its tile group header.
[0139] A coding tree block (CTB) based filter set switch may be implemented in some cases. In VTM-5.0, filters generated from a pre-coded tile group may be used for the current tile group to save overhead for filter signaling. The luma CTB may choose a filter set among a fixed filter set and a filter set from an APS. The filter set index may be signaled in or with the bitstream. In some cases, some or all chroma CTBs use filters from the same APS. In the tile group header, the APS used for the luma and chroma CTBs of the current tile group is signaled.
[0140] 2B, the output frames generated by encoding device 104 may be transmitted to decoding device 112 in an encoded bitstream. The encoded bitstream may include signaling information, as previously described. Decoding device 112 may use the signaling information to receive the encoded bitstream, decode the bitstream, and apply ALF filtering and clipping to frames in the bitstream when such filtering is enabled.
[0141] 2C is a flowchart illustrating an example method 240 for ALF filtering with clipping implemented by the decoding device 112. In this example, at block 242, the decoding device 112 may receive a frame from an encoded bitstream provided by the encoding device 104. In some cases, the frame may be a reconstructed or decoded frame from the encoded bitstream. Moreover, in some examples, the frame may include luma and chroma components, as previously described.
[0142] In block 244, the decoding device 112 may determine whether the ALF flag signaled with the frame is on or off. If the ALF flag is off, indicating that ALF filtering is disabled, the decoding device 112 may output the frame in block 252. On the other hand, if the ALF flag is on, indicating that ALF filtering is enabled, the decoding device 112 may classify the pixels in the frame in block 246. The decoding device 112 may classify the pixels as described above with respect to block 224 shown in FIG. 2B.
[0143] The ALF flag may indicate whether luma filtering is enabled (or disabled) or whether both luma filtering and chroma filtering are enabled (or disabled). If luma filtering is enabled, the ALF filtering performed by the decoding device 112 described herein may include luma filtering. If both luma and chroma filtering are enabled, the ALF filtering performed by the decoding device 112 described herein may include both luma and chroma filtering.
[0144] In block 248, the decoding device 112 may determine the ALF coefficients and clipping values, and in block 250, the decoding device 112 may apply an ALF filter using the ALF coefficients and clipping values to the frame. The decoding device 112 may determine and apply the ALF coefficients and clipping values as described above with respect to blocks 226 and 228 shown in FIG. 2B.
[0145] At block 252, the decoding device 112 may generate an output frame. If the ALF flag was off at block 244, the output frame may include a reconstructed image without ALF filtering. If the ALF flag was on at block 244, the output frame may include a reconstructed image after ALF filtering. The output frame may include pixel values for the luma and chroma components calculated based on the filter coefficients and clipping values, as previously described.
[0146] When using floating-point arithmetic to calculate the clipping value c(k,l), various problems and drawbacks may arise. For example, the above-mentioned equations (11) and (12) for calculating the clipping value c(k,l) often require the use of floating-point arithmetic to perform such calculations. However, floating-point arithmetic may increase the computational complexity (e.g., as a result of implementing decimal numbers), may increase the computational burden on the device's hardware and computing resources (e.g., as a result of the increased complexity), and may increase decoding errors (e.g., as a result of different architectures calculating floating-point numbers differently).
[0147] Thus, in some examples, various techniques may be implemented to simplify the computation of clipping values for the ALF and increase the efficiency of such computation. Simplified and increasingly efficient computation of clipping values for the ALF can reduce computational complexity, reduce computational burden on device hardware, and reduce decoding errors. Such techniques may be applied to any video codec (current and / or future), such as HEVC and / or AVC, and / or any video coding standard, such as VVC and / or any future video coding standard, as described further below.
[0148] In some cases, the techniques described herein can simplify the calculation of clipping values for the luma component, one or more chroma components, or both the luma and chroma components. In some implementations, integer arithmetic may be used to calculate clipping values for the luma and / or chroma components and simplify such calculations.
[0149] 5 illustrates an example table 500 of clipping values derived based on the simplified clipping value calculation described herein. In this example, the clipping values in table 500 are calculated using integer arithmetic. The integer arithmetic and techniques used herein to calculate the clipping values in table 500 can reduce the complexity of such calculations, minimize the computational burden on hardware and computing resources, and reduce decoding errors.
[0150] The table 500 includes a bit depth column 502 and a clipping index (clipIdx) column 522. The bit depth column 502 includes bit depth values 504-520 and the clipping index column 522 includes clipping index values 524-530. In this example, the bit depth values 504-520 range from 8 bits to 16 bits and the clipping index values 524-530 range from 0 to 3. The bit depth values 504-520 may identify the number of bits used for each color component of a pixel and / or the color depth of the pixel (e.g., the number of bits used to indicate the color of the pixel). The clipping index values 524-530 indicate a clipping index of the clipping value to use for the sample or pixel. In this example, the clipping index values 524-530 include clipping indexes 0 (524), 1 (526), 2 (528), and 3 (530).
[0151] In some examples, the particular clipping index value used to calculate the clipping value for a particular bitstream or frame may be signaled along with the encoded bitstream or frame. Additionally, in some examples, the clipping index values 524-530 for a chroma component may be defined by alf_chroma_clip_idx[altIdx][j], which may specify the clipping index of the clipping value to use before multiplying with the jth coefficient of the alternative chroma filter with index altIdx. In some examples, for bitstream adaptation, the value of alf_chroma_clip_idx[altIdx][j] may range from 0 to 3, where altIdx=0,..,alf_chroma_num_alt_filters_minus1 and j=0,...,5, and alf_chroma_num_alt_filters_minus1 indicates the number of alternative chroma filters minus 1. In some examples, alf_chroma_num_alt_filters_minus1 may be in the range of 0 to 7.
[0152] In some examples, the clipping index values 524-530 for the luma component may be defined by alf_luma_clip_idx[alf_luma_coeff_delta_idx[filtIdx]][j], which may specify a clipping index of a clipping value to use before multiplying with the jth coefficient of the luma signal specified by alf_luma_coeff_delta_idx[filtIdx], where j=0,...,11. In some examples, alf_luma_coeff_delta_idx[filtIdx] may specify an index of the signaled ALF luma coefficient delta for the filter class indicated by filtIdx, which may range from 0 to NumAlfFilters-1, where NumAlfFilters indicates the number of ALF filters. In some cases, alf_luma_coeff_delta_idx[filtIdx] may be inferred to be equal to 0 when not present. Additionally, in some cases, the length of alf_luma_coeff_delta_idx[filtIdx] may be Ceil(Log2(alf_luma_num_filters_signalled_minus1 + 1 )) bits, and the value of alf_luma_coeff_delta_idx[filtIdx] may be in the range of 0 to alf_luma_num_filters_signalled_minus1.
[0153] In some examples, the clipping values in table 500 may be calculated for the luma component based on Equation (14) below, and for the chroma components based on Equation (15) below. For example, clipping value c(k,l) may be calculated as follows: c(k,l)=1<<(BitDepthY-offsetY[clipIdx(k,l)]) for luma, and c(k,l)=1<<(BitDepthC-offsetC[clipIdx(k,l)]) for chroma Formula (14)
[0154] In equation (14), the term "<<" is a left-shift arithmetic operator, and offsetY[i] and offsetC[i], where i=0, 1, 2, or 3, are predefined or calculated values based on the clipping index (clipIdx). In some examples, offsetY={0, 3, 5, 7} and offsetC={0, 3, 5, 7}, where 0, 3, 5, and 7 may be predefined values set for offsetY and offsetC. In some examples, specific values for offsetY and offsetC from a range of 0 to BitDepthY for luma and 0 to BitDepthC for chroma may be determined based on the clipping index (clipIdx) value, which in some examples may be in the range of 0 to 3, inclusive. For example, when the value of clipIdx is equal to 0, the offsetY and offsetC values may be 0, when the value of clipIdx is equal to 1, the offsetY and offsetC values may be 3, when the value of clipIdx is equal to 2, the offsetY and offsetC values may be 5, and when the value of clipIdx is equal to 3, the offsetY and offsetC values may be 7.
[0155] Equation (14) can efficiently calculate clipping values in table 500 based on corresponding bit depth values 504-520 and clipping index values 524-530, and can simplify such calculations based on integer arithmetic. For example, using equation (14), given offset values of 0, 3, 5, and 7 and a bit depth value of 8 (504), the clipping value for c(k,l) can be calculated as follows: If c(k,l)=1<<(BitDepth-offset[clipIdx(k,l)]), and BitDepth=8 and clipIdx=0, then offset[0]=0. Thus, c(k,l) is equal to 1<<(8-0), which is equal to 1 left shift 8. A left arithmetic shift by n is 2 n Therefore, a left shift of 1 is equivalent to multiplying by 2. 8Therefore, when the bit depth value is 8 and the offset value is 0, c(k,l) is equal to 2 8 is equal to.
[0156] Similarly, when BitDepth=8 and clipIdx=1, offset[1]=3. Therefore, c(k,l) is equal to 1<<(8-3), which is 1 left shift 5 or 2 5 Therefore, when the bit depth value is 8 and the offset value is 3, c(k,l) is equal to 2 5 is equal to.
[0157] When BitDepth=8 and clipIdx=2, offset[2]=5. Therefore, c(k,l) is equal to 1<<(8-5), which is 1 left shift 3 or 2 3 Therefore, when the bit depth value is 8 and the offset value is 5, c(k,l) is equal to 2 3 is equal to.
[0158] Finally, when BitDepth=8, and clipIdx=3, offset[3]=7. Therefore, c(k,l) is equal to 1<<(8-7), which is 1 left shift 1 or 2 1 Therefore, when the bit depth value is 8 and the offset value is 7, c(k,l) is equal to 2 1 is equal to.
[0159] The above example calculation may be similarly performed for bit depth values 506-520 (e.g., 9-16) based on offset values 0, 3, 5, 7 and clipping index values 0, 1, 2, and 3 to yield corresponding clipping values as shown in table 500. For example, as shown in table 500, for a bit depth of 9 and a clipping index value of 0, the resulting clipping value based on equation (14) is 2 9For a bit depth of 9 and a clipping index value of 1, the resulting clipping value based on equation (14) is 2 6 For a bit depth of 9 and a clipping index value of 2, the clipping value resulting from equation (14) is 2 4 For a bit depth of 9 and a clipping index value of 3, the clipping value resulting from equation (14) is 2 2 It is.
[0160] Such a calculation using left arithmetic shifts and without floating point numbers can greatly simplify the clipping value calculation, reduce the burden on hardware and computational resources of such calculations, and reduce decoding errors. Furthermore, the clipping operation may be implemented as a logical or and the most significant bit from (BitDepth-offset[clipIdx(k,l)]+1) bit to the least significant bit, which can also reduce the burden on hardware.
[0161] In another illustrative example, using integer arithmetic, the clipping value c(k,l) calculation may be implemented as follows: For luma, c(k,l)=1<<((4*BitDepthY-BitDepthY*clipIdx(k,l))>>2), and For chroma, c(k,l)=1<<((3*BitDepthC-8*clipIdx(k,l)) / 3) Formula (15)
[0162] In another illustrative example, the clipping value c(k,l) for the luma component may be calculated as in Equation (16) below. Specifically, the formula c(k,l)=Round(2 (BitDepthY*(4-clipIdx(k,l)) / 4) ) may be rewritten as follows: c(k,l) = Round(2 (BitDepthY- (BitDepthY*clipIdx(k,l)) / 4) )=Round(2 (BitDepthY-a-b / 4) ) =Round(2 (BitDepthY-a) *2 -b / 4) = ((1 << (BitDepthY - a)) * remY[b]) >> c Equation (16)
[0163] Here, a is equal to ((BitDepthY * clipIdx(k, l)) >> 2), b is equal to (BitDepthY * clipIdx(k, l)) and 0x03, remY[b] is equivalent to Round(2 -b / 4 * (1 << c)) in floating-point arithmetic, b is equal to 0, 1, 2, or 3, and c is a predefined integer value. In some examples, the value of remY[b] may be stored as an integer value in a lookup table (LUT). In this example from Equation (16), c[k, l] can be calculated using integer arithmetic without using floating-point numbers.
[0164] In an example for such an explanation, the clipping value c(k, l) for the chroma component can be calculated as follows. c(k, l) = Round(2 (BitDepthC-8) * 2 (8*(3-clipIdx[k,l]) / 3) ) = Round(2 BitDepthC * 2 -8*clipIdx(k,l) / 3 ) = Round(2 BitDepthC-a-b / 3 ) = Round(1 << (BitDepthC - a) * 2 -b / 3 ) = ((1 << (BitDepthC - a)) * remC[b]) >> c Equation (17)
[0165] Here, a is equal to 8 * clipIdx(k, l) / 3, b is equal to [8 * clipIdx(k, l)] modulo 3, remC[b] is equivalent to Round(2 -b / 3 * (1 << c)) in floating-point arithmetic, b is equal to 0, 1, or 2, and c is a predefined integer value. The value of remY[b] may be stored as an integer value in a LUT. In this example from Equation (17), c[k, l] can be calculated using integer arithmetic and without using floating-point numbers.
[0166] In another illustrative example, for the luma component, the clipping value c(k,l) may be calculated as follows: c(k,l)=1<<(BitDepthY-offsetY[clipIdx(k,l)]), equation (18)
[0167] Furthermore, for the chroma components, the clipping values c(k,l) may be calculated as follows: c(k,l)=1<<(BitDepthC-offsetC[clipIdx(k,l)]), equation (19)
[0168] In the above example, offsetY[i] and offsetC[i], where i equals 0, 1, 2, or 3, are predefined or calculated values based on the clipping index (clipIdx(k,l)).
[0169] In some examples, the clipping values for the luma and / or chroma components may be calculated based on other methods not mentioned above (eg, using other formulas) using integer arithmetic.
[0170] In some implementations, the same equation may be used to calculate the clipping values for the luma and chroma components, for example, the same equation from equation (14) above may be used to calculate the clipping values for the luma and chroma components.
[0171] In one illustrative example, an equation using floating-point arithmetic may be used to calculate clipping values for both the luma and chroma components. For example, in some cases, an equation from equations (11) and (12) may be used to calculate clipping values for both the luma and chroma components. Alternatively, other equations not given herein may be used. In another illustrative example, an equation using integer arithmetic may be used. For example, an equation from equations (14)-(19) may be used. Alternatively, other equations not given herein may be used.
[0172] Having disclosed example systems, components and concepts, the disclosure now turns to an example method 600 for processing video data, as shown in Figure 6. In some examples, processing video data according to method 600 may include simplifying clipping value calculations for adaptive loop filtering. The steps outlined herein are non-limiting examples given for illustrative purposes and may be implemented in any combination thereof, including combinations that remove, add, or modify some steps.
[0173] At block 602, the method 600 may include obtaining video data including one or more pictures. In some examples, an encoding device (e.g., 104) may receive one or more pictures from a video source (e.g., 102), such as a camera. In some examples, a decoding device (e.g., 112) may receive an encoded video bitstream including one or more pictures from the encoding device (e.g., 104). In some examples, the encoded video bitstream may include signaling information. The signaling information may include, for example, without limitation, an offset value used to determine clipping values as described below with respect to block 606, a clipping index value used to determine clipping values as described below with respect to block 606, filter parameters (e.g., filter coefficients, filter size parameters, filter shape parameters, etc.), and / or adaptive loop filter flags (e.g., an ALF flag indicating whether luma and / or chroma ALF filtering is enabled).
[0174] At block 604, the method 600 may include obtaining blocks of pictures from one or more pictures. In some examples, an encoding device (e.g., 104) may partition the video data into one or more blocks including blocks of pictures. In some examples, the blocks may be encoded blocks in an encoded video bitstream, and a decoding device (e.g., 112) may decode the blocks of pictures using signaling information in the bitstream by applying a coding algorithm and / or standard that matches the coding algorithm and / or standard used to encode the blocks, pictures, and / or bitstream. In some examples, the decoding device may reconstruct the blocks of pictures as described with respect to the system 100 shown in FIG. 1 and the decoding device 112 shown in FIG. 8.
[0175] At block 606, the method 600 may include determining a clipping value (e.g., c(k,l)) for at least one filter. In some examples, the clipping value may correspond to a luma component in the block of the picture and / or a chroma component in the block of the picture. In some examples, the clipping value is determined by left-shifting a first integer by a second integer. In some cases, the second integer may include a result of subtracting an offset value (e.g., offset[clipIdx(k,l)]) associated with the clipping index value (e.g., clipIdx(k,l)) from a bit depth value for a sample (e.g., luma sample, chroma sample) from the block. For example, in some cases, each clipping value may be determined based on equation (14) described above.
[0176] In some cases, the first integer is 1, and left-shifting the first integer by the second integer involves raising 2 to a power of an exponent equivalent to the second integer. For example, if the first integer is 1 and the second integer is 8, left-shifting the first integer by the second integer involves raising 2 to the power of 8, i.e., 28 It may be equal to.
[0177] In some examples, the clipping values may include a first set of clipping values for the luma component and a second set of clipping values for the chroma components. In some cases, the first set of clipping values for the luma component and the second set of clipping values for the chroma components may both be determined by left shifting a first integer by a second integer, as described with respect to block 606.
[0178] In some cases, the clipping value may correspond to a set of filter clipping values in a clipping index table (e.g., table 500), and different clipping values of the set of filter clipping values in the clipping index table may correspond to different blocks and / or positions (e.g., k, l) within the picture. In some examples, the different positions within the block and / or picture may include different pixel locations and / or regions in the picture.
[0179] In some cases, the offset value may be a predetermined offset value from a plurality of predetermined offset values. For example, the offset value may be one of 0, 3, 5, or 7, as described above with respect to Equation (14). In some cases, the offset value is determined from a plurality of predetermined offset values based on a clipping index value (e.g., based on clipIdx(k,l)). In some examples, determining a clipping value for the at least one filter may include determining corresponding clipping values for a plurality of samples (e.g., luma and / or chroma samples) from the picture, and each corresponding clipping value may be associated with a particular sample from the plurality of samples. In some cases, each corresponding clipping value may be determined by left-shifting a first integer by a particular integer associated with the particular sample. The particular integer may include a particular result of subtracting a particular offset value from the plurality of predetermined offset values from a bit depth value for the particular sample. In some examples, the particular offset value is determined from a plurality of predetermined offset values based on a particular clipping index value associated with the particular sample, as described above.
[0180] In some cases, the clipping values for the at least one filter may include a luma clipping value for the luma component and a chroma clipping value for the chroma component. In some examples, the luma clipping value may be determined by left shifting the first integer by a third integer that includes a second result of minus a luma offset value associated with the second clipping index value from a bit depth value for a luma sample from the block. In some examples, the chroma clipping value may be determined by left shifting the first integer by a fourth integer that includes a third result of minus a chroma offset value associated with the third clipping index value from a bit depth value for a chroma sample from the block.
[0181] In some examples, the at least one filter may include an ALF, hi some examples, the at least one filter includes a 5×5 adaptive loop filter, such as filter 300 shown in FIG. 3A, and a 7×7 adaptive loop filter, such as filter 330 shown in FIG. 3B.
[0182] In some cases, determining the clipping value for the at least one filter may include determining a filter coefficient value (e.g., f(k,l)) for the at least one filter. Moreover, in some aspects, at block 606, method 600 may determine the clipping value using other techniques. For example, in some cases, method 600 may determine the clipping value based on any of equations (15)-(19) described above.
[0183] At block 608, the method 600 may include applying at least one filter to the block. The method 600 may generate an output block including a block that has been filtered and clipped based on the at least one filter. For example, the method 600 may generate an output block including a block that has been filtered with an ALF and clipping based on a clipping value. Moreover, applying the at least one filter to the block may include applying filter coefficients and clipping values to one or more samples (e.g., one or more luma and / or chroma samples) in the block.
[0184] In some cases, applying the at least one filter to the block may include applying a 5×5 adaptive loop filter to the chroma components and a 7×7 adaptive loop filter to the luma component. In some examples, the 5×5 adaptive loop filter and the 7×7 adaptive loop filter may have a diamond shape. In other examples, the at least one filter may include one or more other filter sizes and / or shapes.
[0185] In some examples, a decoding device (e.g., 112) may obtain an encoded video bitstream including one or more pictures and decode blocks of pictures from the encoded video bitstream. In some examples, the decoding device may identify signaling information associated with the encoded video bitstream and use the signaling information to reconstruct blocks, determine clipping values for at least one filter, determine one or more coefficients for the at least one filter, determine a filter size and / or shape, determine whether filtering is enabled, and / or apply at least one filter to the reconstructed blocks. In some examples, the signaling information may include offset values, clipping index values, filter parameters (e.g., filter coefficients, filter size parameters, filter shape parameters, etc.), and / or adaptive loop filter flags (e.g., an ALF flag indicating whether luma and / or chroma ALF filtering is enabled).
[0186] In some examples, the method 600 may include generating (e.g., by encoding device 104) an encoded video bitstream including one or more pictures and sending the encoded video bitstream to a decoding device (e.g., 112). In some cases, the encoded video bitstream may be sent along with signaling information. The signaling information may include, for example, offset values, clipping index values, filter parameters (e.g., filter coefficients, filter size parameters, filter shape parameters, etc.), and / or adaptive loop filter flags (e.g., ALF flags indicating whether luma and / or chroma ALF filtering is enabled).
[0187] In some examples, the method 600 may include storing the encoded video bitstream. In some examples, the method 600 may include reconstructing blocks of pictures in the encoded video bitstream, applying one or more ALF filters with clipping values to one or more of the blocks of pictures in the encoded video, and then presenting a reconstructed video from the encoded video bitstream.
[0188] In some implementations, the processes (or methods) described herein may be performed by a computing device or apparatus, such as the system 100 shown in FIG. 1. For example, the processes may be performed by the encoding device 104 shown in FIG. 1 and FIG. 7, by another video source side device or video transmission device, by the decoding device 112 shown in FIG. 1 and FIG. 7, and / or by another client side device, such as a player device, a display, or any other client side device. In some cases, the computing device or apparatus may include a processor, microprocessor, microcomputer, or other components of a device configured to practice steps of the processes described herein. In some examples, the computing device or apparatus may include a camera configured to capture video data (e.g., a video sequence) including video frames. In some examples, the camera or other capture device that captures the video data is separate from the computing device, in which case the computing device receives or obtains the captured video data. The computing device may further include a network interface configured to communicate the video data. The network interface may be configured to communicate Internet Protocol (IP)-based data or other types of data. In some examples, the computing device or apparatus may include a display for displaying the output video content, such as samples of pictures of the video bitstream.
[0189] The processes are described with respect to logic flow diagrams, whose operations represent sequences of operations that may be implemented in hardware, computer instructions, or a combination thereof. In the context of computer instructions, the operations represent computer-executable instructions stored on one or more computer-readable storage media that, when executed by one or more processors, perform the described operations. Generally, computer-executable instructions include routines, programs, objects, components, data structures, etc. that perform particular functions or implement particular data types. The order in which the operations are described is not intended to be construed as a limitation, and any number of the described operations may be combined in any order and / or in parallel to implement a process.
[0190] Additionally, the process may be performed under the control of one or more computer systems configured with executable instructions and may be implemented as code (e.g., executable instructions, one or more computer programs, or one or more applications) that collectively execute on one or more processors, by hardware, or a combination thereof. As mentioned above, the code may be stored in a computer-readable or machine-readable storage medium, for example in the form of a computer program comprising a plurality of instructions executable by one or more processors. The computer-readable or machine-readable storage medium may be non-transitory.
[0191] The coding techniques described herein may be implemented in an exemplary video encoding and decoding system (e.g., system 100). In some examples, the system includes a source device that provides encoded video data to be subsequently decoded by a destination device. Specifically, the source device provides the video data to the destination device via a computer-readable medium. The source device and destination device may comprise any of a wide range of devices, including desktop computers, notebook (i.e., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, so-called "smart" pads, televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, mobile devices, Internet of Things (IoT) devices, HMDs, and the like. In some cases, the source device and destination device may be equipped for wireless communication.
[0192] The destination device may receive the encoded video data to be decoded via a computer-readable medium. The computer-readable medium may comprise any type of medium or device capable of moving encoded video data from a source device to a destination device. In one example, the computer-readable medium may comprise a communication medium for enabling the source device to transmit the encoded video data directly to the destination device in real time. The encoded video data may be modulated according to a communication standard, such as a wireless communication protocol, and transmitted to the destination device. The communication medium may comprise any wireless or wired communication medium, such as a radio frequency (RF) spectrum, or one or more physical transmission lines. The communication medium may form part of a packet-based network, such as a local area network, a wide area network, or a global network such as the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful for facilitating communication from a source device to a destination device.
[0193] In some examples, the encoded data may be output from the output interface to a storage device. Similarly, the encoded data may be accessed from the storage device by the input interface. The storage device may include any of a variety of distributed or locally accessed data storage media, such as hard drives, Blu-ray discs, DVDs, CD-ROMs, flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing encoded video data. In further examples, the storage device may correspond to a file server or another intermediate storage device that may store the encoded video generated by the source device. The destination device may access the stored video data from the storage device via streaming or download. The file server may be any type of server capable of storing the encoded video data and transmitting the encoded video data to the destination device. Exemplary file servers include a web server (e.g., for a website), an FTP server, a network attached storage (NAS) device, or a local disk drive. The destination device may access the encoded video data through any standard data connection, including an Internet connection. This may include a wireless channel (e.g., a Wi-Fi connection), a wired connection (e.g., DSL, cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored on the file server. The transmission of the encoded video data from the storage device may be a streaming transmission, a download transmission, or a combination thereof.
[0194] The techniques of this disclosure are not necessarily limited to wireless applications or settings. The techniques may be applied to video coding in supporting any of a variety of multimedia applications, such as over-the-air television broadcast, cable television transmission, satellite television transmission, Internet streaming video transmission such as Dynamic Adaptive Streaming over HTTP (DASH), digital video encoded onto a data storage medium, decoding of digital video stored on a data storage medium, or other applications. In some examples, the system may be configured to support one-way or two-way video transmission to support applications such as video streaming, video playback, video broadcasting, and / or video telephony.
[0195] In one example, the source device includes a video source, a video encoder, and an output interface. The destination device may include an input interface, a video decoder, and a display device. The video encoder of the source device may be configured to apply the techniques disclosed herein. In other examples, the source device and the destination device may include other components or arrangements. For example, the source device may receive video data from an external video source, such as an external camera. Similarly, the destination device may interface with an external display device rather than including an integrated display device.
[0196] The above exemplary system is only an example. The techniques for processing video data in parallel may be implemented by any digital video encoding and / or decoding device. In general, the techniques of this disclosure are implemented by a video encoding device, but the techniques may also be implemented by a video encoder / decoder, usually referred to as a "codec." Moreover, the techniques of this disclosure may also be implemented by a video preprocessor. The source device and destination device are only examples of such coding devices, where the source device generates coded video data for transmission to the destination device. In some examples, the source device and destination device may operate substantially symmetrically, such that each of the devices includes video encoding and decoding components. Thus, the exemplary system may support one-way or two-way video transmission between video devices, for example, for video streaming, video playback, video broadcasting, or video telephony.
[0197] The video source may include a video capture device such as a video camera, a video archive containing previously captured video, and / or a video feed interface for receiving video from a video content provider. As a further alternative, the video source may generate computer graphics-based data as the source video, or a combination of live, archived, and computer-generated video. In some cases, when the video source is a video camera, the source and destination devices may form a so-called camera phone or video phone. However, as mentioned above, the techniques described in this disclosure may be applicable to video coding in general and may be applied to wireless and / or wired applications. In each case, the captured, pre-captured, or computer-generated video may be encoded by a video encoder. The encoded video information may then be output on a computer-readable medium by an output interface.
[0198] As noted, computer-readable media may include transitory media, such as wireless broadcast or wired network transmissions, or storage media (i.e., non-transitory storage media), such as hard disks, flash drives, compact discs, digital video discs, Blu-ray discs, or other computer-readable media. In some examples, a network server (not shown) may receive encoded video data from a source device, e.g., via a network transmission, and provide the encoded video data to a destination device. Similarly, a computing device of a media production facility, such as a disc stamping facility, may receive encoded video data from a source device and generate a disc including the encoded video data. Thus, computer-readable media may be understood to include one or more computer-readable media of various forms in various examples.
[0199] An input interface of the destination device receives information from a computer-readable medium. The information of the computer-readable medium may include syntax information defined by a video encoder, including syntax elements that describe characteristics and / or processing of blocks and other coded units, e.g., groups of pictures (GOPs), which are also used by a video decoder. The display device displays the decoded video data to a user and may comprise any of a variety of display devices, such as a cathode ray tube (CRT), a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device. Various embodiments of example applications have been described.
[0200] Specific details of the encoding device 104 and the decoding device 112 are illustrated in FIG. 7 and FIG. 8, respectively. FIG. 7 is a block diagram illustrating an example encoding device 104 that may implement one or more of the techniques described in this disclosure. The encoding device 104 may generate, for example, a syntax structure described herein (e.g., a syntax structure for a VPS, SPS, PPS, or other syntax elements). The encoding device 104 may perform intra-prediction and inter-prediction coding of video blocks within a video slice. As previously described, intra-coding relies at least in part on spatial prediction to reduce or remove spatial redundancy within a given video frame or picture. Inter-coding relies at least in part on temporal prediction to reduce or remove temporal redundancy within adjacent or surrounding frames of a video sequence. An intra-mode (I-mode) may refer to any of several spatial-based compression modes. An inter-mode, such as unidirectional prediction (P-mode) or bidirectional prediction (B-mode), may refer to any of several temporal-based compression modes.
[0201] Encoding device 104 includes partition unit 35, prediction processing unit 41, filter unit 63, picture memory 64, adder 50, transform processing unit 52, quantization unit 54, and entropy coding unit 56. Prediction processing unit 41 includes motion estimation unit 42, motion compensation unit 44, and intra-prediction processing unit 46. For video block reconstruction, encoding device 104 also includes inverse quantization unit 58, inverse transform processing unit 60, and adder 62. Filter unit 63 is intended to represent one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) filter. Although filter unit 63 is illustrated in FIG. 7 as being an in-loop filter, in other configurations filter unit 63 may be implemented as a post-loop filter. Post-processing device 57 may perform additional processing on the encoded video data generated by encoding device 104. Techniques of this disclosure may be implemented by encoding device 104 in some instances. However, in other cases, one or more of the techniques of this disclosure may be implemented by post-processing device 57.
[0202] As shown in FIG. 7, encoding device 104 receives video data, and partitioning unit 35 partitions the data into video blocks. Partitioning may also include partitioning into slices, slice segments, tiles, or other larger units, as well as video block partitioning, for example, according to a quadtree structure of LCUs and CUs. Encoding device 104 generally refers to a component that encodes video blocks in a video slice to be encoded. A slice may be divided into a number of video blocks (and possibly into a set of video blocks called tiles). Prediction processing unit 41 may select one of a number of possible coding modes, such as one of a number of intra-predictive coding modes or one of a number of inter-predictive coding modes, for a current video block based on an error result (e.g., coding rate, level of distortion, etc.). Prediction processing unit 41 may provide the resulting intra- or inter-coded block to adder 50 to generate residual block data and to adder 62 to reconstruct a coding block for use as a reference picture.
[0203] Intra-prediction processing unit 46 within prediction processing unit 41 may perform intra-predictive coding of the current video block relative to one or more neighboring blocks in the same frame or slice as the current block to be coded to provide spatial compression. Motion estimation unit 42 and motion compensation unit 44 within prediction processing unit 41 perform inter-predictive coding of the current video block relative to one or more predictive blocks in one or more reference pictures to provide temporal compression.
[0204] Motion estimation unit 42 may be configured to determine an inter-prediction mode for a video slice according to a predetermined pattern for a video sequence. The predetermined pattern may designate a video slice in the sequence as a P slice, a B slice, or a GPB slice. Motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are illustrated separately for conceptual purposes. Motion estimation performed by motion estimation unit 42 is the process of generating motion vectors that estimate motion with respect to a video block. A motion vector may indicate, for example, the displacement of a prediction unit (PU) of a video block in a current video frame or picture relative to a predictive block in a reference picture.
[0205] The predictive block is a block found to closely match the PU of the video block to be coded in terms of pixel differences, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metrics. In some examples, encoding device 104 may calculate values for sub-integer pixel locations of reference pictures stored in picture memory 64. For example, encoding device 104 may interpolate values for quarter-pixel locations, eighth-pixel locations, or other fractional pixel locations of the reference pictures. Thus, motion estimation unit 42 may perform motion searches for full-pixel and fractional pixel locations and output motion vectors with fractional pixel precision.
[0206] Motion estimation unit 42 calculates a motion vector for a PU of a video block in an inter-coded slice by comparing the position of the PU with the position of a predictive block of a reference picture. The reference picture may be selected from a first reference picture list (List 0) or a second reference picture list (List 1), each of which identifies one or more reference pictures stored in picture memory 64. Motion estimation unit 42 sends the calculated motion vector to entropy encoding unit 56 and motion compensation unit 44.
[0207] Motion compensation performed by motion compensation unit 44 may involve fetching or generating a predictive block based on a motion vector determined by motion estimation, possibly performing interpolation to sub-pixel precision. Upon receiving the motion vector of the PU of the current video block, motion compensation unit 44 may locate the predictive block to which the motion vector points in the reference picture list. Encoding device 104 forms a residual video block by subtracting pixel values of the predictive block from pixel values of the current video block being coded to form pixel difference values. The pixel difference values form residual data for the block and may include both luma and chroma difference components. Adder 50 represents one or more components that perform this subtraction operation. Motion compensation unit 44 may also generate syntax elements related to the video block and the video slice for use by decoding device 112 in decoding the video block of the video slice.
[0208] Intra-prediction processing unit 46 may intra-predict the current block as an alternative to the inter-prediction performed by motion estimation unit 42 and motion compensation unit 44, as described above. In particular, intra-prediction processing unit 46 may determine an intra-prediction mode to use to encode the current block. In some examples, intra-prediction processing unit 46 may encode the current block using various intra-prediction modes, e.g., during separate encoding passes, and intra-prediction processing unit 46 may select a suitable intra-prediction mode to use from the tested modes. For example, intra-prediction processing unit 46 may calculate rate-distortion values using a rate-distortion analysis for the various tested intra-prediction modes and may select the intra-prediction mode with the best rate-distortion characteristics from among the tested modes. The rate-distortion analysis generally determines the distortion (or error) between the encoded block and the original uncoded block that was coded to generate the encoded block, as well as the bitrate (i.e., number of bits) used to generate the encoded block. Intra-prediction processing unit 46 may calculate ratios from the distortions and rates for the various coding blocks to determine which intra-prediction mode exhibits the best rate-distortion value for the block.
[0209] In either case, after selecting an intra-prediction mode for a block, intra-prediction processing unit 46 may provide information indicating the selected intra-prediction mode for the block to entropy encoding unit 56. Entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode. Encoding device 104 may include in the transmitted bitstream configuration data definitions of encoding contexts for various blocks, as well as an indication of the most probable intra-prediction mode, intra-prediction mode index table, and modified intra-prediction mode index table to use for each of the contexts. The bitstream configuration data may include multiple intra-prediction mode index tables and multiple modified intra-prediction mode index tables (also referred to as codeword mapping tables).
[0210] After prediction processing unit 41 generates a predictive block for a current video block via either inter-prediction or intra-prediction, encoding device 104 forms a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more TUs and may be applied to transform processing unit 52. Transform processing unit 52 converts the residual video data into residual transform coefficients using a transform, such as a discrete cosine transform (DCT) or a conceptually similar transform. Transform processing unit 52 may convert the residual video data from the pixel domain to a transform domain, such as the frequency domain.
[0211] Transform processing unit 52 may send the resulting transform coefficients to quantization unit 54. Quantization unit 54 quantizes the transform coefficients to further reduce the bit rate. The quantization process may reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be varied by adjusting a quantization parameter. In some examples, quantization unit 54 may then perform a scan of a matrix including the quantized transform coefficients. Alternatively, entropy coding unit 56 may perform the scan.
[0212] Following quantization, entropy encoding unit 56 entropy encodes the quantized transform coefficients. For example, entropy encoding unit 56 may implement context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioned entropy (PIPE) coding, or another entropy encoding technique. Following entropy encoding by entropy encoding unit 56, the encoded bitstream may be transmitted to decoding device 112 or archived for later transmission or retrieval by decoding device 112. Entropy encoding unit 56 may also entropy encode motion vectors and other syntax elements of the current video slice being coded.
[0213] Inverse quantization unit 58 and inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual block in the pixel domain for later use as a reference block of a reference picture. Motion compensation unit 44 may calculate a reference block by adding the residual block to a predictive block of one of the reference pictures in the reference picture list. Motion compensation unit 44 may also apply one or more interpolation filters to the reconstructed residual block to calculate sub-integer pixel values for use in motion estimation. Adder 62 adds the reconstructed residual block to the motion compensated predictive block generated by motion compensation unit 44 to generate a reference block for storage in picture memory 64. The reference block may be used by motion estimation unit 42 and motion compensation unit 44 as a reference block for inter predicting blocks in a subsequent video frame or picture.
[0214] In some examples, encoding device 104 of FIG. 7 may represent an example of a video encoder configured to calculate ALF filters and clipping values, perform ALF filtering with clipping, derive various coding parameters, etc. Encoding device 104 may calculate ALF filters and clipping values and / or perform ALF filtering with clipping, e.g., as described above. For example, encoding device 104 may perform any of the techniques described herein, including the processes and techniques described above with respect to FIGS. 2A through 6. In some cases, some of the techniques of this disclosure may be implemented by post-processing device 57.
[0215] 8 is a block diagram illustrating an exemplary decoding device 112. The decoding device 112 includes an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an adder 90, a filter unit 91, and a picture memory 92. The prediction processing unit 81 includes a motion compensation unit 82 and an intra-prediction processing unit 84. The decoding device 112 may, in some examples, perform a decoding path that is generally inverse to the encoding path described with respect to the encoding device 104 from FIG.
[0216] During the decoding process, the decoding device 112 receives an encoded video bitstream representing video blocks and associated syntax elements of an encoded video slice sent by the encoding device 104. In some embodiments, the decoding device 112 may receive the encoded video bitstream from the encoding device 104. In some embodiments, the decoding device 112 may receive the encoded video bitstream from a network entity 79, such as a server, a media aware network element (MANE), a video editor / splicer, or other such device configured to implement one or more of the techniques described above. The network entity 79 may or may not include the encoding device 104. Some of the techniques described in this disclosure may be implemented by the network entity 79 before the network entity 79 sends the encoded video bitstream to the decoding device 112. In some video decoding systems, the network entity 79 and the decoding device 112 may be part of separate devices, and in other cases, the functionality described with respect to the network entity 79 may be performed by the same device that comprises the decoding device 112.
[0217] Entropy decoding unit 80 of decoding device 112 entropy decodes the bitstream to generate quantized coefficients, motion vectors, and other syntax elements. Entropy decoding unit 80 forwards the motion vectors and other syntax elements to prediction processing unit 81. Decoding device 112 may receive syntax elements at the video slice level and / or the video block level. Entropy decoding unit 80 may process and parse both fixed-length and variable-length syntax elements in one or more parameter sets, such as VPS, SPS, and PPS.
[0218] When a video slice is coded as an intra-coded (I) slice, intra-prediction processing unit 84 of prediction processing unit 81 may generate predictive data for video blocks of the current video slice based on the signaled intra-prediction mode and data from previously decoded blocks of the current frame or picture. When a video frame is coded as an inter-coded (i.e., B, P or GPB) slice, motion compensation unit 82 of prediction processing unit 81 generates predictive blocks for video blocks of the current video slice based on motion vectors and other syntax elements received from entropy decoding unit 80. The predictive blocks may be generated from one of the reference pictures in the reference picture list. Decoding device 112 may construct the reference frame lists, i.e., List 0 and List 1, using a default construction technique based on the reference pictures stored in picture memory 92.
[0219] Motion compensation unit 82 may determine prediction information for video blocks of the current video slice by parsing the motion vectors and other syntax elements, and use the prediction information to generate predictive blocks for the current video block being decoded. For example, motion compensation unit 82 may use one or more syntax elements in a parameter set to determine the prediction mode (e.g., intra prediction or inter prediction) used to code the video blocks of the video slice, the inter-predictive slice type (e.g., B slice, P slice, or GPB slice), configuration information for one or more reference picture lists for the slice, motion vectors for each inter-coded video block of the slice, inter-prediction status for each inter-coded video block of the slice, and other information for decoding video blocks in the current video slice.
[0220] Motion compensation unit 82 may also perform the interpolation based on an interpolation filter. Motion compensation unit 82 may calculate interpolated values for sub-integer pixels of the reference block using an interpolation filter as used by encoding device 104 during encoding of the video block. In this case, motion compensation unit 82 may determine the interpolation filter used by encoding device 104 from a received syntax element and may use that interpolation filter to generate the predictive block.
[0221] Inverse quantization unit 86 inverse quantizes, or dequantizes, the quantized transform coefficients provided in the bitstream and decoded by entropy decoding unit 80. The inverse quantization process may involve determining the degree of quantization using a quantization parameter calculated by video encoder 104 for each video block in a video slice, as well as determining the degree of inverse quantization to apply. Inverse transform processing unit 88 applies an inverse transform (e.g., an inverse DCT or other suitable inverse transform), an inverse integer transform, or a conceptually similar inverse transform process to the transform coefficients to generate residual blocks in the pixel domain.
[0222] After motion compensation unit 82 generates a predictive block for the current video block based on the motion vector and other syntax elements, decoding device 112 forms a decoded video block by adding a residual block from inverse transform processing unit 88 with a corresponding predictive block generated by motion compensation unit 82. Adder 90 represents one or more components that perform this addition operation. If desired, a loop filter (either during the coding loop or after the coding loop) may also be used to smooth pixel transitions or otherwise improve video quality. Filter unit 91 is intended to represent one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and / or a sample adaptive offset (SAO) filter. Although filter unit 91 is illustrated in FIG. 8 as being an in-loop filter, in other configurations filter unit 91 may be implemented as a post-loop filter. The decoded video blocks in a given frame or picture are then stored in picture memory 92, which stores reference pictures used for subsequent motion compensation. Picture memory 92 also stores decoded video for later presentation on a display device, such as video destination device 122 shown in FIG.
[0223] In some examples, the decode device 112 of FIG. 8 represents an example of a video decoder configured to calculate ALF filters and clipping values, perform ALF filtering with clipping, derive various coding parameters, etc. The decode device 112 may calculate ALF filters and clipping values and perform ALF filtering with clipping, e.g., as described above. For example, the decode device 112 may perform any of the techniques described herein, including the processes and techniques described above with respect to FIGs. 2A-6.
[0224] As used herein, the term "computer-readable medium" includes, but is not limited to, portable or non-portable storage devices, optical storage devices, and various other media that can store, contain, or transport instructions and / or data. Computer-readable media may include non-transitory media that do not include carrier waves and / or transitory electronic signals that propagate wirelessly or over wired connections, with data stored thereon. Examples of non-transitory media may include, but are not limited to, magnetic disks or tapes, optical storage media such as compact disks (CDs) or digital versatile disks (DVDs), flash memory, memory, or memory devices. A computer-readable medium may have code and / or machine-executable instructions stored thereon, which may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. may be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.
[0225] In some examples, computer-readable storage devices, media, and memories may include cables or wireless signals containing bit streams, etc. However, when referred to, non-transitory computer-readable storage media specifically excludes media such as energy, carrier signals, electromagnetic waves, and signals in and of itself.
[0226] Specific details are given in the above description to provide a thorough understanding of the embodiments and examples provided herein. However, it will be understood by those skilled in the art that the present embodiments may be practiced without these specific details. For clarity of explanation, in some cases, the present technology may be presented as including individual functional blocks, including functional blocks including steps or routines in a method embodied in a device, device component, software, or a combination of hardware and software. Additional components other than those shown in the drawings and / or described herein may be used. For example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form so as not to obscure the embodiments in unnecessary detail. In other cases, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail so as to avoid obscuring the embodiments.
[0227] Also, particular embodiments may be described above as a process or method that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although the flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. Additionally, the order of operations may be rearranged. A process terminates when its operations are completed, but may have additional steps not included in the diagram. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram. When a process corresponds to a function, its termination may correspond to a return of the function to the calling function or to the main function.
[0228] The processes and methods according to the examples described above may be implemented using computer-executable instructions stored or otherwise available from a computer-readable medium. Such instructions may include, for example, instructions and data that cause a general-purpose computer, a special-purpose computer, or a processing device to perform or otherwise configure a general-purpose computer, a special-purpose computer, or a processing device to perform a particular function or group of functions. Portions of the computer resources used may be accessible over a network. The computer-executable instructions may be, for example, binary, intermediate format instructions such as assembly language, firmware, source code, and the like. Examples of computer-readable media that may be used to store instructions, information used, and / or information created during methods according to the described examples include magnetic or optical disks, flash memory, USB devices provided with non-volatile memory, network-attached storage devices, and the like.
[0229] Devices implementing the processes and methods according to these disclosures may include hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof, and may take any of a variety of form factors. When implemented in software, firmware, middleware, or microcode, program code or code segments (e.g., computer program products) for performing the necessary tasks may be stored in a computer-readable or machine-readable medium. A processor may perform the necessary tasks. Typical examples of form factors include laptops, smartphones, mobile phones, tablet devices or other small form factor personal computers, personal digital assistants, rack-mounted devices, standalone devices, and the like. The functionality described herein may be embodied in a peripheral device or an add-in card. Such functionality may be implemented on a circuit board in different chips or different processes executing in a single device, as further examples.
[0230] The instructions, media for carrying such instructions, computational resources for executing such instructions, and other structures for supporting such computational resources are exemplary means for providing the functionality described in this disclosure.
[0231] In the above description, aspects of the present application have been described with reference to specific embodiments thereof, but those skilled in the art will recognize that the present application is not limited thereto. Thus, while exemplary embodiments of the present application have been described in detail herein, it should be understood that the inventive concepts may be embodied or utilized in various other ways, and that the appended claims are intended to be construed to include such variations, except as limited by the prior art. The various features and aspects of the applications described above may be used individually or together. Moreover, the embodiments may be used in any number of environments and applications beyond those described herein without departing from the broader spirit and scope of the present specification. Thus, the present specification and drawings should be considered illustrative and not limiting. For purposes of illustration, the methods have been described in a particular order. It should be appreciated that in alternative embodiments, the methods may be performed in an order different from that described.
[0232] Those skilled in the art will appreciate that the less than ("<") and greater than (">") symbols or terms used herein may be replaced with the less than or equal to ("≦") and greater than or equal to ("≧") symbols, respectively, without departing from the scope of the description.
[0233] When a component is described as being "configured to" perform some operation, such configuration may be achieved, for example, by designing electronic circuitry or hardware to perform the operation, by programming a programmable electronic circuitry (e.g., a microprocessor or other suitable electronic circuitry) to perform the operation, or any combination thereof.
[0234] The phrase "coupled to" refers to any component that is physically connected, either directly or indirectly, to another component and / or any component that is in direct or indirect communication with another component (e.g., connected to another component via a wired or wireless connection, and / or other suitable communications interface).
[0235] Claim language or other language reciting "at least one of" a set and / or "one or more" of a set indicates that one member of the set or multiple members of the set (in any combination) satisfy the claim. For example, claim language reciting "at least one of A and B" means A, B, or A and B. In another example, claim language reciting "at least one of A, B, and C" means A, B, C, or A and B, or A and C, or B and C, or A and B and C. The language "at least one of" a set and / or "one or more" of a set does not limit the set to the items listed in the set. For example, claim language reciting "at least one of A and B" can mean A, B, or A and B, and can further include items not listed in the set of A and B.
[0236] The various exemplary logic blocks, modules, circuits, and algorithm steps described with respect to the examples disclosed herein may be implemented as electronic hardware, computer software, firmware, or a combination thereof. To clearly illustrate this interchangeability of hardware and software, the various exemplary components, blocks, modules, circuits, and steps are generally described above with respect to their functionality. Whether such functionality is implemented as hardware or software depends on the specific application and design constraints imposed on the overall system. Those skilled in the art may realize the described functionality in various ways for each specific application, but such implementation should not be interpreted as causing a departure from the scope of this application.
[0237] The techniques described herein may also be implemented in electronic hardware, computer software, firmware, or any combination thereof. Such techniques may be implemented in any of a variety of devices, such as a general purpose computer, a wireless communication device handset, or an integrated circuit device having multiple uses, including applications in wireless communication device handsets and other devices. Any features described as modules or components may be implemented together in an integrated logic device, or separately as separate but interoperable logic devices. If implemented in software, the techniques may be realized at least in part by a computer-readable data storage medium comprising program code including instructions that, when executed, perform one or more of the methods, algorithms, and / or operations described above. The computer-readable data storage medium may form part of a computer program product, which may include packaging materials. The computer-readable medium may include a memory or data storage medium, such as a random access memory (RAM), e.g., a synchronous dynamic random access memory (SDRAM), a read-only memory (ROM), a non-volatile random access memory (NVRAM), an electrically erasable programmable read-only memory (EEPROM), a FLASH memory, a magnetic or optical data storage medium, or the like. The techniques may additionally or alternatively be realized at least in part by a computer-readable communications medium, such as a propagated signal or wave, that carries or communicates program code in the form of instructions or data structures and can be accessed, read, and / or executed by a computer.
[0238] The program code may be executed by a processor, which may include one or more processors, such as one or more digital signal processors (DSPs), general-purpose microprocessors, application specific integrated circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Such a processor may be configured to perform any of the techniques described in this disclosure. A general-purpose processor may be a microprocessor, but alternatively, the processor may be any conventional processor, controller, microcontroller, or state machine. A processor may also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in conjunction with a DSP core, or any other such configuration. Thus, the term "processor" as used herein may refer to any of the above structures, any combination of the above structures, or any other structure or apparatus suitable for implementing the techniques described herein.
[0239] Illustrative examples of the present disclosure include the following:
[0240] Example 1: A method comprising: obtaining video data including one or more pictures; obtaining a block of a picture from the one or more pictures; determining a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer comprising a result of subtracting an offset value associated with a clipping index value from a bit depth value for a sample from the block; and applying the at least one filter to the block.
[0241] Example 2: The method according to example 1, wherein the at least one filter includes an adaptive loop filter.
[0242] Example 3: A method according to example 1 or 2, wherein the clipping values include a first set of clipping values for the luma component and a second set of clipping values for the chroma component, and both the first set of clipping values for the luma component and the second set of clipping values for the chroma component are determined by left shifting a first integer by a second integer.
[0243] Example 4: The method according to any of Examples 1-3, wherein the first integer is 1, and left-shifting the first integer by the second integer includes raising 2 to a power of an exponent that includes the second integer.
[0244] Example 5: A method according to any of Examples 1 to 4, wherein the clipping value corresponds to a set of filter clipping values in a clipping index table, and different filter clipping values in the set of filter clipping values in the clipping index table correspond to different positions in the picture.
[0245] Example 6: The method according to any of Examples 1-5, wherein the offset value includes a predetermined offset value from a plurality of predetermined offset values, and the offset value is determined from the plurality of predetermined offset values based on the clipping index value.
[0246] Example 7: The method according to any of Examples 1-6, wherein determining a clipping value for the at least one filter includes determining corresponding clipping values for a plurality of samples from the picture, each corresponding clipping value being associated with a particular sample from the plurality of samples, and each corresponding clipping value being determined by left-shifting a first integer by a particular integer associated with the particular sample, the particular integer including a particular result of subtracting a particular offset value from a plurality of predetermined offset values from a bit depth value for the particular sample.
[0247] Example 8: The method according to any of Examples 1-7, wherein the particular offset value is determined from a plurality of predefined offset values based on a particular clipping index value associated with the particular sample.
[0248] Example 9: The method according to any of Examples 1-8, wherein the clipping values for the at least one filter include one or more luma clipping values for the luma components and one or more chroma clipping values for the chroma components, the one or more luma clipping values being determined by left shifting the first integer by a third integer, the third integer including a second result of subtracting a luma offset value associated with the second clipping index value from a bit depth value for the luma samples from the picture, and the one or more chroma clipping values being determined by left shifting the first integer by a fourth integer, the fourth integer including a third result of subtracting a chroma offset value associated with the third clipping index value from a bit depth value for the chroma samples from the picture.
[0249] Example 10: A method according to any of Examples 1 to 9, wherein at least one filter includes a 5x5 adaptive loop filter and a 7x7 adaptive loop filter, and applying at least one filter to the block includes applying a 5x5 adaptive loop filter to a chroma component and applying a 7x7 adaptive loop filter to a luma component.
[0250] Example 11: A method according to any of Examples 1-10, further comprising generating an encoded video bitstream including one or more pictures.
[0251] Example 12: The method according to any of Examples 1 to 11, wherein the encoded video bitstream is generated based on the video data and a result of applying at least one filter to the blocks.
[0252] Example 13: A method according to any of Examples 1 to 12, further comprising a step of sending the encoded video bitstream to a decoding device, the encoded video bitstream being sent together with signaling information, the signaling information including at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0253] Example 14: The method according to any of Examples 1 to 13, further comprising the step of storing the encoded video bitstream.
[0254] Example 15: A method according to any of Examples 1 to 14, further comprising the steps of obtaining an encoded video bitstream including one or more pictures, decoding blocks of pictures from the encoded video bitstream, and identifying signaling information associated with the encoded video bitstream, the signaling information including at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0255] Example 16: A method according to any of Examples 1 to 15, wherein decoding a block of a picture from an encoded video bitstream includes reconstructing the block of the picture, and applying at least one filter includes applying at least one filter to the reconstructed block.
[0256] Example 17: An apparatus comprising a memory and one or more processors coupled to the memory, the one or more processors configured to: obtain video data including one or more pictures; obtain a block of the picture from the one or more pictures; determine a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer including a result of subtracting an offset value associated with the clipping index value from a bit depth value for a sample from the block; and apply the at least one filter to the block.
[0257] Example 18: The apparatus according to example 18, wherein the at least one filter includes an adaptive loop filter.
[0258] Example 19: The apparatus according to Example 17 or 18, wherein the clipping values include a first set of clipping values for the luma component and a second set of clipping values for the chroma component, and both the first set of clipping values for the luma component and the second set of clipping values for the chroma component are determined by left-shifting a first integer by a second integer.
[0259] Example 20: The apparatus according to any of Examples 17-19, wherein the first integer is 1, and left-shifting the first integer by the second integer includes raising 2 to a power of an exponent that includes the second integer.
[0260] Example 21: The device according to any of Examples 17 to 20, wherein the clipping value corresponds to a set of filter clipping values in a clipping index table, and different filter clipping values in the set of filter clipping values in the clipping index table correspond to different positions in the picture.
[0261] Example 22: The apparatus according to any of Examples 17-21, wherein the offset value includes a predetermined offset value from a plurality of predetermined offset values, and the offset value is determined from the plurality of predetermined offset values based on the clipping index value.
[0262] Example 23: The apparatus according to any of Examples 17-22, wherein determining the clipping value for the at least one filter includes determining corresponding clipping values for a plurality of samples from the picture, each corresponding clipping value being associated with a particular sample from the plurality of samples, and each corresponding clipping value being determined by left-shifting a first integer by a particular integer associated with the particular sample, the particular integer including a particular result of subtracting a particular offset value from a plurality of predetermined offset values from a bit depth value for the particular sample.
[0263] Example 24: The apparatus according to any of Examples 17-23, wherein the particular offset value is determined from a plurality of predefined offset values based on a particular clipping index value associated with the particular sample.
[0264] Example 25: The apparatus according to any of Examples 17-24, wherein the clipping values for the at least one filter include one or more luma clipping values for the luma components and one or more chroma clipping values for the chroma components, wherein the one or more luma clipping values are determined by left shifting the first integer by a third integer, the third integer including a second result of subtracting a luma offset value associated with the second clipping index value from a bit depth value for the luma samples from the picture, and the one or more chroma clipping values are determined by left shifting the first integer by a fourth integer, the fourth integer including a third result of subtracting a chroma offset value associated with the third clipping index value from a bit depth value for the chroma samples from the picture.
[0265] Example 26: An apparatus according to any of Examples 17 to 25, wherein at least one filter includes a 5x5 adaptive loop filter and a 7x7 adaptive loop filter, and applying at least one filter to the block includes applying a 5x5 adaptive loop filter to a chroma component and applying a 7x7 adaptive loop filter to a luma component.
[0266] Example 27: An apparatus according to any of Examples 17-26, wherein the one or more processors are configured to generate an encoded video bitstream including one or more pictures.
[0267] Example 28: The apparatus according to any of Examples 17-27, wherein the coded video bitstream is generated based on the video data and a result of applying at least one filter to the blocks.
[0268] Example 29: An apparatus according to any of Examples 17 to 28, wherein one or more processors are configured to send an encoded video bitstream to a decoding device, the encoded video bitstream being sent together with signaling information, the signaling information including at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0269] Example 30: The apparatus according to any of Examples 17-29, wherein the one or more processors are configured to store the encoded video bitstream.
[0270] Example 31: An apparatus according to any of Examples 17 to 30, wherein one or more processors are configured to obtain an encoded video bitstream including one or more pictures, decode blocks of the pictures from the encoded video bitstream, and identify signaling information associated with the encoded video bitstream, wherein the signaling information includes at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0271] Example 32: An apparatus according to any of Examples 17 to 31, wherein decoding a block of a picture from the encoded video bitstream includes reconstructing the block of the picture, and applying at least one filter includes applying at least one filter to the reconstructed block.
[0272] Example 33: The apparatus according to any of Examples 17 to 32, wherein the apparatus is a mobile computing device.
[0273] Example 34: Apparatus comprising means for carrying out the method according to any of Examples 1 to 16.
[0274] Example 35: A non-transitory computer-readable storage medium including stored instructions that, when executed by one or more processors, cause the one or more processors to: obtain video data including one or more pictures; obtain a block of a picture from the one or more pictures; determine a clipping value for at least one filter, the clipping value corresponding to at least one of a luma component of the block and a chroma component of the block, a clipping value of the plurality of clipping values being determined by left-shifting a first integer by a second integer, the second integer including a result of subtracting an offset value associated with the clipping index value from a bit depth value for a sample from the block; and apply the at least one filter to the block.
[0275] Example 36: The non-transitory computer-readable storage medium according to example 35, wherein the at least one filter includes an adaptive loop filter.
[0276] Example 37: A non-transitory computer-readable storage medium according to Example 35 or 36, wherein the clipping values include a first set of clipping values for the luma component and a second set of clipping values for the chroma component, both of which are determined by left-shifting a first integer by a second integer.
[0277] Example 38: The non-transitory computer-readable storage medium according to any of Examples 35-37, wherein the first integer is 1 and left-shifting the first integer by the second integer includes raising 2 to a power of an exponent that includes the second integer.
[0278] Example 39: A non-transitory computer-readable storage medium according to any of Examples 35 to 38, wherein the clipping value corresponds to a set of filter clipping values in a clipping index table, and different filter clipping values among the set of filter clipping values in the clipping index table correspond to different positions within the picture.
[0279] Example 40: A non-transitory computer-readable storage medium according to any of Examples 35-39, wherein the offset value includes a predetermined offset value from a plurality of predetermined offset values, and the offset value is determined from the plurality of predetermined offset values based on a clipping index value.
[0280] Example 41: A non-transitory computer-readable storage medium according to any of Examples 35-40, wherein determining a clipping value for the at least one filter includes determining corresponding clipping values for a plurality of samples from the picture, each corresponding clipping value being associated with a particular sample from the plurality of samples, and each corresponding clipping value being determined by left-shifting a first integer by a particular integer associated with the particular sample, the particular integer including a particular result of subtracting a particular offset value from a plurality of predetermined offset values from a bit depth value for the particular sample.
[0281] Example 42: A non-transitory computer-readable storage medium according to any of Examples 35-41, wherein the particular offset value is determined from a plurality of predefined offset values based on a particular clipping index value associated with a particular sample.
[0282] Example 43: A non-transitory computer-readable storage medium according to any of Examples 35-42, wherein the clipping values for the at least one filter include one or more luma clipping values for the luma components and one or more chroma clipping values for the chroma components, the one or more luma clipping values being determined by left shifting a first integer by a third integer, the third integer including a second result of subtracting a luma offset value associated with the second clipping index value from a bit depth value for the luma samples from the picture, and the one or more chroma clipping values being determined by left shifting the first integer by a fourth integer, the fourth integer including a third result of subtracting a chroma offset value associated with the third clipping index value from a bit depth value for the chroma samples from the picture.
[0283] Example 44: A non-transitory computer-readable storage medium according to any of Examples 35 to 43, wherein at least one filter includes a 5x5 adaptive loop filter and a 7x7 adaptive loop filter, and applying at least one filter to the block includes applying a 5x5 adaptive loop filter to chroma components and applying a 7x7 adaptive loop filter to luma components.
[0284] Example 45: A non-transitory computer-readable storage medium according to any of Examples 35-44, comprising instructions that, when executed by one or more processors, cause the one or more processors to generate an encoded video bitstream including one or more pictures.
[0285] Example 46: A non-transitory computer-readable storage medium according to any of Examples 35 to 45, wherein the encoded video bitstream is generated based on the video data and a result of applying at least one filter to the blocks.
[0286] Example 47: A non-transitory computer-readable storage medium according to any of Examples 35 to 46, comprising instructions that, when executed by one or more processors, cause the one or more processors to send an encoded video bitstream to a decoding device, the encoded video bitstream being sent together with signaling information, the signaling information including at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0287] Example 48: A non-transitory computer-readable storage medium according to any of Examples 35-47, comprising instructions that, when executed by one or more processors, cause the one or more processors to store an encoded video bitstream.
[0288] Example 49: A non-transitory computer-readable storage medium according to any of Examples 35 to 48, comprising instructions that, when executed by one or more processors, cause the one or more processors to obtain an encoded video bitstream including one or more pictures, decode blocks of pictures from the encoded video bitstream, and identify signaling information associated with the encoded video bitstream, wherein the signaling information comprises at least one of an offset value, a clipping index value, a filter parameter, and an adaptive loop filter flag.
[0289] Example 50: A non-transitory computer-readable storage medium according to any of Examples 35 to 49, wherein decoding a block of a picture from an encoded video bitstream includes reconstructing the block of the picture, and applying at least one filter includes applying at least one filter to the reconstructed block.
[0290] Example 51: The non-transitory computer-readable storage medium according to any of Examples 35 to 50, wherein the non-transitory computer-readable storage medium is a mobile computing device.
[0291] Example 52: A method for processing video data, comprising: obtaining an encoded video bitstream, the encoded video bitstream including one or more pictures; decoding a picture from the one or more pictures from the encoded video bitstream; determining clipping values for a filter using integer arithmetic, the clipping values including a clipping value for a luma component and at least one clipping value for at least one chroma component, the clipping value for the luma component being determined based on a bit depth for the luma component and a clipping index, and the at least one clipping value for the at least one chroma component being determined based on a bit depth for the at least one chroma component and a clipping index; and applying the filter to the decoded picture.
[0292] Example 53: The method according to example 52, wherein the filter includes an adaptive loop filter.
[0293] Example 54: The method according to example 52 or 53, wherein the clipping index includes one or more clipping values at positions within the picture.
[0294] Example 55: The method according to any one of Examples 52 to 54, wherein the integer operation includes applying one or more shift operations.
[0295] Example 56: The method according to example 55, in which multiple shift operations are applied to determine a clipping value for the luma component.
[0296] Example 57: A method according to example 55 or 56, in which a single shift operation is applied to determine a clipping value for the luma component.
[0297] Example 58: The method according to any one of Examples 52 to 57, wherein a single shift operation is applied to determine at least one clipping value for at least one chroma component.
[0298] Example 59: The method according to any one of Examples 52 to 58, wherein multiple shift operations are applied to determine at least one clipping value for at least one chroma component.
[0299] Example 60: A method according to any one of Examples 52 to 59, wherein a clipping value for a luma component is further determined based on a luma offset associated with the clipping index, and at least one clipping value for at least one chroma component is further determined based on at least one chroma offset associated with the clipping index.
[0300] Example 61: The method according to any one of Examples 52 to 60, wherein the same formula is used to calculate a clipping value for a luma component and at least one clipping value for at least one chroma component.
[0301] Example 62: An apparatus comprising: a memory configured to store video data according to any of Examples 52-60; and a processor configured to process the video data.
[0302] Example 63: The apparatus according to example 62, wherein the apparatus includes a decoder.
[0303] Example 64: The apparatus according to example 62, wherein the apparatus includes an encoder.
[0304] Example 65: The apparatus according to any one of Examples 62 to 64, wherein the apparatus is a mobile device.
[0305] Example 66: The device according to any one of Examples 62 to 65, further comprising a display configured to display video data.
[0306] Example 67: The apparatus according to any one of Examples 62-66, further comprising a camera configured to capture one or more pictures.
[0307] Example 68: A computer-readable medium storing instructions that, when executed by a processor, perform a method according to any of Examples 52-60. [Explanation of symbols]
[0308] 35 Division Units 41 Prediction Processing Unit 42 Motion Estimation Unit 44 Motion Compensation Unit 46 Intra Prediction Processing Units 50 Adder 52 Conversion Processing Unit 54 Quantization Units 56 Entropy Coding Units 57 After-treatment Devices 58 Inverse Quantization Unit 60 Inverse Transformation Processing Unit 62 Adder 63 Filter unit 64 Picture Memory 79 Network Entities 80 Entropy Decoding Unit 81 Prediction Processing Unit 82 Motion Compensation Unit 84 Intra Prediction Processing Unit 86 Inverse Quantization Unit 88 Inverse Transformation Processing Unit 90 Adder 91 Filter unit 92 Picture Memory 100 Systems 102 Video Sources 104 Encoding device, video encoding device 106 Encoder Engine 108 Storage 110 Output section 112 Decoding device, video decoding device 114 Input section 116 Decoder Engine 118 Storage 120 Communication Links 122 Video Destination Device 200 Systems 202 Input Block 204 Color components 206 ALF 208 Luma Filtering Result 210 Chroma Filtering Results 212 Output Block 300 Filters 302~326 Cells 330 Filter 332~386 cells 400 Filters 402~426 Cells 430 Diagonal Geometry Transformation 440 Vertical Flip Geometry Transform 450 Rotation Geometry Transform
Claims
1. 1. A method for processing video data, comprising the steps of: obtaining video data including one or more pictures; obtaining a block of a picture from the one or more pictures; determining clipping values for at least one filter, the clipping values corresponding to a first set of clipping values corresponding to a luma component of the block and a second set of clipping values corresponding to a chroma component of the block, a clipping value among a plurality of clipping values being determined by left shifting a first integer by a second integer, the second integer comprising a bit depth value for a sample from the block minus an offset value associated with a clipping index value, the first set of clipping values corresponding to the luma component and the second set of clipping values corresponding to the chroma components both being determined by left shifting the first integer by the second integer, the offset value being determined from a plurality of predefined offset values including values different from the clipping index value; and applying the at least one filter to the block.
2. The method of claim 1 , wherein the at least one filter comprises an adaptive loop filter.
3. 2. The method of claim 1 , wherein the first integer is 1, and left-shifting the first integer by the second integer comprises raising two to a power of an exponent that includes the second integer.
4. The method of claim 1 , wherein the clipping value corresponds to a set of filter clipping values in a clipping index table, and wherein different filter clipping values in the set of filter clipping values in the clipping index table correspond to different positions in the picture.
5. the offset value includes a predetermined offset value from a plurality of predetermined offset values, the offset value being determined from the plurality of predetermined offset values based on the clipping index value; determining the clipping value for the at least one filter includes determining corresponding clipping values for a plurality of samples from the picture, each corresponding clipping value associated with a particular sample from the plurality of samples, each corresponding clipping value being determined by left shifting the first integer by a particular integer associated with the particular sample, the particular integer including a particular result of subtracting a particular offset value from the plurality of predetermined offset values from the bit depth value for the particular sample; The method of claim 1 , wherein the particular offset value is determined from the plurality of predefined offset values based on a particular clipping index value associated with the particular sample.
6. 2. The method of claim 1 , wherein the clipping values for the at least one filter include one or more luma clipping values for the luma components and one or more chroma clipping values for the chroma components, the one or more luma clipping values being determined by left shifting the first integer by a third integer, the third integer including a second result of subtracting a luma offset value associated with a second clipping index value from the bit depth values for luma samples from the picture, and the one or more chroma clipping values being determined by left shifting the first integer by a fourth integer, the fourth integer including a third result of subtracting a chroma offset value associated with a third clipping index value from the bit depth values for chroma samples from the picture.
7. 2. The method of claim 1 , wherein the at least one filter includes a 5×5 adaptive loop filter and a 7×7 adaptive loop filter, and applying the at least one filter to the block includes applying the 5×5 adaptive loop filter to the chroma components and applying the 7×7 adaptive loop filter to the luma components.
8. The method of claim 1 , further comprising generating an encoded video bitstream that includes the one or more pictures.
9. The method of claim 8 , wherein the encoded video bitstream is generated based on the video data and a result of applying the at least one filter to the blocks.
10. sending the encoded video bitstream to a decoding device, the encoded video bitstream being sent together with signaling information, the signaling information including at least one of the offset value, the clipping index value, filter parameters, and adaptive loop filter flags; or Storing the encoded video bitstream. The method of claim 8, further comprising any one of the following:
11. obtaining an encoded video bitstream comprising the one or more pictures; identifying signaling information associated with the encoded video bitstream, the signaling information including at least one of the offset value, the clipping index value, filter parameters, and adaptive loop filter flags; and decoding the blocks of the picture from the encoded video bitstream, where decoding the blocks of the picture from the encoded video bitstream includes reconstructing the blocks of the picture, and where applying the at least one filter includes applying the at least one filter to the reconstructed blocks.
12. Memory, and one or more processors coupled to the memory, the one or more processors: Obtaining video data including one or more pictures; obtaining a block of a picture from the one or more pictures; determining clipping values for at least one filter, the clipping values corresponding to a first set of clipping values corresponding to a luma component of the block and a second set of clipping values corresponding to a chroma component of the block, a clipping value among a plurality of clipping values being determined by left shifting a first integer by a second integer, the second integer comprising a bit depth value for a sample from the block minus an offset value associated with a clipping index value, the first set of clipping values corresponding to the luma component and the second set of clipping values corresponding to the chroma components both being determined by left shifting the first integer by the second integer, the offset value being determined from a plurality of predefined offset values including values different from the clipping index value; and applying the at least one filter to the block.
13. The apparatus of claim 12 , wherein the at least one filter comprises an adaptive loop filter.
14. The apparatus of claim 12 , wherein the apparatus is a mobile computing device.
15. A non-transitory computer-readable storage medium containing instructions stored thereon, the instructions, when executed by one or more processors, causing the one or more processors to: Obtaining video data including one or more pictures; obtaining a block of a picture from the one or more pictures; determining clipping values for at least one filter, the clipping values corresponding to a first set of clipping values corresponding to a luma component of the block and a second set of clipping values corresponding to a chroma component of the block, a clipping value among a plurality of clipping values being determined by left shifting a first integer by a second integer, the second integer comprising a bit depth value for a sample from the block minus an offset value associated with a clipping index value, the first set of clipping values corresponding to the luma component and the second set of clipping values corresponding to the chroma components both being determined by left shifting the first integer by the second integer, the offset value being determined from a plurality of predefined offset values including values different from the clipping index value; and applying the at least one filter to the blocks.
Citation Information
Patent Citations
Adaptive Loop Filter with Nonlinear Clipping
JP2022511745A
Adaptive loop filtering (ALF) with non-linear clipping
WO2020126411A1
