Enhanced coding in intercomponent sample-adaptive offsets.
CCSAO methods address the inefficiencies in luma and chroma coding by utilizing luma sample information to enhance chroma sample processing, improving video quality and reducing bit rates.
Patent Information
- Application Number
- JP2024509146
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-08-19
- Filing Date
- 2022-08-17
- Publication Date
- 2024-09-18
- Estimated Expiration
- 2042-08-17
AI Technical Summary
Existing video coding technologies face challenges in optimizing the coding efficiency of luma and chroma components, leading to suboptimal compression and quality trade-offs.
The implementation of Cross-Component Sample Adaptive Offset (CCSAO) methods that utilize inter-component correlations to improve coding efficiency by modifying chroma samples based on luma sample characteristics, including classification and offset determination using luma sample information.
Enhances coding efficiency by leveraging inter-component correlations, resulting in improved video quality and reduced bit rates without compromising compression performance.
Smart Images

Figure 2024534051000001
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 235,090, entitled “CROSS-COMPONENT SAMPLE ADAPTIVE OFFSET,” filed August 19, 2021, the entire contents of which are incorporated herein by reference.
[0002] This application relates generally to video coding and compression, and more particularly to methods and apparatus for improving both luma and chroma coding efficiency. [Background technology]
[0003] Digital video is supported by a variety of electronic devices, such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video gaming consoles, smartphones, video teleconferencing devices, video streaming devices, and the like. The electronic devices transmit and receive or otherwise communicate digital video data over communication networks and / or store the digital video data on storage devices. Due to the limited bandwidth capacity of communication networks and the limited memory resources of storage devices, video coding may be used to compress the video data according to one or more video coding standards before the video data is communicated or stored. For example, video coding standards include Versatile Video Coding (VVC), Joint Exploration test Model (JEM), High-Efficiency Video Coding (HEVC / H.265), Advanced Video Coding (AVC / H.264), Moving Picture Expert Group (MPEG) coding, and the like. AOMedia Video 1 (AV1) was developed as a successor to the predecessor standard VP9. Audio Video Coding (AVS) refers to digital audio and digital video compression standards, and is another series of video compression standards. Video coding generally utilizes prediction methods (e.g., inter-prediction, intra-prediction, etc.) that take advantage of the redundancy inherent in video data. Video coding aims to compress video data into a form that avoids or minimizes degradation of video quality while using lower bit rates. Summary of the Invention
[0004] This application describes example implementations relating to the encoding and decoding of video data, and more particularly, to methods and apparatus for improving the coding efficiency of both luma and chroma components, including improving the coding efficiency by exploring cross-component relationships between the luma and chroma components.
[0005] According to a first aspect of the present application, a method of decoding a video signal includes receiving a picture frame from the video signal, the picture frame including a first component and a second component; determining a classifier for each sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component and a second set of samples of the second component associated with the respective sample of the second component, where the first set of samples of the first component includes an array sample of the first component for the respective sample of the second component and adjacent samples of the array sample of the first component, and the second set of samples of the second component includes a current sample of the second component for the respective sample of the second component and adjacent samples of the current sample of the second component; determining a sample offset for each sample of the second component according to the classifier; and modifying the respective sample of the second component based on the determined sample offset.
[0006] According to a second aspect of the present application, a method of decoding a video signal includes receiving a picture frame from the video signal, the picture frame including a first component, a second component, and a third component; determining a classifier for each sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component and a third set of samples of the third component associated with the respective sample of the second component, where the first set of samples of the first component includes an array sample of the first component for the respective sample of the second component and adjacent samples of the array sample of the first component, and the third set of samples of the third component includes an array sample of the third component for the respective sample of the second component and adjacent samples of the array sample of the third component; determining a sample offset for each sample of the second component in accordance with the classifier; and modifying each sample of the second component based on the determined sample offset.
[0007] According to a third aspect of the present application, an electronic device includes one or more processing units, a memory, and a number of programs stored in the memory, the programs, when executed by the one or more processing units, causing the electronic device to perform the method for encoding a video signal as described above.
[0008] According to a fourth aspect of the present application, a non-transitory computer-readable storage medium stores a number of programs for execution by an electronic device having one or more processing units, the programs, when executed by the one or more processing units, causing the electronic device to perform the method for encoding a video signal as described above.
[0009] According to a fifth aspect of the present application, a computer-readable storage medium stores a bitstream including instructions that, when executed, cause a decoding device to perform the method for decoding a video signal as described above.
[0010] It is to be understood that both the foregoing general description and the following detailed description are merely exemplary and are not restrictive of the present disclosure.
[0011] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate examples consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure. [Brief description of the drawings]
[0012] [Figure 1] A block diagram illustrating an example system for video block encoding and decoding in accordance with some implementations of the present disclosure.
[0013] [Diagram 2] A block diagram showing an example video encoder in accordance with some implementations of the present disclosure.
[0014] [Diagram 3] A block diagram showing an example video decoder in accordance with some implementations of the present disclosure.
[0015] [Figure 4A-4E] A block diagram illustrating how a frame is recursively divided into multiple video blocks of different sizes and shapes in some implementations of the present disclosure.
[0016] [Figure 4F] FIG. 1 is a block diagram showing the intra modes defined in VVC.
[0017] [Figure 4G] FIG. 2 is a block diagram illustrating multiple reference lines for intra prediction.
[0018] [Figure 5A] FIG. 1 is a block diagram illustrating four gradient patterns used in sample adaptive offset (SAO) according to some implementations of the present disclosure.
[0019] [Figure 5B] FIG. 1 is a block diagram illustrating the naming convention for samples surrounding a central sample according to some implementations of the present disclosure.
[0020] [Figure 6A] FIG. 13 is a block diagram illustrating a CCSAO system and process applied to chroma samples by some example implementations of the present disclosure and using DBF Y as an input.
[0021] [Figure 6B] FIG. 1 is a block diagram illustrating a CCSAO system and process applied to luma and chroma samples by some implementations of the present disclosure and using DBF Y / Cb / Cr as input.
[0022] [Figure 6C] FIG. 1 is a block diagram illustrating a CCSAO system and process that can function independently according to some implementations of the present disclosure.
[0023] [Figure 6D] FIG. 1 is a block diagram illustrating a CCSAO system and process that may be applied recursively (2 or N times) with the same or different offsets according to some implementations of the present disclosure.
[0024] [Figure 6E] FIG. 1 is a block diagram illustrating a CCSAO system and process applied in parallel to Enhanced Sample Adaptive Offset (ESAO) in the AVS standard according to some implementations of the present disclosure.
[0025] [Figure 6F] FIG. 1 is a block diagram illustrating a CCSAO system and process applied after SAO according to some implementations of the present disclosure.
[0026] [Figure 6G]A block diagram illustrating that some implementations of the present disclosure allow the CCSAO system and process to function independently without CCALF.
[0027] [Figure 6H] FIG. 1 is a block diagram illustrating a CCSAO system and process applied in parallel to a cross-component adaptive loop filter (CCALF) according to some implementations of the present disclosure.
[0028] [Figure 6I] FIG. 1 is a block diagram illustrating a system and process of a CCSAO applied in parallel to an SAO and a BIF according to some implementations of the present disclosure.
[0029] [Figure 6J] FIG. 13 is a block diagram illustrating a system and process of a CCSAO applied in parallel to a BIF by replacing an SAO according to some implementations of the present disclosure.
[0030] [Figure 7] FIG. 13 is a block diagram illustrating a sample process for using a CCSAO in accordance with some implementations of the present disclosure.
[0031] [Figure 8] A block diagram showing how the CCSAO process is interleaved into vertical and horizontal deblocking filters (DBFs) according to some implementations of the present disclosure.
[0032] [Figure 9] 1 is a flow diagram illustrating an example process for decoding a video signal using cross-component correlation according to some implementations of the present disclosure.
[0033] [Figure 10A] FIG. 1 is a block diagram illustrating a classifier that uses different luma (or chroma) sample positions for C0 classification in accordance with some implementations of the present disclosure.
[0034] [Figure 10B] 1A and 1B are diagrams illustrating several examples of different shapes for luma candidates according to some implementations of the present disclosure.
[0035] [Figure 11] FIG. 13 is a block diagram of a sample process illustrating that all sequence and adjacent luma / chroma samples may be provided to CCSAO classification according to some implementations of the present disclosure.
[0036] [Figure 12A] FIG. 13 illustrates an exemplary classifier by replacing an array luma sample value with a value obtained by weighting the array and adjacent luma samples, according to some implementation examples of the present disclosure.
[0037] [Figure 12B] FIG. 1 illustrates a subsampled Laplacian calculation according to some implementations of the present disclosure.
[0038] [Figure 13] 13 is a block diagram showing how CCSAO is applied and other in-loop filters have different clipping combinations according to some implementations of the present disclosure.
[0039] [Figure 14A] A block diagram showing that, according to some implementation examples of the present disclosure, CCSAO is not applied to the current chroma (luma) sample if either the array and neighboring luma (chroma) samples used for classification are outside the current picture.
[0040] [Figure 14B] 13 is a block diagram illustrating that, in accordance with some example implementations of the present disclosure, CCSAO is applied to a current luma or chroma sample when either the array and neighboring luma or chroma samples used for classification are outside the current picture.
[0041] [Figure 14C] A block diagram illustrating that, in some implementations of the present disclosure, CCSAO is not applied to a current chroma sample if the corresponding selected array or adjacent luma sample used for classification is outside the virtual space defined by a virtual boundary (VB).
[0042] [Figure 15] 13 illustrates how repetition or mirror padding is applied to luma samples that are outside the virtual boundary, according to some implementations of the present disclosure.
[0043] [Figure 16] FIG. 13 illustrates that, according to some implementations of the present disclosure, an additional luma ray buffer is required when all nine arrays and adjacent luma samples are used for classification.
[0044] [Figure 17] FIG. 13 illustrates that in some implementations of the present disclosure, in an AVS, a nine luma candidate CCSAO intersecting a VB can be increased by two additional luma line buffers.
[0045] [Figure 18A] FIG. 13 illustrates that in VVC, nine luma candidate CCSAOs intersecting a VB may be increased by one additional luma line buffer according to some implementation examples of the present disclosure.
[0046] [Figure 18B] FIG. 13 illustrates that, according to some implementations of the present disclosure, when an array or adjacent chroma samples are used to classify the current luma sample, the selected chroma candidate may cross the VB and require additional chroma line buffers.
[0047] [Figures 19A-19C]A diagram showing that in AVS and VVC, CCSAO is disabled for a chroma sample if any of the luma candidates for the chroma sample crosses the VB (is outside the current chroma sample VB) according to some implementation examples of the present disclosure.
[0048] [Figures 20A-20C] A diagram illustrating that, in some implementation examples of the present disclosure, in AVS and VVC, CCSAO is enabled using repeat padding on chroma samples when any of the luma candidates for a chroma sample crosses the VB (is outside the current chroma sample VB).
[0049] [Figures 21A-21C] A diagram illustrating that, in some implementation examples of the present disclosure, in AVS and VVC, CCSAO is enabled using mirror padding on a chroma sample when any of the luma candidates of the chroma sample crosses the VB (is outside the current chroma sample VB).
[0050] [Fig. 22A-22B] A diagram illustrating that CCSAO is enabled using two-sided symmetric padding for different CCSAO sample shapes according to some implementations of the present disclosure.
[0051] [Figure 23] 1 illustrates a limitation of using a limited number of luma candidates for classification according to some implementations of the present disclosure.
[0052] [Figure 24] A diagram illustrating that in some implementations of the present disclosure, the CCSAO application region is not aligned to the coding tree block (CTB) / coding tree unit (CTU) boundary.
[0053] [Diagram 25]A diagram showing that according to some implementation examples of the present disclosure, the CCSAO application area frame partition can be fixed by CCSAO parameters.
[0054] [Figure 26] A diagram showing that according to some implementation examples of the present disclosure, the CCSAO application area may be a binary tree (BT) / quadtree (QT) / tertile tree (TT) split from the frame / slice / CTB level.
[0055] [Figure 27] A block diagram illustrating multiple classifiers that are used and switched at different levels within a picture frame in accordance with some implementations of the present disclosure.
[0056] [Figure 28] A block diagram showing that CCSAO application area partitions can be dynamic and switched at the picture level according to some implementation examples of the present disclosure.
[0057] [Figure 29] FIG. 13 illustrates that some implementations of the present disclosure allow the CCSAO classifier to take into account current or inter-component coding information.
[0058] [Diagram 30] FIG. 1 is a block diagram illustrating the SAO classification method disclosed in this disclosure acting as a post prediction filter, in accordance with some implementations of the present disclosure.
[0059] [Diagram 31] FIG. 13 is a block diagram illustrating that, according to some implementations of the present disclosure, for a post prediction SAO filter, each component can use the current sample and neighboring samples for classification.
[0060] [Diagram 32]FIG. 2 is a block diagram illustrating the SAO classification method disclosed in this disclosure acting as a post reconstruction filter, according to some implementations of the present disclosure.
[0061] [Diagram 33] 1 is a flow diagram illustrating an example process for decoding a video signal using inter-component correlation according to some implementations of the present disclosure.
[0062] [Diagram 34] FIG. 1 illustrates a computing environment coupled to a user interface in accordance with some implementations of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0063] Reference will now be made in detail to specific implementations, examples of which are illustrated in the accompanying drawings. In the following detailed description, numerous non-limiting specific details are set forth to aid in an understanding of the subject matter presented herein. However, it will be apparent to one of ordinary skill in the art that various alternatives may be used without departing from the scope of the claims, and that the subject matter may be practiced without these specific details. For example, it will be apparent to one of ordinary skill in the art that the subject matter presented herein may be implemented in many types of electronic devices having digital video capabilities.
[0064] It should be noted that the terms "first," "second," and the like, used in this description, the claims of this disclosure, and the accompanying drawings, are used to distinguish between objects and are not used to describe any particular order or sequence. It should be understood that the data used in this manner may be permuted under appropriate conditions, and thus the embodiments of the disclosure described herein may be implemented in orders other than those illustrated in the accompanying drawings or described in this disclosure.
[0065] The first generation of AVS standards includes the Republic of China national standard "Information Technology, Advanced Audio Video Coding, Part 2: Video" (known as AVS1), and "Information Technology, Advanced Audio Video Coding Part 16: Radio Television Video" (known as AVS+), which can provide about 50% bit rate savings with the same perceptual quality compared to the MPEG-2 standard. The second generation of AVS standards includes a series of Republic of China national standards "Information Technology, Efficient Multimedia Coding" (known as AVS2), which mainly targets the transmission of additional HD TV programs. The coding efficiency of AVS2 is twice that of AVS+. Meanwhile, the video part of the AVS2 standard has been submitted by the Institute of Electrical and Electronics Engineers (IEEE) as one international standard for application. The AVS3 standard is a new generation video coding standard for UHD video that aims to surpass the coding efficiency of the latest international standard HEVC, providing approximately 30% bitrate savings over the HEVC standard. In March 2019, at the 68th AVS Conference, the AVS3-P2 baseline was completed, which provides approximately 30% bitrate savings over the HEVC standard. Currently, a reference software called High Performance Model (HPM) is maintained by the AVS group to demonstrate the reference implementation of the AVS3 standard. Like HEVC, the AVS3 standard is built on a block-based hybrid video coding framework.
[0066] FIGURE 1 is a block diagram illustrating an example system 10 for encoding and decoding video blocks in parallel according to some implementations of the present disclosure. As shown in FIGURE 1, system 10 includes a source device 12 that generates and encodes video data to be subsequently decoded by a destination device 14. Source device 12 and destination device 14 may comprise any of a wide variety of electronic devices, including desktop or laptop computers, tablet computers, smartphones, set-top boxes, digital televisions, cameras, display devices, digital media players, video gaming consoles, video streaming devices, and the like. In some implementations, source device 12 and destination device 14 are equipped with wireless communication capabilities.
[0067] In some implementations, the destination device 14 may receive the encoded video data to be decoded via a link 16. The link 16 may comprise any type of communication medium or device capable of moving the encoded video data from the source device 12 to the destination device 14. In one example, the link 16 may comprise a communication medium to enable the source device 12 to transmit the encoded video data directly to the destination device 14 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 14. The communication medium may include any wireless or wired communication medium, such as the 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, e.g., the Internet. The communication medium may include routers, switches, base stations, or any other equipment that may be useful in facilitating communication from the source device 12 to the destination device 14.
[0068] In some other implementations, the encoded video data may be transmitted from the output interface 22 to the storage device 32. The encoded video data in the storage device 32 may then be accessed by the destination device 14 via the input interface 28. The storage device 32 may include any of a variety of distributed or locally accessed data storage media, such as a hard drive, Blu-ray disc, digital versatile disc (DVD), compact disc read only memory (CD-ROM), flash memory, volatile or non-volatile memory, or any other suitable digital storage medium for storing the encoded video data. In a further example, the storage device 32 may correspond to a file server or another intermediate storage device that may hold the encoded video data generated by the source device 12. The destination device 14 may access the stored video data from the storage device 32 via streaming or download. The file server may be any type of computer capable of storing the encoded video data and transmitting the encoded video data to the destination device 14. Exemplary file servers include web servers (e.g., for websites), file transfer protocol (FTP) servers, network attached storage (NAS) devices, or local disk drives. Destination device 14 may access the encoded video data over any standard data connection, including a wireless channel (e.g., a Wireless Fidelity (Wi-Fi) connection), a wired connection (e.g., a Digital Subscriber Line (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 storage device 32 may be a streaming transmission, a download transmission, or a combination of both.
[0069] As shown in FIG. 1, source device 12 includes video source 18, video encoder 20, and output interface 22. Video source 18 may include sources such as a video capture device, e.g., a video camera, a video archive containing previously captured video, a video feed interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as the source video, or a combination of such sources. As an example, if video source 18 is a video camera in a security surveillance system, source device 12 and destination device 14 may form a camera phone or video phone. However, the implementations described herein may be applicable to video coding in general and may be applied to wireless and / or wired applications.
[0070] The captured, pre-captured, or computer-generated video may be encoded by a video encoder 20. The encoded video data may be transmitted directly to destination device 14 via an output interface 22 of source device 12. The encoded video data may also (or alternatively) be stored on a storage device 32 for later access by destination device 14 or other devices for decoding and / or playback. Output interface 22 may further include a modem and / or a transmitter.
[0071] Destination device 14 includes an input interface 28, a video decoder 30, and a display device 34. Input interface 28 may include a receiver and / or a modem and may receive encoded video data over link 16. The encoded video data communicated over link 16 or provided on storage device 32 may include various syntax elements generated by video encoder 20 for use by video decoder 30 in decoding the video data. Such syntax elements may be included within the encoded video data transmitted over a communication medium, stored on a storage medium, or stored on a file server.
[0072] In some implementations, destination device 14 may include a display device 34, which may be an integrated display device or an external display device configured to communicate with destination device 14. Display device 34 displays the decoded video data to a user and may comprise any of a variety of display devices, such as a liquid crystal display (LCD), a plasma display, an organic light emitting diode (OLED) display, or another type of display device.
[0073] Video encoder 20 and video decoder 30 may operate according to a proprietary or industry standard, such as VVC, HEVC, MPEG-4, Part 10, AVC, AVS, or an extension of such a standard. It should be understood that the present application is not limited to a particular video encoding / decoding standard, but may apply to other video encoding / decoding standards. It is generally contemplated that video encoder 20 of source device 12 may be configured to encode video data according to any of these current or future standards. Similarly, it is generally contemplated that video decoder 30 of destination device 14 may be configured to decode video data according to any of these current or future standards.
[0074] Video encoder 20 and video decoder 30 may each be implemented as any of a variety of suitable encoder and / or decoder circuits, such as one or more microprocessors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), discrete logic, software, hardware, firmware, or any combination thereof. When implemented partially in software, the electronic device may store instructions for the software on a suitable non-transitory computer-readable medium and execute those instructions in hardware using one or more processors to perform the video encoding / decoding operations disclosed in this disclosure. Each of video encoder 20 and video decoder 30 may be included in one or more encoders or decoders, any of which may be integrated as part of a combined encoder / decoder (CODEC) in the respective device.
[0075] FIG. 2 is a block diagram illustrating an example video encoder 20 according to some implementations described herein. Video encoder 20 may perform intra- and inter-predictive coding of video blocks within a video frame. Intra-predictive coding relies on spatial prediction to reduce or remove spatial redundancy in video data within a given video frame or picture. Inter-predictive coding relies on temporal prediction to reduce or remove temporal redundancy in video data within adjacent video frames or pictures of a video sequence. It should be noted that the term "frame" may be used as a synonym for the terms "image" or "picture" in the field of video coding.
[0076] As shown in FIG. 2, the video encoder 20 includes a video data memory 40, a prediction processing unit 41, a decoded picture buffer (DPB) 64, an adder 50, a transform processing unit 52, a quantization unit 54, and an entropy coding unit 56. The prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a partition unit 45, an intra prediction processing unit 46, and an intra block copy (BC) unit 48. In some implementations, the video encoder 20 also includes an inverse quantization unit 58 for reconstruction of video blocks, an inverse transform processing unit 60, and an adder 62. An in-loop filter 63, such as a deblocking filter, may be placed between the adder 62 and the DPB 64 to filter block boundaries and remove block rate artifacts from the reconstructed video. In addition to the deblocking filter for filtering the output of the adder 62, another in-loop filter, such as a sample adaptive offset (SAO) filter and / or an adaptive in-loop filter (ALF), may be used. In some examples, the in-loop filter may be omitted, and the decoded video blocks may be provided directly to DPB 64 by summer 62. Video encoder 20 may take the form of a fixed or programmable hardware unit, or may be divided among one or more of the fixed or programmable hardware units shown.
[0077] Video data memory 40 may store video data to be encoded by components of video encoder 20. As shown in FIG. 1, the video data in video data memory 40 may be obtained, for example, from video source 18. DPB 64 is a buffer that stores reference video data (e.g., reference frames or pictures) for use by video encoder 20 (e.g., intra- or inter-predictive coding modes) in encoding the video data. Video data memory 40 and DPB 64 may be formed by any of a variety of memory devices. In various examples, video data memory 40 may be on-chip with other components of video encoder 20 or off-chip with respect to those components.
[0078] As shown in FIG. 2, after receiving the video data, a partition unit 45 in the prediction processing unit 41 partitions the video data into video blocks. This partitioning may also include partitioning the video frame into slices, tiles (e.g., sets of video blocks), or other larger coding units (CUs) according to a predefined partitioning structure, such as a quadtree (QT) structure, associated with the video data. A video frame may be, or may be viewed as, a two-dimensional array or matrix of samples having sample values. The samples in the array may also be referred to as pixels or pels. The number of samples in the horizontal and vertical directions (or axes) of the array or picture defines the size and / or resolution of the video frame. The video frame may be partitioned into multiple video blocks, for example, by using QT partitioning. Again, the video block may be, or may be viewed as, a two-dimensional array or matrix of samples having sample values, but with smaller dimensions than the video frame. The number of samples in the horizontal and vertical directions (or axes) of the video block defines the size of the video block. A video block may be further divided into one or more block partitions or sub-blocks (which may again form blocks), e.g., by iteratively using QT partitioning, binary tree (BT) partitioning, or ternary tree (TT) partitioning, or any combination thereof. Note that, as used herein, the term "block" or "video block" may refer to a portion of a frame or picture, in particular a rectangular (square or non-square) portion. With reference to, e.g., HEVC and VVC, a block or video block may be or correspond to a coding tree unit (CTU), a CU, a prediction unit (PU), or a transform unit (TU), and / or may correspond to a corresponding block, e.g., a coding tree block (CTB), a coding block (CB), a prediction block (PB), or a transform block (TB), and / or may correspond to a sub-block.
[0079] Prediction processing unit 41 may select one of a number of possible predictive coding modes, such as one of a number of intra predictive coding modes or one of a number of inter predictive coding modes, for the current video block based on the error result (e.g., coding rate and distortion level). Prediction processing unit 41 may provide the resulting intra- or inter-predictive coded block to summer 50 to generate a residual block, and to summer 62 to reconstruct the coded block for later use as part of a reference frame. Prediction processing unit 41 also provides syntax elements, such as motion vectors, intra mode indicators, partition information, and other such syntax information, to entropy coding unit 56.
[0080] To select an appropriate intra-prediction coding mode for the current video block, 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 as the current block to be coded to provide spatial prediction. 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 frames to provide temporal prediction. Video encoder 20 may perform multiple coding passes, e.g., to select an appropriate coding mode for each block of video data.
[0081] In some implementations, motion estimation unit 42 determines an inter prediction mode for a current video frame by generating a motion vector indicating a displacement of a video block in a current video frame relative to a predictive block in a reference video frame according to a predetermined pattern in a sequence of video frames. Motion estimation performed by motion estimation unit 42 is the process of generating motion vectors to estimate motion for video blocks. The motion vector may indicate, for example, a displacement of a video block in a current video frame or picture relative to a predictive block in a reference frame relative to a current block being coded in the current frame. The predetermined pattern may specify a video frame in the sequence as a P frame or a B frame. Intra BC unit 48 may determine a vector, e.g., a block vector, for intra BC coding, similar to the determination of a motion vector by motion estimation unit 42 for inter prediction, or may utilize motion estimation unit 42 to determine a block vector.
[0082] A prediction block for a video block may be or correspond to a block or reference block of a reference frame that is deemed to closely match the video block to be coded in terms of pixel difference, which may be determined by sum of absolute differences (SAD), sum of squared differences (SSD), or other difference metric. In some implementations, video encoder 20 may calculate values for sub-integer pixel locations of the reference frames stored in DPB 64. For example, video encoder 20 may interpolate values for quarter pixel locations, eighth pixel locations, or other fractional pixel locations of the reference frames. Thus, motion estimation unit 42 may perform motion searches for full pixel locations and fractional pixel locations and output motion vectors with fractional pixel accuracy.
[0083] Motion estimation unit 42 calculates motion vectors for video blocks in inter-predictive coded frames by comparing the position of the video block to the position of a predictive block of a reference frame selected from a first reference frame list (List0) or a second reference frame list (List1), each of which identifies one or more reference frames stored in DPB 64. Motion estimation unit 42 sends the calculated motion vectors to motion compensation unit 44 and then to entropy encoding unit 56.
[0084] The motion compensation performed by motion compensation unit 44 may involve fetching or generating a predictive block based on the motion vector determined by motion estimation unit 42. Upon receiving the motion vector for the current video block, motion compensation unit 44 may locate the predictive block to which the motion vector points in one of the reference frame lists, retrieve the predictive block from DPB 64, and forward the predictive block to adder 50. Adder 50 then forms a residual video block of pixel difference values by subtracting pixel values of the predictive block provided by motion compensation unit 44 from pixel values of the current video block being coded. The pixel difference values that form the residual video block may include luma or chroma difference components or both. Motion compensation unit 44 may also generate syntax elements associated with the video blocks of the video frames for use by video decoder 30 in decoding the video blocks of the video frames. The syntax elements may include, for example, syntax elements that define the motion vector used to identify the predictive block, any flags indicating a prediction mode, or any other syntax information described herein. It should be noted that motion estimation unit 42 and motion compensation unit 44 may be highly integrated, but are shown separately for conceptual purposes.
[0085] In some implementations, the intra BC unit 48 may generate a vector and fetch a predictive block, similar to that described above in connection with the motion estimation unit 42 and the motion compensation unit 44, except that the predictive block is in the same frame as the current block being coded, and the vector is referred to as a block vector rather than a motion vector. In particular, the intra BC unit 48 may determine an intra prediction mode to use to code the current block. In some implementations, the intra BC unit 48 may code the current block using various intra prediction modes, e.g., during separate coding passes, and test their performance by rate-distortion analysis. The intra BC unit 48 may then select a suitable intra prediction mode from among the various tested intra prediction modes and use and generate an intra mode indicator accordingly. For example, the intra BC unit 48 may calculate a rate-distortion value using a rate-distortion analysis for the various tested intra prediction modes, and select and use the intra prediction mode with the best rate-distortion characteristics from among the tested modes as the suitable intra prediction mode. Rate-distortion analysis generally determines the amount of distortion (or error) between an encoded block and the original uncoded block that was coded to result in the encoded block, as well as the bit rate (i.e., number of bits) used to result in the encoded block. Intra BC unit 48 may calculate ratios from the distortion and rate for various coded blocks to determine which intra prediction mode exhibits the best rate-distortion value for that block.
[0086] In other examples, intra BC unit 48 may perform such functions for intra BC prediction, in whole or in part, using motion estimation unit 42 and motion compensation unit 44, depending on the implementation described herein. In either case, for intra block copying, the predictive block may be a block deemed to closely match the block to be coded in terms of pixel differences, which may be determined by SAD, SSD, or other difference metric, and identification of the predictive block may include calculation of values for sub-integer pixel locations.
[0087] Regardless of whether the predictive block is from the same frame according to intra prediction or from a different frame according to inter prediction, video encoder 20 may form 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 that form the residual video block may include both luma and chroma component differences.
[0088] Intra-prediction processing unit 46 may intra-predict the current video block as an alternative to inter-prediction performed by motion estimation unit 42 and motion compensation unit 44, or intra-block copy prediction performed by intra BC unit 48, as described above. In particular, intra-prediction processing unit 46 may determine an intra-prediction mode to use to encode the current block. In doing so, 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 (or, in some examples, a mode selection unit) may select and use an appropriate intra-prediction mode from the tested intra-prediction modes. Intra-prediction processing unit 46 may provide information indicative of the selected intra-prediction mode for the block to entropy coding unit 56. Entropy coding unit 56 may encode the information indicative of the selected intra-prediction mode in the bitstream.
[0089] After prediction processing unit 41 determines a prediction block for a current video block, via inter- or intra-prediction, adder 50 forms a residual video block by subtracting the prediction block from the current video block. The residual video data in the residual block, which may be included in one or more TUs, is provided 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.
[0090] 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 also reduce the bit depth associated with some or all of the coefficients. The degree of quantization may be modified 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.
[0091] Following quantization, entropy encoding unit 56 entropy encodes the quantized transform coefficients into a video bitstream, e.g., using context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or another entropy encoding method or technique. The encoded bitstream may then be transmitted to video decoder 30, or may be stored in storage device 32, as shown in FIG. 1, for later transmission to or retrieval by video decoder 30. Entropy encoding unit 56 may also entropy encode motion vectors and other syntax elements for the current video frame being coded.
[0092] Inverse quantization unit 58 and inverse transform processing unit 60 apply inverse quantization and inverse transform, respectively, to reconstruct the residual video block in the pixel domain and to generate reference blocks for prediction of other video blocks. As described above, motion compensation unit 44 may generate a motion compensated prediction block from one or more reference blocks of a frame stored in DPB 64. Motion compensation unit 44 may also apply one or more interpolation filters to the prediction block to calculate sub-integer pixel values for use in motion estimation.
[0093] Summer 62 adds the reconstructed residual block to the motion compensated prediction block provided by motion compensation unit 44 to provide a reference block for storage in DPB 64. The reference block may then be used by intra BC unit 48, motion estimation unit 42, and motion compensation unit 44 as a prediction block for inter predicting another video block in a subsequent video frame.
[0094] 3 is a block diagram illustrating an example video decoder 30 according to some implementations of the present application. The video decoder 30 includes a video data memory 79, an entropy decoding unit 80, a prediction processing unit 81, an inverse quantization unit 86, an inverse transform processing unit 88, an adder 90, and a DPB 92. The prediction processing unit 81 further includes a motion compensation unit 82, an intra prediction unit 84, and an intra BC unit 85. The video decoder 30 may perform a decoding process, which is generally reverse to the encoding process described above with respect to the video encoder 20 in connection with FIG. 2. For example, the motion compensation unit 82 may generate prediction data based on a motion vector received from the entropy decoding unit 80, and the intra prediction unit 84 may generate prediction data based on an intra prediction mode indicator received from the entropy decoding unit 80.
[0095] In some examples, the units of the video decoder 30 may be tasked with performing implementations of the present application. Also, in some examples, implementations of the present disclosure may be divided among one or more of the units of the video decoder 30. For example, the intra BC unit 85 may perform implementations of the present application alone or in combination with other units of the video decoder 30, such as the motion compensation unit 82, the intra prediction unit 84, and the entropy decoding unit 80. In some examples, the video decoder 30 may not include the intra BC unit 85, and the functions of the intra BC unit 85 may be performed by other components of the prediction processing unit 81, such as the motion compensation unit 82.
[0096] The video data memory 79 may store video data, such as an encoded video bitstream, to be decoded by other components of the video decoder 30. The video data stored in the video data memory 79 may be obtained, for example, from the storage device 32, from a local video source, such as a camera, via wired or wireless network communication of the video data, or by accessing a physical data storage medium (e.g., a flash drive or hard disk). The video data memory 79 may include a coded picture buffer (CPB) that stores encoded video data from the encoded video bitstream. The DPB 92 of the video decoder 30 stores reference video data for use in decoding the video data by the video decoder 30 (e.g., in intra- or inter-predictive coding modes). The video data memory 79 and the DPB 92 may be formed by any of a variety of memory devices, such as dynamic random access memory (DRAM), including synchronous DRAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For purposes of illustration, video data memory 79 and DPB 92 are depicted in FIGURE 3 as two separate components of video decoder 30. However, it will be apparent to one skilled in the art that video data memory 79 and DPB 92 may be provided by the same memory device or by separate memory devices. In some examples, video data memory 79 may be on-chip with other components of video decoder 30 or off-chip with respect to those components.
[0097] During the decoding process, video decoder 30 receives an encoded video bitstream representing video blocks and associated syntax elements of an encoded video frame. Video decoder 30 may receive the syntax elements at the video frame level and / or the video block level. Entropy decoding unit 80 of video decoder 30 entropy decodes the bitstream to generate quantized coefficients, motion vectors, or intra-prediction mode indicators, and other syntax elements. Entropy decoding unit 80 then forwards the motion vectors or intra-prediction mode indicators and other syntax elements to prediction processing unit 81.
[0098] When a video frame is coded as an intra-predictive coded (I) frame, or coded for intra-coded predictive blocks in other types of frames, intra prediction unit 84 of prediction processing unit 81 may generate predictive data for video blocks of the current video frame based on the signaled intra-prediction mode and reference data from previously decoded blocks of the current frame.
[0099] When a video frame is coded as an inter-predictive coded (i.e., B or P) frame, motion compensation unit 82 of prediction processing unit 81 produces one or more prediction blocks for video blocks of the current video frame based on the motion vectors and other syntax elements received from entropy decoding unit 80. Each of the prediction blocks may be produced from one reference frame of the reference frame lists. Video decoder 30 may construct reference frame lists List0 and List1 using a default construction technique based on the reference frames stored in DPB 92.
[0100] In some examples, when a video block is coded according to an intra BC mode described herein, intra BC unit 85 of prediction processing unit 81 produces a prediction block for the current video block based on the block vectors and other syntax elements received from entropy decoding unit 80. The prediction block may be located within the same reconstructed region of the picture as the current video block as defined by video encoder 20.
[0101] Motion compensation unit 82 and / or intra BC unit 85 determine prediction information for video blocks of the current video frame by analyzing the motion vectors and other syntax elements, and then use the prediction information to result in a predictive block for the current video block being decoded. For example, motion compensation unit 82 uses some of the received syntax elements to determine a prediction mode (e.g., intra or inter prediction) used to code video blocks of the video frame, an inter prediction frame type (e.g., B or P), construction information for one or more of the reference frame lists for the frame, a motion vector for each inter predictive coded video block of the frame, an inter prediction state for each inter predictive coded video block of the frame, and other information for decoding video blocks in the current video frame.
[0102] Similarly, intra BC unit 85 may use some of the received syntax elements, such as flags, to determine that the current video block was predicted using intra BC mode, construction information for the video blocks of the frame that are located within the reconstructed region and that should be stored in DPB 92, block vectors for each intra BC predicted video block of the frame, intra BC prediction states for each intra BC predicted video block of the frame, and other information for decoding video blocks in the current video frame.
[0103] Motion compensation unit 82 may also perform the interpolation using interpolation filters used by video encoder 20 during encoding of the video block to calculate interpolated values for sub-integer pixels of the reference block. In this case, motion compensation unit 82 may determine the interpolation filters used by video encoder 20 from the received syntax elements and may use those interpolation filters to result in a predictive block.
[0104] Inverse quantization unit 86 inverse quantizes the quantized transform coefficients entropy decoded by entropy decoding unit 80 provided in the bitstream, using the same quantization parameters calculated by video encoder 20 for each video block in a video frame to determine the degree of quantization. Inverse transform processing unit 88 applies an inverse transform, e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, to the transform coefficients to reconstruct the residual block in the pixel domain.
[0105] After motion compensation unit 82 or intra BC unit 85 generates a predictive block for the current video block based on the vectors and other syntax elements, summer 90 reconstructs a decoded video block for the current video block by summing a residual block from inverse transform processing unit 88 and a corresponding predictive block generated by motion compensation unit 82 and intra BC unit 85. To further process the decoded video block, an in-loop filter 91, such as a deblocking filter, an SAO filter, and / or an ALF, may be placed between summer 90 and DPB 92. The in-loop filter 91 may be applied on the reconstructed CU before being put into the reference picture store. In some examples, the in-loop filter 91 may be omitted and the decoded video block may be provided directly to DPB 92 by summer 90. The decoded video blocks in a given frame are then stored in DPB 92, which stores reference frames used for motion compensation after the next video block. DPB 92, or a memory device separate from DPB 92, may also store the decoded video for later presentation on a display device, such as display device 34 of FIG.
[0106] In a typical video coding process, a video sequence typically contains an ordered set of frames or pictures. Each frame may contain 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. SCr is a two-dimensional array of Cr chroma samples. In other cases, a frame may be monochromatic and therefore contain only one two-dimensional array of luma samples.
[0107] Similar to HEVC, the AVS3 standard is built on a block-based hybrid video coding framework. The input video signal is processed by blocks (called coding units (CUs)). Unlike HEVC, which divides blocks based only on quadtrees, in AVS3, one coding tree unit (CTU) is divided into CUs based on quadtrees / binary trees / extended quadtrees to adapt to varying local characteristics. In addition, the concept of multiple partition unit types in HEVC is removed, i.e., there is no separation of CUs, prediction units (PUs), and transform units (TUs) in AVS3. Instead, each CU is always used as a basic unit for both prediction and transformation without further partitioning. In the tree partition structure of AVS3, first, one CTU is partitioned based on a quadtree structure. Then, each quadtree leaf node can be further partitioned based on binary tree and extended quadtree structures.
[0108] As shown in FIG. 4A, video encoder 20 (or, more specifically, partition unit 45) generates a coded representation of a frame by first dividing the frame into a set of CTUs. A video frame may contain an integer number of CTUs ordered consecutively from left to right and top to bottom in raster scan order. Each CTU is the largest logical coding unit, and the width and height of the CTU are signaled by video encoder 20 in a sequence parameter set, and all CTUs in a video sequence have the same size, one of 128×128, 64×64, 32×32, and 16×16. However, it should be noted that the present application is not necessarily limited to a particular size. As shown in FIG. 4B, each CTU may comprise one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of these coding tree blocks. The syntax elements describe the properties of different types of units of coding blocks of pixels and how a video sequence may be reconstructed at video decoder 30, including inter or intra prediction, intra prediction modes, motion vectors, and other parameters. For a monochrome picture or a picture with three separate color planes, a CTU may comprise a single coding tree block and the syntax elements used to code samples for this coding tree block. A coding tree block may be an N×N block of samples.
[0109] To achieve better performance, video encoder 20 may recursively perform tree partitioning, such as binary tree partitioning, ternary tree partitioning, quad tree partitioning, or a combination thereof, on the coding tree blocks of the CTU to partition the CTU into smaller CUs. As depicted in FIG. 4C, 64×64 CTU 400 is first partitioned into four smaller CUs, each with a block size of 32×32. Among the four smaller CUs, CU 410 and CU 420 are each partitioned into four CUs with a block size of 16×16. The two 16×16 CUs 430 and 440 are each further partitioned into four CUs with a block size of 8×8. FIG. 4D illustrates a quad tree data structure illustrating the end result of the partitioning process of CTU 400 depicted in FIG. 4C, where each leaf node of the quad tree corresponds to one CU with a respective size ranging from 32×32 to 8×8. Similar to the CTU depicted in FIG. 4B, each CU may comprise a CB of luma samples and two corresponding coding blocks of chroma samples for the same size frame, and syntax elements used to code the samples of these coding blocks. In a monochromatic picture, or a picture with three separate color planes, a CU may comprise a single coding block and syntax structures used to code the samples of this coding block. It should be noted that the quadtree partition depicted in FIG. 4C and FIG. 4D is for illustrative purposes only, and one CTU may be partitioned into multiple CUs to accommodate varying local characteristics based on quadtree / ternary / binary tree partitions. In multiple types of tree structures, one CTU is partitioned by a quadtree structure, and each quadtree leaf CU may be further partitioned by binary and ternary tree structures. As shown in FIG. 4E, a coding block has a width W and a height H, and there are five possible partition types, namely, 4-partition, horizontal 2-partition, vertical 2-partition, horizontal 3-partition, and vertical 3-partition. In AVS3, there are five possible partition types: 4-partition, horizontal 2-partition, vertical 2-partition, horizontal extended quadtree partition (not shown in Figure 4E), and vertical extended quadtree partition (not shown in Figure 4E).
[0110] In some implementations, video encoder 20 may further divide a coding block of a CU into one or more M×N PBs. A PB is a rectangular (square or non-square) block of samples to which the same inter or intra prediction is applied. A PU of a CU may comprise a PB of luma samples and two corresponding PBs of chroma samples and syntax elements used to predict these PBs. In a monochromatic picture, or a picture with three separate color planes, a PU may comprise a single PB and syntax structures used to predict this PB. Video encoder 20 may generate predicted luma, Cb, and Cr blocks for the luma, Cb, and CrPBs of each PU of a CU.
[0111] Video encoder 20 may generate the predictive blocks for a PU using intra prediction or inter prediction. If video encoder 20 uses intra prediction to generate the predictive blocks for a PU, video encoder 20 may generate the predictive blocks for the PU based on decoded samples of a frame associated with the PU. If video encoder 20 uses inter prediction to generate the predictive blocks for a PU, video encoder 20 may generate the predictive blocks for the PU based on decoded samples of one or more frames other than the frame associated with the PU.
[0112] After video encoder 20 generates the predictive luma, Cb, and Cr blocks for one or more PUs of a CU, video encoder 20 may generate a luma residual block for the CU by subtracting the predictive luma block of the CU from its original luma coded block, where each sample in the luma residual block of the CU indicates a difference between a luma sample in one of the predictive luma blocks of the CU and a corresponding sample in the original luma coded block of the CU. Similarly, video encoder 20 may generate a Cb residual block and a Cr residual block for the CU, where each sample in the Cb residual block of the CU indicates a difference between a Cb sample in one of the predictive Cb blocks of the CU and a corresponding sample in the original Cb coded block of the CU, and each sample in the Cr residual block of the CU indicates a difference between a Cr sample in one of the predictive Cr blocks of the CU and a corresponding sample in the original Cr coded block of the CU.
[0113] Further, as shown in FIG. 4C, video encoder 20 may use quadtree partitioning to decompose the luma, Cb, and Cr residual blocks of a CU into one or more luma, Cb, and Cr transform blocks, respectively. A transform block is a rectangular (square or non-square) block of samples to which the same transform is applied. A TU of a CU may comprise a transform block of luma samples and two corresponding transform blocks of chroma samples, and syntax elements used to transform the transform block samples. Thus, each TU of a CU may be associated with a luma transform block, a Cb transform block, and a Cr transform block. In some examples, the luma transform block associated with a TU may be a sub-block of the luma residual block of the CU. The Cb transform block may be a sub-block of the Cb residual block of the CU. The Cr transform block may be a sub-block of the Cr residual block of the CU. In a monochromatic picture, or a picture with three separate color planes, a TU may comprise a single transform block and syntax structures used to transform the samples of the transform block.
[0114] Video encoder 20 may apply one or more transforms to a luma transform block of a TU to generate a luma coefficient block for the TU. The coefficient block may be a two-dimensional array of transform coefficients. The transform coefficients may be scalar quantities. Video encoder 20 may apply one or more transforms to a Cb transform block of the TU to generate a Cb coefficient block for the TU. Video encoder 20 may apply one or more transforms to a Cr transform block of the TU to generate a Cr coefficient block for the TU.
[0115] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), the video encoder 20 may quantize the coefficient block. Quantization generally refers to a process in which transform coefficients are quantized to reduce the amount of data used to represent the transform coefficients, possibly providing further compression. After the video encoder 20 quantizes the coefficient block, the video encoder 20 may entropy encode syntax elements indicating the quantized transform coefficients. For example, the video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Finally, the video encoder 20 may output a bitstream including a sequence of bits and associated data forming a representation of the coded frame, which may be stored in the storage device 32 or transmitted to the destination device 14.
[0116] After receiving the bitstream generated by video encoder 20, video decoder 30 may parse the bitstream to obtain syntax elements from the bitstream. Video decoder 30 may reconstruct a frame of video data based at least in part on the syntax elements obtained from the bitstream. The process of reconstructing the video data is generally reverse to the encoding process performed by video encoder 20. For example, video decoder 30 may perform an inverse transform on coefficient blocks associated with the TUs of the current CU to reconstruct residual blocks associated with the TUs of the current CU. Video decoder 30 also reconstructs the coded blocks of the current CU by adding samples of the predictive blocks for the PUs of the current CU to corresponding samples of the transformed blocks of the TUs of the current CU. After reconstructing the coded blocks for each CU of the frame, video decoder 30 may reconstruct the frame.
[0117] As mentioned above, video coding achieves video compression using mainly two modes: intra-frame prediction (or intra prediction) and inter-frame prediction (or inter prediction). Note that IBC can be considered as intra-frame prediction or a third mode. Between the two modes, inter-frame prediction contributes more to coding efficiency than intra-frame prediction because it uses motion vectors to predict the current video block from a reference video block.
[0118] However, with the increasing evolution of video data capture techniques and further improvements in video block sizes to preserve details in the video data, the amount of data required to represent the motion vectors for the current frame also increases substantially. One way to overcome this challenge is to exploit that a group of neighboring CUs in both spatial and temporal domains not only have similar video data for prediction purposes, but also the motion vectors between these neighboring CUs are similar. Thus, by exploring the spatial and temporal correlations, also called the "motion vector predictor (MVP)" of the current CU, it is possible to use the motion information of spatially neighboring CUs and / or temporally aligned CUs as an approximation of the motion information (e.g., motion vector) of the current CU.
[0119] Instead of encoding into the video bitstream the actual motion vector of the current CU determined by motion estimation unit 42 as described above in connection with Figure 2, a motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to obtain a Motion Vector Difference (MVD) for the current CU. By doing so, the motion vector determined by motion estimation unit 42 for each CU of a frame does not need to be encoded into the video bitstream, and the amount of data used to represent motion information in the video bitstream may be significantly reduced.
[0120] Similar to the process of choosing a prediction block in a reference frame during inter-frame prediction of a code block, a set of rules needs to be adopted by both the video encoder 20 and the video decoder 30 to build a motion vector candidate list (also known as a "merge list") for the current CU using those potential motion vector candidates associated with the spatially neighboring CUs and / or temporally aligned CUs of the current CU, and then select one member from the motion vector candidate list as a motion vector predictor for the current CU. By doing so, the motion vector candidate list itself does not need to be transmitted from the video encoder 20 to the video decoder 30, and the index of the selected motion vector predictor in the motion vector candidate list is sufficient for the video encoder 20 and the video decoder 30 to use the same motion vector predictor in the motion vector candidate list to encode and decode the current CU.
[0121] In general, the basic intra prediction scheme applied in VVC remains almost the same as that of HEVC, except that several prediction tools have been further extended, added, and / or improved, e.g., enhanced intra prediction with wide-angle intra mode, Multiple Baseline (MRL) intra prediction, Complex Position-Dependent Intra Prediction (PDPC), Intra Subdivision (ISP) prediction, Component-to-Component Linear Model (CCLM) prediction, and Matrix weighted Intra Prediction (MIP).
[0122] Similar to HEVC, VVC uses a set of reference samples adjacent to the current CU (i.e., above the current CU or to the left of the current CU) to predict the samples of the current CU. However, to capture finer edge orientations present in raw video (especially in high-resolution, e.g., 4K video content), the number of angular intra modes is extended from 33 in HEVC to 93 in VVC. Figure 4F is a block diagram showing the intra modes defined in VVC. As shown in Figure 4F, among the 93 angular intra modes, modes 2 to 66 are traditional angular intra modes, while modes -1 to -14 and modes 67 to 80 are wide-angle intra modes. In addition to the angular intra modes, the planar mode (mode 0 in Figure 1) and direct current (DC) mode (mode 1 in Figure 1) of HEVC are also applied in VVC.
[0123] As shown in FIG. 4E, in addition to square video blocks, there are also rectangular video blocks for intra prediction in VVC because a quadtree / binary / ternary tree partitioning structure is applied in VVC. Because the width and height of one given video block are not equal, various sets of angular intra modes may be selected from the 93 angular intra modes for different block shapes. More specifically, for both square and rectangular video blocks, in addition to the planar and DC modes, 65 angular intra modes out of the 93 angular intra modes are also supported for each block shape. When a rectangular block of video blocks meets a certain condition, an index of a wide-angle intra mode of the video block may be adaptively determined by video decoder 30 according to an index of a conventional angular intra mode received from video encoder 20 using the mapping relationship shown in Table 1 below. That is, for non-square blocks, the wide-angle intra modes are signaled by the video encoder 20 using the index of the conventional angular intra modes, and are then analyzed and mapped to the index of the wide-angle intra modes by the video decoder 30, thus ensuring that the total number (i.e., 67) of intra modes (i.e., planar mode, DC mode, and 65 angular intra modes out of 93 angular intra modes) does not change, and the intra-prediction mode coding method does not change either. As a result, good signaling efficiency of the intra-prediction modes is achieved while providing a consistent design across different block sizes.
[0124] Table 1-0 shows the mapping relationship between the indexes of conventional angle intra modes and the indexes of wide angle intra modes for intra prediction of different block shapes in VCC, where W represents the width of the video block and H represents the height of the video block. [Table 1]
[0125] Similar to intra prediction in HEVC, all intra modes in VVC (i.e., planar, DC, and angular intra modes) utilize a set of reference samples above and to the left of the current video block for intra prediction. However, unlike HEVC, where only the closest row / column of reference samples (i.e., the 0th line 201 in FIG. 4G) is used, MRL intra prediction is introduced in VVC, where in addition to the closest row / column of reference samples, two additional rows / columns of reference samples (i.e., the first line 203 and the third line 205 in FIG. 4G) may also be used for intra prediction. The index of the selected row / column of reference samples is signaled and sent from video encoder 20 to video decoder 30. When a non-closest row / column of reference samples (i.e., the first line 203 or the third line 205 in FIG. 4G) is selected, the planar modes are excluded from the set of intra modes that may be used to predict the current video block. To prevent the use of extended reference samples outside the current CTU, MRL intra prediction is disabled for the first row / column of video blocks in the current CTU.
[0126] Sample Adaptive Offset (SAO) is a process that modifies decoded samples after application of the deblocking filter by conditionally adding an offset value to each sample based on the values of a look-up table transmitted by the encoder. SAO filtering is performed on a per-region basis based on the filtering type selected per CTB by the syntax element sao-type-idx. A value of 0 for sao-type-idx indicates that no SAO filter is applied to the CTB, while values 1 and 2 signal the use of band-offset and edge-offset filtering types, respectively. In band-offset mode, specified by sao-type-idx equal to 1, the offset value selected depends directly on the sample amplitude. In this mode, the complete sample amplitude range is uniformly divided into segments called 32 bands, and sample values belonging to four of these bands (that are consecutive within the 32 bands) are modified by adding a transmitted value, denoted as band-offset, which can be positive or negative. The main reason for using four consecutive bands is that in smooth areas where banding artifacts may appear, the sample amplitudes in the CTB tend to be concentrated in only a few of these bands. In addition, the design choice of using four offsets unifies with the edge-offset operation mode, which also uses four offset values. In the edge-offset mode specified by sao-type-idx equal to 2, the syntax element sao-eo-class with a value between 0 and 3 signals whether horizontal, vertical, or one of the two diagonal gradient directions is used for edge-offset classification in the CTB.
[0127] FIG. 5A is a block diagram illustrating four gradient patterns used in SAO according to some implementations of the present disclosure. The four gradient patterns 502, 504, 506, and 508 are for each sao-eo-class in edge-offset mode. The sample labeled "p" indicates the center sample to be considered. The two samples labeled "n0" and "n1" specify two adjacent samples along the following gradient patterns: (a) horizontal (sao-eo-class=0), (b) vertical (sao-eo-class=1), (c) diagonal 135° (sao-eo-class=2), and (d) 45° (sao-eo-class=3). Each sample in the CTB is classified into one of five EdgeIdx categories by comparing the sample value p located at a certain position with the values n0 and n1 of two samples located at adjacent positions, as shown in FIG. 5A. This classification is done for each sample based on the decoded sample value, therefore no additional signaling for EdgeIdx classification is required. For EdgeIdx categories 1-4, an offset value from the transmitted lookup table is added to the sample value depending on the EdgeIdx category at the sample position. The offset value is always positive for categories 1 and 2 and negative for categories 3 and 4. Thus the filter generally has a smoothing effect in edge offset mode. Table 1-1 below shows sample EdgeIdx categories in SAO edge classes. [Table 2]
[0128] For SAO types 1 and 2, a total of four amplitude offset values are transmitted to the decoder for each CTB. For type 1, the sign is also coded. The offset values and associated syntax elements such as sao-type-idx and sao-eo-class are determined by the encoder, typically using a criterion that optimizes rate-distortion performance. SAO parameters can be indicated as inherited from the left or top CTB using a merge flag, for efficient signaling. In summary, SAO is a nonlinear filtering operation that allows additional refinement of the reconstructed signal, enhancing the signal representation, both in smooth areas and around edges.
[0129] In some embodiments, a sample adaptive offset pre (SAO pre) is implemented. The low complexity pre-SAO coding performance is promising in future video coding standards developments. In some examples, the SAO pre is applied only to luma component samples using luma samples for classification. The SAO pre operates by applying two SAO-like filtering operations, called SAOV and SAOH, and is applied jointly with a deblocking filter (DBF) before applying the existing (legacy) SAO. The first SAO-like filter, SAOV, operates to apply SAO to the input picture Y2 after the deblocking filter for vertical edges (DBFV) has been applied. Y3(i)=Clip1(Y2(i)+d1·(f(i)>T?1:0)-d2·(f(i)<-T?1:0))
[0130] where T is a predetermined positive constant, and d1 and d2 are f(i) = Y1(i) - Y2(i) where Y1(i) is the offset coefficient associated with the two classes based on the sample-wise difference between Y1(i) and Y2(i) given by
[0131] The first class for d1 is given for all sample locations i such that f(i)>T, and the second class for d2 is given by f(i)<-T. The offset coefficients d1 and d2 are calculated in the encoder, similar to the existing SAO process, such that the mean squared error between the output picture Y3 of SAOV and the original picture X is minimized. After SAOV is applied, a second SAO-like filter SAOH operates to apply SAO to Y4 after SAOV is applied, by classification based on the sample-wise difference between Y3(i) and Y4(i), which is the output picture of the deblocking filter for horizontal edges (DBFH). The same procedure as for SAOV is also applied to SAOH, where Y3(i)-Y4(i) is used for its classification instead of Y1(i)-Y2(i). Two offset coefficients, a predefined threshold T, and an enable flag for each of SAOH and SAOV are signaled at the slice level. SAOH and SAOV are applied independently to the luma and the two chroma components.
[0132] In some cases, both SAOV and SAOH operate only on picture samples that have been affected by the respective deblocking (DBFV or DBFH). Thus, unlike existing SAO processes, only a fraction of all samples in a given spatial region (picture, or CTU in case of legacy SAO) are processed by pre-SAO, resulting in a low increase in average decoder-side work per picture sample (2 or 3 comparisons and 2 additions per sample in the worst case scenario with preliminary estimates). Pre-SAO only requires samples used by the deblocking filter and does not store any additional samples at the decoder.
[0133] In some embodiments, a Bi-Directional Filter (BIF) is implemented for compression efficiency exploration beyond VVC. The BIF is implemented with a Sample Adaptive Offset (SAO) loop filter stage. Both the Bi-Directional Filter (BIF) and the SAO use samples from the deblocking as input. Each filter creates a per-sample offset, which is added to the input samples and then clipped before proceeding to the ALF.
[0134] For details, see the output sample I OUT teeth, I OUT =clip3(I C +ΔI BIF +ΔI SAO ) where I C is the input sample from deblocking, and ΔI BIF is the offset from the two-way filter, and ΔI SAO is the offset from SAO.
[0135] In some embodiments, the implementation provides the possibility for the encoder to enable or disable filtering at the CTU and slice level. The encoder makes the decision by evaluating the rate-distortion optimization (RDO) cost.
[0136] The following syntax elements are introduced in the PPS: [Table 3]
[0137] pps_bilateral_filter_enabled_flag equal to 0 specifies that the bilateral loop filter is disabled for slices that reference the PPS. pps_bilateral_filter_flag equal to 1 specifies that the bilateral loop filter is enabled for slices that reference the PPS.
[0138] bilateral_filter_strength specifies the bilateral loop filter strength value used in the bilateral transform block filter process. The value of bilateral_filter_strength shall be in the range of 0 to 2, inclusive.
[0139] bilateral_filter_qp_offset specifies the offset used in the derivation of the bilateral filter lookup table LUT(x) for the slice referencing the PPS. bilateral_filter_qp_offset shall be in the range of -12 to +12, inclusive.
[0140] The following syntax elements are introduced: [Table 4] [Table 5]
[0141] The meaning is as follows: slice_bilateral_filter_all_ctb_enabled_flag equal to 1 specifies that the bilateral filter is enabled and applies to all CTBs in the current slice. When slice_bilateral_filter_all_ctb_enabled_flag is not present, it is inferred to be equal to 0.
[0142] slice_bilateral_filter_enabled_flag equal to 1 specifies that the bilateral filter is enabled and may be applied to the CTB of the current slice. When slice_bilateral_filter_enabled_flag is not present, it is inferred to be equal to slice_bilateral_filter_all_ctb_enabled_flag.
[0143] bilateral_filter_ctb_flag[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 1 specifies that a bilateral filter is applied to the luma coding tree block of the coding tree unit at luma location (xCtb,yCtb). bilateral_filter_ctb_flag[cIdx][xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 0 specifies that a bilateral filter is not applied to the luma coding tree block of the coding tree unit at luma location (xCtb,yCtb). When bilateral_filter_ctb_flag is not present, it is inferred to be equal to (slice_bilateral_filter_all_ctb_enabled_flag&slice_bilateral_filter_enabled_flag).
[0144] In some examples, for a filtered CTU, the filtering process proceeds as follows: At picture boundaries where samples are not available, the two-directional filter uses dilation (sample repetition) to fill in the unavailable samples. For virtual boundaries, the behavior is the same as for SAO, i.e., no filtering is performed. When crossing a horizontal CTU boundary, the two-directional filter can access the same samples that the SAO has access to. Figure 5B is a block diagram illustrating the naming convention for samples surrounding a central sample according to some implementation examples of the present disclosure. As an example, the central sample I C If is located at the top line of the CTU, I NW , I A , and I NE is read from the CTU above, just like SAO, but I AA is padded, so no extra line buffer is needed. CThe samples surrounding I are shown in FIG. 5B, where A, B, L, and R represent up, down, left, and right, and NW, NE, SW, SE represent northwest, etc. Similarly, AA represents up-up, BB represents down-down, etc. This diamond shape is AA , I BB , I LL , or I RR Unlike the alternative method which uses a square filter, which does not use
[0145] Each peripheral sample I A , I R etc. are the corresponding modifier values
number
number
[0146] Then, the modifier value is
number
[0147] These values can be stored using 6 bits per entry, resulting in 26*16*6 / 8=312 bytes or 300 bytes if you exclude the first row which is all 0's.
number
number
number
number
[0148] The modifier values are added together.
number
[0149] In some instances,
number
number
number
number
number
number
number
number
number
number
[0150] Finally, the two-way filter offset ΔI BIF is calculated. For full strength filtering, the following is used: ΔI BIF =(c v +16)>>5 For half strength filtering, the following is used: ΔI BIF =(c v +32)>>6
[0151] The general formula for n bits of data is: r add =2 14-n-bilateral_filter_strength rshift =15-n-bilateal_filter_strength ΔI BIF =(c v +r add )>>r shift where bilateral_filter_strength can be 0 or 1, signaled in pps.
[0152] In some embodiments, methods and systems are disclosed herein for improving coding efficiency or reducing the complexity of Sample Adaptive Offset (SAO) by introducing inter-component information. SAO is used in the HEVC, VVC, AVS2, and AVS3 standards. In the following description, the existing SAO design in the HEVC, VVC, AVS2, and AVS3 standards is used as a basic SAO method for those skilled in the art of video coding, but the inter-component method described in this disclosure may also be applied to other loop filter designs or other coding tools with similar design spirit. For example, in the AVS3 standard, SAO is replaced by a coding tool called Enhanced Sample Adaptive Offset (ESAO). However, the CCSAO disclosed herein may be applied in parallel to the ESAO. In another example, the CCSAO may be applied in parallel to the Constrained Directional Enhancement Filter (CDEF) in the AV1 standard.
[0153] For existing SAO designs in the HEVC, VVC, AVS2, and AVS3 standards, the luma Y, chroma Cb, and chroma Cr sample offset values are determined independently; that is, for example, the current chroma sample offset is determined only by the current chroma sample value and the adjacent chroma sample values, without considering the alignment or adjacent luma samples. However, the luma samples maintain more original picture detail information than the chroma samples and can benefit from the current chroma sample offset determination. Furthermore, since the chroma samples usually lose high-frequency details after RGB-to-YCbCr color conversion or after quantization and deblocking filters, introducing luma samples with high-frequency details maintained for the chroma offset determination can benefit from the reconstruction of the chroma samples. Therefore, further gains can be expected by exploring the inter-component correlations, for example, by using the Cross-Component Sample Adaptive Offset (CCSAO) method and system. In some embodiments, this correlation not only includes inter-component sample values, but also picture / coding information such as prediction / residual coding mode, transform type, and quantization / deblocking / SAO / ALF parameters from the inter-component sample values.
[0154] Another example is that in the case of SAO, the luma sample offset is determined by the luma sample only. But for example, luma samples with the same band offset (BO) classification may be further classified by their alignment and neighboring chroma samples, thereby obtaining a more effective classification. The SAO classification may be obtained as a shortcut to compensate for sample differences between the original picture and the reconstructed picture. Therefore, an effective classification is desired.
[0155] FIG. 6A is a block diagram illustrating a CCSAO system and process applied by some implementations of the present disclosure on chroma samples and using DBF Y as an input. The luma sample after the luma deblocking filter (DBF Y) is used to determine additional offsets for chroma Cb and Cr after SAO Cb and SAO Cr. For example, a current chroma sample 602 is first classified using an array luma sample 604 and an adjacent (white) luma sample 606, and the corresponding CCSAO offset value of the corresponding class is added to the current chroma sample value. FIG. 6B is a block diagram illustrating a CCSAO system and process applied by some implementations of the present disclosure on luma samples and chroma samples and using DBF Y / Cb / Cr as an input. FIG. 6C is a block diagram illustrating a CCSAO system and process that can function independently by some implementations of the present disclosure. FIG. 6D is a block diagram illustrating a CCSAO system and process that may be applied recursively (2 or N times) with the same or different offsets at the same codec stage or repeated at different stages according to some implementations of the present disclosure. In summary, in some embodiments, the current luma sample and neighboring luma sample information, the alignment and neighboring chroma sample (Cb and Cr) information may be used to classify the current luma sample. In some embodiments, the alignment and neighboring luma sample, the alignment and neighboring cross chroma sample, and the current chroma sample and neighboring chroma sample may be used to classify the current chroma sample (Cb or Cr). In some embodiments, the CCSAO may be cascaded (1) after DBF Y / Cb / Cr, (2) after the pre-DBF reconstructed image Y / Cb / Cr, or (3) after SAO Y / Cb / Cr, or (4) after ALF Y / Cb / Cr.
[0156] In some embodiments, the CCSAO may also be applied in parallel to other coding tools, such as the ESAO in the AVS standard, or the CDEF in the AV1 standard, or the Neural Network Loop Filter (NNLF). Figure 6E is a block diagram illustrating a CCSAO system and process applied in parallel to the ESAO in the AVS standard by some implementations of the present disclosure.
[0157] FIG. 6F is a block diagram illustrating a CCSAO system and process applied after the SAO according to some implementations of the present disclosure. In some embodiments, FIG. 6F illustrates that the location of the CCSAO may be after the SAO, i.e., the location of the Inter-Component Adaptive Loop Filter (CCALF) in the VVC standard. FIG. 6G is a block diagram illustrating that the CCSAO system and process may function independently without the CCALF according to some implementations of the present disclosure. In some embodiments, the SAO Y / Cb / Cr may be replaced with ESAO, for example in the AVS3 standard.
[0158] FIG. 6H is a block diagram illustrating a CCSAO system and process applied in parallel to CCALF by some implementations of the present disclosure. In some embodiments, CCSAO may be applied in parallel to CCALF. In some embodiments, the locations of CCALF and CCSAO may be switched as shown in FIG. 6H. In some embodiments, the SAO Y / Cb / Cr block may be swapped for ESAO Y / Cb / Cr (AVS3) or CDEF (AV1) as shown in FIG. 6A-6H or throughout this disclosure. Note that Y / Cb / Cr may also be denoted as Y / U / V in the video coding domain. In some embodiments, if the video is in RGB format, CCSAO may also be applied by simply mapping the respective YUV representation to GBR in this disclosure.
[0159] FIG. 6I is a block diagram illustrating a system and process of CCSAO applied in parallel to SAO and BIF by some implementations of the present disclosure. FIG. 6J is a block diagram illustrating a system and process of CCSAO applied in parallel to BIF by replacing SAO by some implementations of the present disclosure. In some embodiments, the current chroma sample classification reuses the SAO type (edge offset (EO) or BO), class, and category of the array luma sample. The corresponding CCSAO offset may be signaled or derived from the decoder itself. For example, let h_Y be the array luma SAO offset, and let h_Cb and h_Cr be the CCSAO Cb and Cr offsets, respectively. h_Cb (or h_Cr)=w*h_Y, where w may be selected in a limited table. For example, ±1 / 4, ±1 / 2, 0, ±1, ±2, ±4..., etc., where |w| includes only values that are powers of 2.
[0160] In some embodiments, the comparison scores of the sequence luma sample (Y0) and the eight adjacent luma samples [-8, 8] are used, resulting in a total of 17 classes. Initial Class=0 Loop through 8 adjacent luma samples (Yi, i=1~8) if Y0>Yi Class+=1 else if Y0 <Yi Class-=1
[0161] In some embodiments, the classification methods described above may be combined. For example, to increase diversity, the comparison scores combined with SAO BO (32 band classification) are used, resulting in a total of 17*32 classes. In some embodiments, Cb and Cr may use the same class to reduce complexity or save bits.
[0162] FIG. 7 is a block diagram illustrating a sample process using CCSAO according to some implementations of the present disclosure. Specifically, FIG. 7 illustrates that the input of CCSAO can introduce vertical and horizontal DBF inputs to simplify class determination or increase flexibility. For example, let Y0_DBF_V, Y0_DBF_H, and Y0 be the array luma samples at the inputs of DBF_V, DBF_H, and SAO, respectively. Yi_DBF_V, Yi_DBF_H, and Yi are the adjacent eight luma samples at the inputs of DBF_V, DBF_H, and SAO, respectively, where i=1 to 8. Max Y0=max(Y0_DBF_V,Y0_DBF_H,Y0_DBF) Max Yi=max(Yi_DBF_V,Yi_DBF_H,Yi_DBF) max Y0 and max Yi are given as CCSAO classifications.
[0163] Figure 8 is a block diagram illustrating how the CCSAO process is interleaved into vertical and horizontal DBFs according to some implementations of the present disclosure. In some embodiments, the CCSAO blocks of Figures 6, 7, and 8 may be optional. For example, use the DBF_V luma sample input as the CCSAO input while using Y0_DBF_V and Yi_DBF_V for the first CCSAO_V applying the same sample processing as in Figure 6.
[0164] In some embodiments, the CCSAO syntax implemented is shown in Table 2 below. [Table 7]
[0165] In some embodiments, when one additional chroma offset is signaled to signal the CCSAO Cb and Cr offset values, the other chroma component offset can be derived by positive or negative sign, or by weighting to save bit overhead. For example, let h_Cb and h_Cr be the offsets of CCSAO Cb and Cr, respectively. By explicitly signaling w, when w=±|w| and the |w| candidates are limited, h_Cr can be derived from h_Cb without explicitly signaling h_Cr itself. h_Cr=w*h_Cb
[0166] 7 is a block diagram illustrating an example process of using CCSAO according to some implementations of the present disclosure. FIG. 8 is a block diagram illustrating the CCSAO process being interleaved with vertical and horizontal deblocking filters (DBFs) according to some implementations of the present disclosure.
[0167] FIG. 9 is a flow diagram illustrating an example process 900 for decoding a video signal using inter-component correlation according to some implementations of this disclosure.
[0168] Video decoder 30 receives a video signal including a first component and a second component (910). In some embodiments, the first component is a luma component and the second component is a chroma component of the video signal.
[0169] Video decoder 30 also receives a number of offsets associated with the second component (920).
[0170] Video decoder 30 then utilizes the characteristic measure of the first component to obtain a classification category associated with the second component (930). For example, in FIG. 6, the current chroma sample 602 is first classified using the constellation luma sample 604 and the adjacent (white) luma sample 606, and a corresponding CCSAO offset value is added to the current chroma sample.
[0171] Video decoder 30 further selects a first offset from a plurality of offsets for the second component according to the classification category (940).
[0172] Video decoder 30 additionally modifies the second component based on the selected first offset (950).
[0173] In some embodiments, utilizing the characteristic measures of the first component to obtain a classification category associated with the second component (930) includes utilizing the respective samples of the first component to obtain a respective classification category for each respective sample of the second component, where each sample of the first component is a respective sequence sample of the first component for each respective sample of the second component. For example, the current chroma sample classification reuses the SAO type (EO or BO), class, and category of the sequence luma sample.
[0174] In some embodiments, utilizing the characteristic measure of the first component to obtain a classification category associated with the second component (930) includes utilizing a respective sample of the first component to obtain a respective classification category for each respective sample of the second component, where each sample of the first component is reconstructed before being deblocked or reconstructed after being deblocked. In some embodiments, the first component is deblocked with a deblocking filter (DBF). In some embodiments, the first component is deblocked with a luma deblocking filter (DBF Y). For example, as an alternative to FIG. 6 or FIG. 7, the CCSAO input may be before DBF Y.
[0175] In some embodiments, the characteristic measure is derived by dividing a range of sample values of the first component into bands and selecting bands based on intensity values of samples in the first component, hi some embodiments, the characteristic measure is derived from a band offset (BO).
[0176] In some embodiments, the characteristic measure is derived based on a direction and intensity of edge information of the samples in the first component. In some embodiments, the characteristic measure is derived from an edge offset (EO).
[0177] In some embodiments, modifying the second component (950) includes adding the selected first offset directly to the second component, for example, a corresponding CCSAO offset value is added to the current chroma component sample.
[0178] In some embodiments, modifying the second component (950) includes mapping the selected first offset to a second offset and adding the mapped second offset to the second component. For example, if one additional chroma offset is signaled to signal the CCSAO Cb and Cr offset values, the other chroma component offset can be derived by using a positive or negative sign or by weighting to save bit overhead.
[0179] In some embodiments, receiving 910 the video signal includes receiving a syntax element indicating whether a method for decoding the video signal using CCSAO is enabled for the video signal in a sequence parameter set (SPS). In some embodiments, cc_sao_enabled_flag indicates whether CCSAO is enabled at the sequence level.
[0180] In some embodiments, receiving (910) the video signal includes receiving a syntax element indicating whether decoding the video signal using CCSAO is enabled for the second component at a slice level. In some embodiments, slice_cc_sao_cb_flag or slice_cc_sao_cr_flag indicates whether CCSAO is enabled in the slice for Cb or Cr, respectively.
[0181] In some embodiments, receiving 920 multiple offsets associated with the second component includes receiving different offsets for different coding tree units (CTUs), where for the CTU, cc_sao_offset_sign_flag indicates a sign for the offset and cc_sao_offset_abs indicates CCSAO Cb and Cr offset values for the current CTU.
[0182] In some embodiments, receiving (920) a plurality of offsets associated with the second component includes receiving a syntax element indicating whether the received offset of the CTU is the same as one of the CTU's neighboring CTUs, where the neighboring CTU is a left or upper neighboring CTU. For example, cc_sao_merge_up_flag indicates whether the CCSAO offset is merged from a left or upper CTU.
[0183] In some embodiments, the video signal further includes a third component, and the method of decoding the video signal using the CCSAO further includes receiving a second plurality of offsets associated with the third component, utilizing a characteristic measurement of the first component to obtain a second classification category associated with the third component, selecting a third offset from the second plurality of offsets for the third component according to the second classification category, and modifying the third component based on the selected third offset.
[0184] Figure 11 is a block diagram of a sample process that shows how all alignment and adjacent (white) luma / chroma samples can be fed to the CCSAO classification according to some implementations of the present disclosure. Figures 6A, 6B, and 11 show the inputs of the CCSAO classification. In Figure 11, the current chroma sample is 1104, the inter-component alignment chroma sample is 1102, and the alignment luma sample is 1106.
[0185] In some embodiments, an example classifier (C0) uses the following sequence of luma or chroma sample values (Y0) in FIG. 12 (Y4 / U4 / V4 in FIG. 6B and FIG. 6C) for classification: If band_num is the number of equally divided bands of the luma or chroma dynamic range and bit_depth is the sequence bit depth, an example class index for the current chroma sample is: class(C0)=(Y0*band_num)>>bit_depth
[0186] In some embodiments, this classification takes into account rounding, for example: class(C0)=((Y0*band_num)+(1<<bit_depth))> >bit_depth
[0187] Some band_num and bit_depth examples are given below in Table 3. Table 3 shows three classification examples when the number of bands for each of the classification examples is different. [Table 8]
[0188] In some embodiments, the classifier uses a different luma sample location for C0 classification. Figure 10A is a block diagram illustrating a classifier that uses a different luma (or chroma) sample location for C0 classification, e.g., using adjacent Y7 instead of Y0 for C0 classification, according to some implementations of this disclosure.
[0189] In some embodiments, different classifiers can be switched at sequence parameter set (SPS) / adaptation parameter set (APS) / picture parameter set (PPS) / picture header (PH) / slice header (SH) / region / coding tree unit (CTU) / coding unit (CU) / sub-block / sample level. For example, in Figure 10, we use Y0 for POC0 but Y7 for POC1 as shown in Table 4 below. [Table 9]
[0190] In some embodiments, FIG. 10B shows some examples of different shapes for luma candidates according to some implementations of the present disclosure. For example, constraints may be applied to the shapes. In some cases, the total number of luma candidates must be a power of two, as shown in FIG. 10B(b)(c)(d). In some cases, the number of luma candidates must be horizontally and vertically symmetric about the chroma sample (center), as shown in FIG. 10B(a)(c)(d)(e). In some embodiments, the power of two constraint and the symmetry constraint may also be applied to the chroma candidates. The U / V portions of FIG. 6B and FIG. 6C show an example for the symmetry constraint. In some embodiments, different color formats may have different classifier "constraints." For example, the 420 color format uses the luma / chroma candidate selection shown in Figures 6B and 6C (one candidate is selected from a 3x3 shape), while the 444 color format uses Figure 10B(f) for luma and chroma candidate selection, and the 422 color format uses Figure 10B(g) for luma (two chroma samples share four luma candidates) and Figure 10B(f) for chroma candidates.
[0191] In some embodiments, C0 position and C0 band_num may be combined and switched at SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. Different combinations may result in different classifiers, as shown in Table 5 below. [Table 10]
[0192] In some embodiments, the array luma sample value (Y0) is replaced with a value (Yp) obtained by weighting the array and adjacent luma samples. FIG. 12A shows an example classifier by replacing the array luma sample value with a value obtained by weighting the array and adjacent luma samples according to some implementations of the present disclosure. The array luma sample value (Y0) may be replaced with a phase correction value (Yp) obtained by weighting the adjacent luma samples. Different Yp may be different classifiers.
[0193] In some embodiments, different Yp are applied to different chroma formats, for example, as shown in Figure 12A, Yp in Figure 12A(a) is used for 420 chroma format, Yp in Figure 12A(b) is used for 422 chroma format, and Y0 is used for 444 chroma format.
[0194] In some embodiments, another classifier (C1) is the comparison score of the sequence luma sample (Y0) and the eight adjacent luma samples [-8, 8], resulting in a total of 17 classes, as shown below. Initial class (C1) = 0, loop through 8 adjacent luma samples (Yi,i = 1 to 8) if Y0>Yi Class+=1 else if Y0 <Yi Class-=1
[0195] In some embodiments, an example of C1 is equal to the following function, where the threshold th is 0: ClassIdx=Index2ClassTable(f(C,P1)+f(C,P2)+...+f(C,P8)) if xy>th,f(x,y)=1;if xy=th,f(x,y)=0;if xy <th,f(x,y)=-1 In the above formula, Index2ClassTable is a look-up table (LUT), C is the current sample or array sample, and P1~P8 are neighboring samples.
[0196] In some embodiments, similar to the C4 classifier, one or more thresholds may be predefined (e.g., maintained in a LUT) or signaled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Sub-block / sample level to aid in classification (quantization) of the differences.
[0197] In some embodiments, the variation (C1') counts only the comparison score [0,8], which results in 8 classes. (C1,C1') are classifier groups, and a PH / SH level flag can be signaled to switch between C1 and C1'.
[0198] Initial class (C1') = 0, loop through 8 adjacent luma samples (Yi,i = 1 to 8) if Y0>Yi Class+=1
[0199] In some embodiments, the variation (C1) selectively uses adjacent N out of M adjacent samples to count the comparison score. An M-bit bitmask may be signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level to indicate which adjacent samples were selected to count the comparison score. Using FIG. 6B as an example for the luma classifier, 8 adjacent luma samples are candidates and an 8-bit bitmask (01111110) is signaled at the PH, which indicates that 6 samples Y1-Y6 are selected, and thus the comparison score is [-6,6], resulting in an offset of 13. The selective classifier C1 gives the encoder more options to trade off between offset signaling overhead and classification granularity.
[0200] Similar to C1, the perturbation (C1') only counts the comparison score [0,+N], so the previous example bitmask 01111110 gives a comparison score of [0,6], resulting in an offset of 7.
[0201] In some embodiments, different classifiers are combined to result in a generic classifier, for example, different classifiers are applied to different pictures (different POC values), as shown in Table 6-1 below. [Table 11]
[0202] In some embodiments, another exemplary classifier (C3) uses a bit mask for classification, as shown in Table 6-2. To indicate this classifier, a 10-bit bit mask is signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, a bit mask of 11 1100 0000 means that for a given 10-bit luma sample value, only the most significant bits (MSBs): 4 bits are used for classification, resulting in a total of 16 classes. Another exemplary bit mask of 10 0100 0001 means that only 3 bits are used for classification, resulting in a total of 8 classes.
[0203] In some embodiments, the bitmask length (N) may be fixed or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, for a 10-bit sequence, a 4-bit bitmask 1110 is signaled in the picture with PH, and the MSB 3 bits b9, b8, b7 are used for classification. Another example is a 4-bit bitmask 0011 on the LSBs, and b0, b1 are used for classification. The bitmask classifier can correspond to luma or chroma classification. Whether to use the MSB or LSB for the bitmask N may be fixed or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level.
[0204] In some embodiments, the luma position and C3 bitmask may be combined and can be switched at SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. Different combinations may result in different classifiers.
[0205] In some embodiments, a bitmask restriction "max # of 1s" may be applied to limit the number of corresponding offsets. For example, limiting the bitmask "max # of 1s" to 4 in SPS results in a maximum offset of 16 for a sequence. Bitmasks for different POCs may be different, but the "max # of 1s" shall not exceed 4 (and shall not exceed 16 for all classes). The "max # of 1s" value may be signaled and can be switched at SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. [Table 12]
[0206] In some embodiments, as shown in FIG. 11, other inter-component chroma samples, such as chroma sample 1102 and its neighbors, may also be provided to the CCSAO classification, such as for the current chroma sample 1104. For example, the Cr chroma sample may be provided to the CCSAO Cb classification. The Cb chroma sample may be provided to the CCSAO Cr classification. The classifier for the inter-component chroma sample may be the same as the luma inter-component classifier, or may have its own classifier, as described in this disclosure. The two classifiers may be combined to form a joint classifier for classifying the current chroma sample. For example, the joint classifier combining the inter-component luma sample and the chroma sample results in a total of 16 classes, as shown in Table 6-3 below. [Table 13]
[0207] All the above mentioned classifiers (C0, C1, C1', C2, C3) can be combined. See for example Table 6-4 below. [Table 14]
[0208] In some embodiments, an example classifier (C2) uses an array and the difference of adjacent luma samples (Yn). Figure 12A(c) shows an example of Yn, which has a dynamic range of [-1024, 1023] when the bit depth is 10. Let band_num in C2 be the number of equally divided bands of the Yn dynamic range. Class(C2)=(Yn+(1<<bit_depth)*band_num)> > (bit_depth+1).
[0209] In some embodiments, C0 and C2 are combined to result in a general classifier. For example, different classifiers are applied to different pictures (different POCs), as shown in Table 7 below. [Table 15]
[0210] In some embodiments, all the above-mentioned classifiers (C0, C1, C1', C2) are combined. For example, different classifiers are applied to different pictures (different POCs), as shown in Table 8-1 below. [Table 16]
[0211] In some embodiments, an exemplary classifier (C4) uses the difference between the CCSAO input value and the sample value to be compensated for classification, as shown in Table 8-2 below. For example, if CCSAO is applied at the ALF stage, the difference between the pre-ALF and post-ALF sample values of the current component is used for classification. To aid in the classification (quantization) of the difference, one or more thresholds may be predefined (e.g., maintained in a look-up table (LUT)) or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. The C4 classifier can be combined with the Y / U / VbandNum of C0 to form a joint classifier (e.g., exemplary POC1 as shown in Table 8-2). [Table 17]
[0212] In some embodiments, an exemplary classifier (C5) uses "coding information" to aid in sub-block classification because different coding modes may introduce different distortion statistics into the reconstructed image. For example, as shown in Table 8-3 below, a CCSAO sample may be classified by its previous coding information, and the combination of coding information may form a classifier. Figure 30 below shows another example of different stages of coding information for C5. [Table 18]
[0213] In some embodiments, an exemplary classifier (C6) uses the YUV color transform value for classification. For example, to classify the current Y component, a 1 / 1 / 1 array or adjacent Y / U / V samples is selected to be color transformed to RGB, and the bandNum of C3 is used to quantize the R value to become the current Y component classifier.
[0214] In some embodiments, an example classifier (C7) may be derived as a simplified variant of C0 / C3 and C6. To derive the bandNum classification of the current component C0 / C3, the array / current and adjacent samples of all three color components are used. For example, to classify the current U sample, array and adjacent Y / V, the current and adjacent U samples are used, similar to FIG. 6B, which is
number
[0215] In some embodiments, one special case of C7 may derive intermediate sample S using only 1 / 1 / 1 sequences or adjacent Y / U / V samples, which may also be obtained as a special case of C6 (color transformation by using three components). S may be further fed into the bandNum classifier of C0 / C3. classIdx=bandS=(S*bandNumS)>>BitDepth
[0216] In some embodiments, similar to the C0 / C3 bandNum classifiers, C7 may also be combined with other classifiers to form a joint classifier. In some examples, C7 may not be the same as the later example (three-component joint bandNum classification for each Y / U / V component) that jointly uses the sequence and adjacent Y / U / V samples for classification.
[0217] In some embodiments, to reduce cij signaling overhead and limit the value of S within the bit depth range, a single constraint may be applied: sum of cij=1. For example, enforcing c00=(1-sum of other cij). Which cij (c00 in this example) is enforced (derived by other coefficients) may be predefined or signaled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level.
[0218] In some embodiments, a block activity classifier is implemented. For the luma component, each 4×4 block is classified into one of 25 classes. The classification index C is determined by its directionality D and quantized activity value
number
number
[0219] In some embodiments, D and
number
number
[0220] In some embodiments, a subsampled 1-D Laplacian calculation is applied to reduce the complexity of block classification. Figure 12B illustrates the subsampled Laplacian calculation according to some implementations of the present disclosure. As shown in Figure 12B, the same subsample position is used for gradient calculation in all directions.
[0221] Then, the maximum and minimum values of the horizontal and vertical gradients of D are
number
[0222] In some embodiments, the maximum and minimum values of the two diagonal gradients are:
number
[0223] In some embodiments, these values are compared with each other and with two thresholds t1 and t2 to derive the value of the directionality D, Step 1.
number
number
number
number
number
[0224] In some embodiments, the activity value A is
number
[0225] In some embodiments, A is further quantized to the range of 0 to 4, inclusive, and the quantized value is:
number
[0226] In some embodiments, the classification method is not applied to the chroma components in the picture.
[0227] In some embodiments, before filtering each 4x4 luma block, a geometric transformation such as a rotation or a diagonal and vertical flip is applied to the filter coefficients f(k,l) and the corresponding filter clipping values c(k,l) depending on the gradient values calculated for that block. This is equivalent to applying these transformations to samples in the filter-enabled region. The idea is to make the different blocks to which ALF is applied more similar by aligning their directionality.
[0228] In some embodiments, three geometric transformations are introduced, including skew, vertical flip and rotation. Diagonal: f D (k,l)=f(l,k), c D (k,l)=c(l,k) Vertical flip:fV (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) where K is the size of the filter and 0≦k,l≦K-1 are the coefficient coordinates, so location (0,0) is the top-left corner and location (K-1,K-1) is the bottom-right corner. These transformations are applied to the filter coefficients f(k,l) and clipping values c(k,l) depending on the gradient values calculated for that block. The relationships between the transformations and the four gradients in the four directions are summarized in Table 8-4 below. [Table 19]
[0229] In some embodiments, at the decoder side, when ALF is enabled for a CTB, each sample R(i,j) in that CU is filtered, resulting in a sample value R'(i,j) as shown below. R'(i,j)=R(i,j)+((Σ k≠0 Σ l≠0 f(k,l)×K(R(i+k,j+l)-R(i,j),c(k,l))+64)>>7) where f(k,l) denotes the decoded filter coefficients, K(x,y) is the clipping function, and c(k,l) denotes the decoded clipping parameters. The variables k and l are
number
number
[0230] In some embodiments, another classifier example (C8) uses inter-component / current component spatial activity information as a classifier. Similar to the block activity classifier above, one sample located at (k,l) may obtain the sample activity by: (1) Compute N directional gradients (Laplacian or forward / backward) (2) Sum the N directional gradients to obtain the activation A. (3) Quantize (or map) A to obtain the class index
number
[0231] In some embodiments, for example, two directional Laplacian gradients to obtain A and
number
[0232] In some embodiments, A may then be further mapped to the range [0,4].
number
[0233] In some embodiments, other exemplary classifiers that only use the current component information for the current component classification may be used as inter-component classification. For example, as shown in FIG. 5A and Table 1, luma sample information and eo-class are used to derive EdgeIdx and classify the current chroma sample. Other "non-inter-component" classifiers that may also be used as inter-component classifiers include edge direction, pixel intensity, pixel variation, pixel variance, sum of pixel Laplacian, Sobel operator, Compass operator, high pass filter value, low pass filter value, etc.
[0234] In some embodiments, multiple classifiers are used in the same POC. The current frame is divided by several regions, and each region uses the same classifier. For example, three different classifiers are used in POC0, and which classifier (0, 1, or 2) is used is signaled at the CTU level, as shown in Table 9 below. [Table 20]
[0235] In some embodiments, the maximum number of multiple classifiers (multiple classifiers can also be referred to as alternative offset sets) may be fixed or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. In one example, the fixed (predefined) maximum number of multiple classifiers is 4. In that case, 4 different classifiers are used in POC0 and which classifier (0, 1, or 2) is used is signaled at the CTU level. Truncated-unary (TU) codes may be used to indicate the classifier used for each luma or chroma CTB. For example, as shown in Table 10 below, when the TU code is 0, CCSAO is not applied, when the TU code is 10, set 0 is applied, when the TU code is 110, set 1 is applied, when the TU code is 1110, set 2 is applied, and when the TU code is 1111, set 3 is applied. To indicate the classifier for the CTB (offset set index), a fixed length code, a Golomb-Rice code, and an exponential-Golomb code may be used. Three different classifiers are used in POC1. [Table 21]
[0236] An example of CTB offset set index for Cb and Cr is given in 1280x720 sequence POC0 (if CTU size is 128x128, the number of CTUs in a frame is 10x6). Cb of POC0 uses 4 offset sets and Cr uses 1 offset set. As shown in Table 11-1 below, when offset set index is 0, CCSAO is not applied, when offset set index is 1, set 0 is applied, when offset set index is 2, set 1 is applied, when offset set index is 3, set 2 is applied, and when offset set index is 4, set 3 is applied. Type means the position of the selected array luma sample (Yi). Different offset sets can have different types, band_num, and corresponding offsets. [Table 22]
[0237] In some embodiments, an example of jointly using array / current and adjacent Y / U / V samples for classification is given in Table 11-2 below (three-component joint bandNum classification for each Y / U / V component). At POC0, {2,4,1} offset set is used for {Y,U,V} respectively. Each offset set can be adaptively switched at SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. Different offset sets can have different classifiers. For example, to classify the current Y4 luma sample as the candidate position (candPos) shown in FIG. 6B and FIG. 6C, Y set0 selects {current Y4, array U4, array V4} as candidates, with different bandNum{Y,U,V}={16,1,2} respectively. When using {candY, candU, candV} as the sample values of the selected {Y,U,V} candidates, the total number of classes is 32, and the class index derivation can be shown as follows: bandY=(candY*bandNumY)>>BitDepth; bandU=(candU*bandNumU)>>BitDepth; bandV=(candV*bandNumV)>>BitDepth; classIdx=bandY*bandNumU*bandNumV +bandU*bandNumV +bandV;
[0238] In some embodiments, the derivation of classIdx for the joint classifier can be expressed as an "or-shift" format to simplify the derivation process. For example, max bandNum={16,4,4}, classIdx=(bandY<<4)|(bandU<<2)|bandV.
[0239] Another example is the component V set1 classification in POC1, where candPos={neighbor Y8, neighbor U3, neighbor V0} is used with bandNum={4,1,2}, resulting in 8 classes. [Table 23]
[0240] In some embodiments, an example is given of jointly using array and adjacent Y / U / V samples for current Y / U / V sample classification (three-component joint edgeNum(C1) and bandNum classification for each Y / U / V component), for example as shown in Table 11-3 below. Edge CandPos is the center position used for C1 classifier, edge bitMask is the C1 adjacent sample activation indicator, and edgeNum is the number of the corresponding C1 class. In this example, C1 is only applied to the Y classifier (so edgeNum is equal to edgeNumY), and edge candPos is always Y4 (current / array sample position). However, C1 may be applied to the Y / U / V classifier with edge candPos as the adjacent sample position.
[0241] If diff denotes the C1 comparison score of Y, then the classIdx derivation could be: bandY=(candY*bandNumY)>>BitDepth; bandU=(candU*bandNumU)>>BitDepth; bandV=(candV*bandNumV)>>BitDepth; edgeIdx=diff+(edgeNum>>1); bandIdx=bandY*bandNumU*bandNumV +bandU*bandNumV +bandV; classIdx=bandIdx*edgeNum+edgeIdx; [Table 24] [Table 25] [Table 26]
[0242] In some embodiments, max band_num (bandNumY, bandNumU, or bandNumV) may be fixed or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, fixing max band_num=16 for each frame at the decoder would signal 4 bits to indicate band_num for C0 in the frame. Some other max band_num examples are listed in Table 12 below. [Table 27]
[0243] In some embodiments, the maximum number of classes or offsets (combinations of multiple classifiers used jointly, e.g., C1 edgeNum*C1 bandNumY*bandNumU*bandNumV) for each set (or all added sets) may be fixed or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, max may be fixed at class_num=256*4 for all added sets and an encoder conformance check or a decoder norm check may be used to verify the constraint.
[0244] In some embodiments, restrictions may be applied to the C0 classification, for example restricting band_num (bandNumY, bandNumU, or bandNumV) to only power-of-two values. Instead of explicitly signaling band_num, the syntax band_num_shift is signaled. The decoder can use a shift operation to avoid multiplications. Different band_num_shifts can be used for different components. class(C0)=(Y0>>band_num_shift)>>bit_depth
[0245] Another example operation considers rounding to reduce error. class(C0)=((Y0+(1<<(band_num_shift-1)))>>band_num_shift)>>bit_depth
[0246] For example, if band_num_max (Y, U, or V) is 16, then the possible band_num_shift candidates are 0, 1, 2, 3, 4, corresponding to band_num=1, 2, 4, 8, 16, as shown in Table 13. [Table 28] [Table 29]
[0247] In some embodiments, the classifiers applied to Cb and Cr are different. The Cb and Cr offsets for all classes can be signaled separately. For example, different offsets are signaled and applied to different chroma components, as shown in Table 14 below. [Table 30]
[0248] In some embodiments, the max offset value is fixed or signaled at the sequence parameter set (SPS) / adaptation parameter set (APS) / picture parameter set (PPS) / picture header (PH) / slice header (SH) / region / CTU / CU / subblock / sample level. For example, the max offset is [-15,15]. Different components can have different max offset values.
[0249] In some embodiments, the signaling of the offset may use differential pulse code modulation (DPCM), for example, the offset {3, 3, 2, 1, -1} may be signaled as {3, 0, -1, -1, -2}.
[0250] In some embodiments, the offsets may be stored in an APS or memory buffer for reuse for the next picture / slice, and an index may be signaled to indicate which stored previous frame offset is to be used for the current picture.
[0251] In some embodiments, the classifiers for Cb and Cr are the same. The Cb and Cr offsets for all classes may be jointly signaled, for example as shown in Table 15 below. [Table 31]
[0252] In some embodiments, the classifiers for Cb and Cr may be the same. For example, the Cb and Cr offsets for all classes may be jointly signaled by a sign flag difference, as shown in Table 16 below. According to Table 16, when the Cb offset is (3,3,2,-1), the derived Cr offset is (-3,-3,-2,1). [Table 32]
[0253] In some embodiments, a sign flag may be signaled for each class, for example as shown in Table 17 below: According to Table 17, when the Cb offset is (3,3,2,-1), the derived Cr offset is (-3,3,2,1) according to the respective sign flags. [Table 33]
[0254] In some embodiments, the classifiers for Cb and Cr may be the same. The Cb and Cr offsets for all classes may be jointly signaled by weight differences, for example as shown in Table 18 below. The weights (w) may be selected in a restricted table, for example ±1 / 4, ±1 / 2, 0, ±1, ±2, ±4..., etc., where |w| includes only power-of-two values. According to Table 18, when the Cb offset is (3,3,2,-1), the derived Cr offset is (-6,-6,-4,2) according to the respective sign flags. [Table 34]
[0255] In some embodiments, weights may be signaled for each class, for example as shown in Table 19 below: According to Table 19, when the Cb offset is (3, 3, 2, -1), the derived Cr offset is (-6, 12, 0, -1) according to the respective sign flags. [Table 35]
[0256] In some embodiments, when multiple classifiers are used in the same POC, different offset sets are signaled separately or jointly.
[0257] In some embodiments, previously decoded offsets may be stored for use in future frames. To reduce the overhead of offset signaling, an index may be signaled to indicate which previously decoded offset set is used for the current frame. For example, as shown in Table 20 below, POC0 offsets may be reused by POC2 by signaling offset set idx=0. [Table 36]
[0258] In some embodiments, the reuse offsets set idx for Cb and Cr may be different, for example as shown in Table 21 below. [Table 37]
[0259] In some embodiments, offset signaling can use additional syntax including start and length to reduce signaling overhead. For example, when band_num=256, only offsets from band_idx=37 to 44 are signaled. In the example in Table 22-1 below, the syntax for start and length are both 8-bit fixed length codes and should be aligned to the band_num bits. [Table 38]
[0260] In some embodiments, if CCSAO is applied to all YUV3 components, the alignment and adjacent YUV samples may be used jointly for classification and all of the above mentioned offset signaling methods for Cb / Cr may be extended to Y / Cb / Cr. In some embodiments, different component offset sets may be stored and used separately (each component has its own stored set) or jointly (each component shares / reuses the same stored set). Examples of separate sets are shown in Table 22-2 below. [Table 39] TIFF2024534051000078.tif90170
[0261] In some embodiments, if the sequence bit depth is greater than 10 (or a specific bit depth), the offset may be quantized before signaling. At the decoder side, the decoded offset is dequantized before application, as shown in Table 23-1 below. For example, for a 12-bit sequence, the decoded offset is left shifted (dequantized) by 2. [Table 40]
[0262] In some embodiments, the offset may be calculated as CcSaoOffsetVal=(1-2*ccsao_offset_sign_flag)*(ccsao_offset_abs<<(BitDepth-Min(10,BitDepth))).
[0263] In some embodiments, the concept of filter strength is further introduced herein. For example, the classifier offsets can be further weighted before being applied to the samples. The weights (w) can be selected in a table of power-of-two values. For example, ±1 / 4, ±1 / 2, 0, ±1, ±2, ±4..., etc., where |w| includes only power-of-two values. The weight index can be signaled at the SPS / APS / PPS / PH / SH / Region(Set) / CTU / CU / Subblock / Sample level. The signaling of the quantized offset can be obtained as part of this weight application. As shown in Figure 6D, when a recursive CCSAO is applied, a similar weight index mechanism can be applied between the first and second stages.
[0264] In some instances, multiple classifier offsets can be applied to the same sample with a combination of weights, with weighting for different classifiers. Similar weight indexing mechanisms can be signaled as described above. For example, offset_final=w*offset_1+(1-w)*offset_2, or offset_final=w1*offset_1+w2*offset_2+...
[0265] In some embodiments, instead of directly signaling the CCSAO parameters in the PH / SH, previously used parameters / offsets can be stored in an adaptive parameter set (APS) or memory buffer for reuse for the next picture / slice. An index can be signaled in the PH / SH to indicate which stored previous frame offset is used for the current picture / slice. A new APS ID can be created to maintain the CCSAO history offsets. The table below shows an example using FIG. 6I, candPos, and bandNum{Y,U,V}={16,4,4}. In some examples, the candPos, bandNum, offset signaling method can be fixed length code (FLC) or other methods such as truncated unary (TU) code, exponential Golomb code with degree k (EGk), signed EG0 (SVLC), or unsigned EG0 (UVLC). In this case, sao_cc_y_class_num (or cb, cr) is equal to sao_cc_y_band_num_y*sao_cc_y_band_num_u*sao_cc_y_band_num_v (or cb, cr). ph_sao_cc_y_aps_id is the parameter index used within this picture / slice. Note that the cb and cr components can follow the same signaling logic. [Table 41] TIFF2024534051000081.tif234170
[0266] aps_adaptation_parameter_set_id provides an identifier for the APS for reference by other syntax elements. When aps_params_type is equal to CCSAO_APS, the value of aps_adaptation_parameter_set_id shall be in the range of 0 to 7 (for example), inclusive.
[0267] ph_sao_cc_y_aps_id specifies the aps_adaptation_parameter_set_id of the CCSAO APS to which the Y color component of the slice in the current picture refers. When ph_sao_cc_y_aps_id is present, the following applies: The value of sao_cc_y_set_signal_flag of an APS NAL unit with aps_params_type equal to CCSAO_APS and aps_adaptation_parameter_set_id equal to ph_sao_cc_y_aps_id shall be equal to 1, and the TemporalId of an APS Network Abstraction Layer (NAL) unit with aps_params_type equal to CCSAO_APS and aps_adaptation_parameter_set_id equal to ph_sao_cc_y_aps_id shall be less than or equal to the TemporalId of the current picture.
[0268] In some embodiments, an APS update mechanism is described herein. The maximum number of APS offset sets can be predefined or signaled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level. Different components can have different maximum number limitations. If an APS offset set is full, a newly added offset set can replace one existing stored offset in a first-in-first-out (FIFO), last-in-first-out (LIFO), or least recently used (LRU) mechanism, or an index value is received indicating which APS offset set should be replaced. In some examples, if the selected classifier consists of candPos / edge info / coding info... etc., all classifier information can be obtained as part of the APS offset set and can also be stored in the APS offset set with its offset value. In some cases, the update mechanisms described above may be predefined or signaled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level.
[0269] In some embodiments, a constraint called "pruning" can be applied, e.g., newly received classifier information and offsets cannot be the same as any of the stored APS offset sets (same component or different components).
[0270] In some examples, when the C0 candPos / bandNum classifier is used, the maximum number of APS offset sets is 4 per Y / U / V, and FIFO updates are used for Y / V, and an idx indicating update is used for U. [Table 42] TIFF2024534051000083.tif112170
[0271] In some embodiments, the pruning criteria may be relaxed to provide a more flexible method for encoder tradeoffs, for example allowing N offsets to vary when applying the pruning operation (e.g., N=4), and in another example allowing a difference (represented as “thr”) on the value of each offset when applying the pruning operation (e.g., ±2).
[0272] In some embodiments, the two criteria may be applied simultaneously or separately, and the application of each criterion may be predefined or toggled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level.
[0273] In some embodiments, N / thr can be predefined or can be switched at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level.
[0274] In some embodiments, the FIFO update can be (1) circularly updating previously left set idx (starting again with set 0 if all are updated) as in the example above, or (2) updating from set 0 each time. In some examples, when a new offset set is received, the update can be at the PH (as in the example), or at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level.
[0275] For LRU updates, the decoder maintains a count table that counts the "total offset set usage", which can be refreshed at the SPS / APS / Group of Pictures (GOP) / PPS / PH / SH / Region / CTU / CU / Subblock / Sample levels. A newly received offset set replaces the least recently used offset set in an APS. If two stored offset sets have the same number, FIFO / LIFO can be used. See, for example, component Y in Table 23-4 below. [Table 43] TIFF2024534051000085.tif32170
[0276] In some embodiments, different components may have different update mechanisms.
[0277] In some embodiments, different components (e.g. U / V) can share the same classifier (the same candPos / edge info / coding info / offset can further have weights with modifiers).
[0278] In some embodiments, a "patch" implementation may be used in the offset exchange mechanism since offset sets used in different pictures / slices may only have small offset value differences. In some embodiments, a "patch" implementation is Differential Pulse Code Modulation (DPCM). For example, when signaling a new offset set (OffsetNew), the offset value may be located on top of the existing APS stored offset set (OffsetOld). The encoder signals only a delta value to update the old offset set (DPCM: OffsetNew = OffsetOld + delta). In the following example shown in Table 23-5, a choice other than FIFO update may be used (LRU, LIFO, or signaling an index indicating which set should be updated). The YUV components may have the same update mechanism or may use different update mechanisms. In the example of Table 23-5, the classifiers candPos / bandNum do not change, but an overwrite of the set classifier may be indicated by signaling an additional flag (flag = 0: update only the set offset, flag = 1: update both the set classifier and the set offset). [Table 44] TIFF2024534051000087.tif92170
[0279] In some embodiments, the DPCM delta offset value may be signaled with FLC / TU / EGk (order=0,1,...) code. For each offset set, one flag may be signaled indicating whether to enable DPCM signaling. The DPCM delta offset value, or the newly added offset value (signaled directly without DPCM when enabling APS DPCM=0) (ccsao_offset_abs) may be dequantized / mapped before applying to the target offset (CcSaoOffsetVal). The offset quantization step can be predefined or signaled at SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level. For example, one way is to signal the offset directly with quantization step=2. CcSaoOffsetVal=(1-2*ccsao_offset_sign_flag)*(ccsao_offset_abs<<1) Another method is to use a DPCM signaling offset with quantization step=2. CcSaoOffsetVal=CcSaoOffsetVal+(1-2*ccsao_offset_sign_flag)*(ccsao_offset_abs<<1)
[0280] In some embodiments, to reduce direct offset signaling overhead, a constraint may be applied, for example, the updated offset value must have the same sign as the old offset value. By using such an inferred offset sign, the newly updated offset does not need to transmit the sign flag again (ccsao_offset_sign_flag is inferred to be the same as the old offset).
[0281] In some embodiments, the sample processing is described below: Let R(x,y) be the input luma or chroma sample value before CCSAO, and R'(x,y) be the output luma or chroma sample value after CCSAO. offset = ccsao_offset[class_index of R(x,y)] R’(x,y) = Clip3(0, (1 << bit_depth) - 1, R(x,y) + offset)
[0282] According to the above equation, each luma or chroma sample value R(x,y) is classified using the classifier indicated by the current picture and / or the current offset set idx. The corresponding offset of the derived class index is added to each luma or chroma sample value R(x,y). The clip function Clip3 is applied to (R(x,y) + offset) to create an output luma or chroma sample value R’(x,y) within the bit depth dynamic range, for example, in the range from 0 to (1 << bit_depth) - 1.
[0283] FIG. 13 is a block diagram showing that CCSAO is applied and other in-loop filters have different combinations of clipping according to some implementation examples of the present disclosure.
[0284] In some embodiments, when CCSAO is operated by other in-loop filters, the clip operation can include the following. (1) Clipping after addition The following equations show an example where (a) CCSAO is operated by SAO and BIF, or (b) CCSAO replaces SAO but is still operated by BIF. (a) I OUT = clip1(I C + ΔI SAO + ΔI BIF ++ ΔI CCSAO ) (b) I OUT = clip1(I C + ΔI CCSAO + ΔI BIF ) (2) Clipping after addition operated by BIF In some embodiments, the clip order can be switched. (a)I OUT =clip1(I C +ΔI SAO ) I' OUT =clip1(I OUT +ΔI BIF ) I” OUT =clip1(I” OUT +ΔI CCSAO ) (b)I OUT =clip1(I C +ΔI BIF ) I' OUT =clip1(I' OUT +ΔI CCSAO ) (3) Clipping after partial addition (a)I OUT =clip1(I C +ΔI SAO +ΔI BIF ) I' OUT =clip1(I OUT +ΔI CCSAO )
[0285] In some embodiments, different clipping combinations give different tradeoffs between correction accuracy and hardware temporary buffer size (register or SRAM bit width).
[0286] FIG. 13(a) shows SAO / BIF offset clipping. FIG. 13(b) shows one additional bit-depth clipping for CCSAO. FIG. 13(c) shows joint clipping after adding SAO / BIF / CCSAO offsets to the input sample. More specifically, for example, FIG. 13(a) shows the current BIF design when interacting with SAO. Offsets from SAO and BIF are added to the input sample, followed by one bit-depth clipping. However, as shown in FIG. 13(b) and FIG. 13(c), when CCSAO is also added at the SAO stage, two possible clipping designs can be selected: (1) adding one additional bit-depth clipping for CCSAO, and (2) one harmonic design that performs joint clipping after adding SAO / BIF / CCSAO offsets to the input sample. In some embodiments, the clipping designs described above differ only for luma samples, since the BIF is applied only to the luma samples.
[0287] In some embodiments, the boundary process is described below. If the array used for classification and any of the adjacent luma (chroma) samples are outside the current picture, the CCSAO is not applied to the current chroma (luma) sample. Figure 14A is a block diagram illustrating that, according to some implementation examples of the present disclosure, if the array used for classification and any of the adjacent luma (chroma) samples are outside the current picture, the CCSAO is not applied to the current chroma (luma) sample. For example, in Figure 14A(a), if a classifier is used, the CCSAO is not applied to the chroma components of the left one column of the current picture. For example, if C1' is used, the CCSAO is not applied to the chroma components of the left one column and the top one row of the current picture, as shown in Figure 14A(b).
[0288] FIG. 14B is a block diagram illustrating that, according to some implementations of the present disclosure, CCSAO is applied to the current luma or chroma sample if the array used for classification and any of the adjacent luma or chroma samples are located outside the current picture. In some embodiments, the variation is as shown in FIG. 14B(b), where the missing sample is used iteratively or the missing sample is mirror padded to create a sample for classification, and CCSAO is applied to the current luma or chroma sample if the array used for classification and any of the adjacent luma or chroma samples are located outside the current picture, as shown in FIG. 14B(a). In some embodiments, the invalidation / repetition / mirror picture boundary processing method disclosed herein may also be applied to the subpicture / slice / tile / CTU / 360 virtual boundary if the array used for classification and any of the adjacent luma (chroma) samples are located outside the current subpicture / slice / tile / patch / CTU / 360 virtual boundary.
[0289] For example, a picture is divided into one or more tile rows and one or more tile columns. A tile is a set of CTUs that covers a rectangular area of the picture.
[0290] A slice consists of an integer number of complete tiles or an integer number of contiguous complete CTU rows within a tile of a picture.
[0291] A subpicture contains one or more slices that collectively cover a rectangular area of the picture.
[0292] In some embodiments, 360-degree video is captured on a sphere, which has essentially no "boundaries", and reference samples that lie outside the boundaries of the reference picture in the projected domain can always be obtained from neighboring samples in the spherical domain. For projection formats consisting of multiple faces, discontinuities appear between two or more adjacent faces in the frame-packed picture, no matter what kind of compact frame-packing arrangement is used. In VVC, vertical and / or horizontal virtual boundaries are introduced where in-loop filtering operations are disabled, and the location of those boundaries is signaled in the SPS or picture header. Compared to using two tiles, one for each pair of consecutive faces, the use of 360 virtual boundaries is more flexible, since it does not require the face size to be a multiple of the CTU size. In some embodiments, the maximum number of vertical 360 virtual boundaries is three, and the maximum number of horizontal 360 virtual boundaries is also three. In some embodiments, the distance between two virtual boundaries is greater than or equal to the CTU size, and the granularity of the virtual boundaries is 8 luma samples, e.g., an 8x8 sample grid.
[0293] FIG. 14C is a block diagram illustrating that, according to some implementations of the present disclosure, CCSAO is not applied to a current chroma sample if the corresponding selected sequence or adjacent luma sample used for classification is outside the virtual space defined by the virtual boundary. In some embodiments, the virtual boundary (VB) is a virtual line separating a space in a picture frame. In some embodiments, if the virtual boundary (VB) is applied in the current frame, CCSAO is not applied to chroma samples that selected corresponding luma positions that are outside the virtual space defined by the virtual boundary. FIG. 14C shows an example of virtual boundaries for a C0 classifier with 9 luma position candidates. For each CTU, CCSAO is not applied to chroma samples whose corresponding selected luma positions are outside the virtual space enclosed by the virtual boundary. For example, in FIG. 14C(a), CCSAO is not applied to chroma sample 1402 when the selected Y7 luma sample position is on the opposite side of the horizontal virtual boundary 1406, which is located on a line 4 pixels from the bottom of the frame. For example, in FIG. 14C(b), when the selected Y5 luma sample position is located on the opposite side of the vertical virtual boundary 1408, which is located on a line of y pixels from the right edge of the frame, CCSAO is not applied to the chroma sample 1404.
[0294] FIG. 15 illustrates that, according to some implementations of the present disclosure, repetition or mirror padding may be applied to luma samples outside the virtual boundary. FIG. 15(a) illustrates an example of repetition padding. If the original Y7 is selected to be the classifier located at the bottom of VB1 502, the Y4 luma sample value is used for classification (copied to the Y7 position) instead of the original Y7 luma sample value. FIG. 15(b) illustrates an example of mirror padding. If Y7 is selected to be the classifier located at the bottom of VB1 504, the Y1 luma sample value, which is symmetric to the Y7 value with respect to the Y0 luma sample, is used for classification instead of the original Y7 luma sample value. The padding method gives the possibility to apply CCSAO to more chroma samples, and therefore more coding gain may be realized.
[0295] In some embodiments, restrictions may be applied to reduce the line buffer required by the CCSAO and simplify boundary processing condition checks. Figure 16 shows that with some implementations of the present disclosure, if all nine constellation and adjacent luma samples are used for classification, an additional one luma line buffer may be required, namely, the full line luma samples of line-5 above the current VB1602. Figure 10B(a) shows an example where only six luma candidates are used for classification, which reduces the line buffer and does not require any additional boundary checks in Figures 14A and 14B.
[0296] In some embodiments, using luma samples for CCSAO classification may increase the luma line buffer and therefore increase the decoder hardware implementation cost. FIG. 17 illustrates that in some implementations of the present disclosure, in AVS, nine luma candidate CCSAOs crossing VB 1702 may increase two additional luma line buffers. For luma and chroma samples above the virtual boundary (VB) 1702, DBF / SAO / ALF are processed in the current CTU row. For luma and chroma samples below VB 1702, DBF / SAO / ALF are processed in the next CTU row. In the AVS decoder hardware design, the pre-DBF samples of luma lines -4 to -1, pre-SAO samples of line -5, and pre-DBF samples of chroma lines -3 to -1, pre-SAO samples of line -4 are stored as line buffers for DBF / SAO / ALF processing of the next CTU row. When processing the next CTU row, luma and chroma samples that are not in the line buffer are not available. However, for example, in the chroma line-3(b) position, a chroma sample is processed in the next CTU row, but CCSAO requires pre-SAO luma sample lines-7, -6, and -5 for classification. Pre-SAO luma sample lines-7 and -6 are not in the line buffer and therefore cannot be used. Adding pre-SAO luma sample lines-7 and -6 to the line buffer increases the decoder hardware implementation cost. In some examples, luma VB (line-4) and chroma VB (line-3) may be different (not aligned).
[0297] Similar to FIG. 17, FIG. 18A illustrates that in VVC, nine luma candidate CCSAOs intersecting VB 1802 may augment one additional luma line buffer according to some implementations of the present disclosure. VB may be different in different standards. In VVC, luma VB is line-4 and chroma VB is line-2, so nine candidate CCSAOs may augment one luma line buffer.
[0298] In some embodiments, in the first solution, if any of the luma candidates of a chroma sample crosses VB (outside the current chroma sample VB), the CCSAO is disabled for the chroma sample. Figures 19A-19C show that in some implementation examples of the present disclosure, if any of the luma candidates of a chroma sample crosses VB1902 (outside the current chroma sample VB), the CCSAO is disabled for the chroma sample in AVS and VVC. Figure 14C also shows some examples of this implementation example.
[0299] In some embodiments, in the second solution, for the "crossed VB" luma candidates, repetition padding is used for CCSAO from a luma line close to VB and on the opposite side of VB, e.g., luma line -4. In some embodiments, repetition padding from the luma closest to the neighboring luma below VB is implemented for the "crossed VB" chroma candidates. Figures 20A-20C show that, according to some implementation examples of the present disclosure, in AVS and VVC, CCSAO is enabled using repetition padding for a chroma sample if any of the luma candidates of the chroma sample crosses VB2002 (outside the current chroma sample VB). Figure 14C(a) also shows some examples of this implementation example.
[0300] In some embodiments, in the third solution, for "crossing VB" luma candidates, mirror padding is used for CCSAO from below the luma VB. Figures 21A-21C show that some implementation examples of the present disclosure enable CCSAO using mirror padding for chroma samples in AVS and VVC when any of the luma candidates of the chroma samples crosses VB2102 (outside the current chroma sample VB). Figures 14C(b) and 14B(b) also show some examples of this implementation. In some embodiments, in the fourth solution, "two-sided symmetric padding" is used to apply CCSAO. Figures 22A-22B show that some implementation examples of the present disclosure enable CCSAO using two-sided symmetric padding for some examples of different CCSAO shapes (e.g., 9 luma candidates (Figure 22A) and 8 luma candidates (Figure 22B)). For a luma sample set with a central luma sample aligned with the chroma samples, if one side of the luma sample set is outside of VB2 202, then two-sided symmetric padding is applied to both sides of the luma sample set. For example, in Figure 22A, luma samples Y0, Y1, and Y2 are outside of VB2 202, therefore Y0, Y1, Y2 and Y6, Y7, Y8 are both padded using Y3, Y4, Y5. For example, in Figure 22B, luma sample Y0 is outside of VB2 202, therefore Y0 is padded using Y2 and Y7 is padded using Y5.
[0301] 18B illustrates how, in some implementations of the present disclosure, an array or adjacent chroma samples are used to classify a current luma sample, and the selected chroma candidate may cross VB and require additional chroma line buffers. Solutions 1-4 similar to those described above may be applied to address this issue.
[0302] Solution 1 is to disable CCSAO for a luma sample when any of its chroma candidates may cross VB.
[0303] Solution 2 is to use repeated padding from the chroma closest to the adjacent chroma below VB for the "cross VB" chroma candidate.
[0304] Solution 3 is to use mirror padding from below chroma VB for the "intersect VB" chroma candidate.
[0305] Solution 4 is to use "double-sided symmetric padding". For a candidate set located at the center of the CCSAO array chroma sample, if one side of the candidate set is outside the VB, double-sided symmetric padding is applied to both sides.
[0306] The padding method gives the possibility to apply CCSAO to more luma or chroma samples and therefore more coding gain can be realized.
[0307] In some embodiments, in a bottom picture (or slice, tile, brick) boundary CTU row, samples below VB are processed in the current CTU row, so the above special handling (solutions 1, 2, 3, 4) is not applied to this bottom picture (or slice, tile, brick) boundary CTU row. For example, a 1920x1080 frame is divided into 128x128 CTUs. The frame contains 15x9 CTUs (rounded up). The bottom CTU row is the 15th CTU row. The decoding process is done CTU row by CTU, and for each CTU row, deblocking needs to be applied along the horizontal CTU boundary between the current CTU row and the next CTU row. Inside one CTU, in the bottom 4 / 2 luma / chroma line, the VB of the CTB is applied to each CTU row, because the DBF samples (for VVC) are processed in the next CTU row and are not available for the CCSAO of the current CTU row. However, for the bottom CTU row in the picture frame, there is no next CTU row remaining, so the bottom 4 / 2 luma / chroma line DBF samples are available in the current CTU row and are DBF processed in the current CTU row.
[0308] In some embodiments, the VBs shown in FIGS. 13-22 may be swapped for the boundaries of the subpicture / slice / tile / patch / CTU / 360 virtual boundary. In some embodiments, the positions of the chroma and luma samples in FIGS. 13-22 may be switched. In some embodiments, the positions of the chroma and luma samples in FIGS. 13-22 may be swapped for the positions of the first chroma sample and the second chroma sample. In some embodiments, the VBs of the ALF in the CTU may be generally horizontal. In some embodiments, the boundaries of the subpicture / slice / tile / patch / CTU / 360 virtual boundary may be horizontal or vertical.
[0309] In some embodiments, restrictions may be applied to reduce the line buffer required by the CCSAO and simplify boundary processing condition checks, as described in Figure 16. Figure 23 illustrates restrictions to use a limited number of luma candidates for classification, according to some implementations of the present disclosure. Figure 23(a) illustrates restrictions to use only six luma candidates for classification. Figure 23(b) illustrates restrictions to use only four luma candidates for classification.
[0310] In some embodiments, an application region is implemented. The CCSAO application region unit can be based on a CTB, i.e., on / off control, CCSAO parameters (offset used for classification offset set index, luma candidate position, band_num, bitmask... etc.) are the same within one CTB.
[0311] In some embodiments, the application region may not be aligned to the CTB boundary. For example, the application region is not aligned to the chroma CTB boundary, but is shifted. Although the syntax (on / off control, CCSAO parameters) is still shown for each CTB, the true application region is not aligned to the CTB boundary. FIG. 24 shows that, according to some implementations of the present disclosure, the CCSAO application region is not aligned to the CTB / CTU boundary 2406. For example, the application region is not aligned to the chroma CTB / CTU boundary 2406, but is sample shifted (4,4) up-left relative to the VB 2408. This unaligned CTB boundary design benefits the deblocking process because the same deblocking parameters are used for each 8×8 deblocking process region.
[0312] In some embodiments, the CCSAO application region unit (mask size) may be variable (larger or smaller than the CTB size), as shown in Table 24. The mask size may be different for different components. The mask size may be switched at SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. For example, in PH, a series of mask on / off flags and offset set indexes are shown to indicate each CCSAO region information. [Table 45]
[0313] In some embodiments, the CCSAO applicability region frame partition may be fixed, for example, by dividing the frame into N regions. Figure 25 illustrates that the CCSAO applicability region frame partition may be fixed by a CCSAO parameter according to some implementations of the present disclosure.
[0314] In some embodiments, each region may have its own region on / off control flag and CCSAO parameters. Also, if the region size is larger than the CTB size, it may have both a CTB on / off control flag and a region on / off control flag. Figures 25(a) and (b) show some examples of dividing a frame into N regions. Figure 25(a) shows a vertical division consisting of four regions. Figure 25(b) shows a square division consisting of four regions. In some embodiments, similar to the picture level CTB on all-on control flag (ph_cc_sao_cb_ctb_control_flag / ph_cc_sao_cr_ctb_control_flag), if the region on / off control flag is off, the CTB on / off flag may be further signaled. Otherwise, the CCSAO applies to all CTBs in this region without further signaling the CTB flag.
[0315] In some embodiments, different CCSAO application regions can share the same region on / off control and CCSAO parameters. For example, in Figure 25(c), regions 0-2 share the same parameters, and regions 3-15 share the same parameters. Figure 25(c) also shows that the region on / off control flags and CCSAO parameters can be signaled in Hilbert scan order.
[0316] In some embodiments, the CCSAO application area unit can be a quadtree / binarytree / tertile split from the picture / slice / CTB level. Similar to the CTB split, a series of split flags are signaled to indicate the CCSAO application area partition. Figure 26 shows that according to some implementation examples of the present disclosure, the CCSAO application area can be a binary tree (BT) / quadtree (QT) / tertile (TT) split from the frame / slice / CTB level.
[0317] FIG. 27 is a block diagram illustrating multiple classifiers used and switched at different levels within a picture frame according to some implementations of the present disclosure. In some embodiments, when multiple classifiers are used in a frame, the method of applying the classifier set index can be switched at SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, four classifier sets are used in a frame and switched at PH as shown in Table 25 below. FIG. 27(a) and FIG. 27(c) show the default fixed region classifier. FIG. 27(b) shows the classifier set index is signaled at the mask / CTB level, where 0 means CCSAO off for this CTB and 1-4 means set index. [Table 46]
[0318] In some embodiments, for a default region, the region level flag may be signaled if the CTB in this region does not use the default set index (e.g., the region level flag is 0) but uses other classifier sets in this frame. For example, if the default set index is used, the region level flag will be 1. For example, in the four regions of a square partition, the following classifier sets are used, as shown in Table 26-1 below: [Table 47]
[0319] FIG. 28 is a block diagram illustrating that, according to some implementations of the present disclosure, the CCSAO application region partition may be dynamic and may be switched at the picture level. For example, FIG. 28(a) shows that three CCSAO offset sets are used in this POC (set_num=3), and thus the picture frame is divided vertically into three regions. FIG. 28(b) shows that four CCSAO offset sets are used in this POC (set_num=4), and thus the picture frame is divided horizontally into four regions. FIG. 28(c) shows that three CCSAO offset sets are used in this POC (set_num=3), and thus the picture frame is raster-divided into three regions. Each region may have its own region all-on flag to save CTB on / off control bits. The number of regions depends on the picture set_num being signaled. The CCSAO application area can be a specific area according to the coding information in the block (such as sample positions, sample coding modes, loop filter parameters, etc.). For example, (1) the CCSAO application region may only be applied when the sample is coded in skip mode, or (2) the CCSAO application region may only include N samples along a CTU boundary, or (3) the CCSAO application region may only include samples on an 8x8 grid in a frame, or (4) the CCSAO application region may only include samples filtered with DBF, or (5) the CCSAO application region may only include the top M and left N rows in a CU, or (6) the CCSAO application region may only include intra-coded samples, or (7) the CCSAO application region may only include samples in cbf=0 blocks, or (8) the CCSAO application region may be located only on blocks with a block QP of [N,M], where (N,M) may be predefined, or may be signaled at the SPS / APS / PPS / PH / SH / Region / CTU / CU / Subblock / Sample level. Inter-component coding information may be taken into account, and (9) the CCSAO application region is on the chroma samples whose constellation luma samples are within the cbf=0 block.
[0320] In some embodiments, whether to introduce coding information application area restriction can be predefined or signaled in one control flag at SPS / APS / PPS / PH / SH / Region (per alternative set) / CTU / CU / Subblock / Sample level to indicate whether the specified coding information is included / excluded in CCSAO application. The decoder skips CCSAO processing for those areas according to the predefined condition or control flag. For example, YUV uses different predefined / flag control conditions that switch at the region (set) level. The CCSAO application decision can be made at the CU / TU / PU or sample level. [Table 48]
[0321] Another example is to reuse all or part of the two-way enabling constraints (which are predefined). bool isInter=(currCU.predMode==MODE_INTER)?true:false; if(ccSaoParams.ctuOn[ctuRsAddr] &&((TU::getCbf(currTU,COMPONENT_Y)||isInter==false)&&(currTU.cu->qp>17)) &&(128>std::max(currTU.lumaSize().width,currTU.lumaSize().height)) &&((isInter==false)||(32>std::min(currTU.lumaSize().width,currTU.lumaSize().height))))
[0322] In some embodiments, excluding specific areas may favor CCSAO statistics collection. Offset derivation may be more accurate or favorable for those areas that really need to be corrected. For example, blocks with cbf=0 usually mean that blocks that do not need to be further corrected are perfectly predicted. Excluding those blocks may favor offset derivation for other areas.
[0323] Different application areas can use different classifiers. For example, in a CTU, skip mode uses C1, an 8x8 lattice uses C2, and skip mode and an 8x8 lattice use C3. For example, in a CTU, skip mode coded samples use C1, CU-centered samples use C2, and skip mode coded samples in CU-centered use C3. FIG. 29 illustrates that a CCSAO classifier can take into account current or inter-component coding information, according to some implementation examples of the present disclosure. For example, different coding modes / parameters / sample positions can form different classifiers. Different coding information can be combined to form a joint classifier. Different regions can use different classifiers. FIG. 29 also illustrates another example of application areas.
[0324] In some embodiments, a predefined or flag-controlled "coding information exclusion zone" mechanism may be used in the DBF / pre-SAO / SAO / BIF / CCSAO / ALF / CCALF / NN Loop Filter (NNLF), or other loop filters.
[0325] In some embodiments, the CCSAO syntax implemented is shown in Table 27 below. In some examples, the binarization of each syntax element may be changed. In AVS3, the term patch is similar to slice, and patch header is similar to slice header. FLC stands for fixed length code. TU stands for shortened unary code. EGk stands for exponential-Golomb code with degree k, where k may be fixed. SVLC stands for signed EG0. UVLC stands for unsigned EG0. [Table 49] TIFF2024534051000093.tif254161TIFF2024534051000094.tif34170
[0326] If the higher-order flags are off, the lower-order flags may be inferred from the off state of the flags and do not need to be signaled. For example, if ph_cc_sao_cb_flag is false in this picture, then ph_cc_sao_cb_band_num_minus1, ph_cc_sao_cb_luma_type, cc_sao_cb_offset_sign_flag, cc_sao_cb_offset_abs, ctb_cc_sao_cb_flag, cc_sao_cb_merge_left_flag, and cc_sao_cb_merge_up_flag are not present and are inferred to be false.
[0327] In some embodiments, the ccsao_enabled_flag of the SPS is adjusted with the SAO enabled flag of the SPS, as shown in Table 28 below. [Table 50]
[0328] In some embodiments, ph_cc_sao_cb_ctb_control_flag, ph_cc_sao_cr_ctb_control_flag indicate whether to enable the granularity of CTB on / off control of Cb / Cr. If ph_cc_sao_cb_ctb_control_flag and ph_cc_sao_cr_ctb_control_flag are enabled, ctb_cc_sao_cb_flag and ctb_cc_sao_cr_flag may be further signaled. Otherwise, whether CCSAO applies to the current picture depends on ph_cc_sao_cb_flag, ph_cc_sao_cr_flag, and ctb_cc_sao_cb_flag and ctb_cc_sao_cr_flag are not further signaled at the CTB level.
[0329] In some embodiments, for ph_cc_sao_cb_type and ph_cc_sao_cr_type, in order to reduce bit overhead, a flag may be further signaled to distinguish whether the center array luma position (Y0 position in FIG. 10) is used for classification for chroma samples. Similarly, if cc_sao_cb_type and cc_sao_cr_type are signaled at the CTB level, a flag may be further signaled by the same mechanism. For example, if the number of C0 luma position candidates is 9, cc_sao_cb_type0_flag is further signaled to distinguish whether the center array luma position is used, as shown in Table 29 below. If the center array luma position is not used, cc_sao_cb_type_idc is used to indicate which of the remaining 8 adjacent luma positions is used. [Table 51]
[0330] Table 30 below shows an example where a single (set_num=1) or multiple (set_num>1) classifiers are used within a frame in AVS. The syntax notation can be mapped to the notation used above. [Table 52] [Table 53]
[0331] When combined with FIG. 25 or FIG. 27, where each region has its own set, an example syntax may include region on / off control flags (picture_ccsao_lcu_control_flag[compIdx][setIdx]), as shown in Table 31 below. [Table 54]
[0332] In some embodiments, for high level syntax, pps_ccsao_info_in_ph_flag and gci_no_sao_constraint_flag may be added.
[0333] In some embodiments, pps_ccsao_info_in_ph_flag equal to 1 specifies that CCSAO filter information may be present in a PH syntax structure, but not in a slice header that references a PPS that does not contain a PH syntax structure. pps_ccsao_info_in_ph_flag equal to 0 specifies that CCSAO filter information may not be present in a PH syntax structure, but may be present in a slice header that references a PPS. When not present, the value of pps_ccsao_info_in_ph_flag is inferred to be equal to 0.
[0334] In some embodiments, gci_no_ccsao_constraint_flag equal to 1 specifies that sps_ccsao_enabled_flag for all pictures in OlsInScope is equal to 0. gci_no_ccsao_constraint_flag equal to 0 imposes no such constraint. In some embodiments, a video bitstream includes one or more output layer sets (OLS) according to a rule. In the examples herein, OlsInScope references one or more OLSs that are in scope. In some examples, a profile_tier_level( ) syntax structure provides level information and optionally provides profile, layer, sub-profile, and general constraint information to which OlsInScope adheres. When the profile_tier_level( ) syntax structure is included in a VPS, OlsInScope is one or more OLSs specified by the VPS. When the profile_tier_level( ) syntax structure is included in an SPS, OlsInScope is an OLS that includes only the layer that is the lowest layer among the layers that reference the SPS, and this lowest layer is an independent layer.
[0335] In some embodiments, extensions to intra and inter post-prediction SAO filters are further illustrated below. In some embodiments, the SAO classification method disclosed in this disclosure (including classification of inter-component sample / coding information) can act as a post-prediction filter, and the prediction can be intra, inter, or other prediction tools, such as intra block copy. Figure 30 is a block diagram showing the SAO classification method disclosed in this disclosure acting as a post-prediction filter according to some implementations of the present disclosure.
[0336] In some embodiments, for each Y, U, and V component, a corresponding classifier is selected. For each component prediction sample, the corresponding classifier is first classified and a corresponding offset is added. For example, each component can use the current sample and adjacent samples for classification. As shown below in Table 32, Y uses the current Y sample and adjacent Y sample, and U / V uses the current U / V sample for classification. Figure 31 is a block diagram showing that for a post-prediction SAO filter, each component can use the current sample and adjacent samples for classification according to some implementations of the present disclosure. [Table 55]
[0337] In some embodiments, the refined prediction samples (Ypred', Upred', Vpred') are updated by adding the corresponding class offsets and are then used for intra, inter, or other prediction.
[0338] Ypred'=clip3(0,(1< <bit_depth)-1,Ypred+h_Y[i])
[0339] Upred'=clip3(0,(1< <bit_depth)-1,Upred+h_U[i])
[0340] Vpred'=clip3(0,(1< <bit_depth)-1,Vpred+h_V[i])
[0341] In some embodiments, in addition to the current chroma component, for the chroma U and V components, an inter-component offset (Y) may be used for further offset classification. For example, as shown below in Table 33, an additional inter-component offset (h'_U, h'_V) may be added with the current component offset (h_U, h_V). [Table 56]
[0342] In some embodiments, the improved prediction samples (Upred”, Vpred”) are updated by adding the corresponding class offset and are then used for intra, inter, or other prediction.
[0343] Upred”=clip3(0,(1< <bit_depth)-1,Upred’+h’_U[i])
[0344] Vpred”=clip3(0,(1< <bit_depth)-1,Vpred’+h’_V[i])
[0345] In some embodiments, intra and inter prediction may use different SAO filter offsets.
[0346] FIG. 32 is a block diagram illustrating the SAO classification method disclosed in this disclosure acting as a post-reconstruction filter according to some implementations of the present disclosure.
[0347] In some embodiments, the SAO / CCSAO classification method disclosed herein (including classification of inter-component samples / coding information) can act as a filter applied to the reconstructed samples of a tree unit (TU). As shown in FIG. 32, the CCSAO can act as a post-reconstruction filter, i.e., use the reconstructed samples (after addition of prediction / residual samples, before deblocking) as input for classification and compensate luma / chroma samples before entering neighboring intra / inter prediction. The CCSAO post-reconstruction filter can reduce the distortion of the current TU samples and provide better predictions for neighboring intra / inter blocks. With more accurate predictions, better compression efficiency can be expected.
[0348] FIG. 33 is a flow diagram illustrating an example process 3300 for decoding a video signal using inter-component correlation according to some implementations of the present disclosure.
[0349] In one aspect, video decoder 30 (shown in FIG. 3) receives (3310A) a picture frame from a video signal, the picture frame including a first component and a second component.
[0350] Video decoder 30 determines a classifier for each sample of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component and a second set of samples of the second component associated with the respective sample of the second component (3320A). In some embodiments, the first set of samples of the first component includes an array sample of the first component for the respective sample of the second component and neighboring samples of the array sample of the first component, and the second set of samples of the second component includes a current sample of the second component for the respective sample of the second component and neighboring samples of the current sample of the second component (3320A-1).
[0351] Video decoder 30 determines a sample offset for each sample of the second component according to the classifier (3330A).
[0352] Video decoder 30 modifies each sample of the second component based on the determined sample offset (3340A).
[0353] In some embodiments, the first component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component, the second component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component, and the first component is different from the second component.
[0354] In some embodiments, the picture frame further includes a third component, and determining a classifier for each sample of the second component (3320A) further includes determining a classifier for each sample of the second component using a set of weighted sample values and an additional set of weighted sample values from a third set of samples of the third component associated with the respective sample of the second component, wherein the third set of samples of the third component includes an array sample of the third component for the respective sample of the second component, and adjacent samples of the array sample of the third component.
[0355] In another aspect, video decoder 30 receives a picture frame from a video signal, the picture frame including a first component, a second component, and a third component (3310B).
[0356] Video decoder 30 determines a classifier for each sample of the second component using a set of weighted sample values from the first set of samples of the first component associated with the respective sample of the second component and the third set of samples of the third component associated with the respective sample of the second component (3320B). In some embodiments, the first set of samples of the first component includes an array sample of the first component for the respective sample of the second component and adjacent samples of the array sample of the first component, and the third set of samples of the third component includes an array sample of the third component for the respective sample of the second component and adjacent samples of the array sample of the third component (3320B-1).
[0357] Video decoder 30 determines a sample offset for each sample of the second component according to the classifier (3330B).
[0358] Video decoder 30 modifies each sample of the second component based on the determined sample offset (3340B).
[0359] In some embodiments, the first component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component, the second component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component, and the third component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component, and the first component, the second component, and the third component are different components.
[0360] In some embodiments, determining a classifier for each sample of the second component (3320B) further includes determining a classifier for each sample of the second component using a set of weighted sample values and an additional set of weighted sample values from a second set of samples of the second component associated with the respective sample of the second component, where the second set of samples of the second component includes a current sample of the second component for the respective sample of the second component and adjacent samples of the current sample of the second component.
[0361] In some embodiments, determining a classifier for each sample of the second component (3320A or 3320B) includes determining a classifier for each sample of the second component using an addition of a set of weighted sample values.
[0362] In some embodiments, determining a classifier for each sample of the second component (3320A or 3320B) includes determining a classifier for each sample of the second component using summation of one set of weighted sample values and an additional set of weighted sample values.
[0363] In some embodiments, determining a classifier for each sample of the second component using summation (3320A or 3320B) may be used to determine the classified sample value S as:
number
[0364] In some embodiments, the addition
number
[0365] In some embodiments, the classification sample value S is within the range of the dynamic bit depth of the video signal.
[0366] In some embodiments, the classifier for each sample of the second component includes a first classifier that uses summation of a set of weighted sample values jointly combined with a second classifier determined from edge directions and intensities of array samples of the first component for each sample of the second component, where the first classifier is different from the second classifier.
[0367] In some embodiments, one of the weighting coefficients for the current sample of the second component is derived from the other weighting coefficients.
[0368] In some embodiments, the classification sample value S is used to determine a class index for the classifier as classIdx=(S*bandNumS)>>BitDepth, where bandNumS is the band number associated with the sample value of S and BitDepth is the dynamic bit depth of the video signal.
[0369] 34 illustrates a computing environment 3410 coupled to a user interface 3450. The computing environment 3410 may be part of a data processing server. The computing environment 3410 includes a processor 3420, a memory 3430, and an input / output (I / O) interface 3440.
[0370] The processor 3420 typically controls the overall operation of the computing environment 3410, such as operations associated with display, data acquisition, data communication, and image processing. The processor 3420 may include one or more processors to execute instructions for performing all or some of the steps in the methods described above. Additionally, the processor 3420 may include one or more modules that facilitate interaction between the processor 3420 and other components. The processor may be a central processing unit (CPU), a microprocessor, a single chip machine, a graphical processing unit (GPU), or the like.
[0371] The memory 3430 is configured to store various types of data to support the operation of the computing environment 3410. The memory 3430 may include predefined software 3432. Examples of such data include instructions for any application or method operated on the computing environment 3410, video data sets, image data, etc. The memory 3430 may be implemented by using any type of volatile or non-volatile memory device, or combinations thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
[0372] The I / O interface 3440 provides an interface between the processor 3320 and a peripheral interface module, such as a keyboard, a click wheel, buttons, etc. The buttons may include, but are not limited to, a home button, a start scan button, and a stop scan button. The I / O interface 3440 may be coupled to an encoder and a decoder.
[0373] In one embodiment, a non-transitory computer readable storage medium is also provided, comprising, for example, in memory 3430, a number of programs executable by processor 3420 in computing environment 3410 to perform the aforementioned methods. Alternatively, the non-transitory computer readable storage medium may store a bitstream or datastream including encoded video information (e.g., video information including one or more syntax elements), generated by an encoder (e.g., video encoder 20 of FIG. 2) using, for example, the encoding method described above for use by a decoder (e.g., video decoder 30 of FIG. 3) in decoding the video data. The non-transitory computer readable storage medium may be, for example, a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, or the like.
[0374] In one embodiment, a computing device is also provided that includes one or more processors (e.g., processor 3420) and a non-transitory computer-readable storage medium or memory 3430 having stored thereon a plurality of programs executable by the one or more processors, the one or more processors being configured to, upon execution of the plurality of programs, perform the aforementioned method.
[0375] In one embodiment, a computer program product is also provided that includes a number of programs executable by the processor 3420 in the computing environment 3410 to perform the methods described above, e.g., in the memory 3430. For example, the computer program product may include a non-transitory computer-readable storage medium.
[0376] In one embodiment, the computing environment 3410 may be implemented by one or more ASICs, DSPs, digital signal processing devices (DSPDs), programmable logic devices (PLDs), FPGAs, GPUs, controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0377] Further embodiments also include various subsets of the above embodiments combined or otherwise rearranged in various other embodiments.
[0378] In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted via a computer-readable medium as one or more instructions or code and executed by a hardware-based processing unit. A computer-readable medium may include a computer-readable storage medium corresponding to a tangible medium, such as a data storage medium, or a communication medium including any medium that facilitates the transfer of a computer program from one place to another, for example according to a communication protocol. In this manner, a computer-readable medium may generally correspond to (1) a tangible computer-readable storage medium that is non-transitory, or (2) a communication medium such as a signal or carrier wave. A data storage medium may be any available medium that may be accessed by one or more computers or one or more processors to retrieve instructions, code, and / or data structures for implementation of the implementations described in this application. A computer program product may include a computer-readable medium.
[0379] The description of the present disclosure has been presented for purposes of illustration and is not intended to be exhaustive or limited to the present disclosure. Many modifications, variations, and alternative implementations will be apparent to one skilled in the art having the benefit of the teachings presented in the above descriptions and the associated drawings.
[0380] Unless otherwise specifically stated, the order of steps of the method according to the present disclosure is intended for illustrative purposes only, and the steps of the method according to the present disclosure are not limited to the order specifically described above, and may be changed according to practical conditions. In addition, at least one of the steps of the method according to the present disclosure may be adjusted, combined, or deleted according to practical requirements.
[0381] The examples have been chosen and described to explain the principles of the disclosure and to enable those skilled in the art to understand the disclosure with respect to various implementations and to best utilize the underlying principles and various implementations with various modifications suited to the particular applications contemplated. Therefore, it is to be understood that the scope of the disclosure is not limited to the specific examples of implementations disclosed, but that modifications and other implementations are also intended to be included within the scope of the disclosure.
Claims
1. 1. A method for decoding a video signal, comprising the steps of: receiving a picture frame from the video signal, the picture frame including a first component and a second component; determining a classifier for the respective samples of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective samples of the second component and a second set of samples of the second component associated with the respective samples of the second component, wherein the first set of samples of the first component includes an array sample of the first component for the respective samples of the second component and adjacent samples of the array sample of the first component, and the second set of samples of the second component includes a current sample of the second component for the respective samples of the second component and adjacent samples of the current sample of the second component; determining a sample offset for the respective samples of the second component according to the classifier; and modifying the respective samples of the second component based on the determined sample offsets.
2. determining the classifier for the respective sample of the second component; The method of claim 1 , comprising determining the classifier for the respective sample of the second component using a summation of the set of weighted sample values.
3. the first component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component; the second component is a component selected from the group consisting of the luma component, the first chroma component, and the second chroma component; the first component is different from the second component; The method of claim 1.
4. The picture frame further includes a third component, and determining the classifier for the respective samples of the second component comprises:
2. The method of claim 1 , further comprising: determining the classifier for the respective sample of the second component using the set of weighted sample values and an additional set of weighted sample values from a third set of samples of the third component associated with the respective sample of the second component, wherein the third set of samples of the third component includes an array sample of the third component for the respective sample of the second component and adjacent samples of the array sample of the third component.
5. determining the classifier for the respective sample of the second component; The method of claim 4 , comprising determining the classifier for the respective samples of the second component using a sum of the set of weighted sample values and the additional set of weighted sample values.
6. 1. A method for decoding a video signal, comprising the steps of: receiving a picture frame from the video signal, the picture frame including a first component, a second component, and a third component; determining a classifier for the respective samples of the second component using a set of weighted sample values from a first set of samples of the first component associated with the respective sample of the second component and a third set of samples of the third component associated with the respective sample of the second component, wherein the first set of samples of the first component includes an array sample of the first component for the respective sample of the second component and adjacent samples of the array sample of the first component, and the third set of samples of the third component includes an array sample of the third component for the respective sample of the second component and adjacent samples of the array sample of the third component; determining a sample offset for the respective samples of the second component according to the classifier; and modifying the respective samples of the second component based on the determined sample offsets.
7. determining the classifier for the respective sample of the second component; The method of claim 6 , comprising determining the classifier for the respective sample of the second component using a summation of the set of weighted sample values.
8. the first component is a component selected from the group consisting of a luma component, a first chroma component, and a second chroma component; the second component is a component selected from the group consisting of the luma component, the first chroma component, and the second chroma component; the third component is a component selected from the group consisting of the luma component, the first chroma component, and the second chroma component; the first component, the second component, and the third component are different components; The method according to claim 6.
9. determining the classifier for the respective sample of the second component; 7. The method of claim 6, further comprising: determining the classifier for the respective sample of the second component using the set of weighted sample values and an additional set of weighted sample values from a second set of samples of the second component associated with the respective sample of the second component, wherein the second set of samples of the second component includes a current sample of the second component for the respective sample of the second component and adjacent samples of the current sample of the second component.
10. determining the classifier for the respective sample of the second component; 10. The method of claim 9, comprising determining the classifier for the respective samples of the second component using a sum of the set of weighted sample values and the additional set of weighted sample values.
11. determining the classifier for the respective samples of the second component using the summation; The classification sample value S is expressed as [0010] The determination is made as follows: ij is a jth sample of the i-th component array or the current sample and adjacent samples for said respective sample of said second component, where i is equal to 1, 2, and 3 representing each of said first, second, and third components, respectively, and j is equal to 0 to N-1, where i and j are both integers; ij However, the R ij where N is the total number of the sequence or current sample and the neighboring samples of the i component for the respective sample of the second component; and determining the classifier for the respective sample of the second component based on the classification sample value S.
12. Add [0025] The method of claim 11, wherein
13. The method of claim 11 , wherein the classification sample value S is within a dynamic bit depth of the video signal.
14. 8. The method of claim 2 or 7, wherein the classifier for the respective sample of the second component comprises a first classifier using the summation of the set of weighted sample values jointly combined with a second classifier determined from edge directions and intensities of the array samples of the first component for the respective sample of the second component, the first classifier being different from the second classifier.
15. The method of claim 11 , wherein one of the weighting coefficients for the current sample of the second component is derived from the other weighting coefficients.
16. 12. The method of claim 11, wherein the classification sample value S is used to determine a class index for the classifier as classIdx = (S * bandNumS) >> BitDepth, where bandNumS is the band number associated with the sample value of S and BitDepth is the dynamic bit depth of the video signal.
17. one or more processing units; a memory coupled to the one or more processing units; and a plurality of programs stored in said memory, said plurality of programs, when executed by said one or more processing units, causing said electronic device to perform a method according to any one of claims 1 to 16. electronic equipment.
18. A non-transitory computer-readable storage medium having a bitstream stored thereon, the non-transitory computer-readable storage medium comprising instructions that, when executed, cause a decoding device to perform a method for decoding a video signal according to any one of claims 1 to 16.
19. 17. A non-transitory computer readable storage medium storing a plurality of programs for execution by an electronic device having one or more processing units, the plurality of programs, when executed by the one or more processing units, causing the electronic device to perform a method according to any one of claims 1 to 16.
Citation Information
Patent Citations
Chroma block prediction method and apparatus
CA3125500A1
Method and device for decoding of compensation offsets for set of reconstructed samples of image
JP2019110587A
Method of Sample Adaptive Offset Processing for Video Coding and Inter-Layer Scalable Coding
US20140348222A1
Sample adaptive offset systems and methods
US20170230656A1
Methods and devices for improvement in obtaining linear component sample prediction parameters
WO2019162117A1
