The present principles relate generally to video encoding and decoding and, more particularly, to methods and apparatus for unified significance map coding.
To exploit the non-stationary characteristics of input video content, a video encoder relies on an entropy coding to map an input video signal to a bitstream of variable length-coded syntax elements. Frequently-occurring symbols are represented with short codewords while less common symbols are represented with long codewords.
The International Organization for Standardization/International Electrotechnical Commission (ISO/IEC) Moving Picture Experts Group-4 (MPEG-4) Part 10 Advanced Video Coding (AVC) Standard/International Telecommunication Union, Telecommunication Sector (ITU-T) H.264 Recommendation (hereinafter the “MPEG-4 AVC Standard”) supports two entropy coding methods. In particular, symbols are coded using either variable-length codes (VLCs) or context-adaptive arithmetic coding (CABAC) depending on the entropy encoding mode. Using CABAC, the process of coding a data symbol includes the following three elementary steps:
In the MPEG-4 AVC Standard, context models and binarization schemes for each syntax element are defined in the standard. The context model of each bin is identified by a context index γ and each probability model related to a given context index γ is determined by a pair of two values, namely a probability state index σγ and the (binary) value
Suppose a pre-defined set of past symbols, called a context template T, and a related set C={0, . . . , C−1} of contexts is given, where the contexts are specified by a modeling function F: T→C operating on the template T. For each symbol x to be coded, a conditional probability p(x|F(z)) is estimated by switching between different probability models according to the already coded neighboring symbols z∈T. After encoding x using the estimated conditional probability p (x|F(z)), the probability model is updated with the value of the encoded symbol x. Thus, p(x|F(z)) is estimated on the fly by tracking the actual source statistics. To reduce the model cost and avoid inaccurate estimates of p(x|F(z)) due to a large number of C, the MPEG-4 AVC Standard puts two restrictions on the choice of the context models. First, very limited context templates T consisting of a few neighbors of the current symbol to encode are employed. Second, context modeling is restricted to the selected bins of the binarized symbols.
At the beginning of each coded slice, the context models are initialized depending on the initial value of the Quantization Parameter (QP) since the quantization parameter has a significant effect on the probability of occurrence of the various data symbols.
For the CABAC coding of the residual data in accordance with the MPEG-4 AVC Standard, the syntax elements and their related coding scheme are characterized by the following distinct features:
Turning to
When encoding the significance map of the transform coefficients, the choice of context models of significant_coeff_flag and last_significant_coeff_flag depend on the scanning position. In the MPEG-4 AVC Standard, for 4×4 or smaller transform sizes, a context model is assigned to significant_coeff_flag and last_significant_coeff_flag for each position, respectively. For the 8×8 transform size and larger, a few transform coefficient positions share one context model in order to reduce the number of context models.
The video coding experts group (VCEG) “key technical area” (KTA) software has provided a common platform to integrate the new advances in video coding after the MPEG-4 AVC Standard is finalized. Proposals to use extended block sizes and large transforms were adopted into KTA. In the current KTA software, motion partitions larger than 16×16 pixels are implemented. In particular, macroblocks of sizes 64×64, 64×32, 32×64, 32×32, 32×16, 16×32 are used in addition to the existing MPEG-4 AVC Standard partitioning sizes. Larger block transforms are also used to better capture the smoother content in the high-definition video. Such larger block transforms include those having sizes of 16×16, 16×8, and 8×16. To keep the number of context models low, 8×16, 16×8, and 16×16 transforms all use 15 or fewer context models for significant_coeff_flag or last_significant_coeff_flag. Turning to
Turning to
In a particular prior art approach, a new context modeling approach was proposed for 8×8 transform sizes and larger. To model the contexts for the syntax element significant_coeff_flag for 8×8 blocks, the transform block is decomposed into 16 sub-blocks of 2×2 samples, and each of these sub-blocks is associated with a separate context. The context model selection for larger transform blocks (e.g., for blocks greater than 8×8) is based on the number of already coded significant transform coefficients in a predefined neighborhood (inside the transform block). For coding of the last_significant_coeff_flag, a context modeling has been designed that depends on a distance measure of the current scan position to the top-left corner of the given transform block. To be more specific, the context model for coding the last_significant_coeff_flag is chosen based on the scan diagonal on which the current scanning position lies (i.e., it is chosen based on x+y, where x and y represent the horizontal and vertical location of a scanning position inside the transform block, respectively). To avoid over-fitting, the distance measure x+y is mapped on a reduced set of context models in a certain way (e.g., by quantizing x+y).
In the particular prior art method, the pattern for context sharing of an 8×8 transform is approximately an upsampled version of that of a 4×4 transform. However, this may also disadvantageously fail to capture the difference in coefficient distributions of different transforms.
In the existing video coding standards, when coding the significance map of the transform coefficients of 8×8 transforms or larger, one context is shared among several transform coefficients to reduce the number of contexts. Separate methods are used for various transforms on how to share the contexts. Such designs cannot be easily extended to future standards where more transforms may be used.
These and other drawbacks and disadvantages of the prior art are addressed by the present principles, which are directed to methods and apparatus for unified significance map coding.
According to an aspect of the present principles, there is provided an apparatus. The apparatus includes a video encoder for encoding transform coefficients for at least a portion of a picture. The transform coefficients are obtained using a plurality of transforms. One or more context sharing maps are generated for the transform coefficients based on a unified rule. The one or more context sharing maps are for providing at least one context that is shared among at least some of the transform coefficients obtained from at least two different ones of the plurality of transforms.
According to another aspect of the present principles, there is provided a method in a video encoder. The method includes encoding transform coefficients for at least a portion of a picture. The transform coefficients are obtained using a plurality of transforms. One or more context sharing maps are generated for the transform coefficients based on a unified rule. The one or more context sharing maps are for providing at least one context that is shared among at least some of the transform coefficients obtained from at least two different ones of the plurality of transforms.
According to yet another aspect of the present principles, there is provided an apparatus. The apparatus includes a video decoder for decoding transform coefficients for at least a portion of a picture. The transform coefficients are obtained using a plurality of transforms. One or more context sharing maps are generated for the transform coefficients based on a unified rule. The one or more context sharing maps are for providing at least one context that is shared among at least some of the transform coefficients obtained from at least two different ones of the plurality of transforms.
According to still another aspect of the present principles, there is provided a method in a video decoder. The method includes decoding transform coefficients for at least a portion of a picture. The transform coefficients are obtained using a plurality of transforms. One or more context sharing maps are generated for the transform coefficients based on a unified rule. The one or more context sharing maps are for providing at least one context that is shared among at least some of the transform coefficients obtained from at least two different ones of the plurality of transforms.
These and other aspects, features and advantages of the present principles will become apparent from the following detailed description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
The present principles may be better understood in accordance with the following exemplary figures, in which:
The present principles are directed to methods and apparatus for unified significance map coding.
The present description illustrates the present principles. It will thus be appreciated that those skilled in the art will be able to devise various arrangements that, although not explicitly described or shown herein, embody the present principles and are included within its spirit and scope.
All examples and conditional language recited herein are intended for pedagogical purposes to aid the reader in understanding the present principles and the concepts contributed by the inventor(s) to furthering the art, and are to be construed as being without limitation to such specifically recited examples and conditions.
Moreover, all statements herein reciting principles, aspects, and embodiments of the present principles, as well as specific examples thereof, are intended to encompass both structural and functional equivalents thereof. Additionally, it is intended that such equivalents include both currently known equivalents as well as equivalents developed in the future, i.e., any elements developed that perform the same function, regardless of structure.
Thus, for example, it will be appreciated by those skilled in the art that the block diagrams presented herein represent conceptual views of illustrative circuitry embodying the present principles. Similarly, it will be appreciated that any flow charts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes which may be substantially represented in computer readable media and so executed by a computer or processor, whether or not such computer or processor is explicitly shown.
The functions of the various elements shown in the figures may be provided through the use of dedicated hardware as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions may be provided by a single dedicated processor, by a single shared processor, or by a plurality of individual processors, some of which may be shared. Moreover, explicit use of the term “processor” or “controller” should not be construed to refer exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (“DSP”) hardware, read-only memory (“ROM”) for storing software, random access memory (“RAM”), and non-volatile storage.
Other hardware, conventional and/or custom, may also be included. Similarly, any switches shown in the figures are conceptual only. Their function may be carried out through the operation of program logic, through dedicated logic, through the interaction of program control and dedicated logic, or even manually, the particular technique being selectable by the implementer as more specifically understood from the context.
In the claims hereof, any element expressed as a means for performing a specified function is intended to encompass any way of performing that function including, for example, a) a combination of circuit elements that performs that function or b) software in any form, including, therefore, firmware, microcode or the like, combined with appropriate circuitry for executing that software to perform the function. The present principles as defined by such claims reside in the fact that the functionalities provided by the various recited means are combined and brought together in the manner which the claims call for. It is thus regarded that any means that can provide those functionalities are equivalent to those shown herein.
Reference in the specification to “one embodiment” or “an embodiment” of the present principles, as well as other variations thereof, means that a particular feature, structure, characteristic, and so forth described in connection with the embodiment is included in at least one embodiment of the present principles. Thus, the appearances of the phrase “in one embodiment” or “in an embodiment”, as well any other variations, appearing in various places throughout the specification are not necessarily all referring to the same embodiment.
It is to be appreciated that the use of any of the following “/”, “and/or”, and “at least one of”, for example, in the cases of “A/B”, “A and/or B” and “at least one of A and B”, is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of both options (A and B). As a further example, in the cases of “A, B, and/or C” and “at least one of A, B, and C”, such phrasing is intended to encompass the selection of the first listed option (A) only, or the selection of the second listed option (B) only, or the selection of the third listed option (C) only, or the selection of the first and the second listed options (A and B) only, or the selection of the first and third listed options (A and C) only, or the selection of the second and third listed options (B and C) only, or the selection of all three options (A and B and C). This may be extended, as readily apparent by one of ordinary skill in this and related arts, for as many items listed.
Also, as used herein, the words “picture” and “image” are used interchangeably and refer to a still image or a picture from a video sequence. As is known, a picture may be a frame or a field.
Additionally, as used herein, the phrases “significant coefficients” and “significant transform coefficients” refer to transform coefficients having a nonzero value.
Moreover, as used herein, the phrase “level information” refers to the value of a transform coefficient.
For purposes of illustration and description, examples are described herein in the context of improvements over the video coding experts group (VCEG) key technical area (KTA) software, using the KTA software as the baseline for our description and explaining the improvements and extensions beyond the KTA software. However, it is to be appreciated that the present principles are not limited solely to the KTA software and/or extensions thereof. Given the teachings of the present principles provided herein, one of ordinary skill in this and related arts would readily understand that the present principles are equally applicable and would provide at least similar benefits when applied to extensions of other standards, or when applied and/or incorporated within standards not yet developed. It is to be further appreciated that the present principles also apply to video encoders and video decoders that do not conform to standards, but rather confirm to proprietary definitions.
Turning to
A first output of an encoder controller 405 is connected in signal communication with a second input of the frame ordering buffer 410, a second input of the inverse transformer and inverse quantizer 450, an input of a picture-type decision module 415, a first input of a macroblock-type (MB-type) decision module 420, a second input of an intra prediction module 460, a second input of a deblocking filter 465, a first input of a motion compensator 470, a first input of a motion estimator 475, and a second input of a reference picture buffer 480.
A second output of the encoder controller 405 is connected in signal communication with a first input of a Supplemental Enhancement Information (SEI) inserter 430, a second input of the transformer and quantizer 425, a second input of the entropy coder 445, a second input of the output buffer 435, and an input of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 440.
An output of the SEI inserter 430 is connected in signal communication with a second non-inverting input of the combiner 490.
A first output of the picture-type decision module 415 is connected in signal communication with a third input of the frame ordering buffer 410. A second output of the picture-type decision module 415 is connected in signal communication with a second input of a macroblock-type decision module 420.
An output of the Sequence Parameter Set (SPS) and Picture Parameter Set (PPS) inserter 440 is connected in signal communication with a third non-inverting input of the combiner 490.
An output of the inverse quantizer and inverse transformer 450 is connected in signal communication with a first non-inverting input of a combiner 419. An output of the combiner 419 is connected in signal communication with a first input of the intra prediction module 460 and a first input of the deblocking filter 465. An output of the deblocking filter 465 is connected in signal communication with a first input of a reference picture buffer 480. An output of the reference picture buffer 480 is connected in signal communication with a second input of the motion estimator 475 and a third input of the motion compensator 470. A first output of the motion estimator 475 is connected in signal communication with a second input of the motion compensator 470. A second output of the motion estimator 475 is connected in signal communication with a third input of the entropy coder 445.
An output of the motion compensator 470 is connected in signal communication with a first input of a switch 497. An output of the intra prediction module 160 is connected in signal communication with a second input of the switch 197. An output of the macroblock-type decision module 420 is connected in signal communication with a third input of the switch 497. The third input of the switch 497 determines whether or not the “data” input of the switch (as compared to the control input, i.e., the third input) is to be provided by the motion compensator 470 or the intra prediction module 460. The output of the switch 497 is connected in signal communication with a second non-inverting input of the combiner 419 and an inverting input of the combiner 485.
A first input of the frame ordering buffer 410 and an input of the encoder controller 405 are available as inputs of the encoder 400, for receiving an input picture. Moreover, a second input of the Supplemental Enhancement Information (SEI) inserter 430 is available as an input of the encoder 400, for receiving metadata. An output of the output buffer 435 is available as an output of the encoder 400, for outputting a bitstream.
Turning to
A second output of the entropy decoder 545 is connected in signal communication with a third input of the motion compensator 570, a first input of the deblocking filter 565, and a third input of the intra predictor 560. A third output of the entropy decoder 545 is connected in signal communication with an input of a decoder controller 505. A first output of the decoder controller 505 is connected in signal communication with a second input of the entropy decoder 545. A second output of the decoder controller 505 is connected in signal communication with a second input of the inverse transformer and inverse quantizer 550. A third output of the decoder controller 505 is connected in signal communication with a third input of the deblocking filter 565. A fourth output of the decoder controller 505 is connected in signal communication with a second input of the intra prediction module 560, a first input of the motion compensator 570, and a second input of the reference picture buffer 580.
An output of the motion compensator 570 is connected in signal communication with a first input of a switch 597. An output of the intra prediction module 560 is connected in signal communication with a second input of the switch 597. An output of the switch 597 is connected in signal communication with a first non-inverting input of the combiner 525.
An input of the input buffer 510 is available as an input of the decoder 500, for receiving an input bitstream. A first output of the deblocking filter 565 is available as an output of the decoder 500, for outputting an output picture.
As noted above, the present principles are directed to methods and apparatus for unified significance map coding. To consider the coefficient distributions from different transform sizes, we adapt context sharing patterns to the transform size, while keeping a unified structure for all transform sizes for simplicity.
In order to reduce the number of contexts in coding the residual data, a few transform coefficient positions may share one context model. In the MPEG-4 AVC Standard, the context sharing is designed for each transform.
In accordance with an embodiment of the present principles, we propose a unified rule-based approach to design for all transforms on how to share the contexts, where the rule is adaptive to the encoder setup.
In accordance with an embodiment of the present principles, we propose to unify the context sharing for multiple transforms. While still keeping the number of context models at a small number, different transforms use the same approach to design context sharing among multiple coefficient positions. This unifies the context sharing, preparing the next-generation of standards to accommodate more transforms.
The present principles propose new methods to code the significance map. Different from the prior art where a separate context sharing method is pre-defined for each transform, we provide a method to unify the context sharing among different transforms. This simplifies the design of an encoder and/or decoder, particularly when there are multiple transforms.
Turning to
Turning to
In the KTA software, macroblock sizes of 32×32 and 64×64 are supported. For 32×32 blocks, in addition to the existing MPEG-4 AVC Standard motion partition sizes (16×16, 16×8, 8×16, 8×8, 8×4, 4×8, and 4×4), inter coding using 32×32, 32×16 and 16×32 partitions is also enabled. Bigger transforms can better capture the smoother content in high-definition video. For inter pictures, 16×16, 16×8, and 8×16 transforms are used in addition to 4×4 and 8×8 transforms for the luma components. Specifically, for each motion partition of sizes 16×16, 16×8, and 8×16, transforms of sizes 16×16, 16×8, and 8×16 may be used in addition to the 4×4 and 8×8 transforms. For motion partitions bigger than 16×16, a 16×16 transform is used in addition to 4×4 and 8×8 transforms.
To encode the significance map of transform coefficients from newly introduced transforms (16×8, 8×16, and 16×16), separate context sharing maps are designed for each transform. For example, the pattern for context sharing of a 16×16 transform is approximately an upsampled version of that of 8×8. Since transforms usually compact energies into the first coefficients in the scanning order, such a context sharing may not suit the transform coefficient distribution. Further, such a context sharing requires storing the map for each transform.
We propose to unify the generation of the context sharing maps to simplify the encoder and/or decoder design. In one embodiment, we convert the 2-D transform coefficient block into a 1-D transform coefficient array according to a scanning order (for example, a zig-zag scanning order). Depending on the transform coefficient position x, we assign a context according to a rule F(x). This rule is consistent for all transforms. For example,
where N is the number of contexts. For example, when N=15, there are 15 contexts.
When we apply this rule to generate the context sharing maps, there is no need to design separate maps for each transform, and it can be easily extended to multiple transforms. The same rule is known and used at both the encoder and decoder.
Turning to
Turning to
In an embodiment of the present principles, the rule for generating the context sharing maps might vary for different sequences, picture resolutions, quantization parameters, and so forth. For example, we can have a variation of F(x) as follows:
We propose to indicate which rule to use in the syntax. In one embodiment, the rules are known at both the encoder and the decoder. In such a case, the encoder indicates which rule to use through an index in the bitstream. This approach provides more flexibility.
Turning to
Turning to
Our proposed method provides the flexibility to select the rule for generating the context sharing maps through, for example, the sequence parameter set (SPS) or picture parameter set (PPS). TABLE 1 shows exemplary syntax for use in a picture parameter set, in accordance with an embodiment of the present principles. Similar syntax can be applied on other syntax levels, including but not limited to the sequence parameter set.
The semantics of the syntax element shown in TABLE 1 is as follows:
significance_map_context_rule specifies the particular rule to be applied to generate the context sharing maps for coding the significance map.
A description will now be given of some of the many attendant advantages/features of the present invention, some of which have been mentioned above. For example, one advantage/feature is an apparatus having a video encoder for encoding transform coefficients for at least a portion of a picture. The transform coefficients are obtained using a plurality of transforms. One or more context sharing maps are generated for the transform coefficients based on a unified rule. The one or more context sharing maps are for providing at least one context that is shared among at least some of the transform coefficients obtained from at least two different ones of the plurality of transforms.
Another advantage/feature is the apparatus having the video encoder as described above, wherein the transform coefficients are two-dimensional transform coefficients, and the unified rule specifies mapping the two-dimensional transform coefficients into a one-dimensional array according to a scanning order, and assigning first N coefficients from among the transform coefficients to separate contexts.
Yet another advantage/feature is the apparatus having the video encoder wherein the transform coefficients are two-dimensional transform coefficients, and the unified rule specifies mapping the two-dimensional transform coefficients into a one-dimensional array according to a scanning order, and assigning first N coefficients from among the transform coefficients to separate contexts as described above, wherein remaining coefficients from among the transform coefficients are assigned to a single context.
Moreover, another advantage/feature is the apparatus having the video encoder wherein the transform coefficients are two-dimensional transform coefficients, and the unified rule specifies mapping the two-dimensional transform coefficients into a one-dimensional array according to a scanning order, and assigning first N coefficients from among the transform coefficients to separate contexts as described above, wherein the scanning order is a zig-zag scanning order.
Further, another advantage/feature is the apparatus having the video encoder as described above, wherein the transform coefficients are encoded into a resultant bitstream, multiple rules are used as candidates for the unified rule, and the unified rule is indicated in the resultant bitstream.
Also, another advantage/feature is the apparatus having the video encoder as described above, wherein the unified rule includes at least two unified rules that vary based on video sequences to which the transform coefficients correspond, picture resolutions, and quantization parameters.
These and other features and advantages of the present principles may be readily ascertained by one of ordinary skill in the pertinent art based on the teachings herein. It is to be understood that the teachings of the present principles may be implemented in various forms of hardware, software, firmware, special purpose processors, or combinations thereof.
Most preferably, the teachings of the present principles are implemented as a combination of hardware and software. Moreover, the software may be implemented as an application program tangibly embodied on a program storage unit. The application program may be uploaded to, and executed by, a machine comprising any suitable architecture.
Preferably, the machine is implemented on a computer platform having hardware such as one or more central processing units (“CPU”), a random access memory (“RAM”), and input/output (“I/O”) interfaces. The computer platform may also include an operating system and microinstruction code. The various processes and functions described herein may be either part of the microinstruction code or part of the application program, or any combination thereof, which may be executed by a CPU. In addition, various other peripheral units may be connected to the computer platform such as an additional data storage unit and a printing unit.
It is to be further understood that, because some of the constituent system components and methods depicted in the accompanying drawings are preferably implemented in software, the actual connections between the system components or the process function blocks may differ depending upon the manner in which the present principles are programmed. Given the teachings herein, one of ordinary skill in the pertinent art will be able to contemplate these and similar implementations or configurations of the present principles.
Although the illustrative embodiments have been described herein with reference to the accompanying drawings, it is to be understood that the present principles is not limited to those precise embodiments, and that various changes and modifications may be effected therein by one of ordinary skill in the pertinent art without departing from the scope or spirit of the present principles. All such changes and modifications are intended to be included within the scope of the present principles as set forth in the appended claims.
This application claims the benefit of U.S. Provisional Application Ser. No. 61/333,808, filed on May 12, 2010, which is incorporated by reference herein in its entirety.
Number | Date | Country | |
---|---|---|---|
61333808 | May 2010 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 18138947 | Apr 2023 | US |
Child | 18583961 | US | |
Parent | 17692563 | Mar 2022 | US |
Child | 18138947 | US | |
Parent | 17154283 | Jan 2021 | US |
Child | 17692563 | US | |
Parent | 16374815 | Apr 2019 | US |
Child | 17154283 | US | |
Parent | 15709965 | Sep 2017 | US |
Child | 16374815 | US | |
Parent | 13696852 | Nov 2012 | US |
Child | 15709965 | US |