Method and apparatus for adaptive shifting quantization center for video quantization
The implementation of quantization-center shifting in video coding systems addresses inefficiencies by enabling dynamic adaptation of quantization processes, enhancing decoding and encoding accuracy and efficiency.
Patent Information
- Application Number
- PCT/CN2025/103609
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-07-01
- Filing Date
- 2025-06-25
- Publication Date
- 2026-01-08
AI Technical Summary
Existing video coding techniques lack efficient methods for adapting quantization-center shifting, which affects the accuracy and efficiency of video decoding and encoding processes.
Implementing a method and apparatus that enable quantization-center shifting based on a first syntax element, allowing for the determination of a dequantized coefficient and subsequent decoding or encoding of bitstreams, utilizing processors and memory to execute instructions for quantization-center shifting operations.
Enhances the accuracy and efficiency of video decoding and encoding by dynamically adjusting quantization-center shifting, improving the overall performance of video coding systems.
Smart Images

Figure CN2025103609_08012026_PF_FP_ABST
Abstract
Description
METHOD AND APPARATUS FOR ADAPTIVE SHIFTING QUANTIZATION CENTER FOR VIDEO QUANTIZATIONCROSS-REFERENCE TO RELATED APPLICATIONS
[0001] This application claims the benefit of priority to U.S. Provisional Application No. 63 / 666,614, entitled “ADAPTIVE SHIFTING QUANTIZATION CENTER FOR VIDEO QUANTIZATION, ” and filed on July 1, 2024, which is incorporated by reference herein in its entirety.BACKGROUND
[0002] Embodiments of the present disclosure relate to video coding.
[0003] Digital video has become mainstream and is being used in a wide range of applications including digital television, video telephony, and teleconferencing. These digital video applications are feasible because of the advances in computing and communication technologies as well as efficient video coding techniques. Various video coding techniques may be used to compress video data, such that coding on the video data can be performed using one or more video coding standards. Exemplary video coding standards may include, but not limited to, versatile video coding (H. 266 / VVC) , high-efficiency video coding (H. 265 / HEVC) , advanced video coding (H. 264 / AVC) , moving picture expert group (MPEG) coding, enhanced video coding model (ECM) , to name a few.SUMMARY
[0004] According to one aspect of the present disclosure, a method of decoding by a decoder is provided. The method may include decoding, by a processor, a first syntax element. The method may include determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element. The method may include, in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting. The method may include decoding, by the processor, a bitstream based on the dequantized coefficient.
[0005] According to another aspect of the present disclosure, a decoder is provided. The decoder may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to decode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to decode a bitstream based on the dequantized coefficient.
[0006] According to a further aspect of the present disclosure, an apparatus for decoding is provided. The apparatus for decoding may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to decode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to decode a bitstream based on the dequantized coefficient.
[0007] According to another aspect of the present disclosure, a non-transitory computer-readable medium storing instructions for a decoder is provided. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to decode a first syntax element. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine whether quantization-center shifting is enabled based on the first syntax element. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to decode a bitstream based on the dequantized coefficient.
[0008] According to one aspect of the present disclosure, a method of encoding by a encoder is provided. The method may include encoding, by a processor, a first syntax element. The method may include determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element. The method may include, in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting. The method may include encoding, by the processor, a bitstream based on the dequantized coefficient.
[0009] According to another aspect of the present disclosure, a encoder is provided. The encoder may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to encode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to encode a bitstream based on the dequantized coefficient.
[0010] According to a further aspect of the present disclosure, an apparatus for encoding is provided. The apparatus for encoding may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to encode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to encode a bitstream based on the dequantized coefficient.
[0011] According to another aspect of the present disclosure, a non-transitory computer-readable medium storing instructions for a encoder is provided. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to encode a first syntax element. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine whether quantization-center shifting is enabled based on the first syntax element. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to encode a bitstream based on the dequantized coefficient.
[0012] According to yet another aspect of the present disclosure, a non-transitory computer-readable medium storing a bitstream generated based on one or more of the operations described herein.
[0013] According to still a further aspect of the present disclosure, a method of transmitting a bitstream is provided. The method may include generating the bitstream based on one or more of the operations described herein. The method may include transmitting the bitstream.
[0014] These illustrative embodiments are mentioned not to limit or define the present disclosure, but to provide examples to aid understanding thereof. Additional embodiments are described in the Detailed Description, and further description is provided there.BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The accompanying drawings, which are incorporated herein and form a part of the specification, illustrate embodiments of the present disclosure and, together with the description, further serve to explain the principles of the present disclosure and to enable a person skilled in the pertinent art to make and use the present disclosure.
[0016] FIG. 1 illustrates a block diagram of an exemplary encoding system, according to some embodiments of the present disclosure.
[0017] FIG. 2 illustrates a block diagram of an exemplary decoding system, according to some embodiments of the present disclosure.
[0018] FIG. 3 illustrates a detailed block diagram of an exemplary encoder in the encoding system in FIG. 1, according to some embodiments of the present disclosure.
[0019] FIG. 4 illustrates a detailed block diagram of an exemplary decoder in the decoding system in FIG. 2, according to some embodiments of the present disclosure.
[0020] FIG. 5 illustrates an exemplary picture divided into coding tree units (CTUs) , according to some embodiments of the present disclosure.
[0021] FIG. 6 illustrates an exemplary CTU divided into coding units (CUs) , according to some embodiments of the present disclosure.
[0022] FIG. 7 illustrates a schematic visualization of two scalar quantizers with different reconstruction values, according to some embodiments of the present disclosure.
[0023] FIG. 8 illustrates a schematic visualization of state transition and quantizer selection for dependent quantization (DQ) , according to some embodiments of the present disclosure.
[0024] FIG. 9 illustrates a flowchart of a method of decoding, according to some embodiments of the present disclosure.
[0025] FIG. 10 illustrates a flowchart of a method of encoding, according to some embodiments of the present disclosure.
[0026] Embodiments of the present disclosure will be described with reference to the accompanying drawings.DETAILED DESCRIPTION
[0027] Although some configurations and arrangements are discussed, it should be understood that this is done for illustrative purposes only. A person skilled in the pertinent art will recognize that other configurations and arrangements can be used without departing from the spirit and scope of the present disclosure. It will be apparent to a person skilled in the pertinent art that the present disclosure can also be employed in a variety of other applications.
[0028] It is noted that references in the specification to “one embodiment, ” “an embodiment, ” “an example embodiment, ” “some embodiments, ” “certain embodiments, ” etc., indicate that the embodiment described may include a particular feature, structure, or characteristic, but every embodiment may not necessarily include the particular feature, structure, or characteristic. Moreover, such phrases do not necessarily refer to the same embodiment. Further, when a particular feature, structure, or characteristic is described in connection with an embodiment, it would be within the knowledge of a person skilled in the pertinent art to effect such feature, structure, or characteristic in connection with other embodiments whether or not explicitly described.
[0029] In general, terminology may be understood at least in part from usage in context. For example, the term “one or more” as used herein, depending at least in part upon context, may be used to describe any feature, structure, or characteristic in a singular sense or may be used to describe combinations of features, structures or characteristics in a plural sense. Similarly, terms, such as “a, ” “an, ” or “the, ” again, may be understood to convey a singular usage or to convey a plural usage, depending at least in part upon context. In addition, the term “based on” may be understood as not necessarily intended to convey an exclusive set of factors and may, instead, allow for existence of additional factors not necessarily expressly described, again, depending at least in part on context.
[0030] Various aspects of video coding systems will now be described with reference to various apparatus and methods. These apparatus and methods will be described in the following detailed description and illustrated in the accompanying drawings by various modules, components, circuits, steps, operations, processes, algorithms, etc. (collectively referred to as “elements” ) . These elements may be implemented using electronic hardware, firmware, computer software, or any combination thereof. Whether such elements are implemented as hardware, firmware, or software depends upon the particular application and design constraints imposed on the overall system.
[0031] The techniques described herein may be used for various video coding applications. As described herein, video coding includes both encoding and decoding a video. Encoding and decoding of a video can be performed by the unit of block. For example, an encoding / decoding process such as transform, quantization, prediction, in-loop filtering, reconstruction, or the like may be performed on a coding block, a transform block, or a prediction block. As described herein, a block to be encoded / decoded will be referred to as a “current block. ” For example, the current block may represent a coding block, a transform block, or a prediction block according to a current encoding / decoding process. In addition, it is understood that the term “unit” used in the present disclosure indicates a basic unit for performing a specific encoding / decoding process, and the term “block” indicates a sample array of a predetermined size. Unless otherwise stated, the “block” and “unit” may be used interchangeably.
[0032] FIG. 1 illustrates a block diagram of an exemplary encoding system 100, according to some embodiments of the present disclosure. FIG. 2 illustrates a block diagram of an exemplary decoding system 200, according to some embodiments of the present disclosure. Each system 100 or 200 may be applied or integrated into various systems and apparatus capable of data processing, such as computers and wireless communication devices. For example, system 100 or 200 may be the entirety or part of a mobile phone, a desktop computer, a laptop computer, a tablet, a vehicle computer, a gaming console, a printer, a positioning device, a wearable electronic device, a smart sensor, a virtual reality (VR) device, an augmented reality (AR) device, or any other suitable electronic devices having data processing capability. As shown in FIGs. 1 and 2, system 100 or 200 may include a processor 102, a memory 104, and an interface 106. These components are shown as connected to one another by a bus, but other connection types are also permitted. It is understood that system 100 or 200 may include any other suitable components for performing functions described here.
[0033] Processor 102 may include microprocessors, such as a graphic processing unit (GPU) , image signal processor (ISP) , central processing unit (CPU) , digital signal processor (DSP) , tensor processing unit (TPU) , vision processing unit (VPU) , neural processing unit (NPU) , synergistic processing unit (SPU) , or physics processing unit (PPU) , microcontroller units (MCUs) , application-specific integrated circuits (ASICs) , field-programmable gate arrays (FPGAs) , programmable logic devices (PLDs) , state machines, gated logic, discrete hardware circuits, and other suitable hardware configured to perform the various functions described throughout the present disclosure. Although only one processor is shown in FIGs. 1 and 2, it is understood that multiple processors can be included. Processor 102 may be a hardware device having one or more processing cores. Processor 102 may execute software. Software shall be construed broadly to mean instructions, instruction sets, code, code segments, program code, programs, subprograms, software modules, applications, software applications, software packages, routines, subroutines, objects, executables, threads of execution, procedures, functions, etc., whether referred to as software, firmware, middleware, microcode, hardware description language, or otherwise. Software can include computer instructions written in an interpreted language, a compiled language, or machine code. Other techniques for instructing hardware are also permitted under the broad category of software.
[0034] Memory 104 can broadly include both memory (a. k. a, primary / system memory) and storage (a. k. a. secondary memory) . For example, memory 104 may include random-access memory (RAM) , read-only memory (ROM) , static RAM (SRAM) , dynamic RAM (DRAM) , ferro-electric RAM (FRAM) , electrically erasable programmable ROM (EEPROM) , compact disc read-only memory (CD-ROM) or other optical disk storage, hard disk drive (HDD) , such as magnetic disk storage or other magnetic storage devices, Flash drive, solid-state drive (SSD) , or any other medium that can be used to carry or store desired program code in the form of instructions that can be accessed and executed by processor 102. Broadly, memory 104 may be embodied by any computer-readable medium, such as a non-transitory computer-readable medium. Although only one memory is shown in FIGs. 1 and 2, it is understood that multiple memories can be included.
[0035] Interface 106 can broadly include a data interface and a communication interface that is configured to receive and transmit a signal in a process of receiving and transmitting information with other external network elements. For example, interface 106 may include input / output (I / O) devices and wired or wireless transceivers. Although only one memory is shown in FIGs. 1 and 2, it is understood that multiple interfaces can be included.
[0036] Processor 102, memory 104, and interface 106 may be implemented in various forms in system 100 or 200 for performing video coding functions. In some embodiments, processor 102, memory 104, and interface 106 of system 100 or 200 are implemented (e.g., integrated) on one or more system-on-chips (SoCs) . In one example, processor 102, memory 104, and interface 106 may be integrated on an application processor (AP) SoC that handles application processing in an operating system (OS) environment, including running video encoding and decoding applications. In another example, processor 102, memory 104, and interface 106 may be integrated on a specialized processor chip for video coding, such as a GPU or ISP chip dedicated to image and video processing in a real-time operating system (RTOS) .
[0037] As shown in FIG. 1, in encoding system 100, processor 102 may include one or more modules, such as an encoder 101. Although FIG. 1 shows that encoder 101 is within one processor 102, it is understood that encoder 101 may include one or more sub-modules that can be implemented on different processors located closely or remotely with each other. Encoder 101 (and any corresponding sub-modules or sub-units) can be hardware units (e.g., portions of an integrated circuit) of processor 102 designed for use with other components or software units implemented by processor 102 through executing at least part of a program, e.g., instructions. The instructions of the program may be stored on a computer-readable medium, such as memory 104, and when executed by processor 102, it may perform a process having one or more functions related to video encoding, such as picture partitioning, inter prediction, intra prediction, transformation, quantization, filtering, entropy encoding, etc., as described below in detail.
[0038] Similarly, as shown in FIG. 2, in decoding system 200, processor 102 may include one or more modules, such as a decoder 201. Although FIG. 2 shows that decoder 201 is within one processor 102, it is understood that decoder 201 may include one or more sub-modules that can be implemented on different processors located closely or remotely with each other. Decoder 201 (and any corresponding sub-modules or sub-units) can be hardware units (e.g., portions of an integrated circuit) of processor 102 designed for use with other components or software units implemented by processor 102 through executing at least part of a program, e.g., instructions. The instructions of the program may be stored on a computer-readable medium, such as memory 104, and when executed by processor 102, it may perform a process having one or more functions related to video decoding, such as entropy decoding, inverse quantization, inverse transformation, inter prediction, intra prediction, filtering, as described below in detail.
[0039] FIG. 3 illustrates a detailed block diagram of exemplary encoder 101 in encoding system 100 in FIG. 1, according to some embodiments of the present disclosure. As shown in FIG. 3, encoder 101 may include a partitioning module 302, an inter prediction module 304, an intra prediction module 306, a transform module 308, a quantization module 310, a dequantization module 312, an inverse transform module 314, a filter module 316, a buffer module 318, and an encoding module 320. It is understood that each of the elements shown in FIG. 3 is independently shown to represent characteristic functions different from each other in a video encoder, and it does not mean that each component is formed by the configuration unit of separate hardware or single software. That is, each element is included to be listed as an element for convenience of explanation, and at least two of the elements may be combined to form a single element, or one element may be divided into a plurality of elements to perform a function. It is also understood that some of the elements are not necessary elements that perform functions described in the present disclosure but instead may be optional elements for improving performance. It is further understood that these elements may be implemented using electronic hardware, firmware, computer software, or any combination thereof. Whether such elements are implemented as hardware, firmware, or software depends upon the particular application and design constraints imposed on encoder 101.
[0040] Partitioning module 302 may be configured to partition an input picture of a video into at least one processing unit. A picture can be a frame of the video or a field of the video. In some embodiments, a picture includes an array of luma samples in monochrome format, or an array of luma samples and two corresponding arrays of chroma samples. At this point, the processing unit may be a prediction unit (PU) , a transform unit (TU) , or a coding unit (CU) . Partitioning module 302 may partition a picture into a combination of a plurality of coding units, prediction units, and transform units, and encode a picture by selecting a combination of a coding unit, a prediction unit, and a transform unit based on a predetermined criterion (e.g., a cost function) .
[0041] Similar to H. 265 / HEVC, H. 266 / VVC is a block-based hybrid spatial and temporal predictive coding scheme. As shown in FIG. 5, during encoding, an input picture 500 is first divided into square blocks - CTUs 502, by partitioning module 302. For example, CTUs 502 can be blocks of 128×128 pixels. As shown in FIG. 6, each CTU 502 in input picture 500 can be partitioned by partitioning module 302 into one or more CUs 602, which can be used for prediction and transformation. Unlike H. 265 / HEVC, in H. 266 / VVC, CUs 602 can be rectangular or square, and can be coded without further partitioning into prediction units or transform units. For example, as shown in FIG. 6, the partition of CTU 502 into CUs 602 may include quadtree splitting (indicated in solid lines) , binary tree splitting (indicated in dashed lines) , and ternary splitting (indicated in dash-dotted lines) . Each CU 602 can be as large as its root CTU or be subdivisions of root CTU 502 as small as 4×4 blocks, according to some embodiments.
[0042] Referring to FIG. 3, inter prediction module 304 may be configured to perform inter prediction on a prediction unit, and intra prediction module 306 may be configured to perform intra prediction on the prediction unit. It may be determined whether to use inter prediction or to perform intra prediction for the prediction unit, and determine specific information (e.g., intra prediction mode, motion vector, reference picture, etc. ) according to each prediction method. At this point, a processing unit for performing prediction may be different from a processing unit for determining a prediction method and specific content. For example, a prediction method and a prediction mode may be determined in a prediction unit, and prediction may be performed in a transform unit. Residual coefficients in a residual block between the generated prediction block and the original block may be input into transform module 308. In addition, prediction mode information, motion vector information, and the like used for prediction may be encoded by encoding module 320 together with the residual coefficients or quantization levels into the bitstream. It is understood that in certain encoding modes, an original block may be encoded as it is without generating a prediction block through prediction module 304 or 306. It is also understood that in certain encoding modes, prediction, transform, and / or quantization may be skipped as well.
[0043] In some embodiments, inter prediction module 304 may predict a prediction unit based on information on at least one picture among pictures before or after the current picture, and in some cases, it may predict a prediction unit based on information on a partial area that has been encoded in the current picture. Inter prediction module 304 may include sub-modules, such as a reference picture interpolation module, a motion prediction module, and a motion compensation module (not shown) . For example, the reference picture interpolation module may receive reference picture information from buffer module 318 and generate pixel information of an integer number of pixels or less from the reference picture. In the case of a luminance pixel, a discrete cosine transform (DCT) -based 8-tap interpolation filter with a varying filter coefficient may be used to generate pixel information of an integer number of pixels or less by the unit of 1 / 4 pixels. In the case of a color difference signal, a DCT-based 4-tap interpolation filter with a varying filter coefficient may be used to generate pixel information of an integer number of pixels or less by the unit of 1 / 8 pixels. The motion prediction module may perform motion prediction based on the reference picture interpolated by the reference picture interpolation part. Various methods, such as a full search-based block matching algorithm (FBMA) , a three-step search (TSS) , and a new three-step search algorithm (NTS) may be used as a method of calculating a motion vector. The motion vector may have a motion vector value of a unit of 1 / 2, 1 / 4, or 1 / 16 pixels or integer pel based on interpolated pixels. The motion prediction module may predict a current prediction unit by varying the motion prediction method. Various methods, such as a skip method, a merge method, an advanced motion vector prediction (AMVP) method, an intra-block copy method, and the like, may be used as the motion prediction method.
[0044] Still referring to FIG. 3, in some embodiments, intra prediction module 306 may generate a prediction unit based on the information on reference pixels around the current block, which is pixel information in the current picture. The reference pixels may be located in reference lines non-adjacent to the current block. When a block in the neighborhood of the current prediction unit is a block on which inter prediction has been performed and thus, the reference pixel is a pixel on which inter prediction has been performed, the reference pixel included in the block on which inter prediction has been performed may be used in place of reference pixel information of a block in the neighborhood on which intra prediction has been performed. That is, when a reference pixel is unavailable, at least one reference pixel among available reference pixels may be used in place of unavailable reference pixel information. In the intra prediction, the prediction mode may have an angular prediction mode that uses reference pixel information according to a prediction direction, and a non-angular prediction mode that does not use directional information when performing prediction. A mode for predicting luminance information may be different from a mode for predicting color difference information, and intra prediction mode information used to predict luminance information or predicted luminance signal information may be used to predict the color difference information. If the size of the prediction unit is the same as the size of the transform unit when intra prediction is performed, the intra prediction may be performed for the prediction unit based on pixels on the left side, pixels on the top-left side, and pixels on the top of the prediction unit. However, if the size of the prediction unit is different from the size of the transform unit when the intra prediction is performed, the intra prediction may be performed using a reference pixel based on the transform unit.
[0045] The intra prediction method may generate a prediction block after applying an adaptive intra smoothing (AIS) filter to the reference pixel according to a prediction mode. The type of the AIS filter applied to the reference pixel may vary. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit may be predicted from the intra prediction mode of the prediction unit existing in the neighborhood of the current prediction unit. When a prediction mode of the current prediction unit is predicted using the mode information predicted from the neighboring prediction unit, if the intra prediction modes of the current prediction unit are the same as the prediction unit in the neighborhood, information indicating that the prediction modes of the current prediction unit are the same as the prediction unit in the neighborhood may be transmitted using predetermined flag information, and if the prediction modes of the current prediction unit and the prediction unit in the neighborhood are different from each other, prediction mode information of the current block may be encoded by extra flags information.
[0046] As shown in FIG. 3, a residual block including a prediction unit that has performed prediction based on the prediction unit generated by prediction module 304 or 306 and residual coefficient information (also referred to herein as the “residual” ) , which is a difference value of the prediction unit with the original block, may be generated. The generated residual block may be input into transform module 308. Additional details of residuals and transforms for video coding will now be provided.
[0047] In hybrid video coding systems, redundancy in the video signal is first exploited by applying inter or intra prediction tools for each CU. The difference between the original samples of a CU and the prediction block for that CU is commonly referred to as the residual. Even after prediction, the residual may still be highly spatially correlated. Although conditional entropy coding can capture some spatial dependency between adjacent samples, it is computationally impractical to form entropy coding statistical models that can fully exploit spatial correlation in the residual. In contrast, transform coding is a practical and effective method for spatially decorrelating the residual.
[0048] For example, transform module 308 may transform the residual using an integerized version of the two-dimensional discrete cosine transform (DCT) , which may be applied separably in the horizontal and vertical directions. For an MxN block of residual samples (where M is the width of the block and N is the height of the block) , transform module 308 may obtain transform coefficients by applying an MxM DCT to each row, resulting in intermediate transform coefficients, and then applying an NxN DCT to each column of intermediate transform coefficients.
[0049] For intra-coded CUs (also referred to herein as “intra CUs” ) , spatial neighboring reconstructed samples are used to predict the current block, and the intra prediction mode is signaled once for the entire CU. Each CU consists of one or more collocated coding blocks (CBs) corresponding to the color components of the video sequence. For example, consumer video typically takes the 4: 2: 0 chroma format, in which case each CU consists of a luma CB and two chroma CBs with one-quarter of the samples of the luma CB. Intra prediction and transform coding are performed at the prediction block (PB) and transform block (TB) levels, respectively. Each CB consists of a single TB, except in the cases of Intra Subpartition (ISP) mode and implicit splitting. For luma CBs, the maximum side length of a TB is 64, and the minimum side length is 4. In addition, luma TBs are further specified as W × H rectangular blocks of width W and height H, where W, H ∈ {4, 8, 16, 32, 64} . For chroma CBs, the maximum TB side length is 32, and chroma TBs are rectangular W × H blocks of width W and height H. Here, W, H ∈ {2, 4, 8, 16, 32} , but blocks of shapes 2 × H and 4 × 2 are excluded in order to address memory architecture and throughput requirements.
[0050] Referring to FIG. 5, each picture is divided into a tiling of square CTUs, which are processed in raster scan order. When an intra prediction method is performed on a current CU 602 in a current CTU 502, samples belonging to other CTUs preceding current CTU 502 in raster scan order are reconstructed and may be available for prediction. Samples belonging to CTUs following the current CTU 502 in raster scan order are not reconstructed and, therefore, are not available.
[0051] Each CTU 502 itself is partitioned into CUs by a hierarchical structure consisting of quadtree, binary tree, and ternary tree splits, with an example of such splits shown in FIG. 6. The scan order of CUs within a CTU 502 is determined by the partitioning structure. For a single level of partitioning split, the partitions are scanned in the following order: 1) left to right for the cases of horizontal binary tree split or horizontal ternary tree split, 2) top to bottom for the cases of vertical binary tree split or vertical ternary tree split, and 3) top-left, top-right, bottom-left, bottom-right for the case of quadtree split.
[0052] If a partition contains further hierarchical splits, then all CUs within that partition are scanned before continuing to the CUs in the next partition. FIG. 6 shows an example of partitioning of a CTU 502 into 15 CUs. Each CU 602 in FIG. 6 is numbered from 1 to 15 to indicate their scan order. When an intra prediction method is performed on a current CU in a current CTU, samples belonging to other CUs in the current CTU that precede the current CU in the current CTU’s partitioning scan order are reconstructed and may be available for prediction. Samples belonging to the current CU, or CUs following the current CU in the current CTU’s partitioning scan order are not reconstructed and, therefore, not available.
[0053] Samples belonging to a CTU preceding the current CTU in raster scan order are considered reconstructed by the definition above. However, they are not necessarily available for intra prediction. To be considered available for prediction, they must also belong to a logical unit that the current CU is permitted to use. Pictures may be divided into sub-picture partitions, each of which contains a whole number of CTUs.
[0054] Referring again to FIG. 3, transform module 308 can transform the video signals in the residual block from the pixel domain to a transform domain (e.g., a frequency domain depending on the transform method) . It is understood that in some examples, transform module 308 may be skipped, and the video signals may not be transformed to the transform domain.
[0055] Quantization module 310 may be configured to quantize the coefficient of each position in the coding block to generate quantization levels of the positions. The current block may be the residual block. That is, quantization module 310 can perform a quantization process on each residual block. The residual block may include N×M positions (samples) , each associated with a transformed or non-transformed video signal / data, such as luma and / or chroma information, where N and M are positive integers. In the present disclosure, before quantization, the transformed or non-transformed video signal at a specific position is referred to herein as a “coefficient. ” After quantization, the quantized value of the coefficient is referred to herein as a “quantization level” or “level. ”
[0056] Quantization can be used to reduce the dynamic range of transformed or non-transformed video signals so that fewer bits will be used to represent video signals. Quantization typically involves division by a quantization step size and subsequent rounding, while dequantization (a. k. a. inverse quantization) involves multiplication by the quantization step size. The quantization step size can be indicated by a quantization parameter (QP) . Such a quantization process is referred to as scalar quantization. The quantization of all coefficients within a coding block can be done independently, and this kind of quantization method is used in some existing video compression standards, such as H. 264 / AVC and H. 265 / HEVC. The QP in quantization can affect the bit rate used for encoding / decoding the pictures of the video. For example, a higher QP can result in a lower bit rate, and a lower QP can result in a higher bit rate.
[0057] Referring to FIG. 3, encoding module 320 may be configured to encode the quantization level of each position in the coding block into the bitstream. In some embodiments, encoding module 320 may perform entropy encoding on the coding block. Entropy encoding may use various binarization methods, such as Golomb-Rice binarization, to convert each quantization level into a respective binary representation, such as binary bins. Then, the binary representation can be further compressed using entropy encoding algorithms. The compressed data may be added to the bitstream. Besides the quantization levels, encoding module 320 may encode various other information, such as block type information of a coding unit, prediction mode information, partitioning unit information, prediction unit information, transmission unit information, motion vector information, reference frame information, block interpolation information, and filtering information input from, for example, prediction modules 304 and 306. In some embodiments, encoding module 320 may perform residual coding on a coding block to convert the quantization level into the bitstream. For example, after quantization, there may be N×M quantization levels for an N×M block. These N×M levels may be zero or non-zero values. The non-zero levels may be further binarized to binary bins if the levels are not binary, for example, using combined Truncated Rice (TR) and limited EGk binarization.
[0058] Non-binary syntax elements may be mapped to binary codewords. The bijective mapping between symbols and codewords, for which typically simple structured codes are used, is called binarization. The binary symbols, also called bins, of both binary syntax elements and codewords for non-binary data may be coded using binary arithmetic coding. The core coding engine of context-adaptive binary arithmetic coding (CABAC) can support two operating modes: a context coding mode, in which the bins are coded with adaptive probability models, and a less complex bypass mode that uses a fixed probability of 1 / 2. The adaptive probability models are also called contexts, and the assignment of probability models to individual bins is referred to as context modeling.
[0059] As shown in FIG. 3, dequantization module 312 may be configured to dequantize the quantization levels by dequantization module 312, and inverse transform module 314 may be configured to inversely transform the coefficients transformed by transform module 308. The reconstructed residual block generated by dequantization module 312 and inverse transform module 314 may be combined with the prediction units predicted through prediction module 304 or 306 to generate a reconstructed block.
[0060] Filter module 316 may include at least one among a deblocking filter, a sample adaptive offset (SAO) , and an adaptive loop filter (ALF) . The deblocking filter may remove block distortion generated by the boundary between blocks in the reconstructed picture. The SAO module may correct an offset to the original video by the unit of pixel for a video on which the deblocking has been performed. ALF may be performed based on a value obtained by comparing the reconstructed and filtered video with the original video. Buffer module 318 may be configured to store the reconstructed block or picture calculated through filter module 316, and the reconstructed and stored block or picture may be provided to inter prediction module 304 when inter prediction is performed.
[0061] FIG. 4 illustrates a detailed block diagram of exemplary decoder 201 in decoding system 200 in FIG. 2, according to some embodiments of the present disclosure. As shown in FIG. 4, decoder 201 may include a decoding module 402, a dequantization module 404, an inverse transform module 406, an inter prediction module 408, an intra prediction module 410, a filter module 412, and a buffer module 414. It is understood that each of the elements shown in FIG. 4 is independently shown to represent characteristic functions different from each other in a video decoder, and it does not mean that each component is formed by the configuration unit of separate hardware or single software. That is, each element is included to be listed as an element for convenience of explanation, and at least two of the elements may be combined to form a single element, or one element may be divided into a plurality of elements to perform a function. It is also understood that some of the elements are not necessary elements that perform functions described in the present disclosure but instead may be optional elements for improving performance. It is further understood that these elements may be implemented using electronic hardware, firmware, computer software, or any combination thereof. Whether such elements are implemented as hardware, firmware, or software depends upon the particular application and design constraints imposed on decoder 201.
[0062] When a video bitstream is input from a video encoder (e.g., encoder 101) , the input bitstream may be decoded by decoder 201 in a procedure opposite to that of the video encoder. Thus, some details of decoding that are described above with respect to encoding may be skipped for ease of description. Decoding module 402 may be configured to decode the bitstream to obtain various information encoded into the bitstream, such as the quantization level of each position in the coding block. In some embodiments, decoding module 402 may perform entropy decoding (decompressing) corresponding to the entropy encoding (compressing) performed by the encoder, such as, for example, variable length coding (VLC) , context-adaptive variable-length coding (CAVLC) , CABAC, syntax-based binary arithmetic coding (SBAC) , PIPE coding, and the like to obtain the binary representation (e.g., binary bins) . Decoding module 402 may further convert the binary representations to quantization levels using Golomb-Rice binarization, including, for example, EGk binarization and combined TR and limited EGk binarization. Besides the quantization levels of the positions in the transform units, decoding module 402 may decode various other information, such as the parameters used for Golomb-Rice binarization (e.g., the Rice parameter) , block type information of a coding unit, prediction mode information, partitioning unit information, prediction unit information, transmission unit information, motion vector information, reference frame information, block interpolation information, and filtering information. During the decoding process, decoding module 402 may perform rearrangement on the bitstream to reconstruct and rearrange the data from a 1D order into a 2D rearranged block through a method of inverse-scanning based on the coding scan order used by the encoder.
[0063] Dequantization module 404 may be configured to dequantize the quantization level of each position of the coding block (e.g., the 2D reconstructed block) to obtain the coefficient of each position. In some embodiments, dequantization module 404 may perform dependent dequantization based on quantization parameters provided by the encoder as well, including the information related to the quantizers used in dependent quantization, for example, the quantization step size used by each quantizer.
[0064] Inverse transform module 406 may be configured to perform inverse transformation, for example, inverse discrete cosine transform (DCT) , inverse DST, and inverse Karhunen-Loève transform (KLT) , for DCT, DST, and KLT performed by the encoder, respectively, to transform the data from the transform domain (e.g., coefficients) back to the pixel domain (e.g., luma and / or chroma information) . In some embodiments, inverse transform module 406 may selectively perform a transform operation (e.g., DCT, DST, KLT) according to a plurality of pieces of information such as a prediction method, a size of the current block, a prediction direction, and the like.
[0065] Inter prediction module 408 and intra prediction module 410 may be configured to generate a prediction block based on information related to the generation of a prediction block provided by decoding module 402 and information of a previously decoded block or picture provided by buffer module 414. As described above, if the size of the prediction unit and the size of the transform unit are the same when intra prediction is performed in the same manner as the operation of the encoder, intra prediction may be performed on the prediction unit based on the pixel existing on the left side, the pixel on the top-left side, and the pixel on the top of the prediction unit. However, if the size of the prediction unit and the size of the transform unit are different when intra prediction is performed, intra prediction may be performed using a reference pixel based on a transform unit.
[0066] For example, inter prediction module 408 may be configured to receive a bitstream that includes a reference frame, a current frame, and an indication of a weighting factor associated with a multiple-hypothesis prediction (MHP) procedure from an encoder. Inter prediction module 408 may be configured to perform the MHP procedure for a CU located in the current frame based on a search block (e.g., reference frame and / or reference template) in the reference frame. In some embodiments, to perform the MHP procedure, the inter prediction module 408 may be configured to perform template matching for the CU located in the current frame based on a search block in the reference frame and the weighting factor to obtain motion information. In some embodiments, to perform the MHP procedures, inter prediction module 408 may be configured to identify a weighting factor index associated with the weighting factor based on the template matching. Inter prediction module 408 may be configured to identify a weighting factor sign of the weighting factor based on an indication included in the bitstream. Inter prediction module performs an inter prediction procedure based on the current frame, the reference frame, the weighting factor index, and the weighting factor sign of the weighting factor to decode the bitstream.
[0067] The reconstructed block or reconstructed picture combined from the outputs of inverse transform module 406 and prediction module 408 or 410 may be provided to filter module 412. Filter module 412 may include a deblocking filter, an offset correction module, and an ALF. Buffer module 414 may store the reconstructed picture or block and use it as a reference picture or a reference block for inter prediction module 408 and may output the reconstructed picture.
[0068] Consistent with the scope of the present disclosure, encoding module 320 and decoding module 402 may be configured to adopt a scheme of quantization level binarization with Rice parameter adapted to the bit depth and / or the bit rate for encoding the picture of the video to improve the coding efficiency.
[0069] In video coding, quantization is a key step applied in reducing the amount of data needed to represent a video frame. First, the difference between the original signal and predicted signal is obtained. This difference may be referred to as a residual. Second, the residual may be transformed by applying a primary transform and optionally a further secondary transform. The residual may also not be transformed and in such cases may be called a transform skip residual. Then, the transformed or non-transformed residual consists of a set of coefficients. Third, each coefficient is quantized by applying division with a specified quantization step size to reduce the dynamic range of the coefficient. The result after this process is a quantization level (also referred to as a “level” ) . The quantization level is an integer number. Finally, the quantization levels are entropy coded to generate the bitstream at the encoder 101.
[0070] More specifically, given a (transformed or non-transformed) coefficient (coef) and a quantization step size (qpstep) , the encoder 101 may calculate a quantization level (level) according to formula (1) , as shown below.
[0071] Such quantization is also called scalar quantization. The quantization module 310 rounds off the value of the level in formula (1) to an integer number and decides the integer number to which the value of the level is rounded.
[0072] The level is entropy coded by encoding module 320 to the bitstream using a certain number of bits. Typically, a smaller qpstep keeps fine details and result in a larger number of bits, while a larger qpstep keeps coarser information and loses some finer details, which results in a smaller number of bits compared with a smaller qpstep.
[0073] At the decoder 201, dequantization module 404 de-quantizes or scales the level to recover the coefficient according to formula (2) , as shown below. icoef=level*qpstep (2) , where icoef is an inverse coefficient (also referred to as a “de-quantized coefficient” or a “reconstructed coefficient” ) .
[0074] The inverse coefficient (icoef) may have a different value than the coefficient (coef) due to the quantization and de-quantization processes. The difference between coef and icoef is referred to as the “quantization error. ” De-quantization typically cannot recover all information. Thus, the quantization / de-quantization processes may result in a lossy coding.
[0075] When considering the quantization error in the hyper-dimensional space of the set of coefficients belonging to the residual, the scalar quantization applied to each coefficient effectively results in the quantized residual being assigned to one of a set of hyper-cubes spanning the space. Compared with this, it is known that vector quantization can reduce the quantization error for the same amount of bit consumption by packing the hyper-dimensional space with “rounder” Voronoi cells. For this reason, the coding gain provided purely by switching from scalar quantization to vector quantization is typically referred to as “shape gain. ”
[0076] Vector quantization is typically impractical to implement in video coding due to its complexity. However, a class of vector quantization, sometimes referred to as trellis coded quantization, and referred to as dependent quantization (DQ) in VVC, provides a practical solution by effectively providing vector quantization of the residual through switching between two different and offset scalar quantizers.
[0077] Quantization of a coefficient within a coding block may make use of the coding scan order information. For example, it may depend on the status of the previous quantization level along the coding scan order. To further improve the coding efficiency, more than one quantizer, e.g., two scalar quantizers, can be used by quantization module 310, shown in FIG. 3. Which quantizer will be used for quantizing the current coefficient may depend on the information preceding the current coefficient in coding scan order. Such a quantization process is referred to as dependent quantization (DQ) .
[0078] The approach of DQ is realized by, e.g., 1) defining two scalar quantizers with different reconstruction values and 2) defining a process for switching between the two scalar quantizers.
[0079] FIG. 7 illustrates a schematic visualization of two scalar quantizers 700 with different reconstruction values, according to some embodiments of the present disclosure. As shown in FIG. 7, the two scalar quantizers 700 are denoted by Q0 and Q1. Each of these two quantizers can be considered as a quantizer that has 2Δ quantization step size. The location of the available reconstruction values for DQ is uniquely specified by a quantization step size Δ. The two scalar quantizers Q0 and Q1 are characterized as follows.
[0080] The reconstruction values of the first quantizer Q0 are given by the even integer multiples of the quantization step size Δ. When the first quantizer Q0 is used, a reconstructed coefficient icoef is calculated according to formula (3) , as shown below. icoef=2*k*Δ (3) , where k denotes the corresponding transform coefficient level.
[0081] The reconstruction values of the second quantizer Q1 are given by the odd integer multiples of the quantization step size Δ and the reconstruction value equal to zero. The mapping of transform coefficient levels k to reconstructed transform coefficients icoef is defined according to formula (4) , as shown below. icoef= (2*k-sgn (k) ) *Δ (4) , where sgn (. ) denotes the signum function and sgn (k) = (k==0 ? 0: (k<0 ? -1: 1) ) .
[0082] The level k for each quantizer (Q0 or Q1) is coded in the bitstream and a quantization index for DQ can be calculated based upon the index of two quantizers according to formula (5) , as shown below. where yi is the quantization index for DQ.
[0083] Formulas (3) and (4) can be combined together to calculate the icoef based upon DQ’s quantization index yi according to formula (6) , as shown below. icoef=yi*Δ (6) .
[0084] The scalar quantizer used (Q0 or Q1) is not explicitly signalled in the bitstream. Instead, the quantizer used for a current coefficient is determined by a quantizer state, and the parities of the levels that precede the current coefficient in coding / reconstruction order. For example, a schematic visualization of state transition and quantizer selection 800 for dependent quantization in VVC is illustrated in FIG. 8.
[0085] In VVC the quantizer state, which may also be referred to as “Qstate, ” is initialized as 0. For each coefficient, the quantizer is selected according to the value of the quantizer state at the start of encoding or decoding that coefficient. Quantizer state 0 or 1 selects Q0, while quantizer state 2 or 3 selects Q1. Equivalently, the quantizer selected is (QState > 1 ? 1 : 0 ) . For example, the first coefficient is decoded using the initialized quantizer state of 0, which selects quantizer Q0. After each coefficient is signaled, the state is updated according to a state transition that is controlled by the parity of the quantization level. The parity is the last bit of quantization level k, which can be isolated by bitwise AND operation with the value 1 (i.e., k &1 as shown in FIG. 8) . The transitions are shown both graphically and in table form in FIG. 8, however in practice the state transition is implemented by a state transition table.
[0086] ECM increases the number of quantizer states to 8, however the mechanism of selecting the quantizer is similar. State transitions are still performed according to the parity of quantization level k, and which of quantizers Q0 or Q1 is selected is determined by a mapping from the current Qstate.
[0087] It is known that the quantization step size determines the upper bound of quantization error. For a given coefficient, it could be quantized to two level indices, l and l-1, along the quantization level line according to formula (1) , where l is an integer number. The distortion (quantization error) for these two levels to represent the given coefficient are denoted as dist (l) and dist (l-1) and can be calculated according to formulas (7) and (8) , respectively, as shown below. dist (l) = (coef-icoef (l) ) 2 (7) , and dist (l-1) = (coef-icoef (l-1) ) 2 (8) , where icoef (l) and icoef (l-1) represent the reconstructed coefficients for level l and level l- 1 and can be calculated according to formula (2) .
[0088] With variable length coding, the number of bits used to code different levels may be different. For level coding, if the level is a non-zero number, the sign of the level and the absolute value of the level will be coded separately. The number of bits used to code level l typically are greater than the number bits used to code level l-1 when l is a positive number. Similarly, the number of bits used to code level l-1 is typically larger than the number of bits used to code level l when l is a negative number. In short, variable length coding typically uses a larger number of bits to code a larger absolute value of the level than the number of bits used to code a smaller absolute value of the level.
[0089] To achieve the best coding performance for coding a given coefficient, the minimum of the rate-distortion (RD) cost (cost) may be typically selected for quantizing the given coefficient. The cost for quantizing to level l may be calculated according to formula (9) , as shown below. cost=dist (l) +lambda*rate (l) (9) , where rate (l) represents the number of bits used to code level l, and lambda may be a constant depending on quantization step size and slice type etc. and may be selected to provide a trade-off between the distortion and bits used to code the level. Typically, the RD costs for coding levels l and l-1 are calculated, and the smaller cost for coding a coefficient is then selected by the quantization module 310 to represent the quantized version of the given coefficient.
[0090] A smaller absolute value of a level typically will consume a fewer number of bits compared to the larger absolute value of a level. For example, coding level 5 typically will consume fewer bits compared to coding level 6. Therefore, some quantizers may favor quantizing a given coefficient to a smaller level while this level may have a slightly larger distortion. In other words, the dequantized coefficient typically is smaller than the real coefficient because the quantizer intends to quantize the given coefficient to a relatively smaller level instead of a larger level.
[0091] In addition, shifting latent representations of reconstructed coefficients by the gradient of the rate can improve the overall coding performance. In regular scalar quantization, the reconstructed coefficients are calculated by simply scaling the levels. This is equivalent to placing the reconstructed coefficient values for each level at the midpoint (e.g., center) of its corresponding quantization bin. Shifting the quantization center may move the reconstructed coefficient value away from the center of these quantization bins. De-quantized coefficient values are shifted and the amount of shifting is proportional to the gradient of the rate. In ECM-12.0, a quantization index yi of DQ is used to predict the rate R (yi) and the rate is modelled as increasing by the logarithm of the absolute value of the index according to formula (10) , as shown below. where yi ∈ Z is the quantization index for DQ, and a, b ∈ R are two real numbers.
[0092] Using this assumption, the gradient of the rate may be calculated according to formula (11) , as shown below. where yi≠0 (11) .
[0093] Since α=a / ln (2) is a constant scalar, the gradient of the rate is inversely proportional to the quantization index of DQ in formula (10) . This means that the dequantized coefficients or the quantization centers are shifted with the shifting amount inversely proportional to the quantization indices. An integer valued lookup table where each element is the shifting amount for each possible unique absolute quantization indices of DQ, may be used. In summary, shifting of dequantized coefficients icoef is calculated according to formula (12) , as shown below. icoef= ( (1024-T [|yi|] )*yi*Δ +T [|yi|] *y′i*Δ )>>10 if |T|>|yi|>0 (12) , where Δ is the quantization step size for DQ shown in FIG. 7, |T| is the size of the lookup table, yi ∈ Z is the quantization index of DQ, and y′i is the modified quantization index of DQ, which can be calculated according to formula (13) , as shown below. y′i=yi+ (yi>0? 1: -1) (13) .
[0094] According to formula (12) , the actual shifting amount of a dequantization coefficient is depended on the values of T [|yi|] , yi, and Δ.
[0095] In one implementation, α=63 is used along with a lookup table of size 64 with entries as shown below in formula (14) . T= [0, 63, 31, 21, 15, 12, 10, 9, 7, 7, 6, 5, 5, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (14) .
[0096] If the absolute quantization index of DQ is 0 or above 63, formula (12) is not applied and the default dequantization of formula (6) is used.
[0097] As noted above, formula (12) is calculated using quantization index yi, based on an assumption of the rate of yi expressed in formula (10) . However, the quantization index is never actually coded to the bitstream. DQ consists of two individual scalar quantizers, where for each coefficient a quantizer is selected, and then the quantization level k for the selected quantizer is actually coded in the bitstream. For example, formula (10) predicts different rates for quantization indices 3 and 4. However, both of these values result in the same quantization level. Quantization index 3 is signalled by coding the Q0 quantization level 2 to the bitstream, while quantization index 4 is signalled by coding the Q1 quantization level 2 to the bitstream. While some difference in signalling cost is still expected because of differences in context modelling, the rate to signal these levels is much closer than what formula (10) models.
[0098] Thus, the present disclosure proposes that the actual coded quantization level from individual quantizers will be used to predict the rate instead of the quantization index of DQ. More specifically, the quantization level k is used to predict the rate R (k) for each of the quantizers, and the rate increases by the logarithm of the absolute value of the quantization level k according to formula (15) , as shown below. where k∈ Z is the quantization level from either Q0 or Q1, and a, b ∈ R are real numbers.
[0099] Using this assumption, the gradient of the rate may be calculated according to formula (16) , as shown below. where k≠0 (16) .
[0100] Since α=a / ln (2) is a constant scalar, the gradient of the rate is inversely proportional to the quantization level k of the individual quantizer in formula (15) . It yields that the dequantized coefficients or quantization centers are shifted with the shifting amount inversely proportional to the quantization level k.
[0101] An integer valued lookup table T, shown below in formula (17) , is used in the proposed method, where each element in lookup table T is the shifting amount for each possible unique absolute quantization level for the individual quantizer, including both Q0 and Q1.
[0102] In some implementations, the shifting of the dequantized coefficients is performed according to formula (18) , as shown below. where i indicates the quantizer Q0 or Q1, icoef is the dequantized coefficient, |T| is the size of the lookup table, is the dequantized value of the quantization level k from quantizer Qi, k′is the auxiliary quantization level that can be calculated as shown in formula (19) , and is the dequantized value of the quantization level k from quantizer Qi. k′=k+ (k>0? 1: -1) (19) .
[0103] In some implementations, α=31 is used according to formula (17) , resulting in a lookup table of size 32, as shown below in formula (20) . T=[0, 31, 15, 10, 7, 6, 5, 4, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (20) .
[0104] It may be observed that the value of α controls the length of the lookup table, e.g., |T|=α+1. If the absolute quantization level of Q0 or Q1 is 0 or above 31, formula (17) is not applied and the default dequantization of formula (6) is used. Formula (18) shows an example demonstrating that the same amount of shifting is made for the same level from both quantizers Q0 and Q1.
[0105] In some implementations, two separate lookup tables T0 and T1 may be used for the Q0 and Q1 quantizers, respectively. The two lookup tables may be the same size but contain different values. For the same quantization level value, the number of bits generated for a Q0 quantization level may be different from the number of bits generated for a Q1 quantization level because the contexts used to code Q0 quantization levels are different from that for Q1 quantization levels. Typically, Q1 may generate fewer bits. Therefore, in such case it may be advantageous for Q1 to shift more.
[0106] In some implementations, T0 may be determined according to formula (17) , and then all entries in T1 may shift a fixed offset relative to the quantization center shifts made in T0 except the value of the first entry (0) . In another example, only the second entry of T1 may be modified to shift more as shown below in formulas (21) and (22) . T0= [0, 31, 15, 10, 7, 6, 5, 4, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (21) , and T1= [0, x, 15, 10, 7, 6, 5, 4, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (22) , where x is an integer, e.g., 47 or 63.
[0107] Here, the dequantized coefficients for Q0 and Q1 may be respectively calculated according to formulas (23) and (24) , as shown below. and where icoef is the dequantized coefficient, |T0| and |T1| are the sizes of the lookup tables T0 and T1 for quantizers Q0 and Q1, respectively, and and are the dequantized values of the quantization level k from quantizers Q0 and Q1, respectively, k′is the auxiliary quantization index that can be calculated as shown above in formula (19) , and and are the dequantized values of the auxiliary quantization level k′from quantizers Q0 and Q1, respectively.
[0108] As used herein, icoef may be used to refer to a dequantized coefficient. The value of the dequantized coefficient is also equivalent to the position of the shifted quantization center for that quantization level. Alternatively, the dequantized coefficient may be referred to as a reconstructed coefficient, or a scaled coefficient. Furthermore, “coefficient” may be taken as an abbreviation for transform coefficient. Therefore, the dequantized coefficient icoef may also be referred to as a dequantized transform coefficient, reconstructed transform coefficient, or scaled transform coefficient.
[0109] Other values of α (e.g., α=63) that decide the table size according to formula (17) may be used in the above implementations, and corresponding changes can be made accordingly.
[0110] In some other implementations, two separate lookup tables T0 and T1 may be used for the Q0 and Q1 quantizers, respectively. Compared some of the above-described implementations, the two lookup tables may be determined with two different values of α0 and α1. Therefore, the lookup tables have different sizes and contain different values.
[0111] Since the same quantization level from quantizers Q0 and Q1 will generate a similar rate, the amount of dequantization value shifting for the same quantization level from quantizers Q0 and Q1 may be similar.
[0112] However, the dequantization value of Q1 is smaller than that of Q0 for the same quantization level k according to DQ. Therefore, the shifting of dequantization value for Q1 may be less than that for Q0 for the same quantization level according to (18) , (23) , and (24) . To compensate for this difference, it was proposed that Q1 and Q0 may use different values of α0 and α1 to decide the shifting amount. For chosen values of α0 and α1, the sizes of tables T0 and T1 and the values of all entries in the tables are determined according to formula (17) .
[0113] In one example, a lookup table T0 of size 32 and a lookup table T1 of size 48 as shown in formulas (25) and (26) are used for Q0 and Q1, respectively. T0
[0032] = [0, 31, 15, 10, 7, 6, 5, 4, 3, 3, 3, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (25) , and
[0114] The dequantization value for quantization level k from Q0 or Q1 is calculated according to formula (27) , as shown below. where icoef is the dequantized coefficient, i indicates the quantizer Q0 or Q1, |Ti| is the size of the lookup table associated with quantizer Qi, is the dequantized value of the quantization level k from quantizer Qi, k′ is the auxiliary quantization index that can be calculated as shown above in formula (19) , and is the dequantized value of the quantization level k from quantizer Qi.
[0115] The arrangements described above in relation to two separate lookup tables are one method of implementing two different quantization shifting models dependent on parameters α0and α1 respectively, to coefficients from Q0 and Q1. Equivalently, these two different quantization shifting models may be implemented by a single table appropriately configured. Further arrangements are described below as examples of these alternative implementations.
[0116] In further arrangements, two lookup tables T0 and T1 may be determined with two different values of α0 and α1, but then implemented as a single lookup table T resulting from interleaving the entries of T0 and T1. In one example, the lookup tables of formulas (25) and (26) are interleaved to form the combined table shown below in formula (28) .
[0117] In another example, the lookup tables of formulas (25) and (26) are interleaved to form the combined table shown below in formula (29) . In formula (29) , the first entry of the combined table is zero, the second entry of the combined table is the second entry of T1 table in formula (26) , the third entry of the combined table is the second entry of T0 table in formula (25) , the fourth entry of the combined table is the third entry of T1 table in formula (26) , the fifth entry of the combined table is the third entry of T0 table in formula (25) , etc. Because the length of T1 in formula (26) is longer than the length of T0 in formula (25) , some additional zeros are inserted interleavedly until the last non-zero element of T1 in formula (26) .
[0118] In some examples, the dequantized coefficient for quantization level k from Q0 or Q1 may be calculated according to formula (30) or (31) , shown below. and where i indicates the quantizer Q0 or Q1, icoef is the dequantized coefficient, |T| is the size of the lookup table, is the dequantized value of the quantization level k from quantizer Qi, k′ is the auxiliary quantization index that can be calculated as shown above in formula (19) , and is the dequantized value of the auxiliary quantization level k′ from quantizer Qi.
[0119] In further arrangements, two lookup tables T0 and T1 may be determined with two different values of α0 and α1, but then implemented as a combined lookup table T resulting from concatenating the entries of T0 and T1. In one example, the lookup tables of formulas (25) and (26) are concatenated to form the combined table shown below in formula (32) .
[0120] The dequantized coefficient for quantization level k from Q0 or Q1 may be calculated according to formula (33) , as follows. where i indicates the quantizer Q0 or Q1, icoef is the dequantized coefficient, |T| is size of the lookup table, is the dequantized value of the quantization level k from quantizer Qi, k′ is the auxiliary quantization index that can be calculated as shown above in formula (19) , and is the dequantized value of the auxiliary quantization level k′ from quantizer Qi.
[0121] Some techniques further propose that the method of quantization center shifting may also be applied to the quantization of coefficients in the transform skip mode. For instance, the method of quantization center shifting is applied when a single scalar quantization is applied to quantize such non-transformed coefficients. Supposing the quantization level is k and the quantization step size is Δ for quantizing a transform skip mode coefficient, the dequantized coefficient icoef may be calculated according to formula (34) , as shown below. icoef= ( (1024-T [|k|] ) *k*Δ +T [|k|] *k′*Δ ) >>10 if |T|>|k|>0 (34) , where icoef is the dequantized coefficient, |T| is the size of the lookup table, and k′is the auxiliary quantization level of non-transformed coefficient that can be calculated according to formula (35) , as shown below. k′=k+ (k>0? 1: -1) (35) .
[0122] In some implantations, α=63 is used, which gives the lookup table of size 64, as shown below in formula (36) . T= [0, 63, 31, 21, 15, 12, 10, 9, 7, 7, 6, 5, 5, 4, 4, 4, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] (36) .
[0123] If the absolute quantization level of non-transformed coefficient is 0 or above 63, formula (34) is not applied and the default dequantization of formula (6) is used.
[0124] Existing shifting quantization center techniques assume that the corresponding encoder quantizes the coefficients in a way that minimizes the rate-distortion cost of the quantization. That is, the rate-distortion cost is a sum of a rate cost and a distortion cost. The rate cost is calculated by the cost of signaling the corresponding quantization level bits multiplied by a lambda value selected according to a desired rate-distortion tradeoff. Typically, the distortion cost is calculated by the squared error of the difference between the original coefficient’s value and the reconstructed coefficient’s value, where the reconstructed value is assumed to be at the midpoint or center of its corresponding quantization levels. While some encoders may use rate-distortion optimized quantization as described above, there is no requirement for encoders to quantize in this way. Some encoders may choose to quantize in a simpler manner. For example, some encoders may quantize purely by distortion minimization where the reconstructed value is assumed to be at the midpoint of the quantization bin. Some encoders may quantize purely by distortion but with the reconstructed value assumed to be at a position other than the midpoint of the quantization bin. The shifting quantization center method may not work well with bitstreams produced by these encoders.
[0125] To overcome these and other challenges, the present disclosure provides technique (s) that allow the encoder to control whether shifting quantization center is used at the decoder. This control may be enabled by explicitly signaling syntax elements in the bitstream, which is described in several implementations below. This control may benefit encoders that are not suited to shifting quantization center, such as examples described above.
[0126] In some implementations, a flag, e.g., quant_shifting_enabled, is proposed to indicate if quantization-center shifting will be used. The proposed flag may be specified at different bitstream levels, e.g. SPS, PPS, picture header, or slice level. If the value of quant_shifting_enabled is equal to 1, the quantization-center shifting method will be used to shift the dequantization values according to one or more of formula (s) (18) - (36) . If the value of quant_shifting_enabled is equal to 0, the quantization-center shifting method will not be used to shift the dequantization values.
[0127] In some implementations, a flag, e.g., quant_shifting_enabled, is proposed to indicate if quantization center shifting will be used. If the value of quant_shifting_enabled is equal to 1, two more flags, e.g., quant_shifting_tsrc_enabled and quant_shifting_rrc_enabled, will be further signaled to indicate whether quantization-center shifting will be applied to the dequantization of transform skip coefficients and the dequantization of regular residual coding coefficients, respectively.
[0128] For instance, if the value of quant_shifting_rrc_enabled is equal to 1, the quantization-center shifting method will be used to shift the dequantization values of regular residual coding coefficients, including both scalar quantization and dependent quantization, according to one or more of formula (s) (18) - (33) . If the value of quant_shifting_rrc_enabled is equal to 0, the quantization-center shifting method will not be used to shift the dequantization values of regular residual coding coefficients, including both scalar quantization and dependent quantization.
[0129] If the value of quant_shifting_tsrc_enabled is equal to 1, the quantization-center shifting method will be used to shift the dequantization values of transform skip residual coding coefficients according to one or more of formula (s) (34) - (36) . If the value quant_shifting_tsrc_enabled is equal to 0, the quantization-center shifting method will not be used to shift the dequantization values of transform skip residual coding coefficients.
[0130] If quant_shifting_rrc_enabled and quant_shifting_tsrc_enabled are not signaled in the bitstream, they are inferred to be equal to 0.
[0131] FIG. 9 illustrates a flowchart of a first method 900 of decoding, according to some embodiments of the present disclosure. Method 900 may be performed by a system, e.g., decoding system 200, decoder 201, just to name a few. Method 900 may include operations 902-918, as described below. It is to be appreciated that some of the steps may be optional (as indicated with dashed lines) , and some of the steps may be performed simultaneously, or in a different order than shown in FIG. 9.
[0132] Referring to FIG. 9, at 902, the apparatus may decode a first syntax element. In some implementations, the first syntax element may indicate whether quantization-center shifting is enabled. For instance, the first syntax element may include a quant_shifting_enabled flag.
[0133] At 904, the apparatus may determine whether quantization-center shifting is enabled based on the first syntax element. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a first value, the apparatus may determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not enabled.
[0134] At 906, the apparatus may, in response to quantization-center shifting being enabled, decode a second syntax element. In some implementations, the second syntax element may indicate whether quantization-center shifting is applied to RRC dequantization coefficients. For instance, the second syntax element may include quant_shifting_rrc_enabled.
[0135] At 908, the apparatus may, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to an RRC dequantization coefficient based on the second syntax element. In some implementations, to determine whether the quantization-center shifting is applied to the RRC dequantization coefficient based on the second syntax element may include, in response to the second syntax element having a first value, the apparatus may determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC dequantization coefficient based on the second syntax element may include, in response to the second syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0136] At 910, the apparatus may, in response to quantization-center shifting being enabled, decode a third syntax element. In some implementations, the third syntax element may indicate whether quantization-center shifting is applied to TSRC dequantization coefficients. For instance, the third syntax element may include quant_shifting_tsrc_enabled.
[0137] At 912, the apparatus may, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a TSRC dequantization coefficient based on the third syntax element. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC dequantization coefficient based on the third syntax element may include, in response to the third syntax element having a first value, the apparatus may determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC dequantization coefficient based on the third syntax element may include, in response to the third syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not applied to the TSRC coefficient.
[0138] At 914, the apparatus may, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. In some implementations, the dequantized coefficient may be determined based on the quantization-center shifting using one or more of formula (s) (18) - (36) .
[0139] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on the quantization-center shifting.
[0140] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0141] At 916, the apparatus may, in response to quantization-center shifting not being enabled, or in response to the quantization-center shifting being enabled and a second or third syntax element not being signaled, determine the dequantized coefficient based on a default dequantization. In some implementations, the dequantized coefficient may be determine based on the default dequantization based on formula (6) .
[0142] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on a default dequantization. In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on a default dequantization. In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on a default dequantization. In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on a default dequantization.
[0143] At 918, the apparatus may decode a bitstream based on the dequantized coefficient.
[0144] FIG. 10 illustrates a flowchart of a second method 1000 of decoding, according to some embodiments of the present disclosure. Method 1000 may be performed by a system, e.g., decoding system 200, decoder 201, just to name a few. Method 1000 may include operations 1002-1012, as described below. It is to be appreciated that some of the steps may be optional (as indicated with dashed lines) , and some of the steps may be performed simultaneously, or in a different order than shown in FIG. 10.
[0145] Referring to FIG. 10, at 1002, the apparatus may encode a first syntax element. In some implementations, the first syntax element may indicate whether quantization-center shifting is enabled. For instance, the first syntax element may include a quant_shifting_enabled flag.
[0146] At 1004, the apparatus may determine whether quantization-center shifting is enabled based on the first syntax element. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a first value, the apparatus may determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not enabled.
[0147] At 1006, the apparatus may, in response to quantization-center shifting being enabled, encode a second syntax element. In some implementations, the second syntax element may indicate whether quantization-center shifting is applied to RRC dequantization coefficients. For instance, the second syntax element may include quant_shifting_rrc_enabled.
[0148] At 1008, the apparatus may, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to an RRC dequantization coefficient based on the second syntax element. In some implementations, to determine whether the quantization-center shifting is applied to the RRC dequantization coefficient based on the second syntax element may include, in response to the second syntax element having a first value, the apparatus may determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC dequantization coefficient based on the second syntax element may include, in response to the second syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not applied to the RRC coefficient.
[0149] At 1010, the apparatus may, in response to quantization-center shifting being enabled, encode a third syntax element. In some implementations, the third syntax element may indicate whether quantization-center shifting is applied to TSRC dequantization coefficients. For instance, the third syntax element may include quant_shifting_tsrc_enabled.
[0150] At 1012, the apparatus may, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a TSRC dequantization coefficient based on the third syntax element. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC dequantization coefficient based on the third syntax element may include, in response to the third syntax element having a first value, the apparatus may determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC dequantization coefficient based on the third syntax element may include, in response to the third syntax element having a second value different than the first value, the apparatus may determine the quantization-center shifting is not applied to the TSRC coefficient.
[0151] At 1014, the apparatus may, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. In some implementations, the dequantized coefficient may be determined based on the quantization-center shifting using one or more of formula (s) (18) - (36) .
[0152] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on the quantization-center shifting.
[0153] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0154] At 1016, the apparatus may, in response to quantization-center shifting not being enabled, or in response to the quantization-center shifting being enabled and a second or third syntax element not being signaled, determine the dequantized coefficient based on a default dequantization. In some implementations, the dequantized coefficient may be determine based on the default dequantization based on formula (6) .
[0155] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on a default dequantization. In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on a default dequantization. In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized RRC coefficient based on a default dequantization. In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the apparatus may determine a dequantized TSRC coefficient based on a default dequantization.
[0156] At 1018, the apparatus may encode a bitstream based on the dequantized coefficient.
[0157] In various aspects of the present disclosure, the functions described herein may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored as instructions on a non-transitory computer-readable medium. Computer-readable media includes computer storage media. Storage media may be any available media that can be accessed by a processor, such as processor 102 in FIGs. 1 and 2. By way of example, and not limitation, such computer-readable media can include RAM, ROM, EEPROM, CD-ROM or other optical disk storage, HDD, such as magnetic disk storage or other magnetic storage devices, Flash drive, SSD, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a processing system, such as a mobile device or a computer. Disk and disc, as used herein, include CD, laser disc, optical disc, digital video disc (DVD) , and floppy disk where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
[0158] According to one aspect of the present disclosure, a method of decoding by a decoder is provided. The method may include decoding, by a processor, a first syntax element. The method may include determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element. The method may include, in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting. The method may include decoding, by the processor, a bitstream based on the dequantized coefficient.
[0159] In some implementations, the method may include, in response to quantization-center shifting not being enabled, determining, by the processor, the dequantized coefficient based on a default dequantization.
[0160] In some implementations, the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a first value, determining, by the processor, the quantization-center shifting is enabled. In some implementations, the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not enabled.
[0161] In some implementations, the method may include, in response to quantization-center shifting being enabled, decoding, by the processor, a second syntax element. In some implementations, the method may include, in response to quantization-center shifting being enabled, determining, by the processor, whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0162] In some implementations, the method may include, in response to quantization-center shifting being enabled, decoding, by the processor, a third syntax element. In some implementations, the method may include, in response to quantization-center shifting being enabled, determining, by the processor, whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0163] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized RRC coefficient based on the quantization-center shifting.
[0164] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized RRC coefficient based on a default dequantization.
[0165] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized TSRC coefficient based on the quantization-center shifting.
[0166] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized TSRC coefficient based on a default dequantization.
[0167] In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element may include, in response to the second syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element may include, in response to the second syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0168] In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element may include, in response to the third syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element may include, in response to the third syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0169] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0170] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0171] According to another aspect of the present disclosure, a decoder is provided. The decoder may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to decode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to decode a bitstream based on the dequantized coefficient.
[0172] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.
[0173] In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the first syntax element having a first value, determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.
[0174] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, decode a second syntax element. In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0175] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, decode a third syntax element. In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0176] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized RRC coefficient based on the quantization-center shifting.
[0177] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized RRC coefficient based on a default dequantization.
[0178] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0179] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized TSRC coefficient based on a default dequantization.
[0180] In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0181] In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0182] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0183] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0184] According to a further aspect of the present disclosure, an apparatus for decoding is provided. The apparatus for decoding may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to decode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to decode a bitstream based on the dequantized coefficient.
[0185] According to yet another aspect of the present disclosure, a non-transitory computer-readable medium storing instructions for a decoder is provided. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to decode a first syntax element. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine whether quantization-center shifting is enabled based on the first syntax element. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to decode a bitstream based on the dequantized coefficient.
[0186] In some implementations, the instructions, which when executed by the processor of the decoder, may further cause the processor of the decoder to, in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.
[0187] In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the first syntax element having a first value, determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.
[0188] In some implementations, the instructions, which when executed by the processor of the decoder, may further cause the processor of the decoder to, in response to quantization-center shifting being enabled, decode a second syntax element. In some implementations, the instructions, which when executed by the processor of the decoder, may further cause the processor of the decoder to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0189] In some implementations, the instructions, which when executed by the processor of the decoder, may further cause the processor of the decoder to, in response to quantization-center shifting being enabled, decode a third syntax element. In some implementations, the instructions, which when executed by the processor of the decoder, may further cause the processor of the decoder to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0190] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized RRC coefficient based on the quantization-center shifting.
[0191] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized RRC coefficient based on a default dequantization.
[0192] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0193] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized TSRC coefficient based on a default dequantization.
[0194] In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0195] In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to, in response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0196] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0197] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, may cause the processor of the decoder to determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0198] According to one aspect of the present disclosure, a method of encoding by an encoder is provided. The method may include encoding, by a processor, a first syntax element. The method may include determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element. The method may include, in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting. The method may include encoding, by the processor, a bitstream based on the dequantized coefficient.
[0199] In some implementations, the method may include, in response to quantization-center shifting not being enabled, determining, by the processor, the dequantized coefficient based on a default dequantization.
[0200] In some implementations, the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a first value, determining, by the processor, the quantization-center shifting is enabled. In some implementations, the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element may include, in response to the first syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not enabled.
[0201] In some implementations, the method may include, in response to quantization-center shifting being enabled, encoding, by the processor, a second syntax element. In some implementations, the method may include, in response to quantization-center shifting being enabled, determining, by the processor, whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0202] In some implementations, the method may include, in response to quantization-center shifting being enabled, encoding, by the processor, a third syntax element. In some implementations, the method may include, in response to quantization-center shifting being enabled, determining, by the processor, whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0203] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized RRC coefficient based on the quantization-center shifting.
[0204] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized RRC coefficient based on a default dequantization.
[0205] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized TSRC coefficient based on the quantization-center shifting.
[0206] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized TSRC coefficient based on a default dequantization.
[0207] In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element may include, in response to the second syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element may include, in response to the second syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0208] In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element may include, in response to the third syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element may include, in response to the third syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0209] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0210] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting may include determining, by the processor, a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0211] According to another aspect of the present disclosure, an encoder is provided. The encoder may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to encode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to encode a bitstream based on the dequantized coefficient.
[0212] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.
[0213] In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the first syntax element having a first value, determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.
[0214] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, encode a second syntax element. In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0215] In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, encode a third syntax element. In some implementations, the memory storing instructions, which when executed by the processor, may further cause the processor to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0216] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized RRC coefficient based on the quantization-center shifting.
[0217] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized RRC coefficient based on a default dequantization.
[0218] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0219] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized TSRC coefficient based on a default dequantization.
[0220] In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0221] In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, may cause the processor to, in response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0222] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0223] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, may cause the processor to determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0224] According to a further aspect of the present disclosure, an apparatus for encoding is provided. The apparatus for encoding may include a processor and memory storing instructions. The memory storing instructions, which when executed by the processor, may cause the processor to encode a first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to determine whether quantization-center shifting is enabled based on the first syntax element. The memory storing instructions, which when executed by the processor, may cause the processor to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The memory storing instructions, which when executed by the processor, may cause the processor to encode a bitstream based on the dequantized coefficient.
[0225] According to yet another aspect of the present disclosure, a non-transitory computer-readable medium storing instructions for an encoder is provided. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to encode a first syntax element. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine whether quantization-center shifting is enabled based on the first syntax element. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting. The instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to encode a bitstream based on the dequantized coefficient.
[0226] In some implementations, the instructions, which when executed by the processor of the encoder, may further cause the processor of the encoder to, in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.
[0227] In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the first syntax element having a first value, determine the quantization-center shifting is enabled. In some implementations, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.
[0228] In some implementations, the instructions, which when executed by the processor of the encoder, may further cause the processor of the encoder to, in response to quantization-center shifting being enabled, encode a second syntax element. In some implementations, the instructions, which when executed by the processor of the encoder, may further cause the processor of the encoder to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.
[0229] In some implementations, the instructions, which when executed by the processor of the encoder, may further cause the processor of the encoder to, in response to quantization-center shifting being enabled, encode a third syntax element. In some implementations, the instructions, which when executed by the processor of the encoder, may further cause the processor of the encoder to, in response to quantization-center shifting being enabled, determine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.
[0230] In some implementations, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized RRC coefficient based on the quantization-center shifting.
[0231] In some implementations, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized RRC coefficient based on a default dequantization.
[0232] In some implementations, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized TSRC coefficient based on the quantization-center shifting.
[0233] In some implementations, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized TSRC coefficient based on a default dequantization.
[0234] In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.
[0235] In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient. In some implementations, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to, in response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.
[0236] In some implementations, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.
[0237] In some implementations, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, may cause the processor of the encoder to determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.
[0238] According to yet another aspect of the present disclosure, a non-transitory computer-readable medium storing a bitstream generated based on one or more of the operations described herein.
[0239] According to still a further aspect of the present disclosure, a method of transmitting a bitstream is provided. The method may include generating the bitstream based on one or more of the operations described herein. The method may include transmitting the bitstream.
[0240] The foregoing description of the embodiments will so reveal the general nature of the present disclosure that others can, by applying knowledge within the skill of the art, readily modify and / or adapt for various applications such embodiments, without undue experimentation, without departing from the general concept of the present disclosure. Therefore, such adaptations and modifications are intended to be within the meaning and range of equivalents of the disclosed embodiments, based on the teaching and guidance presented herein. It is to be understood that the phraseology or terminology herein is for the purpose of description and not of limitation, such that the terminology or phraseology of the present specification is to be interpreted by the skilled artisan in light of the teachings and guidance.
[0241] Embodiments of the present disclosure have been described above with the aid of functional building blocks illustrating the implementation of specified functions and relationships thereof. The boundaries of these functional building blocks have been arbitrarily defined herein for the convenience of the description. Alternate boundaries can be defined so long as the specified functions and relationships thereof are appropriately performed.
[0242] The Summary and Abstract sections may set forth one or more but not all exemplary embodiments of the present disclosure as contemplated by the inventor (s) , and thus, are not intended to limit the present disclosure and the appended claims in any way.
[0243] Various functional blocks, modules, and steps are disclosed above. The arrangements provided are illustrative and without limitation. Accordingly, the functional blocks, modules, and steps may be reordered or combined in different ways than in the examples provided above. Likewise, some embodiments include only a subset of the functional blocks, modules, and steps, and any such subset is permitted.
[0244] The breadth and scope of the present disclosure should not be limited by any of the above-described exemplary embodiments, but should be defined only in accordance with the following claims and their equivalents.
Claims
1.A method of decoding by a decoder, comprising:decoding, by a processor, a first syntax element;determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting; anddecoding, by the processor, a bitstream based on the dequantized coefficient.2.The method of claim 1, further comprising:in response to quantization-center shifting not being enabled, determining, by the processor, the dequantized coefficient based on a default dequantization.3.The method of claim 1, wherein the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element comprises:in response to the first syntax element having a first value, determining, by the processor, the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not enabled.4.The method of claim 1, further comprising:in response to quantization-center shifting being enabled,decoding, by the processor, a second syntax element; anddetermining, by the processor, whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.5.The method of claim 4, further comprising:in response to quantization-center shifting being enabled,decoding, by the processor, a third syntax element; anddetermining, by the processor, whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.6.The method of claim 4, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized RRC coefficient based on the quantization-center shifting.7.The method of claim 4, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized RRC coefficient based on a default dequantization.8.The method of claim 5, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized TSRC coefficient based on the quantization-center shifting.9.The method of claim 5, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized TSRC coefficient based on a default dequantization.10.The method of claim 4, wherein the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element comprises:in response to the second syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the RRC dequantization coefficient.11.The method of claim 5, wherein the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element comprises:in response to the third syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the TSRC dequantization coefficient.12.The method of claim 1, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized regular residual coding (RRC) coefficient based on a default dequantization.13.The method of claim 1, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.14.A decoder, comprising:a processor; andmemory storing instructions, which when executed by the processor, cause the processor to:decode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; anddecode a bitstream based on the dequantized coefficient.15.The decoder of claim 14, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.16.The decoder of claim 14, wherein, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the first syntax element having a first value, determine the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.17.The decoder of claim 14, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting being enabled,decode a second syntax element; anddetermine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.18.The decoder of claim 17, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting being enabled,decode a third syntax element; anddetermine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.19.The decoder of claim 17, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized RRC coefficient based on the quantization-center shifting.20.The decoder of claim 17, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized RRC coefficient based on a default dequantization.21.The decoder of claim 18, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized TSRC coefficient based on the quantization-center shifting.22.The decoder of claim 18, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized TSRC coefficient based on a default dequantization.23.The decoder of claim 17, wherein, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.24.The decoder of claim 18, wherein, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.25.The decoder of claim 14, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.26.The decoder of claim 14, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.27.An apparatus for decoding, comprising:a processor; andmemory storing instructions, which when executed by the processor, cause the processor to:decode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; anddecode a bitstream based on the dequantized coefficient.28.A non-transitory computer-readable medium storing instructions, which when executed by a processor of a decoder, cause the processor of the decoder to:decode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; anddecode a bitstream based on the dequantized coefficient.29.The non-transitory computer-readable medium of claim 28, wherein the instructions, which when executed by the processor of the decoder, further cause the processor of the decoder to:in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.30.The non-transitory computer-readable medium of claim 28, wherein, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:in response to the first syntax element having a first value, determine the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.31.The non-transitory computer-readable medium of claim 28, wherein the instructions, which when executed by the processor of the decoder, further cause the processor of the decoder to:in response to quantization-center shifting being enabled,decode a second syntax element; anddetermine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.32.The non-transitory computer-readable medium of claim 31, wherein the instructions, which when executed by the processor of the decoder, further cause the processor of the decoder to:in response to quantization-center shifting being enabled,decode a third syntax element; anddetermine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.33.The non-transitory computer-readable medium of claim 31, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized RRC coefficient based on the quantization-center shifting.34.The non-transitory computer-readable medium of claim 31, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized RRC coefficient based on a default dequantization.35.The non-transitory computer-readable medium of claim 32, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized TSRC coefficient based on the quantization-center shifting.36.The non-transitory computer-readable medium of claim 32, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized TSRC coefficient based on a default dequantization.37.The non-transitory computer-readable medium of claim 31, wherein, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.38.The non-transitory computer-readable medium of claim 32, wherein, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.39.The non-transitory computer-readable medium of claim 28, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.40.The non-transitory computer-readable medium of claim 28, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the decoder, cause the processor of the decoder to:determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.41.A method of encoding by an encoder, comprising:encoding, by a processor, a first syntax element;determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determining, by the processor, a dequantized coefficient based on the quantization-center shifting; andencoding, by the processor, a bitstream based on the dequantized coefficient.42.The method of claim 41, further comprising:in response to quantization-center shifting not being enabled, determining, by the processor, the dequantized coefficient based on a default dequantization.43.The method of claim 41, wherein the determining, by the processor, whether quantization-center shifting is enabled based on the first syntax element comprises:in response to the first syntax element having a first value, determining, by the processor, the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not enabled.44.The method of claim 41, further comprising:in response to quantization-center shifting being enabled,encoding, by the processor, a second syntax element; anddetermining, by the processor, whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.45.The method of claim 44, further comprising:in response to quantization-center shifting being enabled,encoding, by the processor, a third syntax element; anddetermining, by the processor, whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.46.The method of claim 44, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized RRC coefficient based on the quantization-center shifting.47.The method of claim 44, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized RRC coefficient based on a default dequantization.48.The method of claim 45, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized TSRC coefficient based on the quantization-center shifting.49.The method of claim 45, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized TSRC coefficient based on a default dequantization.50.The method of claim 44, wherein the determining, by the processor, whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element comprises:in response to the second syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the RRC dequantization coefficient.51.The method of claim 45, wherein the determining, by the processor, whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element comprises:in response to the third syntax element having a first value, determining, by the processor, the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determining, by the processor, the quantization-center shifting is not applied to the TSRC dequantization coefficient.52.The method of claim 41, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized regular residual coding (RRC) coefficient based on a default dequantization.53.The method of claim 41, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, the determining, by the processor, the dequantized coefficient based on the quantization-center shifting comprises:determining, by the processor, a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.54.An encoder, comprising:a processor; andmemory storing instructions, which when executed by the processor, cause the processor to:encode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; andencode a bitstream based on the dequantized coefficient.55.The encoder of claim 54, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.56.The encoder of claim 54, wherein, to determine whether quantization-center shifting is enabled based on the first syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the first syntax element having a first value, determine the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.57.The encoder of claim 54, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting being enabled,encode a second syntax element; anddetermine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.58.The encoder of claim 57, wherein the memory storing instructions, which when executed by the processor, further cause the processor to:in response to quantization-center shifting being enabled,encode a third syntax element; anddetermine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.59.The encoder of claim 57, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized RRC coefficient based on the quantization-center shifting.60.The encoder of claim 57, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized RRC coefficient based on a default dequantization.61.The encoder of claim 58, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized TSRC coefficient based on the quantization-center shifting.62.The encoder of claim 58, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized TSRC coefficient based on a default dequantization.63.The encoder of claim 57, wherein, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.64.The encoder of claim 58, wherein, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the memory storing instructions, which when executed by the processor, cause the processor to:in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.65.The encoder of claim 54, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.66.The encoder of claim 54, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the memory storing instructions, which when executed by the processor, cause the processor to:determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.67.An apparatus for encoding, comprising:a processor; andmemory storing instructions, which when executed by the processor, cause the processor to:encode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; andencode a bitstream based on the dequantized coefficient.68.A non-transitory computer-readable medium storing instructions, which when executed by a processor of an encoder, cause the processor of the encoder to:encode a first syntax element;determine whether quantization-center shifting is enabled based on the first syntax element;in response to quantization-center shifting being enabled, determine a dequantized coefficient based on the quantization-center shifting; andencode a bitstream based on the dequantized coefficient.69.The non-transitory computer-readable medium of claim 68, wherein the instructions, which when executed by the processor of the encoder, further cause the processor of the encoder to:in response to quantization-center shifting not being enabled, determine the dequantized coefficient based on a default dequantization.70.The non-transitory computer-readable medium of claim 68, wherein, to determine whether quantization-center shifting is enabled based on the first syntax element, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:in response to the first syntax element having a first value, determine the quantization-center shifting is enabled; orin response to the first syntax element having a second value different than the first value, determine the quantization-center shifting is not enabled.71.The non-transitory computer-readable medium of claim 68, wherein the instructions, which when executed by the processor of the encoder, further cause the processor of the encoder to:in response to quantization-center shifting being enabled,encode a second syntax element; anddetermine whether the quantization-center shifting is applied to a regular residual coding (RRC) dequantization coefficient based on the second syntax element.72.The non-transitory computer-readable medium of claim 71, wherein the instructions, which when executed by the processor of the encoder, further cause the processor of the encoder to:in response to quantization-center shifting being enabled,encode a third syntax element; anddetermine whether the quantization-center shifting is applied to a transform skip residual coding (TSRC) dequantization coefficient based on the third syntax element.73.The non-transitory computer-readable medium of claim 71, wherein, in response to the quantization-center shifting being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized RRC coefficient based on the quantization-center shifting.74.The non-transitory computer-readable medium of claim 71, wherein, in response to the quantization-center shifting not being applied to the RRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized RRC coefficient based on a default dequantization.75.The non-transitory computer-readable medium of claim 72, wherein, in response to the quantization-center shifting being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized TSRC coefficient based on the quantization-center shifting.76.The non-transitory computer-readable medium of claim 72, wherein, in response to the quantization-center shifting not being applied to the TSRC coefficient, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized TSRC coefficient based on a default dequantization.77.The non-transitory computer-readable medium of claim 71, wherein, to determine whether the quantization-center shifting is applied to the RRC coefficient based on the second syntax element, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:in response to the second syntax element having a first value, determine the quantization-center shifting is applied to the RRC dequantization coefficient; orin response to the second syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the RRC dequantization coefficient.78.The non-transitory computer-readable medium of claim 72, wherein, to determine whether the quantization-center shifting is applied to the TSRC coefficient based on the third syntax element, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:in response to the third syntax element having a first value, determine the quantization-center shifting is applied to the TSRC dequantization coefficient; orin response to the third syntax element having a second value different than the first value, determine the quantization-center shifting is not applied to the TSRC dequantization coefficient.79.The non-transitory computer-readable medium of claim 68, wherein, in response to quantization-center shifting being enabled and in response to a second syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized regular residual coding (RRC) coefficient based on a default dequantization.80.The non-transitory computer-readable medium of claim 68, wherein, in response to quantization-center shifting being enabled and in response to a third syntax element not being signaled in the bitstream, to determine the dequantized coefficient based on the quantization-center shifting, the instructions, which when executed by the processor of the encoder, cause the processor of the encoder to:determine a dequantized transform skip residual coding (TSRC) coefficient based on a default dequantization.81.A non-transitory computer-readable medium storing a bitstream, the bitstream being generated based on one or more of claims 41-53.82.A method of transmitting a bitstream, comprising:generating the bitstream based on one or more of claims 41-53; andtransmitting the bitstream.
Citation Information
Patent Citations
Reduced complexity transforms for high bit-depth video coding
US20220368911A1
Reduced complexity transforms for high bitdepth video coding
US20230010528A1
Lossless coding modes for video coding
WO2021202556A1