Expanded operating range for versatile video coding
By restricting dependencies in history-based Rician parameter derivation and aligning with parallel coding, the method enhances video coding efficiency and stability, addressing inefficiencies in processing large video data volumes.
Patent Information
- Application Number
- JP2024510524
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-04
- Filing Date
- 2022-08-26
- Publication Date
- 2024-09-26
AI Technical Summary
Existing video coding techniques face inefficiencies in processing large volumes of video data, leading to increased storage and transmission requirements without maintaining visual quality, and parallel processing is hindered by dependencies in history-based Rician parameter derivation.
Implement history-based Rician parameter derivation with restricted dependencies between coding tree units (CTUs) to enable parallel processing, using initial values and memory synchronization to align with parallel coding mechanisms, and adjust bit depth and decoded picture buffer size for efficient video coding.
Enhances coding efficiency by reducing computational complexity and maintaining parallelism, thereby improving video coding stability and reducing data requirements without compromising visual quality.
Smart Images

Figure 2024534816000001
Abstract
Description
[Technical field]
[0001] REFERENCE TO RELATED APPLICATIONS This application claims priority to U.S. Provisional Patent Application No. 63 / 260,600, filed August 26, 2021, entitled "History-Based Rice Parameter Derivation for Wavefront Parallel Processing in Video Coding," and to U.S. Provisional Patent Application No. 63 / 262,078, filed October 4, 2021, entitled "History-Based Rice Parameter Derivation for Wavefront Parallel Processing in Video Coding," and to U.S. Provisional Patent Application No. 63 / 251,385, filed October 1, 2021, entitled "Bit Depth Range Representation for VVC Operation Range Extension," the entire contents of which are incorporated herein by reference.
[0002] FIELD OF THE DISCLOSURE This disclosure relates generally to computer-implemented methods and systems for video processing. In particular, this disclosure relates to operation range extension for versatile video coding. [Background technology]
[0003] The ubiquity of camera-equipped devices such as smartphones, tablets, and computers has made it easier than ever to capture videos and images. However, even a short video can contain a significant amount of data. Video coding techniques (including video encoding and decoding) compress video data into smaller sizes, allowing a variety of videos to be stored and transmitted. Video coding is used in a wide range of applications, including digital television broadcasting, video transmission over the Internet and mobile networks, real-time applications (e.g., video chat, video conferencing, etc.), digital versatile discs (DVDs) and Blu-ray discs, etc. It is desirable to improve the efficiency of video coding schemes in order to reduce the consumption of storage space for storing videos and / or network bandwidth for transmitting videos. Summary of the Invention
[0004] Some embodiments relate to a history-based Rice parameter derivation for wavefront parallel processing in video coding. In one example, a method for decoding video from a video bitstream encoded using Versatile Video Coding (VVC) includes: Determine the bit depth of the samples of the video based on the Sequence Parameter Set (SPS) syntax element sps_bitdepth_minus8, whose value is in the range of 0 to 8. The size of the decoded picture buffer (DPB) is determined based on the video parameter set (VPS) syntax element vps_ols_dpb_bitdepth_minus8, where the value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8. A storage space having the determined size of the DPB is allocated. Based on the determined bit depth, the video bitstream is decoded into a number of pictures. One or more of the decoded pictures are stored in the DPB. One or more of the decoded pictures are output for display.
[0005] In another example, a non-transitory computer readable medium has program code stored thereon, the program code being executable by one or more processing devices to perform the following operations: determining a size of a decoded picture buffer (DPB) for the video based on a video parameter set (VPS) syntax element vps_ols_dpb_bitdepth_minus8 included in a video bitstream of the video, where the video bitstream is encoded using versatile video coding (VVC) and the value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8; allocating a storage space having a determined size of the DPB; Decoding the video bitstream into a plurality of pictures; storing one or more of the decoded pictures in a DPB; and outputting one or more of the decoded pictures for display.
[0006] In another example, a system includes a processing device and a non-transitory computer readable medium communicatively coupled to the processing device, the processing device configured to execute program code stored on the non-transitory computer readable medium to thereby perform the following operations: determining a size of a decoded picture buffer (DPB) for the video based on a video parameter set (VPS) syntax element vps_ols_dpb_bitdepth_minus8 included in a video bitstream of the video, where the video bitstream is encoded using versatile video coding (VVC) and the value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8; allocating a storage space having a determined size of the DPB; Decoding the video bitstream into a plurality of pictures; storing one or more of the decoded pictures in a DPB; and outputting one or more of the decoded pictures for display.
[0007] These exemplary embodiments are not described to limit or define the disclosure, but to provide examples to aid in understanding the disclosure. Additional embodiments are described in detail in the specification and further explanation is provided in the specification. [Brief description of the drawings]
[0008] The features, embodiments and advantages of the present disclosure will be better understood from the following detailed description when read in conjunction with the accompanying drawings, in which: [Figure 1] FIG. 1 is a block diagram illustrating an example of a video encoder configured to implement embodiments described herein. [Diagram 2] FIG. 2 is a block diagram illustrating an example of a video decoder configured to implement embodiments described herein. [Diagram 3] FIG. 3 is a diagram illustrating an example of a division of coding tree units of a picture in a video, according to some embodiments of the disclosure. [Figure 4]FIG. 4 is a diagram illustrating an example of division of coding units of a coding tree unit according to some embodiments of the present disclosure. [Diagram 5] FIG. 5 is a diagram illustrating an example of a coding block and a predefined order for processing elements of the coding block. [Figure 6] FIG. 6 is a diagram showing an example of a template pattern for calculating local sum variables of coefficients located near the boundary of a transform unit. [Figure 7] FIG. 7 is a diagram showing an example of a tile with wavefront parallel processing enabled. [Figure 8] FIG. 8 is a diagram illustrating an example of a frame, tiles included in the frame, and coding tree units for which history counters are calculated, according to some embodiments of the present disclosure. [Figure 9] FIG. 9 illustrates an example process for encoding a partition of a video according to some embodiments of the present disclosure. [Figure 10] FIG. 10 illustrates an example process for decoding a partition of a video according to some embodiments of the disclosure. [Figure 11] FIG. 11 illustrates another example process for encoding a partition of a video according to some embodiments of the present disclosure. [Figure 12] FIG. 12 illustrates another example process for decoding a partition of a video according to some embodiments of the disclosure. [Figure 13] FIG. 13 illustrates an example of a computing system that can be used to implement some embodiments of the present disclosure. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0009] Various embodiments provide a history-based Rice parameter derivation for wavefront parallel processing in video coding. As mentioned above, more and more video data is being generated, stored, and transmitted. It is beneficial to improve the efficiency of video coding techniques, thereby representing video using less data without compromising the visual quality of the decoded video. One way to improve coding efficiency is to compress processed video samples into a binary bitstream using as few bits as possible by entropy coding. Meanwhile, since video generally contains a large amount of data, it is beneficial to reduce the processing time during coding (encoding and decoding). To this end, parallel processing can be used for video encoding and decoding.
[0010] In entropy coding, video samples are binarized into binary bins, and the bins can be further compressed into bits by coding algorithms such as context-adaptive binary arithmetic coding (CABAC). Binarization requires the computation of binarization parameters, such as the Rice parameter used in the combination of truncated Rice (TR) and limited k-th order Exp-Golomb (EGk) binarization processes specified in the Versatile Video Coding (VVC) standard. To improve coding efficiency, a history-based Rice parameter derivation is used. In the history-based Rice parameter derivation, the Rice parameters of a transform unit (TU) in a current coding tree unit (CTU) of a partition (e.g., picture, slice, tile) are derived based on a history counter (denoted as StatCoeff) calculated according to coefficients in the current CTU and previous TUs in the previous CTU in the partition. The history counter is then used to derive a substitution variable (denoted as HistValue) that is used to derive the Rice parameters. The history counter may be updated when processing a TU. In some examples, the substitution variable of the TU remains the same even when the history counter is updated.
[0011] The dependency between the current CTU and the previous CTU in a partition for calculating the history counters conflicts with and limits or even prevents the use of parallel processing, which leads to unstable or inefficient video coding. Various embodiments described herein solve the above problem by reducing or eliminating the dependency between some CTUs in a partition, so that parallel processing can be enabled to speed up the video processing process, or by detecting and avoiding collisions before they occur. To introduce some embodiments, the following non-limiting examples are provided.
[0012] In one embodiment, the dependency between CTUs in different CTU rows when calculating the history counter is removed, thereby eliminating the dependency conflict with parallel processing. For example, the history counter can be reinitialized for each CTU row of a partition. Before the Rice parameter of the first CTU in the CTU row is calculated, the history counter can be set to an initial value. Subsequent history counters can be calculated based on the history counter value of the previous TU in the same CTU row. In this way, the dependency of CTUs in the history-based Rice parameter derivation is limited within the same CTU row, and does not prevent parallel processing between different CTU rows, while benefiting from the coding gain obtained by the history-based Rice parameter derivation. Furthermore, the process of the history-based Rice parameter derivation is simplified and the computational complexity is reduced.
[0013] In another embodiment, the dependency between CTUs in calculating the history counter aligns with the dependency between CTUs in parallel processing. For example, parallel coding may be performed between CTU rows of a partition, and there may be an N-CTU delay between two consecutive CTU rows. That is, the processing of this CTU row starts after N CTUs in the previous CTU row are processed. In this scenario, the history counter of this CTU row can be calculated based on samples in the previous N or less CTUs in the previous CTU row. It can be realized by a storage synchronization process. After the last TU in the first CTU of the CTU row is processed, the history counter can be stored in a storage variable. Then, before processing the first TU in the first CTU of the subsequent CTU row, the history counter and the stored value in the storage variable can be synchronized.
[0014] In some examples, an alternative history-based Rice parameter derivation is utilized. In such an alternative history-based Rice parameter derivation, when the history counter StatCoeff is updated when processing a TU, the substitution variable HistValue is updated. To avoid dependency conflicts with parallel processing, the dependency between CTUs when calculating the history counter can be similarly limited to N CTUs or less. Similarly, a storage synchronization process can be implemented. After the last TU in the first CTU of a CTU row is processed, the history counter and the substitution variable can be stored in storage variables, respectively. Then, before processing the first TU in the first CTU of a subsequent CTU row, the history counter and the substitution variable can be synchronized with the stored values in the corresponding storage variables.
[0015] In this way, the dependency between CTUs in two consecutive CTU rows when calculating the history counters is bounded to be less than or equal to the dependency between CTUs when performing parallel coding (i.e., aligned). As a result, the history counter calculation does not hinder parallel processing, while at the same time benefiting from the coding gain obtained by the history-based Rice parameter derivation.
[0016] Or, prevent parallel processing and history-based Rice parameter derivation from coexisting in the bitstream. For example, the video coder can determine whether parallel processing is enabled. If parallel processing is enabled, history-based Rice parameter derivation is disabled, and if not, history-based Rice parameter derivation is enabled. Similarly, if the video coder determines that history-based Rice parameter derivation is enabled, parallel processing is disabled, and vice versa.
[0017] Using the Rice parameters determined as described above, the video encoder can binarize the prediction residual data (e.g., the residual quantized transform coefficients) into binary bins and use an entropy coding algorithm to further compress the bins into bits for inclusion in the video bitstream. At the decoder side, the decoder can decode the bitstream into binary bins, determine the Rice parameters using any method or combination of methods described above, and then determine the coefficients from the binary bins. The coefficients can be further de-quantized and inverse transformed to reconstruct the video block for display.
[0018] In some embodiments, the bit depth of the video samples (e.g., the bit depth used to determine the initial value of the history counter StatCoeff) can be determined based on a Sequence Parameter Set (SPS) syntax element sps_bitdepth_minus8. The value of the SPS syntax element sps_bitdepth_minus8 is in the range of 0 to 8. Similarly, the size of a decoded picture buffer (DPB) used to store decoded pictures can be determined based on a Video Parameter Set (VPS) syntax element vps_ols_dpb_bitdepth_minus8. The value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8. Depending on the determined size of the DPB, storage space can be allocated to the DPB. The determined bit depth and DPB are used throughout the process of decoding the video bitstream into pictures.
[0019] As described herein, some embodiments improve the efficiency and computational efficiency of video coding by coordinating history-based Rice parameter derivation and parallel coding. By doing so, conflicts between history-based Rice parameter derivation and parallel coding can be avoided, thereby improving the stability of the coding process. Furthermore, by restricting the dependencies between CTUs in history-based Rice parameter derivation to be equal to or less than those in parallel coding, coding gains can be obtained by history-based Rice parameter derivation without sacrificing the computational efficiency of the coding process. This technique can be an effective coding tool in future video coding standards.
[0020] Referring now to the drawings, Figure 1 is a block diagram illustrating an example of a video encoder 100 configured to implement embodiments described herein. In the example shown in Figure 1, the video encoder 100 includes a partition module 112, a transform module 114, a quantization module 115, an inverse quantization module 118, an inverse transform module 119, an in-loop filter module 120, an intra prediction module 126, an inter prediction module 124, a motion estimation module 122, a decoded picture buffer 130, and an entropy coding module 116.
[0021] The input to the video encoder 100 is an input video 102 that includes a sequence of pictures (also called frames or images). In a block-based video encoder, for each picture, the video encoder 100 utilizes a partition module 112 to divide the picture into blocks 104, each block including a number of pixels. The blocks may be macroblocks, coding tree units, coding units, prediction units, and / or prediction blocks. A picture may include blocks having different sizes, and the block partitioning for different pictures of a video may also be different. Each block may be encoded using different predictions, such as intra prediction, inter prediction, or intra and inter hybrid prediction.
[0022] Typically, the first picture of a video signal is an intra-predicted picture that is encoded using only intra prediction. In intra-prediction modes, blocks of the picture are predicted using only data from the same picture. An intra-predicted picture can be decoded without information from other pictures. To perform intra-prediction, the video encoder 100 shown in FIG. 1 may use an intra-prediction module 126. The intra-prediction module 126 is configured to generate an intra-predicted block (prediction block 134) using reconstructed samples in a reconstructed block 136 of a neighboring block of the same picture. The intra-prediction is performed based on the intra-prediction mode selected for the block. Then, the video encoder 100 calculates the difference between the block 104 and the intra-predicted block 134. This difference is called a residual block 106.
[0023] To further remove redundancy from the block, the transform module 114 transforms the residual block 106 into a transform domain by applying a transform to the samples in the block. Examples of transforms include, but are not limited to, a discrete cosine transform (DCT) or a discrete sine transform (DST). The transformed values may be referred to as transform coefficients that represent the residual block in the transform domain. In some examples, the residual block may be directly quantized without being transformed by the transform module 114. This is called transform skip mode.
[0024] The video encoder 100 may further quantize the transform coefficients using a quantization module 115, thereby obtaining quantized coefficients. Quantization involves dividing a sample by a quantization step size followed by rounding, while inverse quantization involves multiplying the quantized value by the quantization step size. Such a quantization process is called scalar quantization. Quantization is used to reduce the dynamic range of a video sample (transformed or untransformed), thereby using fewer bits to represent the video sample.
[0025] Quantization of coefficients / samples within a block can be done independently, and such quantization methods are used in several existing video compression standards such as H.264, high efficiency video coding (HEVC), etc. For an N×M block, the two-dimensional (2D) coefficients of the block can be converted to a one-dimensional (1D) array in a particular scan order to be used for coefficient quantization and coding. Quantization of coefficients within a block can utilize scan order information. For example, quantization of a given coefficient in a block can depend on the state of the previous quantized value along the scan order. To further improve coding efficiency, multiple quantizers can be utilized. Which quantizer is used to quantize the current coefficient depends on the previous information of the current coefficient in the encoding / decoding scan order. Such a quantization scheme is called dependent quantization.
[0026] The degree of quantization can be adjusted using a quantization step size. For example, for scalar quantization, different quantization step sizes can be applied to obtain finer or coarser quantization. A smaller quantization step size corresponds to a finer quantization, and a larger quantization step size corresponds to a coarser quantization. The quantization step size can be indicated by a quantization parameter (QP). The quantization parameter is provided in the encoded bitstream of the video so that a video decoder can decode using the same quantization parameter.
[0027] The quantized samples are then coded by the entropy coding module 116 to further reduce the size of the video signal. The entropy encoding module 116 is configured to apply an entropy encoding algorithm to the quantized samples. In some examples, the quantized samples are binarized into binary bins, which are further compressed into bits by a coding algorithm. Examples of binarization methods include, but are not limited to, truncated rice (TR) and constrained kth order exponential-Golomb (EGk) binarization. To improve coding efficiency, a method of history-based Rice parameter derivation is utilized, where the Rice parameters derived for a transform unit (TU) are based on variables obtained or updated from a previous TU. Examples of entropy encoding algorithms include, but are not limited to, variable length coding (VLC) schemes, context adaptive VLC (CAVLC) schemes, arithmetic coding schemes, binarization, context adaptive binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval partitioning entropy (PIPE) coding, or other entropy encoding techniques. The entropy coded data is added to the output encoded video 132 bitstream.
[0028] As mentioned above, the reconstructed block 136 from the neighboring blocks is used for intra prediction of the block of the picture. Generating the reconstructed block 136 of a block involves calculating a reconstructed residual of the block. The reconstructed residual can be determined by applying an inverse quantization and an inverse transform to the quantized residual of the block. The inverse quantization module 118 is configured to apply an inverse quantization to the quantized samples to obtain inverse quantized coefficients. The inverse quantization module 118 applies the inverse of the quantization scheme applied by the quantization module 115 by utilizing the same quantization step size as the quantization module 115. The inverse transform module 119 is configured to apply an inverse transform (e.g., an inverse DCT or an inverse DST) of the transform applied by the transform module 114 to the inverse quantized samples. The output of the inverse transform module 119 is the reconstructed residual of the block in the pixel domain. The reconstructed residual is added to the prediction block 134 of the block to obtain the reconstructed block 136 in the pixel domain. For blocks whose transform is skipped, the inverse transform module 119 is not applied to those blocks, and the dequantized samples are the reconstructed residuals of those blocks.
[0029] Blocks in subsequent pictures following the first intra-predicted picture can be coded using either inter prediction or intra prediction. In inter prediction, a prediction of a block in a picture is a prediction from one or more previously encoded video pictures. To perform inter prediction, video encoder 100 utilizes inter prediction module 124. Inter prediction module 124 is configured to perform motion compensation of the block based on a motion estimate provided by motion estimation module 122.
[0030] The motion estimation module 122 compares the current block 104 of the current picture with the decoded reference picture 108 used for motion estimation. The decoded reference picture 108 is stored in the decoded picture buffer 130. The motion estimation module 122 selects a reference block from the decoded reference picture 108 that best matches the current block. The motion estimation module 122 further determines an offset between the location (e.g., x, y coordinates) of the reference block and the location of the current block. The offset is called a motion vector (MV) and is provided to the inter prediction module 124. In some cases, multiple reference blocks are identified for a block in multiple decoded reference pictures 108. Multiple motion vectors are thereby generated and provided to the inter prediction module 124.
[0031] The inter prediction module 124 performs motion compensation using the motion vector and other inter prediction parameters to generate a prediction of the current block (i.e., the inter prediction block 134). For example, based on the motion vector, the inter prediction module 124 can locate a prediction block pointed to by the motion vector in a corresponding reference picture. When there are multiple prediction blocks, these prediction blocks are combined with some weights to generate the prediction block 134 of the current block.
[0032] For an inter-predicted block, the video encoder 100 may subtract the inter-predicted block 134 from the block 104 to generate a residual block 106. The residual block 106 may be transformed, quantized, and entropy coded in a manner similar to the residual of an intra-predicted block described above. Similarly, a reconstructed block 136 of an inter-predicted block may be obtained by inverse quantizing and inverse transforming the residual, followed by combining it with the corresponding prediction block 134.
[0033] To obtain a decoded picture 108 used for motion estimation, the reconstructed block 136 is processed by an in-loop filter module 120. The in-loop filter module 120 is configured to smooth pixel transitions, thereby improving video quality. The in-loop filter module 120 can be configured to implement one or more in-loop filters, such as a de-blocking filter, a sample adaptive offset (SAO) filter, or an adaptive loop filter (ALF).
[0034] 2 is a block diagram illustrating an example of a video decoder 200 configured to implement embodiments described herein. The video decoder 200 processes encoded video 202 in a bitstream to generate decoded pictures 208. In the example illustrated in FIG. 2, the video decoder 200 includes an entropy decoding module 216, an inverse quantization module 218, an inverse transform module 219, an in-loop filter module 220, an intra prediction module 226, an inter prediction module 224, and a decoded picture buffer 230.
[0035] The entropy decoding module 216 is configured to perform entropy decoding of the encoded video 202. The entropy decoding module 216 decodes the quantized coefficients, coding parameters including intra-prediction parameters and inter-prediction parameters, and other information. In some examples, the entropy decoding module 216 decodes the bitstream of the encoded video 202 into a binary representation and converts the binary representation into quantization levels of the coefficients. The entropy decoded coefficients are then inverse quantized by the inverse quantization module 218 and subsequently inverse transformed to the pixel domain by the inverse transform module 219. The inverse quantization module 218 and the inverse transform module 219 function similarly to the inverse quantization module 118 and the inverse transform module 119, respectively, as previously described with respect to FIG. 1. The inverse transformed residual blocks may be added to the corresponding prediction blocks 234 to generate the reconstructed blocks 236. For blocks whose transforms have been skipped, the inverse transform module 219 is not applied to these blocks. The dequantized samples produced by the dequantization module 118 are used to generate a reconstructed block 236 .
[0036] A prediction block 234 for a particular block is generated based on the prediction mode of the block. If the coding parameters of the block indicate that the block is to be intra predicted, a reconstructed block 236 of a reference block in the same picture is fed to the intra prediction module 226, which can generate the prediction block 234 for the block. If the coding parameters of the block indicate that the block is to be inter predicted, the prediction block 234 is generated by the inter prediction module 224. The intra prediction module 226 and the inter prediction module 224 function similarly to the intra prediction module 126 and the inter prediction module 124 of FIG. 1, respectively.
[0037] As previously described with respect to Figure 1, inter prediction involves one or more reference pictures. The video decoder 200 generates a decoded picture 208 of the reference picture by applying an in-loop filter module 220 to a reconstructed block of the reference picture. The decoded picture 208 is stored in a decoded picture buffer 230 for use by an inter prediction module 224 and for output.
[0038] Now referring to FIG. 3, FIG. 3 is a diagram illustrating an example of a division of coding tree units of a picture in a video, according to some embodiments of the present disclosure. As previously described with respect to FIG. 1 and FIG. 2, to encode a picture of a video, the picture is divided into blocks, such as CTU 302 in VVC as shown in FIG. 3. For example, CTU 302 can be a block of 128×128 pixels. The CTUs are processed according to an order, such as the order shown in FIG. 3. In some examples, each CTU 302 in a picture can be divided into one or more CUs 402 as shown in FIG. 4, and the CUs 402 can be further divided into prediction units or transform units (TUs) for prediction and transformation. Depending on the coding scheme, the division of the CTUs 302 into CUs 402 can be different. For example, in VVC, the CUs 402 can be rectangular or square and can be coded without further division into prediction units or transform units. Each CU 402 can be a subdivision of the root CTU 302, as large as the root CTU 302, or as small as a 4x4 block. As shown in Figure 4, the division of a CTU 302 into CUs 402 in VVC can be a quad-tree division, a binary tree division, or a ternary tree division. In Figure 4, the solid lines indicate a quad-tree division, and the dashed lines indicate a binary tree division or a ternary tree division.
[0039] As previously described with reference to FIG. 1 and FIG. 2, quantization is used to reduce the dynamic range of elements of a block in a video signal, thereby using fewer bits to represent the video signal. In some examples, before quantization, the elements at a particular position of a block are called coefficients. After quantization, the quantized values of the coefficients are called quantization levels or levels. Quantization typically involves division by a quantization step size followed by rounding, and inverse quantization involves multiplication by the quantization step size. Such a quantization process is also called scalar quantization. Quantization of coefficients within a block can be done independently, and such independent quantization methods are used in some existing video compression standards, such as H.264, HEVC, etc. In other examples, dependent quantization is used, such as VVC.
[0040] For an N×M block, a particular scan order can convert the 2D coefficients of the block into a 1D array for use in coefficient quantization and coding. The same scan order is used for both encoding and decoding. FIG. 5 is a diagram illustrating an example of a coding block (e.g., TU) and a predefined order for processing the coefficients of the coding block. In this example, the coding block 500 has a size of 8×8, and processing starts at position L0 in the lower right corner and ends at position L1 in the upper left corner. 63 5 is from highest frequency to lowest frequency. In some examples, processing of the block, such as quantization and binarization, follows a predefined scanning order starting from the first non-zero element of the block. For example, from position L0-L1, the first non-zero element of the block is processed according to a predefined scanning order. 17 All the coefficients in are zero and L 18 If the coefficient in is nonzero, the process is 18 Starting with the coefficients in 18 The process is performed for each coefficient after
[0041] Residual Coding
[0042] Residual coding is used to convert quantization levels into a bitstream in video coding. After quantization, an N×M transform unit (TU) coding block has N×M quantization levels. These N×M levels are zero or non-zero values. If the levels are not binary, the non-zero levels are further binarized into binary bins. CABAC can further compress the bins into bits. There are also two context modeling based coding methods. In particular, one method adaptively updates the context model based on neighboring coded information. Such a method is called a context coded method, and the bins coded by this method are called context coded bins. In contrast, the other method assumes that the probability of 1 or 0 is always 50%, and therefore always uses a fixed context modeling without adaptation. Such a method is called a bypass method, and the bins coded by this method are called bypass bins.
[0043] For regular residual coding (RRC) blocks in VVC, the position of the last non-zero level is defined as the position of the last non-zero level along the coding scan order. The representation of the 2D coordinates (last_sig_coeff_x and last_sig_coeff_y) of the last non-zero level includes four prefix and suffix syntax elements: last_sig_coeff_x_prefix, last_sig_coeff_y_prefix, last_sig_coeff_x_suffix, and last_sig_coeff_y_suffix. The syntax elements last_sig_coeff_x_prefix and last_sig_coeff_y_prefix are coded first with the context code method. If last_sig_coeff_x_suffix and last_sig_coeff_y_suffix are present, they are coded with the bypass method. An RRC block may consist of multiple predefined sub-blocks. The syntax element sb_coded_flag is used to indicate whether the levels of the current subblock are all equal to 0. If sb_coded_flag is equal to 1, there is at least one non-zero coefficient in the current subblock. If sb_coded_flag is equal to 0, all coefficients in the current subblock are zero. However, the sb_coded_flag of the last non-zero subblock with the last non-zero level is derived as 1 from last_sig_coeff_x and last_sig_coeff_y according to the coding scan order without being coded in the bitstream. The sb_coded_flag of the top-left subblock containing the DC position is also derived as 1 without being coded in the bitstream. The syntax element sb_coded_flag in the bitstream is coded by the context coding method. RRC codes subblock by subblock starting from the last non-zero subblock in the reverse coding scan order as described above for FIG. 5.
[0044] To ensure worst case throughput, a predefined value remBinsPass1 is used to limit the maximum number of context code bins. Within a subblock, RRC codes the level of each position in reverse coding scan order. If remBinsPass1 is greater than 4, when coding the current level, a flag called sig_coeff_flag is first coded into the bitstream to indicate whether the level is zero or non-zero. If the level is non-zero, abs_level_gtx_flag[n][0] (n is the index along the scan order of the current position in the subblock) indicates whether the absolute level is 1 or greater than 1. If the absolute level is greater than 1, par_level_flag is coded to indicate whether the level is odd or even in VVC, followed by abs_level_gtx_flag[n][1]. The par_level_flag and abs_level_gtx_flag[n][1] flags are both used to indicate whether the level is 2, 3 or greater. After coding each of the above syntax elements as a context code bin, the value of remBinsPass1 is subtracted by 1.
[0045] If the absolute level is greater than 3 or the value of remBinsPass1 is less than or equal to 4, after coding the above bins by the context coding method, two more syntax elements, abs_remainder and dec_abs_level, can be coded as the bypass code bins of the remaining levels. In addition, the sign of each level in the block is also coded to represent a quantization level and coded as a bypass code bin.
[0046] In another residual coding method, abs_level_gtxX_flag and the remaining level are utilized to enable a conditional analysis for the syntax elements of the level coding of the residual block, and the corresponding binarization of the absolute value of the level is shown in Table 1. Here, abs_level_gtxX_flag describes whether the absolute value of the level is greater than X or not, where X is an integer, e.g., 0, 1, 2, or N. If abs_level_gtxY_flag is 0 and Y is an integer between 0 and N-1, the abs_level_gtx(Y+1) flag is not present. If abs_level_gtxY_flag is 1, the abs_level_gtx(Y+1) flag is present. Furthermore, if abs_level_gtxN_flag is 0, the remaining level is not present. If abs_level_gtxN_flag is 1, the remaining level is present and represents the value after removing (N+1) from the level. Typically, abs_level_gtxX_flag is coded in the context coding manner, and the remaining levels are coded in the bypass coding manner.
[0047] [Table 1]
[0048] For blocks coded in transform skip residual coding mode (TSRC), TSRC codes subblock by subblock starting from the top left subblock along the coding scan order. Similarly, syntax element sb_coded_flag is used to indicate whether the residuals of the current subblock are all equal to 0 or not. If a certain condition occurs, all syntax elements sb_coded_flag of all subblocks except the last subblock are coded into the bitstream. If all sb_coded_flag of all subblocks before the last subblock are not equal to 1, then for the last subblock, sb_coded_flag is derived as 1 and this flag is not coded into the bitstream. To ensure worst-case throughput, a predefined value RemCcbs is used to limit the maximum number of context codebins. If the current subblock has a non-zero level, TSRC codes the level of each position in the coding scan order. If RemCcbs is greater than 4, the following syntax elements are coded in the context code manner. For each level, sig_coeff_flag is first coded into the bitstream to indicate whether the level is zero or non-zero. If the level is non-zero, coeff_sign_flag is coded to indicate whether the level is positive or negative. Next, abs_level_gtx_flag[n][0] (n is the index along the scan order of the current position in the subblock) is coded to indicate whether the current absolute level of the current position is greater than 1 or not. If abs_level_gtx_flag[n][0] is not 0, par_level_flag is coded. After coding each of the above syntax elements using the context code method, the value of RemCcbs is decremented by 1.
[0049] If after coding the above syntax elements for all positions in the current subblock, RemCcbs is still greater than 4, then at most another four abs_level_gtx_flag[n][j] (n is the index along the scan order of the current position in the subblock, and j is from 1 to 4) are coded in the context code manner. After each abs_level_gtx_flag[n][j] is coded, the value of RemCcbs is subtracted by 1. If RemCcbs is less than or equal to 4, for the current position in the subblock, the syntax element abs_remainder is coded in the bypass manner as necessary. For positions where the absolute level is completely coded in the abs_remainder syntax element in the bypass manner, coeff_sign_flags is also coded in the bypass manner. In summary, to limit the total number of context code bins and ensure worst-case throughput, there is a predefined counter remBinsPass1 in the RRC or RemCcbs in the TSRC.
[0050] Rice parameter derivation
[0051] In the current RRC design in VVC, two syntax elements, abs_remainder and dec_abs_level, coded as bypass bins, may be present in the bitstream to be used for the remaining level. Both abs_remainder and dec_abs_level are binarized by a combination of the Truncated Rice (TR) and Restricted Exponential-golomb (EGk) binarization processes specified in the VVC standard. The process requires Rice parameters to binarize a given level. To obtain the optimal Rice parameters, a local sum method is adopted as described below.
[0052] The array AbsLevel[xC][yC] represents an array of absolute values of transform coefficient levels of the current transform block of color component index cIdx. Given the array AbsLevel[x][y] of a transform block with color component index cIdx and the top-left luma position (x0, y0), the local sum variable locSumAbs is derived as specified in the following pseudo-code process: JPEG2024534816000003.jpg102170 where log2TbWidth is the base 2 logarithm of the width of the transform block and log2TbHeight is the base 2 logarithm of the height of the transform block. For abs_remainder the variable baseLevel is 4 and for dec_abs_level the variable baseLevel is 0. Given the local sum variable locSumAbs the Rice parameter cRiceParam is derived as specified in Table 2.
[0053] [Table 2]
[0054] History-based Rice parameter derivation
[0055] If a coefficient is located on the boundary of a TU or is first decoded by the Rice method, the template calculation employed for the Rice parameter derivation may generate an inaccurate coefficient estimate. For these coefficients, some template positions are located outside the TU and can be interpreted or initialized to a value of 0, causing the template calculation to be biased towards 0. FIG. 6 shows an example of a template pattern for calculating locSumAbs for coefficients located near the boundary of a TU. FIG. 6 shows a CTU 602 divided into multiple CUs, each CU including multiple TUs. For a TU 604, the position of the current coefficient is shown by a solid block, and the positions of the neighboring samples in the template pattern are shown by a patterned block. The patterned block shows a predefined neighborhood of the current coefficient for calculating the local sum variable locSumAbs.
[0056] In FIG. 6, because the current coefficient 606 is close to the boundary of the TU 604, some of the neighboring samples in the template pattern are outside the boundary of the TU, such as neighboring samples 608B and 608E. In the Rice parameter derivation described above, these out-of-boundary neighboring samples are set to 0 when calculating the local sum variable locSumAbs, resulting in an inaccurate Rice parameter derivation. For samples with high bit depth (e.g., greater than 10 bits), there can be many neighboring samples that are outside the boundary of the TU. Setting such many neighboring samples to 0 will introduce further errors into the Rice parameter derivation.
[0057] To improve the accuracy of the Rice estimation from the computed template, it was proposed that for template positions outside the current TU, the local sum variable locSumAbs be updated with a history derived value rather than being initialized to 0. The implementation of this method is shown in section 9.3.3.2 of the VVC standard text excerpt below, with the proposed text underlined.
[0058] To maintain the history of neighboring coefficient / sample values, a per-color component history counter StatCoeff[cIdx] (cIdx=0, 1, 2, representing the three color components Y, U, and V, respectively) is used. If the CTU is the first CTU in a partition (e.g., a picture, a slice, or a tile), StatCoeff[cIdx] is initialized as follows:
number
number
[0059] The history counter StatCoeff is updated once per TU from the first non-zero Golomb-Rice coded coefficient (abs_remainder[cIdx] or dec_abs_level[cIdx]) through the process of exponential moving average. If the first non-zero Golomb-Rice coded coefficient in a TU is coded as abs_remainder, the history counter StatCoeff of color component cIdx is updated as follows:
number
number
[0060] Wavefront Parallel Processing (WPP)
[0061] WPP is designed to provide a parallel coding mechanism. When WPP is enabled in VVC, each CTU row of a frame, tile, or slice constitutes a separation partition. WPP is enabled / disabled by the SPS element sps_entropy_coding_sync_enabled_flag. Figure 7 shows an example of a tile with WPP enabled. In Figure 7, each CTU row of a tile is processed with a delay of one CTU with respect to its previous CTU row. In this way, the dependencies between consecutive CTU rows are not broken at partition boundaries, except for CABAC context variables and palette predictor, when palette coding is enabled at the end of each CTU row. To mitigate potential loss of coding efficiency, the adapted CABAC context variables and palette predictor contents are propagated from the first coded CTU of the previous CTU row to the first CTU of the current CTU row. WPP does not change the normal raster scan order of CTUs.
[0062] When WPP is enabled, threads up to the number of CTU rows in a partition (e.g., a tile, slice, or frame) can run in parallel to process individual CTU rows. By applying WPP to a decoder, each decoding thread processes a single CTU row of a partition. The thread processing schedule needs to be arranged so that for each CTU, the decoding of the top adjacent CTU in the previous CTU row is completed. An additional small overhead of WPP is added so that all CABAC context variables and palette predictor contents can be stored after the coding of the first CTU in each CTU row except the last CTU row is finished.
[0063] When the above-mentioned history-based Rice parameter derivation is enabled in high bit depth and high bit rate video coding, the last StatCoeff in the previous CTU row is propagated to the first TU in the current CTU row. As a result, if WPP is enabled at the same time, this process will hinder WPP and break the parallelism of WPP. In this disclosure, some solutions are proposed to solve the above problem when parallel coding (e.g., WPP) is enabled.
[0064] In one embodiment, when calculating the history counter StatCoeff, the dependency between CTUs in different CTU rows is removed, thereby removing the impediment of history-based Rice parameter derivation for parallel coding. In this embodiment, instead of using the history counter StatCoeff value obtained from the previous CTU row, the initial value of StatCoeff[cIdx] is used to code the first abs_remainder[cIdx] or dec_abs_level[cIdx] in each CTU row of a partition (e.g., frame, tile, or slice), where cIdx is the index of a color component.
[0065] As an example, the initial value of StatCoeff[cIdx] can be determined as follows:
number
number
number
[0066] Before coding the first TU of each CTU row of a partition (eg, a frame, a tile, or a slice), a replacement variable HistValue is calculated as follows:
number
number
number
[0067] The updated StatCoeff[cIdx] is used to calculate the replacement variable HistValue as shown in Equation 8 to be used for the next TU of the current CTU or the first TU of the next CTU in the current CTU row.
[0068] 8 is a diagram showing an example of a frame 802 and CTUs included in the frame. In this example, frame 802 includes two tiles, tile 804A and tile 804B. Tile 804A includes four CTU rows (CTU row 1 to CTU row 4). The first CTU row includes CTU0 to CTU9, and the second CTU row includes CTU10 to CTU19, and so on. Similarly, tile 804B also includes four CTU rows (CTU row 1' to CTU row 4'). The first CTU row includes ten CTUs (CTU0' to CTU9'), and the second CTU row includes CTU10' to CTU19', and so on.
[0069] According to this embodiment, the initial value of StatCoeff[cIdx] of the tile 804A can be determined according to Equation 5 or Equation 6. Before coding the first TU of each of CTU rows among CTU row 1 to CTU row 4, the substitution variable HistValue[cIdx] is calculated using Equation 8 using the initial value of StatCoeff[cIdx]. For example, before coding the first TU of CTU0, the variable HistValue is calculated using Equation 8. This value of HistValue is used to determine the local sum variable locSumAbs of the coefficients in the first TU, which is further used to determine the Rice parameter of the corresponding coefficient of the first TU. When processing the first TU of the current CTU0, the history counter StatCoeff can be updated according to Equation 9 or Equation 10. Before processing the second TU in CTU0, the current value of StatCoeff is used to determine the HistValue of the second TU according to Equation 8. Then, a similar process is used for the second TU, thereby determining the Rice parameter using HistValue and updating StatCoeff. For the first TU in CTU1, HistValue is calculated according to Equation 8 using the last StatCoeff from the TU in CTU0. This process can be repeated until processing of the last CTU (CTU9) in the current CTU row 1 is completed.
[0070] For the second CTU row of tile 804A, before coding the first TU of CTU10 (the first CTU of the second CTU row), the history counter StatCoeff is initialized according to equation 5 or equation 6. For the TUs in the CTUs of the second CTU row, a process similar to that described above for CTU row 1 is performed. Similarly, before coding the first TU of each of CTU20 and CTU30, the variable StatCoeff is again initialized according to equation 5 or equation 6.
[0071] Tile 804B can be processed in a similar manner. Before coding the first TU of each of CTU row 1' to CTU row 4' (i.e., CTU0', CTU10', CTU20', and CTU30'), the value of StatCoeff[cIdx] is initialized according to Equation 5 or Equation 6, and the history counter HistValue is calculated using Equation 8. The calculated history counter HistValue is used to calculate the LocSumAbs and Rice parameters of the TUs in the first CTU and the remaining CTUs in the corresponding CTU row. Furthermore, the history counter StatCoeff can be updated at most once in each TU according to Equation 9 or Equation 10, and the updated value of StatCoeff is used to determine the HistValue of the next TU in the same CTU row.
[0072] 8 is illustrated as a frame 802 including two tiles, tile 804A and tile 804B, the same process applies to other scenarios, such as a slice including multiple tiles, a frame including multiple slices, etc. In any of these scenarios, prior to coding of the first TU in each CTU row of a partition (e.g., frame, tile, or slice), the value of the history counter StatCoeff[cIdx] is reset to an initial value to remove the dependency of the CTU row in the Rice parameter derivation.
[0073] The possible specification changes for VVC are underlined and specified below: JPEG2024534816000016.jpg118170
[0074] Another possible change to the VVC standard, 9.3.2.1, is stated as follows: JPEG2024534816000017.jpg76170
[0075] Video sample bit depth
[0076] The bit depth of the input video supported by VVC version 2 can be 10 bits or more. A higher bit depth of the video can provide a higher visual quality and less compression distortion in the decoded video. To support a higher bit depth of the input video, the semantics of the corresponding SPS (Sequence Parameter Set) syntax element sps_bitdepth_minus8 and VPS (Video Parameter Set) syntax element vps_ols_dpb_bitdepth_minus8[i] can be modified as follows: sps_bitdepth_minus8 is the sample depth of the luma and chroma arrays. BitDepth and luma and chroma quantization parameter range offset The bit values QpBdOffset and QpBdOffset are specified as follows:
number
[0077] As can be seen, the bit depth BitDepth of the samples of the luma and chroma arrays can be derived according to the formula x1 based on the SPS syntax element sps_bitdepth_minus8. With the determined BitDepth value, the history counter StatCoeff, the substitution variable HistValue, and the Rice parameter can be derived as described above.
[0078] The VPS syntax element vps_ols_dpb_bitdepth_minus8[i] can be used to derive the size of the decoded picture buffer (DPB). There can be multiple video layers in the coded bitstream. The video parameter set is used to specify the corresponding syntax element. In video decoding, the DPB is used to store reference pictures, so that previously coded pictures can be used to generate prediction signals used in coding other pictures. The DPB can also be used to reorder decoded pictures so that they can be output and / or displayed in the correct order. Furthermore, the DPB can be used for the output delay specified for the hypothetical reference decoder. The decoded picture can be parked in the DPB for a predefined time specified for the hypothetical reference decoder, and the decoded picture is output after the predefined time has elapsed.
[0079] To safely allocate memory for the DPB, the size of the DPB is determined by the syntax elements vps_ols_dpb_pic_width[i], vps_ols_dpb_pic_height[i], vps_ols_dpb_chroma_format[i], and vps_ols_dpb_bitdepth_minus8[i] as follows: picture_size1 (in bits) = vps_ols_dpb_pic_width[ i ] * vps_ols_dpb_pic_height[ i ] * (vps_ols_dpb_bitdepth_minus8[ i ] + 8) if (vps_ols_dpb_chroma_format[ i ]== 0) / / Monochrome picture_size = picture_size1; else if (vps_ols_dpb_chroma_format[ i ]== 1) / / 4:2:0 picture_size = 1.5 * picture_size1; else if (vps_ols_dpb_chroma_format[ i ]== 2 / / 4:2:2 picture_size = 2 * picture_size1; else if (vps_ols_dpb_chroma_format[ i ]== 3 / / 4:4:4 picture_size = 3 * picture_size1 The size of the DPB is determined by picture_size. In other words, the size of the DPB can be determined based on the chroma format of the sample. If the video frame is a monochrome frame, the size of the frame to be buffered is determined to be the basic picture size picture_size1. If the color subsampling of the color video frame is 4:2:0, the size of the frame is determined to be 1.5 times the basic picture size picture_size1, if the color subsampling of the color video frame is 4:2:2, the size of the frame is determined to be 2 times the basic picture size picture_size1, and if the color subsampling of the color video frame is 4:4:4, the size of the frame is determined to be 3 times the basic picture size picture_size1. Also, the size of the DPB can be determined to be a value obtained by multiplying the number of frames to be stored in the DPB by the size of the frame according to the color subsampling.
[0080] 9 illustrates an example process 900 for encoding a partition of a video, according to some embodiments of the present disclosure. One or more computing devices (e.g., computing devices implementing the video encoder 100) implement the operations illustrated in FIG. 9 by executing appropriate program code (e.g., program code implementing the entropy coding module 116). For purposes of explanation, the process 900 is described with reference to several examples shown in the drawings. However, other implementations are possible.
[0081] At block 902, the process 900 includes accessing a partition of a video signal. The partition may be a video frame, a slice, a tile, or any type of partition that is processed as a unit by a video encoder when performing encoding. The partition includes a set of CTUs arranged in CTU rows, as shown in Figure 8. As shown in the example of Figure 6, each CTU includes one or more CTUs, and each CTU includes multiple TUs for encoding.
[0082] In block 904, which includes blocks 906-914, the process 900 includes processing each CTU of the set of CTUs in the partition, thereby encoding the partition into bits. In block 906, the process 900 includes determining whether a parallel coding mechanism is enabled and whether the current CTU is the first CTU in the CTU row. In some examples, the parallel coding can be indicated by a flag having a value of 0 indicating that the parallel coding is disabled and a value of 1 indicating that the parallel coding is enabled. If it is determined that the parallel coding mechanism is enabled and the current CTU is the first CTU in the CTU row, the process 900 includes setting a history counter StatCoeff to an initial value in block 908. As described above, if the history-based Rice parameter derivation is enabled, the initial value of the history counter can be set according to Equation 5 or Equation 6, and if not, the initial value of the history counter is set to zero.
[0083] If the parallel coding mechanism is not enabled or if it is determined that the current CTU is not the first CTU in the row of CTUs, or after setting the history counters in block 908, the process 900 includes calculating Rice parameters of the TUs in the CTU based on the history counters in block 910. As detailed above with respect to Figures 6-8, if the history counters are reset in block 908, the Rice parameters of the TUs in the CTU are calculated based on the reset history counters or the subsequently updated history counters. If the history counters are not reset in block 908, the Rice parameters of the TUs in the CTU are calculated based on the updated history counters in the previous CTU or the subsequently updated history counters in the current CTU.
[0084] At block 912, the process 900 includes encoding the TUs in the CTU into a binary representation based on the calculated Rice parameters (e.g., via a combination of TR and Restricted k-th Exponential Golomb (EGk) as defined in the VVC standard). At block 914, the process 900 includes encoding the binary representations of the CTUs into bits for inclusion in the video bitstream. The encoding can be performed, for example, using CABAC as described above. At block 916, the process 900 includes outputting the encoded video bitstream.
[0085] FIG. 10 illustrates an example of a process 1000 for decoding a partition of a video, according to some embodiments of the present disclosure. One or more computing devices may implement the operations illustrated in FIG. 10 by executing appropriate program code. For example, a computing device implementing the video decoder 200 may implement the operations illustrated in FIG. 10 by executing program code used for the entropy decoding module 216, the inverse quantization module 218, and the inverse transform module 219. For purposes of illustration, the process 1000 is described with reference to some examples shown in the drawings. However, other implementations are possible.
[0086] At block 1002, the process 1000 includes accessing a binary string or binary representation representing a partition of a video signal. A partition may be a video frame, a slice, a tile, or any type of partition that is treated as a unit by a video encoder when performing encoding. A partition includes a set of CTUs arranged in CTU rows, as shown in Figure 8. As shown in the example of Figure 6, each CTU includes one or more CTUs, and each CTU includes multiple TUs for encoding.
[0087] In block 1004, which includes blocks 1006-1014, the process 1000 includes processing the binary string of each CTU of the set of CTUs in the partition to generate a decoded sample of the partition. In block 1006, the process 1000 includes determining whether a parallel coding mechanism is enabled and whether the current CTU is the first CTU of the CTU row. The parallel coding may be indicated by a flag having a value of 0 indicating that the parallel coding is disabled and a value of 1 indicating that the parallel coding is enabled. If it is determined that the parallel coding mechanism is enabled and the current CTU is the first CTU of the CTU row, the process 1000 includes setting a history counter StatCoeff to an initial value in block 1008. As described above, if the history-based Rice parameter derivation is enabled, the initial value of the history counter may be set according to Equation 5 or Equation 6, and if not, the initial value of the history counter is set to zero.
[0088] If the parallel coding mechanism is not enabled or if it is determined that the current CTU is not the first CTU in the row of CTUs, or after setting the history counters in block 1008, process 1000 includes calculating Rice parameters of the TUs in the CTU based on the history counters in block 1010. As detailed above with respect to FIGS. 6-8, if the history counters are reset in block 1008, the Rice parameters of the TUs in the CTU are calculated based on the reset history counters or the subsequently updated history counters. If the history counters are not reset in block 1008, the Rice parameters of the TUs in the CTU are calculated based on the updated history counters in the previous CTU or the subsequently updated history counters in the current CTU.
[0089] At block 1012, process 1000 includes decoding the binary strings or binary representations of the TUs in the CTU into coefficient values based on the calculated Rice parameters (e.g., via a combination of TR and Restricted kth Exponential Golomb (EGk) as defined in the VVC standard). At block 1014, process 1000 includes reconstructing pixel values of the TUs in the CTU, e.g., via inverse quantization and inverse transformation as described above with respect to FIG. 2. At block 1016, process 1000 includes outputting the decoded partition of the video.
[0090] In another embodiment, the dependency between CTUs when calculating the history counter StatCoeff is aligned to the dependency between CTUs in a parallel coding mechanism such as WPP. For example, the history counter StatCoeff of a CTU row of a partition (e.g., a frame, a tile, or a slice) is calculated based on coefficient values in the first N or less CTUs of the previous CTU row, where N is the maximum delay between two consecutive CTU rows allowed in the parallel coding mechanism. In this way, the dependency between CTUs in two consecutive CTU rows when calculating the history counter StatCoeff is limited to be equal to or less than the dependency between CTUs when performing parallel processing (thereby aligning).
[0091] This embodiment can be realized by utilizing a storage synchronization process. For example, in the above WPP, the delay between two consecutive CTU rows is one CTU, so N=1. In the storage process, after the last TU of the first CTU in each CTU row (except the last CTU row) is coded, StatCoeff[cIdx] can be stored in a storage variable StatCoeffWpp[cIdx]. For each CTU row other than the first CTU row, a synchronization process of Rice parameter derivation is applied before the coding of the first TU. In the synchronization process, StatCoeff[cIdx] is synchronized with the stored StatCoeffWpp[cIdx] from the previous CTU row.
[0092] As described above, before coding of the first TU in each CTU row, the variable HistValue is calculated as follows:
number
[0093] After the last TU of the first CTU in the first CTU row is coded, StatCoeff[cIdx] can be stored as StatCoeffWpp[cIdx] in the following storage step.
number
[0094] Prior to coding of the first TU in the second CTU row and any subsequent CTU rows, StatCoeff[cIdx] may be obtained by a synchronization step.
number
[0095] Possible VVC standard changes are specified below (changes are underlined): JPEG2024534816000022.jpg252170
[0096] An alternative history-based derivation of the Rice parameters
[0097] History-based Rice parameter derivation can be realized in an alternative manner, in which if the CTU is the first CTU in a partition (e.g., a picture, slice, or tile), HistValue is initialized with the initial value of StatCoeff[cIdx] as follows:
number
[0098] This initial HistValue is used to code the first abs_remainder[cIdx] or dec_abs_level[cIdx] until the HistValue is updated according to the following rules: When the first non-zero Golomb-Rice coded coefficient in a TU is coded as abs_remainder, the history counter of color component cIdx is updated as follows:
number
number
[0099] When the history counter StatCoeff[cIdx] is updated, HistValue is updated as shown in Equation 17, and the updated HistValue is used to derive the Rice parameters of the remaining abs_remainder and dec_abs_level syntax elements until new StatCoeff[cIdx] and HistValue[cIdx] are updated again.
number
[0100] Based on the current VVC standard, possible standard changes are specified as follows: Modify Section 7.3.11.11 (Residual Coding Syntax) to read as follows (additions are underlined): JPEG2024534816000027.jpg228170JPEG2024534816000028.jpg187170
[0101] To resolve dependency conflicts between parallel coding and the alternative history-based Rice parameter derivation, both StatCoeff[cIdx] and HistValue[cIdx] for each color component are saved after the last TU of the first CTU in each CTU row is coded. The saved StatCoeff[cIdx] and HistValue[cIdx] values can be used to initialize StatCoeff[cIdx] and HistValue[cIdx] before the first TU of the first CTU in a subsequent CTU row is processed.
[0102] This embodiment can also be realized by using a storage synchronization process. For example, in the storage process, after the last TU of the first CTU in each CTU row is processed, StatCoeff[cIdx] and HistValue[cIdx] can be saved in storage variables (e.g., StatCoeffWpp[cIdx] shown in Equation 18 and HistValueWpp[cIdx] shown in Equation 19), respectively.
number
[0103] For each CTU row other than the first CTU row, a synchronization process of Rice parameter derivation is applied before coding of the first TU. For example, as shown in Equation 20, StatCoeff[cIdx] is synchronized with the stored StatCoeffWpp[cIdx] from the previous CTU row, and as shown in Equation 21, HistValue[cIdx] is synchronized with the stored HistValueWpp[cIdx] from the previous CTU row.
number
[0104] As described above, StatCoeff[cIdx] may be updated once per TU from the first non-zero Golomb-Rice coding coefficient (abs_remainder[cIdx] or dec_abs_level[cIdx]) as shown in Equation 15 or 16. When the history counter StatCoeff[cIdx] is updated, HistValue is updated according to Equation 17, and the updated HistValue is used to derive the Rice parameters of the remaining abs_remainder and dec_abs_level syntax elements until new StatCoeff[cIdx] and HistValue are updated again.
[0105] Based on the current VVC standard, possible standard changes, underlined, are specified as follows: JPEG2024534816000031.jpg249170JPEG2024534816000032.jpg40170
[0106] 11 illustrates an example process 1100 for encoding a partition of a video, according to some embodiments of the present disclosure. One or more computing devices (e.g., computing devices implementing the video encoder 100) implement the operations illustrated in FIG. 11 by executing appropriate program code (e.g., program code implementing the entropy coding module 116). For purposes of explanation, the process 1100 will be described with reference to some examples shown in the drawings. However, other implementations are possible.
[0107] At block 1102, the process 1100 includes accessing a partition of a video signal. The partition may be a video frame, a slice, a tile, or any type of partition that is processed as a unit by a video encoder when performing encoding. The partition includes a set of CTUs arranged in CTU rows, as shown in Figure 8. As shown in the example of Figure 6, each CTU includes one or more CTUs, and each CTU includes multiple TUs for encoding.
[0108] In block 1104, which includes blocks 1106-1118, the process 1100 includes processing each CTU of the set of CTUs in the partition, thereby encoding the partition into bits. In block 1106, the process 1100 includes determining whether a parallel coding mechanism is enabled and whether the current CTU is the first CTU of the CTU row. In some examples, the parallel coding can be indicated by a flag having a value of 0 indicating that the parallel coding is disabled and a value of 1 indicating that the parallel coding is enabled. If it is determined that the parallel coding mechanism is enabled and that the current CTU is the first CTU of the CTU row, the process 1100 includes determining whether the current CTU row is the first CTU row in the partition in block 1107. If so, the process 1100 includes setting a history counter StatCoeff to an initial value in block 1108. As described above, the initial value of the history counter can be set according to Equation 5 or Equation 6. If the current CTU row is not the first CTU row in the partition, process 1100 includes, at block 1109, setting the history counter StatCoeff to the value stored in the history counter storage variable, as shown in Equation 13 or Equation 20. In some examples, for example, if an alternative Rice parameter derivation is utilized, the value of the substitution variable HistValue can be reset to the stored value, as shown in Equation 21.
[0109] If the parallel coding mechanism is not enabled or if it is determined that the current CTU is not the first CTU in the CTU row, or after setting the value of the history counter in block 1108 or 1109, process 1100 includes calculating the Rice parameters of the TUs in the CTU based on the history counter (and based on the substitution variable HistValue if the substitution variable HistValue is also reset) in block 1110. As described above (e.g., with reference to FIG. 8 or in an alternative Rice parameter derivation), if the value of the history counter is reset in block 1108 or 1109, the Rice parameters of the TUs in the CTU are calculated based on the reset history counter or the subsequently updated history counter. If the history counter is not reset in block 1108 or 1109, the Rice parameters of the TUs in the CTU are calculated based on the history counter updated in the previous CTU or the subsequently updated history counter in the current CTU.
[0110] At block 1112, the process 1100 includes encoding the TUs in the CTU into a binary representation based on the calculated Rice parameters (e.g., via a combination of TR and Restricted k-th Exponential Golomb (EGk) as defined in the VVC standard). At block 1114, the process 1100 includes encoding the binary representations of the CTUs into bits for inclusion in the video bitstream. The encoding can be performed, for example, using CABAC as described above.
[0111] At block 1116, the process 1100 includes determining whether parallel coding is enabled and whether the CTU is the first CTU in the current CTU row. If so, the process 1100 includes storing the value of the history counter in a history counter storage variable, as shown in Equation 12 or Equation 18, at block 1118. In some examples, for example, if an alternative Rice parameter derivation is utilized, the value of the substitution variable HistValue may be stored in a storage variable, as shown in Equation 19. At block 1120, the process 1100 includes outputting the encoded video bitstream.
[0112] In some scenarios, a CTU in a CTU row other than the first CTU row may be located on the boundary of a partition. For example, there is no CTU in the partition above the first CTU in the second CTU row. In these scenarios, the history counter of this CTU may be set to an initial value instead of a stored value. In this case, a new block 1107' may be added between blocks 1107 and 1109 in FIG. 11 to determine whether the CTU is on the boundary of a partition (e.g., the CTU does not have an upper adjacent CTU in the partition). If so, process 1100 proceeds to block 1108 to set the history counter to the initial value, and if not, process 1100 proceeds to block 1109 to set the history counter to the stored value. The remaining blocks in FIG. 11 may remain the same.
[0113] FIG. 12 illustrates an example process 1200 for decoding a partition of a video, according to some embodiments of the present disclosure. One or more computing devices may implement the operations illustrated in FIG. 12 by executing appropriate program code. For example, a computing device implementing the video decoder 200 may implement the operations illustrated in FIG. 12 by executing program code used for the entropy decoding module 216, the inverse quantization module 218, and the inverse transform module 219. For purposes of illustration, the process 1200 will be described with reference to some examples shown in the drawings. However, other implementations are possible.
[0114] At block 1202, the process 1000 includes accessing a binary string or binary representation representing a partition of a video signal. The partition may be a video frame, a slice, a tile, or any type of partition that is treated as a unit by a video encoder when performing encoding. The partition includes a set of CTUs arranged in CTU rows, as shown in Figure 8. As shown in the example of Figure 6, each CTU includes one or more CTUs, and each CTU includes multiple TUs for encoding.
[0115] In block 1204, which includes blocks 1206-1218, the process 1200 includes processing the binary string of each CTU of the set of CTUs in the partition to generate a decoded sample of the partition. In block 1206, the process 1200 includes determining whether a parallel coding mechanism is enabled and whether the current CTU is the first CTU of the CTU row. The parallel coding may be indicated by a flag having a value of 0 indicating that the parallel coding is disabled and a value of 1 indicating that the parallel coding is enabled. If it is determined that the parallel coding mechanism is enabled and the current CTU is the first CTU of the CTU row, the process 1200 includes determining whether the current CTU row is the first CTU row in the partition in block 1207. If so, the process 1200 includes setting a history counter StatCoeff to an initial value in block 1208. As described above, the initial value of the history counter may be set according to Equation 5 or Equation 6. If the current CTU row is not the first CTU row in the partition, process 1200 includes, at block 1209, setting the history counter StatCoeff to the value stored in the history counter storage variable, as shown in Equation 13 or Equation 20. In some examples, for example, when an alternative Rice parameter derivation is utilized, the value of the substitution variable HistValue can be reset to the stored value, as shown in Equation 21.
[0116] If the parallel coding mechanism is not enabled or if it is determined that the current CTU is not the first CTU in the CTU row, or after setting the history counter in block 1208 or 1209, process 1200 includes calculating the Rice parameters of the TUs in the CTU based on the history counter (and based on the value of the substitution variable HistValue if the value of the substitution variable HistValue is also reset) in block 1210. As described above (e.g., with reference to FIG. 8 or in an alternative Rice parameter derivation), if the value of the history counter is reset in block 1208 or 1209, the Rice parameters of the TUs in the CTU are calculated based on the reset history counter or the subsequently updated history counter. If the history counter is not reset in block 1208 or 1209, the Rice parameters of the TUs in the CTU are calculated based on the history counter updated in the previous CTU or the history counter updated in the current CTU.
[0117] At block 1212, process 1200 includes decoding the binary strings or binary representations of the TUs in the CTU into coefficient values based on the calculated Rice parameters (e.g., via a combination of TR and Restricted kth Exponential Golomb (EGk) as defined in the VVC standard). At block 1214, process 1200 includes reconstructing pixel values of the TUs in the CTU, e.g., via inverse quantization and inverse transformation as described above with respect to FIG.
[0118] At block 1216, process 1200 includes determining whether parallel coding is enabled and whether the CTU is the first CTU in the current CTU row. If so, process 1200 includes storing the value of the history counter in a history counter storage variable, as shown in Equation 12 or Equation 18, at block 1218. In some examples, for example, if an alternative Rice parameter derivation is utilized, the value of the substitution variable HistValue may be stored in a storage variable, as shown in Equation 19. At block 1216, process 1200 includes outputting the decoded partition of the video.
[0119] In another embodiment, WPP or other parallel coding mechanisms and history-based Rice parameter derivation are prevented from coexisting in a bitstream. For example, if WPP is enabled, history-based Rice parameter derivation may not be enabled. If WPP is not enabled, history-based Rice parameter derivation may be enabled. Similarly, if history-based Rice parameter derivation is enabled, WPP may not be enabled. As an example, the syntax may be modified as follows: 7.3.2.22 Sequence Parameter Set Range Extension Syntax (additions are underlined) JPEG2024534816000033.jpg78170
[0120] As another example, the corresponding semantics would be changed as follows (changes are underlined): JPEG2024534816000034.jpg207170
[0121] In the above description, the TU is described and illustrated in the drawings (e.g., FIG. 6), but the same techniques can be applied to a transform block (TB). In other words, in the embodiments shown above (including the drawings), the TU can also represent the TB.
[0122] An example of a computing system for implementing dependent quantization in video coding
[0123] Any suitable computing system may be used to perform the operations described herein. For example, FIG. 13 illustrates an example of a computing device 1300 that may implement the video encoder 100 of FIG. 1 or the video decoder 200 of FIG. 2. In some embodiments, the computing device 1300 may include a processor 1312 communicatively coupled to a memory 1314 and configured to execute computer-executable program code and / or access information stored in the memory 1314. The processor 1312 may include a microprocessor, an application specific integrated circuit (ASIC), a state machine, or other processing device. The processor 1312 may include any number of processing devices, including one. Such a processor may include or be in communication with a computer-readable medium that stores instructions. The instructions, when executed by the processor 1312, cause the processor to perform the operations described herein.
[0124] The memory 1314 may include any suitable non-transitory computer-readable medium. The computer-readable medium may include any electronic, optical, magnetic, or other storage device capable of providing computer-readable instructions or other program code to a processor. Non-limiting examples of computer-readable media include magnetic disks, memory chips, read only memory (ROM), random access memory (RAM), ASICs, configured processors, optical storage devices, magnetic tape or other magnetic storage devices, or other media from which a computer processor may read instructions. The instructions may include processor-specific instructions generated by compilation and / or interpretation from code written in any suitable computer programming language, including, for example, C, C++, C#, Visual Basic, Java, Python, Perl, JavaScript, and ActionScript.
[0125] The computing device 1300 may also include a bus 1316. The bus 1316 may be communicatively coupled to one or more components of the computing device 1300. The computing device 1300 may also include multiple external or internal devices, such as input devices or output devices. For example, the illustrated computing device 1300 has an input / output (I / O) interface 1318 that may receive input from one or more input devices 1320 or provide output to one or more output devices 1322. The one or more input devices 1320 and the one or more output devices 1322 may be communicatively coupled to the I / O interface 1318. The communicative coupling may be realized in any suitable manner (e.g., connection via a printed circuit board, connection via a cable, communication via wireless transmission, etc.). Non-limiting examples of input devices 1320 include a touchscreen (e.g., one or more cameras for imaging a touch area, or a pressure sensor for detecting pressure changes caused by a touch), a mouse, a keyboard, or any other device that can be used to generate input events in response to physical movements of a user of a computing device. Non-limiting examples of output devices 1322 include an LCD screen, an external monitor, speakers, or any other device that can be used to display or otherwise present output generated by a computing device.
[0126] The computing device 1300 may execute program code that configures the processor 1312 to perform one or more of the operations described above with reference to Figures 1-12. The program code may include the video encoder 100 or the video decoder 200. The program code may reside in the memory 1314 or any suitable computer readable medium and may be executed by the processor 1312 or any other suitable processor.
[0127] The computing device 1300 may also include at least one network interface device 1324. The network interface device 1324 may include any device or group of devices suitable for establishing a wired or wireless data connection with one or more data networks 1328. Non-limiting examples of the network interface device 1324 include Ethernet network adapters, modems, etc. The computing device 1300 may transmit messages via the network interface device 1324 as electronic or optical signals.
[0128] General Considerations
[0129] Numerous specific details are described herein to provide a thorough understanding of the claimed subject matter. However, those skilled in the art will understand that the claimed subject matter may be practiced without these specific details. In other instances, methods, apparatus, or systems that may be known to those skilled in the art have not been described in detail so as not to obscure the claimed subject matter.
[0130] Unless otherwise explained, throughout this specification, discussions utilizing terms such as "processing," "computing," "calculating," "determining," and "identifying" are understood to refer to operations or processes of a computing device (e.g., one or more computers or similar electronic computing device(s)) that manipulates or transforms data represented as physical electronic or magnetic quantities in memories, registers, or other information storage devices, transmission devices, or display devices of a computing platform.
[0131] The system or systems discussed herein are not limited to any particular hardware architecture or configuration. A computing device may include any suitable arrangement of components that provide results conditional on one or more inputs. Suitable computing devices include general-purpose microprocessor-based computer systems that access stored software that programs or configures the computing system from a general-purpose computing device to a specific computing device that implements one or more embodiments of the present subject matter. Any suitable programming, scripting, or other type of language or combination of languages may be used to implement the teachings contained in the software used to program or configure a computing device herein.
[0132] The method embodiments disclosed herein may be performed in operation of such a computing device. The order of the blocks in the above examples may be changed, e.g., the blocks may be reordered, combined, and / or divided into sub-blocks. Some blocks or processes may be performed in parallel.
[0133] The use of "adapted to" or "configured to" herein does not exclude devices adapted or configured to perform additional tasks or steps, but is intended as an open and inclusive phrase. Additionally, the use of "based on" is intended to be open and inclusive, such that a process, step, calculation, or other action "based on" one or more recited conditions or values may in fact be based on additional conditions or values other than the recited conditions or values. The headings, lists, and numbering contained herein are for ease of description only and are not meant to be limiting.
[0134] Although the present subject matter has been described in detail with reference to specific embodiments thereof, it is understood that those skilled in the art, after understanding the foregoing, can easily provide modifications, variations, and equivalents to such embodiments. It is therefore to be understood that the present disclosure has been presented for purposes of illustration and not limitation, and is not intended to exclude the inclusion of modifications, variations, and / or additions that would be apparent to those skilled in the art.
Claims
1. 1. A method for decoding video from a video bitstream encoded using Versatile Video Coding (VVC), the method comprising: determining a bit depth of samples of the video based on a sequence parameter set (SPS) syntax element sps_bitdepth_minus8, where the value of the SPS syntax element sps_bitdepth_minus8 is in the range of 0 to 8; determining a size of a decoded picture buffer (DPB) based on a video parameter set (VPS) syntax element vps_ols_dpb_bitdepth_minus8, wherein a value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8; allocating storage space having the determined size of the DPB; decoding the video bitstream into a plurality of pictures based on the determined bit depth; storing one or more of the decoded pictures in the DPB; and outputting the one or more of the decoded pictures for display.
1. A method for decoding video from a video bitstream encoded using VVC, comprising:
2. Decoding the video bitstream into a plurality of pictures includes: decoding a first portion of the video bitstream into a first picture set; storing the first set of pictures in the DPB; and decoding a second portion of the video bitstream into a second picture set by using the first picture set in the DPB as a reference picture.
2. The method of claim 1 .
3. The method comprises: reordering the one or more of the decoded pictures in the DPB according to an output order; outputting the one or more of the decoded pictures in accordance with the output order.
2. The method of claim 1 .
4. The method comprises: retaining the one or more of the decoded pictures in the DPB for a period of time; and outputting the one or more of the plurality of decoded pictures after the period of time has elapsed.
2. The method of claim 1 .
5. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of coding tree unit (CTU)s forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, determining that parallel coding is enabled and that the CTU is a first CTU in a current CTU row of the one or more CTU rows in the partition; In response to determining that the parallel coding is enabled and that the CTU is the first CTU of the current CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; Decoding the CTU, Calculating the Rice parameters for transform units (TUs) in the CTU based on the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; outputting a decoded partition of the video, the decoded partition including the decoded CTUs in the partition; Including, 2. The method of claim 1 .
6. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of CTUs forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, and in response to determining that parallel coding is enabled and that the CTU is a first CTU of a current CTU row, determining whether the current CTU row is a first CTU row in the partition; In response to determining that the current CTU row is the first CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; in response to determining that the current CTU row is not the first CTU row in the partition, setting a history counter of the color component to a value stored in a history counter storage variable; Decoding the CTU, calculating the Rice parameter for a TU in the CTU based on the value of the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; After decoding the CTU, in response to determining that parallel coding is enabled and that the CTU is the first CTU of the current CTU row, storing a current value of the history counter in the history counter storage variable; Including, 2. The method of claim 1 .
7. A non-transitory computer readable medium having program code stored thereon; The program code is executable by one or more processing devices to perform the following operations: determining a size of a decoded picture buffer (DPB) for the video based on a Video Parameter Set (VPS) syntax element vps_ols_dpb_bitdepth_minus8 included in a video bitstream of the video, where the video bitstream is encoded using Versatile Video Coding (VVC) and the value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8; allocating storage space having the determined size of the DPB; decoding the video bitstream into a plurality of pictures; storing one or more of the decoded pictures in the DPB; outputting the one or more of the decoded pictures for display; and Including, A non-transitory computer-readable medium comprising:
8. Decoding the video bitstream into a plurality of pictures includes: decoding a first portion of the video bitstream into a first picture set; storing the first set of pictures in the DPB; and decoding a second portion of the video bitstream into a second picture set by using the first picture set in the DPB as a reference picture.
8. The non-transitory computer-readable medium of claim 7.
9. The operation is reordering the one or more of the decoded pictures in the DPB according to an output order; outputting the one or more of the decoded pictures in accordance with the output order.
8. The non-transitory computer-readable medium of claim 7.
10. The operation is retaining the one or more of the decoded pictures in the DPB for a period of time; and outputting the one or more of the plurality of decoded pictures after the period of time has elapsed.
8. The non-transitory computer-readable medium of claim 7.
11. The operation is determining a bit depth of the video samples based on a sequence parameter set (SPS) syntax element sps_bitdepth_minus8, the value of the SPS syntax element sps_bitdepth_minus8 being in a range of 0 to 8, and decoding the video bitstream into the plurality of pictures being performed based on the determined bit depth.
8. The non-transitory computer-readable medium of claim 7.
12. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of coding tree unit (CTU)s forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, determining that parallel coding is enabled and that the CTU is a first CTU in a current CTU row of the one or more CTU rows in the partition; In response to determining that the parallel coding is enabled and that the CTU is the first CTU of the current CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; Decoding the CTU, Calculating the Rice parameters for transform units (TUs) in the CTU based on the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; outputting a decoded partition of the video, the decoded partition including the decoded CTUs in the partition; Including, 12. The non-transitory computer-readable medium of claim 11.
13. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of CTUs forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, and in response to determining that parallel coding is enabled and that the CTU is a first CTU of a current CTU row, determining whether the current CTU row is a first CTU row in the partition; In response to determining that the current CTU row is the first CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; in response to determining that the current CTU row is not the first CTU row in the partition, setting a history counter of the color component to a value stored in a history counter storage variable; Decoding the CTU, calculating the Rice parameter for a TU in the CTU based on the value of the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; After decoding the CTU, in response to determining that parallel coding is enabled and that the CTU is the first CTU of the current CTU row, storing a current value of the history counter in the history counter storage variable; Including, 12. The non-transitory computer-readable medium of claim 11.
14. 1. A system comprising: a processing device and a non-transitory computer readable medium; The non-transitory computer readable medium is communicatively coupled to the processing device, and the processing device is configured to execute program code stored on the non-transitory computer readable medium to thereby perform the following operations, the operations including: determining a size of a decoded picture buffer (DPB) for the video based on a Video Parameter Set (VPS) syntax element vps_ols_dpb_bitdepth_minus8 included in a video bitstream of the video, where the video bitstream is encoded using Versatile Video Coding (VVC) and the value of the VPS syntax element vps_ols_dpb_bitdepth_minus8 is in the range of 0 to 8; allocating storage space having the determined size of the DPB; decoding the video bitstream into a plurality of pictures; storing one or more of the decoded pictures in the DPB; outputting the one or more of the decoded pictures for display; and Including, A system characterized by:
15. Decoding the video bitstream into a plurality of pictures includes: decoding a first portion of the video bitstream into a first picture set; storing the first set of pictures in the DPB; and decoding a second portion of the video bitstream into a second picture set by using the first picture set in the DPB as a reference picture.
15. The system of claim 14.
16. The operation is reordering the one or more of the decoded pictures in the DPB according to an output order; outputting the one or more of the decoded pictures in accordance with the output order.
15. The system of claim 14.
17. The operation is retaining the one or more of the decoded pictures in the DPB for a period of time; and outputting the one or more of the plurality of decoded pictures after the period of time has elapsed.
15. The system of claim 14.
18. The operation is determining a bit depth of the video samples based on a sequence parameter set (SPS) syntax element sps_bitdepth_minus8, the value of the SPS syntax element sps_bitdepth_minus8 being in a range of 0 to 8, and decoding the video bitstream into the plurality of pictures being performed based on the determined bit depth.
15. The system of claim 14.
19. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of coding tree unit (CTU)s forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, determining that parallel coding is enabled and that the CTU is a first CTU in a current CTU row of the one or more CTU rows in the partition; In response to determining that the parallel coding is enabled and that the CTU is the first CTU of the current CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; Decoding the CTU, Calculating the Rice parameters for transform units (TUs) in the CTU based on the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; outputting a decoded partition of the video, the decoded partition including the decoded CTUs in the partition; Including, 20. The system of claim 18.
20. Decoding the video bitstream into a plurality of pictures based on the determined bit depth includes: accessing a binary string representing a partition of the video, the partition including a plurality of CTUs forming one or more CTU rows; For each of the plurality of CTUs in the partition, Before decoding the CTU, and in response to determining that parallel coding is enabled and that the CTU is a first CTU of a current CTU row, determining whether the current CTU row is a first CTU row in the partition; In response to determining that the current CTU row is the first CTU row in the partition, setting a history counter of a color component for calculating a Rice parameter to an initial value based on the determined bit depth; in response to determining that the current CTU row is not the first CTU row in the partition, setting a history counter of the color component to a value stored in a history counter storage variable; Decoding the CTU, calculating the Rice parameter for a TU in the CTU based on the value of the history counter; decoding the binary string corresponding to the TU in the CTU based on the calculated Rice parameter into coefficient values of the TU; determining pixel values of the TUs in the CTU from the coefficient values; After decoding the CTU, in response to determining that parallel coding is enabled and that the CTU is the first CTU of the current CTU row, storing a current value of the history counter in the history counter storage variable; Including, 20. The system of claim 18.
