CROSS-COMPONENT SAMPLE ADAPTIVE OFFSET RELATED APPLICATIONS
The implementation of CCSAO in video encoding addresses the inefficiencies in existing technologies by leveraging cross-component correlations, enhancing encoding efficiency and reducing bit rates while maintaining video quality.
Patent Information
- Application Number
- JP2024520640
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-19
- Filing Date
- 2022-11-18
- Publication Date
- 2024-10-10
- Estimated Expiration
- 2042-11-18
AI Technical Summary
Existing video encoding technologies do not effectively utilize cross-component relationships between luminance and chroma components to enhance encoding efficiency, leading to suboptimal compression and quality trade-offs.
Implementing a cross-component sample adaptive offset (CCSAO) that utilizes offset quantization control syntax and quantization step sizes to improve encoding efficiency by considering cross-component correlations, particularly between luminance and chroma components.
Enhances encoding efficiency by improving compression performance and maintaining video quality through better utilization of cross-component relationships, reducing bit rates while preserving image fidelity.
Smart Images

Figure 2024537126000001_ABST
Abstract
Description
[Technical field]
[0001] This application is based on and claims priority to U.S. Provisional Patent Application No. 63 / 281,510, entitled "CROSS-COMPONENT SAMPLE ADAPTIVE OFFSET," filed November 19, 2021, the contents of which are incorporated by reference in their entirety into this specification for all purposes.
[0002] FIELD OF THE DISCLOSURE This disclosure relates generally to video encoding and compression, and more specifically to methods and apparatus for improving both luma and chroma encoding 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, receive, or otherwise communicate digital video data across communication networks and / or store the digital video data in storage devices. Due to limited bandwidth capacity of communication networks and memory resources of storage devices, video coding may be used to compress video data according to one or more video coding standards before communicating or storing the video data. 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 its predecessor standard VP9. Audio Video Coding (AVS) is a compression standard for digital audio and digital video, another series of video compression standards. Video coding generally uses prediction methods (e.g., inter-prediction, intra-prediction, etc.) that exploit the redundancy inherent in video data. Video coding aims to compress video data into a form that uses a lower bit rate while avoiding or minimizing degradation to the video quality. Summary of the Invention [Problem to be solved by the invention]
[0004] This disclosure describes embodiments related to encoding and decoding 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 luma and chroma components. [Means for solving the problem]
[0005] According to a first aspect of the present application, a method of video decoding is provided. The method may include a decoder obtaining a Cross-Component Sample Adaptive Offset (CCSAO) quantization associated with an offset quantization control syntax and a quantization step size predefined or indicated by an encoder at at least one level. Furthermore, the method may include the decoder obtaining a CCSAO based on the CCSAO quantization and adding the CCSAO to a reconstructed sample for prediction.
[0006] According to a second aspect of the present application, a method of video encoding is provided. The method may include: an encoder may predefine or signal a quantization step size for CCSAO quantization at at least one level, and the CCSAO quantization may be associated with an offset quantization control syntax and a quantization step size. Further, the method may include: the encoder may determine a CCSAO based on the CCSAO quantization and encode the CCSAO into a bitstream.
[0007] According to a third aspect of the present application, there is provided an apparatus for video decoding. The apparatus may include one or more processors and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors. The one or more processors are configured to, upon execution of the instructions, perform a method according to the first aspect.
[0008] According to a fourth aspect of the present application, there is provided an apparatus for video encoding. The apparatus may include one or more processors and a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors. The one or more processors are configured, upon execution of the instructions, to perform a method according to the second aspect.
[0009] According to a fifth aspect of the present application, there is provided a non-transitory computer-readable storage medium storing computer-executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to receive a bitstream and perform a method according to the first aspect.
[0010] According to a sixth aspect of the present application there is provided a non-transitory computer readable storage medium for storing computer executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to perform a method according to the second aspect and to transmit a bitstream.
[0011] It is to be understood that both the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present disclosure. [Brief description of the drawings]
[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure.
[0013] [Figure 1] 1 is a block diagram illustrating an example system for encoding and decoding video blocks in accordance with some embodiments of this disclosure.
[0014] [Diagram 2] 1 is a block diagram illustrating an example video encoder in accordance with some embodiments of the present disclosure.
[0015] [Diagram 3] 1 is a block diagram illustrating an example video decoder in accordance with some embodiments of the present disclosure.
[0016] [Figure 4A-4E] 1 is a block diagram illustrating how a frame is recursively divided into multiple video blocks of different sizes and shapes in accordance with some embodiments of this disclosure.
[0017] [Figure 4F] FIG. 2 is a block diagram showing an intra mode defined in VVC.
[0018] [Figure 4G] FIG. 2 is a block diagram illustrating multiple reference lines for intra prediction.
[0019] [Figure 5A] FIG. 2 is a block diagram illustrating four gradient patterns used in Sample Adaptive Offset (SAO), according to some embodiments of the present disclosure.
[0020] [Figure 5B] FIG. 2 is a block diagram illustrating a decoder for a DeBlocking Filter (DBF) combined with the proposed SAO filtering SAOV and SAOH in accordance with some embodiments of the present disclosure.
[0021] [Figure 6] FIG. 1 is a block diagram illustrating that both the proposed Bilateral Filter (BIF) and SAO use samples from the deblocking stage as input, according to some embodiments of the present disclosure.
[0022] [Figure 7] FIG. 2 is a block diagram illustrating a naming convention for samples surrounding a central sample, according to some embodiments of the present disclosure.
[0023] [Figure 8A] FIG. 13 is a block diagram illustrating a 5x5 diamond shape of an ALF filter applied to chroma components in accordance with some embodiments of the present disclosure.
[0024] [Figure 8B] FIG. 1 is a block diagram illustrating a 7x7 diamond shape of an ALF filter applied to a luma component in accordance with some embodiments of the present disclosure.
[0025] [Figure 9A-9D] 1 illustrates computation of a subsampled Laplacian according to some embodiments of the present disclosure.
[0026] [Figure 10A] FIG. 1 is a block diagram illustrating a system level diagram of a Cross Component Adaptive Loop Filter (CC-ALF) process for SAO, luma ALF, and chroma ALF processes in accordance with some embodiments of the present disclosure.
[0027] [Figure 10B] We show that, according to some embodiments of the present disclosure, filtering in CC-ALF is achieved by applying a linear diamond-shaped filter to the luminance channel.
[0028] [Figure 11] 13 illustrates modified block classification at a virtual boundary according to some embodiments of the present disclosure.
[0029] [Figure 12] 1 illustrates modified ALF filtering for luminance components at a virtual boundary, according to some embodiments of the present disclosure.
[0030] [Figure 13A]13 illustrates a CCSAO applied to chroma samples and using DBF Y as input, in accordance with some embodiments of the present disclosure.
[0031] [Figure 13B] 1 illustrates a CCSAO applied to luma and chroma samples and using DBF Y / Cb / Cr as input, in accordance with some embodiments of the present disclosure.
[0032] [Figure 13C] 1 illustrates an independently operating CCSAO according to some embodiments of the present disclosure.
[0033] [Figure 13D] 1 illustrates a recursively applied CCSAO according to some embodiments of the present disclosure.
[0034] [Figure 13E] 1 illustrates the application of SAO and BIF in parallel, according to some embodiments of the present disclosure.
[0035] [Figure 13F] 1 illustrates replacing SAO and applying it in parallel with BIF, according to some embodiments of the present disclosure.
[0036] [Figure 14] Some embodiments of the present disclosure demonstrate that CCSAO is applied in parallel with other encoding tools.
[0037] [Figure 15A] Some embodiments of the present disclosure indicate that the location of the CCSAO is after the SAO.
[0038] [Figure 15B] 1 illustrates a CCSAO operating independently without a CCALF, according to some embodiments of the present disclosure.
[0039] [Figure 15C]1 illustrates a CCSAO functioning as a post reconstruction filter, in accordance with some embodiments of the present disclosure.
[0040] [Figure 16] 1 illustrates a CCSAO applied in parallel with a CCALF, according to some embodiments of the present disclosure.
[0041] [Figure 17] 13 illustrates the use of different luminance sample locations for C0 classification as an alternative classifier, according to some embodiments of the present disclosure.
[0042] [Figures 18A-18G] 1 illustrates different candidate shapes for which constraints may be applied to different shapes, according to some embodiments of the present disclosure.
[0043] [Figure 19] We show that in addition to luma, other cross-component collocated and adjacent chroma samples can also be fed into the CCSAO classification, according to some embodiments of the present disclosure.
[0044] [Figure 20A-20B] We show that, according to some embodiments of the present disclosure, by weighting adjacent luma samples, co-located luma sample values can be replaced with phase-corrected values.
[0045] [Figure 21A-21B] We show that, according to some embodiments of the present disclosure, by weighting adjacent luma samples, co-located luma sample values can be replaced with phase-corrected values.
[0046] [Fig. 22A-22B] 13 illustrates an example of classifying c using edge strength, according to some embodiments of the present disclosure.
[0047] [Figure 23A-23B]We show that, according to some embodiments of the present disclosure, if any of the collocated and adjacent luma samples used for classification are outside the current picture, then the CCSAO is not applied to the current chroma sample.
[0048] [Fig. 24A-24B] We show that, according to some embodiments of the present disclosure, if any of the collocated and adjacent luma samples used for classification are outside the current picture, the missed samples are either repeated or used with mirror padding to create samples for classification.
[0049] [Diagram 25] Some embodiments of the present disclosure show that in AVS, a CCSAO of nine luma candidates can increase two additional luma line buffers.
[0050] [Figure 26A] Some embodiments of the present disclosure show that in VVC, nine luma candidate CCSAOs can increase one additional luma line buffer.
[0051] [Figure 26B] We show that, according to some embodiments of the present disclosure, when collocated or adjacent chroma samples are used to classify the current luma sample, the selected chroma candidate may exceed VB and require an additional chroma line buffer.
[0052] [Figures 27A-27C] Some embodiments of the present disclosure indicate that in AVS and VVC, if any of the luma candidates for a chroma sample are beyond the VB (outside the VB of the current chroma sample), the CCSAO is disabled for the chroma sample.
[0053] [Fig. 28A-28B] 1 illustrates an example hypothetical boundary for C0 with nine candidate luminance locations, according to some embodiments of the present disclosure.
[0054] [Figures 29A-29C] Some embodiments of the present disclosure show that in AVS and VVC, if any of the luma candidates for a chroma sample are beyond the VB (outside the VB of the current chroma sample), CCSAO is enabled using repeated padding of chroma samples.
[0055] [Figures 30A-30C] Some embodiments of the present disclosure show that in AVS and VVC, if any of the luma candidates for a chroma sample are beyond the VB (outside the VB of the current chroma sample), CCSAO is enabled using mirror padding of the chroma sample.
[0056] [Fig. 31A-31B] Some embodiments of the present disclosure show that in AVS and VVC, CCSAO is enabled using double sided symmetric padding if one side is outside the VB.
[0057] [Fig. 32A-32B] We show that some embodiments of the present disclosure allow repeat or mirror padding to be applied to luma samples that are outside the virtual boundary.
[0058] [Fig. 33A-33B] 13 illustrates restrictions applied to reduce the line buffer required for a CCSAO and simplify boundary processing condition checks, according to some embodiments of the present disclosure.
[0059] [Diagram 34] 1 illustrates a CCSAO application region that is not aligned to a CTB boundary, according to some embodiments of the present disclosure.
[0060] [Diagram 35]1 illustrates that some embodiments of the present disclosure may fix the CCSAO application region frame division.
[0061] [Diagram 36] Some embodiments of the present disclosure show that CCSAO adaptive domain partitioning is dynamic and can be switched at the picture level.
[0062] [Figure 37] According to some embodiments of the present disclosure, when multiple classifiers are used in one frame, we show how to apply classifier set indexes that can be switched at SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block level.
[0063] [Figure 38] We show that some embodiments of the present disclosure can divide the CCSAO application domain from frame / slice / CTB level to BT / QT / TT.
[0064] [Figure 39] 1 illustrates a CCSAO classifier that takes into account current or cross-component encoding information, according to some embodiments of the present disclosure.
[0065] [Figure 40A] 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 embodiments of the present disclosure.
[0066] [Fig. 40B-40D] FIG. 13 is a block diagram illustrating that for a post-prediction SAO filter, each component can use current and neighboring samples for classification, in accordance with some embodiments of the present disclosure.
[0067] [Diagram 41] FIG. 1 illustrates a computing environment coupled with a user interface in accordance with some embodiments of the present disclosure.
[0068] [Diagram 42] 1 is a flowchart illustrating a method for video decoding according to an example of the present disclosure.
[0069] [Diagram 43] 1 is a flowchart illustrating a method for video encoding according to an example of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0070] Reference will now be made in detail to specific embodiments, 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 understanding the subject matter presented herein. However, it will be apparent to one skilled 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 skilled in the art that the subject matter presented herein may be practiced in many types of electronic devices with digital video capabilities.
[0071] The terms used in this disclosure are adopted only for the purpose of describing certain embodiments, and are not intended to limit the disclosure. The singular forms "a / an", "said" and "the" in this disclosure and the appended claims are intended to include the plural forms, unless otherwise clearly indicated throughout this disclosure. Also, the term "and / or" used in this disclosure should be understood to refer to and include one or any or all possible combinations of the associated items listed.
[0072] Throughout this specification, references to "one embodiment," "one embodiment," "one example," "some embodiments," "some examples," or similar language mean that a particular feature, structure, or characteristic described is included in at least one embodiment or example. A feature, structure, element, or characteristic described in connection with one or some embodiments may be applicable to other embodiments, unless expressly stated otherwise.
[0073] Throughout this disclosure, all terms such as "first," "second," "third," etc. are used solely as terms to refer to associated elements, e.g., devices, components, compositions, steps, etc., unless expressly specified otherwise, and do not imply any spatial or chronological order. For example, a "first device" and a "second device" may refer to two separately formed devices or two parts, components, or operating states of the same device, and may be arbitrarily named.
[0074] The terms "module," "sub-module," "circuit," "sub-circuit," "circuitry," "sub-circuitry," "unit," or "sub-unit" may include memory (shared, dedicated, or group) that stores code or instructions that can be executed by one or more processors. A module may include one or more circuits with or without stored code or instructions. A module or circuit may include one or more components that are directly or indirectly connected. These components may or may not be physically attached to each other, or may or may not be adjacent to each other.
[0075] As used herein, the terms "if" or "when" may be understood to mean "upon" or "in response to," depending on the context. When these terms appear in the claims, they may not indicate that the associated limitation or feature is conditional or optional. For example, a method may include the steps of: i) performing function or action X' when or if condition X exists; and ii) performing function or action Y' when or if condition Y exists. The method may be implemented with both the ability to perform function or action X' and the ability to perform function or action Y'. Thus, functions X' and Y' may be performed at different times during multiple executions of the method.
[0076] A unit or module may be implemented purely by software, purely by hardware, or by a combination of hardware and software. For example, in a purely software embodiment, a unit or module may include functionally related code blocks or software components, which are directly or indirectly linked to perform a particular function.
[0077] The first generation of AVS standards include the Chinese 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+). It can reduce the bitrate by about 50% with the same perceptual quality as the MPEG-2 standard. The second generation of AVS standards includes the Chinese national standard "Information Technology, Efficient Multimedia Coding" (known as AVS2) series, which is mainly aimed at the transmission of extra HD television programs. The coding efficiency of AVS2 is twice that of AVS+. Meanwhile, the video part of the AVS2 standard was submitted by the Institute of Electrical and Electronics Engineers (IEEE) as one of the international standards for the application. The AVS3 standard is one of the new generation video coding standards for UHD video applications, which aims to exceed the coding efficiency of the latest international standard, HEVC, and brings about a bitrate reduction of about 30% compared to the HEVC standard. In March 2019, at the 68th AVS Conference, the AVS3-P2 baseline was completed, which provides about 30% bitrate reduction compared to the HEVC standard. Currently, one reference software, called the High Performance Model (HPM), is maintained by the AVS group to demonstrate the reference embodiment of the AVS3 standard. Like HEVC, the AVS3 standard is built on a block-based hybrid video coding framework.
[0078] Figure 1 is a block diagram illustrating an example system 10 for encoding and decoding video blocks in parallel, in accordance with some embodiments of the present disclosure. As shown in Figure 1, system 10 includes a source device 12 that generates and encodes video data that is 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 game consoles, video streaming devices, and the like. In some embodiments, source device 12 and destination device 14 are equipped with wireless communication capabilities.
[0079] In some embodiments, the destination device 14 may receive the encoded video data to be decoded via the 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 comprise any wireless communication medium 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 such as the Internet. The communication medium may include routers, switches, base stations, or other equipment that may be useful in facilitating communication from the source device 12 to the destination device 14.
[0080] In some other embodiments, 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, a Blu-ray disc, a Digital Versatile Disc (DVD), a 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 through 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), a cable modem, etc.), or a combination of both, suitable for accessing the encoded video data stored in 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.
[0081] As shown in FIG. 1, source device 12 includes a video source 18, a video encoder 20, and an output interface 22. Video source 18 may include a source such as a video capture device, e.g., a video camera, a video archive containing previously captured video, a video supply interface for receiving video from a video content provider, and / or a computer graphics system for generating computer graphics data as source video, or a combination of such sources. As an example, if video source 18 is a video camera of a security surveillance system, source device 12 and destination device 14 may form a camera phone or video phone. However, the embodiments described in this application may be applicable to video encoding in general and may be applied to wireless and / or wired applications.
[0082] The captured, pre-captured, or computer-generated video may be encoded by video encoder 20. The encoded video data may be transmitted directly to destination device 14 via output interface 22 of source device 12. The encoded video data may also (or instead) be stored in 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.
[0083] 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 modem to 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.
[0084] In some embodiments, destination device 14 may include a display device 34. Display device 34 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.
[0085] 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 extensions of these standards. It should be understood that the present application is not limited to a particular video encoding / decoding standard and may be applicable 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.
[0086] Each of the video encoder 20 and the video decoder 30 may 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 combinations thereof. If implemented partially in software, the electronic device may store instructions for the software on a suitable non-transitory computer-readable medium and execute the instructions in hardware using one or more processors to perform the video encoding / decoding operations disclosed in this disclosure. Each of the video encoder 20 and the 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.
[0087] 2 is a block diagram illustrating an example video encoder 20 in accordance with some embodiments described in this application. Video encoder 20 may perform intra- and inter-predictive coding of video blocks within video frames. 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" is sometimes used synonymously with the terms "image" or "picture" in the field of video coding.
[0088] As shown in FIG. 2, 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. Prediction processing unit 41 further includes a motion estimation unit 42, a motion compensation unit 44, a division unit 45, an intra prediction processing unit 46, and an intra block copy (BC) unit 48. In some embodiments, video encoder 20 also includes an inverse quantization unit 58 for video block reconstruction, an inverse transform processing unit 60, and an adder 62. An in-loop filter 63, such as a deblocking filter, is disposed between adder 62 and DPB 64 and may filter block boundaries to remove blockiness artifacts from the reconstructed video. Another in-loop filter, such as a Sample Adaptive Offset (SAO) filter and / or an Adaptive in-Loop Filter (ALF), may also be used in addition to the deblocking filter to filter the output of summer 62. 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 into one or more of the illustrated fixed or programmable hardware units.
[0089] Video data memory 40 may store video data to be encoded by components of video encoder 20. The video data in video data memory 40 may be obtained from video source 18, for example, as shown in FIG. 1. DPB 64 is a buffer that stores reference video data (e.g., reference frames or pictures) for use in encoding the video data by video encoder 20 (e.g., in intra- or inter-predictive coding modes). 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 relative to those components.
[0090] As shown in FIG. 2, after receiving the video data, a partitioning 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., a set of video blocks), or other larger coding units (CUs) according to a predefined partitioning structure, such as a Quad-Tree (QT) structure associated with the video data. A video frame may be, or may be considered as, a two-dimensional array or matrix of samples with 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. A video block is, or may be considered as, a two-dimensional array or matrix of samples with sample values, which has smaller dimensions than a video frame. The number of samples in the horizontal and vertical directions (or axes) of a video block defines the size of the video block. A video block may be further divided into one or more block divisions or sub-blocks (which may again form blocks), for example, by repeatedly using QT, Binary-Tree (BT) or Triple-Tree (TT) partitioning, or any combination thereof. It should be noted that as used herein, the term "block" or "video block" may be a portion of a frame or picture, particularly a rectangular (square or non-square) portion.For example, with reference to 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 be or correspond to a corresponding block, such as 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.
[0091] Prediction processing unit 41 may select one of a plurality of possible predictive coding modes, such as one of a plurality of intra-predictive coding modes or one of a plurality of inter-predictive coding modes, for the current video block based on the error result (e.g., code 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 then to summer 62 to reconstruct a coded block for 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.
[0092] 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-prediction coding of the current video block relative to one or more neighboring blocks in the same frame as the current block to be encoded, resulting in spatial prediction. Motion estimation unit 42 and motion compensation unit 44 within prediction processing unit 41 perform inter-prediction coding of the current video block relative to one or more predictive blocks in one or more reference frames, resulting in temporal prediction. Video encoder 20 may perform multiple coding passes, for example, to select an appropriate coding mode for each block of video data.
[0093] In some embodiments, motion estimation unit 42 determines the inter prediction mode for the current video frame by generating a motion vector that indicates the displacement of a video block in the current video frame relative to a predictive block in a reference video frame according to a predetermined pattern in the sequence of video frames. Motion estimation performed by motion estimation unit 42 is the process of generating motion vectors that estimate the motion of a video block. The motion vector may indicate, for example, the 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 designate a video frame in the sequence as a P frame or a B frame. Intra BC unit 48 may determine vectors, e.g., block vectors, for intra BC coding in a manner similar to the determination of motion vectors by motion estimation unit 42 for inter prediction, or may utilize motion estimation unit 42 to determine the block vectors.
[0094] A prediction block of a video block may be or may correspond to a block of a reference frame or reference block that is deemed to closely match the video block to be encoded in terms of pixel difference, which may be determined by a sum of absolute difference (SAD), sum of square difference (SSD), or other difference measure. In some embodiments, video encoder 20 may calculate values for sub-integer pixel locations of the reference frame 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 frame. Thus, motion estimation unit 42 may perform motion search for whole pixel locations and fractional pixel locations to output motion vectors with fractional pixel accuracy.
[0095] Motion estimation unit 42 calculates a motion vector for a video block in an inter-predictively coded frame by comparing the position of the video block with the position of a predictive block of a reference frame selected from a first reference frame list (List 0) or a second reference frame list (List 1), which each identify one or more reference frames stored in DPB 64. Motion estimation unit 42 sends the calculated motion vector to motion compensation unit 44 and then to entropy coding unit 56.
[0096] 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 summer 50. Summer 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 forming 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 defining the motion vector used to identify the predictive block, any flags indicating a prediction mode, or 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 illustrated separately for conceptual purposes.
[0097] In some embodiments, intra BC unit 48 may generate vectors and capture predictive blocks in a manner similar to that described above in connection with motion estimation unit 42 and motion compensation unit 44, except that the predictive block is in the same frame as the current block being coded, and the vectors are referred to as block vectors as opposed to motion vectors. In particular, intra BC unit 48 may determine an intra prediction mode to use to code the current block. In some examples, intra BC unit 48 may code the current block using various intra prediction modes, e.g., during separate coding passes, and test their performance through rate-distortion analysis. Intra BC unit 48 may then select an appropriate intra prediction mode to use among the various tested intra prediction modes and generate an intra mode indicator accordingly. For example, intra BC unit 48 may calculate rate-distortion values for the various tested intra prediction modes using rate-distortion analysis, and select the intra prediction mode with the best rate-distortion characteristics among the tested modes as the appropriate intra prediction mode to use. Rate-distortion analysis generally determines the amount of distortion (or error) between a coded block and the original uncoded block that was coded to produce the coded block, as well as the bitrate (i.e., number of bits) used to produce the coded block. Intra BC unit 48 may calculate ratios from the distortions and rates of the various coded blocks to determine which intra prediction mode exhibits the best rate-distortion value for the block.
[0098] In other examples, intra BC unit 48 may use all or a portion of motion estimation unit 42 and motion compensation unit 44 to perform such functions for intra BC prediction according to implementations described herein. In either case, for intra block copying, the predictive block may be a block that is 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. Identifying the predictive block may include calculating values of sub-integer pixel positions.
[0099] Whether the predictive block is from the same frame via intra prediction or a different frame via 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 encoded to form pixel difference values. The pixel difference values that form the residual video block may include both luma and chroma component differences.
[0100] 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. To that end, 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 an appropriate intra-prediction mode to use from the tested intra-prediction modes. Intra-prediction processing unit 46 may provide information indicating the selected intra-prediction mode for the block to entropy encoding unit 56. Entropy encoding unit 56 may encode the information indicating the selected intra-prediction mode into the bitstream.
[0101] After prediction processing unit 41 determines a predictive block for the current video block via either inter- or intra-prediction, summer 50 forms a residual video block by subtracting the predictive block from the current video block. The residual video data in the residual block may be included in one or more TUs and 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.
[0102] 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 perform a scan of a matrix including the quantized transform coefficients. Alternatively, entropy coding unit 56 may perform the scan.
[0103] Following quantization, entropy coding unit 56 entropy codes the quantized transform coefficients into a video bitstream using, for example, 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 coding methodology or technique. The coded bitstream may then be transmitted to video decoder 30 as shown in FIG. 1 or stored in storage 32 as shown in FIG. 1 for later transmission to or retrieval by video decoder 30. Entropy coding unit 56 may also entropy code motion vectors and other syntax elements for the current video frame being coded.
[0104] 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 to generate reference blocks for prediction of other video blocks. As mentioned above, motion compensation unit 44 may generate motion compensated prediction blocks from one or more reference blocks of frames 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.
[0105] Summer 62 adds the reconstructed residual block to the motion compensated predictive block produced by motion compensation unit 44 to generate 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 predictive block to inter predict another video block in a subsequent video frame.
[0106] 3 is a block diagram illustrating an exemplary video decoder 30 according to some embodiments 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 that is generally the reverse of the encoding process described above for the video encoder 20 in relation to 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, while the intra prediction unit 84 may generate prediction data based on an intra prediction mode indicator received from the entropy decoding unit 80.
[0107] In some examples, units of the video decoder 30 may be tasked with performing embodiments of the present application. Also, in some examples, embodiments of the present disclosure may be divided among one or more units of the video decoder 30. For example, the intra BC unit 85 may perform embodiments 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.
[0108] Video data memory 79 may store video data, such as an encoded video bitstream, that is decoded by other components of video decoder 30. The video data stored in video data memory 79 may be obtained, for example, from 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). Video data memory 79 may include a Coded Picture Buffer (CPB), which stores encoded video data from the encoded video bitstream. DPB 92 of video decoder 30 stores reference video data for use in decoding video data by 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), magneto-resistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices. For purposes of illustration, the video data memory 79 and the DPB 92 are shown in FIG. 3 as two different components of the video decoder 30. However, it will be apparent to one skilled in the art that the video data memory 79 and the DPB 92 may be provided by the same memory device or separate memory devices. In some examples, the video data memory 79 may be on-chip with other components of the video decoder 30 or may be off-chip with respect to those components.
[0109] During the decoding process, video decoder 30 receives an encoded video bitstream representing video blocks of encoded video frames and associated syntax elements. Video decoder 30 may receive 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 syntax elements to prediction processing unit 81.
[0110] When a video frame is coded as an intra-predictive coded (I) frame, or 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.
[0111] When a video frame is coded as an inter-predictive (i.e., B or P) frame, motion compensation unit 82 of prediction processing unit 81 generates one or more predictive 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 predictive blocks may be generated from one reference frame in the reference frame list. Video decoder 30 may construct the reference frame lists, List 0 and List 1, using a default construction technique based on the reference frames stored in DPB 92.
[0112] In some examples, when a video block is encoded according to the intra BC modes described herein, intra BC unit 85 of prediction processing unit 81 generates a predictive block for the current video block based on the block vectors and other syntax elements received from entropy decoding unit 80. The predictive block may be within the same reconstructed region of the picture as the current video block defined by video encoder 20.
[0113] Motion compensation unit 82 and / or intra BC unit 85 determine prediction information for video blocks of a current video frame by parsing the motion vectors and other syntax elements, and then use the prediction information to generate 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 encode video blocks of the video frame, an inter prediction frame type (e.g., B or P), one or more construction information of a reference frame list 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.
[0114] Similarly, intra BC unit 85 may use some of the received syntax elements, such as flags, to determine that the current video block is predicted using intra BC mode, construction information of the video blocks of the frame that are in the reconstruction domain and should be stored in DPB 92, block vectors of each intra BC predicted video block of the frame, intra BC prediction states of each intra BC predicted video block of the frame, and other information for decoding video blocks in the current video frame.
[0115] Motion compensation unit 82 may also perform interpolation using an interpolation filter as used by video encoder 20 during encoding of the video block to calculate sub-integer pixel interpolated values of the reference block. In this case, motion compensation unit 82 may determine the interpolation filter used by video encoder 20 from the received syntax elements and use that interpolation filter to generate the predictive block.
[0116] Inverse quantization unit 86 inverse quantizes the quantized transform coefficients provided to the bitstream and entropy decoded by entropy decoding unit 80 using the same quantization parameters calculated by video encoder 20 for each video block in the 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 in order to reconstruct residual blocks in the pixel domain.
[0117] 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 adding 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. An in-loop filter 91, such as a deblocking filter, an SAO filter and / or an ALF, may be disposed between summer 90 and DPB 92 to further process the decoded video block. The in-loop filter 91 may be applied to 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 a reference frame used for subsequent motion compensation of the next video block. DPB 92, or a memory device separate from DPB 92, may store the decoded video for later display on a display device, such as display device 34 of FIG.
[0118] In a typical video coding process, a video sequence usually contains an ordered set of frames or pictures. Each frame may contain three sample arrays, denoted as 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 black and white and therefore contains only one two-dimensional array of luma samples.
[0119] Similar to HEVC, the AVS3 standard is built on a block-based hybrid video coding framework. The input video signal is processed block by block (called coding unit (CU)). Unlike HEVC, which divides blocks based only on quadtree, in AVS3, one coding tree unit (CTU) is divided into CUs based on quadtree / binary tree / extended quadtree to adapt to various local characteristics. In addition, the concept of multiple division unit types in HEVC is removed, i.e., there is no separation of CU, prediction unit (PU), and transform unit (TU) in AVS3. Instead, each CU is always used as the basic unit for both prediction and transformation without further division. In the tree division structure of AVS3, first, one CTU is divided based on the quadtree structure. Then, each quadtree leaf node can be further divided based on the binary tree and extended quadtree structures.
[0120] As shown in FIG. 4A, video encoder 20 (more specifically, splitting unit 45) generates an encoded representation of a frame by first splitting the frame into a set of CTUs. A video frame may include an integer number of CTUs consecutively ordered in a raster scan order from left to right and top to bottom. Each CTU is a maximum logical coding unit, and the width and height of the CTU are signaled by video encoder 20 in a sequence parameter set, such that all CTUs in a video sequence have the same size, which is 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 include one CTB of luma samples, two corresponding coding tree blocks of chroma samples, and syntax elements used to code the samples of the coding tree blocks. The syntax elements describe the characteristics of different types of units of coded blocks of pixels and how the 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 include a single coding tree block and syntax elements used to code samples of the coding tree block. A coding tree block may be an N×N block of samples.
[0121] 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 shown in FIG. 4C, 64x64 CTU 400 is first partitioned into four small CUs, each with a block size of 32x32. Among the four small CUs, CU 410 and CU 420 are partitioned into four CUs with a block size of 16x16, respectively. Two 16x16 CUs 430 and 440 are further partitioned into four CUs with a block size of 8x8, respectively. FIG. 4D shows a quad tree data structure illustrating the final result of the partitioning process of CTU 400 as shown in FIG. 4C, where each leaf node of the quad tree corresponds to one CU of a respective size ranging from 32x32 to 8x8. Similar to the CTU shown in FIG. 4B, each CU may include a CB of luma samples, two corresponding coding blocks of chroma samples for the same size frame, and syntax elements used to code the samples of the coding block. In a monochrome picture or a picture with three separate color planes, a CU may include a single coding block and syntax structures used to code the samples of the coding block. It should be noted that the quadtree division shown in FIG. 4C and FIG. 4D is for illustration only, and one CTU may be divided into CUs based on quadtree / ternary tree / binary tree division to adapt to changing local characteristics. In a multi-type tree structure, one CTU is divided by a quadtree structure, and the leaf CUs of each quadtree may be further divided by binary tree structure and ternary tree structure. As shown in FIG. 4E, a coding block with width W and height H has five possible division types, namely, 4-way, horizontal 2-way, vertical 2-way, horizontal 3-way, and vertical 3-way. In AVS3 there are five possible split types: 4-way, 2-way horizontal, 2-way vertical, extended 4-way horizontal, and extended 4-way vertical.
[0122] In some embodiments, video encoder 20 may further divide the coding blocks of a CU into one or more MxN 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 include a PB of luma samples, two corresponding PBs of chroma samples, and syntax elements used to predict the PBs. In a monochrome picture or a picture with three separate color planes, a PU may include a single PB and syntax structures used to predict the PB. Video encoder 20 may generate predicted luma, Cb and Cr blocks for luma, and Cb and Cr PBs in each PU of a CU.
[0123] Video encoder 20 may use intra prediction or inter prediction to generate the predictive blocks of a PU. If video encoder 20 uses intra prediction to generate the predictive blocks of a PU, video encoder 20 may generate the predictive blocks of 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 of a PU, video encoder 20 may generate the predictive blocks of the PU based on decoded samples of one or more frames other than the frame associated with the PU.
[0124] 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 the original luma coding block of the CU, such that 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 coding block of the CU. Similarly, video encoder 20 may generate a Cb residual block and a Cr residual block of the CU, respectively, such that 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 coding 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 coding block of the CU.
[0125] Moreover, 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 include a transform block of luma samples, 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 monochrome picture or a picture with three separate color planes, a TU may include a single transform block and syntax structures used to transform samples of the transform block.
[0126] Video encoder 20 may apply one or more transforms to a luma transform block of the TU to generate a luma coefficient block of 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 of 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 of the TU.
[0127] After generating a coefficient block (e.g., a luma coefficient block, a Cb coefficient block, or a Cr coefficient block), video encoder 20 may quantize the coefficient block. Quantization generally refers to a process of quantizing transform coefficients to reduce as much as possible the amount of data used to represent the transform coefficients, thereby resulting in further compression. After video encoder 20 quantizes the coefficient block, video encoder 20 may entropy code syntax elements indicating the quantized transform coefficients. For example, video encoder 20 may perform CABAC on the syntax elements indicating the quantized transform coefficients. Finally, video encoder 20 may output a bitstream including a sequence of bits forming a representation of the encoded frame and associated data, which may be stored in storage device 32 or transmitted to destination device 14.
[0128] 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 inverse 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 coding blocks of the current CU by adding samples of the predictive blocks for the PUs of the current CU to corresponding samples of the transform blocks of the TUs of the current CU. After reconstructing the coding blocks for each CU of the frame, video decoder 30 may reconstruct the frame.
[0129] As mentioned above, video coding mainly uses two modes, intra-frame prediction (or intra prediction) and inter-frame prediction (or inter prediction), to achieve video compression. It should be noted that IBC can be considered as either intra-frame prediction or a third mode. Of the two modes, inter-frame prediction contributes more to coding efficiency than intra-frame prediction. This is because it uses motion vectors to predict the current video block from a reference video block.
[0130] However, as video data capture technology improves and video block sizes become more refined to preserve details in video data, the amount of data required to represent the motion vectors of the current frame also increases significantly. One way to overcome this challenge is to take advantage of the fact that a group of adjacent CUs in both spatial and temporal domains not only have similar video data for prediction purposes, but also the motion vectors between these adjacent CUs are similar. Therefore, the motion information of spatially adjacent CUs and / or temporally co-located CUs can be used as an approximation of the motion information (e.g., motion vector) of the current CU by exploring their spatial and temporal correlations, which is also called the "Motion Vector Predictor (MVP)" of the current CU.
[0131] 2, instead of encoding the actual motion vector of the current CU determined by motion estimation unit 42 into the video bitstream, the motion vector predictor of the current CU is subtracted from the actual motion vector of the current CU to generate a Motion Vector Difference (MVD) of the current CU. By doing so, the motion vectors determined by motion estimation unit 42 for each CU of a frame do not need to be encoded into the video bitstream, and the amount of data used to represent motion information in the video bitstream can be significantly reduced.
[0132] Similar to the process of selecting a predictive block in a reference frame during inter-frame prediction of a coding 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 called a "merge list") of the current CU using the motion vectors of possible candidates associated with the spatially neighboring CUs and / or temporally co-located CUs of the current CU, and then select one element from the motion vector candidate list as a motion vector predictor for the current CU. By doing so, there is no need to transmit the motion vector candidate list itself 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 for encoding and decoding the current CU.
[0133] In general, the basic intra prediction scheme applied in VVC is kept almost the same as that of HEVC, except that some prediction tools are further extended, added, and / or improved, such as extended intra prediction with wide-angle intra mode, Multiple Reference Line (MRL) intra prediction, Position-Dependent intra Prediction Combination (PDPC), Intra Sub-Partition (ISP) prediction, Cross-Component Linear Model (CCLM) prediction, and Matrix weighted Intra Prediction (MIP), etc.
[0134] Similar to HEVC, VVC predicts samples of the current CU using a set of reference samples adjacent to the current CU (i.e., above the current CU or to the left of the current CU). However, to capture finer edge orientations present in natural video (especially for high-resolution video content such as 4K), the number of angular intra modes is extended from 33 in HEVC to 93 in VVC. FIG. 4F is a block diagram showing the intra modes defined in VVC. As shown in FIG. 4F, among the 93 angular intra modes, modes 2 to 66 are conventional 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, VVC also applies the planar mode (mode 0 in FIG. 1) and direct current (DC) mode (mode 1 in FIG. 1) of HEVC.
[0135] As shown in FIG. 4E, since a quadtree / binary / ternary tree partitioning structure is applied in VVC, besides square-shaped video blocks, rectangular video blocks also exist in VVC intra prediction. Because the width and height of one video block are uneven, a set of various angular intra modes may be selected from 93 angular intra modes for different block shapes. More specifically, for both square and rectangular video blocks, besides planar and DC modes, 65 angular intra modes out of 93 angular intra modes are supported for each block shape. When the rectangular block shape of a video block satisfies a certain condition, an index of the 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 a mapping relationship as shown in Table 1-0 below. That is, for non-square blocks, the wide-angle intra modes are signaled by video encoder 20 using indexes of conventional angular intra modes, which are then parsed and then mapped to indexes of wide-angle intra modes by video decoder 30, so that the total number of intra modes (i.e., 67) is not changed (i.e., planar mode, DC mode, and 65 angular intra modes out of 93 angular intra modes) and the intra-prediction mode coding method is not changed. As a result, good efficiency of intra-prediction mode signaling is achieved while providing a consistent design across different block sizes.
[0136] JPEG2024537126000002.jpg157170
[0137] 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 nearest row / column of reference samples (i.e., the 0th line 201 of FIG. 4G) is used, MRL intra prediction is introduced in VVC, where in addition to the nearest row / column of reference samples, two additional rows / columns of reference samples (i.e., the first line 203 and the third line 205 of FIG. 4G) may be used for intra prediction. The index of the selected row / column of reference samples is signaled from video encoder 20 to video decoder 30. When a non-nearest row / column of reference samples (i.e., the first line 203 or the third line 205 of FIG. 4G) is selected, the planar mode is excluded from the set of intra modes that may be used to predict the current video block. MRL intra prediction is disabled for the first row / column of a video block in the current CTU to prevent the use of extended reference samples outside the current CTU.
[0138] Sample Adaptive Offset (SAO)
[0139] Sample Adaptive Offset (SAO) is a process of modifying decoded samples by conditionally adding an offset value to each sample after the application of the deblocking filter based on the values of a lookup table transmitted by the encoder. SAO filtering is performed on a region basis based on the filtering type selected for each 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 indicate the use of band-offset and edge-offset filtering types, respectively. In the band-offset mode, specified by sao-type-idx equal to 1, the selected offset value depends directly on the sample amplitude. In this mode, the total amplitude range of the samples is uniformly divided into 32 segments called bands, and sample values belonging to four of these bands (consecutive within the 32 bands) are modified by adding a transmitted value, which may be positive or negative, represented as a band offset. The main reason for using four consecutive bands is that in smooth regions where banding artifacts may appear, the sample amplitudes in the CTB tend to be concentrated in only a few bands. In addition, the design choice of using four offsets is unified with the edge offset mode of operation, 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 to classify the edge offsets in the CTB.
[0140] JPEG2024537126000003.jpg124170
[0141] In SAO types 1 and 2, a total of four amplitude offset values are transmitted to the decoder for each CTB. In type 1, the sign is also coded. The offset values, as well as related syntax elements such as sao-type-idx and sao-eo-class, are determined by the encoder, typically using a criterion that optimizes the rate-distortion performance. SAO parameters can be indicated to be inherited from the left or top CTB using a merge flag to make the signaling efficient. In summary, SAO is a nonlinear filtering operation that can further refine the reconstructed signal, enhancing the signal representation both in smooth regions and around edges.
[0142] Pre-Sample Adaptive Offset (Pre-SAO)
[0143] JPEG2024537126000004.jpg64170
[0144] JPEG2024537126000005.jpg30170
[0145] JPEG2024537126000006.jpg92170
[0146] In some cases, both SAOV and SAOH operate only on picture samples affected by the respective deblocking (DBFV or DBFH). Thus, unlike existing SAO processes, only a subset of all samples in a given spatial domain (picture, or CTU in case of legacy SAO) is processed by Pre-SAO, which keeps the increase in average decoder-side operations per picture sample low (preliminary estimates suggest 2 or 3 comparisons and 2 adds per sample in the worst case scenario). Pre-SAO requires only the samples used by the deblocking filter, without storing additional samples at the decoder.
[0147] Bilateral Filter (BIF)
[0148] In some embodiments, a bilateral filter (BIF) is implemented to explore compression efficiency beyond VVC. The BIF is performed in a sample adaptive offset (SAO) loop filter stage. Both the bilateral filter (BIF) and the SAO use samples from the deblocking as input. Each filter creates an offset for each sample, which is added to the input sample and then clipped before proceeding to the ALF.
[0149] JPEG2024537126000007.jpg30170
[0150] 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.
[0151] JPEG2024537126000008.jpg73170
[0152] A pps_bilateral_filter_enabled_flag equal to 0 specifies that the bilateral loop filter is disabled for slices that reference the PPS. A pps_bilateral_filter_flag equal to 1 specifies that the bilateral loop filter is enabled for slices that reference the PPS.
[0153] bilateral_filter_strength specifies the strength value of the bilateral loop filter used in the bilateral transform block filter process. The value of bilateral_filter_strength must be in the range from 0 to 2, inclusive.
[0154] bilateral_filter_qp_offset specifies the offset used to derive the bilateral filter lookup table (LUT(x)) for the slice that references the PPS. bilateral_filter_qp_offset must be in the range of -12 to +12, inclusive.
[0155] JPEG2024537126000009.jpg123170
[0156] Its meaning is as follows: slice_bilateral_filter_all_ctb_enabled_flag equal to 1 specifies that the bilateral filter is enabled and applied 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.
[0157] 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.
[0158] bilateral_filter_ctb_flag[xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 1 specifies that the bilateral filter is applied to the luma coding tree block of the coding tree unit at luma position (xCtb, yCtb). bilateral_filter_ctb_flag[cIdx][xCtb>>CtbLog2SizeY][yCtb>>CtbLog2SizeY] equal to 0 specifies that the bilateral filter is not applied to the luma coding tree block of the coding tree unit at luma position (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).
[0159] In some examples, for a filtered CTU, the filtering process proceeds as follows: At picture boundaries where samples are unavailable, the bilateral filter uses dilation (sample repetition) to fill in the unavailable samples. For virtual boundaries, the motion is the same as SAO, i.e., no filtering occurs. When crossing horizontal CTU boundaries, the bilateral filter can access the same samples that SAO has access to. Figure 7 is a block diagram illustrating the naming convention for samples surrounding a central sample, according to some embodiments of the present disclosure. As an example, central sample I c If is on the top line of the CTU, then I NW , I A , and I NE is read from the CTU above, just like SAO does, but I AA is padded, so no additional line buffer is needed. C The samples surrounding are represented according to Figure 7, 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 represents IAA , I BB , I LL , or I RR Unlike another method that uses square filter support, which does not use square filters.
[0160] JPEG2024537126000010.jpg65170
[0161] JPEG2024537126000011.jpg235170JPEG2024537126000012.jpg64170
[0162] JPEG2024537126000013.jpg57170
[0163] JPEG2024537126000014.jpg26170
[0164] JPEG2024537126000015.jpg25170
[0165] JPEG2024537126000016.jpg84170
[0166] JPEG2024537126000017.jpg34170
[0167] JPEG2024537126000018.jpg35170
[0168] Adaptive Loop Filter (ALF)
[0169] In VVC, an adaptive loop filter (ALF) with block-based filter adaptation is applied: for the luma component, one of 25 filters is selected for each 4x4 block based on local gradient orientation and activity.
[0170] Two diamond filter shapes (shown in Figures 8A-8B) are used: a 7x7 diamond shape is applied to the luma component, and a 5x5 diamond shape is applied to the chroma component.
[0171] JPEG2024537126000019.jpg30170
[0172] JPEG2024537126000020.jpg130170
[0173] To reduce the complexity of block classification, a subsampled 1-D Laplacian computation is applied. The same subsampled positions are used for gradient computation in all directions, as shown in Figures 9A-9D.
[0174] JPEG2024537126000021.jpg40170
[0175] JPEG2024537126000022.jpg117170
[0176] For the chroma component of the picture, no classification method is applied.
[0177] Geometric transformation of filter coefficients and clipping values
[0178] Before filtering each 4x4 luma block, a geometric transformation such as rotation or 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 value calculated for that block. This is equivalent to applying these transformations to the samples in the filter support region. The idea is to make different blocks to which ALF is applied more similar by aligning their orientation.
[0179] JPEG2024537126000023.jpg40170
[0180] JPEG2024537126000024.jpg77170
[0181] Filtering Process
[0182] JPEG2024537126000025.jpg99170
[0183] Cross-component adaptive loop filter (CC-ALF)
[0184] CC-ALF uses the luma sample values to refine each chroma component by applying an adaptive linear filter to the luma channel and then using the output of this filtering operation for chroma refinement. Figure 10A provides a system level diagram of the CC-ALF process for SAO, luma ALF and chroma ALF processes.
[0185] JPEG2024537126000026.jpg56170
[0186] As shown in FIG. 10B, the luma filter support is the region that is collocated with the current chroma sample after taking into account the spatial scaling factor between the luma and chroma planes.
[0187] In the VVC reference software, the CC-ALF filter coefficients are calculated by minimizing the mean squared error of each chroma channel relative to the original chroma content. To accomplish this, the VTM algorithm uses a coefficient derivation process similar to that used for chroma ALF. Specifically, it derives a correlation matrix and computes the coefficients using a Cholesky decomposition solver to attempt to minimize the mean squared error. When designing the filters, up to eight CC-ALF filters can be designed and transmitted per picture. The resulting filters are denoted on a CTU basis, for each of the two chroma channels.
[0188] Other features of CC-ALF include: The design uses a 3x4 diamond shape with 8 taps Seven filter coefficients are transmitted in APS Each transmitted coefficient has a dynamic range of 6 bits and is restricted to powers of 2. The eighth filter coefficient is derived in the decoder such that the sum of the filter coefficients is equal to 0. APS can be referenced in slice headers CC-ALF filter selection is controlled for each chroma component at the CTU level Border padding for horizontal virtual border uses the same memory access pattern as luma ALF.
[0189] As an additional feature, the reference encoder can be configured, through a configuration file, to allow for basic subjective tuning. When the VTM is enabled, it attenuates the application of CC-ALF in regions that are encoded with a high QP and that are either close to mid-gray or contain large amounts of luminance high frequencies. Algorithmically, this is achieved by disabling the application of CC-ALF in CTUs where any of the following conditions are true: The slice QP value minus 1 is less than or equal to the base QP value. The number of chroma samples with local contrast greater than (1<<(bitDepth-2))-1 exceeds the height of the CTU, where local contrast is the difference between the maximum and minimum luma sample values within the filter support region. More than a quarter of the saturation samples are between (1<<(bitDepth-1))-16 and (1<<(bitDepth-1))+16
[0190] The motivation for this feature is to provide some guarantee that CC-ALF does not amplify artifacts introduced earlier in the decoding path (mainly because the VTM is not currently explicitly optimized for the subjective quality of saturation). It is expected that alternative encoder implementations will either not use this feature or will incorporate alternative strategies appropriate to their encoding characteristics.
[0191] Filter Parameter Signaling
[0192] The ALF filter parameters are signaled in an Adaptation Parameter Set (APS). In one APS, up to 25 sets of luma filter coefficients and clipping value indices and up to 8 sets of chroma filter coefficients and clipping value indices can be signaled. To reduce bit overhead, different classifications of filter coefficients can be merged for the luma component. In the slice header, the index of the APS used for the current slice is signaled.
[0193] JPEG2024537126000027.jpg47170
[0194] In the slice header, up to seven APS indices can be signaled to specify the luma filter set to be used for the current slice. The filtering process can be further controlled at the CTB level. A flag is always signaled to indicate if an ALF is applied to the luma CTB. The luma CTB can select a filter set among the 16 fixed filter sets and a filter set from the APS. A filter set index is signaled to the luma CTB to indicate which filter set is applied. The 16 fixed filter sets are predefined and hard-coded in both the encoder and the decoder.
[0195] For the chroma component, an APS index is signaled in the slice header to indicate the chroma filter set used for the current slice. At the CTB level, if multiple chroma filters are configured in an APS, a filter index is signaled per chroma CTB.
[0196] The filter coefficients are quantized with a norm equal to 128. To limit the multiplication complexity, coefficient values at non-central positions are quantized with a norm equal to 128. 7 ~2 7Bitstream adaptation is applied so that the range is between -1 and 1. The coefficients in the center positions are not signaled in the bitstream and are assumed to be equal to 128.
[0197] Virtual Boundary Filtering Process for Line Buffer Reduction
[0198] In VVC, to reduce the line buffer requirements of ALF, a modified block classification and filtering is employed for samples near horizontal CTU boundaries. For this purpose, a virtual boundary is defined as a line shifted by “N” samples from the horizontal CTU boundary, where N is equal to 4 for luma components and 2 for chroma components, as shown in Fig. 11.
[0199] A modified block classification is applied for the luma component as shown in Fig. 11. In the 1D Laplacian gradient computation for 4x4 blocks above the virtual boundary, only samples above the virtual boundary are used. Similarly, in the 1D Laplacian gradient computation for 4x4 blocks below the virtual boundary, only samples below the virtual boundary are used. The quantization of the activity value A is scaled accordingly to account for the reduction in the number of samples used in the 1D Laplacian gradient computation.
[0200] In the filtering process, a symmetric padding operation is used at the virtual boundary for both luma and chroma components. As shown in Fig. 12, when the sample being filtered is located below the virtual boundary, the adjacent samples located above the virtual boundary are padded, while the corresponding samples on the opposite side are also padded symmetrically.
[0201] Unlike the symmetric padding method used at horizontal CTU boundaries, a simple padding process is applied at slice, tile, and subpicture boundaries when cross-boundary filters are disabled. A simple padding process is also applied at picture boundaries. The padded samples are used for both the classification and filtering processes. To compensate for the extreme padding when filtering samples directly above or below a virtual boundary, the filtering strength in these cases is reduced by increasing the right shift by 3 in the formula to obtain the sample value R′(i,j) for both luma and chroma.
[0202] In the 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 values of the current and adjacent chroma samples, and no co-located or adjacent luma samples are considered. However, luma samples may retain more information of the original picture than chroma samples and be beneficial for determining the current chroma sample offset. Furthermore, since chroma samples usually lose high-frequency details after RGB-to-YCbCr color conversion or after quantization and deblocking filters, introducing luma samples with retained high-frequency details for chroma offset determination can benefit the reconstruction of chroma samples. Therefore, further gains can be expected by exploring cross-component correlations, for example, by using the cross-component sample adaptive offset (CCSAO) method and system. In some embodiments, the correlation here includes not only cross-component sample values, but also picture / coding information such as prediction / residual coding mode, transform type, and quantization / deblocking / SAO / ALF parameters from the cross-component.
[0203] As another example, in the case of SAO, luma sample offsets are determined by luma samples alone. However, for example, luma samples with the same band offset (BO) classification can be further classified by their collocated and adjacent chroma samples, which may lead to more effective classification. SAO classification can be viewed as a shortcut to compensate for sample differences between the original picture and the reconstructed picture. Therefore, effective classification is desired.
[0204] Cross Component Sample Adaptive Offset (CCSAO)
[0205] The existing SAO design in the HEVC, VVC, AVS2, and AVS3 standards is used as the basic SAO method in the following description, but for those skilled in the art of video coding, the proposed cross-component method described in this disclosure can also be applied to other loop filter designs or other coding tools with similar design intent. For example, in the AVS3 standard, SAO is replaced by a coding tool called Enhanced Sample Adaptive Offset (ESAO), but the proposed CCSAO can also be applied in parallel with ESAO. Another example where CCSAO can be applied in parallel is the Constrained Directional Enhancement Filter (CDEF) in the AV1 standard.
[0206] 13A-13F are diagrams of the proposed method. In FIG. 13A, the luma sample after the luma deblocking filter (DBF Y) is used to determine the additional offsets of chroma Cb and Cr after SAO Cb and SAO Cr. For example, the current chroma sample (1302) is first classified using the collocated (1304) and adjacent (1306) luma samples, and the CCSAO offsets of the corresponding class are added to the current chroma sample. In FIG. 13B, the CCSAO is applied to the luma and chroma samples, using DBF Y / Cb / Cr as input. In FIG. 13C, the CCSAO can operate independently. In FIG. 13D, the CCSAO can be applied recursively (2 or N times) in the same codec stage with the same or different offsets, or repeated in different stages. In FIG. 13E, the CCSAO is applied in parallel with the SAO and BIF. In FIG. 13F, the CCSAO replaces the SAO and is applied in parallel with the BIF.
[0207] Therefore, to classify the current luma sample, information of the current and adjacent luma samples, the adjacent and adjacent chroma samples (Cb and Cr) may be used. Furthermore, to classify the current chroma sample (Cb or Cr), information of the adjacent and adjacent luma samples, the adjacent and adjacent cross chroma samples, and the current and adjacent chroma samples may be used.
[0208] FIG. 14 shows that CCSAO can be applied in parallel with other coding tools. For example, ESAO in AVS standard, or CDEF in AV1 standard. FIG. 15A shows that the position of CCSAO can be after SAO, i.e., the position of CCALF in VVC standard. In FIG. 15B, CCSAO can operate independently without CCALF. In FIG. 15C, CCSAO can function as a post-reconstruction filter, i.e., it uses reconstructed samples as input for classification and compensates luma / chroma samples before entering neighboring intra prediction. FIG. 16 shows that CCSAO can also be applied in parallel with CCALF. In FIG. 16, the positions of CCALF and CCSAO can be swapped. It should be noted that in FIG. 13A-FIG. 16, or in other paragraphs of this disclosure, the SAO Y / Cb / Cr block can be replaced by ESAO Y / Cb / Cr (in AVS3) or CDEF (in AV1). It should be noted that Y / Cb / Cr can be represented as Y / U / V in the video coding domain.
[0209] In some examples, if the video is in RGB format, the proposed CCSAO can also be applied by simply mapping the YUV representation to GBR in the following paragraphs.
[0210] It should be noted that the figures of this disclosure can be combined with all examples mentioned in this disclosure.
[0211] classification
[0212] 13A-13F and 19 show the input of the CCSAO classification. 13A-13F and 19 also show that all collocated and adjacent luma / chroma samples can be fed to the CCSAO classification. It should be noted that the classifiers mentioned in this disclosure can be useful for cross-component classification (e.g., using luma to classify chroma or vice versa), as well as single-component classification (e.g., using luma to classify luma, or using chroma to classify chroma).
[0213] An example classifier (C0) uses collocated luma or chroma sample values (Y0 in FIG. 13A) (Y4 / U4 / V4 in FIG. 13B-C) for classification. If band_num is the number of evenly divided bands in the luma or chroma dynamic range and bit_depth is the bit depth of the sequence, an example class index for the current chroma sample is: class(C0)=(Y0*band_num)>>bit_depth
[0214] Some band_num and bit_depth examples are listed below in Table 2-2, which shows three classification examples when the number of bands varies for each classification example. The classification can take into account rounding. class(C0)=((Y0*band_num)+(1<<bit_depth))> >bit_depth Some examples of band_num and bit_depth are listed in Table 2-1 below.
[0215] JPEG2024537126000028.jpg54170
[0216] 18A-18G show some examples of luma candidates of different shapes. As shown in FIG. 18B-18D, a constraint can be applied to the shape that the total number of candidates must be a power of two. As shown in FIG. 18A, FIG. 18C-18E, a constraint can be applied to the shape that the number of luma candidates must be horizontally and vertically symmetric with the chroma samples. The power of two constraint and the symmetry constraint can also be applied to the chroma candidates. In FIG. 13B-13C, the U / V part shows an example of the symmetry constraint.
[0217] JPEG2024537126000029.jpg165170
[0218] JPEG2024537126000030.jpg54170
[0219] In some examples, the co-located luminance sample value (Y0) can be replaced with a value (Yp) by weighting the co-located and adjacent luminance samples. Figures 20A-20B show two examples. Different Yp can be different classifiers. Different Yp can be applied to different chroma formats. For example, Yp in Figure 20A is used for 420, Yp in Figure 20B is used for 422, and Y0 is used for 444.
[0220] In some examples, another classifier example (C1) is the comparison score of the co-located luminance sample (Y0) and eight adjacent luminance samples [-8, 8], generating a total of 17 classes. Initial class (C1) = 0, loop over 8 adjacent luminance samples (Yi, i = 1 to 8) if Y0>Yi Class+=1 else if Y0 <Yi Class-=1
[0221] In some examples, an instance 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)) f(x,y) = 1, if xy > th; f(x,y) = 0, if xy = th; f(x,y) = -1, if xy < th
[0222] In some examples, similar to the C4 classifier, one or more thresholds can be predefined (e.g., kept in a LUT) or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level to help classify (quantize) the differences.
[0223] In some examples, the variant (C1') counts only the comparison scores [0,8], which results in 8 classes. (C1,C1') is a classifier group that can signal PH / SH level flags to switch between C1 and C1'. Initial class (C1') = 0, loop over 8 adjacent luminance samples (Yi, i = 1 to 8) if Y0>Yi Class+=1
[0224] In some examples, the variant (C1s) selectively uses adjacent N of M adjacent samples to count the comparison score. An M-bit bitmask can be signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level to indicate which adjacent samples are selected to count the comparison score. Using FIG. 13B as an example of a luma classifier, 8 adjacent luma samples are candidates and an 8-bit bitmask (01111110) is signaled at PH to indicate that 6 samples Y1 to Y6 are selected. Thus, the comparison score is in the range [-6, 6], generating 13 offsets. The selective classifier C1s provides the encoder with more options for trading off offset signaling overhead against classification granularity.
[0225] In some examples, like C1s, the variant (of C1) only counts comparison scores [0, +N], so in the previous example of bitmask 01111110, where the comparison scores are in the range [0, 6], 7 offsets would be generated.
[0226] JPEG2024537126000031.jpg47170
[0227] JPEG2024537126000032.jpg70170
[0228] In some examples, another classifier example (C3) uses a bit mask for classification, as shown in Table 2-6. Table 2-6 shows a classifier example that uses a bit mask for classification (the position of the bit mask is underlined). A 10-bit bit mask is signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level to indicate the classifier. For example, a bit mask of 11 1100 0000 means that for a given 10-bit luma sample value, only the most significant four bits are used for classification, which generates a total of 16 classes. Another example bit mask of 10 0100 0001 means that only three bits are used for classification, which generates a total of 8 classes. The bit mask length (N) can 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 signaled in the PH in the picture has the 3 MSB bits b9, b8, b7 used for classification. Another example is a 4-bit bitmask 0011 for the LSBs, with b0 and b1 used for classification. The bitmask classifier can be applied to luma or chroma classification. The use of MSB or LSB for the bitmask N can be fixed or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level.
[0229] In some examples, the luminance position and the C3 bitmask can be combined and switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. Different combinations can result in different classifiers.
[0230] JPEG2024537126000033.jpg158167
[0231] JPEG2024537126000034.jpg80168
[0232] JPEG2024537126000035.jpg56168
[0233] JPEG2024537126000036.jpg110168
[0234] JPEG2024537126000037.jpg231168
[0235] In some examples, the classifier example (C6) uses YUV color transform values for classification. For example, to classify the current Y component, 1 / 1 / 1 collocated or adjacent Y / U / V samples are selected and color transformed to RGB, and the R value is quantized using C3 bandNum as the current Y component classifier.
[0236] JPEG2024537126000038.jpg76168
[0237] In some embodiments, one special subset case of C7 may use only 1 / 1 / 1 collocated or adjacent Y / U / V samples to derive intermediate sample S, which may be considered as a special case of C6 (color transformation by using three components). S may be further fed to a C0 / C3 bandNum classifier. classIdx = bandS = (S*bandNumS) >> BitDepth;
[0238] In some embodiments, like 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 latter example, which jointly uses collocated and adjacent Y / U / V samples for classification (joint bandNum classification of three components for each Y / U / V component).
[0239] In some embodiments, c ij To reduce the signaling overhead of and to limit the value of S within the range of the bit depth, ijOne constraint can be applied: the sum of all c = 1. For example, force c = (1 - other c ij Which c ij Whether (c00 in this example) is forced (derived by other coefficients) can be predefined or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level.
[0240] JPEG2024537126000039.jpg48168
[0241] JPEG2024537126000040.jpg61168
[0242] JPEG2024537126000041.jpg48168
[0243] In some embodiments, another classifier example (C9) may use the spatial gradient information of the cross component / current component as a classifier. Similar to the block gradient classifier above, one sample located at (k,l) may obtain a sample gradient class by: (1) Calculate the gradient (Laplacian or forward / backward) in N directions (2) Calculate the maximum and minimum gradients of M grouped directions (M<=N). (3) We compare the N values with each other and with m thresholds t 1 ~t m Calculate the directionality D by comparing with (4) Apply a geometric transformation according to the relative gradient magnitudes (optional).
[0244] For example, similar to the ALF block classifier, but applied at the sample level for sample classification, we do the following: (1) Calculate the gradient (Laplacian) in four directions (2) Calculate the maximum and minimum values of the gradients in the two grouped directions (H / V and D / A). (3) We compare the N values with each other and with two thresholds t 1 ~tm Calculate the directionality D by comparing with (4) Apply a geometric transformation according to the relative gradient magnitude, as per Table 1-6.
[0245] In some instances, C8 and C9 may be combined to form a joint classifier.
[0246] In some examples, another classifier example (C10) may use the cross / current component edge information for current component classification. By extending the original SAO classifier, C10 may more effectively extract the cross / current component edge information by: (1) Select one direction to calculate two edge strengths, where one direction is formed by the current sample and two adjacent samples, and one edge strength is calculated by subtracting the current sample and one adjacent sample. (2) Quantize each edge strength into M segments using M-1 thresholds Ti. (3) Classify the current component sample using M*M classes.
[0247] 22A-22B show an example of using edge information of cross / current component for current component classification according to some embodiments of the present disclosure. The current sample is represented by c, and the two adjacent samples of the current / cross component are represented by a and b, in this example: (1) One diagonal direction is selected from the four candidate directions. The difference between (ca) and (cb) is the two edge strengths in the range of -1023 to 1023 (for example, for a 10b sequence). (2) Quantize each edge strength into four segments by a common threshold [-T, 0, T]. (3) Classify the current component sample using 16 classes
[0248] As shown in Figures 22A-22B, one diagonal direction is selected, and the differences (ca) and (cb) are quantized to 4 and 4 segments with thresholds [-T, 0, T], thus forming 16 edge segments. The position of (a, b) can be indicated by signaling two syntax elements: edgeDir and edgeStep.
[0249] In some examples, the direction pattern may extend to 0 degrees, 45 degrees, 90 degrees, 135 degrees (45 degrees between directions), or up to 22.5 degrees between directions, or may be signaled at a predefined direction set or SPS / APS / PPS / PH / SH / region (set) / CTU / CU / sub-block / sample level.
[0250] In some instances, the edge strength may be defined as (ba), which simplifies the calculation but at the expense of accuracy.
[0251] In some examples, the M-1 threshold may be predefined or signaled at the SPS / APS / PPS / PH / SH / region (set) / CTU / CU / sub-block / sample level.
[0252] In some examples, the M-1 threshold may be a different set for edge strength calculations, e.g., a different set for (ca), (cb). When using different sets, the total classes may be different. For example, when [-T,0,T] is used to calculate (ca), but [-T,T] is used to calculate (cb), the total classes will be 4*3.
[0253] In some examples, the M-1 threshold may use a "symmetric" property to reduce signaling overhead. For example, a predefined pattern [-T,0,T] may be used, but not [T0,T1,T2], which requires signaling three thresholds. Another example is [-T,T].
[0254] In some instances, the threshold may include only power-of-two values, which not only effectively captures the edge strength distribution but also reduces the comparison complexity (only the MSB N bits need to be compared).
[0255] In some examples, the positions of a and b may be indicated by signaling two syntaxes, as in Figures 22A-22B: (1) edgeDir, which indicates the selected direction, and (2) edgeStep, which indicates the sample distance used to calculate the edge strength.
[0256] In some examples, edgeDir / edgeStep may be predefined or signaled at the SPS / APS / PPS / PH / SH / region (set) / CTU / CU / sub-block / sample level.
[0257] In some examples, edgeDir / edgeStep may be encoded in other ways, such as a Fixed Length Code (FLC) or a Truncated Unary (TU) code, an Exponential-Golomb code with order k (EGk), a Signed EG0 (SVLC), or an Unsigned EG0 (UVLC).
[0258] In some examples, C10 may be combined with bandNumY / U / V or other classifiers to form a joint classifier. For example, combining 16 edge strengths with up to 4 bandNumY bands produces 64 classes.
[0259] In some embodiments, other classifier examples that use only the current component information for the current component classification can be used as the cross-component classification. For example, luma sample information and eo-class are used to derive EdgeIdx to classify the current chroma sample as shown in FIG. 5A and Table 1-1. Other "non-cross-component" classifiers that can be used as the cross-component classifier include edge direction, pixel intensity, pixel variation, pixel variance, pixel Laplacian sum, Sobel operator, Compass operator, high-pass filtered value, low-pass filtered value, etc.
[0260] JPEG2024537126000042.jpg70168
[0261] JPEG2024537126000043.jpg164169
[0262] JPEG2024537126000044.jpg157169
[0263] In some embodiments, an example of jointly using collocated / current and adjacent Y / U / V samples for classification is listed in Table 2-14 below (joint bandNum classification of three components for each Y / U / V component). Table 2-14 shows an example of jointly using collocated / current and adjacent U / V samples for classification. In POC0, offset sets of {2,4,1} are used for {Y,U,V} respectively. Each offset set can be adaptively switched at the level of SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample. Different offset sets can have different classifiers. For example, to classify the current Y4 luma sample as the candidate position (candPos) shown in FIG. 13B and FIG. 13C, Yset0 selects {current Y4, collocated U4, collocated V4} as candidates and uses different bandNum{Y,U,V}={16,1,2} respectively. Let {candY, candU, candV} be the sample values of the selected {Y, U, V} candidates. The total number of classes is 32, and the derivation of the class index can be shown as follows: bandY=(candY*bandNumY)>>BitDepth; bandU=(candU*bandNumU)>>BitDepth; bandV=(candV*bandNumV)>>BitDepth; classIdx=bandY*bandNumU*bandNumV +bandU*bandNumV +bandV
[0264] In some embodiments, the classIdx derivation of the joint classifier can be expressed as an "or-shift" form to simplify the derivation process. For example, for max bandNum={16,4,4}, we have: classIdx=(bandY<<4)|(bandU<<2)|bandV
[0265] JPEG2024537126000045.jpg99168
[0266] In some embodiments, examples of jointly using collocated and adjacent Y / U / V samples for current Y / U / V sample classification are enumerated, for example, as shown in Table 2-15 below (joint edgeNum(C1s) and bandNum classification of three components for each Y / U / V component). Edge CandPos is the center position used for the classifier of C1s, edge bitMask is the activation indicator of the adjacent samples of C1s, and edgeNum is the number of the corresponding C1s class. In this example, C1s is only applied to the Y classifier where edge candPos is always Y4 (current / collocated sample position) (hence edgeNum is equal to edgeNumY). However, C1s can also be applied to the Y / U / V classifier with edge candPos as the adjacent sample position.
[0267] JPEG2024537126000046.jpg241168JPEG2024537126000047.jpg250168JPEG2024537126000048.jpg49169
[0268] In some embodiments, as described above, for a single component, multiple C0 classifiers may be combined (different position or weight combinations, bandNum) to form a joint classifier. This joint classifier may combine other components to form another joint classifier, for example, two Y samples (candY / candX and bandNumY / bandNumX), one U sample (candU and bandNumU), and one V sample (candV and bandNumV) are used to classify one U sample (Y / V can have the same concept). The derivation of the class index can be shown as follows: bandY=(candY*bandNumY)>>BitDepth; bandX=(candX*bandNumX)>>BitDepth; bandU=(candU*bandNumU)>>BitDepth; bandV=(candV*bandNumV)>>BitDepth; classIdx=bandY*bandNumX*bandNumU*bandNumV +bandX*bandNumU*bandNumV +bandU*bandNumV +bandV;
[0269] In some embodiments, when using multiple C0s for one single component, some decoder norm constraints or encoder compatibility constraints may be applied. The constraints include: (1) the selected C0 candidates must be different from each other (e.g., candX!=candY), and / or (2) the newly added bandNum must be smaller than other bandNum (e.g., bandNumX<=bandNumY). By applying intuitive constraints within one component (Y), redundant cases may be removed to save bit cost and complexity.
[0270] JPEG2024537126000049.jpg107169
[0271] In some embodiments, the maximum number of classes or offsets (combinations of multiple classifiers used jointly, e.g., C1s edgeNum*C1 bandNumY*bandNumU*bandNumV) for each set (or all added sets) can be fixed or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. For example, max is fixed for all added sets: class_num=256*4, and the constraint can be checked using a conformance check in the encoder or a normative check in the decoder.
[0272] In some embodiments, restrictions can be applied to the C0 classification, for example restricting band_num (bandNumY, bandNumU, or bandNumV) to be only power-of-two values. Instead of explicitly signaling band_num, the syntax band_num_shift is signaled. The decoder can use shift operations to avoid multiplications. Different band_num_shift can be used for different components. class(C0)=(Y0>>band_num_shift)>>bit_depth
[0273] Another example of manipulation is to take rounding into account to reduce error. class(C0)=((Y0+(1<<(band_num_shift-1)))>>band_num_shift)>>bit_depth
[0274] JPEG2024537126000050.jpg144169
[0275] Offset Signaling
[0276] JPEG2024537126000051.jpg66169
[0277] In some embodiments, the maximum 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 / Sub-block / Sample level. For example, the maximum offset is between [-15, 15]. Different components can have different maximum offset values.
[0278] In some embodiments, the offset signaling 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}.
[0279] In some embodiments, the offsets can be stored in an APS or memory buffer for reuse for the next picture / slice. An index can be signaled to indicate the stored previous frame offset to be used for the current picture.
[0280] JPEG2024537126000052.jpg49168
[0281] JPEG2024537126000053.jpg66168
[0282] JPEG2024537126000054.jpg59168
[0283] JPEG2024537126000055.jpg83168
[0284] JPEG2024537126000056.jpg67168
[0285] In some embodiments, when multiple classifiers are used in the same POC, different offset sets are signaled separately or jointly.
[0286] JPEG2024537126000057.jpg155168
[0287] JPEG2024537126000058.jpg142168
[0288] JPEG2024537126000059.jpg156168
[0289] JPEG2024537126000060.jpg241168JPEG2024537126000061.jpg74168
[0290] JPEG2024537126000062.jpg88170
[0291] In some embodiments, the offset can be calculated as CcSaoOffsetVal=(1-2*ccsao_offset_sign_flag)*(ccsao_offset_abs<<(BitDepth-Min(10,BitDepth))).
[0292] In some embodiments, offset quantization can be encoder selectable (programmable). Whether offset quantization is enabled (on / off control) and the indicated quantization step size can be predefined or signaled at the SPS / APS / PPS / PH / SH / Region (set) / CTU / CU / Sub-block / sample level. For example, the quantization step size is predefined according to the bit depth or resolution and switched at PH. The on / off control flag and the quantization step size can be stored in the APS for future frame reuse. The range of step sizes supported in this sequence can be predefined or signaled at the SPS / APS / PPS / PH / SH / Region (set) / CTU / CU / Sub-block / sample level. The offset quantization mechanism allows the encoder to trade off bit cost and image quality improvement for offset accuracy.
[0293] In some embodiments, the offset binarization method may depend on the quantization step size. The offset binarization method can be predefined or signaled at the SPS / APS / PPS / PH / SH / region (set) / CTU / CU / subblock / sample level. Different components can have different {on / off control, quantization step size, offset binarization method} or share the same {on / off control, quantization step size, offset binarization method}. For example, U / V use the same one and Y use a different one. Different sequence bit depths can have different predefined quantization step sizes / offset binarization methods. For example, use different EGk orders for different quantization step sizes.
[0294] For example, predefine step size={0,0,2,4,6} for a sequence of {8b,10b,12b,14b,16b} and switch step size / binarization method at different levels.
[0295] For example, for an 8b sequence, it would look like this: 1 SPS flag to enable offset quantization, predefined step size = 0 (offset = 0, +-1, +-2...) · One PH syntax to adaptively change the step size to 2 (offset=0,+-4,+-8...) One domain (set) level syntax for adaptively changing step size per set (Set0=0,Set1=1...) One region (set) level syntax to switch among predefined binarization methods: Set0:TU,Set1:EG1,Set2:FLC...
[0296] For example, for a 10b sequence, it would look like this: 1 SPS flag to enable offset quantization, predefined step size = 1 (offset = 0, +-2, +-4...) · Mapping of predefined quantization step sizes to binarization: 0 -> EG0, 1 -> EG1, 2 -> EG2 · One APS syntax to store the previously used quantization step size (q) according to the EGk order. A new picture can add a new APS index. Index0:Set0:q=0,Set1:q=2,Set2:q=1,Set3:q=0 Index1:Set0:q=1,Set1:q=0,Set2:q=0,Set3:q=2 … Each region (set) of a picture can reuse the quantization step size (q) according to the EGk order in the stored APS.
[0297] For example, for sequences of {<480p, 720p, 1080p, 4K, >=8K}, we predefine step size = {0, 0, 2, 4, 6} and switch step size / binarization method at different levels.
[0298] In some embodiments, the concept of filter strength is further introduced herein. For example, the offset of the classifier can be further weighted before applying to the samples. The weights (w) can be selected from a table of powers of two, e.g., +-1 / 4, +-1 / 2, 0, +-1, +-2, +-4..., etc., where |w| includes only powers of two values. The weight index can be signaled at the level of SPS / APS / PPS / PH / SH / Region (Set) / CTU / CU / Sub-Block / Sample. Quantized offset signaling can be considered as a subset of this weight application. When applying recursive CCSAO as shown in Figure 13D, a similar weight index mechanism can be applied between the first and second stages.
[0299] In some instances of weighting for different classifiers, offsets for multiple classifiers can be applied to the same sample with a combination of weights. A similar weight index mechanism 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+...
[0300] Adaptive Parameter Set (APS)
[0301] JPEG2024537126000063.jpg233170JPEG2024537126000064.jpg242170JPEG2024537126000065.jpg55170
[0302] 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 (for example) from 0 to 7, inclusive.
[0303] 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 of 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 MUST 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 MUST be less than or equal to the TemporalId of the current picture.
[0304] 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 may have different maximum number limitations. If the APS offset set is full, the newly added offset set can replace one of the existing stored offsets by First In, First Out (FIFO), Last In, First Out (LIFO), or Least-Recently-Used (LRU) mechanism. Otherwise, it receives an index value indicating the APS offset set to be replaced. In some examples, if the selected classifier consists of candPos / edge information / coding information, etc., all classifier information can be captured as part of the APS offset set and can also be stored in the APS offset set along with its offset value. In some cases, the above update mechanisms may be predefined or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level.
[0305] In some embodiments, a constraint called "pruning" can be applied: for example, newly received classifier information and offsets must not be the same as any of the stored APS offset sets (of the same component or across different components).
[0306] JPEG2024537126000066.jpg234170JPEG2024537126000067.jpg248170JPEG2024537126000068.jpg46170
[0307] In some embodiments, the pruning criteria can be relaxed to give the encoder a more flexible way to tradeoff, for example allowing N offsets to differ when applying the pruning operation (e.g., N=4), and in another example allowing a delta in the value of each offset (represented as "thr") when applying the pruning operation (e.g., +-2).
[0308] In some embodiments, the two criteria may be applied simultaneously or separately, and the application of each criterion is predefined or toggled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level.
[0309] In some embodiments, N / thr can be predefined or switched at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level.
[0310] In some embodiments, the FIFO updates can be done as follows: (1) cyclically updating from the previously left set idx as in the example above (if all have been updated, start from set 0 again), (2) updating from set 0 each time. In some examples, updates can be done at the PH (as in the example) or SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level when a new offset set is received.
[0311] JPEG2024537126000069.jpg235170JPEG2024537126000070.jpg131170
[0312] In some embodiments, different components may have different update mechanisms.
[0313] In some embodiments, different components (e.g. U / V) can share the same classifier (same candPos / edge info / encoding info / offset can further have weights with modifiers).
[0314] JPEG2024537126000071.jpg234170JPEG2024537126000072.jpg241170JPEG2024537126000073.jpg98170
[0315] In some embodiments, the DPCM delta offset value may be signaled with FLC / TU / EGk (order=0,1,...) code. One flag indicating whether to enable DPCM signaling may be signaled for each offset set. 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 may be predefined or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / subblock / sample level. For example, one way is to directly signal the offset with quantization step=2. CcSaoOffsetVal=(1―2*ccsao_offset_sign_flag)*(ccsao_offset_abs<<1)
[0316] 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)
[0317] In some embodiments, in order to reduce the direct offset signaling overhead, one constraint may apply, for example, the updated offset value must have the same sign as the old offset value. By using the thus inferred offset sign, the newly updated offset does not require retransmission of the sign flag (the ccsao_offset_sign_flag is assumed to be the same as the old offset).
[0318] In some embodiments, sample processing is described below. Let R(x, y) be the input luminance sample value or chrominance sample value before CCSAO, and R'(x, y) be the output luminance sample value or chrominance sample value after CCSAO, then it is as follows. offset = ccsao_offset[class_index of R(x,y)] R‘(x,y) = Clip3(0, (1<<bit_depth)-1, R(x,y)+offset)
[0319] Sample Processing
[0320] According to the above formula, each luminance or chrominance 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 luminance or chrominance sample value R(x, y). The clip function Clip3 is applied to (R(x, y)+offset) to bring the output luminance or chrominance sample value R'(x, y) within the dynamic range of the bit depth, for example, in the range from 0 to (1<<bit_depth)-1.
[0321] For each luminance or chrominance sample, first, classify using the classifier indicated by the current picture / current offset set idx. Second, add the corresponding offset of the derived class index, and third, clip to the bit depth dynamic range.
[0322] FIG. 6 is a block diagram illustrating that, according to some embodiments of the present disclosure, both the proposed bilateral filter (BIF) and the SAO use samples from the deblocking stage as input.
[0323] JPEG2024537126000074.jpg92170
[0324] In some embodiments, different clipping combinations offer different trade-offs between correction precision and hardware temporary buffer size (register or SRAM bit width).
[0325] FIG. 6 shows clipping of SAO / BIF offset. More specifically, for example, FIG. 6 shows the current BIF design when interacting with SAO. The offsets from SAO and BIF are added to the input sample, and then one bit depth clipping is performed. However, when CCSAO also joins the SAO stage, two possible clipping designs can be selected: (1) adding one additional bit depth clipping to CCSAO, and (2) one harmonized design that performs joint clipping after adding SAO / BIF / CCSAO offset to the input sample. In some embodiments, the BIF is applied only to luma samples, so the above clipping designs only differ in luma samples.
[0326] Boundary Processing
[0327] In some embodiments, the boundary process is described below. If any of the collocated and adjacent luma (chroma) samples used for classification are outside the current picture, the CCSAO is not applied to the current chroma (chroma) sample. Figures 23A-23B are block diagrams illustrating that, according to some embodiments of the present disclosure, if any of the collocated and adjacent luma (chroma) samples used for classification are outside the current picture, the CCSAO is not applied to the current chroma (chroma) sample. For example, in Figure 23A, if a classifier is used, the CCSAO is not applied to the chroma components in the left one column of the current picture. For example, as shown in Figure 23B, if C1' is used, the CCSAO is not applied to the chroma components in the left one column and the top one row of the current picture.
[0328] 24A-24B are block diagrams illustrating that, according to some embodiments of the present disclosure, if any of the collocated and adjacent luma or chroma samples used for classification are outside the current picture, the CCSAO is applied to the current luma or chroma sample. In some embodiments, as a variant, if any of the collocated and adjacent luma or chroma samples used for classification are outside the current picture, the missed sample may be repeated as shown in FIG. 24A, or the missed sample may be mirror-padded as shown in FIG. 24B to create a sample for classification, and the CCSAO may be applied to the current luma or chroma sample. In some embodiments, if any of the collocated and adjacent luma (chroma) samples used for classification are outside the current sub-picture / slice / tile / patch / CTU / 360 virtual boundary, the invalid / repeated / mirrored picture boundary processing methods disclosed herein may also be applied to the sub-picture / slice / tile / CTU / 360 virtual boundary (VB).
[0329] For example, a picture is divided into one or more tile rows and one or more tile columns. A tile is a sequence of CTUs that covers a rectangular area of the picture.
[0330] 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.
[0331] A subpicture contains one or more slices that collectively cover a rectangular area of the picture.
[0332] In some embodiments, since 360-degree video is captured on a sphere and does not have inherently "borders", reference samples that fall outside the boundaries of the reference picture in the projection domain can always be obtained from neighboring samples in the spherical domain. In a projection format that consists of multiple faces, no matter what compact frame packing arrangement is used, discontinuities between two or more adjacent faces will appear in the frame-packed picture. In VVC, vertical and / or horizontal virtual boundaries are introduced where in-loop filtering operations are disabled, and the locations of these boundaries are signaled in either the SPS or the picture header. Compared to using two tiles, one for each set of consecutive faces, the use of 360 virtual boundaries is more flexible since the size of the faces does not need to be a multiple of the CTU size. In some embodiments, the maximum number of vertical 360 virtual boundaries is 3, and the maximum number of horizontal 360 virtual boundaries is also 3. In some embodiments, the distance between two virtual boundaries is equal to or greater than the CTU size, and the granularity of the virtual boundaries is 8 luma samples, e.g., an 8x8 sample grid.
[0333] 28A-28B are block diagrams illustrating that, according to some embodiments of the present disclosure, CCSAO is not applied to a current chroma sample if the corresponding selected collocated 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 that separates a space in a picture frame. In some embodiments, if a virtual boundary (VB) is applied in the current frame, CCSAO is not applied to chroma samples that select a corresponding luma location outside the virtual space defined by the virtual boundary. FIGS. 28A-28B are examples of virtual boundaries for a C0 classifier with nine potential luma locations. For each CTU, CCSAO is not applied to chroma samples whose corresponding selected luma location is outside the virtual space bounded by the virtual boundary. For example, in FIG. 28A, CCSAO is not applied to chroma sample 2802 when the selected Y7 luma sample location is on the opposite side of the horizontal virtual boundary 2806, which is located four pixel lines from the bottom of the frame. For example, in FIG. 28B, CCSAO is not applied to chroma sample 2804 when the selected Y5 luma sample location is located on the opposite side of a vertical imaginary boundary 2808 that is y pixel lines from the right side of the frame.
[0334] 32A-32B show that some embodiments of the present disclosure can apply repeated padding or mirror padding to luma samples outside the virtual boundary. FIG. 32A shows an example of repeated padding. If the original Y7 is selected as a classifier located below VB3202, the luma sample value of Y4 is used for classification (copied to the position of Y7) instead of the original Y7 luma sample value. FIG. 32B shows an example of mirror padding. If Y7 is selected as a classifier located below VB3204, the Y1 luma sample value, which is symmetrical to the Y7 value with respect to the Y0 luma sample value, is used for classification instead of the original Y7 luma sample value. The padding method gives more chroma sample possibilities for applying CCSAO, so more coding gain can be achieved.
[0335] In some embodiments, restrictions can be applied to reduce the line buffers required for CCSAO and simplify boundary processing condition checks. FIG. 26A shows that if all nine collocated adjacent luma samples are used for classification according to some embodiments of the present disclosure, an additional luma line buffer may be required, namely, line-5 full line luma samples above the current VB1602. FIG. 18A-G show an example of using only six luma candidates for classification, which reduces the line buffer and does not require additional boundary checks in FIG. 23A-B and FIG. 24A-B.
[0336] In some embodiments, using luma samples for CCSAO classification may increase the luma line buffer and thus increase the hardware implementation cost of the decoder. FIG. 25 shows a diagram in which the CCSAO of nine luma candidates beyond VB 1702 may increase two additional luma line buffers in AVS according to some embodiments of the present disclosure. For luma and chroma samples above the virtual boundary (VB) 1702, DBF / SAO / ALF is processed in the current CTU row. For luma and chroma samples below VB 1702, DBF / SAO / ALF is processed in the next CTU row. In the hardware design of the AVS decoder, the pre-DBF samples of luma lines -4 to -1, the pre-SAO samples of line -5, and the pre-DBF samples of chroma lines -3 to -1, the 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, the luma and chroma samples that are not in the line buffers are not available. However, for example, at the location of chroma line -3(b), the chroma sample is processed in the next CTU row, but CCSAO needs pre SAO luma sample lines -7, -6, and -5 for classification. Pre SAO luma sample lines -7 and -6 are not available because they are not in the line buffer. Also, adding pre SAO luma sample lines -7 and -6 to the line buffer increases the hardware implementation cost of the decoder. In some examples, luma VB (line -4) and chroma VB (line -3) can be different (not aligned).
[0337] Similar to FIG. 25, FIG. 26A illustrates how in VVC, nine luma candidate CCSAOs beyond VB1802 may increase one additional luma line buffer, according to some embodiments of the present disclosure. Different standards allow VB to be different. In VVC, luma VB is line -4, and chroma VB is line -2, so nine candidate CCSAOs may increase one luma line buffer.
[0338] In some embodiments, in the first solution, if any of the luma candidates of the chroma sample are beyond VB (outside the VB of the current chroma sample), the CCSAO is disabled for the chroma sample. Figures 27A-27C show that in AVS and VVC, according to some embodiments of the present disclosure, if any of the luma candidates of the chroma sample are beyond VB2702 (outside the VB of the current chroma sample), the CCSAO is disabled for the chroma sample. Figures 28A-28B also show some examples of this implementation.
[0339] In some embodiments, in the second solution, repetitive padding is used for the CCSAO from the luma line close to and on the opposite side of the VB, e.g., luma line -4, of the "cross VB" luma candidate. In some embodiments, repetitive padding from the luma nearest neighbor below the VB is implemented for the "cross VB" chroma candidate. Figures 29A-29C show that in AVS and VVC, according to some embodiments of the present disclosure, if any of the luma candidates of the chroma sample are beyond the VB 2902 (outside the VB of the current chroma sample), the CCSAO is enabled using repetitive padding of the chroma sample. Figure 28A also shows some examples of this implementation.
[0340] In some embodiments, in the third solution, mirror padding is used for CCSAO from below the luma VB of the "cross VB" luma candidate. Figures 30A-30C show that in some embodiments of the present disclosure, CCSAO is enabled using mirror padding of chroma samples in AVS and VVC when any of the luma candidates of chroma samples is beyond VB 3002 (outside the VB of the current chroma sample). Figures 28B and 24B also show some examples of this implementation. In some embodiments, as a fourth solution, "two-sided symmetric padding" is used to apply the CCSAO. Figures 31A-31B show that in some embodiments of the present disclosure, CCSAO is enabled using two-sided symmetric padding for several examples of different CCSAO shapes (e.g., 9 luma candidates (Figure 31A) and 8 luma candidates (Figure 31B)). For luma sample sets with luma samples centered in the juxtaposition of chroma samples, if one side of the luma sample set is outside of VB3 102, then double-sided symmetric padding is applied to both sides of the luma sample set. For example, in Figure 31A, luma samples Y0, Y1, and Y2 are outside of VB3 102, so both Y0, Y1, Y2 and Y6, Y7, Y8 are padded using Y3, Y4, Y5. For example, in Figure 31B, luma sample Y0 is outside of VB3 102, so Y0 is padded using Y2 and Y7 is padded using Y5.
[0341] 26B illustrates a diagram in which a selected chroma candidate may exceed VB and require an additional chroma line buffer when collocated or adjacent chroma samples are used to classify a current luma sample, according to some embodiments of the present disclosure. Similar solutions 1-4 described above can be applied to handle the problem.
[0342] Solution 1 is to disable CCSAO for luma samples when any of the chroma candidates may exceed VB.
[0343] Solution 2 is to use repeated padding from chroma nearest neighbors below VB for "cross-VB" chroma candidates.
[0344] Solution 3 is to use mirror padding from below chroma VB for the "cross VB" chroma candidates.
[0345] Solution 4 is to use "double-sided symmetric padding". For a candidate set centered on the collocated chroma sample of CCSAO, if one side of the candidate set is outside the VB, double-sided symmetric padding is applied on both sides.
[0346] The padding method gives more possibilities for luma or chroma samples to apply CCSAO, so more coding gain can be achieved.
[0347] In some embodiments, the special processing above (solutions 1, 2, 3, 4) is not applied to the bottom picture (or slice, tile, brick) boundary CTU row, because the samples below VB are processed in the current 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-by-CTU for each CTU row. Deblocking needs to be applied along the horizontal CTU boundary between the current CTU row and the next CTU row. CTB VB is applied to each CTU row. Because, within one CTU, at the bottom 4 / 2 luma / chroma line, DBF samples (for VVC) are processed in the next CTU row and are not available for CCSAO in the current CTU row. However, for the bottom CTU row in the picture frame, there are no next CTU rows remaining, so the DBF samples for the bottom 4 / 2 luma / chroma lines are available in the current CTU row, and these are DBF processed in the current CTU row.
[0348] In some embodiments, the VBs displayed in Figures 13-22 may be replaced with the boundaries of the subpicture / slice / tile / patch / CTU / 360 virtual boundary. In some embodiments, the positions of the chroma and luma samples in Figures 13-22 may be switched. In some embodiments, the positions of the chroma and luma samples in Figures 6, 23A-32B may be replaced with the positions of the first and second chroma samples. In some embodiments, the ALF VBs 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.
[0349] In some embodiments, restrictions can be applied to reduce the line buffers required for CCSAO and simplify boundary processing condition checks. FIG. 26A shows that an additional one luma line buffer (full line luma samples of lines:-5) may be required if all nine collocated adjacent luma samples are used for classification. FIG. 33A-B show restrictions using a limited number of luma candidates for classification according to some embodiments of the present disclosure. FIG. 33A shows a restriction to using only six luma candidates for classification. FIG. 33B shows a restriction to using only four luma candidates for classification.
[0350] Application area
[0351] In some embodiments, an application region is implemented. The unit of the CCSAO application region can be CTB-based, i.e., the on / off control, CCSAO parameters (offset, luminance candidate position, band_num, bitmask, etc., used for classification, offset set index) are the same in one CTB.
[0352] 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. The syntax (on / off control, CCSAO parameters) is still signaled for each CTB, but the actual application region is not aligned to the CTB boundary. Figure 34 shows that the CCSAO application region is not aligned to the CTB / CTU boundary 3406 according to some embodiments of the present disclosure. For example, the application region is not aligned to the chroma CTB / CTU boundary 3406, but is (4,4) samples shifted up-left to the VB 3408. This non-aligned CTB boundary design benefits the deblocking process because the same deblocking parameters are used for each 8x8 deblocking process region.
[0353] JPEG2024537126000075.jpg70170
[0354] In some embodiments, the CCSAO application region frame division can be fixed, for example, dividing the frame into N regions. Figure 35 illustrates that the CCSAO application region frame division can be fixed with CCSAO parameters according to some embodiments of the present disclosure.
[0355] 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 the CTB on / off control flag and the region on / off control flag. Figures 35(a) and (b) show an example of a frame divided into N regions. Figure 35(a) shows a vertical division of four regions. Figure 35(b) shows a square division of four regions. In some embodiments, similar to the picture-level CTB-wide 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 is applied to all CTBs of this region without further signaling the CTB flag.
[0356] In some embodiments, different CCSAO application regions can share the same region on / off control and CCSAO parameters. For example, in Figure 35(c), regions 0-2 share the same parameters, and regions 3-15 share the same parameters. Figure 35(c) also shows that region on / off control flags and CCSAO parameters can be signaled in Hilbert scan order.
[0357] In some embodiments, the unit of the CCSAO application area may be divided into quadtree / binarytree / ternarytree from the picture / slice / CTB level. Similar to the CTB division, a series of division flags are signaled to indicate the CCSAO application area division. Figure 36 shows that the CCSAO application area may be divided into binary tree (BT) / quadtree (QT) / ternarytree (TT) from the frame / slice / CTB level according to some embodiments of the present disclosure.
[0358] JPEG2024537126000076.jpg90170
[0359] JPEG2024537126000077.jpg84170
[0360] FIG. 38 is a block diagram illustrating that CCSAO application region division is dynamic and can be switched at the picture level according to some embodiments of the present disclosure. For example, FIG. 38(a) shows that the picture frame is divided vertically into three regions because three CCSAO offset sets are used in this POC (set_num=3). FIG. 38(b) shows that the picture frame is divided horizontally into four regions because four CCSAO offset sets are used in this POC (set_num=4). FIG. 38(c) shows that the picture frame is raster divided into three regions because three CCSAO offset sets are used in this POC (set_num=3). Each region can have its own whole region on flag to save per CTB on / off control bit. The number of regions depends on the set_num of the signaled picture.
[0361] The CCSAO application area can be a specific area according to the coding information within the block (such as sample position, sample coding mode, loop filter parameters, etc.). For example, 1) the CCSAO application region may only be applied when the sample is skip mode coded, or 2) the CCSAO application region includes only N samples along a CTU boundary, or 3) the CCSAO application region includes only samples on an 8x8 grid in a frame, or 4) the CCSAO application region includes only DBF filtered samples, or (5) the CCSAO application region includes only the top M rows and left N rows in a CU, or (6) the CCSAO application region includes only intra-coded samples, or (7) the CCSAO application region includes only samples in cbf=0 blocks, or (8) the CCSAO application region is only on blocks whose block QP is in the range [N,M], where (N,M) may be pre-defined or signaled at the SPS / APS / PPS / PH / SH / region / CTU / CU / sub-block / sample level. Cross-component coding information may also be taken into account, and (9) the regions where CCSAO is applied are on chroma samples whose collocated luma samples are within a cbf=0 block.
[0362] JPEG2024537126000078.jpg179170
[0363] Another example is to reuse all or part of the bilateral activation constraints (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))))
[0364] In some embodiments, excluding certain regions may benefit the statistics collection of the CCSAO. The derivation of the offset may be more accurate or appropriate for regions that really need correction. For example, blocks with cbf=0 usually mean that the block is perfectly predicted and may not need further correction. Excluding these blocks may benefit the derivation of the offset for other regions.
[0365] Different application regions can use different classifiers. For example, in a CTU, skip mode uses C1, an 8x8 grid uses C2, and skip mode and an 8x8 grid use C3. For example, in a CTU, skip mode coded samples use C1, CU-centered samples use C2, and CU-centered skip mode coded samples use C3. Figure 39 illustrates that a CCSAO classifier can take current or cross-component coding information into account, according to some embodiments 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. Figure 29 also illustrates another example of application regions.
[0366] In some embodiments, a predefined or flag-controlled "area excluding coding information" mechanism can be used in DBF / Pre-SAO / SAO / BIF / CCSAO / ALF / CCALF / NN Loop Filter (NNLF), or other loop filters.
[0367] Syntax
[0368] JPEG2024537126000079.jpg234170JPEG2024537126000080.jpg241170JPEG2024537126000081.jpg241170JPEG2024537126000082.jpg29170
[0369] If a higher-level flag is off, the lower-level flags can be inferred from the off state of that flag and do not need to be signaled. For example, if ph_cc_sao_cb_flag is false for 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.
[0370] JPEG2024537126000083.jpg58170
[0371] In some embodiments, ph_cc_sao_cb_ctb_control_flag, ph_cc_sao_cr_ctb_control_flag indicate whether to enable Cb / Cr CTB on / off control granularity. 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 can be further signaled. Otherwise, without signaling ctb_cc_sao_cb_flag and ctb_cc_sao_cr_flag at CTB level, it depends on ph_cc_sao_cb_flag, ph_cc_sao_cr_flag whether CCSAO is applied at the current picture.
[0372] JPEG2024537126000084.jpg105170
[0373] JPEG2024537126000085.jpg229170JPEG2024537126000086.jpg229170
[0374] JPEG2024537126000087.jpg173170
[0375] In some embodiments, pps_ccsao_info_in_ph_flag and gci_no_sao_constraint_flag may be added to the high level syntax.
[0376] In some embodiments, pps_ccsao_info_in_ph_flag equal to 1 specifies that the information of the CCSAO filter is present in the PH syntax structure and may not be present in slice headers that reference a PPS that does not contain a PH syntax structure. pps_ccsao_info_in_ph_flag equal to 0 specifies that the information of the CCSAO filter is not present in the PH syntax structure and may be present in slice headers that reference a PPS. If not present, the value of pps_ccsao_info_in_ph_flag is inferred to be equal to 0.
[0377] In some embodiments, gci_no_ccsao_constraint_flag equal to 1 specifies that sps_ccsao_enabled_flag shall be equal to 0 for all pictures in OlsInScope. 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 the rules. In the examples herein, OlsInScope refers to one or more OLSs that are in scope. In some examples, a profile_tier_level( ) syntax structure provides level information to which OlsInScope conforms, and optionally profile, tier, sub-profile, and general constraint information. When a 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 lowest layer among the layers that reference the SPS, and this lowest layer is an independent layer.
[0378] Extension to SAO filters after intra and inter prediction
[0379] In some embodiments, the extension to intra and inter post-prediction SAO filters is further shown below. In some embodiments, the SAO classification method disclosed in this disclosure (including cross-component sample / coding information classification) can function as a post-prediction filter, and the prediction can be intra, inter, or other prediction tools such as intra block copy. Figure 40A is a block diagram showing the SAO classification method disclosed in this disclosure functioning as a post-prediction filter according to some embodiments of the present disclosure.
[0380] JPEG2024537126000088.jpg82170
[0381] In some embodiments, the refined prediction samples (Ypred', Upred', Vpred') are updated by adding the corresponding class offsets and then used for intra, inter, or other prediction. Ypred'=clip3(0,(1< <bit_depth)-1,Ypred+h_Y[i]) Upred'=clip3(0,(1< <bit_depth)-1,Upred+h_U[i]) Vpred'=clip3(0,(1< <bit_depth)-1,Vpred+h_V[i])
[0382] JPEG2024537126000089.jpg68170
[0383] In some embodiments, the improved prediction samples (Upred'', Vpred'') are updated by adding the corresponding class offsets and then used for intra, inter, or other prediction. Upred''=clip3(0,(1< <bit_depth)-1,Upred’+h’_U[i]) Vpred''=clip3(0,(1< <bit_depth)-1,Vpred’+h’_V[i])
[0384] In some embodiments, intra and inter prediction may use different SAO filter offsets.
[0385] Extension to post-reconstruction filters
[0386] FIG. 15C is a block diagram illustrating the SAO classification method disclosed in the present disclosure acting as a post-reconstruction filter, according to some embodiments of the present disclosure.
[0387] In some embodiments, the SAO / CCSAO classification method disclosed herein (including cross-component sample / coded information classification) can function as a filter applied to the reconstructed samples of a Tree Unit (TU). As shown in FIG. 15C, the CCSAO can function as a post-reconstruction filter. That is, it uses the reconstructed samples (after prediction / residual sample addition, before deblocking) as input for classification and compensates luma / chroma samples before entering neighboring intra / inter prediction. The CCSAO post-reconstruction filter can reduce the distortion of the current TU sample and provide better prediction for neighboring intra / inter blocks. With more accurate prediction, better compression efficiency can be expected.
[0388] Encoding Algorithm
[0389] JPEG2024537126000090.jpg117170
[0390] Progressive search method
[0391] In some embodiments, the N category (N Y N U N V ), a multi-stage early stopping method is applied to search for the best classifier consisting of N categories. When the classifier with fewer categories does not improve the RD cost, the classifier with more categories is skipped. Multiple breakpoints are set based on different configurations for early stopping of N categories. For example, in AI, every 4 categories (N Y N U N V <4,8,12…). In RA / LB, there are 16 categories (N Y N U N V <16,32,64...).
[0392] In addition, the classifier Y N U Or N VIf the total number of categories N is less than the threshold, or if the total number of categories N is greater than the threshold, the coding is skipped. This gradual approach not only adjusts the overall bit cost, but also significantly reduces the coding time. This process is repeated for nine Y col Iterate over the positions to determine the best single classifier.
[0393] Improved offset value
[0394] JPEG2024537126000091.jpg61170
[0395] In some embodiments, for a category k, s(k), x(k) are the sample position, the original sample, and the sample before CCSAO, E is the sum of the differences between s(k) and x(k), N is the sample count, ΔD is the delta distortion estimated by applying an offset h, Δj is the RD cost, λ is the Lagrange multiplier, and R is the bit cost.
[0396] In some embodiments, the original samples can be true original samples (raw image samples without pre-processing) or original samples of a motion compensated temporal filter (MCTF, one classical coding algorithm pre-processes the original samples before encoding). λ can be the same as SAO / ALF or weighted by a factor (depending on the configuration / resolution).
[0397] In some embodiments, the encoder optimized the CCSAO by trading off the total RD cost of all categories.
[0398] In some embodiments, the statistical data E and N for each category are stored for each CTB to further determine multiple region classifiers.
[0399] Robust Multiple Classifier Allocation
[0400] In some embodiments, to examine whether the second classifier benefits the overall picture quality, the CTBs with CCSAO enabled are sorted in ascending order according to distortion (or according to RD cost, including bit cost).
[0401] In some embodiments, the half (or predefined / dependent ratio, e.g. (setNum-1) / setNum-1) of CTBs with smaller distortion keep the same classifier, and the other half of CTBs are trained with a new second classifier. Meanwhile, during the refinement of the CTB on-off offset, each CTB may select its best classifier, so that the good classifier may propagate to more CTBs. In the spirit of shuffle and spread, this strategy gives both randomness and robustness in parameter determination. If the number of current classifiers does not further improve the RD cost, more multiple classifiers are skipped.
[0402] 41 illustrates a computing environment 4110 coupled with a user interface 4150. The computing environment 4110 may be part of a data processing server. The computing environment 4110 includes a processor 4120, a memory 4130, and an input / output (I / O) interface 4140.
[0403] The processor 4120 typically controls the overall operation of the computing environment 4110, such as operations associated with display, data acquisition, data communication, and image processing. The processor 4120 may include one or more processors for executing instructions to perform all or a portion of the steps in the methods described above. Additionally, the processor 4120 may include one or more modules that facilitate interaction between the processor 4120 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.
[0404] The memory 4130 is configured to store various types of data to support the operation of the computing environment 4110. The memory 4130 may include predefined software 4132. Examples of such data include instructions for any application or method that operates on the computing environment 4110, video data sets, image data, etc. The memory 4130 may be realized by using any type of volatile or non-volatile memory device or combination 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 disk, or optical disk.
[0405] The I / O interface 4140 provides an interface between the processor 4120 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 4140 may be coupled to an encoder and a decoder.
[0406] FIG. 42 is a flowchart illustrating a method for video decoding according to an example of this disclosure.
[0407] In step 4201, the processor 4120 may obtain, from the video decoder side, a CCSAO quantization associated with an offset quantization control syntax and a quantization step size predefined or indicated by the encoder at at least one level.
[0408] In some examples, the quantization step size may be predefined as 12 for a 12b sequence. In some examples, the encoder may change the quantization step size at a low level by signaling.
[0409] In some examples, the at least one level may include at least one of an SPS level, an APS level, a PPS level, a PH level, a Sequence Header (SH) level, a region level, a CT level, a sub-block level, or a sample level.
[0410] In some examples, the processor may obtain a predefined quantization step size depending on the bit depth or resolution.
[0411] In some examples, the processor may retrieve the offset quantization control syntax and the quantization step size stored in the APS.
[0412] In some examples, the processor may receive the range of supported quantization step sizes in a sequence, and the range of supported quantization step sizes may be predefined or signaled at at least one level.
[0413] In some examples, the processor may obtain an offset binarization method determined according to a quantization step size, and the offset binarization method may be predefined or signaled at at least one level.
[0414] In some examples, the processor may obtain different predefined offset binarization methods for different quantization step sizes.
[0415] In some examples, the different quantization binarization methods may include Exponential Golomb (EGk) coding, Truncated Unary (TU) coding, and Fixed Length Coding (FLC).
[0416] In some examples, different quantization step sizes may be predefined using different Exponential-Golomb (EGk) orders.
[0417] In some examples, for an 8b sequence, an offset quantization control syntax enabling offset quantization may be signaled at the SPS level, where the quantization step size is predefined as 0 at the SPS level, and a PH syntax may be signaled to adaptively change the quantization step size to 2, a first region / CTU level syntax may be signaled to adaptively change the quantization step size for multiple sets, and a second region / CTU level syntax may be signaled to switch between different offset binarization methods for the multiple sets.
[0418] In some examples, for 10b sequences, an offset quantization control syntax enabling offset quantization may be signaled at the SPS level, the quantization step size may be predefined as 1 at the SPS level, the quantization step size may be predefined to a binarization mapping, multiple previously used quantization step sizes are stored in the APS syntax, and multiple previously used quantization step sizes are stored according to the EGk order.
[0419] In some examples, the configuration of the offset quantization control syntax and quantization step size is not limited to the above configurations for 8b sequences, 10b sequences, or other sequences.
[0420] In some examples, each region grouped to a picture may reuse multiple quantization step sizes stored in the APS syntax.
[0421] In step 4202, the processor 4120 may obtain a CCSAO based on the CCSAO quantization.
[0422] In the example of 8b sequence described in the offset signaling section, the quantization step size is predefined by the encoder as 0, and one SPS flag is defined to enable offset quantization. Therefore, based on the predefined quantization step size, the value of CCSAO can be determined as 0, +-1, +-2.... The predetermination of the quantization step size for 8b sequence is not limited to this configuration.
[0423] In the example of the 10b sequence described in the offset signaling section, the quantization step size is predefined by the encoder as 1, and one SPS flag is defined to enable offset quantization. Therefore, based on the predefined quantization step size, the value of the CCSAO can be determined as 0, +-2, +-4.... The predetermination of the quantization step size for the 10b sequence is not limited to this configuration.
[0424] In some examples, the CCSAO may be applied to categories classified based on multiple collocated samples selected respectively for multiple components of the reconstituted sample.
[0425] In some examples, the multiple components may include a first component and a second component, and the first component and the second component may have different offset quantization control syntax values, different quantization step sizes, or different offset binarization methods.
[0426] In some examples, the first component may include one of a Y component, a U component, or a V component, and the second component may include one of a Y component, a U component, or a V component, where the first component is different from the second component. Further, the multiple components are configured to classify the first component or the second component. For example, the CCSAO may use the first component to classify the second component, obtain a class index for the class, obtain a corresponding offset, and add the offset to the reconstructed samples of the second component.
[0427] In some examples, the multiple components may include a first component and a second component, and the first component and the second component may have the same offset quantization control syntax value, the same quantization step size, or the same offset binarization method.
[0428] In some examples, the first component may include a U component and the second component may include a V component.
[0429] In step 4203, the processor 4120 may add a CCSAO to the reconstructed samples for prediction.
[0430] FIG. 43 is a flowchart illustrating a method for video encoding according to an example of this disclosure.
[0431] In step 4301, the processor 4120 may predefine or signal a quantization step size for CCSAO quantization at at least one level from the encoder side, where the CCSAO quantization may be associated with an offset quantization control syntax and a quantization step size.
[0432] In some examples, the quantization step size may be predefined as 12 for a 12b sequence. In some examples, the encoder may change the quantization step size at a low level by signaling.
[0433] In some examples, the at least one level may include at least one of an SPS level, an APS level, a PPS level, a PH level, a Sequence Header (SH) level, a region level, a CT level, a sub-block level, or a sample level.
[0434] In some examples, the processor 4120 may predefine a quantization step size that is predefined depending on the bit depth or resolution.
[0435] In some examples, the processor 4120 may signal the offset quantization control syntax and the quantization step size stored in the APS.
[0436] In some examples, the processor 4120 may determine the range of supported quantization step sizes in a sequence, where the range of supported quantization step sizes may be predefined or signaled at least at one level.
[0437] In some examples, the processor 4120 may determine the offset binarization method according to the quantization step size, and the offset binarization method may be predefined or signaled at least at one level.
[0438] In some examples, the processor 4120 may determine different predefined offset binarization methods for different quantization step sizes.
[0439] In some examples, the different quantization binarization methods may include Exponential Golomb (EGk) coding, Truncated Unary (TU) coding, and Fixed Length Coding (FLC).
[0440] In some examples, different quantization step sizes may be predefined using different Exponential-Golomb (EGk) orders.
[0441] In step 4302, the processor 4120 may determine the CCSAO based on the CCSAO quantization. In the example of the 8b sequence described in the offset signaling section, the quantization step size may be predefined by the encoder as 0, and one SPS flag is defined to enable offset quantization. Therefore, based on the predefined quantization step size, the value of the CCSAO may be determined as 0, +-1, +-2.... The predetermination of the quantization step size of the 8b sequence is not limited to this configuration.
[0442] In the example of 10b sequence described in the offset signaling section, the quantization step size is predefined by the encoder as 1, and one SPS flag is defined to enable offset quantization. Therefore, based on the predefined quantization step size, the value of CCSAO can be determined as 0, +-2, +-4.... The predetermination of the quantization step size for 8b sequence is not limited to this configuration.
[0443] In some examples, the CCSAO may be applied to categories classified based on multiple collocated samples selected respectively for multiple components of the reconstituted sample.
[0444] In some examples, the multiple components may include a first component and a second component, and the first component and the second component may have different offset quantization control syntax values, different quantization step sizes, or different offset binarization methods.
[0445] In some examples, the first component may include one of a Y component, a U component, or a V component, and the second component may include one of a Y component, a U component, or a V component, where the first component is different from the second component. Further, the multiple components are configured to classify the first component or the second component. For example, the CCSAO may use the first component to classify the second component, obtain a class index for the class, obtain a corresponding offset, and add the offset to the reconstructed samples of the second component.
[0446] In some examples, the multiple components may include a first component and a second component, and the first component and the second component may have the same offset quantization control syntax value, the same quantization step size, or the same offset binarization method.
[0447] In some examples, the first component may include a U component and the second component may include a V component.
[0448] In step 4303, the processor 4120 may encode the CCSAO into a bitstream.
[0449] In some examples, the processor 4120 on the encoder side may transmit the encoded bitstream to the decoder side, which may accordingly perform steps such as those described in FIG.
[0450] In some embodiments, a non-transitory computer-readable storage medium is also provided that includes a plurality of programs executable by the processor 4120 in the computing environment 4110, e.g., in the memory 4130, for performing the above-mentioned methods. In one example, the plurality of programs may be executed by the processor 4120 in the computing environment 4110 to receive (e.g., from the video encoder 20 of FIG. 2) a bitstream or datastream including encoded video information (e.g., video blocks representing encoded video frames, and / or one or more associated syntax elements, etc.) and may also be executed by the processor 4120 in the computing environment 4110 to perform the above-mentioned decoding methods in accordance with the received bitstream or datastream. In another example, the programs may be executed by the processor 4120 in the computing environment 4110 to perform the encoding method described above to encode video information (e.g., video blocks representing video frames and / or associated one or more syntax elements, etc.) into a bitstream or data stream, and may also be executed by the processor 4120 in the computing environment 4110 to transmit the bitstream or data stream (e.g., to the video decoder 30 of FIG. 3). Alternatively, the non-transitory computer-readable storage medium may store therein a bitstream or data stream including encoded video information (e.g., video information including one or more syntax elements) generated by an encoder (e.g., the video encoder 20 of FIG. 2) using the encoding method described above, for use by the decoder (e.g., video blocks representing encoded video frames and / or associated) 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, etc.
[0451] In one embodiment, a computing device is also provided that includes one or more processors (e.g., processor 4120) and a non-transitory computer-readable storage medium or memory 4130 having stored therein a plurality of programs executable by the one or more processors, the one or more processors being configured to perform the above-described method upon execution of the plurality of programs.
[0452] In one embodiment, a computer program product is also provided that includes a number of programs executable by the processor 4120 in the computing environment 4110, e.g., in the memory 4130, for performing the methods described above. For example, the computer program product may include a non-transitory computer-readable storage medium.
[0453] In one embodiment, the computing environment 4110 may be implemented with 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.
[0454] Further embodiments also include various subsets of the above embodiments combined or otherwise rearranged in various other embodiments.
[0455] 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 to a computer-readable medium as one or more instructions or codes and executed by a hardware-based processing unit. The computer-readable medium may include a computer-readable medium corresponding to a tangible medium, such as a data storage medium, or a communication medium, including any medium that facilitates transfer of a computer program from one place to another, for example according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, such as a signal or carrier wave. The data storage medium may be any available medium accessible by one or more computers or one or more processors to retrieve instructions, codes and / or data structures for implementing the embodiments described herein. The computer program product may include a computer-readable medium.
[0456] The description of the present disclosure has been presented for purposes of illustration and is not intended to be exhaustive or limiting of the disclosure. Many modifications, variations and alternative embodiments will be apparent to one skilled in the art having the benefit of the teachings presented in the foregoing descriptions and the associated drawings.
[0457] Unless otherwise specified, the order of steps of the method according to the present disclosure is intended to be illustrative 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.
[0458] The examples have been chosen and described to explain the principles of the disclosure and to enable others skilled in the art to understand the disclosure in its various embodiments and to best utilize the underlying principles and various embodiments with various modifications suited to the particular applications contemplated. It is therefore to be understood that the scope of the disclosure is not limited to the particular examples disclosed, and that modifications and other embodiments are intended to be included within the scope of the disclosure.
Claims
1. 1. A method for video decoding, comprising: obtaining, by the decoder, a Cross-Component Sample Adaptive Offset (CCSAO) quantization associated with an offset quantization control syntax and a quantization step size predefined or indicated by the encoder at at least one level; obtaining, by the decoder, a CCSAO based on the CCSAO quantization; applying, by the decoder, the CCSAO to the reconstructed samples for prediction; A method comprising:
2. 2. The method of claim 1, wherein the at least one level comprises at least one of a Sequence Parameter Set (SPS) level, an Adaption Parameter Set (APS) level, a Picture Parameter Set (PPS) level, a Picture Header (PH) level, a Sequence Header (SH) level, a region level, a Coding Tree Unit (CTU) level, a sub-block level, or a sample level.
3. obtaining, by the decoder, the quantization step size predefined according to a bit depth or resolution. The method of claim 1 further comprising:
4. obtaining, by the decoder, the offset quantization control syntax and the quantization step size stored in an adaptation parameter set (APS). The method of claim 1 further comprising:
5. receiving, by the decoder, a sequence of ranges of supported quantization step sizes, the ranges of supported quantization step sizes being predefined or signaled at the at least one level; The method of claim 1 further comprising:
6. obtaining, by the decoder, an offset binarization method determined as a function of the quantization step size, the offset binarization method being predefined or signaled at the at least one level. The method of claim 1 further comprising:
7. The method of claim 6 , wherein the CCSAO is applied to categories classified based on a plurality of collocated samples selected respectively for a plurality of components of a reconstructed sample.
8. 8. The method of claim 7, wherein the plurality of components comprises a first component and a second component, the first component and the second component having different offset quantization control syntax values, different quantization step sizes, or different offset binarization methods.
9. the first component includes one of a Y component, a U component, or a V component, the second component includes one of the Y component, the U component, or the V component, and the first component is different from the second component; The plurality of components is configured to classify the first component or the second component. The method according to claim 8.
10. 8. The method of claim 7, wherein the plurality of components includes a first component and a second component, the first component and the second component having a same offset quantization control syntax value, a same quantization step size, and a same offset binarization method.
11. The method of claim 10 , wherein the first component comprises a U component and the second component comprises a V component.
12. obtaining, by the decoder, different predefined offset binarization methods for different quantization step sizes. The method of claim 6 further comprising:
13. The method of claim 12, wherein the different quantization binarization methods include Exponential-Golomb (EGk) coding, Truncated Unary (TU) coding, and Fixed-Length Coding (FLC).
14. The method of claim 12 , wherein the different quantization step sizes are predefined using different Exponential-Golomb (EGk) orders.
15. 1. A method for video encoding, comprising: predefining or signaling, by an encoder, a quantization step size for Cross-Component Sample Adaptive Offset (CCSAO) quantization at at least one level, the CCSAO quantization being associated with an offset quantization control syntax and the quantization step size; determining, by the encoder, a CCSAO based on the CCSAO quantization; encoding, by the encoder, the CCSAO into a bitstream; A method comprising:
16. 16. The method of claim 15, wherein the at least one level comprises at least one of a Sequence Parameter Set (SPS) level, an Adaption Parameter Set (APS) level, a Picture Parameter Set (PPS) level, a Picture Header (PH) level, a Sequence Header (SH) level, a region level, a Coding Tree Unit (CTU) level, a sub-block level, or a sample level.
17. predefining, by the encoder, the quantization step size depending on bit depth or resolution. The method of claim 15 further comprising:
18. signaling, by the encoder, the offset quantization control syntax and the quantization step size stored in an adaptation parameter set (APS). The method of claim 15 further comprising:
19. determining, by the encoder, a range of supported quantization step sizes in a sequence, the range of supported quantization step sizes being predefined or signaled at the at least one level; The method of claim 15 further comprising:
20. determining, by the encoder, an offset binarization method as a function of the quantization step size, the offset binarization method being predefined or signaled at the at least one level; The method of claim 15 further comprising:
21. The method of claim 20, wherein the CCSAO is applied to a category classified based on a plurality of collocated samples selected respectively for a plurality of components of a prediction sample.
22. 22. The method of claim 21, wherein the plurality of components comprises a first component and a second component, the first component and the second component having different offset quantization control syntax values, different quantization step sizes, or different offset binarization methods.
23. the first component includes one of a Y component, a U component, or a V component, the second component includes one of the Y component, the U component, or the V component, and the first component is different from the second component; The plurality of components is configured to classify the first component or the second component.
23. The method of claim 22.
24. 22. The method of claim 21, wherein the plurality of components includes a first component and a second component, the first component and the second component having a same offset quantization control syntax value, a same quantization step size, and a same offset binarization method.
25. 25. The method of claim 24, wherein the first component comprises a U component and the second component comprises a V component.
26. determining, by the encoder, different predefined offset binarization methods for different quantization step sizes; 21. The method of claim 20, further comprising:
27. 27. The method of claim 26, wherein the different quantization binarization methods include Exponential-Golomb (EGk) coding, Truncated Unary (TU) coding, and Fixed-Length Coding (FLC).
28. 27. The method of claim 26, wherein the different quantization step sizes are predefined using different Exponential-Golomb (EGk) orders.
29. 1. An apparatus for video decoding, comprising: one or more processors; a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors; Apparatus, wherein the one or more processors are configured to, upon execution of the instructions, perform the method of any one of claims 1 to 14.
30. 1. An apparatus for video encoding, comprising: one or more processors; a memory coupled to the one or more processors and configured to store instructions executable by the one or more processors; Apparatus, wherein the one or more processors are configured to, upon execution of the instructions, perform the method of any one of claims 15 to 28.
31. A non-transitory computer-readable storage medium storing computer-executable instructions that, when executed by one or more computer processors, cause the one or more computer processors to receive a bitstream and perform a method according to any one of claims 1 to 14 based on the bitstream.
32. A non-transitory computer-readable storage medium for storing computer-executable instructions which, when executed by one or more computer processors, cause the one or more computer processors to perform the method according to any of claims 15 to 28 and to transmit the bitstream.
Citation Information
Patent Citations
Image filter device, image decoding device, image encoding device, and data structure
JP2013236358A
Sample Adaptive Offset Control
JP2016525298A
