Systems and methods for joint signaling of transform coefficient symbols
Through the joint signaling technology of multi-symbol arithmetic codecs, the transformation coefficient symbols are predicted and encoded, which solves the problems of bandwidth and storage space limitations in video encoding and decoding, achieves efficient video data compression and controls the distortion of video quality.
Patent Information
- Application Number
- CN202380014381.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-05-04
- Filing Date
- 2023-05-05
- Publication Date
- 2024-08-27
AI Technical Summary
Existing video coding and decoding technology has bandwidth and storage space limitations during transmission and storage, making it difficult to effectively compress video data. At the same time, distortion problems are difficult to control in lossy compression.
A multi-symbol arithmetic codec is used for joint signaling, predicting transform coefficient symbols and performing entropy coding and decoding to improve coding and decoding efficiency, reduce required coding bits, and reduce bandwidth requirements.
By jointly signaling multiple coefficient symbols, the efficiency of video encoding and decoding is improved, bandwidth and storage space requirements are reduced, and the distortion of video quality is controlled, which is suitable for the tolerance of different application scenarios.
Smart Images

Figure CN118556403A_ABST
Abstract
Description
[0001] Related Applications
[0002] This application claims priority to U.S. Provisional Patent Application No. 63 / 352,411, filed on 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 on May 4, 2023, entitled “Systems and Methods for Joint Signaling of Transform Coefficient Signs,” the entire contents of all of which are incorporated herein by reference. Technical Field
[0003] The disclosed embodiments relate generally to video coding and decoding, including but not limited to systems and methods for coefficient sign prediction and encoding / decoding of transform coefficients. Background Art
[0004] Digital video is supported by various electronic devices such as digital televisions, laptop or desktop computers, tablet computers, digital cameras, digital recording devices, digital media players, video game consoles, smart phones, video teleconferencing devices, video streaming devices, etc. Electronic devices send and receive or otherwise transmit digital video data across communication networks and / or store digital video data on storage devices. Due to the limited bandwidth capacity of communication networks and the limited memory resources of storage devices, video codecs can be used to compress video data according to one or more video codec standards before transmitting or storing the video data.
[0005] A variety of video codec standards have been developed. For example, video codec standards include AOMedia Video1 (AV1), Versatile Video Coding (VVC), Joint Exploration Test Model (JEM), High-Efficiency Video Coding (HEVC / H.265), Advanced Video Coding (AVC / H.264) and Moving Picture Expert Group (MPEG) codecs. Video codecs typically utilize prediction methods (e.g., inter-frame prediction, intra-frame prediction, etc.) that exploit the redundancy inherent in video data. Video codecs are intended to compress video data into a form that uses a lower bit rate while avoiding or minimizing degradation of video quality.
[0006] HEVC (also known as H.265) is a video compression standard designed as part of the MPEG-H project. ITU-T and ISO / IEC released the HEVC / H.265 standard in 2013 (version 1), 2014 (version 2), 2015 (version 3), and 2016 (version 4). Versatile Video Codec (VVC) (also known as H.266) is a video compression standard intended to be a successor to HEVC. ITU-T and ISO / IEC released the VVC / H.266 standard in 2020 (version 1) and 2022 (version 2). AV1 is an open video codec format designed as an alternative to HEVC. On January 8, 2019, the verified version 1.0.0 of the specification with Errata 1 was released. Summary of the invention
[0007] As mentioned above, encoding (compression) reduces bandwidth and / or storage space requirements. As described in detail later, both lossless compression and lossy compression can be used. Lossless compression refers to a technique that can reconstruct an exact copy of the original signal from the compressed original signal via a decoding process. Lossy compression refers to a codec / decoding process in which the original video information is not fully retained during encoding and decoding and cannot be fully restored during decoding. When lossy compression is used, the reconstructed signal may not be the same as the original signal, but the distortion between the original signal and the reconstructed signal is small enough to make the reconstructed signal useful for the intended application. The amount of tolerable distortion depends on the application. For example, users of certain consumer video streaming applications can tolerate higher distortion than users of movie or television broadcast applications. The compression ratio achievable by a specific codec algorithm can be selected or adjusted to reflect various distortion tolerances: higher tolerable distortion generally allows codec algorithms that produce higher losses and higher compression ratios.
[0008] The video encoder and / or decoder can utilize techniques from several broad categories and steps, including, for example, motion compensation, Fourier transform, quantization, and entropy coding and decoding. During entropy coding and decoding, data about the operation can be sent to the entropy encoder. The entropy encoder can output a bitstream (encoded video sequence), which can be transmitted to another device via a transmission channel. During the video decoding process, the bitstream can be sent to the entropy decoder (parser). The entropy decoder can output data about the operation based on the bitstream, which may include intra-frame prediction information, residual information, etc. In some embodiments, entropy coding and decoding is performed based on the probability of occurrence of symbols (or characters) that are the basis of arithmetic coding and decoding using an arithmetic coding and decoding algorithm. In some embodiments, the probability of occurrence of symbols (or characters) is dynamically updated during the coding and decoding process. For example, there are only two possible characters ("a" and "b"), the probability of "a" occurring is represented as p_a, and the probability of "b" occurring is represented as p_b, and then p_a+p_b=1 (or any other constant value). Therefore, when "a" is encountered in the encoding / decoding process, p_a can be updated to a larger value; and p_b can be updated to a smaller value because the sum of p_a and p_b can be constant. This probability update process can be called a "probability transition process" or a "probability state index update process".
[0009] According to some embodiments, a method of video encoding is provided. The method includes: (i) obtaining video data including a plurality of blocks (including a first block); (ii) determining a plurality of transform coefficients associated with the first block; (iii) predicting corresponding coefficient signs of the plurality of transform coefficients; and (iv) entropy encoding and decoding the first block including jointly signaling two or more prediction coefficient signs.
[0010] According to some embodiments, another method of video decoding is provided. The method includes: (i) obtaining video data including multiple blocks (including a first block) from a bitstream; (ii) determining multiple transform coefficients associated with the first block; (iii) obtaining a coded value of a transform coefficient symbol index; (iv) reconstructing corresponding coefficient symbols of the multiple transform coefficients according to the coded value; and (v) reconstructing the first block based on the multiple transform coefficients and the reconstructed corresponding coefficient symbols of the multiple transform coefficients.
[0011] According to some embodiments, a computing system is provided, such as a streaming system, a server system, a personal computer system or other electronic device. The computing system includes a control circuit system and a memory storing one or more instruction sets. The one or more instruction sets include instructions for performing any method described herein. In some embodiments, the computing system includes an encoder component and / or a decoder component.
[0012] According to some embodiments, a non-transitory computer-readable storage medium is provided. The non-transitory computer-readable storage medium stores one or more instruction sets for execution by a computing system. The one or more instruction sets include instructions for executing any method described herein.
[0013] Therefore, devices, systems and methods for encoding and decoding video are disclosed. Such methods, devices and systems can supplement or replace conventional methods, devices and systems for video encoding / decoding.
[0014] The features and advantages described in this specification are not necessarily all inclusive, and in particular, some additional features and advantages will be apparent to one of ordinary skill in the art in view of the drawings, descriptions, and claims provided in this disclosure. Furthermore, it should be noted that the language used in this specification is primarily selected for readability and instructional purposes and is not necessarily selected to describe or limit the subject matter described herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order that the present disclosure may be understood in more detail, a more specific description may be made by reference to the features of various embodiments, some of which are illustrated in the accompanying drawings. However, the accompanying drawings illustrate only the relevant features of the present disclosure and are therefore not necessarily to be considered limiting, as those skilled in the art will understand upon reading the present disclosure that the description may allow for other effective features.
[0016] Figure 1 is a block diagram illustrating an example communication system in accordance with some implementations.
[0017] Figure 2Ais a block diagram illustrating example elements of an encoder component according to some implementations.
[0018] Figure 2B is a block diagram illustrating example elements of a decoder component according to some implementations.
[0019] Figure 3 is a block diagram illustrating an example server system according to some implementations.
[0020] 4A to 4D An example codec tree structure is shown in accordance with some implementations.
[0021] Figure 5A An example line graph transform (LGF) is shown in accordance with some implementations.
[0022] Figure 5B A transform block and example pixel positions in adjacent rows and columns are shown according to some embodiments.
[0023] Fig. 6A is a flow chart illustrating an example method of encoding a video according to some implementations.
[0024] Figure 6B is a flow chart illustrating an example method of decoding a video according to some implementations.
[0025] According to common practice, the various features shown 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. DETAILED DESCRIPTION
[0026] The present disclosure describes, among other things, predicting coefficient symbols during encoding and decoding of a transform block and jointly signaling the predicted coefficient symbols. For example, corresponding coefficient symbols are predicted for a plurality of transform coefficients, and subsequent entropy encoding and decoding includes jointly signaling two or more predicted coefficient symbols. For example, a multi-symbol arithmetic codec may be used to jointly encode and decode two or more predicted coefficient symbols (and / or jointly encode and decode the accuracy of the predicted symbols). Jointly signaling multiple coefficient symbols improves encoding and decoding efficiency, for example, fewer encoding bits are required, which reduces bandwidth requirements.
[0027] Example Systems and Devices
[0028] Figure 11 is a block diagram illustrating a communication system 100 according to some embodiments. The communication system 100 includes a source device 102 and a plurality of electronic devices 120 (e.g., electronic device 120-1 to electronic device 120-m) communicatively coupled to each other via one or more networks. In some embodiments, the communication system 100 is a streaming system, for example, for use with video-enabled applications such as video conferencing applications, digital TV applications, and media storage and / or distribution applications.
[0029] The source device 102 includes a video source 104 (e.g., a camera component or a media storage device) and an encoder component 106. In some embodiments, the video source 104 is a digital camera (e.g., configured to create an uncompressed video sample stream). The encoder component 106 generates one or more encoded video bitstreams based on the video stream. The video stream from the video source 104 can be high in data volume compared to the encoded video bitstream 108 generated by the encoder component 106. Because the encoded video bitstream 108 is of lower data volume (less data) than the video stream from the video source, the encoded video bitstream 108 requires less bandwidth to transmit and requires less storage space to store than the video stream from the video source 104. In some embodiments, the source device 102 does not include an encoder component 106 (e.g., configured to transmit uncompressed video data to the network 110).
[0030] One or more networks 110 represent any number of networks that transmit information between source device 102, server system 112, and / or electronic device 120, including, for example, wired (wired) and / or wireless communication networks. One or more networks 110 can exchange data in circuit switching and / or packet switching channels. Representative networks include telecommunication networks, local area networks, wide area networks, and / or the Internet.
[0031] One or more networks 110 include a server system 112 (e.g., a distributed / cloud computing system). In some embodiments, the 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 the source device 102). The server system 112 includes a codec component 114 (e.g., configured to encode and / or decode video data). In some embodiments, the codec component 114 includes an encoder component and / or a decoder component. In various embodiments, the codec component 114 is instantiated as hardware, software, or a combination of hardware and software. In some embodiments, the codec component 114 is configured to decode the encoded video bitstream 108 and re-encode the video data using different encoding standards and / or methods to generate encoded video data 116. In some embodiments, the server system 112 is configured to generate multiple video formats and / or encodings based on the encoded video bitstream 108.
[0032] In some embodiments, the server system 112 functions as a Media-Aware Network Element (MANE). For example, the server system 112 can be configured to prune the encoded video bitstream 108 to customize a potentially different bitstream for one or more of the electronic devices 120. In some embodiments, the MANE is provided separately from the server system 112.
[0033] The electronic device 120-1 includes a decoder component 122 and a display 124. In some embodiments, the decoder component 122 is configured to decode the encoded video data 116 to generate an outgoing video stream that can be presented on a display or other type of presentation device. In some embodiments, one or more of the electronic devices 120 do not include a display component (e.g., communicatively coupled to an external display device and / or including a media storage device). In some embodiments, the electronic device 120 is a streaming client. In some embodiments, the electronic device 120 is configured to access the server system 112 to obtain the encoded video data 116.
[0034] The source device and / or multiple electronic devices 120 are sometimes referred to as “end devices” or “user devices.” In some embodiments, one or more of the electronic devices 120 and / or the source device 102 are examples of server systems, personal computers, portable devices (e.g., smart phones, tablets, or laptops), wearable devices, video conferencing devices, and / or other types of electronic devices.
[0035] In an example operation of the communication system 100, the source device 102 transmits a coded video bitstream 108 to a server system 112. For example, the source device 102 may encode and decode a picture stream captured by the source device. The server system 112 receives the coded video bitstream 108 and may decode and / or encode the coded video bitstream 108 using a codec component 114. For example, the server system 112 may apply a coding that is more optimized for network transmission and / or storage to the video data. The server system 112 may transmit the coded video data 116 (e.g., one or more coded and decoded video bitstreams) to one or more of the electronic devices 120. Each electronic device 120 may decode the coded video data 116 to recover and optionally display a video picture.
[0036] In some embodiments, the transmission discussed above is a unidirectional data transmission. Unidirectional data transmission is sometimes used for media service applications, etc. In some embodiments, the transmission discussed above is a bidirectional data transmission. Bidirectional data transmission is sometimes used for video conferencing applications, etc. In some embodiments, the coded video bitstream 108 and / or the coded video data 116 are encoded and / or decoded according to any video codec / compression standard described herein, such as HEVC, VVC, and / or AV1.
[0037] Figure 2A 1 is a block diagram illustrating example elements of an encoder component 106 according to some embodiments. The encoder component 106 receives a source video sequence from a video source 104. In some embodiments, the encoder component includes a receiver (e.g., a transceiver) component configured to receive the source video sequence. In some embodiments, the encoder component 106 receives the video sequence from a remote video source (e.g., a video source that is a component of a device different from the encoder component 106). The video source 104 can provide the source video sequence in the form of a digital video sample stream, which can have any suitable bit depth (e.g., 8 bits, 10 bits, or 12 bits), any color space (e.g., BT.601 Y CrCb or RGB), and any suitable sampling structure (e.g., Y CrCb 4:2:0 or Y CrCb 4:4:4). In some embodiments, the video source 104 is a storage device that stores previously captured / prepared videos. In some embodiments, the video source 104 is a camera that captures local image information as a video sequence. The video data can be provided as a plurality of individual pictures that are given motion when viewed sequentially. The pictures themselves can be organized as a spatial pixel array, where each pixel may include one or more samples, depending on the sampling structure, color space, etc. used. The relationship between pixels and samples can be readily understood by one of ordinary skill in the art. The following description focuses on samples.
[0038] The encoder component 106 is configured to encode and decode the pictures of the source video sequence and / or compress them into the encoded video sequence 216 in real time or under other time constraints required by the application. Implementing the appropriate encoding and decoding speed is a function of the controller 204. In some embodiments, the controller 204 controls other functional units as described below and is functionally coupled to the other functional units. The parameters set by the controller 204 may include rate control related parameters (e.g., lambda values for picture skipping, quantizers, and / or rate-distortion optimization techniques), picture size, picture group (Group of Picture, GOP) layout, maximum motion vector search range, etc. Other functions of the controller 204 can be easily identified by those of ordinary skill in the art, as these functions may belong to the encoder component 106 optimized for a specific system design.
[0039] In some embodiments, the encoder component 106 is configured to operate in a codec loop. In a simplified example, the codec loop includes a source codec 202 (e.g., responsible for creating symbols, such as a symbol stream, based on the input picture to be encoded and the reference picture) and a (local) decoder 210. The decoder 210 reconstructs the symbols to create sample data in a similar manner to the (remote) decoder (when the compression between the symbols and the encoded and decoded video bitstream is lossless). The reconstructed sample stream (sample data) is input to the reference picture memory 208. Since the decoding of the symbol stream produces bit-accurate results that are independent of the decoder location (local or remote), the contents of the reference picture memory 208 are also bit-accurate between the local encoder and the remote encoder. In this way, the prediction part of the encoder interprets the same sample values as the sample values that the decoder would interpret when using prediction during decoding as reference picture samples. The principles of reference picture synchronization (and the drift that occurs when synchronization cannot be maintained, such as due to channel errors) are known to those of ordinary skill in the art.
[0040] The operation of decoder 210 may be combined with a remote decoder, for example, as follows Figure 2B The operation of the decoder component 122 described in detail is the same. However, briefly referring to Figure 2B , since the symbols are available and the encoding of the symbols into the encoded video sequence by the entropy codec 214 and the decoding of the symbols by the parser 254 can be lossless, the entropy decoding portion of the video decoder component 122 including the buffer memory 252 and the parser 254 may not be fully implemented in the local decoder 210.
[0041] At this point, it can be observed that any decoder technology other than the parsing / entropy decoding present in the decoder must also be present in the corresponding encoder in substantially the same functional form. For this reason, the disclosed subject matter focuses on the decoder operation. The description of encoder technology can be simplified because encoder technology is contrary to the decoder technology described comprehensively. Only in some parts is a more detailed description required and provided below.
[0042] As part of the operation of the source codec 202, the source codec 202 can perform motion compensated predictive coding, which predictively codes an input frame with reference to one or more previously coded frames from a video sequence that are designated as reference frames. In this way, the codec engine 212 codes the difference between a pixel block of an input frame and a pixel block of a reference frame that can be selected as a prediction reference for the input frame. The controller 204 can manage the codec operation of the source codec 202, including, for example, setting parameters and subgroup parameters for encoding video data.
[0043] The decoder 210 decodes the coded video data of the frame that can be designated as the reference frame based on the symbol created by the source codec 202. The operation of the codec engine 212 can advantageously be a lossy process. Figure 2A The reconstructed video sequence may be a copy of the source video sequence with some errors when decoded at a remote video decoder (not shown). Decoder 210 replicates the decoding process that may be performed on the reference frame by the remote video decoder and may cause the reconstructed reference frame to be stored in reference picture memory 208. In this manner, encoder component 106 locally stores a copy of the reconstructed reference frame that has common content (absent transmission errors) with the reconstructed reference frame to be obtained by the remote video decoder.
[0044] The predictor 206 may perform a prediction search for the codec engine 212. That is, for a new frame to be encoded, the predictor 206 may search the reference picture memory 208 for sample data (as candidate reference pixel blocks) or specific metadata such as reference picture motion vectors, block shapes, etc. that may be used as appropriate prediction references for the new picture. The predictor 206 may operate on a pixel block by pixel block basis to find an appropriate prediction reference. In some cases, as determined by the search results obtained by the predictor 206, the input picture may have prediction references taken from multiple reference pictures stored in the reference picture memory 208.
[0045] The outputs of all the above-mentioned functional units may be subjected to entropy coding and decoding in the entropy codec 214. The entropy codec 214 converts the symbols generated 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).
[0046] In some embodiments, the output of the entropy codec 214 is coupled to a transmitter. The transmitter can be configured to buffer the coded video sequence created by the entropy codec 214 in preparation for transmission via a communication channel 218, which can be a hardware / software link to a storage device that will store the coded video data. The transmitter can be configured to merge the coded video data from the source codec 202 with other data to be transmitted, such as coded audio data and / or an auxiliary data stream (source not shown). In some embodiments, the transmitter can transmit additional data as well as the coded video. The source codec 202 can include such data as part of the coded video sequence. The additional data can include time / space / SNR enhancement layers, other forms of redundant data such as redundant pictures and slices, Supplementary Enhancement Information (SEI) messages, Visual Usability Information (VUI) parameter set fragments, etc.
[0047] The controller 204 can manage the operation of the encoder component 106. During encoding and decoding, the controller 204 can assign a certain encoded picture type to each encoded picture, which may affect the encoding and decoding technology applied to the corresponding picture. For example, a picture can be assigned as an intra picture (I picture), a predicted picture (P picture), or a bidirectional predicted picture (B picture). Intra-pictures can be encoded and decoded without using any other frame in the sequence as a prediction source. Some video codecs allow different types of intra-pictures, including, for example, independent decoder refresh (IDR) pictures. Those of ordinary skill in the art understand those variations of I pictures and their corresponding applications and features, and therefore are not repeated here. Predictive pictures can be encoded and decoded using inter-frame prediction or intra-frame prediction, which uses at most one motion vector and reference index to predict the sample value of each block. Bidirectional predictive pictures can be encoded and decoded using inter-frame prediction or intra-frame prediction, which uses at most two motion vectors and reference indexes to predict the sample value of each block. Similarly, multi-predictive pictures may use more than two reference pictures and associated metadata for reconstructing a single block.
[0048] The source picture may typically be spatially subdivided into a number of blocks of samples (e.g., blocks of 4×4, 8×8, 4×8 or 16×16 samples, respectively), and coded block by block. These blocks may be predictively coded with reference to other (already coded) blocks, which are determined by the codec assignment applied to the corresponding picture of the block. For example, blocks of an I picture may be non-predictively coded or may be predictively coded (spatial prediction or intra-frame prediction) with reference to already coded blocks of the same picture. Pixel blocks of a P picture may be non-predictively coded with reference to a previously coded reference picture via spatial prediction or via temporal prediction. Blocks of a B picture may be non-predictively coded with reference to one or two previously coded reference pictures via spatial prediction or via temporal prediction.
[0049] Video can be captured as multiple source pictures (video pictures) in a temporal sequence. Intra-picture prediction (often referred to as intra-prediction for short) exploits spatial correlations in a given picture, while inter-picture prediction exploits (temporal or other) correlations between pictures. In an example, a particular picture in encoding / decoding (which is referred to as the current picture) is divided into blocks. In the case where a block in the current picture is similar to a reference block in a reference picture that has been previously encoded and decoded in the video and is still buffered, the block in the current picture can be encoded and decoded by a vector called a motion vector. The motion vector points to a reference block in a reference picture, and in the case where multiple reference pictures are used, the motion vector may have a third dimension that identifies the reference picture.
[0050] The encoder component 106 may perform encoding and decoding operations according to a predetermined video codec technology or standard, such as any described herein. In operation of the encoder component 106, the encoder component 106 may perform various compression operations, including predictive encoding and decoding operations that exploit temporal and spatial redundancy in the input video sequence. Thus, the encoded video data may conform to the syntax specified by the video codec technology or standard used.
[0051] Figure 2B is a block diagram illustrating example elements of decoder component 122 according to some implementations. Figure 2B The decoder component 122 in is coupled to the channel 218 and the display 124. In some embodiments, the decoder component 122 includes a transmitter coupled to the loop filter unit 256 and configured to transmit data to the display 124 (eg, via a wired or wireless connection).
[0052] In some embodiments, the decoder component 122 includes a receiver that is coupled to the channel 218 and is configured to receive data from the channel 218 (e.g., via a wired or wireless connection). The receiver can be configured to receive one or more coded video sequences decoded by the decoder component 122. In some embodiments, the decoding of each coded video sequence is independent of other coded video sequences. Each coded video sequence can be received from the channel 218, which can be a hardware / software link to a storage device storing coded video data. The receiver can receive the coded video data and other data, such as coded audio data and / or auxiliary data streams, which can be forwarded to their respective use entities (not depicted). The receiver can separate the coded video sequence from the other data. In some embodiments, the receiver receives additional (redundant) data as well as the coded video. The additional data can be included as part of the coded video sequence. The decoder component 122 can use the additional data to properly decode the data and / or more accurately reconstruct the original video data. The additional data may be in the form of, for example, temporal, spatial or SNR enhancement layers, redundant slices, redundant pictures, forward error correction codes, etc.
[0053] According to some embodiments, decoder component 122 includes a buffer memory 252, a parser 254 (sometimes also 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, decoder component 122 is implemented as an integrated circuit, a series of integrated circuits, and / or other electronic circuit systems. In some embodiments, decoder component 122 is at least partially implemented in software.
[0054] The buffer memory 252 is coupled between the channel 218 and the parser 254 (e.g., to combat network jitter). In some embodiments, the buffer memory 252 is separate from the decoder component 122. In some embodiments, a separate buffer memory is provided between the output of the channel 218 and the decoder component 122. In some embodiments, in addition to the buffer memory 252 internal to the decoder component 122 (e.g., the buffer memory 252 is configured to handle playout timing), a separate buffer memory is provided external to the decoder component 122 (e.g., to combat network jitter). When receiving data from a store / forward device with sufficient bandwidth and controllability or from an isochronous network, the buffer memory 252 may not be required, or the buffer memory 252 may be smaller. In order to make the most of a packet network such as the Internet, a buffer memory 252 may be required, which may be relatively large and may advantageously have an adaptive size, and may be implemented at least in part in an operating system or similar element (not depicted) external to the decoder component 122.
[0055] The parser 254 is configured to reconstruct symbols 270 from the coded video sequence. The symbols may include, for example, information for managing the operation of the decoder component 122 and / or information for controlling a rendering device such as the display 124. The control information for the rendering device may be in the form of, for example, a Supplementary Enhancement Information (SEI) message or a Video Usability Information (VUI) parameter set fragment (not depicted). The parser 254 parses (entropy decodes) the coded video sequence. The coding and decoding of the coded video sequence may be performed according to a video coding technique or standard, and may follow principles known to those skilled in the art, including variable length coding, Huffman coding, arithmetic coding with or without context sensitivity, etc. The parser 254 may extract a subgroup parameter set for at least one of the subgroups of pixels in the video decoder from the coded video sequence based on at least one parameter corresponding to the group. Subgroups 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. The parser 254 may also extract information such as transform coefficients, quantizer parameter values, motion vectors, etc. from the coded video sequence.
[0056] Depending on the type of the coded video picture or a portion of the coded video picture (e.g., inter- and intra-pictures, inter- and intra-blocks) and other factors, the reconstruction of the symbol 270 may involve multiple different units. Which units are involved and how they are involved can be controlled by subgroup control information parsed from the coded video sequence by the parser 254. For the sake of brevity, such subgroup control information flow between the parser 254 and the following multiple units is not depicted.
[0057] In addition to the functional blocks already mentioned, decoder component 122 can be conceptually subdivided into a plurality of functional units as described below. In the actual implementation of operation under commercial constraints, many of these units are closely interacting with each other and can be at least partially integrated with each other. However, for the purpose of describing the disclosed subject matter, it is kept to be conceptually subdivided into the following functional units.
[0058] The sealer / inverse transform unit 258 receives the quantized transform coefficients and control information (such as which transform to use, block size, quantization factor, quantization scaling matrix) from the parser 254 as symbols 270. The sealer / inverse transform unit 258 may output a block including sample values, which may be input into the aggregator 268.
[0059] In some cases, the output samples of the sealer / inverse transform unit 258 belong to an intra-frame encoded block; that is, a block that does not use predictive information from a previously reconstructed picture, but can use predictive information from a previously reconstructed portion of the current picture. Such predictive information can be provided by the intra-frame picture prediction unit 262. The intra-frame picture prediction unit 262 can use the surrounding already reconstructed information obtained from the current (partially reconstructed) picture from the current picture memory 264 to generate a block of the same size and shape as the block under reconstruction. The aggregator 268 can add the prediction information that has been generated by the intra-frame picture prediction unit 262 to the output sample information as provided by the sealer / inverse transform unit 258 on a per-sample basis.
[0060] In other cases, the output samples of the scaler / inverse transform unit 258 belong to an inter-frame coded and possibly motion compensated block. In such a case, the motion compensated prediction unit 260 may access the reference picture memory 266 to obtain samples for prediction. After the obtained samples are motion compensated according to the symbol 270 belonging to the block, these samples may be added to the output of the scaler / inverse transform unit 258 (called residual samples or residual signals in this case) by the aggregator 268 to generate output sample information. The address within the reference picture memory 266 may be controlled by a motion vector, and the motion compensated prediction unit 260 obtains the predicted samples from the reference picture memory. The motion vector may be available to the motion compensated prediction unit 260 in the form of a symbol 270, which may have, for example, an X component, a Y component, and a reference picture component. Motion compensation may also include interpolation of sample values such as those obtained from the reference picture memory 266 when using sub-sample accurate motion vectors, motion vector prediction mechanisms, etc.
[0061] The output samples of aggregator 268 may be subjected to various loop filtering techniques in loop filter unit 256. The video compression techniques may include in-loop filter techniques controlled by parameters included in the coded video bitstream and available to loop filter unit 256 as symbols 270 from parser 254, but the video compression techniques may also be responsive to meta-information obtained during decoding of a coded picture or a previous (in decoding order) portion of a coded video sequence, and to previously reconstructed and loop filtered sample values.
[0062] The output of the loop filter unit 256 may be a sample stream that may be output to a rendering device such as the display 124 and stored in the reference picture memory 266 for future inter-picture prediction.
[0063] Certain coded pictures, once fully reconstructed, may be used as reference pictures for future prediction. Once a coded picture is fully reconstructed, and the coded picture has been identified as a reference picture (e.g., by the parser 254), the current reference picture may become part of the reference picture memory 266, and a new current picture memory may be reallocated before starting reconstruction of a subsequent coded picture.
[0064] The decoder component 122 may perform decoding operations according to a predetermined video compression technique that may be recorded in a standard such as any standard described herein. As specified in a video compression technology document or standard and particularly in a configuration file therein, the coded video may conform to the syntax specified by the video compression technology or standard used in the sense that the coded video sequence follows the syntax of the video compression technology or standard. In addition, in order to conform to some video compression technologies or standards, the complexity of the coded video sequence may be within a range as defined by the level of the video compression technology or standard. In some cases, the level limits the maximum picture size, the maximum frame rate, the maximum reconstruction sample rate (measured in, for example, mega samples per second), the maximum reference picture size, etc. In some cases, the limits set by the level may be further controlled by the Hypothetical Reference Decoder (HRD) specification and the metadata for HRD buffer management signaled in the coded video sequence.
[0065] Figure 3 is a block diagram illustrating a server system 112 according to some embodiments. The server system 112 includes a control circuit system 302, one or more network interfaces 304, a memory 314, a user interface 306, and one or more communication buses 312 for interconnecting these components. In some embodiments, the control circuit system 302 includes one or more processors (e.g., CPU, GPU, and / or DPU). In some embodiments, the control circuit system includes one or more field programmable gate arrays (FPGA), hardware accelerators, and / or one or more integrated circuits (e.g., application specific integrated circuits).
[0066] The network interface 304 can be configured to interface with one or more communication networks (e.g., wireless, wired, and / or optical networks). The communication network can be local, wide area, metropolitan area network, vehicle-mounted and industrial, real-time, delay-tolerant, etc. Examples of communication networks include: local area networks such as Ethernet; wireless LAN (Local Area Network, LAN); cellular networks including GSM (Global System for Mobile Communications, GSM), 3G (the Third Generation, 3G), 4G (the Fourth Generation, 4G), 5G (the Fifth Generation, 5G), LTE (Long Term Evolution, LTE), etc.; TV wired or wireless wide area digital networks including cable TV, satellite TV, and terrestrial broadcast TV; vehicle and industrial networks including CANBus, etc. Such communications can be one-way reception only (e.g., broadcast TV), one-way transmission only (e.g., CAN bus to certain CAN bus devices), or bidirectional (e.g., to other computer systems using local area digital networks or wide area digital networks). Such communications can include communications to one or more cloud computing networks.
[0067] The user interface 306 includes one or more output devices 308 and / or one or more input devices 310. The input device 310 may include one or more of the following: a keyboard, a mouse, a trackpad, a touch screen, a data glove, a joystick, a microphone, a scanner, a camera, etc. The output device 308 may include one or more of the following: an audio output device (e.g., a speaker), a visual output device (e.g., a display), etc.
[0068] The memory 314 may include high-speed random access memory (e.g., DRAM (Dynamic Random Access Memory, DRAM), SRAM (Static Random-Access Memory, SRAM), DDRRAM (Double Data Rate RAM, 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). The memory 314 optionally includes one or more storage devices remote from the control circuit system 302. The memory 314, or alternatively, the non-volatile solid-state memory device within the memory 314, includes a non-transitory computer-readable storage medium. In some embodiments, the memory 314 or the non-transitory computer-readable storage medium of the memory 314 stores the following programs, modules, instructions and data structures, or a subset or superset thereof:
[0069] An operating system 316, which includes procedures for handling various basic system services and for performing hardware-related tasks;
[0070] A network communication module 318 for connecting the server system 112 to other computing devices via one or more network interfaces 304 (eg, via wired and / or wireless connections);
[0071] A codec module 320 for performing various functions related to encoding and / or decoding data such as video data. In some embodiments, the codec module 320 is an instance of the codec component 114. The codec module 320 includes, but is not limited to, one or more of the following:
[0072] o a decoding module 322 for performing various functions related to decoding encoded data, such as those previously described with respect to the decoder component 122; and
[0073] o an encoding module 340 for performing various functions related to encoding data, such as those previously described with respect to encoder component 106; and
[0074] A picture memory 352 for storing pictures and picture data, for example for use with the codec module 320. In some embodiments, the picture memory 352 includes one or more of the following: the reference picture memory 208, the buffer memory 252, the current picture memory 264, and the reference picture memory 266.
[0075] In some embodiments, the decoding module 322 includes a parsing module 324 (e.g., configured to perform the various functions previously described with respect to the parser 254), a transform module 326 (e.g., configured to perform the various functions previously described with respect to the scaler / inverse transform unit 258), a prediction module 328 (e.g., configured to perform the various functions previously described 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 previously described with respect to the loop filter unit 256).
[0076] In some embodiments, the encoding module 340 includes a code module 342 (e.g., configured to perform various functions previously described with respect to the source codec 202, the codec engine 212, and / or the entropy codec) and a prediction module 344 (e.g., configured to perform various functions previously described with respect to the predictor 206). In some embodiments, the decoding module 322 and / or the encoding module 340 includes Figure 3 For example, the shared prediction module is used by both the decoding module 322 and the encoding module 340.
[0077] Each of the above identified modules stored in the memory 314 corresponds to an instruction set for performing the functions described herein. The above identified modules (e.g., instruction sets) do not need to be implemented as separate software programs, processes, or modules, and therefore various subsets of these modules can be combined or otherwise rearranged in various embodiments. For example, the codec module 320 optionally does not include a separate decoding module and encoding module, but uses the same module set to perform two groups of functions. In some embodiments, the memory 314 stores a subset of the above identified modules and data structures. In some embodiments, the memory 314 stores additional modules and data structures not described above, such as an audio processing module.
[0078] In some embodiments, the 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 Pages (ASP), Hypertext Markup Language (HTML), Extensible Markup Language (XML), Java, JavaScript, Asynchronous JavaScript and XML (AJAX), XHP, Javelin, Wireless Universal Resource File (WURFL), etc.
[0079] although Figure 3 The server system 112 is shown according to some embodiments, but Figure 3 The present invention is intended more as a functional description of various features that may be present in one or more server systems rather than as a block diagram of the embodiments described herein. In practice, and as recognized by one of ordinary skill in the art, items shown separately may be combined and some items may be separated. For example, Figure 3 Some of the items shown individually in the figure can be implemented on a single server, and a single item can be implemented by one or more servers. The actual number of servers used to implement server system 112 and how features are distributed among them will vary depending on the implementation and, optionally, will depend in part on the amount of data traffic that the server system handles during peak usage periods and during average usage periods.
[0080] Example encoding and decoding method
[0081] 4A to 4D An example codec tree structure according to some embodiments is shown. Figure 4A As shown in the first codec tree structure (400) in , some codecs (e.g., VP9) use a 4-way partition tree starting from the 64×64 level down to the 4×4 level, with some additional restrictions for block 8×8. Figure 4AThe partitioning designated as R in can be called recursive, which consists in repeating the same partitioning tree at a smaller scale until the lowest 4×4 level is reached.
[0082] like Figure 4B As shown in the second codec tree structure (402) in FIG. 1 , some codecs (e.g., AV1) extend the partition tree to a 10-way structure and increase the maximum size (e.g., superblock in VP9 / AV1 parlance) to start at 128×128. The second codec tree structure includes 4:1 / 1:4 rectangular partitions that are not in the first codec tree structure. Figure 4B The partition type with 3 sub-partitions in the second row of is called a T-partition. The rectangular partitions in this tree structure cannot be further subdivided. In addition to the codec block size, the codec tree depth can also be defined to indicate the partition depth from the root node. For example, the codec tree depth of the root node (e.g. 128×128) is set to 0, and after the tree block is further divided once, the codec tree depth increases by 1.
[0083] As an example, instead of enforcing a fixed transform unit size as in VP9, AV1 allows the luma codec block to be partitioned into transform units of multiple sizes, which can be represented by recursive partitioning down to up to 2 levels. To incorporate AV1's extended codec block partitioning, 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 unit is allowed.
[0084] As an example, in HEVC, for example, a CTU (Coding Tree Unit, CTU) can be divided into CUs using a quadtree structure represented as a codec tree to accommodate various local characteristics. In some embodiments, the decision on whether to encode and decode a picture area using inter-picture (temporal) prediction or intra-picture (spatial) prediction is made at the CU level. Each CU can be further divided into one, two or four PUs according to the PU partition type. Within a PU, the same prediction process is applied, and the relevant information is transmitted to the decoder PU by PU. After obtaining the residual block by applying the prediction process based on the PU partition type, the CU can be divided into TUs according to another quadtree structure of the codec tree similar to the CU. One of the key features of the HEVC structure is that it has a variety of partitioning concepts including CU, PU and TU. In HEVC, a CU or TU can be only square in shape, while for an inter-frame prediction block PU can be square or rectangular in shape. In HEVC, a codec block can be further divided into four square sub-blocks, and a transformation is performed on each sub-block (TU). Each TU can be further recursively (using quadtree partitioning) divided into smaller TUs, which are called residual quadtrees (RQT). At picture boundaries, such as in HEVC, implicit quadtree partitioning can be used so that the block will remain quadtree partitioned until the size fits the picture boundary.
[0085] For example, in VVC, a quadtree with nested multi-type trees using binary and ternary partitioning segment structures can replace the concept of multiple partition unit types, for example, it removes the separation of CU, PU, and TU concepts, except for CUs whose size is too large for the maximum transform length, and supports more flexibility for CU partition shapes. In the codec tree structure, a CU can have a square or rectangular shape. The ACTU is first partitioned by a quadtree (also called a quadtree) structure. The quadtree leaf nodes can be further partitioned by a multi-type tree structure. Figure 4C As shown in the third codec tree structure (404) in , the multi-type tree structure includes four types of partitioning. For example, the multi-type tree structure includes vertical binary partitioning (SPLIT_BT_VER), horizontal binary partitioning (SPLIT_BT_HOR), vertical ternary partitioning (SPLIT_TT_VER), and horizontal ternary partitioning (SPLIT_TT_HOR). The multi-type tree leaf node is called a CU, and unless the CU is too large for the maximum transform length, the segment is used for prediction and transform processing without any further partitioning. This means that in most cases, CUs, PUs, and TUs have the same block size in a quadtree with a nested multi-type tree codec block structure. An exception occurs when the maximum supported transform length is less than the width or height of the color component of the CU. In Figure 4D An example of block partitioning of a CTU (406) is shown in FIG. Figure 4D An example quadtree with a nested multi-type tree codec block structure is shown.
[0086] For example, in VVC, the maximum supported luma transform size may be 64 × 64, and the maximum supported chroma transform size may be 32 × 32. When the width or height of a CB is greater than the maximum transform width or height, the CB is automatically split in the horizontal and / or vertical directions to meet the transform size restrictions in that direction.
[0087] For example, in VTM7, the codec tree scheme supports the ability of luma and chroma to have separate block tree structures. In some cases, for P slices and B slices, the luma and chroma CTBs in one CTU share the same codec tree structure. However, for I slices, luma and chroma can have separate block tree structures. When a separate block tree mode is applied, the luma CTB is partitioned into CUs by one codec tree structure, and the chroma CTB is partitioned into chroma CUs by another codec tree structure. This means that the CU in the I slice may include or consist of a codec block of the luma component or a codec block of two chroma components, and unless the video is monochrome, the CU in the P slice or B slice may always include or consist of codec blocks of all three color components.
[0088] To support extended codec block partitioning, such as in AV1, multiple transform sizes (e.g., ranging from 4 to 64 points for each 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 utilized.
[0089] The two-dimensional transform processing may involve the use of a hybrid transform kernel (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 the following: a) 4-point, 8-point, 16-point, 32-point, 64-point discrete cosine transform DCT-2; b) 4-point, 8-point, 16-point asymmetric discrete sine transform (DST-4, DST-7) and its flipped version; or c) 4-point, 8-point, 16-point, 32-point identity transform. The basis functions for DCT-2 and asymmetric DST used, for example, in AV1 are listed in Table 1.
[0090]
[0091]
[0092] Table 1 - Example AV1 primary transform basis functions
[0093] The availability of hybrid transform kernels can be based on transform block size and prediction mode. Example dependencies are listed in Table 2 below, where "→" and "↓" represent horizontal and vertical dimensions, and "√" and "×" represent the availability of kernels for the block size and prediction mode. IDTX (or IDT) stands for Identity Transform.
[0094]
[0095]
[0096] Table 2 - Availability of hybrid transform kernels based on prediction mode and block size
[0097] 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 specified 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, no transform type needs to be signaled in the bitstream.
[0098] Intra-frame prediction Vertical Transformation Horizontal Transform DC_PRED DCT DCT V_PRED ADST DCT H_PRED DCT ADST D45_PRED DCT DCT D135_PRED ADST ADST D113_PRED ADST DCT D157_PRED DCT ADST D203_PRED DCT ADST D67_PRED ADST DCT SMOOTH_PRED ADST ADST SMOOTH_V_PRED ADST DCT SMOOTH_H_PRED DCT ADST PAETH_PRED ADST ADST
[0099] Table 3 - Transform type selection for chroma component intra prediction residual
[0100] Line Graph Transform (LGT) is introduced to replace and extend (by introducing 32 points, 64 points) the above one-dimensional DST.
[0101] A graph is a general mathematical structure that includes or consists of a set of vertices and edges, which is used to model similarity relationships between objects of interest. Weighted graphs, where sets of weights are assigned to edges and possibly to vertices, provide sparse representations for robust modeling of signals / data. LGT can improve codec efficiency by providing better adaptation for different block statistics. Separable LGT is designed and optimized by learning line graphs from data to model basic row and column statistics of blocks in the residual signal, where the associated Generalized Graph Laplacian (GGL) matrix is used to derive LGT. Figure 5A It shows that the self-loop weight v c1 、v c2 and edge weight w c Example of characterization LGT.
[0102] Given a weighted graph G(W, V), the GGL matrix can be defined as:
[0103] L c =D-W+V
[0104] Formula 1
[0105] where W is the weight of the non-negative edge w c Or by non-negative edge weight w c The adjacency matrix is composed of D, D is the diagonal matrix, and V is the weighted self-loop v c1 、v c2 The diagonal matrix of . The matrix L c It can be expressed as:
[0106]
[0107] Then you can use GGL L c =UΦU T The LGT is derived from the eigendecomposition of , where the columns of the orthogonal matrix U are the basis vectors of the LGT and Φ is the diagonal eigenvalue matrix. DCT and DST (including DCT-2, DCT-8, and DST-7) are LGTs derived from a specific form of GGL. For example, we can set v c1 = 0 to derive DCT-2, which can be done by setting v c1 =w c To export DST-7, you can set v c2 =w c To derive DCT-8, you can set v c1 =2w c to derive DST-4, and can be set by setting v c2 =2 wc to derive DCT-4.
[0108] LGT can be implemented as a matrix multiplication. c Set v c1 =2w c To derive the 4pLGT nucleus, this means that the 4p LGT nucleus is DST-4. c Set v c1 =1.5w c To export the 8p LGT core, you can set v in Lc c1 =w c To derive 16p LGT core, 32p LGT core and 64p LGT core, which means it is DST-7.
[0109] In the example of residual coding in AV1, for each transform unit, coefficient coding starts with signaling a skip symbol, followed by the transform kernel type and the end of block (eob) position when the skip symbol is zero. Each coefficient value is then mapped to multiple level maps and signs. After the eob position is coded, the lower level map and the mid-level map can be coded in a reverse scan order, the former indicating whether the coefficient amplitude is between 0 and 2, and the latter indicating whether the range is between 3 and 14. The next step is to codec the signs of the coefficients and the residual values of the coefficients greater than 14 through Exp-Golomb coding in a forward scan order.
[0110] Regarding the use of context modeling, the lower level map codec combines the transform size and direction as well as up to five neighboring coefficient information. On the other hand, the middle level map codec follows a similar approach to the lower level map codec, except that the number of neighboring coefficients is as low as 2. The Exp-Golomb codec for 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 sign of its neighboring transform unit.
[0111] A weighted average of the upper neighboring block DC symbol value and the left neighboring block DC symbol value may be used to derive context information, for example, as described in Equation 1 below.
[0112]
[0113] Formula 3 - Weighted average of symbol values
[0114] dc_ctx=0if dc_sum=0,
[0115] =1 if dc_sum<0,
[0116] =2 if dc_sum>0
[0117] Equation 4 - Encoding the context In this example, the weighting depends on the length of the intersection of the adjacent transform block with the current transform block. The derived context information is used as an index to access three different contexts for DC symbol encoding and decoding, for example, as described in Equation 2 above. The symbol values of other coefficients can be directly encoded and decoded without using a context model.
[0118] For example, in VVC, in the example of residual coding for transform skipping, a CU coded in transform skip mode (TSM) can use 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 scanning order; (b) The last significant coefficient position is not signaled; (c) The syntax element coded_sub_block_flag is not coded for the last sub-block; (d) Changes are made to the context modeling for the syntax sig_coeff_flag, abs_level_gtl, and par_level_flag; and (e) The symbol flag is context-coded based on the left and upper adjacent values.
[0119] During the development of AV2, a new mode called Forward Skip Coding (FSC) was introduced to modify the transform coding process for IDTX (2D transform skip). The modifications introduced by FSC, which are functionally similar to the changes introduced to the VVC transform skip mode described above, can be summarized as follows: (a) all codec blocks and positions within codec blocks are scanned in forward scan order; (b) EOB syntax is skipped; (c) reduced context is used for coefficient levels; and (d) context coding of sign flags is performed based on left neighbor, bottom neighbor, and left bottom neighbor.
[0120] For intra blocks, when FSC mode is selected, the transform block does not signal the transform type. Instead, transform type signaling is bundled with FSC mode at the codec block level. Inter blocks do not signal FSC mode, but if the transform type is IDTX and the screen content flag is enabled, the FSC method is implicitly selected.
[0121] For entropy coding of transform coefficients, a bypass mode can be used to encode the coefficient sign separately from the amplitude / level (absolute value of the coefficient value). Separate coding means that each coefficient symbol may cost one bit to encode, which is expensive. In order to improve the efficiency of entropy coding of coefficient symbols, symbol prediction techniques can be used. For example, instead of signaling the symbol value, the context can be used to entropy code a flag indicating whether the predicted symbol is the same as the actual symbol. The context value can depend on the level of the coefficient (the absolute value of the coefficient value), because a larger level value leads to a more accurate predicted symbol value.
[0122] In an example, a set of transform coefficients for which associated symbols need to be predicted are identified. A set of hypotheses for predicted symbol values for these coefficients is then generated. For example, for three coefficients, the number of hypotheses can be as high as 8 (2^3). To predict the symbol values, there is a cost value associated with each hypothesis, and the hypothesis with the minimum cost is used to specify the predicted symbol values for the coefficients covered by the hypothesis.
[0123] Figure 5B An example of a transformed block 500 and pixel locations in adjacent rows 502 and adjacent columns 504 is shown. In some embodiments, the cost of each hypothesis is calculated as follows. A reconstructed block associated with a given hypothesis (hypothesis reconstruction) is generated after reconstruction processing (e.g., dequantization, inverse transform), and boundary samples of the reconstructed block, e.g., p 0,y and p x,0 For each reconstructed pixel p at the left boundary of the reconstructed block 0,y , performs a simple linear prediction using the two previously reconstructed neighbors on the left to get its prediction pred 0,y =(2p -1,y -p -2,y ). The prediction and reconstructed pixel p 0,y The absolute difference between them is added to the cost of the hypothesis. A similar process is performed on the pixels in the top row of the reconstructed block, where each prediction pred x,0 =(2p x,-1 -p x,-2 ) and reconstructed pixel p x,0 The absolute difference of is added. Therefore, the calculation of the cost of each coefficient sign prediction hypothesis is given in Equation 5 below.
[0124]
[0125] Formula 5 - Prediction Cost
[0126] Multiple symbols may be used to jointly signal coefficient symbols to improve encoding and decoding efficiency. A method for efficiently encoding and decoding DC and / or AC coefficient symbols may include predicting / estimating DC and / or AC coefficient symbols, and then evaluating the accuracy of the prediction / estimation. Context decoding is performed, where i is the i-th coefficient in scan order and i≤N, and N is the maximum number of coefficients to be predicted / estimated. can be defined by a binary value (0 or 1), where 0 means the prediction / estimate is accurate and 1 means the prediction / estimate is wrong. Combined together and using the power of multi-symbol arithmetic codecs to The following section discusses the joint encoding and decoding to further improve the encoding and decoding efficiency. and / or prediction coefficient signs are jointly encoded.
[0127] Fig. 6A 6 is a flow chart illustrating a method 600 of encoding a video according to some embodiments. The method 600 may be performed at a computing system (e.g., server system 112, source device 102, or electronic device 120) having a control circuit system and a memory storing instructions for execution by the control circuit system. In some embodiments, the method 600 is performed by executing instructions stored in a memory (e.g., memory 314) of the computing system.
[0128] The system obtains (602) video data including a plurality of blocks (including a first block). The system determines (604) a plurality of transform coefficients associated with the first block. In some embodiments, the plurality of transform coefficients are associated with respective prediction accuracies in a plurality of prediction accuracies. The system predicts (606) respective coefficient symbols of the plurality of transform coefficients. In some embodiments, the method includes jointly signaling two or more prediction coefficient symbols by grouping the two or more prediction coefficient symbols based on the plurality of prediction accuracies. The system entropy encodes and decodes (608) the first block including jointly signaling the two or more prediction coefficient symbols. In some embodiments, the first block is entropy encoded and decoded using the jointly signaled coefficient symbols. The method 600 is optionally applied to luminance and / or chrominance blocks. In the present disclosure, the term "block" may be used to refer to coefficients in a transform block.
[0129] In some embodiments, for example, instead of signaling each symbol individually, multiple transform coefficient symbols are jointly signaled. In some embodiments, when encoding and decoding multiple transform coefficient symbols, the codec component combines the selected N individual coefficient symbols together to form a 2 N In some embodiments, the index is encoded and decoded using a multi-symbol arithmetic codec. In some embodiments, instead of grouping and encoding the transform coefficient sign bits, a value indicating whether the predicted symbol is the same as the actual symbol is grouped and encoded as an index. In some embodiments, the index is context-coded. In some embodiments, the context for encoding and decoding the index is derived from coded information such as plane type, transform type, and / or block size.
[0130] In some embodiments, only the selected N coefficient symbols are grouped together to form an index, and the remaining coefficient symbols are signaled separately. In an example, if the number of non-zero coefficients in the transform block denoted as M is less than N, then when mapping to an index, the 2 NIn another example, if the number of non-zero coefficients in the transform block denoted as M is less than N, the NM coefficient symbols in the transform block are mapped to indices. In another example, if the number of non-zero coefficients in the transform block is greater than N, the selected N transform coefficient symbols are mapped to indices, and the remaining coefficient symbols are encoded and decoded separately.
[0131] In some embodiments, the transform coefficient symbols (e.g., all transform coefficient symbols) are divided into groups of N symbols, and each group of coefficient symbols is mapped to an index. In an example, if the number of non-zero coefficients in the transform block is 14 and N=3, a set of 3 transform coefficient symbols out of the first 12 coefficient symbols is mapped to each index. The remaining two transform coefficient symbols in this example are mapped to the same index as 2. 2 =4 symbols are associated with the index. In another example, if the number of non-zero coefficients in the transform block is 14 and N=3, a set of 3 transform coefficient symbols among the first 12 coefficient symbols is mapped to each index. In this example, the remaining two transform coefficient symbols are mapped to the set [0, 2 N -1], so that the sign of the last coefficient is assumed to be zero.
[0132] In another example, at the encoder component, if N=3, then can take any value in the set [000, 001, 010, 011, 100, 101, 110, 111]. In this example, to a unique index in the set [0, 1, 2, 3, 4, 5, 6, 7]. The predicted symbols are grouped and encoded in a similar manner as described.
[0133] Figure 6B 6 is a flow chart illustrating a method 650 of decoding video according to some embodiments. The method 650 may be performed at a computing system (e.g., server system 112, source device 102, or electronic device 120) having a control circuit system and a memory storing instructions for execution by the control circuit system. In some embodiments, the method 650 is performed by executing instructions stored in a memory (e.g., memory 314) of the computing system.
[0134] The system obtains (652) video data including a plurality of blocks (including a first block). The system determines (654) a plurality of transform coefficients associated with the first block. The system obtains (566) an encoded value for a transform coefficient symbol index. The system reconstructs (658) corresponding coefficient symbols for the plurality of transform coefficients based on the encoded value. The system reconstructs (660) the first block based on the plurality of transform coefficients and the reconstructed corresponding coefficient symbols for the plurality of transform coefficients. The method 650 is optionally applied to luminance and / or chrominance blocks. In some embodiments, at a decoder component, coefficient symbols for the selected N individual coefficients are reconstructed using decoded values of the indexes. In some embodiments, the indexes are encoded and decoded using a multi-symbol arithmetic codec.
[0135] In some embodiments, each combination of multiple transform coefficient symbols is mapped to a predefined index value. In some embodiments, the index may be in the set [0, 2 N -1], such as the source space of the index.
[0136] In the example, at 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 maps to any value in the set [000, 001, 010, 011, 100, 101, 110, 111]. In some embodiments, the The predicted symbols are grouped and encoded in a similar manner as described.
[0137] although Fig. 6A and Figure 6B Multiple logical stages are shown in a particular order, but stages that do not depend on order may be reordered, and other stages may be combined or split. Some reordering or other groupings not specifically mentioned will be apparent to one of ordinary skill in the art, so the ordering and groupings presented herein are not exhaustive. Furthermore, it should be appreciated that the various stages may be implemented in hardware, firmware, software, or any combination thereof.
[0138] Let us now look at some example implementations.
[0139] (A1) In one aspect, some embodiments include a method of video encoding (e.g., method 600). In some embodiments, the method is performed at a computing system (e.g., server system 112) having a memory and a control circuit system. In some embodiments, the method is performed at a codec module (e.g., codec module 320). In some embodiments, the method is performed at an entropy codec (e.g., entropy codec 214). The method includes: (i) (e.g., from a video source 104) obtaining video data including a plurality of blocks (including a first block); (ii) determining a plurality of transform coefficients associated with the first block; (iii) (e.g., using a prediction module 344) predicting corresponding coefficient symbols of the plurality of transform coefficients; and (iv) (e.g., using an encoding module 340) entropy encoding and decoding the first block including jointly signaling two or more prediction coefficient symbols. In some embodiments, the plurality of transform coefficients are associated with corresponding prediction accuracies in a plurality of prediction accuracies. In some embodiments, the method includes jointly signaling two or more prediction coefficient symbols by grouping the two or more prediction coefficient symbols based on a plurality of prediction accuracies. In some embodiments, the first block is entropy encoded and decoded using the coefficient symbols signaled jointly. For example, the plurality of blocks are transform blocks. In some embodiments, the first block includes a luminance block. In some embodiments, the first block includes a chrominance block. In some embodiments, each element of the first block corresponds to a reconstructed pixel.
[0140] (A2) In some embodiments of A1, jointly signaling two or more prediction coefficient symbols includes jointly encoding two or more prediction coefficient symbols. For example, if two or more prediction coefficient symbols are equal to 3, the prediction symbol can take any value in the set [000, 001, 010, 011, 100, 101, 110, 111]. In this example, the combination of prediction symbols is mapped to a unique index in the set [0, 1, 2, 3, 4, 5, 6, 7].
[0141] (A3) In some embodiments of A1, jointly signaling two or more prediction coefficient symbols includes jointly encoding two or more values, each of the two or more values indicating whether the corresponding prediction coefficient symbol matches the actual symbol of the corresponding transform coefficient. For example, these values are the accuracy of the prediction coefficient symbol. value.
[0142] (A4) In some embodiments of A3, encoding two or more values includes: (i) mapping a combination of the two or more values to a predefined index value of an index of a symbol; and (ii) encoding the predefined index value. For example, if two or more prediction coefficient symbols are equal to 3, then can take any value in the set [000, 001, 010, 011, 100, 101, 110, 111]. In this example, The combination of is mapped to a unique index in the set [0, 1, 2, 3, 4, 5, 6, 7].
[0143] (A5) In some embodiments of any one of A1 to A4, the method further comprises: (i) obtaining an index of a symbol; (ii) each symbol in the index of the symbol represents a corresponding combination of coefficient symbol values; and (iii) the index of the symbol is used to jointly signal two or more prediction coefficient symbols. For example, the encoder groups N individual coefficient symbols to form a group with 2 N An index associated with N symbols, where each symbol represents a specific combination of N coefficient symbol values.
[0144] (A6) In some embodiments of A5, the method further comprises encoding the index of the symbol using a multi-symbol arithmetic codec. In some embodiments, the method further comprises encoding the index of the symbol using a binary codec.
[0145] (A7) In some embodiments of A5 or A6, jointly signaling two or more prediction coefficient symbols includes: (i) mapping a combination of two or more prediction coefficient symbols to a predefined index value of the index of the symbols; and (ii) encoding the predefined index value.
[0146] (A8) In some embodiments of any one of A5 to A7, the index of the symbol is included in 0 to 2 N A value in the range of -1 to -1, where N is the number of prediction coefficient symbols signaled jointly.
[0147] (A9) In some embodiments of any one of A5 to A8, the method further includes context encoding and decoding the index of the symbol.
[0148] (A10) In some embodiments of A9, context encoding is performed on the index of the symbol based on the encoded information. For example, the encoded information includes a plane type, a transform type and / or a block size.
[0149] (A11) In some embodiments of any one of A1 to A10: (i) the prediction coefficient symbol includes N+M prediction coefficient symbols; (ii) jointly signaling two or more prediction coefficient symbols includes jointly signaling N prediction coefficient symbols; and (iii) the method also includes separately signaling M prediction coefficient symbols.
[0150] (A12) In some embodiments of A11, the N prediction coefficient symbols correspond to transform coefficients having non-zero corresponding values.
[0151] (A13) In some embodiments of A11 or A12, the M prediction coefficient symbols correspond to transform coefficients having corresponding zero values.
[0152] (A14) In some embodiments of any one of A11 to A13, jointly signaling the N prediction coefficient symbols includes mapping a combination of the N prediction coefficient symbols to an index.
[0153] (A15) In some embodiments of any one of A11 to A14, jointly signaling the N prediction coefficient symbols includes mapping a combination of values to an index, wherein each value in the combination of values indicates whether the corresponding prediction coefficient symbol matches the actual sign of the corresponding transform coefficient.
[0154] (A16) In some embodiments of any one of A1 to A15: (i) the prediction coefficient symbol includes a prediction coefficient symbol set; (ii) jointly signaling two or more prediction coefficient symbols includes jointly signaling a first subset of the prediction coefficient symbol set; and (iii) the method further includes jointly signaling a second subset of the prediction coefficient symbol set. For example, the transform coefficient symbols are divided into groups of N symbols, and each group of coefficient symbols is mapped to an index. In some embodiments, the prediction coefficient symbol set corresponds to a set of non-zero transform coefficients.
[0155] (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 3 prediction coefficient symbols and the second subset includes 2 prediction coefficient symbols. In another example, if the number of non-zero coefficients in the transform block is 14 and N=3, a set of 3 transform coefficient symbols among the first 12 coefficient symbols is mapped to each index. In this example, the remaining two transform coefficient symbols are mapped to the set [0, 2 N -1], so that the sign of the last coefficient is assumed to be zero.
[0156] (A18) In some embodiments of any one of A1 to A17, the method further includes transmitting a bitstream including the entropy encoded first block.
[0157] (B1) In another aspect, some embodiments include a method of video decoding (e.g., method 650). In some embodiments, the method is performed at a computing system (e.g., server system 112) having a memory and a control circuit system. In some embodiments, the method is performed at a codec module (e.g., codec module 320). In some embodiments, the method is performed at a parser (e.g., parser 254). The method includes: (i) obtaining video data including multiple blocks (including a first block) from a bitstream (e.g., a bitstream transmitted in A18); (ii) (e.g., using parsing module 324) determining multiple transform coefficients associated with the first block; (iii) obtaining an encoded value of a transform coefficient symbol index; (iv) reconstructing corresponding coefficient symbols of multiple transform coefficients based on the encoded value; and (v) (e.g., using decoding module 322) reconstructing the first block based on multiple transform coefficients and the reconstructed corresponding coefficient symbols of the multiple transform coefficients.
[0158] (B2) In some embodiments of B1, reconstructing corresponding coefficient symbols of multiple transform coefficients based on encoded values includes: (i) decoding the encoded values; and (ii) mapping the decoded values to corresponding coefficient symbols of multiple transform coefficients using an index of the symbol (e.g., the index described above with respect to A5).
[0159] (B3) In some embodiments of B1 or B2, the encoded value corresponds to two or more prediction coefficient symbols.
[0160] (B4) In some embodiments of B1 or B2, the encoded value corresponds to two or more values, each of the two or more values indicating whether the sign of the corresponding prediction coefficient matches the actual sign of the corresponding transform coefficient.
[0161] (B5) In some embodiments of any one of B1 to B4: (i) the bitstream corresponds to a video encoded according to any one of A1 to A18; and (ii) reconstructing the corresponding coefficient signs includes inverting at least a portion of the encoding of any one of A1 to A18.
[0162] The methods described herein can be used individually or in combination in any order. Each of the methods can be implemented by a processing circuit system (e.g., one or more processors or one or more integrated circuits). In some embodiments, the processing circuit system executes a program stored in a non-transitory computer readable medium.
[0163] In another aspect, some embodiments include a computing system (e.g., server system 112) that includes a control circuit system (e.g., control circuit system 302) and a memory (e.g., memory 314) coupled to the control circuit system, the memory storing one or more instruction sets configured to be executed by the control circuit system, the one or more instruction sets including instructions for performing any of the methods described herein (e.g., A1 to A8 and B1 to B5 above).
[0164] In yet another aspect, some embodiments include a non-transitory computer-readable storage medium storing one or more instruction sets for execution by a control circuit system of a computing system, the one or more instruction sets including instructions for performing any of the methods described herein (e.g., A1 to A8 and B1 to B5 above).
[0165] It should be understood that although the terms "first", "second", etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
[0166] The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present claims. As used in the description of the embodiments and the appended claims, the singular forms "a", "an" and "the" are also intended to include plural forms unless the context clearly indicates otherwise. It will also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more associated listed items. It will also be understood that when the terms "include" and / or "comprising" are used in this specification, it indicates the presence of the features, integers, steps, operations, elements and / or parts, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, parts and / or their groups.
[0167] As used herein, the term “if” may be interpreted as “when the precondition is true” or “after the precondition is true” or “in response to determining that the precondition is true” or “in accordance with determining that the precondition is true” or “in response to detecting that the precondition is true”, depending on the context. Similarly, the phrase “if it is determined that [the precondition is true]” or “if [the precondition is true]” or “when [the precondition is true]” may be interpreted as “after determining that the precondition is true” or “in response to determining that the precondition is true” or “in accordance with determining that the precondition is true” or “after detecting that the precondition is true” or “in response to detecting that the precondition is true”, depending on the context.
[0168] For purposes of illustration, the foregoing description has been described with reference to specific embodiments. However, the above illustrative discussion is not intended to be exhaustive or to limit the present claims to the precise forms disclosed. Many modifications and variations are possible in light of the above teachings. These embodiments were chosen and described in order to best illustrate the principles of operation and practical application, thereby enabling others skilled in the art to implement.
Claims
1. A method of video encoding performed at a computing system having a memory and one or more processors, the method comprising: obtaining video data comprising a plurality of blocks, the plurality of blocks comprising a first block; determining a plurality of transform coefficients associated with the first block, wherein the plurality of transform coefficients are associated with respective prediction accuracies of a plurality of prediction accuracies; predicting corresponding coefficient signs of the plurality of transform coefficients; jointly signaling the two or more prediction coefficient symbols by grouping the two or more prediction coefficient symbols based on the plurality of prediction accuracies; The first block is entropy encoded and decoded using the jointly signaled coefficient symbols.
2. The method according to claim 1, wherein: Jointly signaling the two or more prediction coefficient symbols includes jointly encoding the two or more prediction coefficient symbols.
3. The method according to claim 1, further comprising obtaining an index of the symbol; in, Each symbol of the symbol index represents a corresponding combination of coefficient symbol values; and Therein, the index of the symbol is used to jointly signal the two or more prediction coefficient symbols.
4. The method of claim 3, further comprising encoding the index of the symbol using a multi-symbol arithmetic codec.
5. The method according to claim 3, wherein: Jointly signaling the two or more prediction coefficient signs comprises: Mapping a combination of the two or more prediction coefficient symbols to a predefined index value of the index of the symbols; and The predefined index value is encoded.
6. The method according to claim 3, wherein: The index of the symbol is included in 0 to 2 N -1, where N is the number of prediction coefficient symbols signaled jointly.
7. The method according to claim 3, wherein: The index of the symbol is context-coded based on the coded information.
8. The method according to claim 1, wherein: Jointly signaling the two or more prediction coefficient symbols comprises jointly encoding two or more values, each of the two or more values indicating whether a respective prediction coefficient symbol matches an actual sign of a corresponding transform coefficient.
9. The method according to claim 8, wherein: Encoding the two or more values comprises: mapping the combination of the two or more values to a predefined index value of an index of a symbol; and The predefined index value is encoded.
10. The method according to claim 1, wherein: The prediction coefficient symbols include N+M prediction coefficient symbols; wherein jointly signaling the two or more prediction coefficient symbols comprises jointly signaling N prediction coefficient symbols; and The method also includes individually signaling the M prediction coefficient symbols.
11. The method according to claim 10, wherein: The N prediction coefficient symbols correspond to transform coefficients having non-zero corresponding values.
12. The method according to claim 10, wherein: The jointly signaling the N prediction coefficient symbols comprises mapping combinations of the N prediction coefficient symbols to indices.
13. The method according to claim 10, wherein: The jointly signaling of the N prediction coefficient symbols comprises mapping a combination of values to an index, wherein each value in the combination of values indicates whether a respective prediction coefficient symbol matches an actual sign of a corresponding transform coefficient.
14. The method of claim 1, wherein: The prediction coefficient symbols include a prediction coefficient symbol set; Jointly signaling the two or more prediction coefficient symbols comprises jointly signaling a first subset of the set of prediction coefficient symbols; and The method further comprises jointly signaling a second subset of the set of prediction coefficient symbols.
15. A computing system comprising: Control circuit system; Memory; as well as One or more instruction sets stored in the memory and configured for execution by the control circuitry, the one or more instruction sets comprising instructions for: obtaining video data comprising a plurality of blocks, the plurality of blocks comprising a first block; determining a plurality of transform coefficients associated with the first block, wherein the plurality of transform coefficients are associated with respective prediction accuracies of a plurality of prediction accuracies; predicting corresponding coefficient signs of the plurality of transform coefficients; jointly signaling the two or more prediction coefficient symbols by grouping the two or more prediction coefficient symbols based on the plurality of prediction accuracies; The first block is entropy encoded and decoded using the jointly signaled coefficient symbols.
16. The computing system of claim 15, wherein: Jointly signaling the two or more prediction coefficient symbols includes jointly encoding the two or more prediction coefficient symbols.
17. The computing system of claim 15, wherein: The one or more instruction sets also include instructions for: An index of symbols is obtained, wherein each symbol of the index of symbols represents a corresponding combination of coefficient symbol values, and wherein the index of symbols is used to jointly signal the two or more prediction coefficient symbols.
18. A non-transitory computer-readable storage medium storing one or more sets of instructions configured for execution by a computing device having control circuitry and memory, the one or more sets of instructions comprising instructions for: obtaining video data comprising a plurality of blocks, the plurality of blocks comprising a first block; determining a plurality of transform coefficients associated with the first block, wherein: The plurality of transform coefficients are associated with respective prediction accuracies of a plurality of prediction accuracies; predicting corresponding coefficient signs of the plurality of transform coefficients; jointly signaling the two or more prediction coefficient symbols by grouping the two or more prediction coefficient symbols based on the plurality of prediction accuracies; The first block is entropy encoded and decoded using the jointly signaled coefficient symbols.
19. The non-transitory computer readable storage medium of claim 18, wherein: Jointly signaling the two or more prediction coefficient symbols includes jointly encoding the two or more prediction coefficient symbols.
20. The non-transitory computer readable storage medium of claim 18, wherein: The one or more instruction sets also include instructions for: An index of symbols is obtained, wherein each symbol of the index of symbols represents a corresponding combination of coefficient symbol values, and wherein the index of symbols is used to jointly signal the two or more prediction coefficient symbols.
