The present invention relates to an image decoding method, an image coding method, an image decoding apparatus, an image coding apparatus, and an image coding and decoding apparatus, and in particular to an image decoding method, an image coding method, an image decoding apparatus, an image coding apparatus, and an image coding and decoding apparatus which use arithmetic coding or arithmetic decoding.
Natural image signals have statistical variations showing nonstationary behavior. One of the entropy coding methods using the nonstationary statistical variations is Context-Based Adaptive Binary Arithmetic Coding (CABAC) (see NPL 1). CABAC is employed as the ITU-T/ISOIEC standard for video coding, H.264/AVC.
The meaning of the terms used in the CABAC scheme will be described hereinafter.
(1) “Context-Based Adaptive” means adapting the coding and decoding methods to the statistical variations. In other words, “Context-Based Adaptive” means predicting an appropriate probability as an occurrence probability of a symbol along with an event of surrounding conditions, when the symbol is coded or decoded. In coding, when an occurrence probability p(x) of each value of a symbol S is determined, a conditional occurrence probability is applied using an actual event or a sequence of events F(z) as a condition.
(2) “Binary” means representation of a symbol using a binary sequence. A symbol represented by a multi-value is once mapped to a binary sequence referred to as “bin string”. A predicted probability (conditional probability) is switched and used for each of the sequence elements, and occurrence of one of the events of the two values is represented by a bit sequence. Accordingly, the probability of a value can be managed (initialized and updated) using a unit (binary element unit) smaller than a unit of a signal type (see
(3) “Arithmetic” means that the bit sequence is generated not with reference to the correspondences in a table but by the computation. In the coding scheme using the tables of variable-length codes such as H.263, MPEG-4, and H.264, even each value of a symbol with an occurrence probability greater than 0.5 (50%) needs to be associated with one binary sequence (bit sequence). Thus, a value with the greatest probability needs to be associated with one bit for one symbol at minimum. In contrast, the arithmetic coding can represent the occurrence of an event with a higher probability by an integer equal to or smaller than one bit. When (i) there is a signal type in which the occurrence probability of having the first binary value as 0 exceeds 0.9 (90%) and (ii) an event having the first binary value as 0 successively occurs N times, there is no need to output data of 1 bit N times for each value of “0”.
In such an image coding method and an image decoding method, memory usage (memory capacity to be used) is desired to be reduced.
Here, the present invention has an object of providing an image coding method or an image decoding method that can reduce the memory usage.
In order to achieve the object, the image decoding method according to an aspect of the present invention is an image decoding method using arithmetic decoding, and the method includes: determining a context for use in a current block to be processed, from among a plurality of contexts; performing arithmetic decoding on a bit sequence corresponding to the current block, using the determined context to reconstruct a binary sequence, the bit sequence being obtained by performing arithmetic coding on a control parameter of the current block; and inversely binarizing the binary sequence to reconstruct the control parameter of the current block, wherein the determining of a context includes: determining a signal type of the control parameter of the current block; determining the context under a first condition that decoded control parameters of neighboring blocks of the current block are used, when the signal type is a first type, the neighboring blocks being a left block and an upper block of the current block; and determining the context under a second condition that the decoded control parameter of the upper block is not used, when the signal type is a second type different from the first type, the first type is one of “split_coding_unit_flag” and “skip_flag”, and the second type is one of “cbf_luma”, “cbf_cb”, and “cbf_cr”.
The present invention can provide an image coding method or an image decoding method that can reduce the memory usage.
These and other objects, advantages and features of the invention will become apparent from the following description thereof taken in conjunction with the accompanying drawings that illustrate a specific embodiment of the present invention. In the Drawings:
(Knowledge on which the Present Invention is Based)
The present inventors have found the following problems. In High-Efficiency Video Coding (HEVC) that is a next-generation video coding scheme, the context model in coding and decoding various control parameters is being studied (NPL 2). The control parameter is included in a coded bitstream, and is a parameter (flag, etc.) used in coding or decoding processing. More specifically, the control parameter is a syntax element.
The context model is information indicating (i) which condition is considered for (ii) a signal of which unit (each element of a multi-value, a binary value, a binary sequence (bin string). Here, “which condition” indicates which condition with the number of conditional elements is applied or which signal type of a control parameter to be considered as a condition is appropriate. As the conditions are divided into smaller categories, that is, as the number of conditions t increases, the number of the cases that hold true for the conditions decreases. As a result, since the number of trainings decreases, the precision of the predicted probability decreases (for example, see “dilution effect” in NPL 1).
Furthermore, decrease in the number of conditions indicates not considering a context (surrounding conditions), and being not adaptive to the statistical variations.
In designing a context model, after determining a guideline for designing the model, it is necessary to consider the validity of the model by conducting verifications specialized for an image, such as the verifications of statistical variations in details of an image and in control parameter for controlling coding and decoding of an image.
In H.264, using advanced events of a limited number for coding a symbol is a criterion of a rule, and the context models are classified into four basic design types.
The first and second types relate to coding and decoding of a control parameter.
The first context model uses coded values of up to two neighboring coded values (see NPL 1). Although the definition of the two neighboring coded values depends on each signal type, normally, values of corresponding control parameters included in neighboring blocks to the left and upper of the current block are used.
The second type of context models is a type for determining a context based on a binary tree as an occurrence probability. More specifically, the second type of context models is applied to the control parameters mb_type and sub_mb_type.
The third and fourth types of context models relate to coding and decoding of residual values (residual data), such as image data. The third type uses only the past coded or decoded values in the scanning order of frequency coefficients (or quantized coefficients). The fourth type determines a context according to the decoded and accumulated values (levels).
The advantages of the design principle and implementation of the probability transition model in H.264, such as the first type, have long been studied, and will be applied to HEVC that is being studied (see NPL 2). For example, the first type (context model using neighboring syntax elements) is being studied to be used for the control parameters alf_cu_flag, split_coding_unit_flag, skip_flag, merge_flag, intra_chroma_pred_mode, inter_pred_flag, ref_idx_lc, ref_idx_10, ref_idx_11, rnvd_10, rnvd_l1, rnvd_lc, no_residual_data_flag, cbf_luma, cbf_cb, and cbf_cr (see 9.3.3.1.1 of NPL 2).
However, the present inventors have found that there is a problem in the memory usage in coding using the “context model using the two neighboring blocks” of the first type.
The block C in
In
In order to code or decode the value of the control parameter skip_flag of the block C, the coding apparatus or the decoding apparatus needs to hold the value of skip_flag of PU (or a result of determination of a condition) corresponding to the position (xP, yA) included in the upper block B and the position (xL, yP) included in the left block A. Assuming that the picture has a horizontal width of 4096 pixels, in order to code one control parameter skip_flag, it is necessary to hold all the determination values included in the upper row (Line L in
Here, the block C to be coded has variable sizes, for example, 64×64, 16×16, or 4×4. Furthermore, the block size of the block C to be later coded or decoded cannot be predicted when the blocks in the upper row (Line L) including (xP, yA) are coded or decoded. This is because the size of each of the blocks in the lower row (row including the block C) is not known when the upper row (row including the block A) is coded or decoded. Thus, the coding apparatus or the decoding apparatus needs to hold a value of a control parameter (or determination value) for each minimum block size, assuming that the smallest block size from among all the sizes applied to the control parameters is used as the block size of the lower row. The positions of the black circles in
Furthermore, the two neighboring blocks in
As such, the present inventors have found that the memory usage increases by using the conditional values of the upper blocks in performing arithmetic coding or decoding on the control parameters. Furthermore, the present inventors have found that the memory usage further increases in HEVC.
In contrast, the image decoding method according to an aspect of the present invention is an image decoding method using arithmetic decoding, and the method includes: determining a context for use in a current block to be processed, from among a plurality of contexts; performing arithmetic decoding on a bit sequence corresponding to the current block, using the determined context to reconstruct a binary sequence, the bit sequence being obtained by performing arithmetic coding on a control parameter of the current block; and inversely binarizing the binary sequence to reconstruct the control parameter of the current block, wherein the determining of a context includes: determining a signal type of the control parameter of the current block; determining the context under a first condition that decoded control parameters of neighboring blocks of the current block are used, when the signal type is a first type, the neighboring blocks being a left block and an upper block of the current block; and determining the context under a second condition that the decoded control parameter of the upper block is not used, when the signal type is a second type different from the first type, the first type is one of “split_coding_unit_flag” and “skip_flag”, and the second type is one of “cbf_luma”, “cbf_cb”, and “cbf_cr”.
With the structure, the image decoding method can reduce the memory usage. More specifically, in the image decoding method, since the control parameter of the upper block is not used for a control parameter of the second type, there is no need to hold the control parameter of the second type of the upper block. With the structure, compared to the case where the left block and the upper block are used as uniformly “using a context model based on values of control parameters of neighboring blocks”, the memory usage can be reduced according to the image decoding method. Furthermore, the image decoding method can appropriately reduce the memory usage of the control parameter of the second type without, for example, failing to evaluate a BD-rate of an image.
Furthermore, according to the image decoding method, the context appropriate for a hierarchical tree structure that is a data structure that is not consider in the conventional H.264 and is unique to the new standard HEVC can be used. Alternatively, memory reference can be performed.
Furthermore, the second condition may be a condition that the decoded control parameters of the left block and the upper block are not used.
With the structure, the image decoding method can reduce the memory usage by not using the control parameter of the left block in addition to the control parameter of the upper block.
Furthermore, in the determining of a context, a predetermined context may be determined under the second condition, as the context for use in the arithmetic decoding of the current block, when the signal type is the second type.
With the structure, the image decoding method can reduce the processing amount.
Furthermore, the context may be determined under the second condition according to a hierarchical depth of a data unit to which the control parameter of the current block belongs, when the signal type is the second type.
With the structure, the image decoding method can select an appropriate context while reducing the memory usage.
Furthermore, the determining of a context may further include: determining whether or not the decoded control parameter of the upper block is available in decoding, based on a position of the current block; and determining the context under the second condition, when the decoded control parameter of the upper block is not available.
With the structure, the image decoding method can reduce the processing amount.
Furthermore, in the determining of a context, it may be determined that the decoded control parameter of the upper block is not available in decoding, when the current block is at a slice boundary.
Furthermore, in the determining of a context, it may be determined whether or not the decoded control parameter of the upper block is available in decoding, according to a hierarchical depth of a data unit to which the control parameter of the current block belongs.
Furthermore, the second type may be a control parameter having a predetermined data structure.
Furthermore, the determining of a context may further include determining a context of a control parameter of a second unit smaller than a first unit by switching between the first condition and the second condition, based on a control parameter of the first unit.
Furthermore, the determining of a context may further include determining a context using a different condition for each case where the signal type is the “cbf_luma”, or the signal type is one of the “cbf_cb” and the “cbf_cr”.
Furthermore, the “split_coding_unit_flag” may indicate whether or not the current block is partitioned into a plurality of blocks, the “skip_flag” may indicate whether or not the current block is to be skipped, the “cbf_luma” may indicate whether or not a luma transform block of the current block contains one or more transform coefficient levels not equal to 0, the “cbf_cb” may indicate whether or not a Cb transform block of the current block contains one or more transform coefficient levels not equal to 0, and the “cbf_cr” may indicate whether or not a Cr transform block of the current block contains one or more transform coefficient levels not equal to 0.
Furthermore, decoding processes in accordance with a first standard and decoding processes in accordance with a second standard may be switched according to an identifier indicating one of the first standard and the second standard, the identifier being included in a coded signal, and the determining of a context, the performing, and the inversely binarizing may be performed as the decoding processes in accordance with the first standard, when the identifier indicates the first standard.
Furthermore, the image coding method according to an aspect of the present invention is an image coding method using arithmetic coding, and the method includes: binarizing a control parameter of a current block to be processed to generate a binary sequence; determining a context for use in the current block, from among a plurality of contexts; and performing arithmetic coding on the binary sequence using the determined context to generate a bit sequence, wherein the determining of a context includes: determining a signal type of the control parameter of the current block; determining the context under a first condition that control parameters of neighboring blocks of the current block are used, when the signal type is a first type, the neighboring blocks being a left block and an upper block of the current block; and determining the context under a second condition that the control parameter of the upper block is not used, when the signal type is a second type different from the first type, the first type is one of “split_coding_unit_flag” and “skip_flag”, and the second type is one of “cbf_luma”, “cbf_cb”, and “cbf_cr”.
With the structure, the image coding method can reduce the memory usage. More specifically, in the image coding method, since the control parameter of the upper block is not used for a control parameter of the second type, there is no need to hold the control parameter of the second type of the upper block. With the structure, compared to the case where the left block and the upper block are used as uniformly “using a context model based on values of control parameters of neighboring blocks”, the memory usage can be reduced according to the image coding method. Furthermore, the image coding method can appropriately reduce the memory usage of the control parameter of the second type without, for example, failing to evaluate a BD-rate of an image.
Furthermore, according to the image coding method, the context appropriate for a hierarchical tree structure that is a data structure that is not consider in the conventional H.264 and is unique to the new standard HEVC can be used. Alternatively, memory reference can be performed.
Furthermore, the image decoding apparatus according to an aspect of the present invention is an image decoding apparatus using arithmetic decoding, and the apparatus includes: a context control unit configured to determine a context for use in a current block to be processed, from among a plurality of contexts; an arithmetic decoding unit configured to perform arithmetic decoding on a bit sequence corresponding to the current block, using the determined context to reconstruct a binary sequence, the bit sequence being obtained by performing arithmetic coding on a control parameter of the current block; and an inverse binarization unit configured to inversely binarize the binary sequence to reconstruct the control parameter of the current block, wherein the context control unit is configured to: determine a signal type of the control parameter of the current block; determine the context under a first condition that decoded control parameters of neighboring blocks of the current block are used, when the signal type is a first type, the neighboring blocks being a left block and an upper block of the current block; and determine the context under a second condition that the decoded control parameter of the upper block is not used, when the signal type is a second type different from the first type, the first type is one of “split_coding_unit_flag” and “skip_flag”, and the second type is one of “cbf_luma”, “cbf_cb”, and “cbf_cr”.
With the configuration, the image decoding apparatus can reduce the memory usage.
Furthermore, the image coding apparatus according to an aspect of the present invention is an image coding apparatus using arithmetic coding, and the apparatus includes: a binarization unit configured to binarize a control parameter of a current block to be processed to generate a binary sequence; a context control unit configured to determine a context for use in the current block, from among a plurality of contexts; and an arithmetic coding unit configured to perform arithmetic coding on the binary sequence using the determined context to generate a bit sequence, wherein the context control unit is configured to: determine a signal type of the control parameter of the current block; determine the context under a first condition that control parameters of neighboring blocks of the current block are used, when the signal type is a first type, the neighboring blocks being a left block and an upper block of the current block; and determine the context under a second condition that the control parameter of the upper block is not used, when the signal type is a second type different from the first type, the first type is one of “split_coding_unit_flag” and “skip_flag”, and the second type is one of “cbf_luma”, “cbf_cb”, and “cbf_cr”.
With the configuration, the image coding apparatus can reduce the memory usage.
Furthermore, the image coding and decoding apparatus according to an aspect of the present invention is an image coding and decoding apparatus including the image decoding apparatus and the image coding apparatus.
The general or specific aspects may be implemented by a system, a method, an integrated circuit, a computer program, or a recording medium, or by an arbitrary combination of the system, the method, the integrated circuit, the computer program, and the recording medium.
The image decoding apparatus and the image coding apparatus according to an aspect of the present invention will be specifically described with reference to drawings.
Embodiments described hereinafter indicate specific examples of the present invention. The values, shapes, materials, constituent elements, positions and connections of the constituent elements, steps, and orders of the steps indicated in Embodiments are examples, and do not limit the present invention. The constituent elements in Embodiments that are not described in independent Claims that describe the most generic concept of the present invention are described as arbitrary constituent elements.
An image coding apparatus according to Embodiment 1 of the present invention will be described. The image coding apparatus according to Embodiment 1 determines a context by switching between (1) using the upper block and (2) without using the upper block, according to a signal type of a control parameter in arithmetic coding. With the structure, the deterioration in image quality can be suppressed, and memory usage can be reduced.
First, a configuration of the image coding apparatus according to Embodiment 1 will be described.
The image coding apparatus 100 in
The control unit 101 calculates a control parameter 130 based on the input image signal 121 to be coded. For example, the control parameter 130 includes information on a picture type of the input image signal 121 to be coded, a size of a unit of motion prediction (prediction unit, PU) of the current block to be coded, and control information of the unit of motion prediction. Here, the control parameter 130 (control data) itself is to be coded. Thus, the control unit 101 outputs the control parameter 130 to the variable length coding unit 104.
The subtracting unit 102 calculates a residual signal 122 that is a difference (residual value) between the input image signal 121 and an image prediction signal 129 on a block unit basis.
The transformation and quantization unit 103 transforms the residual signal 122 into frequency coefficient values and quantizes the obtained frequency coefficient values into quantized transform coefficients 123 (residual data).
The inverse-quantization and inverse-transformation unit 105 inversely quantizes the quantized transform coefficients 123 into the frequency coefficient values and inversely transforms the obtained frequency coefficient values into a reconstructed residual signal 125.
The adding unit 106 adds the residual signal 125 to the image prediction signal 129, and outputs a reconstructed image signal 126.
The intra prediction unit 107 performs intra prediction using the reconstructed image signal 126 to generate an image prediction signal 127. The inter prediction unit 108 performs inter prediction using the reconstructed image signal 126 to generate an image prediction signal 128.
The switch 109 selects one of the image prediction signal 127 and the image prediction signal 128, and outputs the selected signal as the image prediction signal 129.
The variable length coding unit 104 codes, using the CABAC, the quantized transform coefficients 123 and the control parameter 130 for each input block to generate the bitstream 124.
Next, the configuration of the variable length coding unit 104 will be described.
The binarization unit 141 binarizes the control parameter 130 to generate a binary sequence 151. More specifically, the binarization unit 141 is a processing unit that performs “II.1) binarization processing” according to NPL 1. The binarization unit 141 transforms the control parameter 130 into the binary sequence 151 referred to as “bin string” for each signal type, according to a predetermined binarization method. The correspondence between the signal types and the binarization methods will be described later. When the input control parameter 130 is one binary value, such as a flag, the binarization unit 141 outputs the control parameter 130 as the binary sequence 151 as it is.
The context control unit 142 determines a context for use in arithmetic coding of the control parameter 130 included in a current block to be processed, from among a plurality of contexts (a probability state table). Furthermore, the context control unit 142 outputs a context index 152 specifying the determined context to the binary arithmetic coding unit 143.
More specifically, the context control unit 142 is a processing unit that performs “2) context modeling” according to NPL 1. The context control unit 142 sequentially receives a plurality of elements included in the binary sequence 151 output from the binary arithmetic coding unit 143. The context control unit 142 selects one of the contexts to be used for the binary of the control parameter 130, according to the signal type of the control parameter 130 and an element position of the binary in the binary sequence 151, and outputs, to the binary arithmetic coding unit 143, the context index 152 that is an index indicating the selected context.
Furthermore, the context control unit 142 holds the probability state table of values (context index values) obtained by dividing the elements in the binary sequence of the control parameter 130 into conditions of conditional probabilities, as states of the context, and initializes and updates the probability state table.
Furthermore, the context control unit 142 holds a state (probability state index) for each occurrence condition τ (for each context), as a further division of a signal type (for each element number in the binary sequence of the control parameter 130 when the number of elements in the binary sequence is two or more; the same will apply hereafter). The state is represented by the total 7-bit value by combining the occurrence probability P (internal ratio, typically, a 6-bit value) that is the lower probability of one of two values 0 and 1, and a 1-bit value indicating which one of the values has the higher probability. Furthermore, holding a state means initializing and updating the state. For example, the updating corresponds to changing the indexing that indicates a current probability state (that is, a probability) as a transition among 64 finite states as in H.264.
When an event X at the most probable side having the highest probability between the two values occurs, a ratio of the probability at the most probable side is slightly increased. For example, the context control unit 142 can slightly increase the ratio of the probability at the most probable side by incrementing or decrementing, by 1, the value of the probability state index corresponding to 64 tables. On the other hand, when an event Not-X having the lower probability (against the predicted probability) occurs, the context control unit 142 largely decreases the ratio of the held most probable probability based on a predetermined scale coefficient a (for example, ≈0.95) (see
The binary arithmetic coding unit 143 performs arithmetic coding on the binary sequence 151 using the context determined by the context control unit 142 to generate the bitstream 124 (bit sequence).
More specifically, the binary arithmetic coding unit 143 is a processing unit that performs “3) binary arithmetic coding” according to NPL 1. The binary arithmetic coding unit 143 performs arithmetic coding on the binary sequence 151 using the context specified by the context index 152 to generate the bitstream 124. Here, the arithmetic coding is to handle events occurring for the control parameters 130 of various signal types as a cumulative sum of probabilities, and determine correspondences between the events by narrowing down the range to a predetermined range on one number line.
First, the binary arithmetic coding unit 143 divides the one number line into two half sections, according to the occurrence probabilities of two possible values of the binary given from the context control unit 142. When the actual value occurring for the binary (for example, 0) is a value with a higher probability (exceeding 0.5 (for example, 0.75)), the binary arithmetic coding unit 143 maintains the lower limit “Low” in the range on the number line without change, and sets a value corresponding to a result of multiplying one time a scale coefficient 0.95 by the probability 0.75 this time, to a new range. On the other hand, when the actually generated binary value is a predicted value with a lower probability, the binary arithmetic coding unit 143 shifts the lower limit “Low” by the higher probability, and changes the range according to the lower probability. The sections are held according to a cumulative sum of results of multiplications of the probability ranges. When a value with a lower probability successively occurs, the precision of the length of the range becomes soon lower than the precision that can be ensured by a computation. Here, the binary arithmetic coding unit 143 enlarges (renorms) the range to maintain the precision, and outputs the bit sequence indicating the current range. Conversely, when a value with a higher probability (0.95, etc.) successively occurs, the probability values can bear a number of computations (state transitions in the case of implementation by a table) until the length of the range becomes shorter than a predetermined length even with the multiplication of the values. Thus, the number of symbols that can be cumulated until the bit is output is many.
The meaning of each column will be described from the left of the table.
(c2) Signal type (syntax element) indicates a specific name of a signal type of the control parameter 130. The meaning of each of the signal types will be described later.
(c3) Binarization scheme indicates a binarization scheme to be applied to the control parameter 130 (SE) specified in the immediately left column. The binarization unit 141 performs the binarization process. In the column, “Fixed length” means that the binarization unit 141 outputs the value of the control parameter 130 at the immediately left section as a binary sequence (bin string) of a fixed length. In HEVC, a signal type of the control parameter 130 whose name ends with “flag” is one binary value of either 0 or 1. Thus, the binarization unit 141 outputs only the first element (binIdx=0) as the element of the binary sequence 151, and does not output the elements after the second element (binIdx>=1). In other words, the binarization unit 141 outputs the value of the control parameter 130 as the binary sequence 151 as it is.
Furthermore,“Variable length” in the column means that the binarization unit 141 maps, to a binary sequence, the value of the control parameter 130 using binary sequences with respective variable lengths whose values are associated to have binary lengths in ascending order of the occurrence frequencies (bin string or binary sequences each with the number of elements 1), and outputs the binary sequence. For example, the binarization unit 141 employs and outputs a scheme according to the signal type, such as a (truncated) unary scheme, and a combination of the unary and other exponetional Golomb schemes (see “A. Binarization” of NPL 1). In the case of “Variable length”, the number of elements of the binary sequence 151 is sometimes limited to 1, or is equal to or larger than 2. An inverse binarization unit in an image decoding apparatus to be described later performs transformation inverse to the binarization scheme to reconstruct the input binary sequence into a multi-value or a flag value.
Regarding (c4) Context index of the first element (binIdx=0), the context control unit 142 indicates the choice of a context index (increment) to be applied to the first element included in a binary sequence generated according to the binarization scheme specified in the column of c3. In the column, “0, 1, 2” indicates that the context control unit 142 selects and applies one of three probability state tables (contexts). For example, three context indexes with detailed conditions are prepared for the one signal type “skip_flag”, that is, three contexts are prepared, and the arithmetic coding is performed on the context indexes.
Similarly, “0, 1, 2, 3” in the column c4 indicates that the context to be applied to the first element (binIdx=0) included in the binary sequence 151 is selected from among one of four values, either 0, 1, 2, or 3. The binary sequence 151 is obtained by mapping, to a binary sequence, the value of the control parameter 130 of the signal type specified in the column of c2, according to the binarization scheme in the column of c3. The conditional expressions in the column will be described later.
Regarding (c5) Left block condition L (condL), the context control unit 142 indicates the left block condition to select one of 0, 1, and 2 at the column c4. The left block condition L has a value of true or false determined according to the value of the control parameter of the left block corresponding to the control parameter to be coded (or to be decoded).
For example, in the case where the control parameter (SE) is skip_flag, the left block condition L has the value of true when skip_flag[xL][yL] indicates true (for example, 1), and has the value of false when it indicates false (for example, 0).
Regarding (c6) Upper block condition A, the context control unit 142 indicates the upper block condition to select one of 0, 1, and 2 in coding or decoding elements of a sequence specified in the column c4. The upper block condition A has a value of true or false determined according to the value of the control parameter of the upper block corresponding to the control parameter to be coded (or to be decoded). For example, in the case where the control parameter (SE) is skip_flag, the upper block condition A has the value of true when skip_flag[xA][yA] indicates true (for example, 1), and has the value of false when it indicates false (for example, 0).
Although not illustrated, the signal type of more than two bits is associated with “(c7) Context increment to be applied to binIdx>=1”. This (c7) indicates the context model applied by the context control unit 142 to a binary after the second element in the binary sequence (binary value of a binary sequence element including an index value of binIdx>=1).
In the coding method of Embodiment 1, the following operations are switched according to the signal type of the control parameter 130 for the left block condition L and the upper block condition A (operated using different patterns):
(Pattern 1) Using two neighboring blocks (a determination value of the left block condition L and a determination value of the upper block condition A);
(Pattern 2) Using one neighboring block (only a determination value of the left block condition L); and
(Pattern 3) Using zero neighboring block (using neither a determination value of the left block condition L nor a determination value of the upper block condition A).
First, the binarization unit 141 maps the value of the control parameter 130 to a binary sequence according to a scheme corresponding to the signal type of the control parameter 130 (S101).
Next, the context control unit 142 obtains a basic value of a context for use in arithmetic coding of the control parameter 130 (S102). For example, the context control unit 142 determines the basic value according to the picture type (I, P, or B).
Next, the context control unit 142 determines a context value using one of the patterns 1 to 3, based on the signal type of the control parameter 130 (S103). Here, determining a context value is equivalent to determining an adjustment value (increment value CtxIdxInc) for the basic value of the context.
First, the context control unit 142 determines the signal type of the control parameter 130 (S103). When the signal type of the control parameter 130 is the first type corresponding to the pattern 1 (the first type at S104), the context control unit 142 determines a context value using a determination value derived from values of control parameters of two neighboring blocks (block A and block B) (S105). In other words, the context control unit 142 determines a context under a condition that the control parameters of the two neighboring blocks of the left block and the upper block are used. Here, the context control unit 142 uses both of a result of the determination of (c5) condL and a result of the determination of (c6) condA in
On the other hand, when the signal type of the control parameter 130 is the second type corresponding to the pattern 2 (the second type at S104), the context control unit 142 determines a context value using a value of a control parameter of one neighboring block (one immediately neighboring block in coding order) (S106). In other words, the context control unit 142 determines the context value under a condition that the control parameter of the upper block is not used.
On the other hand, when the signal type of the control parameter 130 is the third type corresponding to the pattern 3 (the third type at S104), the context control unit 142 fixedly determines a context value without using both of the control parameters of the upper block and the left block (S107).
Next, the context control unit 142 adds the increment determined at Step S103 to the basic value of the context index determined at Step S102 to determine a context index value (S108).
Finally, the binary arithmetic coding unit 143 performs arithmetic coding on the binary value of the first element using the context value specified by the context index value determined at Step S108 to generate the bit sequence (bitstream 124) (S109).
Next, when the processes from Steps S102 to S109 are not executed on all the elements included in the binary sequence (No at S110), the variable length coding unit 104 performs the processes from Steps S102 to S109 on the next element included in the binary sequence. On the other hand, when the processes from Steps S102 to S109 are completed on all the elements included in the binary sequence (Yes at S110), the variable length coding unit 104 ends the coding processing on the control parameter of the current block.
As described above, the image coding apparatus 100 according to Embodiment 1 determines a context using the upper block in performing arithmetic coding on the control parameter of the first type, and determines a context without using the upper block for the control parameters of the second and third types.
Compared to the case where the left block and the upper block are used as uniformly “using a context model based on values of control parameters of neighboring blocks”, the image coding apparatus 100 can reduce the memory usage with the configuration. Thus, the image coding apparatus 100 can suppress the deterioration in image quality, and reduce the memory usage.
Embodiment 2 will describe an image decoding apparatus that decodes the bitstream 124 generated by the image coding apparatus 100.
The image decoding apparatus 200 includes a control unit 201, a variable length decoding unit 202, an inverse quantization unit 204, an inverse transformation unit 205, an adding unit 206, an intra prediction unit 207, and an inter prediction unit 208.
The image decoding apparatus 200 performs decoding processing for each bitstream of a predetermined processing unit. The processing unit is, for example, a slice unit or a block unit.
The variable length decoding unit 202 performs arithmetic decoding on the bitstream 124 to generate a control parameter 230 (control data syntax element) and quantized transform coefficients 223 (residual data syntax element values). The control unit 201 receives the generated control parameter 230.
The control unit 201 controls each of the processing units included in the image decoding apparatus 200, according to the control parameter 230.
The inverse quantization unit 204 inversely quantizes the quantized transform coefficients 223 into orthogonal transform coefficients 224.
The inverse transformation unit 205 inversely transforms the orthogonal transform coefficients 224 to reconstruct a residual signal 225. The adding unit 206 adds the residual signal 225 to an image prediction signal (image signal 229) to generate a decoded image signal 226.
The intra prediction unit 207 performs intra prediction using the decoded image signal 226 to generate an image prediction signal 227. The inter prediction unit 208 performs inter prediction using the decoded image signal 226 to generate an image prediction signal 228.
The switch 209 selects one of the image prediction signal 227 and the image prediction signal 228, and outputs the selected signal as the image signal 229 (image prediction signal).
Next, the configuration of the variable length decoding unit 202 will be described.
The context control unit 242 determines a context for use in arithmetic decodinhierag of the control parameter 230 of the current block, from among a plurality of contexts. Furthermore, the context control unit 242 outputs a context index 252 specifying the determined context to the binary arithmetic decoding unit 243.
More specifically, the context control unit 242 uses the same context model as that of the context control unit 142 in
The arithmetic decoding unit 243 performs arithmetic decoding on the bit sequence (bitstream 124) using the context determined by the context control unit 242 to reconstruct the binary sequence 251. More specifically, the arithmetic decoding unit 243 reconstructs the input bit sequence into the binary sequence 251, according to the context (probability state table) specified by the context index given from the context control unit 242.
The inverse binarization unit 241 reconstructs the binary sequence 251 into a control parameter 230 if necessary through the inverse binarization process. As such, the context control unit 142 included in the image coding apparatus 100 and the context control unit 242 included in the image decoding apparatus 200 use the same context model in both of the arithmetic coding and the arithmetic decoding of a control parameter of a certain signal type.
First, the variable length decoding unit 202 obtains the bitstream 124 (S201).
Next, the context control unit 242 determines a signal type of a control parameter to be decoded, according to the data structure of the bitstream 124 (S202).
Next, the context control unit 242 determines a basic value of a context for use in arithmetic decoding of the control parameter to be decoded (S203). For example, the context control unit 242 determines the basic value according to the picture type (I, P, or B).
Next, the context control unit 242 determines a context value using one of the patterns 1 to 3, based on the signal type of the control parameter (S204). Here, determining a context value is equivalent to determining an adjustment value (increment value CtxIdxInc) for the basic value of the context. For example, the context control unit 242 statically determines one of the patterns 1 to 3 based on the signal type of the control parameter by following a predetermined table.
The context control unit 242 switches between neighboring blocks for use in determining a context for obtaining a binary value of the first element included in the binary sequence 251 using the arithmetic decoding, according to the signal type of the control parameter.
First, the context control unit 242 determines the signal type of the control parameter 230 (S205). When the signal type is the first type corresponding to the pattern 1 (the first type at S205), the context control unit 242 determines a context value using control parameters of two neighboring blocks (S206). In other words, the context control unit 242 determines the context value under a condition that decoded control parameters of the two neighboring blocks of the left block and the upper block are used.
On the other hand, when the signal type is the second type corresponding to the pattern 2 (the second type at S205), the context control unit 242 determines a context value using a value of a control parameter of one neighboring block (one immediately neighboring block in coding order) (S207). In other words, the context control unit 242 determines the context value under a condition that the decoded control parameter of the upper block is not used.
On the other hand, when the signal type is the third type corresponding to the pattern 3 (the third type at S205), the context control unit 242 fixedly determines a context value (S208). In other words, the context control unit 242 determines the context value under a condition that the decoded control parameters of the upper block and the left block are not used.
Next, the context control unit 242 adds the increment determined at Step S204 to the basic value of the context index determined at Step S203 to determine a context index value (S209).
Next, the binary arithmetic decoding unit 243 determines one of the elements of the binary sequence through decoding using the context value indicated by the context index value given from the context control unit 242 (S210).
Next, when the processes from Steps S203 to S210 are not executed on all the elements included in the binary sequence (No at S211), the variable length decoding unit 202 performs the processes from Steps S203 to S210 on the next element included in the binary sequence.
On the other hand, when the processes from Steps S203 to S210 are completed on all the elements included in the binary sequence (Yes at S211), the inverse binarization unit 241 changes one or more of the elements of the binary sequence 251 obtained by repeating the processes from Steps S203 to S210 more than one time to generate the control parameter 230 (S212).
As described above, the image decoding apparatus 200 according to Embodiment 2 determines a context using the upper block in performing arithmetic decoding on the control parameter of the first type, and determines a context without using the upper block for the control parameters of the second and third types.
Compared to the case where the left block and the upper block are used as uniformly “using a context model based on values of control parameters of neighboring blocks”, the image decoding apparatus 200 can reduce the memory usage with the configuration. Thus, the image decoding apparatus 200 can suppress the deterioration in image quality, and reduce the memory usage.
For example, when the binary sequence 251 is a flag and has only one element, that is, the binary sequence 251 is composed of 1 binary, the inverse binarization unit 241 may output the binary sequence 251 as it is.
In addition to the description above, the control unit 101 or 201 may control each of the processing units or refer to a value of a memory, through a signal line that is not illustrated.
Although the context control unit 142 or 242 switches between the three patterns 1 to 3 according to a signal type of a control parameter in the above description, it may switch between two of the patterns 1 to 3 according to the signal type. In other words, the context control unit 142 or 242 may switch between using and not using the upper block condition, according to a signal type of a control parameter.
Furthermore, the context control unit 142 or 242 may change a method of switching between the context models selected in such a manner (including a case where the context model increment is changed; the same will apply hereafter) according to predetermined image information. For example, the context control unit 142 or 242 may further switch the switching policy itself, according to the amount of memory, or the size of the horizontal width or a sampling format of an image that affects the number of trainings of each context.
Although the context control unit 142 or 242 switches between using and not using the upper block condition as the simplified description, the context control unit 142 or 242 may combine a case where the upper block is not available to the switching and apply the combined case. For example, the context control unit 142 or 242 may change the switching policy itself, according to whether or not a slice to be processed is an entropy slice (entropy_slice_flag indicates 1 or 0). Similarly, when the availability of the upper neighboring block cannot be ensured, the context control unit 142 or 242 may change the switching policy so as not to use the upper block.
For example, as illustrated in
In other words, the context control unit 142 or 242 may switch from a determination criterion to be applied to a unit smaller than the first unit, to another determination criterion based on a value of a control parameter of the first unit.
Furthermore, the context control unit 142 or 242 may change the determination criterion to be used, according to the characteristics of an image system. For example, the context control unit 142 or 242 may change the determination criterion to be used, according to intervals of I-pictures (setting values of Intra Period).
Although the context control unit 142 or 242 switches between the determination criterions according to the above conditions, it may switch whether or not the upper block is used.
Furthermore, the context control unit 142 or 242 may determine whether or not a control parameter of the upper block is used, according to whether or not the control parameter of the upper block is available in coding or decoding based on a position of the control parameter. In other words, the context control unit 142 or 242 may determine whether or not the control parameter of the upper block is available in decoding, based on a position of the current block, and determine a context using one of the patterns 2 and 3 when the control parameter of the upper block is not available. Furthermore, the context control unit 142 or 242 may determine whether or not a reference value of the upper block is available based on a tree structure for partitioning TU, CU, or PU blocks. In other words, the context control unit 142 or 242 may determine whether or not the control parameter of the upper block is available in decoding, according to the hierarchical depth of a data unit to which each of the control parameters to be processed belongs.
In the example of
Each of the blocks 301 includes NxM pixels. One of the blocks 301 is recursively partitioned inside (typically into four). In other words, one TreeBlock conceptually composes one quad tree. In the block 301B in
Here, the perspective indicates the concept of a plurality of trees having different depths with a root as a base point, such as a tree regarding a coding unit (CU) and a tree regarding residual_data. Here, a value of each control parameter belongs to one of leaf nodes.
Here, whether or not a value of a control parameter of a certain signal type included in an upper block is actually available depends on a type of a tree to which the control parameter belongs. Thus, the context control unit 142 or 242 may change a determination criterion according to a type of a tree to which the control parameter belongs. This change is equivalent to the change to a syntax unit. For example, the context control unit 142 or 242 may use the pattern 2 or 3 in which the upper block is not used for data of an adaptive filter with a data structure such as alf_param, whereas it may use the context model policy (pattern 1) for the other syntaxes as conventionally used. In other words, the second type or the third type may be a control parameter having a predetermined data structure. Furthermore, this means that the determination criterion may be changed according to the type of a tree of a neighboring block.
Furthermore, whether or not the value of the control parameter can be actually used or produces the advantage of reducing the memory usage differs depending on a position of a block in the hierarchical relationship. In other words, the context control unit 142 or 242 may switch between using or not using the upper block, according to a depth of a block and a hierarchical position of the block.
For example, in
Furthermore, in order to reduce memory usage, the context control unit 142 or 242 may select the pattern 1 using the upper block, when the block is not at a depth 0 and the own position is one of the second to the subsequent elements in the vertical partitioning. Here, “depth” indicates the depth from the root. In other words, when a certain block is defined as block[xn],[y0][depth], the determination criterion may be changed according to whether or not the current block satisfies block[xn][(y0) +1][depth]. In other words, the upper blocks are used for the blocks 4 to 9 in
Furthermore, the context control unit 142 or 242 may change these criteria in consideration of the position relationship between the current block and the other slices. Hereinafter, the three hatched blocks 301A, 301B, and 301C in
Here, the block 301A is a start block, and both of the left block and the upper block of the block 301A are included in another slice. The upper block of the block 301B is included in another slice. Both of the left block and the upper block of the block 301C are included in the same slice including the block 301C. The context control unit 142 or 242 may switch the criterion according to such a condition. In other words, the context control unit 142 or 242 may switch the criterion (i) according to whether or not the upper block is included in another slice, (ii) according to whether or not the left block is included in another slice, or (iii) according to both (i) and (ii). In other words, the context control unit 142 or 242 may determine that the control parameter of the upper block is not available in decoding when the current block is at the slice boundary. Accordingly, when the decoding processing on the upper SLICE 1 is not completed, for example, it is possible to perform the decoding processing in consideration of whether or not SLICE 2 can obtain information by itself.
Next, the hierarchical processing unit (multi-layer block structure) will be described.
The image coding apparatus 100 codes moving pictures on a per processing unit, and the image coding apparatus 200 decodes a coded stream on a per processing unit. The processing unit is layered by partitioning the processing unit into small processing units and further partitioning the small processing units into smaller processing units. As the processing unit is smaller, the depth of the processing unit is greater and is hierarchically lower, and the value indicating the depth is larger. Conversely, as the processing unit is larger, the depth of the processing unit is less and is hierarchically higher, and the value indicating the depth is smaller.
The processing unit includes a coding unit (CU), a prediction unit (PU), and a transformation unit (TU). A CU is a block of 128×128 pixels at maximum, and is a unit corresponding to a conventional macroblock. A PU is a basic unit for the inter prediction. A TU is a basic unit for orthogonal transformation, and has a size identical to that of PU or much smaller than PU. A CU is, for example, partitioned into 4 sub-CUs, and one of the sub-CUs includes a PU and a TU having the same size as that of the sub-CU (here, PU and TU overlap one another). For example, the PU is further partitioned into 4 sub-PUs, and the TU is further partitioned into 4 sub-CUs. When the processing unit is partitioned into smaller processing units, each of the smaller processing units is referred to as a sub-processing unit. For example, when the processing unit is a CU, the sub-processing unit is a sub-CU. When the processing unit is a PU, the sub-processing unit is a sub-PU. Furthermore, when the processing unit is a TU, the sub-processing unit is a sub-TU.
More specifically, the below indicates the details.
One picture is partitioned into one or more slices. A slice is a sequence of the largest coding unit. The position of the largest coding unit is indicated by an address of the largest coding unit lcuAddr.
Each of the coding units including the respective largest coding units is partitioned into four coding units. As a result, a quad tree having the size of a CU is constructed. The position of the CU is indicated by a coding unit index cuIdx having a sample (pixel or coefficients) at the upper left corner of the largest coding unit as a starting point.
When partitioning of a CU is not permitted, the CU is handled as a PU. Similarly as the CU, the position of a PU is indicated by a prediction unit index puIdx having a sample at the upper left corner of the largest coding unit as a starting point.
The PU may include partitions (PU partitions or sub-PUs). The PU partition is indicated by a prediction-unit partition index puPartIdx having a sample at the upper left corner of the PU as a starting point.
The PU may include TUs. Similarly as the CU, the TU may be partitioned into four smaller TUs (sub-TUs). This indicates the permission of the quad tree partitioning of a residual signal. The position of the TU is indicated by a transformation unit index tuIdx having a sample at the upper left corner of the PU as a starting point.
Here, the definition of each of the processing units is as follows:
CTB (coding tree block): Basic unit for identifying quad tree partitioning of a square region. Having various square sizes;
LCTB (largest coding tree block): The largest CTB permitted in a slice. A slice includes a plurality of LCTBs that do not overlap one another;
SCTB (smallest coding tree block): The smallest CTB permitted in a slice. Partitioning of a SCTB into smaller CTBs is not permitted;
PU (prediction unit): Basic unit for identifying prediction processing. A PU is as large as a CU in which partitioning is not permitted. Although partitioning a CU into four square regions is permitted, a PU can be partitioned into a plurality of partitions having any shape;
TU (transform unit): Basic unit for identifying transformation and quantization;
CU (coding unit): Same as CTB;
LCU (largest coding unit): Same as the largest CTB; and
SCU (smallest coding unit): Same as the smallest CTB.
Furthermore, quantization parameters include at least one of a delta quantization scale parameter (delta QP or QP delta), a quantization offset parameter, an index (Q matrix select idc), and a quantization dead zone offset parameter. The index is for selecting one of quantized scaling matrices.
The delta quantization scale parameter (delta QP or QP delta) is a difference between a quantization scale parameter to be applied to transform coefficients and a quantization scale parameter specified by a sequence header or a slice header (or a quantization scale parameter immediately before in Z scanning order).
The quantization offset parameter is also referred to as a quantization offset, and is an adjustment value (offset value) for rounding a signal in performing quantization. Thus, when the image coding apparatus 100 performs quantization, it codes the quantization offset. Then, the image decoding apparatus 200 decodes the coded quantization offset. Next, the image decoding apparatus 200 performs correction using the quantization offset when inversely quantizing the transform coefficients.
An index (Qmatrix select idc) is referred to as an adaptive quantization matrix, and indicates which quantization scaling matrix is used from among a plurality of quantization scaling matrices. Furthermore, when there is only one quantization scaling matrix, Qmatrix select idc indicates whether or not the quantization scaling matrix is used. The adaptive quantization matrix can be controlled per block unit (processing unit).
The quantization dead zone offset parameter is referred to as an adaptive dead zone, and is control information for adaptively changing a dead zone per block. The dead zone is a width whose frequency coefficients become 0 by quantization (last width that becomes +1 or −1 after the quantization).
Although a case where the pattern 3 with which a predetermined fixed value is used as a context value is described hereinbefore, the case may be performed under the condition that the control parameters of the upper block and the left block are not used, and further under the condition without using the control parameters of the upper block and the left block as the pattern 3. For example, the context control unit 142 or 242 may determine a context according to the hierarchical depth of a data unit to which each of the control parameters belongs, as the pattern 3.
Embodiment 3 will describe which signal type should be used as the first type and the second type (or the third type).
More specifically, the present inventors have verified each of the signal types below among the signal types as indicated in
The verification is in conformity with the structure (setting parameter and software version HM3.0) described in JCTVC-E700, “Common test conditions and software reference configurations” (see NPL 3). Furthermore, each of the test images has a length limited to 49 frames.
The image coding method and the image decoding method according to Embodiment 3 relate to CABAC. Thus, the verification has been conducted using the following four test patterns that are a set of setting values each indicating 1 as the value of Symbol Mode (#0: LCEC, 1: CABAC):
4.1 Intra, high-efficiency setting;
4.3 Random access, high-efficiency setting;
4.5 Low delay, high-efficiency setting; and
4.7 Low delay, high-efficiency setting (P slices only).
The evaluation is made based on an evaluation value called a “BD-rate” that is used as an evaluation standard uniformly used for an implementation evaluation in HEVC. Y BD-rate, U BD-rate, and V BD-rate are BD-rates for a YUV color space, and are evaluation standard values. According to VCEG-AI11 (NPL 4), the BD-rate is an evaluation value obtained by integrating two pairs of code amounts with a result of PSNR, and representing the coding efficiency according to the area ratio. Furthermore, the BD-rate indicating a minus value means that the coding efficiency has been improved. The comparison criteria are based on a result of the output of a reference program which implements the pattern 1. The results of the patterns 2 and 3 are shown with respect to the result of the pattern 1.
The following describes a result of the verification on each of the signal types:
(First verification) split_coding_unit_flag;
(Second verification) skip_flag; and
(Third verification) cbf_luma, cbf_cr, cbf_cb.
(First verification) split_coding_unit_flag
The verification is conducted by changing the context model from the pattern 1 to the pattern 2 or 3 only for a signal type to be verified, without changing the context model for the other signal types and the verification parameter specified in NPL 3. In the column in
The meaning of the signal type “split_coding_unit_flag” is defined as follows.
split_coding_unit_flag[x0][y0] specifies whether a coding unit is split into coding units with half horizontal and vertical size. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. In other words, “split_coding_unit_flag” indicates whether or not the target CU is partitioned into four. More specifically, the target CU is partitioned when split_coding_unit_flag indicates 1, whereas the target CU is not partitioned when split_coding_unit_flag indicates 0.
Data of split_coding_unit_flag is structured into a coding tree syntax as a syntax. The image decoding apparatus parses a bit sequence in accordance with the syntax of this data structure.
The result of the verification in each of
Furthermore, the evaluation value is represented by the evaluation standard indicating a value relative to an evaluation value in the case of the pattern 1 in which both of the left block and the upper block are used. More specifically, when the evaluation value is positive, the result is inferior to the evaluation value (BD-rate) in the case of the pattern 1. Furthermore, when the evaluation value is negative, the result is more improved than the evaluation value in the case of the pattern 1.
The result clarifies that the pattern 1 is superior as a pattern of a context model for split_coding_unit_flag. In other words, the evaluation values obtained by the patterns 2 and 3 are inferior to that of the pattern 1.
Thus, when the signal type of a control parameter is split_coding_unit_flag, the context control unit 142 or 242 determines a context value using the pattern 1 that is a conventional pattern of a context model, in terms of the BD-rate.
(Second verification) skip_flag
The meaning of the signal type “skip_flag” is defined as follows.
skip_flag[x0][y0] equal to 1 specifies that for the current coding unit, when decoding a P or B slice, no more syntax elements except the motion vector predictor indices are parsed after skip_flag[x0][y0]. skip_flag[x0][y0] equal to 1 specifies that the coding unit is not to be skipped. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the considered coding block relative to the top-left luma sample of the picture. In other words, skip_flag indicates whether or not the target CU is to be skipped (handled as a skipped block).
Data of skip_flag is structured into a coding unit syntax as a syntax. In other words, skip_flag is set for each CU. The image decoding apparatus parses a bit sequence in accordance with the syntax of this data structure.
The result of the verification in each of
The result clarifies that the pattern 1 is superior as a pattern of a context model for “skip_flag”. In other words, the evaluation values obtained by the patterns 2 and 3 are inferior to that of the pattern 1.
Thus, when the signal type of a control parameter is “skip_flag”, the context control unit 142 or 242 determines a context value using the pattern 1 that is a conventional pattern of a context model, in terms of the BD-rate.
(Third verification) “cbf_luma, cbf_cr, cbf_cb”
The meaning of the signal type “cbf_luma” is defined as follows.
cbf_lunna[x0][y0][trafoDepth] equal to 1 specifies that the luma transform block contains one or more transform coefficient levels not equal to 0. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the considered transform block relative to the top-left luma sample of the picture. The array index trafoDepth specifies the current subdivision level of a coding unit into blocks for the purpose of transform coding. trafoDepth is equal to 0 for blocks that correspond to coding units.
In other words, the position of the luma transform block is defined as a value of a three-dimensional array including a hierarchical depth (trafoDepth) relative to a layer of a CU, in addition to the vertical and horizontal elements.
Furthermore, a signal type “cbf_cb” defines cbf_luma regarding luma for chroma (cb). The meaning of the signal type “cbf_cb” is defined as follows.
cbf_cb[x0][y0][trafoDepth] equal to 1 specifies that the Cb transform block contains one or more transform coefficient levels not equal to 0. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the considered transform block relative to the top-left luma sample of the picture. The array index trafoDepth specifies the current subdivision level of a coding unit into blocks for the purpose of transform coding. trafoDepth is equal to 0 for blocks that correspond to coding units. When cbf_cb[x0][y0][trafoDepth] is not present and PredMode is not equal to MODE_INTRA, the value of cbf_cb[x0][y0][trafoDepth] is inferred to be equal to 0.
In other words, the position of the Cb transform block is defined as a value of a three-dimensional array including a hierarchical depth (trafoDepth) relative to a layer of a CU, in addition to the vertical and horizontal elements.
Furthermore, a signal type “cbf_cr” defines cbf_luma regarding luma for chroma (cr). The meaning of the signal type “cbf_cr” is defined as follows.
cbf_cr[x0][y0][trafoDepth] equal to 1 specifies that the Cb transform block contains one or more transform coefficient levels not equal to 0. The array indices x0, y0 specify the location (x0, y0) of the top-left luma sample of the considered transform block relative to the top-left luma sample of the picture. The array index trafoDepth specifies the current subdivision level of a coding unit into blocks for the purpose of transform coding. trafoDepth is equal to 0 for blocks that correspond to coding units. When cbf_cr[x0][y0][trafoDepth] is not present and PredMode is not equal to MODE_INTRA, the value of cbf_cr[x0][y0][trafoDepth] is inferred to be equal to 0.
In other words, the position of the Cb transform block is defined as a value of a three-dimensional array including a hierarchical depth (trafoDepth) relative to a layer of a CU, in addition to the vertical and horizontal elements.
The result of the verification in each of
The result is different from those of the first verification of split_coding_unit_flag and the second verification of skip_flag. There is no significant difference in BD-rate between the patterns 1 and 2 or 3 as a pattern of a context model for cbf_luma, cbf_cr, and cbf_cb.
Thus, under a mixed environment with a plurality of control parameters of signal types, the context control unit 142 or 242 determines a context value without using the upper block as a neighboring block particularly when the signal type of the control parameter is cbf_luma, cbf_cr, and cbf_cb. In other words, the context control unit 142 or 242 determines a context value using the lo pattern 2 or 3 when the signal type of the control parameter is cbf_luma, cbf_cr, and cbf_cb. In other words, the first type includes “split_coding_unit_flag” or “skip_flag”, and the second type or the third type includes “cbf_luma, cbf_cr, and cbf_cb”. Accordingly, the image coding apparatus and the image decoding apparatus according to Embodiment 3 can reduce memory usage while suppressing the decrease in the BD-rate.
When the pattern 2 is compared with the pattern 3 for cbf_luma, cbf_cr, and cbf_cb, these BD-rates have no significant difference. Thus, it is preferred to use the pattern 3 for cbf_luma, cbf_cr, and cbf_cb. Accordingly, it is possible to further reduce the memory usage and the processing amount.
Furthermore, cbf_luma, cbf_cb, and cbf_cr are values of a three-dimensional array having a depth. Thus, as described for
Thus, the context control unit 142 and 242 may change a determination criterion of a conditional value according to the hierarchical depth. For example, the context control unit 142 and 242 may use (follow) a conditional value of a block in the higher layer as a conditional value of a block in the lower layer.
Furthermore, the context control unit 142 and 242 may change these criteria in consideration of the position relationship with another slice, in addition to the above or singly.
As a result of the above verifications, the following detailed modification is conceivable. Whether or not the dilution effect occurs depends on the number of trainings to which the condition is applied. Generally, Y that represents luminance in Y, U, and V, such as the 4:2:0 format, is greater in number of samples than the other two axes (U and V). Thus, one boundary that should be distinguished is between (a) luma and (b) a pair of cb and cr.
For example, the pattern 3 may be applied to (a) cbf_luma, and the other pattern 2 or 1 may be applied to (b) cbf_cb and cbf_cr. In other words, the context control unit 142 and 242 may determine a context using a different condition for each case where the signal type is the “cbf_luma”, or the signal type is one of the “cbf_cb” and the “cbf_cr”.
Here, when the number of trainings is sufficient, it is preferred that the context control unit 142 and 242 increase the number of (context) conditions for the precision. Furthermore, it is preferred that the context control unit 142 and 242 decrease the number of the context conditions when the number of trainings is less. Thus, the context control unit 142 and 242 may switch between these conditions according to the resolution. Furthermore, the context control unit 142 and 242 may switch between these conditions according to the format (4:2:0) and others.
Furthermore, cbf_luma, cbf_cr, and cbf_cb indicate the presence or absence of coefficients of luma or chroma. In other words, cbf_luma, cbf_cr, and cbf_cb are hierarchically lower than no_residual_data_flag indicating the presence or absence of residual data. Here, no_residual_data_flag is used for the largest TU that can be selected for the size of a CU in a relationship of CU≥PU≥TU. More specifically, no_residual_data_flag is used in the top layer of a TU. On the other hand, cbf_luma, cbf_cr, and cbf_cb are used in a layer lower than the layer of no_residual_data_flag. The presence of no_residual_data_flag indicates that the subsequent blocks have no residual data. Furthermore, as the depth is greater, the residual data is probably present. Thus, the context control unit 142 and 242 can improve the coding efficiency using the hierarchical information for cbf_luma, cbf_cr, and cbf_cb. In other words, the context control unit 142 and 242 may determine a context according to a hierarchical depth of a data unit to which the control parameter (cbf_luma, cbf_cr, and cbf_cb) of the current block belongs. On the other hand, since no_residual_data_flag is a flag that depends on a prediction mode, it is preferred that a fixed value that does not depend on a depth as a lo context value is used.
Although the image coding apparatus and the image decoding apparatus according to Embodiments 1 to 3 of the present invention are described, the present invention is not limited to these Embodiments.
For example, at least part of the image coding apparatus, the image decoding apparatus, and functions of the modifications of these apparatuses according to Embodiments 1 to 3 may be combined.
Furthermore, all the values and the logical values described above are exemplifications for specifically describing the present invention, and the present invention is not limited by the exemplified values.
Furthermore, the divisions of the functional blocks in the block diagrams are examples. Thus, the functional blocks may be implemented as one functional block, one functional block may be divided into a plurality of functional blocks, and a part of the functions may be switched to another functional block. Furthermore, a plurality of functional blocks having similar functions may be processed by single hardware or software in parallel or with time division.
The orders of the steps of the image coding method performed by the image coding apparatus and the image decoding method performed by the image decoding apparatus are for specifically describing the present invention, and may be an order other than the above orders. Furthermore, part of the steps may be performed simultaneously (in parallel) with the other steps.
The processing described in each of Embodiments can be simply implemented by a computer system by recording, onto a recording medium, a program for implementing the structure of the moving image coding method or the moving image decoding method described in Embodiment. The recording medium may be any recording medium as long as the program can be recorded thereon, such as a magnetic disk, an optical disc, a magnetic optical disc, an IC card, and a semiconductor memory.
Hereinafter, the applications to the moving image coding method or the moving image decoding method described in each of Embodiments and a system using the same will be described.
The content providing system ex100 is connected to devices, such as a computer ex111, a personal digital assistant (PDA) ex112, a camera ex113, a cellular phone ex114 and a game machine ex115, via an Internet ex101, an Internet service provider ex102, a telephone network ex104, as well as the base stations ex106 to ex110.
However, the configuration of the content providing system ex100 is not limited to the configuration shown in
In addition, each of the devices may be directly connected to the telephone network ex104, rather than via the base stations ex106 to ex110 which are the fixed wireless stations. Furthermore, the devices may be interconnected to each other via a short distance wireless communication and others.
The camera ex113, such as a digital video camera, is capable of capturing moving images. A camera ex116, such as a digital video camera, is capable of capturing both still images and moving images. Furthermore, the cellular phone ex114 may be the one that meets any of the standards such as Global System for Mobile Communications (GSM), Code Division Multiple Access (CDMA), Wideband-Code Division Multiple Access (W-CDMA), Long Term Evolution (LTE), and High Speed Packet Access (HSPA). Alternatively, the cellular phone ex114 may be a Personal Handyphone System (PHS).
In the content providing system ex100, a streaming server ex103 is connected to the camera ex113 and others via the telephone network ex104 and the base station ex 109, which enables distribution of a live show and others. For such a distribution, a content (for example, video of a music live show) captured by the user using the camera ex113 is coded as described above in each of Embodiments, and the coded content is transmitted to the streaming server ex103. On the other hand, the streaming server ex103 carries out stream distribution of the received content data to the clients upon their requests. The clients include the computer ex111, the PDA ex112, the camera ex113, the cellular phone ex114, and the game machine ex115 that are capable of decoding the above-mentioned coded data. Each of the devices that have received the distributed data decodes and reproduces the coded data.
The captured data may be coded by the camera ex113 or the streaming server ex103 that transmits the data, or the coding processes may be shared between the camera ex113 and the streaming server ex103. Similarly, the distributed data may be decoded by the clients or the streaming server ex103, or the decoding processes may be shared between the clients and the streaming server ex103. Furthermore, the data of the still images and moving images captured by not only the camera ex113 but also the camera ex116 may be transmitted to the streaming server ex103 through the computer ex111. The coding processes may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or shared among them.
Furthermore, generally, the computer ex111 and an LSI ex500 included in each of the devices perform such coding and decoding processes. The LSI ex500 may be configured of a single chip or a plurality of chips. Software for coding and decoding moving images may be integrated into some type of a recording medium (such as a CD-ROM, a flexible disk, a hard disk) that is readable by the computer ex111 and others, and the coding and decoding processes may be performed using the software. Furthermore, when the cellular phone ex114 is equipped with a camera, the video data obtained by the camera may be transmitted. The video data is data coded by the LSI ex500 included in the cellular phone ex114.
Furthermore, the streaming server ex103 may be composed of servers and computers, and may decentralize data and process the decentralized data, record, or distribute data.
As described above, the clients can receive and reproduce the coded data in the content providing system ex100. In other words, the clients can receive and decode information transmitted by the user, and reproduce the decoded data in real time in the content providing system ex100, so that the user who does not have any particular right and equipment can implement personal broadcasting.
The present invention is not limited to the above-mentioned content providing system ex100, and at least either the moving image coding apparatus or the moving image decoding apparatus described in each of Embodiments can be incorporated into a digital broadcasting system ex200 as shown in
Furthermore, a reader/recorder ex218 that (i) reads and decodes the multiplexed data recorded on a recording media ex215, such as a DVD and a BD, or (ii) codes video signals in the recording medium ex215, and in some cases, writes data obtained by multiplexing an audio signal on the coded data can include the moving image decoding apparatus or the moving image coding apparatus as shown in each of Embodiments. In this case, the reproduced video signals are displayed on the monitor ex219, and another apparatus or system can reproduce the video signals, using the recording medium ex215 on which the multiplexed data is recorded. Furthermore, it is also possible to implement the moving image decoding apparatus in the set top box ex217 connected to the cable ex203 for a cable television or the antenna ex204 for satellite and/or terrestrial lo broadcasting, so as to display the video signals on the monitor ex219 of the television ex300. The moving image decoding apparatus may be included not in the set top box but in the television ex300.
Furthermore, the television ex300 further includes: a signal processing unit ex306 including an audio signal processing unit ex304 and a video signal processing unit ex305 that decode audio data and video data and code audio data and video data, respectively; a speaker ex307 that provides the decoded audio signal; and an output unit ex309 including a display unit ex308 that displays the decoded video signal, such as a display. Furthermore, the television ex300 includes an interface unit ex317 including an operation input unit ex312 that receives an input of a user operation. Furthermore, the television ex300 includes a control unit ex310 that controls overall each constituent element of the television ex300, and a power supply circuit unit ex311 that supplies power to each of the elements. Other than the operation input unit ex312, the interface unit ex317 may include: a bridge ex313 that is connected to an external device, such as the reader/recorder ex218; a slot unit ex314 for enabling attachment of the recording medium ex216, such as an SD card; a driver ex315 to be connected to an external recording medium, such as a hard disk; and a modem ex316 to be connected to a telephone network. Here, the recording medium ex216 can electrically record information using a non-volatile/volatile semiconductor memory element for storage. The constituent elements of the television ex300 are connected to one another through a synchronous bus.
First, a configuration in which the television ex300 decodes the multiplexed data obtained from outside through the antenna ex204 and others and reproduces the decoded data will be described. In the television ex300, upon receipt of a user operation from a remote controller ex220 and others, the multiplexing/demultiplexing unit ex303 demultiplexes the multiplexed data demodulated by the modulation/demodulation unit ex302, under control of the control unit ex310 including a CPU. Furthermore, the audio signal processing unit ex304 decodes the demultiplexed audio data, and the video signal processing unit ex305 decodes the demultiplexed video data, using the decoding method described in each of Embodiments, in the television ex300. The output unit ex309 provides the decoded video signal and audio signal outside. When the output unit ex309 provides the video signal and the audio signal, the signals may be temporarily stored in buffers ex318 and ex319, and others so that the signals are reproduced in synchronization with each other. Furthermore, the television ex300 may read the multiplexed data not through a broadcast and others but from the recording media ex215 and ex216, such as a magnetic disk, an optical disc, and an SD card. Next, a configuration in which the television ex300 codes an audio signal and a video signal, and transmits the data outside or writes the data on a recording medium will be described. In the television ex300, upon receipt of a user operation from the remote controller ex220 and others, the audio signal processing unit ex304 codes an audio signal, and the video signal processing unit ex305 codes a video signal, under control of the control unit ex310 using the image coding method as described in each of Embodiments. The multiplexing/demultiplexing unit ex303 multiplexes the coded video signal and audio signal, and provides the resulting signal outside. When the multiplexing/demultiplexing unit ex303 multiplexes the video signal and the audio signal, the signals may be temporarily stored in buffers ex320 and ex321, and others so that the signals are reproduced in synchronization with each other. Here, the buffers ex318 to ex321 lo may be plural as illustrated, or at least one buffer may be shared in the television ex300. Furthermore, data may be stored in a buffer other than the buffers ex318 to ex321 so that the system overflow and underflow may be avoided between the modulation/demodulation unit ex302 and the multiplexing/demultiplexing unit ex303, for example.
Furthermore, the television ex300 may include a configuration for receiving an AV input from a microphone or a camera other than the configuration for obtaining audio and video data from a broadcast or a recording medium, and may code the obtained data. Although the television ex300 can code, multiplex, and provide outside data in the description, it may be not capable of performing all the processes but capable of only one of receiving, decoding, and providing outside data.
Furthermore, when the reader/recorder ex218 reads or writes the multiplexed data from or in a recording medium, one of the television ex300 and the reader/recorder ex218 may decode or code the multiplexed data, and the television ex300 and the reader/recorder ex218 may share the decoding or coding.
As an example,
Although the optical head ex401 irradiates a laser spot in the description, it may perform high-density recording using near field light.
Although an optical disc having a layer, such as a DVD and a BD is described as an example in the description, the optical disc is not limited to such, and may be an optical disc having a multilayer structure and capable of being recorded on a part other than the surface. Furthermore, the optical disc may have a structure for multidimensional recording/reproduction, such as recording of information using light of colors with different wavelengths in the same portion of the optical disc and recording information having different layers from various angles.
Furthermore, the car ex210 having the antenna ex205 can receive data from the satellite ex202 and others, and reproduce video on the display device such as the car navigation system ex211 set in the car ex210, in a digital broadcasting system ex200. Here, a configuration of the car navigation system ex211 will be the one for example, including a GPS receiving unit in the configuration illustrated in
Next, an example of a configuration of the cellular phone ex114 will be described with reference to
When a call-end key or a power key is turned ON by a user's operation, the power supply circuit unit ex361 supplies the respective units with power from a battery pack so as to activate the cell phone ex114.
In the cellular phone ex114, the audio signal processing unit ex354 converts the audio signals collected by the audio input unit ex356 in voice conversation mode into digital audio signals under the control of the main control unit ex360 including a CPU, ROM, and RAM. Then, the modulation/demodulation unit ex352 performs spread spectrum processing on the digital audio signals, and the transmitting and receiving unit ex351 performs digital-to-analog conversion and frequency conversion on the data, so as to transmit the resulting data via the antenna ex350. Also, in the cellular phone ex114, the transmitting and receiving unit ex351 amplifies the data received by the antenna ex350 in voice conversation mode and performs frequency conversion and the analog-to-digital conversion on the data.
Then, the modulation/demodulation unit ex352 performs inverse spread spectrum processing on the data, and the audio signal processing unit ex354 converts it into analog audio signals, so as to output them via the audio output unit ex357. Furthermore, when an e-mail in data communication mode is transmitted, text data of the e-mail inputted by operating the operation keys ex366 and others of the main body is sent out to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 causes the modulation/demodulation unit ex352 to perform spread spectrum processing on the text data, and the transmitting and receiving unit ex351 performs the digital-to-analog conversion and the frequency conversion on the resulting data to transmit the data to the base station ex110 via the antenna ex350. When an e-mail is received, processing that is approximately inverse to the processing for transmitting an e-mail is performed on the received data, and the resulting data is provided to the display unit ex358.
When video, still images, or video and audio in data communication mode is or are transmitted, the video signal processing unit ex355 compresses and codes video signals supplied from the camera unit ex365 using the moving image coding method shown in each of Embodiments, and transmits the coded video data to the multiplexing/demultiplexing unit ex353. In contrast, during when the camera unit ex365 captures video, still images, and others, the audio signal processing unit ex354 codes audio signals collected by the audio input unit ex356, and transmits the coded audio data to the multiplexing/demultiplexing unit ex353.
The multiplexing/demultiplexing unit ex353 multiplexes the coded video data supplied from the video signal processing unit ex355 and the coded audio data supplied from the audio signal processing unit ex354, using a predetermined method. Then, the modulation/demodulation unit ex352 performs spread spectrum processing on the multiplexed data, and the transmitting and receiving unit ex351 performs digital-to-analog conversion and frequency conversion on the data so as to transmit the resulting data via the antenna ex350.
When receiving data of a video file which is linked to a Web page and others in data communication mode or when receiving an e-mail with video and/or audio attached, in order to decode the multiplexed data received via the antenna ex350, the multiplexing/demultiplexing unit ex353 demultiplexes the multiplexed data into a video data bit stream and an audio data bitstream, and supplies the video signal processing unit ex355 with the coded video data and the audio signal processing unit ex354 with the coded audio data, through the synchronous bus ex370. The video signal processing unit ex355 decodes the video signal using a moving image decoding method corresponding to the moving image coding method shown in each of Embodiments, and then the display unit ex358 displays, for instance, the video and still images included in the video file linked to the Web page via the LCD control unit ex359. Furthermore, the audio signal processing unit ex354 decodes the audio signal, and the audio output unit ex357 provides the audio.
Furthermore, similarly to the television ex300, a terminal such as the cellular phone ex114 probably have 3 types of implementation configurations including not only (i) a transmitting and receiving terminal including both a coding apparatus and a decoding apparatus, but also (ii) a transmitting terminal including only a coding apparatus and (iii) a receiving terminal including only a decoding apparatus. Although the digital broadcasting system ex200 receives and transmits the multiplexed data obtained by multiplexing audio data onto video data in the description, the multiplexed data may be data obtained by multiplexing not audio data but character data related to video onto video data, and may be not multiplexed data but video data itself.
As such, the moving image coding method and the moving image decoding method in each of Embodiments can be used in any of the devices and systems described. Thus, the advantages described in each of Embodiments can be obtained.
Furthermore, the present invention is not limited to Embodiments, and various modifications and revisions are possible without departing from the scope of the present invention.
Video data can be generated by switching, as necessary, between (i) the moving image coding method or the moving image coding apparatus shown in each of Embodiments and (ii) a moving image coding method or a moving image coding apparatus in conformity with a different standard, such as MPEG-2, MPEG4-AVC, and VC-1.
Here, when a plurality of video data that conforms to the different standards is generated and is then decoded, the decoding methods need to be selected to conform to the different standards. However, since to which standard each of the plurality of the video data to be decoded conforms cannot be detected, there is a problem that an appropriate decoding method cannot be selected.
In order to solve the problem, multiplexed data obtained by multiplexing audio data and others onto video data has a structure including identification information indicating to which standard the video data conforms. The specific structure of the multiplexed data including the video data generated in the moving image coding method and by the moving image coding apparatus shown in each of Embodiments will be hereinafter described. The multiplexed data is a digital stream in the MPEG-2 Transport Stream format.
Each stream included in the multiplexed data is identified by PID. For example, 0x1011 is allocated to the video stream to be used for video of a movie, 0x1100 to 0x111F are allocated to the audio streams, 0x1200 to 0x121F are allocated to the presentation graphics streams, 0x1400 to 0x141F are allocated to the interactive graphics streams, 0x1B00 to 0x1B1F are allocated to the video streams to be used for secondary video of the movie, and 0x1A00 to 0x1A1F are allocated to the audio streams to be used for the secondary video to be mixed with the primary audio.
Each of the TS packets included in the multiplexed data includes not only streams of audio, video, subtitles and others, but also a Program Association Table (PAT), a Program Map Table (PMT), and a Program Clock Reference (PCR). The PAT shows what a PID in a PMT used in the multiplexed data indicates, and a PID of the PAT itself is registered as zero. The PMT stores PIDs of the streams of video, audio, subtitles and others included in the multiplexed data, and attribute information of the streams corresponding to the PIDs. The PMT also has various descriptors relating to the multiplexed data. The descriptors have information such as copy control information showing whether copying of the multiplexed data is permitted or not. The PCR stores STC time information corresponding to an ATS showing when the PCR packet is transferred to a decoder, in order to achieve synchronization between an Arrival Time Clock (ATC) that is a time axis of ATSs, and an System Time Clock (STC) that is a time axis of PTSs and DTSs.
When the multiplexed data is recorded on a recording medium and others, it is recorded together with multiplexed data information files.
Each of the multiplexed data information files is management information of the multiplexed data as shown in
As illustrated in
As shown in
In Embodiment 5, the multiplexed data to be used is of a stream type included in the PMT. Furthermore, when the multiplexed data is recorded on a recording medium, the video stream attribute information included in the multiplexed data information is used. More specifically, the moving image coding method or the moving image coding apparatus described in each of Embodiments includes a step or a unit for allocating unique information indicating video data generated by the moving image coding method or the moving image coding apparatus in each of Embodiments, to the stream type included in the PMT or the video stream attribute information. With the structure, the video data generated by the moving image coding method or the moving image coding apparatus described in each of Embodiments can be distinguished from video data that conforms to another standard.
Furthermore,
As such, allocating a new unique value to the stream type or the video stream attribute information enables determination whether or not the moving image decoding method or the moving image decoding apparatus that is described in each of Embodiments can perform decoding. Even upon an input of multiplexed data that conforms to a different standard, an appropriate decoding method or apparatus can be selected. Thus, it becomes possible to decode information without any error. Furthermore, the moving image coding method or apparatus, or the moving image decoding method or apparatus in Embodiment 5 can be used in the devices and systems described above.
Each of the moving image coding method, the moving image coding apparatus, the moving image decoding method, and the moving image decoding apparatus in each of Embodiments is typically achieved in the form of an integrated circuit or a Large Scale Integrated (LSI) circuit. As an example of the LSI,
For example, when coding is performed, the LSI ex500 receives an AV signal from a microphone ex117, a camera ex113, and others through an AV IO ex509 under control of a control unit ex501 including a CPU ex502, a memory controller ex503, a stream controller ex504, and a driving frequency control unit ex512. The received AV signal is temporarily stored in an external memory ex511, such as an SDRAM. Under control of the control unit ex501, the stored data is segmented into data portions according to the processing amount and speed to be transmitted to a signal processing unit ex507. Then, the signal processing unit ex507 codes an audio signal and/or a video signal. Here, the coding of the video signal is the coding described in each of Embodiments. Furthermore, the signal processing unit ex507 sometimes multiplexes the coded audio data and the coded video data, and a stream JO ex506 provides the multiplexed data outside. The provided multiplexed data is transmitted to the base station ex107, or written on the recording media ex215. When data sets are multiplexed, the data sets should be temporarily stored in the buffer ex508 so that the data sets are synchronized with each other.
Although the memory ex511 is an element outside the LSI ex500, it may be included in the LSI ex500. The buffer ex508 is not limited to one buffer, but may be composed of buffers. Furthermore, the LSI ex500 may be made into one chip or a plurality of chips.
Furthermore, although the control unit ex501 includes the CPU ex502, the memory controller ex503, the stream controller ex504, the driving frequency control unit ex512, the configuration of the control unit ex501 is not limited to such. For example, the signal processing unit ex507 may further include a CPU. Inclusion of another CPU in the signal processing unit ex507 can improve the processing speed. Furthermore, as another example, the CPU ex502 may serve as or be a part of the signal processing unit ex507, and, for example, may include an audio signal processing unit. In such a case, the control unit ex501 includes the signal processing unit ex507 or the CPU ex502 including a part of the signal processing unit ex507.
The name used here is LSI, but it may also be called IC, system LSI, super LSI, or ultra LSI depending on the degree of integration.
Moreover, ways to achieve integration are not limited to the LSI, and a special circuit or a general purpose processor and so forth can also achieve the integration. Field Programmable Gate Array (FPGA) that can be programmed after manufacturing LSIs or a reconfigurable processor that allows re-configuration of the connection or configuration of an LSI can be used for the same purpose.
In the future, with advancement in semiconductor technology, a brand-new technology may replace LSI. The functional blocks can be integrated using such a technology. The possibility is that the present invention is applied to biotechnology.
When video data is decoded by the moving image coding method or by the moving image coding apparatus described in each of Embodiments, compared to when video data that conforms to a conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, the computing amount probably increases. Thus, the LSI ex500 needs to be set to a driving frequency higher than that of the CPU ex502 to be used when video data in conformity with the conventional standard is decoded. However, when the driving frequency is set higher, there is a problem that the power consumption increases.
In order to solve the problem, the moving image decoding apparatus, such as the television ex300 and the LSI ex500 is configured to determine to which standard the video data conforms, and switch between the driving frequencies according to the determined standard.
More specifically, the driving frequency switching unit ex803 includes the CPU ex502 and the driving frequency control unit ex512 in
Furthermore, along with the switching of the driving frequencies, the power conservation effect can be improved by changing the voltage to be applied to the LSI ex500 or an apparatus including the LSI ex500. For example, when the driving frequency is set lower, the voltage to be applied to the LSI ex500 or the apparatus including the LSI ex500 is probably set to a voltage lower than that in the case where the driving frequency is set higher.
Furthermore, when the computing amount for decoding is larger, the driving frequency may be set higher, and when the computing amount for decoding is smaller, the driving frequency may be set lower as the method for setting the driving frequency. Thus, the setting method is not limited to the ones described above. For example, when the computing amount for decoding video data in conformity with MPEG 4-AVC is larger than the computing amount for decoding video data generated by the moving image coding method and the moving image coding apparatus described in each of Embodiments, the driving frequency is probably set in reverse order to the setting described above.
Furthermore, the method for setting the driving frequency is not limited to the method for setting the driving frequency lower. For example, when the identification information indicates that the video data is generated by the moving image coding method and the moving image coding apparatus described in each of Embodiments, the voltage to be applied to the LSI ex500 or the apparatus including the LSI ex500 is probably set higher. When the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, the voltage to be applied to the LSI ex500 or the apparatus including the LSI ex500 is probably set lower. As another example, when the identification information indicates that the video data is generated by the moving image coding method and the moving image coding apparatus described in each of Embodiments, the driving of the CPU ex502 does not probably have to be suspended. When the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1, the driving of the CPU ex502 is probably suspended at a given time because the CPU ex502 has extra processing capacity. Even when the identification information indicates that the video data is generated by the moving image coding method and the moving image coding apparatus described in each of Embodiments, in the case where the CPU ex502 may have a time delay, the driving of the CPU ex502 is probably suspended at a given time. In such a case, the suspending time is probably set shorter than that in the case where when the identification information indicates that the video data conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1.
Accordingly, the power conservation effect can be improved by switching between the driving frequencies in accordance with the standard to which the video data conforms. Furthermore, when the LSI ex500 or the apparatus including the LSI ex500 is driven using a battery, the battery life can be extended with the power conservation effect.
There are cases where a plurality of video data that conforms to different standards, is provided to the devices and systems, such as a television and a cellular phone. In order to enable decoding the plurality of video data that conforms to the different standards, the signal processing unit ex507 of the LSI ex500 needs to conform to the different standards. However, the problems of increase in the scale of the circuit of the LSI ex500 and increase in the cost arise with the individual use of the signal processing units ex507 that conform to the respective standards.
In order to solve the problem, what is conceived is a configuration in which the decoding processing unit for implementing the moving image decoding method described in each of Embodiments and the decoding processing unit that conforms to the conventional standard, such as MPEG-2, MPEG4-AVC, and VC-1 are partly shared. Ex900 in
Furthermore, ex1000 in
As such, reducing the scale of the circuit of an LSI and reducing the cost are possible by sharing the decoding processing unit for the processing to be shared between the moving image decoding method in the present invention and the moving image decoding method in conformity with the conventional standard.
Although only some exemplary embodiments of the present invention have been described in detail above, those skilled in the art will readily appreciate that many modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of the present invention. Accordingly, all such modifications are intended to be included within the scope of the present invention.
The present invention is applicable to an image coding method, an image decoding method, an image coding apparatus, and an image decoding apparatus, and in particular, is applicable to an image coding method, an image decoding method, an image coding apparatus, and an image decoding apparatus which use arithmetic coding and arithmetic decoding.
Number | Date | Country | |
---|---|---|---|
61502969 | Jun 2011 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 13535414 | Jun 2012 | US |
Child | 16545278 | US |