A method of coding at least one image comprising the steps of splitting the image into a plurality of blocks, of grouping said blocks into a predetermined number of subsets of blocks, of coding each of said subsets of blocks in parallel, the blocks of a subset considered being coded according to a predetermined sequential order of traversal. The coding step comprises, for a current block of a subset considered, the sub-step of predictive coding of said current block with respect to at least one previously coded and decoded block, and the sub-step of entropy coding of said current block on the basis of at least one probability of appearance of a symbol.
|
1. A computer-implemented method comprising:
receiving a stream representative of at least one coded image;
identifying, from the stream, a predetermined plurality of groups of blocks;
providing each group of blocks to a first decoding unit; and
processing, by the first decoding unit, a first block in a given group of blocks, wherein the processing of the first block comprises:
determining that the first block is first in an order of blocks in the given group of blocks;
in response to determining that the first block is first in the order of blocks in the given group of blocks, retrieving a first set of probability data from a buffer, wherein the first set of probability data comprises a first set of probabilities of occurrence of symbols associated with a block that is situated immediately adjacent to the first block and that belongs to another group of blocks that is different from the given group of blocks in the predetermined plurality of groups of blocks;
entropy decoding the first block based on the first set of probability data; and
processing, by the first decoding unit, a second block in the given group of blocks, wherein the processing of the second block comprises:
determining that the second block is not first in the order of blocks in the given group of blocks;
in response to determining that the second block is not first in the order of blocks in the given group of blocks, retrieving a second set of probability data from a memory unit, wherein the second set of probability data comprises a second set of probabilities of occurrence of symbols associated with at least one other already decoded block belonging to the given group of blocks in the predetermined plurality of groups of blocks, wherein the second set of probabilities of occurrence of symbols are not associated with blocks that do not belong to the given subset of blocks; and
entropy decoding the second block based on the second set of probability data.
16. A non-transitory computer-readable medium storing software comprising instructions executable by one or more computers which, upon such execution, cause the one or more computers to perform operations comprising:
receiving a stream representative of at least one coded image;
identifying, from the stream, a predetermined plurality of groups of blocks;
providing each group of blocks to a first decoding unit; and
processing, by the first decoding unit, a first block in a given group of blocks, wherein the processing of the first block comprises:
determining that the first block is first in an order of blocks in the given group of blocks;
in response to determining that the first block is first in the order of blocks in the given group of blocks, retrieving a first set of probability data from a buffer, wherein the first set of probability data comprises a first set of probabilities of occurrence of symbols associated with a block that is situated immediately adjacent to the first block and that belongs to another group of blocks that is different from the given group of blocks in the predetermined plurality of groups of blocks;
entropy decoding the first block based on the first set of probability data; and
processing, by the first decoding unit, a second block in the given group of blocks, wherein the processing of the second block comprises:
determining that the second block is not first in the order of blocks in the given group of blocks;
in response to determining that the second block is not first in the order of blocks in the given group of blocks, retrieving a second set of probability data from a memory unit, wherein the second set of probability data comprises a second set of probabilities of occurrence of symbols associated with at least one other already decoded block belonging to the given group of blocks in the predetermined plurality of groups of blocks, wherein the second set of probabilities of occurrence of symbols are not associated with blocks that do not belong to the given subset of blocks; and
entropy decoding the second block based on the second set of probability data.
10. A system comprising:
one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
receiving a stream representative of at least one coded image;
identifying, from the stream, a predetermined plurality of groups of blocks;
providing each group of blocks to a first decoding unit; and
processing, by the first decoding unit, a first block in a given group of blocks, wherein the processing of the first block comprises:
determining that the first block is first in an order of blocks in the given group of blocks;
in response to determining that the first block is first in the order of blocks in the given group of blocks, retrieving a first set of probability data from a buffer, wherein the first set of probability data comprises a first set of probabilities of occurrence of symbols associated with a block that is situated immediately adjacent to the first block and that belongs to another group of blocks that is different from the given group of blocks in the predetermined plurality of groups of blocks;
entropy decoding the first block based on the first set of probability data; and
processing, by the first decoding unit, a second block in the given group of blocks, wherein the processing of the second block comprises:
determining that the second block is not first in the order of blocks in the given group of blocks;
in response to determining that the second block is not first in the order of blocks in the given group of blocks, retrieving a second set of probability data from a memory unit, wherein the second set of probability data comprises a second set of probabilities of occurrence of symbols associated with at least one other already decoded block belonging to the given group of blocks in the predetermined plurality of groups of blocks, wherein the second set of probabilities of occurrence of symbols are not associated with blocks that do not belong to the given subset of blocks; and
entropy decoding the second block based on the second set of probability data.
2. The computer-implemented method of
generating a third set of probability data based on the second set of probability data and data about the second block; and
replacing the second set of probability data in the memory unit with the third set of probability data.
3. The computer-implemented method of
entropy decoding the first block based on the first set of probability data comprises entropy decoding the first block based on the first set of probability data using a context-adaptive binary arithmetic coding (CABAC) algorithm; and
entropy decoding the second block based on the second set of probability data comprises entropy decoding the second block based on the second set of probability data using the CABAC algorithm.
4. The computer-implemented method of
generating a third set of probability data based on the first set of probability data and data about the first block;
storing the third set of probability data to the memory unit and
using at least the third set of probability data to generate the second set of probability data.
5. The computer-implemented method of
predictive decoding of each of the plurality of blocks with respect to at least one previously decoded block.
6. The computer-implemented method of
processing, by the first decoding unit, a third block in the given group of blocks, wherein the processing of the third block comprises:
retrieving a third set of probability data from the memory unit, wherein the third set of probability data comprises a third set of probabilities of occurrence of symbols associated with blocks in the predetermined plurality of groups of blocks, and wherein the third set of probability data is determined based at least on the second set of probability data; and
entropy decoding the third block based on the third set of probability data.
7. The method of
wherein the processing of the second block comprises:
after entropy decoding the second block:
determining a third set of probability data;
determining whether the second block is ordered as a particular number in the order of blocks in the given group of blocks;
in response to determining that the second block is ordered as the particular number in the order of blocks in the given group of blocks, storing the third set of probability data in the buffer, the stored third set of probability data for entropy decoding another block that is first in an order of blocks in another group of blocks; and
in response to determining that the second block is not ordered as the particular number in the order of blocks in the given group of blocks, storing the third set of probability data in the memory unit the stored third set of probability data for entropy decoding, by the first decoding unit, another block that is next to the particular number in the order of blocks in the given group of blocks.
8. The method of
9. The method of
11. The system of
generating a third set of probability data based on the second set of probability data and data about the second block; and
replacing the second set of probability data in the memory unit with the third set of probability data.
12. The system of
entropy decoding the first block based on the first set of probability data comprises entropy decoding the first block based on the first set of probability data using a context-adaptive binary arithmetic coding (CABAC) algorithm; and
entropy decoding the second block based on the second set of probability data comprises entropy decoding the second block based on the second set of probability data using the CABAC algorithm.
13. The system of
generating a third set of probability data based on the first set of probability data and data about the first block;
storing the third set of probability data to the memory unit and
using at least the third set of probability data to generate the second set of probability data.
14. The system of
predictive decoding of each of the plurality of blocks with respect to at least one previously decoded block.
15. The system of
processing, by the first decoding unit, a third block in the given group of blocks, wherein the processing of the third block comprises:
retrieving a third set of probability data from the memory unit wherein the third set of probability data comprises a third set of probabilities of occurrence of symbols associated with blocks in the predetermined plurality of groups of blocks, and wherein the third set of probability data is determined based at least on the second set of probability data; and
entropy decoding the third block based on the third set of probability data.
17. The non-transitory computer-readable medium of
generating a third set of probability data based on the second set of probability data and data about the second block; and
replacing the second set of probability data in the memory unit with the third set of probability data.
18. The non-transitory computer-readable medium of
generating a third set of probability data based on the first set of probability data and data about the first block; and
replacing the first set of probability data in the buffer with the third set of probability data.
19. The non-transitory computer-readable medium of
entropy decoding the first block based on the first set of probability data comprises entropy decoding the first block based on the first set of probability data using a context-adaptive binary arithmetic coding (CABAC) algorithm; and
entropy decoding the second block based on the second set of probability data comprises entropy decoding the second block based on the second set of probability data using the CABAC algorithm.
20. The non-transitory computer-readable medium of
processing, by the first decoding unit, a third block in the given group of blocks, wherein the processing of the third block comprises:
retrieving a third set of probability data from the memory unit, wherein the third set of probability data comprises a third set of probabilities of occurrence of symbols associated with blocks in the predetermined plurality of groups of blocks, and wherein the third set of probability data is determined based at least on the second set of probability data; and
entropy decoding the third block based on the third set of probability data.
|
This application is a continuation of U.S. application Ser. No. 14/003,014, filed Sep. 4, 2013, which is the U.S. national phase of International Patent Application No. PCT/FR2012/050380, filed Feb. 23, 2012, which claims the benefit of French Application No. 1151849, filed Mar. 7, 2011, the entire contents of which are incorporated herein by reference.
The present invention pertains generally to the field of image processing, and more precisely to the coding and to the decoding of digital images and of sequences of digital images.
The invention can thus, especially, be applied to the video coding implemented in current video coders (MPEG, H.264, etc) or forthcoming video coders (ITU-T/VCEG (H.265) or ISO/MPEG (HVC).
Current video coders (MPEG, H264, etc.) use a block-wise representation of the video sequence. The images are cut up into macro-blocks, each macro-block is itself cut up into blocks and each block, or macro-block, is coded by intra-image or inter-image prediction. Thus, certain images are coded by spatial prediction (intra prediction), while other images are coded by temporal prediction (inter prediction) with respect to one or more coded-decoded reference images, with the aid of a motion compensation known by the person skilled in the art. Moreover, for each block can be coded a residual block corresponding to the original block decreased by a prediction. The coefficients of this block are quantized after optional transformation, and then coded by an entropy coder.
Intra prediction and inter prediction require that certain blocks which have been previously coded and decoded are available, so as to be used, either at the decoder or at the coder, to predict the current block. A schematic example of such a predictive coding is represented in
Of more particular interest here is the entropy coder. The entropy coder encodes the information in its order of arrival. Typically a row-by-row traversal of the blocks is carried out, of “raster-scan” type, as illustrated in
An effective arithmetical coder of reasonable complexity is already known, called “CABAC” (“Context Adaptive Binary Arithmetic Coder”), introduced into the AVC compression standard (also known as ISO-MPEG4 part 10 and ITU-T H.264).
This entropy coder implements various concepts;
Thus, this entropy coder implements, for each context used, a system for learning probabilities on the fly with respect to the previously coded symbols for the context considered. This learning is based on the order of coding of these symbols. Typically, the image is traversed according to an order of “raster-scan” type, described hereinabove.
During the coding of a given symbol b that may equal 0 or 1, the learning of the probability Pi of occurrence of this symbol is updated for a current block MBi in the following manner:
where α is a predetermined value, for example 0.95 and Pi−1 is the probability of symbol occurrence calculated during the last occurrence of this symbol.
A schematic example of such an entropy coding is represented in
The drawback of such a type of entropy coding resides in the fact that during the coding of a symbol situated at the start of a row, the probabilities used correspond mainly to those observed for the symbols situated at the end of the previous row, having regard to the “raster scan” traversal of the blocks. Now, on account of the possible spatial variation of the probabilities of the symbols (for example for a symbol related to an item of motion information, the motion situated in the right part of an image may be different from that observed in the left part and therefore likewise for the local probabilities stemming therefrom), a lack of local appropriateness of the probabilities may be observed, with the risk of causing a loss of effectiveness during coding.
The document “Annex A: CDCM Video Codec Decoder Specification” available at the Internet address http://wftp3.itu.int/av-arch/jctvc-site/2010—04_A_Dresden/JCTVC-A114-AnnexA.doc (on 8 Feb. 2011) describes a coding method which alleviates the drawback mentioned above. The coding method described in the above document comprises, as illustrated in
The advantage of such an entropy coding is that it exploits the probabilities arising from the immediate environment of the current block, thereby making it possible to achieve higher coding performance. Furthermore, the coding technique used makes it possible to code in parallel a predetermined number of pairwise neighboring subsets of blocks. In the example represented in
A drawback of this parallel coding technique is that, to allow access to a probability of symbol occurrence calculated for the block situated immediately above the current block, it is necessary to store a quantity of probabilities associated with a row of blocks. If the second row of blocks SE2 is considered for example in
One of the aims of the invention is to remedy drawbacks of the aforementioned prior art.
For this purpose, a subject of the present invention relates to a method of coding at least one image comprising the steps of:
The method according to the invention is noteworthy in that:
Such an arrangement makes it possible to store in the buffer memory of the coder a much smaller quantity of probabilities of occurrence of symbols, since the entropy coding of a current block other than the first block of a subset of blocks no longer necessarily requires the use of the probabilities of symbol occurrence calculated for a previously coded and decoded block which is situated above a current block in another subset.
Such an arrangement furthermore makes it possible to maintain the existing compression performance, since the entropy coding of a current block uses probabilities of symbol occurrence calculated for another previously coded and decoded block of the subset to which the current block belongs, and that consequently a learning has already been carried out through the updating of the probabilities so that the latter are in accordance with the statistics of the video signal.
The main advantage of using the probabilities of symbol occurrence calculated for the first block of said other subset during the entropy coding of the first current block of a considered subset of blocks is that of economizing on the coders buffer memory by storing in the latter just the update of said probabilities of occurrence of symbols, without taking into account the symbol occurrence probabilities learned by the other consecutive blocks of said other subset.
The main advantage of using the symbol occurrence probabilities calculated for a block of said other subset, other than the first block, for example the second block, during the entropy coding of the first current block of a considered subset of blocks is that of obtaining more precise and therefore better learning of the probabilities of occurrence of symbols, thereby giving rise to better video compression performance.
In a particular embodiment, the coded and decoded block belonging to the same subset as the current block to be coded other than the first block of the subset is that which is the nearest neighbor of the current block to be coded.
Such an arrangement thus makes it possible to store just the symbol occurrence probabilities learned during the entropy coding of a first block of a subset considered, since in this particular case, account is taken only of the symbol occurrence probability calculated for the block situated above the first current block and belonging to another subset. This results in optimization of the reduction in the size of the coder's memory resources.
In another particular embodiment, in the case where the predictive coding of a block of a subset considered is intended to be performed with respect to a predetermined number of previously coded and decoded blocks of a subset other than said subset considered, the parallel coding of the blocks of said subset considered is performed with a shift by said predetermined number of blocks with respect to the subset of blocks immediately preceding in the order in which the parallel coding is performed.
Such an arrangement allows the achieving, for a current subset of blocks to be coded, a synchronization of the progress of processing of the blocks of the subset of blocks preceding the current subset in the order in which the parallel coding is performed, thereby making it possible to guarantee the availability of the block or blocks of the preceding subset which are used for the coding of a current block. In this manner, the step of verifying the availability of this or these blocks of the preceding subset, such as are implemented in parallel coders of the prior art, can advantageously be omitted, thereby allowing an acceleration of the processing time required to process the blocks in the coder according to the invention.
Correlatively, the invention further relates to a device for coding at least one image comprising:
Such a coding device is noteworthy in that:
In a corresponding manner, the invention also relates to a method of decoding a stream representative of at least one coded image, comprising the steps of:
Such a decoding method is noteworthy in that:
In a particular embodiment, the decoded block belonging to the same subset as the current block to be decoded other than the first block of the subset is that which is the nearest neighbor of the current block to be decoded.
In another particular embodiment, in the case where the predictive decoding of a block of a subset considered is intended to be performed with respect to a predetermined number of previously coded and decoded blocks of a subset other than the subset considered, the parallel decoding of the blocks of the subset considered is performed with a shift by the predetermined number of blocks with respect to the subset of blocks immediately preceding in the order in which the parallel decoding is performed.
Correlatively, the invention further relates to a device for decoding a stream representative of at least one coded image, comprising:
Such a decoding device is noteworthy in that:
The invention is also aimed at a computer program comprising instructions for the execution of the steps of the coding or decoding method hereinabove, when the program is executed by a computer.
Such a program can use any programming language, and be in the form of source code, object code, or of code intermediate between source code and object code, such as in a partially compiled form, or in any other desirable form.
Yet another subject of the invention is also aimed at a recording medium readable by a computer, and comprising computer program instructions such as mentioned hereinabove.
The recording medium can be any entity or device capable of storing the program. For example, such a medium can comprise a storage means, such as a ROM, for example a CD ROM or a microelectronic circuit ROM, or else a magnetic recording means, for example a diskette (floppy disk) or a hard disk.
Moreover, such a recording medium can be a transmissible medium such as an electrical or optical signal, which can be conveyed via an electrical or optical cable, by radio or by other means. The program according to the invention can be in particular downloaded on a network of Internet type.
Alternatively, such a recording medium can be an integrated circuit into which the program is incorporated, the circuit being adapted for executing the method in question or to be used in the execution of the latter.
The coding device, the decoding method, the decoding device and the computer programs aforementioned present at least the same advantages as those conferred by the coding method according to the present invention.
Other characteristics and advantages will become apparent on reading two preferred embodiments described with reference to the figures in which:
An embodiment of the invention will now be described, in which the coding method according to the invention is used to code a sequence of images according to a binary stream close to that obtained by a coding according to the H.264/MPEG-4 AVC standard. In this embodiment, the coding method according to the invention is for example implemented in a software or hardware manner by modifications of a coder initially in accordance with the H.264/MPEG-4 AVC standard. The coding method according to the invention is represented in the form of an algorithm comprising steps C1 to C5, represented in
According to the embodiment of the invention, the coding method according to the invention is implemented in a coding device CO represented in
With reference to
Each block or macroblock can moreover itself be divided into sub-blocks which are themselves subdividable.
Such a cutting is performed by a partitioning module PCO represented in
With reference to
Such a grouping is performed by a calculation module GRCO represented in
With reference to
Such a coding in parallel is implemented by a number R of coding units UCk (1≦k≦R) with R=4 as represented in
As represented in greater detail in
The predictive coding sub-unit SUCPk is able to perform a predictive coding of the current block, according to the conventional prediction techniques, such as for example in Intra and/or Inter mode.
The entropy coding sub-unit SUCEk is for its part of CABAC type, but modified according to the present invention, as will be described further on in the description.
As a variant, the entropy coding sub-unit SUCEk could be a Huffman coder known as such.
In the examples represented in
Other types of traversal than that which has just been described hereinabove are of course possible. Thus, it is possible to cut the image IE into several sub-images and to independently apply a cutting of this type to each sub-image. It is also possible for each coding unit to process not nested rows, as explained hereinabove, but nested columns. It is also possible to traverse the rows or columns in either direction.
With reference to
With reference to
Thus, as will be described in detail further on in the description, the decoder according to the invention is able to isolate the sub-streams Fk within the global stream F and to assign them to each component decoding unit of the decoder. It will be noted that such a decomposition of the sub-streams into global stream is independent of the choice of the use of several coding units operating in parallel, and that it is possible with this approach to have just the coder or just the decoder which comprises units operating in parallel.
Such a construction of the global stream F is implemented in a stream construction module CF, such as represented in
The various specific sub-steps of the invention, such as are implemented during the aforementioned parallel coding step C3, in a coding unit UCk, will now be described with reference to
In the course of a step C31, the coding unit UCk selects as current block the first block to be coded of a current row SEk represented in
In the course of a step C32, the unit UCk tests whether the current block is the first block (situated at the top and on the left) of the image IE which has been cut up into blocks in the aforementioned step C1.
If such is the case, in the course of a step C33, the coding probabilities are initialized to values Pinit previously defined in the coder CO of
If such is not the case, there is undertaken, in the course of a step C40 which will be described later in the subsequent description, the determination of the availability of the necessary previously coded and decoded blocks.
In the course of a step C34, there is undertaken the coding of the first current block MB1 of the first row SE1 represented in
In the course of a first sub-step C341, there is undertaken the predictive coding of the current block MB1 by known techniques of intra and/or inter prediction, in the course of which the block MB1 is predicted with respect to at least one previously coded and decoded block.
It goes without saying that other modes of intra prediction such as proposed in the H.264 standard are possible.
The current block MB1 can also be subjected to a predictive coding in inter mode, in the course of which the current block is predicted with respect to a block arising from a previously coded and decoded image. Other types of prediction are of course conceivable. Among the possible predictions for a current block, the optimal prediction is chosen according to a rate distortion criterion well known to the person skilled in the art.
Said aforementioned predictive coding step makes it possible to construct a predicted block MBp1 which is an approximation of the current block MB1. The information relating to this predictive coding will subsequently be written into the stream F transmitted to the decoder DO. Such information comprises especially the type of prediction (inter or intra), and if appropriate, the mode of intra prediction, the type of partitioning of a block or macroblock if the latter has been subdivided, the reference image index and the displacement vector used in the inter prediction mode. This information is compressed by the coder CO.
In the course of a following sub-step C342, there is undertaken the subtraction of the predicted block MBp1 from the current block MB1 to produce a residual block MBr1.
In the course of a following sub-step C343, there is undertaken the transformation of the residual block MBr1 according to a conventional operation of direct transformation such as for example a discrete cosine transformation of DCT type, to produce a transformed block MBt1.
In the course of a following sub-step C344, there is undertaken the quantization of the transformed block MBt1 according to a conventional quantization operation, such as for example a scalar quantization. A block of quantized coefficients MBq1 is then obtained.
In the course of a following sub-step C345, there is undertaken the entropy coding of the block of quantized coefficients MBq1. In the preferred embodiment, this entails a CABAC entropy coding.
In the course of a following sub-step C346, there is undertaken the dequantization of the block MBq1 according to a conventional dequantization operation, which is the operation inverse to the quantization performed in step C344. A block of dequantized coefficients MBDq1 is then obtained.
In the course of a following sub-step C347, there is undertaken the inverse transformation of the block of dequantized coefficients MBDq1 which is the operation inverse to the direct transformation performed in step C343 hereinabove. A decoded residual block MBDr1 is then obtained.
In the course of a following sub-step C348, there is undertaken the construction of the decoded block MBD1 by adding to predicted block MBp1 the decoded residual block MBDr1. It should be noted that the latter block is the same as the decoded block obtained on completion of the method of decoding the image IE which will be described further on in the description. The decoded block MBD1 is thus rendered available to be used by the coding unit UC1 or any other coding unit forming part of the predetermined number R of coding units.
On completion of the aforementioned coding step C34, the entropy coding sub-unit SUCEk such as represented in
Subsequent to the aforementioned coding step C34, a test is performed, in the course of a step C35, to determine whether the current block is the jth block of this same row, were j is a known predetermined value of the coder CO which is at least equal to 1.
If such is the case, in the course of a step C36, the set of probabilities calculated for the jth block is stored in the buffer memory MT of the coder CO such as represented in
In the course of a step C37, the unit UCk tests whether the current block of the row SEk which has just been coded is the last block of the image IE.
If such is the case, in the course of a step C38, the coding method is ended.
If such is not the case, there is undertaken, in the course of step C39, the selection of the following block MBi to be coded in accordance with the order of traversal represented by the arrow PS in
If in the course of step C35, the current block is not the jth block of the row SEk considered, then step C37 hereinabove is undertaken.
In the course of a step C40, there is undertaken the determination of the availability of previously coded and decoded blocks which are necessary for coding the current block MBi. Having regard to the fact that this entails a parallel coding of the blocks of the image IE by different coding units UCk, it may be that these blocks were not coded and decoded by the coding unit assigned to the coding of these blocks and that they are therefore not yet available. Said determining step consists in verifying whether a predetermined number N′ of blocks situated in the previous row SEk-1, for example the two blocks situated respectively above and above to the right of the current block, are available for the coding of the current block, that is to say if they have already been coded and then decoded by the coding unit UCk-1 assigned to their coding. Said determining step also consists in verifying the availability of at least one block situated to the left of the current block to be coded MBi. However, having regard to the order of traversal PS chosen in the embodiment represented in
This test step being liable to slow the coding method, in an alternative manner in accordance with the invention, a clock CLK represented in
In the course of a step C41, a test is performed to determine whether the current block is the first block of the row SEk considered.
If such is the case, in the course of a step C42, there is undertaken the reading in the buffer memory MT solely of the symbol occurrence probabilities calculated during the coding of the jth block of the previous row SEk-1.
According to a first variant represented in
According to a second variant of the aforementioned step C42 which is illustrated in
Subsequent to step C42, the current block is coded and then decoded by iteration of steps C34 to C38 described above.
If subsequent to the aforementioned step C41, the current block is not the first block of the row SEk considered, there is advantageously not undertaken the reading of the probabilities arising from the previously coded and decoded block which is situated in the same row SEk, that is to say the coded and decoded block situated immediately to the left of the current block, in the example represented. Indeed, having regard to the sequential traversal of reading PS of the blocks situated in the same row, as represented in
Consequently, in the course of a step C43, there is undertaken the learning of the probabilities of symbol occurrence for the entropy coding of said current block, which correspond solely to those which were calculated for said preceding block in the same row, as is represented by the double solid arrows in
Subsequent to step C43, the current block is coded and then decoded by iteration of steps C34 to C38 described above.
Detailed Description of an Embodiment of the Decoding Part
An embodiment of the decoding method according to the invention will now be described, in which the decoding method is implemented in a software or hardware manner by modifications of a decoder initially in accordance with the H.264/MPEG-4 AVC standard.
The decoding method according to the invention is represented in the form of an algorithm comprising steps D1 to D4, represented in
According to the embodiment of the invention, the decoding method according to the invention is implemented in a decoding device DO represented in
With reference to
Each block or macroblock can moreover itself be divided into sub-blocks which are themselves subdividable.
Such an identification is performed by a stream extraction module EXDO such as represented in
In the example represented in
With reference to
Such a decoding in parallel is implemented by a number R of decoding units UDk (1≦k≦R) with R=4 as represented in
As represented in greater detail in
The predictive decoding sub-unit SUDPk is able to perform a predictive decoding of the current block, according to the conventional prediction techniques, such as for example in Intra and/or Inter mode.
The entropy decoding sub-unit SUDEk is for its part of CABAL type, but modified according to the present invention, as will be described further on in the description.
As a variant, the entropy decoding sub-unit SUDEk could be a Huffman decoder known as such.
In the example represented in
Other types of traversal than that which has just been described hereinabove are of course possible. For example, each decoding unit could process not nested rows, as explained hereinabove, but nested columns. It is also possible to traverse the rows or columns in either direction.
With reference to
In the course of a fourth decoding step D4 represented in
The various specific sub-steps of the invention, such as are implemented during the aforementioned parallel decoding step D2, in a decoding unit UDk, will now be described with reference to
In the course of a step D21, the decoding unit UDk selects as current block the first block to be decoded of the current row SEk represented in
In the course of a step D22, the unit UDk tests whether the current block is the first block of the decoded image, in this instance the first block of the sub-stream F1.
If such is the case, in the course of a step D23, the decoding probabilities are initialized to values Pinit previously defined in the decoder DO of
If such is not the case, there is undertaken, in the course of a step D30 which will be described later in the subsequent description, the determination of the availability of the necessary previously decoded blocks.
In the course of a step D24, there is undertaken the decoding of the first current block MB1 of the first row SE1 represented in
In the course of a first sub-step D241, there is undertaken the entropy decoding of the syntax elements related to the current block. More precisely, the syntax elements related to the current block are decoded by the CABAC entropy decoding sub-unit SUDE1 such as represented in
In the course of a following sub-step D242, there is undertaken the predictive decoding of the current block MB1 by known techniques of intra and/or inter prediction, in the course of which the block MB1 is predicted with respect to at least one previously decoded block.
It goes without saying that other modes of intra prediction such as proposed in the H.264 standard are possible.
In the course of this step, the predictive decoding is performed with the aid of the syntax elements decoded in the previous step and comprising especially the type of prediction (inter or intra), and if appropriate, the mode of intra prediction, the type of partitioning of a block or macroblock if the latter has been subdivided, the reference image index and the displacement vector used in the inter prediction mode.
Said aforementioned predictive decoding step makes it possible to construct a predicted block MBp1.
In the course of a following sub-step D243, there is undertaken the construction of a quantized residual block MBq1 with the aid of the previously decoded syntax elements.
In the course of a following sub-step D244, there is undertaken the dequantization of the quantized residual block MBq1 according to a conventional dequantization operation which is the operation inverse to the quantization performed in the aforementioned step C344, to produce a decoded dequantized block MBDt1.
In the course of a following sub-step D245, there is undertaken the inverse transformation of the dequantized block MBDt1 which is the operation inverse to the direct transformation performed in step C343 hereinabove. A decoded residual block MBDr1 is then obtained.
In the course of a following sub-step D246, there is undertaken the construction of the decoded block MBD1 by adding to predicted block MBp1 the decoded residual block MBDr1. The decoded block MBD1 is thus rendered available to be used by the decoding unit UD1 or any other decoding unit forming part of the predetermined number N of decoding units.
On completion of the aforementioned decoding step D246, the entropy decoding sub-unit SUDE1 such as represented in
Subsequent to the aforementioned decoding step D24, a test is performed, in the course of a step D25, to determine whether the current block is the jth block of this same row, where j is a known predetermined value of the decoder DO which is at least equal to 1.
If such is the case, in the course of a step D26, the set of probabilities calculated for the jth block is stored in the buffer memory MT of the decoder DO such as represented in
In the course of a step D27, the unit UDk tests whether the current block which has just been decoded is the last block of the last sub-stream.
If such is the case, in the course of a step D28, the decoding method is ended.
If such is not the case, there is undertaken, in the course of step D29, the selection of the following block MBi to be decoded in accordance with the order of traversal represented by the arrow PS in
If in the course of the aforementioned step D25, the current block is not the jth block of the row SEDk considered, step D27 hereinabove is undertaken.
In the course of a step D30 which follows the aforementioned step D29, there is undertaken the determination of the availability of previously decoded blocks which are necessary for decoding the current block MBi. Having regard to the fact that this entails a parallel decoding of the blocks by different decoding units UDk, it may be that these blocks were not decoded by the decoding unit assigned to the decoding of these blocks and that they are therefore not yet available. Said determining step consists in verifying whether a predetermined number N′ of blocks situated in the previous row SEk-1, for example the two blocks situated respectively above and above to the right of the current block, are available for the decoding of the current block, that is to say if they have already been decoded by the decoding unit UDk-1 assigned to their decoding. Said determining step also consists in verifying the availability of at least one block situated to the left of the current block to be decoded MBi. However, having regard to the order of traversal PS chosen in the embodiment represented in
This test step being liable to slow the decoding method, in an alternative manner in accordance with the invention, a clock CLK represented in
In the course of a step D31, a test is performed to determine whether the current block is the first block of the row SEk considered.
If such is the case, in the course of a step D32, there is undertaken the reading in the buffer memory MT solely of the symbol occurrence probabilities calculated during the decoding of the jth block of the previous row SEk-1.
According to a first variant represented in
According to a second variant of the aforementioned step D32 which is illustrated in
Subsequent to step D32, the current block is decoded by iteration of steps D24 to D28 described above.
If subsequent to the aforementioned step D31, the current block is not the first block of the row SEk considered, there is advantageously not undertaken the reading of the probabilities arising from the previously decoded block which is situated in the same row SEk, that is to say the decoded block situated immediately to the left of the current block, in the example represented. Indeed, having regard to the sequential traversal of reading PS of the blocks situated in the same row, as represented in
Consequently, in the course of a step D33, there is undertaken the learning of the probabilities of symbol occurrence for the entropy decoding of said current block, which probabilities correspond solely to those which were calculated for said preceding block in the same row, as represented by the double solid arrows in
Subsequent to step D33, the current block is decoded by iteration of steps D24 to D28 described above.
Henry, Felix, Pateux, Stephane
Patent | Priority | Assignee | Title |
10033999, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
10362311, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
10382784, | Mar 07 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
10681376, | Mar 07 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
10694186, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
11343535, | Mar 07 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
11736723, | Mar 07 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
9560380, | Mar 07 2011 | DOLBY INTERNATIONAL AB | Coding and decoding images using probability data |
9654783, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method for encoding and decoding images, encoding and decoding device, and corresponding computer programs |
9661335, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
9848196, | Jun 24 2011 | DOLBY INTERNATIONAL AB | Method of coding and decoding images, coding and decoding device and computer programs corresponding thereto |
Patent | Priority | Assignee | Title |
6480537, | Feb 25 1999 | HANGER SOLUTIONS, LLC | Active techniques for video transmission and playback |
7463781, | Apr 14 2004 | AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE LIMITED | Low overhead context intializations for arithmetic video codecs |
8319672, | Apr 09 2010 | Korea Electronics Technology Institute | Decoding device for context-based adaptive binary arithmetic coding (CABAC) technique |
8520740, | Sep 02 2010 | SONY INTERACTIVE ENTERTAINMENT INC | Arithmetic decoding acceleration |
8824813, | Apr 09 2010 | Sony Corporation | Image processing device and method |
8953692, | Oct 29 2009 | SUN PATENT TRUST | Image coding method and image decoding method |
20100098155, | |||
20100135416, | |||
20120014433, | |||
20120082215, | |||
20120207213, | |||
20120219066, | |||
20120263232, | |||
20120293343, | |||
20130016771, | |||
20130021350, | |||
20130187798, | |||
20140010312, | |||
20140016700, | |||
20140254665, | |||
20150016524, | |||
20150195537, | |||
20150195538, | |||
WO2010063184, | |||
WO2011042645, |
Executed on | Assignor | Assignee | Conveyance | Frame | Reel | Doc |
Apr 09 2014 | HENRY, FELIX | Orange SA | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033794 | /0398 | |
Apr 09 2014 | PATEUX, STEPHANE | Orange SA | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033794 | /0398 | |
Sep 03 2014 | Orange SA | DOLBY INTERNATIONAL AB | ASSIGNMENT OF ASSIGNORS INTEREST SEE DOCUMENT FOR DETAILS | 033794 | /0642 | |
Sep 22 2014 | DOLBY INTERNATIONAL AB | (assignment on the face of the patent) | / |
Date | Maintenance Fee Events |
Aug 23 2019 | M1551: Payment of Maintenance Fee, 4th Year, Large Entity. |
Jul 20 2023 | M1552: Payment of Maintenance Fee, 8th Year, Large Entity. |
Date | Maintenance Schedule |
Feb 23 2019 | 4 years fee payment window open |
Aug 23 2019 | 6 months grace period start (w surcharge) |
Feb 23 2020 | patent expiry (for year 4) |
Feb 23 2022 | 2 years to revive unintentionally abandoned end. (for year 4) |
Feb 23 2023 | 8 years fee payment window open |
Aug 23 2023 | 6 months grace period start (w surcharge) |
Feb 23 2024 | patent expiry (for year 8) |
Feb 23 2026 | 2 years to revive unintentionally abandoned end. (for year 8) |
Feb 23 2027 | 12 years fee payment window open |
Aug 23 2027 | 6 months grace period start (w surcharge) |
Feb 23 2028 | patent expiry (for year 12) |
Feb 23 2030 | 2 years to revive unintentionally abandoned end. (for year 12) |