Image coding method and image decoding method
10455246 ยท 2019-10-22
Assignee
Inventors
Cpc classification
H04N19/91
ELECTRICITY
H04N19/44
ELECTRICITY
H04N19/46
ELECTRICITY
International classification
H04N19/44
ELECTRICITY
H04N19/46
ELECTRICITY
H04N19/91
ELECTRICITY
H03M7/40
ELECTRICITY
H04N19/13
ELECTRICITY
Abstract
An image coding method for improving coding efficiency by using more appropriate probability information is provided. The image coding method includes: a first coding step of coding a first set of blocks included in a first region sequentially based on first probability information; and a second coding step of coding a second set of blocks included in a second region sequentially based on second probability information. In the first coding step, the first probability information is updated depending on data of a target block to be coded, after coding the target block and before coding a next target block. In the second coding step, the second probability information is updated depending on the first probability information updated in the first coding step, before coding the first target block.
Claims
1. An integrated circuit that decodes an image having a plurality of blocks, said integrated circuit comprising decoding circuitry which, in operation, decodes the blocks sequentially based on probability information indicating a data occurrence probability, wherein said decoding circuitry updates the probability information depending on data of a first target block to be decoded among the blocks, after decoding the first target block and before decoding a second target block to be decoded next among the blocks, and wherein said decoding circuitry decodes a third target block in the blocks based on the probability information (i) which is updated depending on the data of the first target block, the first target block being a neighboring block above the third target block and (ii) which is not updated depending on the data of the second target block, and wherein the third target block (i) is located on a left end of the image, (ii) is different from the second target block, and (iii) is decoded after decoding the first target block.
Description
BRIEF DESCRIPTION OF DRAWINGS
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
(19)
(20)
(21)
(22)
(23)
(24)
(25)
(26)
(27)
(28)
(29)
(30)
(31)
(32)
(33)
(34)
(35)
(36)
(37)
(38)
(39)
(40)
(41)
(42)
(43)
(44)
(45)
(46)
(47)
(48)
(49)
(50)
(51)
(52)
(53)
(54)
(55)
(56)
(57)
(58)
(59)
(60)
(61)
(62)
(63)
(64)
(65)
(66)
(67)
(68)
(69)
(70)
DETAILED DESCRIPTION OF THE INVENTION
(71) The following describes image coding devices according to embodiments of the present invention with reference to the drawings.
First Embodiment
(72) First, the description is given for a summary of an image coding device according to the first embodiment of the present invention. The image coding device according to the first embodiment divides a picture into slices and permits the slices to refer to each other. The image coding device according to the first embodiment adopts, at the beginning of each slice, a symbol occurrence probability table of a neighboring macroblock of the first macroblock in the slice. Thereby, the image coding device according to the first embodiment can use the symbol occurrence probability table appropriate for a target image (macroblock). Therefore, it is possible to improve coding efficiency.
(73) This is the summary of the image coding device according to the first embodiment.
(74) The following describes a structure of the image coding device according to the first embodiment.
(75)
(76) The binarization unit 3 performs binarization of (binarizes) non-binary syntax elements. The symbol occurrence probability storage unit 4 stores probabilities of occurrence of symbols (symbol occurrence probabilities). The context control unit 5 determines which symbol occurrence probability is to be used among the symbol occurrence probabilities stored in the symbol occurrence probability storage unit 4. Then, the context control unit 5 reads the determined symbol occurrence probability from the symbol occurrence probability storage unit 4. The binary arithmetic encoder 6 performs arithmetic coding based on the symbol occurrence probability provided from the context control unit 5. The arithmetic coding unit 2 has the same structure as that of the arithmetic coding unit 1. Therefore, the structure of the arithmetic coding unit 2 will not be explained.
(77) This is the description of the structure of the image coding device according to the first embodiment.
(78) The following describes processing performed by the image coding device shown in
(79) As shown in
(80) Then, the context control unit 5 controls a context using a method defined by H.264 standard (S102). The context control refers to processing of reading a symbol occurrence probability corresponding to a target macroblock to be coded from the symbol occurrence probability storage unit 4 based on information of neighboring macroblock(s) of the target macroblock (neighbor information) and a bit position to be coded, and then providing the symbol occurrence probability to the binary arithmetic encoder 6. Then, based on the symbol occurrence probability, the binary arithmetic encoder 6 arithmetic-codes the target macroblock using a method defined by H.264 standard (S103).
(81) The context control unit 5 stores an updated symbol occurrence probability, which results from the arithmetic coding, into the symbol occurrence probability storage unit 4 (S104). As needed, the symbol occurrence probability storage unit 4 outputs the stored symbol occurrence probability (S105). The symbol occurrence probability outputting will be described later.
(82) Next, the arithmetic coding unit 1 determines whether or not the target macroblock has already been coded (S106). If the target macroblock has already been coded (Yes at S106), then the arithmetic coding unit 1 completes the processing. On the other hand, if the target macroblock has not yet been coded (No at S106), then the arithmetic coding unit 1 repeats the steps from the binarization (S101).
(83)
(84) The initialization of symbol occurrence probabilities at S100 in
(85) If the target macroblock is not the first macroblock in a slice (No at S110), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the target macroblock is the first macroblock in a slice (Yes at S110), then the arithmetic coding unit 1 further determines whether or not the target macroblock is the first macroblock in a picture (S111).
(86) If the target macroblock is the first macroblock in a picture (Yes at S111), then the arithmetic coding unit 1 initializes the symbol occurrence probability table stored in the symbol occurrence probability storage unit 4 using a method defined by H.264 standard (S112). On the other hand, if the target macroblock is not the first macroblock in a picture (No at S111), then the arithmetic coding unit 1 writes (inputs), into the symbol occurrence probability storage unit 4, a symbol occurrence probability table that has been outputted in coding a macroblock immediately above the target macroblock (hereinafter, referred to also as an immediately-above macroblock) (S113).
(87) Next, the symbol occurrence probability outputting at S105 in
(88) If the target macroblock is not positioned on the bottom of a slice or not positioned on the far left of a picture (No at S120), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the target macroblock is positioned on the bottom of a slice and on the far left of a picture (Yes at S120), then the arithmetic coding unit 1 further determines whether or not the target macroblock has already been coded (S121).
(89) If the target macroblock has not yet been coded (No at S121), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the target macroblock has already been coded (Yes at S121), then the arithmetic coding unit 1 causes the symbol occurrence probability storage unit 4 to output a stored symbol occurrence probability table (S122), and then completes the processing.
(90) The processing for an entire picture is described with reference to
(91) More specifically, each macroblock having 16 pixels16 pixels is divided into a plurality of sub-blocks each having 8 pixels8 pixels to be coded. That is, as shown in
(92) This is the description for the image coding device according to the first embodiment.
(93) As described above, the image coding device according to the first embodiment initializes the symbol occurrence probability table only for the first macroblock in a picture. Then, before coding of the first macroblock in each slice, the image coding device writes (inputs), into the symbol occurrence probability storage unit 4, a symbol occurrence probability table outputted for a macroblock that is spatially closest to a previous slice. Thereby, the image coding device can code image using a symbol occurrence probability regarding image at a spatially close position. As a result, it is possible to further improve coding efficiency.
(94) It should be noted in the first embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(95) It should also be noted in the first embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example.
(96) It should also be noted in the first embodiment that
(97) It should also be noted in the first embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(98) It should also be noted in the first embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
Second Embodiment
(99) Here, the description is given for a summary of an image coding device according to the second embodiment of the present invention. The image coding device according to the second embodiment differs from the image coding device according to the first embodiment in that a position of an image for which a symbol occurrence probability table is outputted is spatially closer to a position of an image which is coded based on the outputted symbol occurrence probability table. Thereby, the image coding device according to the second embodiment can further improve coding efficiency.
(100) This is the summary of the image coding device according to the second embodiment.
(101) Since the structure of the image coding device according to the second embodiment is the same as the structure of the image coding device according to the first embodiment, it will be not explained again.
(102) The following describes processing performed by the image coding device according to the second embodiment. The processing performed by the image coding device according to the second embodiment differs from the processing performed by the image coding device according to the first embodiment in the symbol occurrence probability outputting at S105 in
(103) At the beginning, the arithmetic coding unit 1 determines whether or not the target macroblock is positioned on the bottom of a slice (in other words, has a lower border that is a slice border) and on the far left of a picture (S130).
(104) If the target macroblock is not positioned on the bottom of a slice or not positioned on the far left of a picture (No at S130), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the target macroblock is positioned on the bottom of a slice and on the far left of a picture (Yes at S130), then the arithmetic coding unit 1 further determines whether or not a sub-block 2 in the target macroblock has already been coded (S131).
(105) If the sub-block 2 has not yet been coded (No at S131), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the sub-block 2 has already been coded (Yes at S131), then the arithmetic coding unit 1 causes the symbol occurrence probability storage unit 4 to output the stored symbol occurrence probability table (S132), and then completes the processing.
(106) In more detail, as shown in
(107) This is the description for the image coding device according to the second embodiment.
(108) As described above, the image coding device according to the second embodiment writes (inputs), into the symbol occurrence probability storage unit 4, a symbol occurrence probability table outputted for a macroblock that is the first macroblock in each slice and is spatially closest to a previous slice. Thereby, the image coding device according to the second embodiment can code the first macroblock in each slice by using a symbol occurrence probability of a macroblock that is spatially closest to the first macroblock. Then, the image coding device according to the second embodiment can further improve coding efficiency.
(109) It should be noted in the second embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(110) It should also be noted in the second embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(111) It should also be noted that it has been described in the second embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(112) It should also be noted in the second embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(113) It should also be noted in the second embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
Third Embodiment
(114) Here, the description is given for a summary of an image coding device according to the third embodiment of the present invention. The image coding device according to the third embodiment differs from the image coding devices according to the first and second embodiments in that a symbol occurrence probability table outputted for a macroblock that is spatially closer to a target macroblock is used not only in coding the first macroblock in each slice, but in coding any macroblocks. As a result, it is possible to further improve coding efficiency.
(115) This is the summary of the image coding device according to the third embodiment.
(116) The following describes a structure of the image coding device according to the third embodiment. Since the structure of the image coding device according to the third embodiment is the same as the structure of the image coding device according to the first embodiment shown in
(117) This is the description of the structure of the image coding device according to the third embodiment.
(118) The following describes processing performed by the image coding device according to the third embodiment with reference to a flowchart of
(119) Then, the context control unit 5 controls a context using the method defined by H.264 standard (S152). The context control refers to processing of reading a symbol occurrence probability corresponding to a target macroblock from the symbol occurrence probability storage unit 4 based on information of neighbor information of the target macroblock and a bit position to be coded, and then providing the symbol occurrence probability to the binary arithmetic encoder 6. Then, the binary arithmetic encoder 6 performs arithmetic coding using the method defined by H.264 standard (S153).
(120) The arithmetic coding unit 1 stores the updated symbol occurrence probability, which results from the arithmetic coding, into the symbol occurrence probability storage unit 4 (S154). As needed, the arithmetic coding unit 1 causes the symbol occurrence probability storage unit 4 to output the stored symbol occurrence probability (S155). The symbol occurrence probability outputting will be described later.
(121) Next, the arithmetic coding unit 1 determines whether or not the target macroblock has already been coded (S156). If the target macroblock has already been coded (Yes at S156), then the arithmetic coding unit 1 completes the processing. On the other hand, if the target macroblock has not yet been coded (No at S156), then the arithmetic coding unit 1 repeats the steps from the binarization (S151).
(122) The symbol occurrence probability table stored in the symbol occurrence probability storage unit 4 is the same as the symbol occurrence probability table described in the first embodiment and shown in
(123) The calculation of a symbol occurrence probability table at S150 in
(124) At the beginning, as shown in
(125) Here, the average calculation method is determined by the following equation 1, where pStateIdxA denotes the symbol occurrence probability of the immediately-above macroblock, valMPSA denotes a symbol of the immediately-above macroblock, pStateIdxB denotes the symbol occurrence probability of the left macroblock, valMPSB denotes a symbol of the left macroblock, pStateIdx denotes a symbol occurrence probability of the target macroblock, and valMPS denotes a symbol of the target macroblock.
(126) TABLE-US-00001 if (valMPSA == valMPSB) [ pStateIdx = ( pStateIdxA + pStateIdxB ) / 2; valMPS = valMPSA; ] else [ pStateIdx = ( pStateIdxA + pStateIdxB ) / 2; valMPS = valMPSB; if (pStateIdx < 0) [ pStateIdx = pStateIdx; valMPS = valMPSA; ] ] ... (Equation 1)
(127) As determined by the equation 1, if valMPSA is equal to valMPSB, the symbol occurrence probability calculation unit 7 calculate an arithmetic average of pStateIdxA and pStateIdxB. On the other hand, if valMPSA is not equal to valMPSB, the symbol occurrence probability calculation unit 7 performs pseudo sign inversion on pStateIdxA to calculate an arithmetic average.
(128) In the above-described manner, the symbol occurrence probability calculation unit 7 calculates a symbol occurrence probability for each index. The symbol occurrence probability calculation unit 7 thereby generates a symbol occurrence probability table including the calculated symbol occurrence probabilities, and writes the generated symbol occurrence probability table into the symbol occurrence probability storage unit 4.
(129) In referring back to
(130) If there is no macroblock immediately above the target macroblock (No at S160), then the symbol occurrence probability calculation unit 7 determines whether or not there is a macroblock at the immediate left of the target macroblock (S164). If there is a macroblock at the immediate left of the target macroblock (Yes at S164), then the symbol occurrence probability calculation unit 7 writes a symbol occurrence probability table of the left macroblock directly into the symbol occurrence probability storage unit 4 (S165).
(131) On the other hand, if there is no macroblock at the immediate left of the target macroblock (No at S164), this means that there is neither immediately-above macroblock nor left macroblock of the target macroblock. Therefore, the arithmetic coding unit 1 initializes the symbol occurrence probability table (S166). The initialization may be the method defined by H.264 standard. It is possible that the symbol occurrence probability storage unit 4 initializes the stored symbol occurrence probability table. For the initialization of a symbol occurrence probability table, it is also possible that the symbol occurrence probability calculation unit 7 generates an initialized symbol occurrence probability table and writes the generated table into the symbol occurrence probability storage unit 4.
(132) Next, the outputting of a symbol occurrence probability table at S155 in
(133) At the beginning, the arithmetic coding unit 1 determines whether or not there is a macroblock at the immediate right of or immediately below the target macroblock (S170). If there is neither macroblock at the immediate right of nor immediately below the target macroblock (No at S170), then the arithmetic coding unit 1 completes the processing. On the other hand, if there is a macroblock at the immediate right of or immediately below the target macroblock (Yes at S170), then the arithmetic coding unit 1 determines whether or not the target macroblock has already been coded (S171).
(134) If the target macroblock has not yet been coded (No at S171), then the arithmetic coding unit 1 completes the processing without proceeding to any step. On the other hand, if the target macroblock has already been coded (Yes at S171), then the arithmetic coding unit 1 causes the symbol occurrence probability storage unit 4 to output the stored symbol occurrence probability table (S172). In the third embodiment, most of the macroblocks need the outputting of a symbol occurrence probability table. Therefore, the arithmetic coding unit 1 may cause the symbol occurrence probability storage unit 4 to output the stored symbol occurrence probability table, for each of the macroblocks.
(135) The processing for an entire picture is described with reference to
(136) In the third embodiment, slices can refer to each other. Therefore, as shown in
(137) More specifically, as shown in
(138) This is the description for the image coding device according to the third embodiment.
(139) As described above, the image coding device according to the third embodiment codes the first image included in each macroblock, by using symbol occurrence probabilities of the immediately-above and the left macroblocks that are the spatially closest to the target macroblock, and that are not the closest to the macroblock in coding order. Furthermore, the image coding device according to the third embodiment codes the target macroblock using a symbol occurrence probability generated by averaging the two symbol occurrence probabilities of the immediately-above and left macroblocks. Thereby, the image coding device according to the third embodiment can code target image based on a symbol occurrence probability of image that is the spatially closest to the target image. As a result, it is possible to achieve higher coding efficiency.
(140) It should be noted in the image coding device according to the third embodiment that a picture is not necessarily divided into slices. It is possible to use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in
(141) It should also be noted that, as shown in
(142) It should also be noted as shown in
(143) Especially, when images are coded in raster order as shown in
(144) It should also be noted in the third embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(145) It should also be noted in the third embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example.
(146) It should also be noted that it has been described in the third embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(147) It should also be noted in the third embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(148) It should also be noted in the third embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(149) It should also be noted in the third embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
Fourth Embodiment
(150) First, the description is given for a summary of an image coding device according to the fourth embodiment of the present invention. The image coding device according to the fourth embodiment differs from the image coding device according to the third embodiment in that a position of an image for which a symbol occurrence probability table is outputted is spatially closer to a position of an image which is coded based on the outputted symbol occurrence probability table. Thereby, the image coding device according to the fourth embodiment can further improve coding efficiency.
(151) This is the summary of the image coding device according to the fourth embodiment.
(152) Since the structure of the image coding device according to the fourth embodiment is the same as the structure of the image coding device according to the third embodiment, it will be not explained again.
(153) The processing performed by the image coding device according to the fourth embodiment differs from the processing performed by the image coding device according to the third embodiment in the symbol occurrence probability calculation at S150 in
(154) The image coding device according to the third embodiment codes a target macroblock based on symbol occurrence probability table(s) outputted at the time of completing coding of neighboring macroblock(s). In the third embodiment, as obvious from
(155) Symbol occurrence probability outputting at S155 in
(156) If the sub-block 1 has already been coded (Yes at S181), the symbol occurrence probability storage unit 4 outputs a symbol occurrence probability table to be used in the right macroblock (S182). On the other hand, if there is no macroblock at the immediate right of the target macroblock (No at S180), or if the sub-block 1 has not yet been coded (No at S181), then the arithmetic coding unit 1 proceeds to a next step.
(157) Next, the arithmetic coding unit 1 determines whether or not there is a macroblock immediately below the target macroblock (hereinafter, referred to also as an immediately-below macroblock) (S183). If there is a macroblock immediately below the target macroblock (Yes at S183), then the arithmetic coding unit 1 further determines whether or not a sub-block 2 in the immediately-below macroblock has already been coded (S184).
(158) If the sub-block 2 has already been coded (Yes at S184), the symbol occurrence probability storage unit 4 outputs a symbol occurrence probability table to be used in the immediately-below macroblock (S185). On the other hand, if there is no macroblock immediately below the target macroblock (No at S183), or if the sub-block 2 has not yet been coded (No at S184), then the arithmetic coding unit 1 completes the processing.
(159) Moreover, in the symbol occurrence probability calculation at S150 in
(160) By the above-described processing, as shown in
(161) Then, at the time of starting the target sub-block (X in
(162) This is the description for the image coding device according to the fourth embodiment.
(163) As described above, the image coding device according to the fourth embodiment codes a target image based on a symbol occurrence probability table outputted (generated) at the time of processing an neighboring image having 8 pixels8 pixels positioned closer to the target image, and the symbol occurrence probability table has been outputted at the time of completing coding of the neighboring image, not at the time of completing coding of the macroblock including the neighboring image. In addition, the image coding device according to the fourth embodiment codes the target image based on a symbol occurrence probability table generated by averaging two symbol occurrence probability tables obtained from the immediately-above and immediately-left images.
(164) Thereby, the image coding device according to the fourth embodiment can code a target image based on a symbol occurrence probability of image that is the spatially closest to the target image. As a result, it is possible to achieve higher coding efficiency.
(165) It should be noted in the image coding device according to the fourth embodiment that a picture is not necessarily divided into slices. The image coding device according to the fourth embodiment can use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in
(166) It should also be noted that, as shown in
(167) It should also be noted as shown in
(168) Especially, when images are coded in raster order as shown in
(169) It should also be noted in the fourth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(170) It should also be noted in the fourth embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(171) It should also be noted that it has been described in the fourth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(172) It should also be noted in the fourth embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(173) It should also be noted in the fourth embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(174) It should also be noted in the fourth embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
(175) It should also be noted in the fourth embodiment that a symbol occurrence probability is calculated for the first sub-block of the target macroblock. However, a symbol occurrence probability may be calculated in units of smaller images such as bocks each having 8 pixels and 8 pixels.
Fifth Embodiment
(176) First, the description is given for a summary of an image coding device according to the fifth embodiment of the present invention. The image coding device according to the fifth embodiment codes a target macroblock based on a symbol occurrence probability table of a macroblock spatially positioned at the immediate upper left of the target macroblock (hereinafter, referred to also as an upper-left macroblock), as the upper-left macroblock is regarded as a position spatially close to the target macroblock. Therefore, like the image coding device according to the third embodiment, the image coding device according to the fifth embodiment uses information of image positioned spatially close to target image. However, the image coding device according to the fifth embodiment differs from the image coding device according to the third embodiment in shortening a delay in the coding processing.
(177) This is the summary of the image coding device according to the fifth embodiment.
(178) Since the structure of the image coding device according to the fifth embodiment is the same as the structure of the image coding device according to the third embodiment, it will be not explained again.
(179) The following describes processing performed by the image coding device according to the fifth embodiment. The processing performed by the image coding device according to the fifth embodiment differs from the processing performed by the image coding device according to the third embodiment in the symbol occurrence probability calculation at S150 in
(180) Symbol occurrence probability calculation at S150 in
(181) On the other hand, if there is no macroblock at the immediate upper left of the target macroblock (No at S190), then the arithmetic coding unit 1 further determines whether or not there is a macroblock immediately above the target macroblock (S192). If there is a macroblock immediately above the target macroblock (Yes at S192), then the symbol occurrence probability calculation unit 7 writes a symbol occurrence probability table of the immediately-above macroblock into the symbol occurrence probability storage unit 4 (S193).
(182) On the other hand, if there is no macroblock immediately above the target macroblock (No at S192), then the arithmetic coding unit 1 further determines whether or not there is a macroblock at the immediate left of the target macroblock (S194). If there is a macroblock immediately above the target macroblock (Yes at S194), then the symbol occurrence probability calculation unit 7 writes a symbol occurrence probability table of the left macroblock into the symbol occurrence probability storage unit 4 (S195).
(183) If there is no macroblock at the immediate left of the target macroblock (No at S194), this means that there is no macroblock at the left of nor immediately above the target macroblock. Therefore, the arithmetic coding unit 1 initializes the symbol occurrence probability table using the method defined by H.264 standard, and writes the initialized table into the symbol occurrence probability storage unit 4 (S196). It is possible that the symbol occurrence probability storage unit 4 initializes the stored symbol occurrence probability table. For the initialization of a symbol occurrence probability table, it is also possible that the symbol occurrence probability calculation unit 7 generates an initialized symbol occurrence probability table and writes the generated table into the symbol occurrence probability storage unit 4.
(184) By the above-described processing, as shown in
(185) This is description for the processing performed by the image coding device according to the fifth embodiment.
(186) As described above, the image coding device according to the fifth embodiment codes a target macroblock based on a symbol occurrence probability table outputted (obtained) at the time of completing coding of the upper-left macroblock, namely, at the time of completing coding of the sub-block 3 in the upper-left macroblock, as the symbol occurrence probability table of the immediately-above macroblock. In general, images are coded in an order from left to right. Therefore, the image coding device according to the fifth embodiment can start coding earlier, and thereby shorten a delay of the coding.
(187) Moreover, in comparison to the third embodiment where a target image is coded based on a symbol occurrence probability table outputted (obtained) at the time of completing coding of a macroblock, namely, at the time of completing coding of the sub-block 3 in the macroblock, the fifth embodiment codes a target image based on a symbol occurrence probability table outputted at the time of completing coding of an image that is spatially far from the target image by the same distance as that in the third embodiment. Therefore, the image coding device according to the fifth embodiment can shorten a delay in coding to achieve the same coding efficiency as that in the third embodiment.
(188) It should be noted in the image coding device according to the fifth embodiment that a picture is not necessarily divided into slices. It is possible to use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in FIG. 17A.
(189) It should also be noted that, as shown in
(190) It should also be noted as shown in
(191) Especially, when images are coded in raster order as shown in
(192) It should also be noted in the fifth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(193) It should also be noted in the fifth embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(194) It should also be noted that it has been described in the fifth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(195) It should also be noted in the fifth embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(196) It should also be noted in the fifth embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(197) It should also be noted in the fifth embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
(198) It should also be noted in the fifth embodiment that a symbol occurrence probability is calculated for the first sub-block of the target macroblock. However, a symbol occurrence probability may be calculated in units of smaller images such as bocks each having 8 pixels and 8 pixels.
Sixth Embodiment
(199) Here, the description is given for a summary of an image coding device according to the sixth embodiment of the present invention. The image coding device according to the sixth embodiment codes a target image based on (a) a symbol occurrence probability table outputted at the time of completing coding of an upper-left macroblock and (b) a symbol occurrence probability table outputted at the time of completing coding of a sub-block 1 in a left macroblock. Thereby, the image coding device according to the sixth embodiment codes a target image based on a symbol occurrence probability table of image that is spatially positioned closer to the target image in comparison to the image coding device according to the fifth embodiment. As a result, the image coding device according to the sixth embodiment can further improve coding efficiency.
(200) This is the summary of the image coding device according to the sixth embodiment.
(201) Since the structure of the image coding device according to the sixth embodiment is the same as the structure of the image coding device according to the fifth embodiment, it will be not explained again.
(202) The following describes processing performed by the image coding device according to the sixth embodiment. The processing performed by the image coding device according to the sixth embodiment differs from the processing performed by the image coding device according to the fifth embodiment in the symbol occurrence probability outputting at S155 in
(203) Symbol occurrence probability outputting at S155 in
(204) If there is a macroblock at the immediate right of the target macroblock (Yes at S200), then the arithmetic coding unit 1 further determines whether or not a sub-block 1 in the target macroblock has already been coded (S201). If the sub-block 1 has already been coded (Yes at S201), the symbol occurrence probability storage unit 4 outputs a symbol occurrence probability table to be used for the right macroblock (S202). On the other hand, if there is no macroblock at the immediate right of the target macroblock (No at S200), or if the sub-block 1 has not yet been coded (No at S201), then the arithmetic coding unit 1 proceeds to a next step.
(205) Next, the arithmetic coding unit 1 determines whether or not there is a macroblock immediately below the target macroblock (S203). If there is a macroblock immediately below the target macroblock (Yes at S203), then the arithmetic coding unit 1 further determines whether or not a sub-block 3 in the target macroblock has already been coded (S204). If the sub-block 3 has already been coded (Yes at S204), the symbol occurrence probability storage unit 4 outputs a symbol occurrence probability table to be used for the immediately-below macroblock (S205). If there is no macroblock immediately below the target macroblock (No at S203), or if the sub-block 3 in the target macroblock has not yet been coded (No at S204), then the processing is completed.
(206) By the above-described processing, as shown in
(207) Then, at the time of starting the target macroblock (X in
(208) Moreover, in the symbol occurrence probability calculation at S150 in
(209) This is description for the processing performed by the image coding device according to the sixth embodiment.
(210) As described above, the image coding device according to the sixth embodiment codes a target macroblock based on a symbol occurrence probability table outputted at the time of completing coding of a sub-block 1 that is spatially closer in the left macroblock in comparison to the image coding device according to the fifth embodiment. Thereby, the image coding device according to the sixth embodiment can improve coding efficiency more than the image coding device according to the fifth embodiment.
(211) It should be noted in the image coding device according to the sixth embodiment that a picture is not necessarily divided into slices. It is possible to use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in
(212) It should also be noted that, as shown in
(213) It should also be noted as shown in
(214) Especially, when images are coded in raster order as shown in
(215) It should also be noted in the sixth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(216) It should also be noted in the sixth embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(217) It should also be noted that it has been described in the sixth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(218) It should also be noted in the sixth embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(219) It should also be noted in the sixth embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(220) It should also be noted in the sixth embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
(221) It should also be noted in the sixth embodiment that a symbol occurrence probability is calculated for the first sub-block in the target macroblock. However, a symbol occurrence probability may be calculated in units of smaller images such as bocks each having 8 pixels and 8 pixels.
Seventh Embodiment
(222) Here, the description is given for a summary of an image coding device according to the seventh embodiment of the present invention. The image coding device according to any of the above-described embodiments uses arithmetic averaging to calculate a new symbol occurrence probability table from two symbol occurrence probability tables. The image coding device according to the seventh embodiment, however, weighs a symbol occurrence probability table of an image that is spatially closer to a target macroblock, depending on a distance from the target macroblock. Thereby, in the seventh embodiment, the target macroblock is coded based on a symbol occurrence probability table that is more appropriate than that in the sixth embodiment. Therefore, coding efficiency is improved.
(223) This is the summary of the image coding device according to the seventh embodiment.
(224) Since the structure of the image coding device according to the seventh embodiment is the same as the structure of the image coding device according to the sixth embodiment, it will be not explained again.
(225) The following describes processing performed by the image coding device according to the seventh embodiment. The processing performed by the image coding device according to the seventh embodiment differs from the processing performed by the image coding device according to the sixth embodiment in the symbol occurrence probability calculation at S150 in
(226) Like the third embodiment, the sixth embodiment uses the arithmetic averaging determined by Equation 1. However, the seventh embodiment uses weighted averaging determined by Equation 2 given below. In Equation 2, pStateIdxA denotes a symbol occurrence probability of an upper-left macroblock, and valMPSA denotes a symbol of the upper-left macroblock. Furthermore, pStateIdxB denotes a symbol occurrence probability of a left macroblock, and valMPSB denotes a symbol of the left macroblock. In Equation 2, a denotes a spatial distance between: a sub-block 0 that is the first sub-block in a target macroblock; and a sub-block 3 in the upper-left macroblock. In Equation 2, b denotes a spatial distance between: the sub-block 0 that is the first sub-block in the target macroblock; and a sub-block 1 in the left macroblock. pStateIdx denotes a symbol occurrence probability of a macroblock for which a symbol occurrence probability is to be calculated, and valMPS denotes a symbol of the macroblock.
(227) TABLE-US-00002 if(valMPSA == valMPSB) [ pStateIdx = ( pStateIdxA x b + pStateIdxB x a ) / (a + b); valMPS = valMPSA; ] else [ pStateIdx = ( pStateIdxA x b + pStateIdxB x a) / (a + b); valMPS = valMPSB; if (pStateIdx < 0) [ pStateIdx = pStateIdx; valMPS = valMPSA; ] ] ... (Equation 2)
(228) As determined by Equation 2, each symbol occurrence probability is weighted by a spatial distance. As shown in
(229) A distance between a sub-block 3 (B in
(230) This is description for the processing performed by the image coding device according to the seventh embodiment.
(231) As described above, the image coding device according to the seventh embodiment executes weighted averaging based on a spatial distance. Thereby, contribution of a symbol occurrence probability of an image spatially closer to a target image is greater, and contribution of a symbol occurrence probability of an image spatially farther to the target image is smaller. Therefore, a symbol occurrence probability table is more appropriate, and higher coding efficiency than that in the sixth embodiment is achieved.
(232) It should be noted in the seventh embodiment that weighted averaging is applied to the symbol occurrence probability calculation according to the sixth embodiment. However, it is also possible to apply the weighted averaging to the symbol occurrence probability calculation according to any of the third, fourth, and fifth embodiments.
(233) It should be noted in the image coding device according to the seventh embodiment that a picture is not necessarily divided into slices. It is possible to use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in
(234) It should also be noted that, as shown in
(235) It should also be noted as shown in
(236) Especially, when images are coded in raster order as shown in
(237) It should also be noted in the seventh embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(238) It should also be noted in the seventh embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(239) It should also be noted that it has been described in the seventh embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(240) It should also be noted in the seventh embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(241) It should also be noted in the seventh embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(242) It should also be noted in the seventh embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
(243) It should also be noted in the seventh embodiment that a symbol occurrence probability is calculated for the first sub-block in the target macroblock. However, a symbol occurrence probability may be calculated in units of smaller images such as bocks each having 8 pixels and 8 pixels.
Eighth Embodiment
(244) Here, the description is given for a summary of an image coding device according to the eighth embodiment of the present invention. It has been described in the third embodiment that the image coding device codes a target macroblock based on a symbol occurrence probability table that is always calculated from symbol occurrence probability tables of an immediately-above macroblock and a left macroblock. This method can improve coding efficiency. However, the image coding device according to the third embodiment needs to hold a large number of symbol occurrence probability tables of macroblocks above the target macroblock. The image coding device according to the eighth embodiment restricts use of a symbol occurrence probability table immediately above a target macroblock. As a result, it is possible to reduce the number of stored symbol occurrence probability tables.
(245) This is the summary of the image coding device according to the eighth embodiment.
(246) Since the structure of the image coding device according to the eighth embodiment is the same as the structure of the image coding device according to the third embodiment, it will be not explained again.
(247) The following describes a structure of the image coding device according to the eighth embodiment. The processing performed by the image coding device according to the eighth embodiment differs from the processing performed by the image coding device according to the third embodiment in the symbol occurrence probability calculation at S150 in
(248) The symbol occurrence probability calculation at S150 in
(249) If there is a macroblock at the immediate left of the macroblock (Yes at S212), this means that the horizontal position is 64N and there are macroblocks immediately above and at the left of the target macroblock. In this case, the symbol occurrence probability calculation unit 7 averages two symbol occurrence probabilities obtained from the immediately-above macroblock and the left macroblock according to Equation 1 to calculate a symbol occurrence probability table. Then, the symbol occurrence probability calculation unit 7 writes the calculated symbol occurrence probability table into the symbol occurrence probability storage unit 4 (S213).
(250) On the other hand, if there is no macroblock at the immediate left of the target macroblock (No at S212), this means that the horizontal position is 64N and there is a macroblock immediately above the target macroblock but not at the left of the target macroblock. In this case, the symbol occurrence probability calculation unit 7 writes the symbol occurrence probability table of the immediately-above macroblock directly into the symbol occurrence probability storage unit 4 (S214).
(251) On the other hand, if the horizontal position is not 64N (No at S210) or if there is no macroblock immediately above the target macroblock (No S211), then the arithmetic coding unit 1 determines whether or not there is a macroblock at the immediate left of the target macroblock (S215). If there is a macroblock at the immediate left of the target macroblock (Yes at S215), then the symbol occurrence probability calculation unit 7 writes the symbol occurrence probability table of the left macroblock directly into the symbol occurrence probability storage unit 4 (S216).
(252) If there is no macroblock at the immediate left of the target macroblock (No at S215), this means that there is no macroblock immediately above nor at the left of the target macroblock. In this case, the arithmetic coding unit 1 initializes a symbol occurrence probability table (S217). The initialization may be the method defined by H.264 standard. It is possible that the symbol occurrence probability storage unit 4 initializes the stored symbol occurrence probability table. For the initialization of a symbol occurrence probability table, it is also possible that the symbol occurrence probability calculation unit 7 generates an initialized symbol occurrence probability table and writes the generated table into the symbol occurrence probability storage unit 4.
(253) The symbol occurrence probability outputting at S155 in
(254) On the other hand, if the horizontal position is not 64N (No at S220), then the arithmetic coding unit 1 determines whether or not there is a macroblock at the immediate right of the target macroblock (S222). If there is no macroblock at the immediate right of the target macroblock (No at S222), then the arithmetic coding unit 1 completes the processing.
(255) If the horizontal position is 64N and there is a macroblock at the immediate right of or immediately below the target macroblock (Yes at S221), or if the horizontal position is not 64N and there is a macroblock only at the right of the target macroblock (Yes at S222), then the arithmetic coding unit 1 determines whether or not the target macroblock has already been coded (S223). If the target macroblock has not yet been coded (No at S223), then the arithmetic coding unit 1 completes the processing. On the other hand, if the target macroblock has already been coded (Yes at S223), then the arithmetic coding unit 1 outputs a symbol occurrence probability table of the target macroblock (S224).
(256) The processing for an entire picture is described with reference to
(257) Here, it is assumed as shown in
(258) Moreover, a symbol occurrence probability table should be exchanged between the arithmetic coding unit 1 and the arithmetic coding unit 2 only when a macroblock is coded based on information of a macroblock in a different slice. Therefore, the example shown in
(259) This is the description for processing performed by the image coding device according to the eighth embodiment.
(260) As described above, the image coding device according to the eighth embodiment restricts use of a symbol occurrence probability table of an immediately-above macroblock only for every four macroblocks in a horizontal direction. The image coding device according to the eighth embodiment codes a target macroblock based on a symbol occurrence probability table of a macroblock positioned spatially closer to the target macroblock. Thereby, the image coding device according to the eighth embodiment can improve coding efficiency and reduce the held symbol occurrence probability tables.
(261) It should be noted that the eighth embodiment may use weight averaging in the same manner as described in the seventh embodiment.
(262) It should also be noted in the image coding device according to the eighth embodiment that a picture is not necessarily divided into slices. It is possible to use a more appropriate symbol occurrence probability, even if a picture is not divided into slices as shown in
(263) It should also be noted that, as shown in
(264) It should also be noted as shown in
(265) Especially, when images are coded in raster order as shown in
(266) It should also be noted in the eighth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(267) It should also be noted in the eighth embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example. Each of the sub-blocks, which are finer than the macroblocks, may have any size, such as 2 pixels2 pixels or 4 pixels4 pixels.
(268) It should also be noted that it has been described in the eighth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(269) It should also be noted in the eighth embodiment that the above description has been given for coding, but it is, of course, possible to perform decoding by reversing the steps in the coding.
(270) It should also be noted in the eighth embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(271) It should also be noted in the eighth embodiment that the image coding device uses pStateIdx to calculate a symbol occurrence probability. However, pStateIdx does not linearly correspond to an actual symbol occurrence probability. It is therefore possible that the image coding device transforms pStateIdx into an actual symbol occurrence probability to be used in the calculation, and then inversely transforms the symbol occurrence probability to the original pStateIdx. It is also possible that the image coding device calculates a symbol occurrence probability by using a table that is used to calculate a symbol occurrence probability for each pair of pStateIdx values.
(272) It should also be noted in the eighth embodiment that a symbol occurrence probability is calculated for the first macroblock included in each slice or picture. However, a symbol occurrence probability may be calculated in units of smaller images such as bocks each having 8 pixels and 8 pixels.
(273) It should also be noted in the eighth embodiment that one of four macroblocks is coded based on a symbol occurrence probability table of a corresponding immediately-above macroblock. However, it is also possible that one of any other number of macroblocks, for example, one of two macroblocks or one of eight macroblocks, may be coded based on a symbol occurrence probability table of a corresponding immediately-above macroblock. The determination as to whether or not to code a target macroblock based on a symbol occurrence probability table of an immediately-above macroblock may be made according to a spatial position of the target macroblock, or according to any other conditions.
Ninth Embodiment
(274) First, the description is given for a summary of an image coding device according to the ninth embodiment of the present invention. The image coding device according to the ninth embodiment combines the arithmetic coding described in the first embodiment with pixel coding.
(275) This is the summary of the image coding device according to the ninth embodiment.
(276) The following describes processing performed by the image coding device according to the ninth embodiment.
(277) The frame memory 23 stores input images and locally decoded images. Each of the pixel coding units 21 and 22 retrieves a part of an image from the frame memory and codes the retrieved part. Each of the arithmetic coding units 1 and 2 performs arithmetic coding. The neighbor information memory 34 stores information of neighboring macroblocks of a target macroblock. The information is used in coding of the target macroblock. Each of the bitstream buffers 24 and 25 stores a coded bitstream that has been arithmetic coded.
(278) An internal structure of each of the arithmetic coding units 1 and 2 is the same as shown in
(279)
(280) The motion compensation unit 36 performs motion compensation based on a motion vector generated by the motion estimation, thereby generating a prediction image. The intra-picture prediction unit 26 performs intra-picture prediction to generate another prediction image. The differential calculation unit 28 generates a difference between an input image and a prediction image. The frequency transform unit 29 performs frequency transform. The quantization unit 30 performs quantization to reach a target bit rate depending on a generated coding amount. The inverse quantization unit 31 performs inverse quantization. The inverse frequency transform unit 32 performs inverse frequency transform. The reconstruction unit 33 reconstructs an image from a prediction image and a result of inverse frequency transform. The deblocking filter unit 27 performs deblocking filtering on the reconstructed decoded result.
(281) Here, the pixel coding unit 22 is the same as the pixel coding unit 21. Therefore, the pixel coding unit 22 is not shown in
(282) This is the description for the image coding device according to the ninth embodiment.
(283) The following describes processing performed by the image coding device according to the ninth embodiment.
(284)
(285) At the beginning, the motion estimation unit 35 estimates (detects) a part of a locally decoded picture which has the highest correlation with a target macroblock. Then, the motion compensation unit 36 generates a prediction image (S611).
(286) Next, the intra-picture prediction unit 26 examines the neighbor information memory for intra-picture prediction (S001). The neighbor information examination at S001 is processing for determining whether or not the neighbor information memory 34 stores information necessary for intra-picture prediction. The intra-picture prediction unit 26 generates an intra-picture prediction image using images of neighboring macroblocks shown in
(287) Next, the differential calculation unit 28 determines which has a smaller coding amount, an inter-picture prediction macroblock generated by the motion estimation or an intra-picture prediction macroblock generated by the intra-picture prediction. Based on the determination result, the differential calculation unit 28 selects, as a coding mode, between the inter-picture prediction macroblock and the intra-picture prediction macroblock, and calculates differential data between the selected prediction image and the target macroblock (S613).
(288) If the inter-picture prediction macroblock is selected as the coding mode (Yes at S614), then the differential calculation unit 28 examines the neighbor information (S001). The neighbor information examination at S001 is processing for determining whether or not the neighbor information memory 34 stores information necessary for calculation of a differential motion vector.
(289) If it is determined that the neighbor information memory 34 stores information necessary for calculation of a differential motion vector, then the differential calculation unit 28 calculates the differential motion vector (S615). In the differential motion vector calculation, mvd shown in
(290) When the differential motion vector has been calculated, the differential calculation unit 28 writes the calculated motion vector into the neighbor information memory 34 (S002). Here, the neighbor information writing is performed if the neighbor information memory 34 has an available space. Otherwise, the neighbor information writing waits until the neighbor information memory 34 has an available space.
(291) Next, the frequency transform unit 29 performs frequency transform on differential data which has been calculated by the differential calculation unit 28 (S616).
(292) The quantization unit 30 quantizes the data on which the frequency transform has been performed (S617). Here, the quantization unit 30 decides a quantization parameter based on a generated coding amount which has been calculated by the arithmetic coding unit 1, and then performs quantization using the quantized parameter.
(293) If the generated coding amount is predicted to be greater than a predetermined target coding amount, then the quantization unit 30 increases a quantization width to reduce the generated coding amount. On the other hand, if the generated coding amount is predicted to be smaller than the predetermined target coding amount, the quantization unit 30 decreases the quantization width to increase the generated coding amount. This feedback control causes the quantization unit 30 to adjust a generated coding amount to be closer to the target coding amount.
(294) Eventually, the pixel coding performed by the pixel coding unit 21 for generating a coded stream is completed. However, local decoding is necessary to match a reference image with a reference image in an image decoding device. Next, the local decoding is described.
(295) In the local decoding, at the beginning, the inverse quantization unit 31 performs inverse quantization on the target macroblock (S618).
(296) Next, the inverse frequency transform unit 32 performs inverse frequency transform on the target macroblock. (S619).
(297) In the case of the inter-picture prediction macroblock, then the reconstruction unit 33 reconstructs an image from (a) the data on which the inverse frequency transform has been performed and (b) the reference image which has been generated by the motion compensation unit 36 (S620). On the other hand, in the case of the intra-picture prediction macroblock, then the reconstruction unit 33 reconstructs an image from (a) the data for which the inverse frequency transform has been performed and (b) the reference image which has been generated by the intra-picture prediction unit 26 (S620).
(298) After the reconstruction, the reconstruction unit 33 performs neighbor information writing for intra-picture prediction of a next macroblock (S002). Here, the neighbor information writing is performed if the neighbor information memory 34 has an available space. Otherwise, the neighbor information writing waits until the neighbor information memory 34 has an available space.
(299) Next, the deblocking filter unit 27 examines neighbor information for deblocking filtering (S001). The neighbor information examination at S001 is processing for determining whether or not the neighbor information memory 34 stores information necessary for deblocking filtering.
(300) If the neighbor information memory 34 stores information necessary for deblocking filtering, then the deblocking filter unit 27 performs deblocking filtering on the reconstructed image, and stores the resulting image into the frame memory 23 (S621).
(301) After the deblocking filtering, the deblocking filter unit 27 performs neighbor information writing (S002). Then, the pixel coding unit 21 completes the pixel coding. Here, the neighbor information writing is performed if the neighbor information memory 34 has an available space. Otherwise, the neighbor information writing waits until the neighbor information memory 34 has an available space.
(302) The processing performed by the pixel coding unit 22 is the same as the processing performed by the pixel coding unit 21. Therefore, it will not be described again.
(303) Furthermore, the processing performed by each of the arithmetic coding units 1 and 2 is the same as the processing described in the first embodiment. Therefore, it will not be described again.
(304) This is the description for the processing performed by the image coding device according to the ninth embodiment.
(305) As described above, the image coding device according to the ninth embodiment can combine the arithmetic coding with the pixel coding.
(306) It should be noted in the ninth embodiment that the aspect for realizing the arithmetic coding may be any aspect in the above-described embodiments.
(307) It should also be noted in the ninth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the coding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(308) It should also be noted in the ninth embodiment that the image coding device codes image in units of macroblocks each having 16 pixels16 pixels. However, the image coding device may code image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example.
(309) It should also be noted that it has been described in the ninth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(310) It should also be noted in the ninth embodiment that the coding is based on H.264 standard, but the coding may be based on any other similar standards.
(311) It should also be noted in the ninth embodiment that the storage unit in which data is stored is a memory or buffer, but the storage unit may be any type of a memory. The storage unit may be storage means using any different schemes, such as a flip-flop and a hard disk.
(312) It should also be noted that the image coding device according to the ninth embodiment may be implemented as a hardware circuit or software in a processor. It should also be noted that the image coding device according to the ninth embodiment may be implemented in a plurality of processors or in a single processor.
(313) It should also be noted that the image coding device according to the ninth embodiment includes the two bitstream buffers 24 and 25. Another processing unit in the image coding device may read two bitstreams from the two bitstream buffers 24 and 25, and convert the two bitstreams into a single bitstream. In addition, a system encoder may read bitstreams from the two bitstream buffers 24 and 25, and convert the bitstreams into a single bitstream.
Tenth Embodiment
(314) Here, the description is given for a summary of an image decoding device according to the tenth embodiment of the present invention. The image decoding device according to the tenth embodiment corresponds to the image coding device according to the ninth embodiment.
(315) This is the summary of the image decoding device according to the tenth embodiment.
(316) The following describes a structure of the image decoding device according to the tenth embodiment.
(317)
(318)
(319) The arithmetic decoding unit 41 is the same as the arithmetic decoding unit 40. Therefore, the arithmetic decoding unit 41 will not be described.
(320)
(321) The inverse quantization unit 51 performs inverse quantization. The inverse frequency transform unit 52 performs inverse frequency transform. The reconstruction unit 53 reconstructs an image from (a) data on which the inverse frequency transform has been performed and (b) prediction data on which either motion compensation or intra-picture prediction has been performed.
(322) The intra-picture prediction unit 54 generates prediction data from an image on the upper part or left part of a picture. The motion vector calculation unit 55 calculates a motion vector. The motion compensation unit 56 obtains a reference image of the position indicated by the motion vector, and generates prediction data by filtering. The deblocking filter unit 57 filters data of the reconstructed image to reduce block noise.
(323) Here, the inside structure of the pixel decoding unit 43 is the same as that of the pixel decoding unit 42. Therefore, the pixel decoding unit 43 is not shown in
(324) This is the description for the structure of the image decoding device according to the tenth embodiment.
(325) The following describes processing performed by the image decoding device according to the tenth embodiment.
(326)
(327) As shown in
(328) Then, the context control unit 48 controls a context using a method defined by H.264 standard (S701). The context control refers to processing of reading a symbol occurrence probability corresponding to a target macroblock to be decoded from the symbol occurrence probability storage unit 47 based on information of neighboring macroblock(s) of the target macroblock (neighbor information) and a bit position to be decoded, and then providing the symbol occurrence probability to the binary arithmetic decoder 49. Then, based on the symbol occurrence probability, the binary arithmetic decoder 49 arithmetic-decodes the target macroblock using a method defined by H.264 standard (S702).
(329) The context control unit 48 stores an updated symbol occurrence probability, which results from the arithmetic decoding, into the symbol occurrence probability storage unit 47 (S703). Next, the inverse binarization unit 50 converts binary-valued signal into non-binary syntax element using a method defined by H.264 standard (S704).
(330) As needed, the arithmetic decoding unit 40 causes the symbol occurrence probability storage unit 47 to output a stored symbol occurrence probability (S705). The symbol occurrence probability outputting is the same as the symbol occurrence probability outputting (S105) described in the first embodiment with reference to
(331) Next, the arithmetic decoding unit 40 determines whether or not the target macroblock has already been decoded (S706). If the target macroblock has already been decoded (Yes at S706), then the arithmetic decoding unit 40 completes the processing. On the other hand, if the target macroblock has not yet been decoded (No at S706), then the arithmetic decoding unit 40 repeats the processing from the context control at S701.
(332) Next, the processing performed by the pixel decoding unit 42 shown in
(333) At the beginning, the inverse quantization unit 51 inversely quantizes data provided from the arithmetic decoding unit 40 (S710). Next, the inverse frequency transform unit 52 performs inverse frequency transform on the inversely-quantized data (S711).
(334) Next, if a target macroblock to be decoded is an inter-picture prediction macroblock (Yes at S712), then the motion vector calculation unit 55 examines whether or not the neighbor information memory 46 stores information necessary for motion vector calculation (S001). If the neighbor information memory 46 does not store information necessary for motion vector calculation, then the motion vector calculation unit 55 waits until the necessary information is written into the neighbor information memory 46.
(335) On the other hand, if the neighbor information memory 46 stores the information necessary for motion vector calculation, then the motion vector calculation unit 55 calculates a motion vector using the information (S713).
(336)
(337) After the motion vector calculation, the motion vector calculation unit 55 examines whether or not the neighbor information memory 46 has an available space (S002). If the neighbor information memory 46 has an available space, then the motion vector calculation unit 55 writes the calculated motion vector into the neighbor information memory 46. Otherwise, the motion vector calculation unit 55 waits until the neighbor information memory 34 has an available space.
(338) The motion compensation unit 56 obtains a reference image from the frame memory 45 by using the calculated motion vector, and then performs motion compensation calculation such as filtering (S714).
(339) On the other hand, if the target macroblock to be decoded is an intra-picture prediction macroblock (No at S712), then the intra-picture prediction unit 54 examines whether or not the neighbor information memory 46 stores information necessary for intra-picture prediction calculation (S001). If the neighbor information memory 46 does not store information necessary for intra-picture prediction calculation, then the intra-picture prediction unit 54 waits until the necessary information is written into the neighbor information memory 46.
(340) On the other hand, if the neighbor information memory 46 stores information necessary for intra-picture prediction calculation, then the intra-picture prediction unit 54 performs intra-picture prediction calculation using the information (S715). The intra-picture prediction calculation requires neighbor information that is pieces of reconstructed pixel data nA, nB, nC, and nD as shown in
(341) After the motion compensation at S714 or the intra-picture prediction at S715, then the reconstruction unit 53 adds (S716) the prediction image data generated by the motion compensation or the intra-picture prediction to the differential data on which the inverse frequency transform has been performed, thereby generating a reconstructed image.
(342) Next, the reconstruction unit 53 examines whether or not the neighbor information memory 46 has an available space (S002). If the neighbor information memory 46 has an available space, then the reconstruction unit 53 writes the reconstructed image generated in the reconstruction at S716 into the neighbor information memory 46. Otherwise, the reconstruction unit 53 waits until the neighbor information memory 34 has an available space.
(343) Next, the deblocking filter unit 57 examines whether or not the neighbor information memory 46 stores information necessary for deblocking filtering (S001). If the neighbor information memory 46 does not store information necessary for deblocking filtering, then the deblocking filter unit 57 waits until the necessary information is written into the neighbor information memory 46.
(344) On the other hand, if the neighbor information memory 46 stores information necessary for deblocking filtering, then the deblocking filter unit 57 performs deblocking filtering by using the information (S717), and then writes the resulting decoded image into the frame memory 45.
(345) After the deblocking filtering, the deblocking filter unit 57 examines whether or not the neighbor information memory 46 has an available space (S002). If the neighbor information memory 46 has an available space, then the deblocking filter unit 57 writes the result of the deblocking filtering into the neighbor information memory 46. Eventually, the pixel decoding unit 42 completes the processing.
(346) The processing performed by the pixel decoding unit 43 is the same as that of the pixel decoding unit 42. Therefore, it will not be described again.
(347) This is the description for the processing performed by the image decoding device according to the tenth embodiment.
(348) As described above, the image decoding device according to the tenth embodiment can combine the arithmetic coding with the pixel coding.
(349) It should be noted that the image decoding device according to the tenth embodiment may use any arithmetic coding described in the above-described embodiments.
(350) It should also be noted in the tenth embodiment that the arithmetic coding method defined by H.264 standard is adopted. However, any other method can be adopted as long as the decoding is performed based on the symbol occurrence probability table or data similar to the symbol occurrence probability table which is adaptively updated depending on image.
(351) It should also be noted in the tenth embodiment that the image decoding device decodes image in units of macroblocks each having 16 pixels16 pixels. However, the image decoding device may decode image in units each having 8 pixels8 pixels, 32 pixels32 pixels, or 64 pixels16 pixels, for example.
(352) It should also be noted that it has been described in the tenth embodiment that images in a slice are coded in a zigzag order. However, the coding order may be raster order defined by H.264 standard or any other orders.
(353) It should also be noted in the tenth embodiment that the decoding is based on H.264 standard, but the decoding may be based on any other similar standards.
(354) It should also be noted in the tenth embodiment that the storage unit in which data is stored is a memory or buffer, but the storage unit may be any type of a memory. The storage unit may be storage means using any different schemes, such as a flip-flop and a hard disk.
(355) It should also be noted that the image decoding device according to the tenth embodiment may be implemented as a hardware circuit or software in a processor. It should also be noted that the image decoding device according to the tenth embodiment may be implemented in a plurality of processors or in a single processor.
(356) Although the image coding device and the image decoding device according to the present invention have been described with reference to a plurality of embodiments as above, the present invention is not limited to these embodiments. Those skilled in the art will be readily appreciated that various modifications and combinations of the structural elements are possible in the exemplary embodiments. Such modifications and combinations are also embodiments of the present invention
(357) For example, processing performed by a certain processing unit may be performed by a different processing unit. Inn addition, an order of steps in the processing may be changed. A plurality of the steps may be performed in parallel.
(358) It should also be noted that the present invention can be implemented not only as the image coding device and the image decoding device, but also as: a method including steps performed by the image coding device and the image decoding device. The present invention can be implemented also as a program causing a computer to execute the steps in the method. Moreover, the present invention can be implemented also as a computer-readable recording medium, such as a Compact Disc-Read Only Memory (CD-ROM), on which the program is recorded.
(359) It should also be noted that it has been described in the above-described embodiments that a picture is divided into a plurality of slices, but a picture may be divided into more common regions.
(360) It should also be noted that it has been described in the above-described embodiments that the arithmetic coding is performed based on a symbol occurrence probability table, but the image coding device according to the present invention may code image based on probability information except the symbol occurrence probability table, by using a coding method except the arithmetic coding.
Eleventh Embodiment
(361)
(362)
(363) At the beginning, the first coding unit 61 sequentially codes blocks included in a first region of the plurality of regions, based on first probability information indicating data occurrence probabilities (S811). After coding of a target block to be coded and before coding of a next block to be coded, the first coding unit 61 updates the first probability information depending on data of the target block.
(364) Next, the second coding unit 62 sequentially codes blocks included in a second region of the plurality of regions, based on second probability information indicating data occurrence probabilities (S812). After coding of a target block to be coded and before coding of a next block to be coded, the second coding unit 62 updates the second probability information depending on data of the target block.
(365) Furthermore, prior to coding of the first block to be coded, the second coding unit 62 updates the second probability information based on the first probability information updated by the first coding unit 61.
(366) Thereby, when the first image in a region of a picture is to be coded, the probability information is updated depending on characteristics of the image. Therefore, coding efficiency is improved.
(367)
(368)
(369) At the beginning, the first decoding unit 71 sequentially decodes blocks included in the first region of the plurality of regions, based on first probability information indicating data occurrence probabilities (S821). After decoding of a target block to be decoded and before decoding of a next block to be decoded, the first decoding unit 71 updates the first probability information depending on data of the target block.
(370) Next, the second decoding unit 72 sequentially decodes blocks included in a second region of the plurality of regions, based on second probability information indicating data occurrence probabilities (S822). After decoding of a target block to be decoded and before decoding of a next block to be decoded, the second decoding unit 72 updates the second probability information depending on data of the target block.
(371) Furthermore, prior to decoding of the first block to be decoded, the second decoding unit 72 updates the second probability information based on the first probability information updated by the first decoding unit 71.
(372) Thereby, the image decoding device according to the tenth embodiment can perform decoding in accordance with the image coding device according to the tenth embodiment
Twelfth Embodiment
(373)
(374)
(375) The coding unit 63 codes a plurality of blocks based on probability information indicating data probability information (S831). After coding of a target block to be coded and before coding of a next block to be coded, the coding unit 63 updates the probability information depending on data of the target block. Moreover, the coding unit 63 codes the target block based on the probability information updated depending on data of a neighboring block above the target block.
(376) Thereby, the target block is coded depending on the probability information updated based on the neighboring above block that is spatially close to the target block. Therefore, coding efficiency is improved.
(377)
(378)
(379) The decoding unit 73 decodes a plurality of blocks based on pieces of probability information indicating data probability information (S841). After decoding of a target block to be decoded and before decoding of a next block to be decoded, the decoding unit 73 updates the probability information depending on data of the target block. In addition, the decoding unit 73 decodes the target block based on probability information updated depending on data of an immediately-above block adjacent to the target block.
(380) Thereby, the image decoding device according to the twelfth embodiment can perform decoding in accordance with the image coding device according to the twelfth embodiment.
(381)
(382)
(383) The calculation unit 64 calculates probability information to be used in coding of a target block to be coded, based on (a) probability information updated depending on data of a block immediately above the target block and (b) probability information updated depending on data of a block at the immediate left of the target block (S851).
(384) The coding unit 63 codes the target block based on the probability information calculated by the calculation unit 64 (S852).
(385) Thereby, a block is coded depending on plural pieces of probability information. Therefore, coding efficiency is further improved.
(386)
(387)
(388) The calculation unit 74 calculates probability information to be used in decoding of a target block to be decoded, based on (a) probability information updated depending on data of a block immediately above the target block and (b) probability information updated depending on data of a block at the immediate left of the target block (S861).
(389) The decoding unit 73 decodes the target block based on the probability information calculated by the calculation unit 74 (S862).
(390) Thereby, the image decoding device according to the variation of the twelfth embodiment can perform decoding in accordance with the image coding device according to the variation of the twelfth embodiment.
Thirteenth Embodiment
(391) Furthermore, by recording a program, which realizes the image coding method and the image decoding method described in each of the embodiments, onto a recording medium, it is possible to easily perform the processing as described in each of the embodiments in an independent computer system. The recording medium may be any medium, such as a magnetic disk, an optical disk, a magnet-optical disk, an integrated circuit (IC) card, and a semiconductor memory, as far as the medium can record the program.
(392) Furthermore, the applications of the image coding method and the image decoding method described in each of the above embodiments, and a system using such applications are described below.
(393)
(394) In this content supply system ex100, various devices such as a computer ex111, a Personal Digital Assistant (PDA) ex112, a camera ex113, a cell phone ex114 and a game device ex115 are connected to one another, via a telephone network ex104 and base stations ex106 to ex110. Furthermore, the various devices are connected to the Internet ex101 via an Internet service provider ex102.
(395) However, the content supply system ex100 is not limited to the combination as shown in
(396) The camera ex113 is a device such as a digital video camera capable of shooting moving images. The camera ex116 is a device such as a digital video camera capable of shooting still images and moving images. The cell phone ex114 may be any of a cell phone of a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Wideband-Code Division Multiple Access (W-CDMA) system, a Long Term Evolution (LTE) system, a High Speed Packet Access (HSPA) system, a Personal Handy-phone System (PHS), and the like.
(397) In the content supply system ex100, the camera ex113 is connected to a streaming server ex103 via the base station ex109 and the telephone network ex104, which realizes live distribution or the like. In the live distribution, the coding as described in the above embodiments is performed for a content (such as a video of a live music performance) shot by a user using the camera ex113, and the coded content is provided to the streaming server ex103. On the other hand, the streaming server ex103 makes steam distribution of the received content data to the clients at their requests. The clients include the computer ex111, the PDA ex112, the camera ex113, the cell phone ex114, the game device ex115, and the like, capable of decoding the above-mentioned coded data. Each device receiving the distributed data decodes the received data to be reproduced.
(398) Here, the coding of the data shot by the camera may be performed by the camera ex113, the streaming server ex103 for transmitting the data, or the like. Likewise, either the client or the streaming server ex103 may decode the distributed data, or both of them may share the decoding. Also, the still image and/or moving image data shot by the camera ex116 may be transmitted not only to the camera ex113 but also to the streaming server ex103 via the computer ex111. In this case, either the camera ex116, the computer ex111, or the streaming server ex103 may perform the coding, or all of them may share the coding.
(399) It should be noted that the above-described coding and the decoding are performed by a Large Scale Integration (SLI) ex500 generally included in each of the computer ex111 and the devices. The LSI ex500 may be implemented as a single chip or a plurality of chips. It should be noted that software for coding and decoding images may be integrated into any type of a recording medium (such as a CD-ROM, a flexible disk and a hard disk) that is readable by the computer ex111 or the like, so that the coding and decoding are performed by using the software. Furthermore, if the cell phone ex114 is a camera-equipped cell phone, it may transmit generated moving image data. This moving image data is the data coded by the LSI ex500 included in the cell phone ex114.
(400) It should be noted that the streaming server ex103 may be implemented as a plurality of servers or a plurality of computers, so that data is divided into pieces to be processed, recorded, and distributed separately.
(401) As described above, the content supply system ex100 enables the clients to receive and reproduce coded data. Thus, in the content supply system ex100, the clients can receive information transmitted by the user, then decode and reproduce it, so that the user without specific rights nor equipment can realize individual broadcasting.
(402) The present invention is not limited to the example of the content supply system ex100. At least either the image coding device or the image decoding device in the above embodiments can be incorporated into the digital broadcast system ex200 as shown in
(403) The image decoding device described in the above embodiments can be implemented in a reproduction device ex212 for reading and decoding a coded bit stream recorded on a recording medium ex214 such as a CD and DVD that is a recording medium. In this case, the reproduced video signals are displayed on a monitor ex213.
(404) The image decoding device or the image coding device described in the above embodiments can be implemented in a reader/recorder ex218 for reading and decoding a coded bitstream recorded on a recording medium ex215 such as a DVD and a BD or for coding and writing video signals into the recording medium ex215. In this case, the reproduced video signals are displayed on a monitor ex219, and the recording medium ex215, on which the coded bitstream is recorded, allows a different device of system to reproduce the video signals. It is also conceived to implement the image decoding device in the set top box ex217 connected to a cable ex203 for cable television or the antenna ex204 for satellite and/or terrestrial broadcasting so as to reproduce them on a monitor ex219 of the television. The image decoding device may be incorporated into the television, not in the set top box.
(405)
(406) In addition, the television ex300 includes: a signal processing unit ex306 having (a) a voice signal processing unit ex304 that decodes or codes voice data and (b) a video signal processing unit ex305 that decodes or codes video data; and an output unit ex309 having (c) a speaker ex307 that outputs the decoded voice signal and (d) a display unit ex308, such as a display, that displays the decoded video signal. Furthermore, the television ex300 includes an interface unit ex317 having an operation input unit ex312 that receives inputs of user operations, and the like. Moreover, the television ex300 includes: a control unit ex310 for the overall controlling of the respective units; and a power supply circuit unit ex311 that supplies the respective units with power.
(407) In addition to the operation input unit ex312, the interface unit ex317 may include: a bridge ex313 connected to external devices such as the reader/recorder ex218; a slot unit ex314 enabling the recording medium ex216 such as a SD card to be attached to the interface unit ex317; a driver ex315 for connecting to an external recording medium such as a hard disk; a modem ex316 connected to a telephone network; and the like. It should be noted that the recording medium ex216 enables information to be electrically recorded on a stored nonvolatile/volatile semiconductor memory device.
(408) The units in the television ex300 are connected to one another via a synchronous bus.
(409) First, the description is given for the structure by which the television ex300 decodes and reproduces data received from the outside via the antenna ex204 or the like. The television ex300 receives a user operation from a remote controller ex220 or the like. Then, under the control of the control unit ex310 having a CPU and the like, the television ex300 demodulates video data and voice data at the modulation/demodulation unit ex302, and demultiplexes the demodulated video data from the demodulated voice data at the multiplex/demultiplex unit ex303. In addition, the television ex300 decodes the demultiplexed voice data at the voice signal processing unit ex304, and decodes the demultiplexed video data at the video signal processing unit ex305 using the decoding method described in the above embodiments. The decoded voice signal and the decoded video signal are separately outputted from the output unit ex309 to the outside. When outputting the signals, the signals may be temporarily accumulated in, for example, buffers ex318 and ex319, so that the voice signal and the video signal are reproduced in synchronization with each other. Furthermore, the television ex300 may read the coded bitstream, not from broadcasting or the like but from the recording media ex215 and ex216 such as a magnetic/optical disk and a SD card.
(410) Next, the description is given for the structure by which the television ex300 codes voice signal and video signal, and transmits the coded signals to the outside or writes them onto a recording medium or the like. The television ex300 receives a user operation from the remote controller ex220 or the like, and then, under the control of the control unit ex310, codes voice signal at the voice signal processing unit ex304, and codes video data at the video signal processing unit ex305 using the coding method described in the above embodiments. The coded voice signal and the coded video signal are multiplexed at the multiplex/demultiplex unit ex303 and then outputted to the outside. When multiplexing the signals, the signals may be temporarily accumulated in, for example, buffers ex320 and ex321, so that the voice signal and the video signal are in synchronization with each other.
(411) It should be noted that the buffers ex318 to ex321 may be implemented as a plurality of buffers as shown, or may share one or more buffers. It should also be noted that, besides the shown structure, it is possible to include a buffer, for example, between the modulation/demodulation unit ex302 and the multiplex/demultiplex unit ex303, so that the buffer serves as a buffer preventing system overflow and underflow, and thereby accumulate data in the buffer.
(412) It should also be noted that, in addition to the structure for receiving voice data and video data from broadcasting, recording media, and the like, the television ex300 may also have a structure for receiving audio inputs from a microphone and a camera, so that the coding is preformed for the received data. Here, although it has been described that the television ex300 can perform the above-described coding, multiplexing, and providing to the outside, it is also possible that the television ex300 cannot perform all of them but can perform one of the coding, multiplexing, and providing to the outside.
(413) It should be noted that, when the reader/recorder ex218 is to read or write a coded bitstream from/into a recording medium, either the television ex300 or the reader/recorder ex218 may perform the above-described decoding or coding, or the television ex300 and the reader/recorder ex218 may share the above-described decoding or coding.
(414) For one example,
(415) The optical head ex401 writes information into the recording medium ex215 as an optical disk by irradiating laser spot on a recording surface of the recording medium ex215, and reads information from the recording medium ex215 by detecting light reflected on the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives a semiconductor laser included in the optical head ex401, and thereby modulates laser light according to recorded data. A reproduction demodulation unit ex403 amplifies reproduction signal that is obtained by electrically detecting light reflected on the recording surface by a photo detector included in the optical head ex401, then demultiplexes and demodulates signal components recorded on the recording medium ex215, and reproduces necessary information. A buffer ex404 temporarily holds the information to be recorded onto the recording medium ex215, and the information reproduced from the recording medium ex215. A disk motor ex405 rotates the recording medium ex215. A servo control unit ex406 moves the optical head ex401 to a predetermined information track while controlling rotation driving of the disk motor ex405, thereby performing tracking processing of the laser spot.
(416) The system control unit ex407 controls the overall information reproducing/recording unit ex400. The above-described reading and writing are realized when the system control unit ex407 records and reproduces information via the optical head ex401 while cooperating the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406, by using various information stored in the buffer ex404 and new information generated and added as needed. The system control unit ex407 includes, for example, a microprocessor, and performs the above processing by executing a reading/writing program.
(417) Although it has been described above that the optical head ex401 irradiates laser spot, the optical head ex401 may perform higher-density recording by using near-field light.
(418)
(419) The information reproducing/recording unit ex400 reads/writes coded voice data and video data or coded data generated by multiplexing them, from/into such data recording region ex233 of the recording medium ex215.
(420) Although the above has been described giving the example of a one-layer optical disk such as a DVD or a BD, the optical disk is not limited to the above but may be a multi-layer optical disk so that data can be recorded onto other regions in addition to the surface. Furthermore, the optical disk may have a structure for multidimensional recording/reproducing, such as data recording using color lights having various different wavelengths on the same position of the disk, or recording of layers of different pieces of information from various angles.
(421) It should also be noted that it is possible in the digital broadcasting system ex200 that the vehicle ex210 having the antenna ex205 receives data from the satellite ex202 or the like, and reproduces moving images on the display device such as the vehicle navigation system ex211 or the like in the vehicle ex210. As for the configuration of the vehicle navigation system ex211, a configuration added with a GPS receiving unit to the units as shown in
(422) Thus, the image coding method and the image decoding method described in the above embodiments can be used in any of the above-described devices and systems, and thereby the effects described in the above embodiments can be obtained.
(423) It should be noted that the present invention is not limited to the above embodiments but various variations and modifications are possible in the embodiments without departing from the scope of the present invention.
Fourteenth Embodiment
(424) In the fourteenth embodiment, the image coding device according to the first embodiment is typically implemented into a Large Scale Integration (LSI) which is an integrated circuit.
(425) These may be integrated separately, or a part or all of them may be integrated into a single chip. Here, the integrated circuit is referred to as a LSI, but the integrated circuit can be called an IC, a system LSI, a super LSI or an ultra LSI depending on their degrees of integration.
(426) The technique of integrated circuit is not limited to the LSI, and it may be implemented as a dedicated circuit or a general-purpose processor. It is also possible to use a Field Programmable Gate Array (FPGA) that can be programmed after manufacturing the LSI, or a reconfigurable processor in which connection and setting of circuit cells inside the LSI can be reconfigured.
(427) Furthermore, if due to the progress of semiconductor technologies or their derivations, new technologies for integrated circuits appear to be replaced with the LSIs, it is, of course, possible to use such technologies to implement the functional blocks as an integrated circuit. For example, biotechnology and the like can be applied to the above implementation.
(428) Moreover, the semiconductor chip on which the image decoding device according to the embodiments is combined with a display for drawing images to form an image drawing device depending on various applications. The present invention can thereby be used as an information drawing means for a mobile phone, a television set, a digital video recorder, digital camcorder, a vehicle navigation device, and the like. The display in the combination may be a cathode-ray tube (CRT), a flat display such as a liquid crystal display, a plasma display panel (PDP), or an organic light emitting display (OLED), a projection display represented by a projector, or the like.
(429) It should also be noted that the LSI according to the fourteenth embodiment may perform coding and decoding in cooperation with a bitstream buffer on which coded streams are accumulated and a Dynamic Random Access Memory (DRAM) including a frame memory on which images are accumulated. The LSI according to the fourteenth embodiment may be cooperated not with a DRAM, but with a different storage device such as an embedded DRAM (eDRAM), a Static Random Access Memory (SRAM), or a hard disk.
Fifteenth Embodiment
(430) In the fifteenth embodiment, the image coding device, the image decoding device, the image coding method, and the image decoding method which have been described in the above embodiments are typically implemented into a Large Scale Integration (LSI) which is an integrated circuit. As one example,
(431) For example, in the case of coding, the LSI ex500 receives input audio/visual (AV) signals from an AV I/O ex509 via the microphone ex117, the camera ex113, or the like. The input AV signals are temporarily accumulated in an external memory ex511 such as a SDRAM. The accumulated data is, for example, divided into a plurality of times depending on a processing amount and a processing speed, and eventually provided to a signal processing unit ex507. The signal processing unit ex507 performs coding of voice signal and/or coding of video signal. Here, the coding of video signal is the coding described in the above embodiments. Furthermore, the signal processing unit ex507 performs multiplexing of the coded voice data and the coded video data and other processing as needed, and provides the resulting data from a stream I/O ex504 to the outside. The output bitstream is transmitted to the base station ex107, or written to the recording medium ex215.
(432) Moreover, for example, in the case of decoding, under the control of the microcomputer ex502, the LSI ex500 temporarily accumulates, to a memory ex511 or the like, coded data that is obtained using the stream I/O ex504 via the base station ex107, or coded data that is obtained by reading it from the recording medium ex215. Under the control of the microcomputer ex502, the accumulated data is, for example, divided into a plurality of times depending on a processing amount and a processing speed, and eventually provided to the signal processing unit ex507. The signal processing unit ex507 performs decoding of voice signal and/or decoding of video signal. Here, the decoding of video signal is the decoding described in the above embodiments. It is preferable that the decoded voice signal and the decoded video signal are temporarily accumulated in the memory ex511 or the like as needed, so that they can be reproduced in synchronization with each other. The decoded output signal is outputted from the AV I/O ex509 to the monitor ex219 or the like appropriately via the memory ex511 or the like. The access to the memory ex511 is actually performed via the memory controller ex503.
(433) Although it has been described above that the memory ex511 is outside the LSI ex500, the memory ex511 may be included in the LSI ex500. It is possible that the LSI ex500 may be integrated into a single chip, or may be integrated separately.
(434) Here, the integrated circuit is referred to as a LSI, but the integrated circuit can be called an IC, a system LSI, a super LSI or an ultra LSI depending on their degrees of integration.
(435) The technique of integrated circuit is not limited to the LSI, and it may be implemented as a dedicated circuit or a general-purpose processor. It is also possible to use a Field Programmable Gate Array (FPGA) that can be programmed after manufacturing the LSI, or a reconfigurable processor in which connection and setting of circuit cells inside the LSI can be reconfigured.
(436) Furthermore, if due to the progress of semiconductor technologies or their derivations, new technologies for integrated circuits appear to be replaced with the LSIs, it is, of course, possible to use such technologies to implement the functional blocks as an integrated circuit. For example, biotechnology and the like can be applied to the above implementation.
(437) The image coding method in the present invention can be used for various applications. For example, the present invention can be used and highly useful in high-resolution information display devices and image capturing devices, such as television sets, digital video recorders, vehicle navigation devices, mobile phones, digital cameras, digital camcorders, and the like.