Video encoding method, computing system, and computer program, and video decoding method
By predicting and jointly signaling coefficient codes during entropy coding, the method addresses inefficiencies in video coding, enhancing compression efficiency and reducing bandwidth needs.
Patent Information
- Application Number
- JP2024544929
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-05-04
- Filing Date
- 2023-05-05
- Publication Date
- 2026-01-22
- Estimated Expiration
- 2043-05-05
AI Technical Summary
Existing video coding technologies face challenges in efficiently compressing video data while maintaining acceptable video quality, particularly in applications with varying distortion tolerance levels, due to limitations in bandwidth and storage resources.
Implementing methods for predicting coefficient signs and jointly signaling multiple predicted coefficient codes during entropy coding, utilizing multi-symbol arithmetic coding to reduce the number of coding bits required.
This approach enhances coding efficiency by reducing bandwidth requirements and improving compression ratios, allowing for more effective video data transmission and storage.
Smart Images

Figure 0007804774000021 
Figure 0007804774000022 
Figure 0007804774000023
Abstract
Description
[Technical Field]
[0001] The disclosed embodiments relate generally to video coding, including, but not limited to, systems and methods for coefficient coding prediction and encoding / decoding of transform coefficients. [Background technology]
[0002] 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 game consoles, smartphones, video teleconferencing devices, video streaming devices, etc. The electronic devices transmit, receive, or otherwise communicate digital video data over communication networks and / or store the digital video data in storage devices. Due to the limited bandwidth capabilities of communication networks and the limited memory resources of storage devices, video coding may be used to compress the video data according to one or more video coding standards before the video data is communicated or stored.
[0003] Several video codec standards have been developed. For example, video coding standards include AOMedia Video 1 (AV1), Versatile Video Coding (VVC), Joint Exploration test Model (JEM), High-Efficiency Video Coding (HEVC / H.265), Advanced Video Coding (AVC / H.265), and Moving Picture Expert Group (MPEG) coding. Video coding generally uses prediction methods (e.g., inter-prediction, intra-prediction, etc.) that exploit the redundancy inherent in video data. The goal of video coding is to compress video data into a format that uses a lower bitrate while avoiding or minimizing degradation of video quality.
[0004] HEVC, also known as H.265, is a video compression standard designed as part of the MPEG-H project. ITU-T and ISO / IEC published HEVC / H.265 in 2013 (Version 1), 2014 (Version 2), 2015 (Version 3), and 2016 (Version 4). Versatile Video Coding (VVC), also known as H.266, is a video compression standard intended as the successor to HEVC. ITU-T and ISO / IEC published the VVC / H.266 standard in 2020 (Version 1) and 2022 (Version 2). AV1 is an open video coding format designed as a replacement for HEVC. The effective version 1.0.0, including errata 1, of the specification was released on January 8, 2019. Summary of the Invention
[0005] As described above, encoding (compression) reduces bandwidth and / or storage space requirements. As described in more detail below, both lossless and lossy compression can be used. Lossless compression refers to a technique in which an exact copy of the original signal can be reconstructed from the compressed original signal through a decoding process. Lossy compression refers to a coding / decoding process in which the original video information is not fully preserved during coding and not fully recovered during decoding. When using lossy compression, the reconstructed signal may not be identical to the original signal, but the distortion between the original and reconstructed signal is small enough to make the reconstructed signal useful for the intended application. The amount of acceptable distortion depends on the application. For example, users of certain consumer video streaming applications may tolerate higher distortion than users of movie or television broadcast applications. The compression ratios available through a particular coding algorithm generally allow for coding algorithms that result in higher loss and higher compression ratios.
[0006] A video encoder and / or decoder may utilize techniques from several broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding. During entropy coding, data related to the operation may be sent to an entropy encoder. The entropy encoder may output a bitstream (coded video sequence), which may be sent to another device via a transmission channel. During the video decoding process, the bitstream may be sent to an entropy decoder (parser). The entropy decoder may obtain data related to the operation based on the bitstream. The data related to the operation may include intra-prediction information, residual information, etc. In some embodiments, entropy encoding / decoding utilizes an arithmetic coding algorithm based on the probability of occurrence of symbols (or characters) as the basis for the arithmetic coding. In some embodiments, the probability of occurrence of symbols (or characters) is dynamically updated during the encoding / decoding process. For example, if there are only two possible characters ("a" and "b"), and the probability of "a" occurring is denoted as p_a and the probability of "b" occurring is denoted as p_b, then p_a+p_b=1 (or any other constant). Thus, when "a" is encountered in the encoding / decoding process, p_a will be updated to a larger value and p_b will be updated to a smaller value, since their sum will be constant. This probability updating process is sometimes called the "probability transition process" or the "probability state index updating process."
[0007] According to some embodiments, a method of video encoding is provided, the method including: (i) obtaining video data having a plurality of blocks including a first block, (ii) determining a plurality of transform coefficients associated with the first block, (iii) predicting a coefficient sign of each of the plurality of transform coefficients, and (iv) entropy encoding the first block, the method including jointly signaling two or more of the predicted coefficient signs.
[0008] According to some embodiments, another method of video decoding is provided, the method including the steps of: (i) obtaining video data having a plurality of blocks including a first block; (ii) determining a plurality of transform coefficients associated with the first block; (iii) obtaining coded values of transform coefficient sign indices; (iv) reconstructing coefficient signs of each of the plurality of transform coefficients from the coded values; and (v) reconstructing the first block based on the plurality of transform coefficients and the reconstructed coefficient signs of each of the plurality of transform coefficients.
[0009] According to some embodiments, a computing system, such as a streaming system, a server system, a personal computer system, or other electronic device, is provided. The computing system includes control circuitry and a memory that stores one or more sets of instructions. The one or more sets of instructions include instructions for performing any of the methods described herein. In some embodiments, the computing system includes an encoder component and / or a decoder component.
[0010] According to some embodiments, a non-transitory computer-readable storage medium is provided that stores one or more sets of instructions for execution by a computer system, the one or more sets of instructions including instructions for performing any of the methods described herein.
[0011] Thus, devices and systems are disclosed, along with methods for video encoding and decoding, which may complement or replace conventional methods, devices, and systems for video encoding / decoding.
[0012] The features and advantages described in the specification are not necessarily all-inclusive, and in particular, some additional features and advantages will be apparent to those skilled in the art in view of the drawings, specification, and claims provided in this disclosure. Furthermore, it should be noted that the language used in this specification has been chosen primarily for ease of reading and educational purposes, and not necessarily to delineate or limit the subject matter described herein.
[0013] In order that the present disclosure may be understood in more detail, a more particular description may be made with reference to the features of various embodiments, some of which are illustrated in the accompanying drawings, which should not be considered necessarily limiting, as they merely illustrate relevant features of the present disclosure, and other useful features may be recognized for illustrative purposes, as those skilled in the art will understand upon reading the present disclosure. [Brief explanation of the drawings]
[0014] [Figure 1] FIG. 1 is a block diagram illustrating an exemplary communication system according to some embodiments. [Figure 2A] FIG. 2 is a block diagram depicting exemplary elements of an encoder component in accordance with some embodiments. [Figure 2B] FIG. 2 is a block diagram depicting exemplary elements of a decoder component in accordance with some embodiments. [Figure 3] FIG. 1 is a block diagram illustrating an exemplary server system according to some embodiments. [Figure 4] 1A-1D show exemplary coding tree structures according to some embodiments. [Figure 5A] 1 illustrates an exemplary line graph transform (LGF) according to some embodiments. [Figure 5B] 1 illustrates exemplary pixel locations in a transform block and adjacent rows and columns according to some embodiments. [Figure 6A] 1 is a flow diagram illustrating an exemplary method for video encoding, according to some embodiments. [Figure 6B] 1 is a flow diagram illustrating an exemplary method for video decoding according to some embodiments. DETAILED DESCRIPTION OF THE INVENTION
[0015] In accordance with common practice, the various features illustrated in the drawings are not necessarily drawn to scale, and like reference numerals may be used to denote like features throughout the specification and drawings.
[0016] This disclosure describes, among other things, predicting coefficient codes during transform block coding and jointly signaling the predicted coefficient codes. For example, a coefficient code for each of multiple transform coefficients is predicted, and subsequent entropy coding involves jointly signaling two or more of the predicted coefficient codes. For example, a multi-symbol arithmetic coder may be used to jointly code two or more predicted coefficient codes (and / or jointly code the accuracy of the predicted codes). Signaling multiple coefficient codes jointly improves coding efficiency, e.g., requires fewer coding bits, thereby reducing bandwidth requirements.
[0017] [Example Systems and Devices] 1 is a block diagram illustrating a communication system 100 according to some embodiments. Communication system 100 includes a source device 102 and multiple electronic devices 120 (e.g., electronic devices 120-1 through 120-m) that are communicatively coupled to each other via one or more networks. In some embodiments, communication system 100 is a streaming system used by video-enabled applications, such as, for example, video conferencing applications, digital TV applications, and media storage and / or distribution applications.
[0018] Source device 102 includes a video source 104 (e.g., a camera component or media storage) and an encoder component 106. In some embodiments, video source 104 is a digital camera (e.g., configured to generate an uncompressed video sample stream). Encoder component 106 generates one or more encoded video bitstreams from the video stream. The video stream from video source 104 may have a higher data volume than encoded video bitstream 108 generated by encoder component 106. Because encoded video bitstream 108 has a lower data volume (less data) than the video stream from the video source, encoded video bitstream 108 requires less bandwidth for transmission and less storage space for storage than the video stream from video source 104. In some embodiments, source device 102 does not include encoder component 106 (e.g., configured to transmit uncompressed video data over a network).
[0019] The one or more networks 110 represent any number of networks that carry information between the source device 102, the server system 112, and / or the electronic device 120, including, for example, wireline and / or wireless communication networks. The one or more networks 110 may exchange data over circuit-switched and / or packet-switched channels. Exemplary networks include telecommunications networks, local area networks, wide area networks, and / or the Internet.
[0020] One or more networks 110 include a server system (e.g., a distributed / cloud computing system). In some embodiments, server system 112 is or includes a streaming server (e.g., configured to store and / or distribute video content, such as an encoded video stream from source device 102). Server system 112 includes a coder component 114 (e.g., configured to encode and / or decode video data). In some embodiments, coder component 114 includes an encoder component and / or a decoder component. In various embodiments, coder component 114 is instantiated as hardware, software, or a combination thereof. In some embodiments, coder component 114 is configured to decode encoded video bitstream 108 and re-encode the video data using a different encoding standard and / or methodology to generate encoded video data 116. In some embodiments, server system 112 is configured to generate multiple video formats and / or encodings from encoded video bitstream 108.
[0021] In some embodiments, server system 112 functions as a Media-Aware Network Element (MANE). For example, server system 112 may be configured to prune encoded video bitstream 108 to tailor potentially different bitstreams to one or more electronic devices 120. In some embodiments, the MANE is separate from server system 112.
[0022] Electronic device 120-1 includes a decoder component 122 and a display 124. In some embodiments, decoder component 122 is configured to decode encoded video data 116 to generate an outgoing video stream that can be rendered on a display or other type of rendering device. In some embodiments, one or more electronic devices 120 do not include a display component (e.g., are communicatively coupled to an external display device and / or include a media stream). In some embodiments, electronic device 120 is a streaming client. In some embodiments, electronic device 120 is configured to access server system 112 to obtain encoded video data 116.
[0023] Source device 102 and / or one or more electronic devices 120 are sometimes referred to as “terminal devices” or “user devices.” In some embodiments, source device 102 and / or one or more electronic devices 120 are instances of a server system, a personal computer, a portable device (e.g., a smartphone, tablet, or laptop), a wearable device, a videoconferencing device, and / or other types of electronic devices.
[0024] In an example of operation of communication system 100, source device 102 sends encoded video bitstream 108 to server system 112. For example, source device 102 may code a stream of pictures captured by the source device. Server system 112 may receive encoded video bitstream 108 and decode and / or encode encoded video bitstream 108 with coder component 114. For example, server system 112 may apply coding to the video data that is more optimal for network transmission and / or storage. Server system 112 may transmit encoded video data 116 (e.g., one or more coded video bitstreams) to one or more electronic devices 120. Each electronic device 120 may decode the encoded video data 116 to recover the video pictures and, optionally, display them.
[0025] In some embodiments, the transmission is a one-way data transmission. One-way data transmission is sometimes used, such as in media serving applications. In some embodiments, the transmission is a two-way data transmission. Two-way data transmission is sometimes used, such as in video conferencing applications. In some embodiments, the coded video bitstream 108 and / or the coded video data 116 are encoded and / or decoded according to any of the video coding / compression standards described herein, such as HEVC, VVC, and / or AV1.
[0026] 2A is a block diagram depicting exemplary elements of encoder component 106 according to some embodiments. Encoder component 106 receives a source video sequence from video source 104. In some embodiments, encoder component 106 includes a receiver (e.g., transceiver) component configured to receive the source video sequence. In some embodiments, encoder component 106 receives a video sequence from a remote video source (e.g., a video source that is a component of a different device than encoder component 106). Video source 104 may provide the source video sequence in the form of a digital video sample stream that can be of any suitable bit depth (e.g., 8-bit, 10-bit, or 12-bit), any color space (e.g., BT.601 YCrCb, or RGB), and any suitable sampling structure (e.g., YCrCb 4:2:0 or YCrCb 4:4:4). In some embodiments, video source 104 is a storage device storing previously captured / prepared video. In some embodiments, video source 104 is a camera that captures local image information as a video sequence. Video data may be provided as multiple individual pictures that, when viewed in sequence, impart motion. The pictures themselves may be organized as a spatial array of pixels, each of which may contain one or more samples, depending on the sampling structure, color space, etc. used. Those skilled in the art will readily understand the relationship between pixels and samples. The following discussion will focus on samples.
[0027] The encoder component 106 is configured to code and / or compress pictures of a source video sequence into a coded video sequence 216 in real time or under other time constraints required by the application. Imposing an appropriate coding rate is one function of the controller 204. In some embodiments, the controller 204 controls and is operatively coupled to other functional units, which are described below. Parameters set by the controller 204 may include rate control-related parameters (e.g., picture skip, quantizer, and / or lambda value for rate-distortion optimization techniques), picture size, group-of-picture (GOP) layout, maximum motion vector search range, etc. Those skilled in the art can readily identify other functions of the controller 204, as they may be relevant for the encoder component 106 to be optimized for a particular system design.
[0028] In some embodiments, the encoder component 106 is configured to operate in a coding loop. In a simplified example, the coding loop includes a source coder 202 (e.g., responsible for generating symbols, such as a symbol stream, based on an input picture to be coded and a reference picture) and a (local) decoder 210. The decoder 210 reconstructs the symbols to generate sample data similar to the (remote) decoder (if the compression between the symbols and the coded video bitstream is lossless). The reconstructed sample stream (sample data) is input to the reference picture memory 208. Because decoding the symbol stream yields bit-exact results independent of the location of the decoder (local or remote), the contents in the reference picture memory 208 are also bit-perfect between the local and remote encoders. In this way, the predictive portion of the encoder interprets the same sample values as reference picture samples that the decoder would interpret when using prediction during decoding. This basic principle of reference picture synchronicity (and the resulting drift when synchronicity cannot be maintained, for example due to channel errors) is known to those skilled in the art.
[0029] The operation of decoder 210 can be the same as that of a remote decoder, such as decoder component 122, described in detail below in connection with Figure 2B. Referring briefly to Figure 2B, however, the entropy decoding portion of decoder component 122, including buffer 252 and parser 254, may not be fully implemented in local decoder 210, given that symbols are available and symbol encoding / decoding for the coded video sequence by entropy coder 214 and parser 254 can be lossless.
[0030] An observation to be made at this point is that any decoder technique, other than parsing / entropy decoding, present in a decoder must necessarily be present in the corresponding encoder, in substantially the same functional form. For this reason, the disclosed subject matter focuses on the operation of the decoder. Descriptions of encoder techniques may be omitted, since they are the inverse of the decoder techniques described generically. Only to a certain extent are more detailed descriptions necessary, which are given below.
[0031] As part of its operation, source coder 202 may perform motion-compensated predictive coding, which predictively codes an input frame with reference to one or more previously coded frames from the video sequence designated as reference frames. In this manner, coding engine 212 codes differences between pixel blocks of the input frame and pixel blocks of reference frames that may be selected as prediction references for the input frame. Controller 204 may manage the coding operations of source coder 202, including, for example, setting parameters and subgroup parameters used to encode the video data.
[0032] The decoder 210 decodes the coded video data of frames that may be designated as reference frames based on symbols generated by the source coder 202. The operation of the coding engine 212 may advantageously be a lossy process. When the coded video data is decoded by a video decoder (not shown in FIG. 2A ), the reconstructed video sequence is a copy of the source video sequence with some errors. The decoder 210 may replicate the decoding process that may be performed by a remote video decoder on the reference frames, causing the reconstructed reference frames to be stored in the reference picture memory 208. In this way, the encoder component 106 may locally store copies of reconstructed reference frames that have content in common with the reconstructed reference frames that would be obtained by the remote video decoder (without transmission errors).
[0033] The predictor 206 may perform a predictive search for the coding engine 212. That is, for a new picture to be coded, the predictor 206 may search the reference picture memory 208 for specific metadata, such as reference picture motion vectors, block shapes, or sample data (as candidate reference pixel blocks) that can be suitable prediction references for the new picture. The predictor 206 may operate on a sample block-by-pixel block basis to find a suitable prediction reference. In some cases, as determined by the search results obtained by the predictor 206, the input picture may have prediction references drawn from multiple reference pictures stored in the reference picture memory 208.
[0034] The output of all the above functional units may undergo entropy coding in entropy coder 214. Entropy coder 214 converts the symbols produced by the various functional units into a coded video sequence by losslessly compressing the symbols according to techniques known to those skilled in the art (e.g., Huffman coding, variable length coding, and / or arithmetic coding).
[0035] In some embodiments, the output of the entropy coder 214 is coupled to a transmitter. The transmitter may be configured to buffer coded video sequences generated by the entropy coder 214 and prepare them for transmission over a communication channel 218, which may be a hardware / software link to a storage device that stores the coded video data. The transmitter may be configured to merge the coded video data from the source coder 202 with other data to be transmitted, such as coded audio data and / or auxiliary data streams (sources not shown). In some embodiments, the transmitter may transmit additional data along with the coded video. The source coder 202 may include such data as part of the coded video sequence. The additional data may include other forms of redundant data, such as temporal / spatial / SNR enhancement layers, redundant pictures and slices, Supplementary Enhancement Information (SEI) messages, Visual Usability Information (VUI) parameter set fragments, etc.
[0036] The controller 204 may manage the operation of the encoder component 106. During coding, the controller 204 may assign a specific coding picture type to each coded picture, which may affect the coding technique applied to each picture. For example, a picture may be assigned as an intra picture (I picture), a predicted picture (P picture), or a bidirectionally predicted picture (B picture). An intra picture can be encoded and decoded without using any other picture in the sequence as a source of prediction. Some video codecs allow various types of intra pictures, including, for example, Independent Decoder Refresh (IDR) pictures. Those skilled in the art will be aware of such variations of I pictures and their respective applications and characteristics, so they will not be repeated here. A predictive picture can be encoded and decoded by intra prediction or inter prediction using at most one motion vector and reference index to predict the sample values of each block. Bidirectionally predictive pictures can be coded and decoded using intra- or inter-prediction, which uses at most two motion vectors and reference indices to predict the sample values of each block. Similarly, multiple-predictive pictures can use more than two reference pictures and associated metadata for the reconstruction of a single block.
[0037] A source picture may be spatially subdivided into multiple sample blocks (e.g., blocks of 4x4, 8x8, 4x8, or 16x16 samples, respectively) and coded block by block. Blocks may be predictively coded with reference to other (already coded) blocks as determined by the coding assignment applied to each picture of the block. For example, blocks of an I-picture may be coded non-predictively, or they may be predictively coded with reference to already coded blocks of the same picture (spatial prediction or intra-prediction). Pixel blocks of a P-picture may be coded non-predictively, or with spatial prediction or temporal prediction with reference to one previously coded reference picture. Blocks of a B-picture may be coded non-predictively, or with spatial prediction or temporal prediction with reference to one or two previously coded reference pictures.
[0038] Video may be captured as multiple source pictures (video pictures) in a time sequence. Intra-picture prediction (often abbreviated as intra-prediction) exploits spatial correlation within a given picture, while inter-picture prediction exploits correlation (temporal or otherwise) between pictures. In one example, a particular picture being encoded / decoded, called the current picture, is partitioned into blocks. When a block in the current picture resembles a reference block in a previously coded and still buffered reference picture in the video, that block in the current picture may be coded by a vector called a motion vector. The motion vector points to a reference block within the reference picture and may have a third dimension that identifies the reference picture if multiple reference pictures are used.
[0039] Encoder component 106 may perform coding operations in accordance with a given video coding technique or standard, such as any described herein. In doing so, encoder component 106 may perform various compression operations, including predictive coding operations that exploit temporal and spatial redundancies in the input video sequence. Thus, the coded video data may conform to a syntax specified by the video coding technique or standard being used.
[0040] 2B is a block diagram depicting exemplary elements of a decoder component 122 according to some embodiments. The decoder component 122 of FIG. 2B is coupled to a channel 218 and a display 124. In some embodiments, the decoder component 122 includes a transmitter coupled to a loop filter unit 256 and configured to transmit data to the display 124 (e.g., via a wired or wireless connection).
[0041] In some embodiments, decoder component 122 includes a receiver coupled to a channel and configured to receive data from the channel (e.g., via a wired or wireless connection). The receiver may be configured to receive one or more coded video sequences to be decoded by decoder component 122. In some embodiments, the decoding of each coded video sequence is independent of the other coded video sequences. Each coded video sequence may be received from channel 218, which may be a hardware / software link to a storage device storing the coded video data. The receiver may receive the coded video data along with other data, such as coded audio data and / or auxiliary data streams, which may be forwarded to their respective using entities (not shown). The receiver may separate the coded video sequence from the other data. In some embodiments, the receiver receives additional (redundant) data along with the coded video. The additional data may be used by decoder component 122 to decode the data and / or more accurately reconstruct the original video data. The additional data can be in the form of, for example, temporal / spatial / SNR enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0042] According to some embodiments, the decoder component 122 includes a buffer memory 252, a parser 254 (sometimes referred to as an entropy decoder), a scaler / inverse transform unit 258, an intra-picture prediction unit 262, a motion compensated prediction unit 260, an aggregator 268, a loop filter unit 256, a reference picture memory 266, and a current picture memory 264. In some embodiments, the decoder component 122 is implemented as an integrated circuit, a series of integrated circuits, and / or other electronic circuitry. In some embodiments, the decoder component 122 is implemented at least partially in software.
[0043] Buffer memory 252 is coupled between channel 218 and parser 254 (e.g., to combat network jitter). In some embodiments, buffer memory 252 is separate from decoder component 122. In some embodiments, a separate buffer memory is provided between the output of channel 218 and decoder component 122. In some embodiments, a separate buffer memory is provided outside decoder component 122 (e.g., to combat network jitter) in addition to buffer memory 252 within decoder component 122 (e.g., configured to handle playback timing). When receiving data from a storage / forwarding device with sufficient bandwidth and controllability or from an isosynchronous network, buffer memory 252 may not be required or may be small. For use with best-effort packet networks such as the Internet, buffer memory 252 may be required, and may be relatively large and advantageously adaptively sized, and may be implemented at least partially in an operating system or similar element (not shown) outside decoder component 122.
[0044] Parser 254 is configured to reconstruct symbols 270 from the coded video sequence. The symbols may include, for example, information used to manage the operation of decoder component 122 and / or information for controlling a rendering device such as display 124. Control information for the rendering device may take the form of an SEI message or a VUI parameter set fragment (not shown). Parser 254 parses (entropy decodes) the coded video sequence. The coding of the coded video sequence may follow a video coding technique or standard and may follow various principles, including variable length coding, Huffman coding, context-sensitive or non-context-sensitive arithmetic coding, etc. Parser 254 may extract from the coded video sequence a set of subgroup parameters for at least one of the subgroups of pixels in the video decoder based on at least one parameter corresponding to the group. The subgroup may include a group of pictures (GOP), a picture, a tile, a slice, a macroblock, a coding unit (CU), a block, a transform unit (TU), a prediction unit (PU), etc. Parser 254 may also extract information from the coded video sequence, such as transform coefficients, quantization parameter values, motion vectors, and the like.
[0045] The reconstruction of symbols 270 can have many different units depending on the type of coded video picture or portion thereof (e.g., inter and intra pictures, inter and intra blocks) and other factors. Which units are included and how may be controlled by subgroup control information parsed by parser 254 from the coded video sequence. The flow of such subgroup control information between parser 254 and the following units is not shown for clarity.
[0046] Beyond the functional blocks already mentioned, decoder component 122 may be conceptually subdivided into a number of functional units, which are described below. In an actual implementation operating under commercial constraints, many of these units may interact closely with each other and may be at least partially integrated with each other. However, for purposes of describing the disclosed subject matter, the conceptual subdivision into functional units below is supported.
[0047] The scaler / inverse transform unit 258 receives the quantized transform coefficients as symbols 270 from the parser 254, along with control information (e.g., which transform to use, block size, quantization coefficients, and / or quantization scaling matrices, etc.). The scaler / inverse transform unit 258 may output blocks containing sample values that may be input to the aggregator 268.
[0048] In some cases, the output samples of the scaler / inverse transform unit 258 relate to intra-coded blocks, i.e., blocks that do not use prediction information from a previously reconstructed picture but can use prediction information from a previously reconstructed portion of the current picture. Such prediction information may be provided by the intra-picture prediction unit 262. The intra-picture prediction unit 262 may generate blocks of the same size and shape as the block being reconstructed using surrounding already reconstructed information fetched from the current (partially reconstructed) picture from the current picture memory 264. The aggregator 268 may add, on a sample-by-sample basis, the prediction information generated by the intra-picture prediction unit 262 to the output sample information provided by the scaler / inverse transform unit 258.
[0049] In other cases, the output samples of the scalar / inverse transform unit 258 relate to an inter-coded and potentially motion-compensated block. In such cases, the motion-compensated prediction unit 260 can access the reference picture memory 266 to fetch samples used for prediction. After motion-compensating the fetched samples according to symbols 270 related to the block, these samples can be added by an aggregator 268 to the output of the scalar / inverse transform unit 258 (in this case, referred to as residual samples or a residual signal) to generate output sample information. The addresses in the reference picture memory 266 from which the motion-compensated prediction unit 260 fetches the prediction samples can be controlled by motion vectors. The motion vectors can be available to the motion-compensated prediction unit 260 in the form of symbols 270, which can have, for example, X, Y, and reference picture components. Motion compensation can also include interpolation of sample values fetched from the reference picture memory 266 when sub-sample accurate motion vectors are used, motion vector prediction mechanisms, and the like.
[0050] The output samples of aggregator 268 may be subjected to various loop filtering techniques in loop filter unit 256. Video compression techniques may include in-loop filter techniques that are controlled by parameters contained in the coded video bitstream and made available to loop filter unit 256 as symbols 270 from parser 254, but may also be responsive to meta-information obtained during decoding of previous portions (in decoding order) of the coded picture or coded video sequence, or even to previously constructed loop-filtered sample values.
[0051] The output of the loop filter unit 256 can be a sample stream that can be output to a render device such as the display 124 and further stored in the reference picture memory 266 for use in future inter-picture prediction.
[0052] Once a particular coded picture is fully reconstructed, it can be used as a reference picture for future prediction. Once a coded picture is fully reconstructed and the coded picture is identified as a reference picture (e.g., by parser 254), the current reference picture can become part of reference picture memory 266, and any unused current picture memory can be reallocated before beginning reconstruction of a subsequent coded picture.
[0053] Decoder component 122 may perform decoding operations according to a given video compression technology, which may be documented in a standard, such as any of the standards described herein. A coded video sequence may conform to the syntax prescribed by the video compression technology or standard in use, in the sense that it follows the syntax of the video compression technology or standard as specified in the video compression technology document or standard, specifically in a profile document therein. Also, for compliance with some video compression technologies or standards, the complexity of a coded video sequence may be within boundaries defined by the level of the video compression technology or standard. In some cases, the level limits the maximum picture size, maximum frame rate, maximum reconstruction sample rate (e.g., measured in megasamples per second), maximum reference picture size, etc. The limits set by the level may, in some cases, be further constrained through a Hypothetical Reference Decoder (HRD) specification and metadata for HRD buffer management signaled in the coded video sequence.
[0054] 3 is a block diagram illustrating a server system 112 according to some embodiments. The server system 112 includes a control circuit 302, one or more network interfaces 304, a memory 314, a user interface 306, and one or more communication buses 312 interconnecting these components. In some embodiments, the control circuit 302 includes one or more processors (e.g., a CPU, a GPU, and / or a DPU). In some embodiments, the control circuit 302 includes one or more field programmable gate arrays (FPGAs), hardware accelerators, and / or one or more integrated circuits (e.g., application specific integrated circuits).
[0055] The network interface 304 may be configured to interface with one or more communications networks (e.g., wireless, wired, and / or optical networks). Communications networks may be local, wide-area, metropolitan, vehicular, and industrial, real-time, delay-tolerant, and the like. Examples of communications networks include local area networks such as Ethernet and wireless LAN; cellular networks including GSM, 3G, 4G, 5G, LTE, and the like; TV wired or wireless wide-area digital networks including cable TV, satellite TV, and terrestrial TV; and vehicular and industrial networks including CANBus. Such communications may be one-way receive-only (e.g., broadcast TV), one-way transmit-only (e.g., CANBus to a specific CANBus device), or bidirectional (e.g., to another computer system using a local or wide-area digital network). Such communications may include communications to one or more cloud computing networks.
[0056] The user interface 306 includes one or more output devices 308 and / or one or more input devices 310. The input devices 310 may include one or more of a keyboard, a mouse, a trackpad, a touchscreen, a data glove, a joystick, a microphone, a scanner, a camera, etc. The output devices 308 may include one or more of an audio output device (e.g., a speaker), a visual output device (e.g., a display or monitor), etc.
[0057] Memory 314 may include high-speed random-access memory (e.g., DRAM, SRAM, DDR RAM, and / or other random-access solid-state memory devices) and / or non-volatile memory (e.g., one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, and / or other non-volatile solid-state storage devices). Memory 314 optionally includes one or more storage devices that are remote from control circuitry 302. Memory 314, or alternatively, a non-volatile solid-state memory device within memory 314, comprises a non-transitory computer-readable storage medium. In some embodiments, memory 314, or the non-transitory computer-readable storage medium of memory 314, stores the following programs, modules, instructions, and data structures, or a subset or superset thereof: • an operating system 316 that contains procedures for handling various basic system services and performing hardware-dependent tasks; • a network communications module 318 used to connect the server system 112 to other computing devices via one or more network interfaces 304 (e.g., via wired and / or wireless connections); A coding module 320 that performs various functions related to encoding and / or decoding data, such as video data. In some embodiments, the coding module 320 is an instance of the coder component 114. The coding module 320: a decoding module 322 that performs various functions related to decoding the encoded data, such as the functions described above with respect to the decoder component 122; and an encoding module 340 that performs various functions related to encoding data, such as the functions described above with respect to the encoder component 106; A picture memory 352 that stores pictures and picture data, for example, for use by coding module 320. In some embodiments, picture memory 352 includes one or more of reference picture memory 208, buffer memory 252, current picture memory 264, and reference picture memory 266.
[0058] In some embodiments, the decoding module 322 includes a parsing module 324 (e.g., configured to perform the various functions described above with respect to the parser 254), a transform module 326 (e.g., configured to perform the various functions described above with respect to the scanner / inverse transform unit 258), a prediction module 328 (e.g., configured to perform the various functions described above with respect to the motion compensated prediction unit 260 and / or the intra-picture prediction unit 262), and a filter module 330 (e.g., configured to perform the various functions described above with respect to the loop filter unit 256).
[0059] In some embodiments, encoding module 340 includes a code module 342 (e.g., configured to perform various functions described above with respect to source coder 202, coding engine 212, and / or entropy coder 214) and a prediction module 344 (e.g., configured to perform various functions described above with respect to predictor 206). In some embodiments, decoding module 322 and / or encoding module 340 include a subset of the modules shown in Figure 3. For example, a shared prediction module is used by both decoding module 322 and encoding module 340.
[0060] Each of the above-described modules stored in memory 314 corresponds to a set of instructions for performing functions described herein. The above-described modules (e.g., sets of instructions) need not be implemented as separate software programs, procedures, or modules; thus, various subsets of these modules may be combined or otherwise rearranged in various embodiments. For example, coding module 320 optionally does not include separate decoding and encoding modules, but rather uses the same set of modules that perform both sets of functions. In some embodiments, memory 314 stores a subset of the modules and data structures described above. In some embodiments, memory 314 stores additional modules and data structures not described above, such as an audio processing module.
[0061] In some embodiments, server system 112 includes a web or Hypertext Transfer Protocol (HTTP) server, a File Transfer Protocol (FTP) server, and web pages and applications implemented using Common Gateway Interface (CGI) scripts, PHP Hypertext Preprocessor (PHP), Active Server Pager (ASP), HyperText Markup Language (HTML), Extensible Markup Language (XML), Java, JavaScript, Asynchronous JavaScript and XML (AJAX), XHP, Javelin, Wireless Universal Resource File (WURFL), and the like.
[0062] While FIG. 3 illustrates a server system 112 according to some embodiments, FIG. 3 is intended as a functional illustration of various features that may be present in one or more server systems, rather than an architectural diagram of the embodiments described herein. Indeed, as will be recognized by those skilled in the art, items shown separately may be combined and some items may be separated. For example, some items shown separately in FIG. 3 may be implemented on a single server, and single items may be implemented by one or more servers. The actual number of servers used to implement server system 112 and how features are allocated among them may vary from implementation to implementation and, optionally, depend in part on the amount of data traffic the server system handles during peak and average usage periods.
[0063] [Example coding approach] 4A-4D illustrate example coding tree structures according to some embodiments. As shown in the first coding tree structure (400) of FIG. 4A, some coding approaches (e.g., VP9) use a four-way partition tree starting from a 64x64 level down to a 4x4 level, with some additional restrictions on 8x8 blocks. In FIG. 4A, the partitions labeled R can be referred to as recursive, in that the same partition tree is repeated at lower scales until the lowest 4x4 level is reached.
[0064] As shown in the second coding tree structure (402) of FIG. 4B, some coding approaches (e.g., AV1) expand the partition tree to a 10-way structure, increasing the maximum size (e.g., called a superblock in VP9 / AV1 terminology) starting from 128x128. The second coding tree structure includes a 4:1 / 1:4 rectangular partition not present in the first coding tree structure. The partition type containing three subpartitions in the second row of FIG. 4B is called a T-type partition. Rectangular partitions in this tree structure cannot be further subdivided. In addition to the coding block size, a coding tree depth may be defined to indicate the division depth from the root node. For example, the coding tree depth of a root node, e.g., 128x128, is set to 0, and after the tree block is further divided once, the coding tree depth is increased by 1.
[0065] For example, instead of enforcing a fixed transform unit size as found in VP9, AV1 allows luma coding blocks to be divided into transform units of multiple sizes that can be represented by recursive partitions down to a maximum of two levels. To incorporate AV1's expanded coding block partitions, square, 2:1 / 1:2, and 4:1 / 1:4 transform sizes from 4x4 to 64x64 are supported. For chroma blocks, only the largest possible transform units are allowed.
[0066] For example, a CTU may be divided into CUs by using a quadtree structure, represented as a coding tree, to adapt to various local characteristics, such as in HEVC. In some embodiments, a decision on whether to code a picture area using inter-picture (temporal) or intra-picture (spatial) prediction is made at the CU level. Each CU is further divided into one, two, or four PUs according to a PU partition type. Within a PU, the same prediction process is applied, and related information is transmitted to the decoder on a PU-by-PU basis. After obtaining a residual block by applying a prediction process based on the PU partition type, the CU may be divided into TUs according to another quadtree structure, such as a CU coding tree. One important feature of the HEVC structure is that there are multiple partition concepts, including CUs, PUs, and TUs. In HEVC, a CU or TU can only be square, but a PU can be square or rectangular for inter-predicted blocks. In HEVC, one coding block may be further divided into four square sub-blocks, and a transform is performed on each sub-block (TU). Each TU can be further divided recursively (using quad-tree partitioning) into smaller TUs called Residual Quad-Tree (RQT). At picture boundaries, implicit quad-tree partitioning may be used, as seen in HEVC, whereby blocks continue to be quad-tree partitioned until their size fits the picture boundary.
[0067] A quaternary tree with nested multitype trees using a binary or ternary tree split segmentation structure, as seen in VVC, can replace the concept of multiple partition unit types. For example, the separation of the concepts of CU, PU, and TU is eliminated, except when necessary for CUs with sizes too large for the maximum transform length, increasing flexibility in CU partition shapes. In the coding tree structure, CUs can have either square or rectangular shapes. CTUs are first split using a quaternary tree (or quad-tree) structure. The quaternary tree leaf nodes can be further split using a multitype tree structure. As shown in the third coding tree structure (404) in FIG. 4C, the multitype tree structure includes four split types. For example, the multitype tree structure includes a vertical binary tree split (SPLIT_BT_VER), a horizontal binary tree split (SPLIT_BT_HOR), a vertical ternary tree split (SPLIT_TT_VER), and a horizontal ternary tree split (SPLIT_TT_HOR). The multitype tree leaf nodes are called CUs, and this segmentation is used for prediction and transform processing without further division, unless the CU is too large for the maximum transform length. That is, in most cases, CUs, PUs, and TUs have the same block size in a quadtree with a nested multitype tree coding block structure. An exception occurs when the supported maximum transform length is smaller than the width or height of the color components of the CU. An example of block partitions for one CTU (406) is shown in Figure 4D, which represents an example of a quadtree with a nested multitype tree coding block structure.
[0068] As seen in VVC, the maximum supported luma transform size can be 64x64, and the maximum supported chroma transform size can be 32x32. When the width or height of the CB is larger than the maximum transform width or height, the CB is automatically split horizontally and / or vertically to meet the transform size restrictions in that direction.
[0069] The coding tree scheme supports the ability for luma and chroma to have separate block tree structures, as seen in VTM7. In some cases, for P slices and B slices, the luma CTB and chroma CTB in one CTU share the same coding tree structure. However, for I slices, luma and chroma may have separate block tree structures. When the separate block tree mode is applied, the luma CTB is divided into CUs by one coding tree structure, and the chroma CTB is divided into chroma CUs by another coding tree structure. That is, a CU in an I slice may include or consist of a coding block of a luma component or a coding block of two chroma components, and a CU in a P or B slice may always include or consist of coding blocks of all three color components unless the video is monochrome.
[0070] To support extended coding block partitions, multiple transform sizes (e.g., ranging from 4 points to 64 points per dimension) and transform shapes (e.g., square, or rectangular with width / height ratios of 2:1 / 1:2 and 4:1 / 1:4) can be used, as seen in AV1.
[0071] The two-dimensional transform process may include the use of hybrid transform kernels (e.g., composed of a different one-dimensional transform for each dimension of the coded residual block). The primary one-dimensional transform may include at least one of: a) a 4-point, 8-point, 16-point, 32-point, or 64-point discrete cosine transform (DCT-2); b) a 4-point, 8-point, or 16-point asymmetric discrete sine transform (DST-4, DST-7) and its inverse versions; or c) a 4-point, 8-point, 16-point, or 32-point identity transform. The basis functions for the DCT-2 and asymmetric DST, as used in AV1, are shown in Table 1. [Table 1]
[0072] The availability of hybrid transform kernels may be based on the transform block size and prediction mode. An example dependency is shown in Table 2 below, where "→" and "↓" represent horizontal and vertical directions. (outside 1) TIFF0007804774000002.tif10170 represents the availability of kernels for that block size and prediction mode. IDTX (or IDT) stands for identity transform. [Table 2]
[0073] For chroma components, transform type selection is performed in an implicit manner. For intra-prediction residuals, the transform type is selected according to the intra-prediction mode, for example, as shown in Table 3. For inter-prediction residuals, the transform type may be selected according to the transform type selection of the co-located luma block. Therefore, for chroma components, transform type signaling in the bitstream is not required. [Table 3]
[0074] Line Graph Transform(s) (LGT) were introduced with the view to replacing and extending (by introducing 32-point, 64-point) the one-dimensional DST described above.
[0075] A graph is a general mathematical structure containing or consisting of a set of vertices and edges used to model affinity relationships between objects of interest. Weighted graphs (where a set of weights is assigned to edges and possibly vertices) provide a sparse representation for robust modeling of signals / data. LGT can improve coding efficiency by better adapting to diverse block statistics. A separable LGT is designed and optimized by learning a line graph from the data to model the row- and column-wise statistics underlying the blocks in the residual signal. The associated generalized graph Laplacian (GGL) matrix is then used to derive the LGT. Figure 5A shows the self-loop weights v c1 , v c2 , and edge weight w c An example of an LGT characterized by:
[0076] Given a weighted graph G(W,V), the GGL matrix is: L c =D-W+V Equation 1 where W is the non-negative edge weight w c where D is the diagonal order matrix, and V is the weighted self-loop v c1 , v c2 is a diagonal matrix that represents the matrix L c can be expressed as:
number
[0077] LGT can be implemented as a matrix multiplication. The 4pLGT core is c In v c1 =2w c , which is DST-4. The 8pLGT core is c In v c1 =1.5w c The 16p, 32p, and 64p LGT cores can be derived by setting L c In v c1 =w c which is DST-7.
[0078] In the example of residual coding in AV1, for each transform unit, coefficient coding begins with signaling of the skip code, followed by the transform kernel type and the end-of-block (eob) location when the skip code is zero. Each coefficient value is then mapped to multiple level maps and codes. After the eob location is coded, the lower-level map and the middle-level map may be coded in reverse scan order. The former indicates when the coefficient magnitude is between 0 and 2, and the latter indicates when the range is between 3 and 14. The next step is to code the coefficient signs and residual values for coefficients greater than 14 in forward scan order using Exp-Golomb coding.
[0079] Regarding the use of context modeling, the lower-level map coding incorporates the transform size and direction and information of up to five neighboring coefficients, while the mid-level map coding follows a similar approach to the lower-level map coding, except that the number of neighboring coefficients is reduced to two. The Exp-Golomb code of the residual level and the signs of the AC coefficients are coded without any context model, while the sign of the DC coefficient is coded using the DC code of its neighboring transform unit.
[0080] A weighted average of the DC code values of the above and left neighboring blocks may be used to derive the context information, for example, as shown in Equation 3 below:
number
number
[0081] In the example of residual coding for transform skip, such as found in VVC, CUs coded in transform skip mode (TSM) may be used in a modified transform coding process. The modifications can be summarized as follows: (a) all sub-blocks and positions within sub-blocks are scanned in forward scan order, (b) the least significant coefficient position is not signaled, (c) the syntax element coded_sub_block_flag is not coded for the last sub-block, (d) the context modeling for the syntax elements sig_coeff_flag, abs_level_gt1, and par_level_flag is unchanged, and (e) the sign flag is context coded based on the left and top neighboring values.
[0082] During the development of AV2, a new mode called Forward Skip Coding (FSC) was introduced to modify the transform coding process of IDTX (two-dimensional transform skip). The modifications introduced by FSC are functionally similar to the changes introduced in the VVC transform skip mode described above, but can be summarized as follows: (a) all coded blocks and positions within coded blocks are scanned in forward scan order, (b) EOB syntax is skipped, (c) reduced context is used for coefficient levels, and (d) sign flags are context coded based on left, bottom, and bottom-left.
[0083] For intra blocks, if the FSC mode is selected, the transform type is not signaled for the transform block. Rather, the transform type signaling is bundled with the FSC mode at the coded block level. Inter blocks do not signal the FSC mode, and the FSC method is implicitly selected if the transform type is IDTX and the screen content flag is enabled.
[0084] For entropy coding of transform coefficients, coefficient signs can be coded separately from magnitude / level (absolute value of coefficient value) using bypass mode. Separate coding means that coding each coefficient sign may cost one bit, which is expensive. To improve the entropy coding efficiency of coefficient signs, sign prediction techniques can be used. For example, instead of signaling sign values, a flag indicating whether the predicted sign is the same as the actual sign can be entropy coded using a context. The context value can depend on the level (absolute value of coefficient value) of the coefficient, because a larger level value results in a more accurate predicted sign value.
[0085] In the example, a group of transform coefficients is identified where the associated sign needs to be predicted. A set of hypotheses for the predicted sign values of these coefficients is then generated. For example, for three coefficients, the number of hypotheses is a maximum of eight (2 3 ) To predict the code values, there is a cost value associated with each hypothesis, and the hypothesis with the smallest cost is used to assign the predicted code values for the coefficients covered by that hypothesis.
[0086] 5B illustrates an example of a transformed block 500 and pixel locations in adjacent rows 502 and adjacent columns 504. In some embodiments, the cost of each hypothesis is calculated as follows: A reconstructed block associated with a given hypothesis (hypothetical reconstruction) is generated following a reconstruction process (e.g., inverse quantization, inverse transform) and the boundary samples of the reconstructed block, e.g., p 0,y and p x,0 The reconstructed pixel p at the left boundary of the reconstructed block is derived. 0,y For each pixel, a simple linear prediction is performed using the two previously reconstructed neighboring pixels on the left, and the prediction pred 0,y =(2p -1,y -p -2,y ) is obtained by comparing this prediction with the reconstructed pixel p 0,yThe absolute difference between pred and d is added to the cost of the hypothesis. A similar process is performed for the pixels in the top row of the reconstructed block, and each prediction pred x,0 =(2p x,-1 -p x,-2 ) and the reconstructed pixel p x、0 The absolute differences between σ and σ are summed. Thus, the calculation of the cost of each coefficient sign prediction hypothesis is given by Equation 5 below:
number
[0087] The coefficient codes may be signaled using multiple symbols together to improve coding efficiency. A method for efficient coding of DC and / or AC coefficient codes involves predicting / estimating the DC and / or AC coefficient codes, followed by the prediction / estimation. (outside 2) TIFF0007804774000009.tif9170, where i is the i-th coefficient in the scanning order, i≦N, and N is the maximum number of coefficients to be predicted / estimated. (Outside 3) TIFF0007804774000010.tif9170 can be defined by a binary value (0 or 1), where 0 indicates that the prediction / estimation is accurate, while 1 indicates the opposite. Coding efficiency can be improved by various (outside 4) A further improvement can be achieved by grouping TIFF0007804774000011.tif9170 and coding them together using the capabilities of a multi-symbol arithmetic coder. (outside 5) Methods for jointly coding TIFF0007804774000012.tif9170 and / or predicted coefficient signs are discussed in the next section.
[0088] 6A is a flow diagram illustrating a video encoding method 600 according to some embodiments. Method 600 may be performed in a computing system (e.g., server system 112, source device 102, or electronic device 120) including control circuitry and memory storing instructions executed by the control circuitry. In some embodiments, method 600 is performed by executing instructions stored in memory (e.g., memory 314) of the computing system.
[0089] The system obtains video data including a plurality of blocks, including a first block (602). The system determines a plurality of transform coefficients associated with the first block (604). In some embodiments, the plurality of transform coefficients are associated with respective prediction levels among a plurality of prediction levels. The system predicts respective coefficient signs for the plurality of transform coefficients (606). In some embodiments, the method includes jointly signaling two or more predicted coefficient signs by grouping the predicted coefficient signs based on the plurality of prediction levels. The system performs entropy coding of the first block (608), including jointly signaling two or more predicted coefficient signs. In some embodiments, the first block is entropy coded using the jointly signaled coefficient signs. Method 600 is optionally applied to luma and / or chroma blocks. In this disclosure, the term "block" may be used to refer to coefficients of a transform block.
[0090] In some embodiments, multiple transform coefficient codes are signaled together, e.g., instead of signaling each code individually. In some embodiments, when encoding multiple transform coefficient codes, the encoder component groups N selected individual coefficient codes together to form a 2 NThe method forms indices associated with N symbols, where each symbol represents a particular combination of N coefficient code values. In some embodiments, the indices are coded and decoded using a multi-symbol arithmetic coder. In some embodiments, instead of grouping and coding transform coefficient sign bits, values indicating whether the predicted code is the same as the actual code are grouped and coded as an index. In some embodiments, the indices are context coded. In some embodiments, the context for coding the indices is derived from previously coded information such as plane type, transform type, and / or block size.
[0091] In some embodiments, only a selected N coefficient signs are grouped together to form an index, and the remaining coefficient signs are signaled individually. In an example, if the number of non-zero coefficients in a transform block, denoted as M, is less than N, then 2 N N-M values in the set of symbols are assigned zero when mapping to an index. In another example, if the number of non-zero coefficients in the transform block, denoted as M, is less than N, N-M coefficient codes in the transform block are mapped to an index. In another example, if the number of non-zero coefficients in the transform block is greater than N, selected N transform coefficient codes are mapped to an index, while the remaining coefficient codes are coded individually.
[0092] In some embodiments, the transform coefficient codes (e.g., all transform coefficient codes) are divided into groups of N codes, and each group of coefficient codes is mapped to an index. In an example, if the number of non-zero coefficients in a transform block is 14 and N=3, then among the first 12 coefficient codes, a set of three transform coefficient codes is mapped to an index. The remaining two transform coefficient codes in this example are mapped to an index. 2= 4 symbols. In another example, if the number of non-zero coefficients in the transform block is 14 and N=3, then among the first 12 coefficient codes, each set of three transform coefficient codes is mapped to an index. The remaining two transform coefficient codes in this example are mapped to the set [0,2 N -1].
[0093] Another example is the encoder component, where N=3: (outside 6) TIFF0007804774000013.tif9170 can take any value in the set [000,001,010,011,100,101,110,111]. In this example, (outside 7) The combination of TIFF0007804774000014.tif9170 is mapped to a unique index in the set [0,1,2,3,4,5,6,7]. In some embodiments, the predicted code is (outside 8) It is grouped and coded in the same manner as described above for TIFF0007804774000015.tif9170.
[0094] 6B is a flow diagram illustrating a video decoding method 650 according to some embodiments. Method 650 may be performed in a computing system (e.g., server system 112, source device 102, or electronic device 120) including control circuitry and memory storing instructions executed by the control circuitry. In some embodiments, method 650 is performed by executing instructions stored in memory (e.g., memory 314) of the computing system.
[0095] The system obtains video data including a plurality of blocks, including a first block (652). The system determines a plurality of transform coefficients associated with the first block (654). The system obtains coded values of transform coefficient sign indices (656). The system reconstructs coefficient signs of each of the plurality of transform coefficients from the coded values (658). The system reconstructs the first block (660) based on the plurality of transform coefficients and the reconstructed coefficient signs of each of the plurality of transform coefficients. Method 650 is optionally applied to luma and / or chroma blocks. In some embodiments, in a decoder component, coefficient signs of selected N individual coefficients are reconstructed using decoded values of the indices. In some embodiments, the indices are encoded and decoded using a multi-symbol arithmetic coder.
[0096] In some embodiments, each combination of multiple transform coefficient codes is mapped to a predefined index value. In some embodiments, the index is in the set [0,2 N -1], e.g., the source space of the index.
[0097] In the example, in the decoder component, if N=3, the index can take any value in the set [0,1,2,3,4,5,6,7]. In this example, the index can take any value in the set [000,001,010,011,100,101,110,111]. (outer 9) TIFF0007804774000016.tif9170. In some embodiments, the predicted code is (Outside 10) It is grouped and coded in the same manner as described above for TIFF0007804774000017.tif9170.
[0098] 6A and 6B depict a number of logical steps in a particular order, some steps that are not order-dependent may be rearranged, and other steps may be combined or separated. The order and grouping presented herein is not exhaustive, as some rearrangements or other groupings not specifically mentioned will be apparent to those skilled in the art. Furthermore, it should be recognized that the steps may be implemented in hardware, firmware, software, or any combination thereof.
[0099] Reference will now be made to some exemplary embodiments.
[0100] (A1) In one aspect, some embodiments include a method of video encoding (e.g., method 600). In some embodiments, the method is implemented in a computing system (e.g., server system 112) comprising a memory and one or more processors. In some embodiments, the method is implemented in a coding module (e.g., coding module 320). In some embodiments, the method is implemented in an entropy coder (e.g., entropy coder 214). The method includes (i) obtaining video data (e.g., from video source 104) having a plurality of blocks including a first block; (ii) determining a plurality of transform coefficients associated with the first block; (iii) predicting (e.g., with prediction module 344) a coefficient sign of each of the plurality of transform coefficients; and (iv) entropy coding (e.g., with encoding module 340) the two or more predicted coefficient signs, including jointly signaling the two or more predicted coefficient signs of the predicted coefficient signs. In some embodiments, the plurality of transform coefficients are associated with respective prediction accuracies of a plurality of prediction accuracies. In some embodiments, the method includes jointly signaling two or more predicted coefficient signs by grouping the two or more predicted coefficient signs based on multiple prediction accuracy levels. In some embodiments, the first block is entropy coded using the jointly signaled coefficient signs. For example, the multiple blocks are transform blocks. In some embodiments, the first block comprises a luma block. In some embodiments, the first block comprises a chroma block. In some embodiments, each element of the first block corresponds to a reconstructed pixel.
[0101] (A2) In some embodiments of A1, signaling two or more predicted coefficient codes together includes encoding two or more predicted coefficient codes together. For example, if two or more predicted coefficient codes are equal to 3, the predicted codes can take any value in the set [000, 001, 010, 011, 100, 101, 110, 111]. In this example, the predicted code combinations are mapped to unique indices in [0, 1, 2, 3, 4, 5, 6, 7].
[0102] (A3) In some embodiments of A1, jointly signaling two or more predicted coefficient signs includes jointly encoding two or more values, each value of the two or more values indicating whether a respective predicted coefficient sign matches the actual sign of a corresponding transform coefficient. For example, the value may be (Outside 11) The file is TIFF0007804774000018.tif9170.
[0103] (A4) In some embodiments of A3, encoding the two or more values includes (i) mapping a combination of the two or more values to a predefined index value of the symbol index, and (ii) encoding the predefined index value. For example, if two or more predicted coefficient codes are equal to 3, (Outside 12) TIFF0007804774000019.tif9170 can take any value in the set [000,001,010,011,100,101,110,111]. In this example: (Outside 13) The combination TIFF0007804774000020.tif9170 maps to a unique index in [0,1,2,3,4,5,6,7].
[0104] (A5) In some embodiments of any of A1-A4, (i) the method further includes obtaining symbol indices, (ii) each symbol of the symbol indices represents a respective combination of coefficient code values, and (iii) the symbol indices are used to jointly signal two or more predicted coefficient codes. For example, the encoder may N The N individual coefficient codes are grouped to form an index associated with each symbol, where each symbol represents a particular combination of the N coefficient code values.
[0105] (A6) In some embodiments of A5, the method further includes encoding the index of the symbol using a multi-symbol arithmetic coder. In some embodiments, the method further includes encoding the index of the symbol using a binary coder.
[0106] (A7) In some embodiments of A5 or A6, the step of jointly signaling the two or more predicted coefficient codes includes the steps of (i) mapping the combination of the two or more predicted coefficient codes to a predefined index value of the symbol index, and (ii) encoding the predefined index value.
[0107] (A8) In some embodiments of any of A5 to A7, the symbol index is between 0 and 2 N It includes values ranging from -1 to N, where N is the number of predicted coefficient codes that are signaled together.
[0108] (A9) In some embodiments of any of A5-A8, the method further includes context coding the index of the symbol.
[0109] (A10) In some embodiments of A9, the symbol index is context coded based on pre-coded information, for example, the pre-coded information includes plane type, transform type, and / or block size.
[0110] (A11) In some embodiments of any of A1-A10, (i) the predicted coefficient codes include N+M predicted coefficient codes, (ii) signaling two or more predicted coefficient codes together includes signaling N predicted coefficient codes together, and (iii) the method further includes signaling the M predicted coefficient codes individually.
[0111] (A12) In some embodiments of A11, the N predicted coefficient signs correspond to transform coefficients with respective non-zero values.
[0112] (A13) In some embodiments of A11 or A12, the M predicted coefficient signs correspond to transform coefficients with respective values of zero.
[0113] (A14) In some embodiments of any of A11-A13, signaling the N predicted coefficient codes together includes mapping a combination of the N predicted coefficient codes to an index.
[0114] (A15) In some embodiments of any of A11 to A14, the step of signaling the N predicted coefficient signs together includes a step of mapping value combinations to symbols, each value of the value combination indicating whether each predicted coefficient sign matches the actual sign of the corresponding transform coefficient.
[0115] (A16) In some embodiments of any of A1-A15, (i) the predicted coefficient codes include a set of predicted coefficient codes, (ii) signaling two or more predicted coefficient codes together includes signaling a first subset of the set of predicted coefficient codes together, and (iii) the method further includes signaling a second subset of the set of predicted coefficient codes together. For example, the transform coefficient codes are divided into N code groups, and each group of coefficient codes is mapped to an index. In some embodiments, the set of predicted coefficient codes corresponds to a set of non-zero transform coefficients.
[0116] (A17) In some embodiments of A16, the size of the first subset is different from the size of the second subset. For example, the first subset includes three predicted coefficient codes and the second subset includes two predicted coefficient codes. In another example, if the number of non-zero coefficients in the transform block is 14 and N=3, then among the first 12 coefficient codes, sets of three transform coefficient codes are each mapped to an index. The remaining two transform coefficient codes in this example are in the set [0,2], such that the last coefficient code is assumed to be zero. N -1].
[0117] (A18) In some embodiments of any of A1-A17, the method further includes transmitting a bitstream including the entropy-encoded first block.
[0118] (B1) In another aspect, some embodiments include a method of video decoding (e.g., method 650). In some embodiments, the method is implemented in a computing system (e.g., server system 112) comprising a memory and one or more processors. In some embodiments, the method is implemented in a coding module (e.g., coding module 320). In some embodiments, the method is implemented in a parser (e.g., parser 254). The method includes (i) obtaining video data having a plurality of blocks including a first block from a bitstream (e.g., a bitstream transmitted over A18); (ii) determining (e.g., with parsing module 324) a plurality of transform coefficients associated with the first block; (iii) obtaining coded values of transform coefficient sign indices; (iv) reconstructing coefficient signs of each of the plurality of transform coefficients from the coded values; and (v) reconstructing the first block (e.g., with decoding module 322) based on the plurality of transform coefficients and the reconstructed coefficient signs of each of the plurality of transform coefficients.
[0119] (B2) In some embodiments of B1, the step of reconstructing the coefficient code of each of the plurality of transform coefficients from the coded value includes: (i) decoding the coded value; and (ii) mapping the decoded value to the coefficient code of each of the plurality of transform coefficients using an index of the symbol (e.g., the index described above with respect to A5).
[0120] (B3) In some embodiments of B1 or B2, the coded values correspond to two or more predicted coefficient codes.
[0121] (B4) In some embodiments of B1 or B2, the coded values correspond to two or more values, each of which indicates whether the respective predicted coefficient sign matches the actual sign of the corresponding transform coefficient.
[0122] (B5) In some embodiments of B1-B4, (i) the bitstream corresponds to video coded according to any of A1-A8, and (ii) reconstructing each coefficient code includes reversing at least a portion of the coding of any of A1-A18.
[0123] The methods described herein may be used separately or combined in any order. Each of the methods may be implemented by processing circuitry (e.g., one or more processors or one or more integrated circuits). In some embodiments, the processing circuitry executes a program stored on a non-transitory computer-readable medium.
[0124] In another aspect, some embodiments include a computing system (e.g., server system 112) including control circuitry (e.g., control circuitry 302) and a memory (e.g., memory 314) coupled to the control circuitry, the memory storing one or more sets of instructions configured to be executed by the control circuitry, the one or more sets of instructions including instructions for performing any of the methods described herein (e.g., A1-A18 and B1-B5 above).
[0125] In yet another aspect, some embodiments include a non-transitory computer-readable storage medium storing one or more sets of instructions for execution by control circuitry of a computing system, the one or more sets of instructions including instructions for performing any of the methods described herein (e.g., A1-A18 and B1-B5 above).
[0126] It will be understood that although terms such as "first," "second," etc. may be used herein to describe various elements, the elements should not be limited by these terms; these terms are used only to distinguish one element from another.
[0127] The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the claims. As used in the description of the embodiments and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise. The term "and / or," as used herein, will also be understood to refer to and encompass any and all possible combinations of one or more of the associated listed items. Furthermore, the terms "comprises" and / or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features.
[0128] As used herein, the term "if" can be interpreted to mean "when" or "upon" or "in response to determining" or "in accordance with a determination" or "in response to detecting" the preceding condition is true, depending on the context. Similarly, "if it is determined that [the preceding condition is true]" or "if [the preceding condition is true]" or "when [the preceding condition is true]" can be interpreted to mean "upon determining" or "in response to determining" or "in accordance with a determination" or "detecting" or "in response to detecting" the preceding condition is true, depending on the context.
[0129] The above description has been set forth with reference to specific embodiments for purposes of explanation. However, the above illustrative discussion is not intended to be exhaustive or to limit the scope of the claims to the precise form disclosed. Many modifications and variations are possible in light of the above teachings. The embodiments were chosen and described to best explain and thereby enable those skilled in the art the principles of operation and practical applications.
[0130] [Related Applications] This application claims priority to U.S. Provisional Patent Application No. 63 / 352,411, filed June 15, 2022, entitled "Joint Signaling of Coefficient Signs using Multiple Symbol Codec," and is a continuation of and claims priority to U.S. Patent Application No. 18 / 143,516, filed May 4, 2023, entitled "Systems and Methods for Joint Signaling of Transform Coefficient Signs," both of which are incorporated herein by reference in their entirety.
Claims
1. 1. A method of video encoding executed on a computing system comprising a memory and one or more processors, comprising: obtaining video data having a plurality of blocks including a first block; determining a plurality of transform coefficients associated with the first block, the plurality of transform coefficients being associated with respective prediction qualities among a plurality of prediction qualities; predicting a coefficient sign of each of the plurality of transform coefficients; signaling the two or more predicted coefficient codes together using index values corresponding to the symbol indices by grouping two or more predicted coefficient codes among the predicted coefficient codes based on the plurality of prediction accuracy levels to obtain symbol indices, each symbol representing a respective combination of coefficient code values; entropy encoding the first block using the jointly signaled coefficient codes; A method having the following.
2. encoding the index values using a multi-symbol arithmetic coder. The method of claim 1.
3. A step of mapping the two or more predicted coefficient sign combinations to the index values of the symbol indexes; encoding the index value; Further comprising: The method of claim 1.
4. The symbol index is from 0 to 2 N has a value in the range from -1 to N is the number of predicted coefficient codes that are signaled together. The method of claim 1.
5. The symbol index is context coded based on pre-coded information. The method of claim 1.
6. The method of claim 1, wherein the index value is determined based on whether the two or more predicted coefficient signs match the actual signs of the corresponding transform coefficients. The method of claim 1.
7. The method of claim 6, further comprising: mapping a combination of two or more values indicating whether the two or more predicted coefficient signs match the actual signs of the corresponding transform coefficients to the index values of the symbol index; encoding the index value; Further comprising: The method of claim 6.
8. the predicted coefficient codes include N+M predicted coefficient codes; signaling two or more predicted coefficient codes together comprises signaling N predicted coefficient codes together; The method further comprises the step of individually signaling the M predicted coefficient signs. The method of claim 1.
9. the N predicted coefficient signs correspond to transform coefficients having non-zero respective values; The method of claim 8.
10. and wherein the step of signaling the N predicted coefficient codes together further comprises the step of mapping a combination of the N predicted coefficient codes to the index value. The method of claim 8.
11. The step of signaling the N predicted coefficient signs together further comprises mapping a combination of values to the index value; each value in the combination of values indicates whether each predicted coefficient sign matches the actual sign of the corresponding transform coefficient; The method of claim 8.
12. the predicted coefficient signs comprise a set of predicted coefficient signs; signaling the two or more predicted coefficient codes together comprises signaling together a first subset of the set of predicted coefficient codes; The method includes jointly signaling a second subset of the set of predicted coefficient codes. The method of claim 1.
13. a control circuit; Memory and one or more sets of instructions stored in the memory and configured to be executed by the control circuitry; The one or more sets of instructions, when executed by the control circuitry, cause the control circuitry to perform a method according to any one of claims 1 to 12. Computing system.
14. 1. A computer program product comprising one or more sets of instructions configured to be executed by a computing device comprising control circuitry and a memory, the computer program product comprising: The one or more sets of instructions, when executed by the control circuitry, cause the control circuitry to perform a method according to any one of claims 1 to 12. Computer program.
15. 1. A method of video decoding executed on a computing system comprising a memory and one or more processors, comprising: obtaining video data from a bitstream, the video data having a plurality of blocks including a first block; determining a plurality of transform coefficients associated with the first block, the plurality of transform coefficients being associated with respective prediction qualities among a plurality of prediction qualities; obtaining, from the bitstream, index values representing two or more predicted coefficient codes, the index values corresponding to symbol indices obtained by grouping the two or more predicted coefficient codes based on the plurality of prediction accuracy levels, each symbol of the symbol indices representing a respective combination of coefficient code values; reconstructing the two or more predicted coefficient signs based on the index values; reconstructing the first block based on the two or more predicted coefficient signs that have been reconstructed; A method having the following.
16. A method of video encoding in an encoder, comprising: transmitting an encoded bitstream, the encoded bitstream comprising: generating video data having a plurality of blocks including a first block; determining a plurality of transform coefficients associated with the first block, the plurality of transform coefficients being associated with respective prediction qualities among a plurality of prediction qualities; predicting a coefficient sign of each of the plurality of transform coefficients; signaling the two or more predicted coefficient codes together using index values corresponding to the symbol indices by grouping two or more predicted coefficient codes among the predicted coefficient codes based on the plurality of prediction accuracy levels to obtain symbol indices, each symbol representing a respective combination of coefficient code values; entropy encoding the first block using the jointly signaled coefficient codes; A method for generating a
Citation Information
Patent Citations
Sign prediction for block-based video coding
WO2023023039A1