Reception method, and receiving device
By hierarchically encoding images into multiple layers based on frame rate, the method addresses inefficiencies in conventional encoding and decoding, ensuring efficient processing and reduced display delay times.
Patent Information
- Application Number
- JP2024119257
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2013-06-05
- Filing Date
- 2024-07-25
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2034-06-04
AI Technical Summary
Conventional image encoding and decoding methods are inefficient and result in increased display delay times due to limitations in the number of layers and frame rates, particularly when dealing with high frame rates.
The method involves hierarchically encoding images into a structure with multiple layers, where the lowest layer includes a bitstream and control information, and the number of layers is determined based on the frame rate to optimize encoding and decoding efficiency.
This approach allows for efficient encoding and decoding of images while minimizing display delay time, even at high frame rates, by dynamically adjusting the number of layers based on the frame rate.
Smart Images

Figure 2024150677000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image coding method for coding an image, or an image decoding method for decoding an image. [Background technology]
[0002] As a technique relating to an image coding method for coding an image (including a moving image) and an image decoding method for decoding an image, there is a technique described in Non-Patent Document 1. In addition, there is a specification described in Non-Patent Document 2 as an operational specification relating to coding and decoding. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11 12th Meeting: Geneva, CH, 14-23 Jan. 2013 JCTVC-L1003_v34.doc, High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http: / / phenix.it-sudparis.eu / jct / doc_end_user / documents / 12_Geneva / wg11 / JCTVC-L1003-v34.zip [Non-Patent Document 2] Association of Radio Industries and Businesses (ARIB) Standard ARIB STD-B32 2.8th edition 2-STD-B32v2_8.pdf, Video coding, audio coding and multiplexing methods for digital broadcasting http: / / www.arib.or.jp / english / html / overview / doc / 2-STD-B32v2_8.pdf Summary of the Invention [Problem to be solved by the invention]
[0004] However, in some cases, inefficient processing is used in image encoding or decoding methods according to the conventional techniques.
[0005] Therefore, an object of the present invention is to provide an image coding method for efficiently coding an image, or an image decoding method for efficiently decoding an image. [Means for solving the problem]
[0006] In order to achieve the above object, a transmission method according to one aspect of the present invention includes a generating step of generating a bit stream including a video encoded by hierarchically encoding a plurality of images included in the video into a hierarchical structure having one or more layers, and control information, and a transmitting step of transmitting the bit stream and the control information, wherein the lowest layer of the hierarchical structure includes I pictures and P pictures, and layers other than the lowest layer of the hierarchical structure include B pictures. The control information includes information on a frame rate of the moving image, and the number of layers is determined in advance based on the frame rate of the moving image.
[0007] Moreover, a receiving method according to one embodiment of the present invention includes a receiving step of receiving a bit stream including a moving image encoded by hierarchically encoding a plurality of images included in the moving image into a hierarchical structure having a number of layers of one or more, and control information, and a decoding step of decoding the plurality of images from the bit stream, wherein the lowest layer of the hierarchical structure includes I-pictures and P-pictures, and layers other than the lowest layer of the hierarchical structure include B-pictures, the control information includes information on a frame rate of the moving image, and the number of layers is predetermined based on the frame rate of the moving image.
[0008] Furthermore, these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium. Effect of the Invention
[0009] The present invention can provide an image coding method capable of efficiently coding an image or an image decoding method capable of efficiently decoding an image. [Brief description of the drawings]
[0010] [Figure 1] FIG. 1 is a diagram showing an example of an encoding structure. [Diagram 2] FIG. 2 is a diagram showing the number of display delay pictures. [Diagram 3] FIG. 3 is a block diagram of an image coding device according to the first embodiment. [Figure 4] FIG. 4 is a flowchart of the image coding process according to the first embodiment. [Diagram 5] FIG. 5 is a block diagram of the limit value setting unit according to the first embodiment. [Figure 6] FIG. 6 is a flowchart of the limit value setting process according to the first embodiment. [Figure 7] FIG. 7 is a block diagram of the encoding unit according to the first embodiment. [Figure 8] FIG. 8 is a flowchart of the encoding process according to the first embodiment. [Figure 9A] FIG. 9A is a diagram showing the number of transmission delay pictures according to the first embodiment. [Figure 9B] FIG. 9B is a diagram showing the number of transmission delay pictures according to the first embodiment. [Figure 9C] FIG. 9C is a diagram showing the number of transmission delay pictures according to the first embodiment. [Figure 9D] FIG. 9D is a diagram showing the number of transmission delay pictures according to the first embodiment. [Figure 10]FIG. 10 is a diagram showing an example of a coding structure limiting value according to the first embodiment. [Figure 11A] FIG. 11A is a diagram showing a coding structure according to the first embodiment. [Figure 11B] FIG. 11B is a diagram showing a coding structure according to the first embodiment. [Figure 11C] FIG. 11C is a diagram showing a coding structure according to the first embodiment. [Figure 11D] FIG. 11D is a diagram showing a coding structure according to the first embodiment. [Figure 12A] FIG. 12A is a diagram showing the number of display delay pictures according to the first embodiment. [Figure 12B] FIG. 12B is a diagram showing the number of display delay pictures according to the first embodiment. [Figure 12C] FIG. 12C is a diagram showing the number of display delay pictures according to the first embodiment. [Figure 12D] FIG. 12D is a diagram showing the number of display delay pictures according to the first embodiment. [Figure 13] FIG. 13 is a block diagram of an image decoding device according to the second embodiment. [Figure 14] FIG. 14 is a flowchart of an image decoding process according to the second embodiment. [Figure 15] FIG. 15 is a flowchart of an image coding method according to the first embodiment. [Figure 16] FIG. 16 is a flowchart of an image decoding method according to the second embodiment. [Figure 17] FIG. 17 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. [Figure 18] FIG. 18 is a diagram showing the overall configuration of a digital broadcasting system. [Figure 19] FIG. 19 is a block diagram showing an example of the configuration of a television. [Figure 20] FIG. 20 is a block diagram showing an example of the configuration of an information reproducing / recording unit that reads and writes information from and to a recording medium that is an optical disc. [Figure 21]FIG. 21 is a diagram showing an example of the structure of a recording medium that is an optical disc. [Figure 22A] FIG. 22A is a diagram showing an example of a mobile phone. [Figure 22B] FIG. 22B is a block diagram showing an example of the configuration of a mobile phone. [Figure 23] FIG. 23 is a diagram showing a structure of multiplexed data. [Figure 24] FIG. 24 is a diagram showing a schematic diagram of how each stream is multiplexed in multiplexed data. [Diagram 25] FIG. 25 shows in more detail how a video stream is stored in a PES packet sequence. [Figure 26] FIG. 26 is a diagram showing the structure of TS packets and source packets in multiplexed data. [Figure 27] FIG. 27 shows the data structure of a PMT. [Figure 28] FIG. 28 is a diagram showing the internal structure of the multiplexed data information. [Figure 29] FIG. 29 shows the internal structure of the stream attribute information. [Diagram 30] FIG. 30 shows the steps of identifying video data. [Diagram 31] FIG. 31 is a block diagram showing an example of the configuration of an integrated circuit that realizes the video coding method and the video decoding method according to each embodiment. [Diagram 32] FIG. 32 is a diagram showing a configuration for switching the drive frequency. [Diagram 33] FIG. 33 is a diagram showing steps of identifying video data and switching the drive frequency. [Diagram 34] FIG. 34 is a diagram showing an example of a lookup table in which video data standards and drive frequencies correspond to each other. [Figure 35A] FIG. 35A is a diagram showing an example of a configuration in which modules of a signal processing unit are shared. [Figure 35B] FIG. 35B is a diagram showing another example of a configuration in which modules of a signal processing unit are shared. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] (Findings on which the present invention is based) The present inventor has found that the following problems occur with the image encoding device that encodes an image or the image decoding device that decodes an image, which are described in the "Background Art" section.
[0012] In recent years, there has been remarkable technological progress in digital video equipment, and there are increasing opportunities for video signals (multiple pictures arranged in chronological order) output from video cameras or television tuners to be compressed and encoded, and for the resulting encoded signals to be recorded on storage media such as DVDs or hard disks.
[0013] Image coding standards include H.264 / AVC (MPEG-4 AVC). In addition, the High Efficiency Video Coding (HEVC) standard (Non-Patent Document 1) is being considered as a next-generation standard. Also, regulations on how to operate the image coding standard are being considered (Non-Patent Document 2).
[0014] In the current operational regulations (Non-Patent Document 2), the coding structure is limited to three layers as shown in Figure 1, and the maximum number of display delay pictures is limited to two as shown in Figure 2. TemporalId shown in Figure 1 is an identifier of the layer of the coding structure. The larger TemporalId indicates a deeper layer.
[0015] Each square block represents a picture, and the I x is an I picture (intra-predicted picture), P x is a P picture (forward reference predicted picture), B is a x indicates a B picture (bidirectional reference predicted picture). x / P x / B x of x indicates the display order, which represents the order in which pictures are displayed.
[0016] Arrows between pictures indicate reference relationships. For example, picture B1 generates a predicted image using pictures I0, B2, and P4 as reference images. It is prohibited to use a picture with a TemporalId larger than its own TemporalId as a reference image. Therefore, the picture decoding order is in ascending order of TemporalId, as shown in FIG. 2, and is picture I0, picture P4, picture B2, picture B1, and picture B3.
[0017] By the way, by defining a hierarchy, it is possible to impart time scalability to a code stream.
[0018] For example, when it is desired to obtain a 30 fps video from a 60 fps (frame per second) code stream, the image decoding device decodes only the pictures of TemporalId0 and TemporalId1 in FIG. 1. This allows the image decoding device to obtain a 30 fps image. Since the decoded images need to be output in order without gaps, the image decoding device outputs pictures in order starting from picture I0 after decoding picture B2. Therefore, the number of display delay pictures is two. Converting this to time, the display delay time is 2 / 30 seconds when the original frame rate is 30 fps, and 2 / 60 seconds when the frame rate is 60 fps.
[0019] By using a structure with high temporal scalability, when the bandwidth is congested or when an image decoding device with low processing power performs a decoding process, the image decoding device can decode only pictures in a hierarchy with a small TemporalId and display the resulting image. In this way, versatility is improved. However, if a deep hierarchical structure is allowed, there is a problem that the display delay increases.
[0020] However, even if the number of display delay pictures is specified in advance as described above, the display delay time differs depending on the frame rate. In the case of a frame rate (e.g., 24 fps) lower than a standard frame rate (e.g., 30 fps), the display delay time is 2 / 24 seconds, which is longer than the 2 / 30 seconds of 30 fps.
[0021] An image coding method according to one aspect of the present invention is an image coding method for hierarchically coding an image, and includes a number of layers determination step for determining the number of layers in the hierarchical coding so that the number of layers is equal to or less than a maximum number of layers determined in accordance with a frame rate, and an encoding step for hierarchically coding the image with the determined number of layers to generate a bitstream.
[0022] According to this, the image coding method can increase the number of layers while suppressing an increase in display delay time, and therefore can code images efficiently.
[0023] For example, when the frame rate is 60 fps or less, the maximum number of layers may be four or less.
[0024] For example, when the frame rate is 120 fps, the maximum number of layers may be five.
[0025] For example, the image encoding method may further include a picture type determination step of determining, in an image decoding device, a picture type of the image so that a display delay picture number, which is the number of pictures from decoding to outputting an image, is equal to or less than a maximum number of pictures determined in accordance with the frame rate, and in the encoding step, the image may be encoded with the determined picture type.
[0026] For example, in the picture type determination step, the picture type of the image may be determined so that a consecutive B picture number, which is the number of consecutive B pictures, is equal to or less than a maximum consecutive number determined according to the frame rate.
[0027] For example, the maximum number of pictures, an encoder output delay, which is a time from when the image is input to the image encoding device until the bit stream is output, and the frame rate satisfy the following relationship: Maximum number of pictures = int(log2(encoder transmission delay [s] x frame rate [fps])) the maximum consecutive number, the encoder output delay, and the frame rate satisfy the following relationship: Maximum number of consecutive frames = int (encoder transmission delay [s] x frame rate [fps] - 1) The maximum number of layers, the encoder output delay, and the frame rate may satisfy the following relationship:
[0028] Maximum number of layers = int(log2(encoder transmission delay [s] × frame rate [fps])) + 1 For example, the maximum number of pictures [i] in each layer, the encoder transmission delay, and the frame rate satisfy the following relationship: Maximum number of pictures [i] = int(log2(encoder transmission delay [s] × frame rate [fps] / 2 (n-i) )) The maximum consecutive number [i] of each layer, the encoder output delay, and the frame rate satisfy the following relationship: Maximum consecutive number [i] = int (encoder transmission delay [s] × frame rate [fps] / 2 (n-i) -1) i may be an integer equal to or less than the maximum number of hierarchical levels and indicate a hierarchical level, and n may indicate (the maximum number of hierarchical levels - 1).
[0029] Moreover, an image decoding method according to one embodiment of the present invention is an image decoding method for decoding a bitstream obtained by hierarchical encoding of an image, and includes an image decoding step of decoding the image from the bitstream, an information decoding step of decoding first information indicating a number of layers in the hierarchical encoding from the bitstream, and a sorting step of sorting and outputting the decoded image using the number of layers indicated by the first information, wherein the number of layers is equal to or less than a maximum number of layers predetermined according to a frame rate of the bitstream.
[0030] According to this, the image decoding method can efficiently decode a bitstream obtained by encoding.
[0031] For example, when the frame rate is 60 fps or less, the maximum number of layers may be four or less.
[0032] For example, when the frame rate is 120 fps, the maximum number of layers may be five.
[0033] For example, in the information decoding step, the image decoding device may further decode from the bitstream second information indicating a display latency picture count, which is the number of pictures from when an image is decoded to when it is output, and in the sorting step, the decoded image may be sorted and output using the number of layers indicated by the first information and the number of display latency pictures indicated by the second information.
[0034] For example, in the information decoding step, third information indicating a consecutive B-picture count, which is the number of consecutive B-pictures, may be decoded from the bitstream, and in the rearrangement step, the decoded images may be rearranged and output using the number of layers indicated by the first information, the number of display delay pictures indicated by the second information, and the consecutive B-picture count indicated by the third information.
[0035] For example, the maximum number of pictures, an encoder output delay, which is a time from when the image is input to the image encoding device until the bit stream is output, and the frame rate satisfy the following relationship: Maximum number of pictures = int(log2(encoder transmission delay [s] x frame rate [fps])) the maximum consecutive number, the encoder output delay, and the frame rate satisfy the following relationship: Maximum number of consecutive frames = int (encoder transmission delay [s] x frame rate [fps] - 1) The maximum number of layers, the encoder output delay, and the frame rate may satisfy the following relationship:
[0036] Maximum number of layers = int(log2(encoder transmission delay [s] × frame rate [fps])) + 1 For example, the maximum number of pictures [i] in each layer, the encoder transmission delay, and the frame rate satisfy the following relationship: Maximum number of pictures [i] = int(log2(encoder transmission delay [s] × frame rate [fps] / 2 (n-i) )) The maximum consecutive number [i] of each layer, the encoder output delay, and the frame rate satisfy the following relationship: Maximum consecutive number [i] = int (encoder transmission delay [s] × frame rate [fps] / 2 (n-i) -1) i may be an integer equal to or less than the maximum number of hierarchical levels and indicate a hierarchical level, and n may indicate (the maximum number of hierarchical levels - 1).
[0037] Moreover, an image encoding device according to one aspect of the present invention is an image encoding device that encodes an image, and includes a processing circuit and a storage device accessible from the processing circuit, and the processing circuit executes the image encoding method using the storage device.
[0038] This allows the image coding device to increase the number of layers while suppressing an increase in display delay time, thereby enabling the image coding device to code images efficiently.
[0039] In addition, an image decoding device according to one embodiment of the present invention is an image decoding device that decodes a bitstream obtained by encoding an image, and includes a processing circuit and a storage device accessible from the processing circuit, and the processing circuit executes the image decoding method using the storage device.
[0040] This allows the image decoding device to decode a bitstream obtained by efficient encoding.
[0041] Furthermore, these general or specific aspects may be realized by a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized by any combination of a system, a method, an integrated circuit, a computer program, and a recording medium.
[0042] Hereinafter, the embodiments will be described in detail with reference to the drawings. Note that each of the embodiments described below shows a specific example of the present invention. The numerical values, shapes, materials, components, the arrangement and connection forms of the components, steps, and the order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, components that are not described in the independent claims showing the highest concept will be described as optional components.
[0043] (Embodiment 1) The image coding device according to this embodiment increases the number of layers when the frame rate is high, thereby making it possible to increase the number of layers while suppressing an increase in display delay time.
[0044] <Overall composition> FIG. 3 is a block diagram showing a configuration of the image coding device 100 according to this embodiment.
[0045] 3 generates a code string 155 (bit stream) by encoding an input image 153. The image encoding device 100 includes a limit value setting unit 101 and an encoding unit .
[0046] <Overall Action> Next, the flow of the entire encoding process will be described with reference to Fig. 4. Fig. 4 is a flowchart of the image encoding method according to this embodiment.
[0047] First, the limit value setting unit 101 sets a coding structure limit value 154 related to a coding structure in hierarchical coding (S101). Specifically, the limit value setting unit 101 sets the coding structure limit value 154 using a frame rate 151 and a transmission delay time limit value 152.
[0048] Next, the encoding unit 102 generates a code string 155 by encoding the encoding structure limiting value 154 and encoding the input image 153 using the encoding structure limiting value 154 (S102).
[0049] <Configuration of limit value setting unit 101> FIG. 5 is a block diagram showing an example of the internal configuration of limit value setting section 101. As shown in FIG.
[0050] As shown in FIG. 5, the limit value setting unit 101 includes a hierarchical level setting unit 111, a hierarchical level parameter setting unit 112, a display delay picture level setting unit 113, a consecutive B picture level setting unit 114, and a consecutive level parameter setting unit 115.
[0051] <Operation (setting coding structure limit value)> Next, an example of the limit value setting process (S101 in FIG. 4) will be described with reference to Fig. 6. Fig. 6 is a flowchart of the limit value setting process according to the present embodiment.
[0052] First, the number of layers setting unit 111 sets the number of layers 161 of the coding structure, using a frame rate 151 and a transmission delay time limit value 152 input from outside the image coding device 100. For example, the number of layers 161 is calculated by the following (Equation 1) (S111).
[0053] Number of layers = int(log2(transmission delay time limit [s] × frame rate [fps])) + 1 (Formula 1)
[0054] In the above (Equation 1), int(x) means a function that returns an integer with the decimal part of x rounded down, and log2(x) means a function that returns the logarithm of x with base 2. Output delay time limit value 152 indicates the maximum time from when input image 153 is input to image encoding device 100 to when code string 155 of input image 153 is output.
[0055] Next, the layer number parameter setting unit 112 uses the layer number 161 to set sps_max_sub_layers_minus1, which is the layer number parameter 163, by the following (Equation 2) (S112).
[0056] sps_max_sub_layers_minus1=Number of layers -1 (Formula 2)
[0057] Next, the limit value setting unit 101 sets 0 to TId (S113). TId is a variable for identifying a tier, and is used to identify the tier to be processed in the subsequent processing for each tier.
[0058] Next, the display delay picture number setting unit 113 sets the display delay picture number 164 of the layer whose TemporalId is TId, using the frame rate 151, the transmission delay time limit value 152, and the layer number parameter 163 (S114). The display delay picture number 164 is the number of pictures from the start of picture decoding to the start of picture display during picture decoding. The display delay picture number 164 is calculated by the following (Equation 3).
[0059] Number of display delay pictures for a hierarchy with TemporalId=int(log2(output delay time limit [s] × frame rate [fps] ÷ 2 (n-TId) )) ...(Formula 3)
[0060] In the above (Equation 3), n indicates the maximum TemporalId, and is the value of sps_max_sub_layers_minus1 calculated in step S112. The display latency picture number setting unit 113 sets the calculated number of display latency pictures of the layer whose TemporalId is TId to sps_max_num_reorder_pics[TId].
[0061] Next, the consecutive B picture count setting unit 114 sets the number of consecutive B pictures 162 for the layer whose TemporalId is TId (S115) using the frame rate 151, the transmission delay time limit value 152, and the layer count parameter 163. The consecutive B picture count 162 is the number of consecutive B pictures, and is calculated by the following (Equation 4).
[0062] Number of consecutive B pictures in the hierarchy where TemporalId is TId = int (transmission delay time limit [s] × frame rate [fps] ÷ 2 (n-TId) -1)...(Formula 4)
[0063] Next, the continuation number parameter setting unit 115 sets the continuation number parameter 165 for the layer whose TemporalId is TId, using the number of consecutive B pictures 162 and the number of display delay pictures 164 (sps_max_num_reorder_pics[TId]) for the layer whose TemporalId is TId (S116). The continuation number parameter 165 for the layer whose TemporalId is TId is set by the following (Equation 5).
[0064] Consecutive number parameter of the layer where TemporalId is TId = number of consecutive B pictures of the layer where TemporalId is TId - sps_max_num_reorder_pics[TId] + 1 (Equation 5)
[0065] The calculated consecutive number parameter 165 is set to sps_max_latency_increase_plus1[TId].
[0066] Next, the limit setting unit 101 moves to the next hierarchical layer to be processed by adding 1 to TId (S117). Steps S114 to S117 are repeated until TId reaches the hierarchical layer number 161, that is, until processing of all hierarchical layers is completed (S118).
[0067] Note that, here, the limit value setting unit 101 sets the number of layers 161, and then sets the number of display delay pictures 164 and the number of consecutive B pictures 162 in each layer, but the setting order is not limited to this.
[0068] <Configuration of the encoding unit 102> Fig. 7 is a block diagram showing an internal configuration of the encoding unit 102. As shown in Fig. 7, the encoding unit 102 includes an image rearrangement unit 121, a code block division unit 122, a subtraction unit 123, a transform quantization unit 124, a variable length encoding unit 125, an inverse transform quantization unit 126, an addition unit 127, a frame memory 128, an intra prediction unit 129, an inter prediction unit 130, and a selection unit 131.
[0069] <Operation (encoding)> Next, the encoding process (S102 in FIG. 4) according to this embodiment will be described with reference to FIG 8. FIG 8 is a flowchart of the encoding process according to this embodiment.
[0070] First, the variable length coding unit 125 performs variable length coding on sps_max_sub_layers_minus1, sps_max_num_reorder_pics[], and sps_max_latency_increase_plus1[] set by the limit value setting unit 101 (S121). sps_max_num_reorder_pics[] and sps_max_latency_increase_plus1[] exist for each layer, but the variable length coding unit 125 codes all of them.
[0071] Next, the image rearrangement unit 121 rearranges the input images 153 in accordance with sps_max_sub_layers_minus1, sps_max_num_reorder_pics[ ], and sps_max_latency_increase_plus1[ ], and determines the picture type of the input images 153 (S122).
[0072] The image rearrangement unit 121 performs this rearrangement using sps_max_num_reorder_pics[sps_max_sub_layers_minus1] and SpsMaxLatencyPictures. SpsMaxLatencyPictures is calculated by the following (Equation 6).
[0073] SpsMaxLatencyPictures=sps_max_num_reorder_pics[sps_max_sub_layers_minus1]+sps_max_latency_increase_plus1[sps_max_sub_layers_minus1]-1 (Formula 6)
[0074] Figures 9A to 9D are diagrams showing this sorting. Because sorting is performed as shown in Figures 9A to 9D, the encoding unit 102 cannot start encoding the input images 153 until a plurality of input images 153 have been input. In other words, a delay occurs from when the first input image 153 is input until the output of the code string 155 starts. This delay is the transmission delay time, and the above-mentioned transmission delay time limit value 152 is the limit value of this transmission delay time.
[0075] 9A to 9D show the number of transmission delay pictures corresponding to the coding structure limit value 154. Fig. 9A shows the number of transmission delay pictures when sps_max_num_reorder_pics[sps_max_sub_layers_minus1] is 1 and SpsMaxLatencyPictures is 2. Fig. 9B shows the number of transmission delay pictures when sps_max_num_reorder_pics[sps_max_sub_layers_minus1] is 2 and SpsMaxLatencyPictures is 3. Fig. 9C shows the number of transmission delay pictures when sps_max_num_reorder_pics[sps_max_sub_layers_minus1] is 3 and SpsMaxLatencyPictures is 7. FIG. 9B shows the number of transmission delay pictures when sps_max_num_reorder_pics[sps_max_sub_layers_minus1] is 4 and SpsMaxLatencyPictures is 7.
[0076] For example, in the case of FIG. 9A, image 0, image 1, image 2, and image 3 are input to the image encoding device 100 in this order, and the image encoding device 100 encodes these images in the order of image 0, image 3, image 1, and image 2. Since the image encoding device 100 needs to transmit the code string without gaps, it does not start transmitting the code string until image 3 is input. Therefore, a transmission delay of three pictures occurs from the input of image 0 to the start of transmitting the code string. In addition, the image rearrangement unit 121 determines the picture type of each image, and outputs information indicating which image each image uses as a reference picture to the inter prediction unit 130. Here, the picture types are I picture, P picture, and B picture.
[0077] Next, the code block division unit 122 divides the input image 153 into code blocks 171 (S123).
[0078] Next, the intra prediction unit 129 generates a prediction block of intra prediction and calculates the cost of the prediction block (S124). The inter prediction unit 130 generates a prediction block of inter prediction and calculates the cost of the prediction block (S125). The selection unit 131 uses the calculated cost and the like to determine the prediction mode and prediction block 177 to be used (S126).
[0079] Next, the subtraction unit 123 generates a difference block 172 by calculating the difference between the prediction block 177 and the code block 171 (S127). Next, the transformation and quantization unit 124 performs frequency transformation and quantization on the difference block 172 to generate a transformation coefficient 173 (S128). Next, the inverse transformation and quantization unit 126 restores the difference block 174 by performing inverse quantization and inverse frequency transformation on the transformation coefficient 173 (S129). Next, the addition unit 127 generates a decoded block 175 by adding the prediction block 177 and the difference block 174 (S130). This decoded block 175 is stored in the frame memory 128 and is used for prediction processing by the intra prediction unit 129 and the inter prediction unit 130.
[0080] Next, the variable length coding unit 125 codes prediction information 178 indicating the prediction mode used and the like (S131), and codes the transform coefficients 173 (S132).
[0081] Then, the process moves to the next code block (S133), and the encoding unit 102 repeats steps S124 to S133 until the process of all code blocks in the picture is completed (S134).
[0082] Then, the encoding unit 102 repeats steps S122 to S134 until the processing of all pictures is completed (S135).
[0083] <Effects> As described above, the image coding device 100 according to this embodiment determines the coding structure based on the frame rate 151 and the transmission delay time limit value 152. As a result, when the frame rate 151 is high, the image coding device 100 can deepen the hierarchy without increasing the display delay time of the decoder and the transmission delay time of the encoder, thereby improving time scalability. Also, by increasing the number of B pictures, it becomes possible to improve compression performance.
[0084] Furthermore, even in the case of various frame rates, it is possible to ensure that the display delay time of the designated decoder and the transmission delay time of the encoder are not exceeded.
[0085] This will be described in more detail. Fig. 10 is a diagram showing the number of layers 161, the number of display delay pictures 164, and the number of consecutive B pictures 162, which are calculated based on a frame rate 151 and a transmission delay time limit value 152. Fig. 10 also shows an example in which the transmission delay time limit value is set to 4 / 30 seconds.
[0086] 11A to 11D are diagrams showing coding structures based on the conditions of FIG. 10. FIG. 11A shows the structure when the frame rate is 24 fps. FIG. 11B shows the structure when the frame rate is 30 fps. FIG. 11C shows the structure when the frame rate is 60 fps. FIG. 11D shows the structure when the frame rate is 120 fps.
[0087] 9A to 9D show the numbers of pictures with a transmission delay in the coded stream when the frame rates are 24 fps, 30 fps, 60 fps, and 120 fps, respectively. Also, Fig. 12A to Fig. 12D show the numbers of pictures with a display delay when the frame rates are 24 fps, 30 fps, 60 fps, and 120 fps.
[0088] As shown in Fig. 10, the transmission delay time does not exceed the limit value of 4 / 30 seconds at all frame rates. In addition, in the current operational regulations (Non-Patent Document 2), the coding structure is limited to three layers as shown in Fig. 11B. That is, the number of display delay pictures is limited to two as shown in Fig. 12B, and the number of transmission delay pictures in the code string is limited to four as shown in Fig. 9B. In addition, in the case of 30 fps, the display delay time is 2 / 30 seconds and the transmission delay time is 4 / 30 seconds. In this embodiment, when the transmission delay time limit value is set to 4 / 30 seconds, the transmission delay time does not exceed 4 / 30 seconds and the display delay time does not exceed 2 / 30 seconds even if the number of layers is increased or decreased according to the frame rate.
[0089] Also, in this embodiment, the image coding device 100 determines the coding structure using a limit value of the transmission delay time, not the display delay time. By limiting the coding structure by the transmission delay time in this way, the coding structure can be determined so as not to exceed both the display delay time of 2 / 30 seconds and the transmission delay time of 4 / 30 seconds in the current operational regulations (Non-Patent Document 2). More specifically, if the number of display delay pictures is determined so as not to exceed the display delay time of 2 / 30 seconds in the current operational regulations (Non-Patent Document 2), the number of display delay pictures is 8 (8 / 120 seconds) at 120 fps, and a coding structure of up to 9 layers is permitted. However, if a coding structure of 9 layers is used, the number of transmission delay pictures becomes 256 (256 / 120 seconds), which greatly exceeds the transmission delay time of 4 / 30 seconds in the current operational regulations (Non-Patent Document 2). On the other hand, when the transmission delay time is considered and the number of transmission delay pictures is determined so as not to exceed 4 / 30 seconds, the number of transmission delay pictures is limited to 16 (16 / 120 seconds) at 120 fps, and the coding structure is limited to 5 layers. In this case, the display delay time does not exceed 2 / 30 seconds. By limiting the transmission delay time in this way, both the transmission delay time and the display delay time can be appropriately limited.
[0090] Furthermore, the image encoding device 100 sets a limit value for the encoding structure for each layer, which makes it possible to prevent the display delay time from exceeding a specified time even in an image decoding device that decodes only pictures in layers with a small TemporalId.
[0091] In the above description, the image coding device 100 calculates the coding structure limiting value such as the number of layers by a formula, but the table shown in Fig. 10 may be stored in advance in memory, and the coding structure limiting value may be set according to the frame rate 151 and the transmission delay time limit value 152 by referring to the table. The image coding device 100 may also use both the table and the formula. For example, the image coding device 100 may set the coding structure limiting value using the table when the frame rate is 24 fps or less, and may set the coding structure limiting value using the formula when the frame rate exceeds 24 fps.
[0092] In the above description, the image coding device 100 uses the output delay time limit value 152 and the frame rate 151 input from the outside, but this is not limiting. For example, the image coding device 100 may use a predetermined fixed value as at least one of the output delay time limit value 152 and the frame rate 151. The image coding device 100 may also determine at least one of the output delay time limit value 152 and the frame rate 151 depending on the internal state of a buffer memory or the like.
[0093] Also, the coding structures shown in Figures 11A to 11D are examples and are not limited to these. For example, the arrows indicating reference images are not limited to these, and each picture may not use a picture with a TemporalId larger than its own TemporalId as a reference image. For example, image B1 shown in Figure 11B may use image P4 as a reference image.
[0094] In addition, the above-mentioned limit values of the coding structure (number of layers, number of consecutive B pictures, and number of display delay pictures) are merely maximum values, and values smaller than the limit values may be used depending on the situation. For example, in FIG. 10, when the frame rate is 30 fps, the number of layers is 3, the number of consecutive B pictures is 3 [2], and the number of display delay pictures is 2 [2], and an coding structure as shown in FIG. 11B is shown, but the number of layers may be 3 or less, and the number of consecutive B pictures and the number of display delay pictures may be values corresponding to the number of layers of 3 or less. For example, the number of layers may be 2, the number of consecutive B pictures may be 2 [1], and the number of display delay pictures may be 2 [2]. In this case, for example, the coding structure shown in FIG. 11A is used. In that case, in the coding structure coding in step S121 shown in FIG. 8, information indicating the coding structure used is coded.
[0095] In the above description, the number of display delay pictures is set in sps_max_num_reorder_pics, but sps_max_num_reorder_pics may be a variable indicating the number of pictures whose order is to be changed. For example, in the example shown in Fig. 9C, input image 8, input image 4, and input image 2 are rearranged and encoded so that they are placed before their positions in the input order (display order). In this case, the number of pictures whose order is to be changed is 3, and this value 3 may be set in sps_max_num_reorder_pics.
[0096] In the above description, the consecutive number parameter is set to sps_max_latency_increase_plus1, and the value of sps_max_num_reorder_pics+sps_max_latency_increase_plus1-1 (SpsMaxLatencyPictures) is treated as the number of consecutive B pictures, but SpsMaxLatencyPictures may indicate the maximum number of picture decodes, which is the number of pictures decoded from when a picture is stored in a buffer after picture decoding is completed until it can be displayed. For example, in the case of image P4 in FIG. 12B, after the decoding of image P4 is completed, three images, image B2, image B1, and image B3, are decoded, and then image P4 becomes displayable. Also, image B2, image B3, and image P4 are displayed in order. This maximum number of picture decodes, 3, may be set to SpsMaxLatencyPictures.
[0097] In addition, in this embodiment, sps_max_num_reorder_pics and sps_max_latency_increase_plus1 are set for each layer and are coded, but this is not limited to the above. For example, in the case of a system that does not use temporal scalability, only the values of sps_max_num_reorder_pics and sps_max_latency_increase_plus1 of the deepest layer (the layer with the largest TemporalId) may be set and coded.
[0098] In the above description, the frame rates are 24 fps, 30 fps, 60 fps, and 120 fps, but other frame rates may be used. The frame rate may also be a numerical value including a decimal point, such as 29.97 fps.
[0099] Furthermore, the processing in this embodiment may be realized by software. This software may be distributed by downloading or the like. This software may also be recorded on a recording medium such as a CD-ROM and distributed. This also applies to the other embodiments in this specification.
[0100] (Embodiment 2) In this embodiment, an image decoding device corresponding to the image coding device described in the first embodiment will be described.
[0101] <Overall composition> FIG. 13 is a block diagram showing a configuration of an image decoding device 200 according to this embodiment.
[0102] 13 generates an output image 263 by decoding a code string 251. The code string 251 is, for example, the code string 155 generated by the image coding device 100 in Embodiment 1. The image decoding device 200 includes a variable length decoding unit 201, an inverse transform and quantization unit 202, an adder 203, a frame memory 204, an intra-prediction block generation unit 205, an inter-prediction block generation unit 206, a limit value decoding unit 208, an image rearrangement unit 209, and a coding structure confirmation unit 210.
[0103] <Overall Action> Next, the image decoding process according to this embodiment will be described with reference to FIG.
[0104] First, the variable length decoding unit 201 decodes the coding structure limiting value 257 from the code string 251. This coding structure limiting value 257 includes sps_max_sub_layers_minus1, sps_max_num_reorder_pics, and sps_max_latency_increase_plus1. The meaning of these pieces of information is the same as in the first embodiment. Next, the limiting value decoding unit 208 obtains the number of layers by adding 1 to sps_max_sub_layers_minus1, obtains the number of consecutive B pictures by the formula sps_max_num_reorder_pics+sps_max_latency_increase_plus1-1, and obtains the number of display latency pictures by sps_max_num_reorder_pics (S201). Furthermore, the limit value decoding unit 208 acquires the coding structure 262 (the number of layers, the number of display latency pictures, and the number of consecutive B pictures) from sps_max_num_reorder_pics and sps_max_latency_increase_plus1 of the layer of TemporalId corresponding to the value of HighestTId 252 input from outside, and outputs the acquired coding structure 262 to the image rearrangement unit 209 and the coding structure confirmation unit 210. Here, HighestTId 252 indicates the TemporalId of the highest layer to be decoded.
[0105] Next, the coding structure checking unit 210 checks whether each value of the coding structure 262 complies with the operating regulations (S202). Specifically, the coding structure checking unit 210 calculates each limit value according to the following (Equation 7) to (Equation 9) using the output delay time limit value 253 input from the outside and the frame rate 256 obtained by variable-length decoding the code string 251, and judges whether the coding structure is equal to or less than the calculated limit value.
[0106] Number of layers = int(log2(transmission delay time limit [s] × frame rate [fps])) + 1 (Formula 7)
[0107] Number of display delay pictures [TId] = int(log2(output delay time limit [s] × frame rate [fps] ÷ 2 (n-TId))) ...(Formula 8)
[0108] Number of consecutive B pictures [TId] = int (transmission delay time limit [s] × frame rate [fps] ÷ 2 (n-TId) -1)...(Formula 9)
[0109] If the coding structure is larger than the limit value (Yes in S203), the coding structure checking unit 210 displays an error message to that effect (S204) and ends the decoding process.
[0110] Next, the variable length decoding unit 201 decodes prediction information 255 indicating the prediction mode from the code sequence 251 (S205). If the prediction mode is intra prediction (Yes in S206), the intra prediction block generation unit 205 generates a prediction block 261 by intra prediction (S207). On the other hand, if the prediction mode is inter prediction (No in S206), the inter prediction block generation unit 206 generates a prediction block 261 by inter prediction (S208).
[0111] Next, the variable length decoding unit 201 decodes the transform coefficients 254 from the code string 251 (S209). Next, the inverse transform and quantization unit 202 restores the difference block 258 by performing inverse quantization and inverse frequency transform on the transform coefficients 254 (S210). Next, the adder 203 generates a decoded block 259 by adding the difference block 258 and the prediction block 261 (S211). This decoded block 259 is stored in the frame memory 204 and is used in the prediction block generation process by the intra prediction block generation unit 205 and the inter prediction block generation unit 206.
[0112] Then, the image decoding device 200 moves the process to the next code block (S212), and repeats steps S205 to S212 until the processing of all code blocks in the picture is completed (S213).
[0113] Note that the processes in steps S205 to S212 are performed only on pictures having a TemporalId equal to or less than HighestTId252 that are input from outside.
[0114] Next, the image rearrangement unit 209 rearranges the decoded pictures according to the coding structure 262 of the hierarchy of HighestTId 252 input from outside, and outputs the rearranged decoded pictures as output images 263 (S214).
[0115] Then, the image decoding device 200 repeats steps S205 to S214 until the processing of all pictures is completed (S215).
[0116] <Effects> As described above, the image decoding device 200 according to this embodiment can decode a code string generated by efficient encoding. Furthermore, the image decoding device 200 can check whether the coding structure complies with the operating regulations, and if it does not comply, can stop the decoding process and display an error message.
[0117] In the above description, the image decoding device 200 decodes only pictures in a hierarchy equal to or lower than HighestTId252 according to the HighestTId252 input from the outside, but this is not limited to the above. The image decoding device 200 may always decode pictures in all hierarchical layers. Alternatively, the image decoding device 200 may use a predetermined fixed value as HighestTId252, and always decode only pictures in a hierarchy equal to or lower than the predetermined hierarchy indicated by HighestTId252.
[0118] In the above description, the image decoding device 200 checks whether the coding structure 262 complies with the operating regulations. However, this function is not essential, and the coding structure 262 does not have to be checked.
[0119] Also, in the above description, the image decoding device 200 uses the output delay time limit value 253 input from the outside, but the output delay time limit value 253 may use a predetermined fixed value.
[0120] The rest is the same as in the first embodiment, so a detailed description is omitted.
[0121] The order of each flow is not limited to the above, as is the case with the encoding side.
[0122] As described above in the first and second embodiments, the image coding device 100 according to the first embodiment is an image coding device that generates a code sequence 155 (bit stream) by hierarchical coding of an input image 153, and performs the processing shown in FIG. 15.
[0123] First, the image coding device 100 determines the number of layers 161 in hierarchical coding so that the number of layers 161 is equal to or less than the maximum number of layers predetermined according to the frame rate (S301). Here, the maximum number of layers is the number of layers shown in Fig. 10, and is, for example, 2 when the frame rate is 24 fps, 3 when the frame rate is 30 fps, 4 when the frame rate is 60 fps, and 5 when the frame rate is 120 fps. In other words, when the frame rate is 60 fps or more, the maximum number of layers is 4 or more. Also, when the frame rate is 60 fps or less, the maximum number of layers is 4 or less. Also, when the frame rate is higher than 30 fps, the maximum number of layers is greater than 3.
[0124] The image coding device 100 further determines the picture type of the input image 153 so that the display delay picture number 164 is equal to or less than the maximum picture number determined in advance according to the frame rate. Here, the display delay picture number 164 is the number of pictures from when the image decoding device starts decoding an image to when the image decoding device outputs (displays) the image when the image decoding device decodes the code string 155 generated by the image coding device 100. Also, the picture type is an I picture, a P picture, or a B picture. Here, the maximum picture number is the display delay picture number shown in FIG. 10, and is, for example, 1 when the frame rate is 24 fps, 2 when the frame rate is 30 fps, 3 when the frame rate is 60 fps, and 4 when the frame rate is 120 fps. In other words, when the frame rate is 60 fps or more, the maximum picture number is 3 or more. Also, when the frame rate is 60 fps or less, the maximum picture number is 3 or less. Also, if the frame rate is greater than 30 fps, the maximum number of pictures is greater than 2.
[0125] Furthermore, the image coding device 100 determines the picture type of the input image 153 so that the number of consecutive B pictures 162 is equal to or less than a maximum consecutive number determined in advance according to the frame rate. Here, the maximum consecutive number is the number of display delay pictures shown in FIG. 10, and is, for example, 2 when the frame rate is 24 fps, 3 when the frame rate is 30 fps, 7 when the frame rate is 60 fps, and 15 when the frame rate is 120 fps. In other words, when the frame rate is 60 fps or more, the maximum consecutive number is 7 or more. When the frame rate is 60 fps or less, the maximum consecutive number is 7 or less. When the frame rate is higher than 30 fps, the maximum consecutive number is higher than 3.
[0126] Furthermore, the image coding device 100 may determine the maximum number of layers, the maximum number of pictures, and the number of consecutive B pictures in accordance with the frame rate, as shown in Fig. 10. That is, the image coding device 100 may set the maximum number of layers, the maximum number of pictures, and the number of consecutive B pictures to be larger as the frame rate is higher.
[0127] As described above, the number of layers 161, the number of display delay pictures 164, and the number of consecutive B pictures 162 are calculated by the above (Equation 1), (Equation 3), and (Equation 4) using the frame rate 151 and the transmission delay time limit value 152. That is, the maximum number of pictures, the encoder transmission delay (transmission delay time) which is the time from when an input image 153 is input to the image encoding device 100 to when a code string 155 is output, and the frame rate satisfy the following relationship.
[0128] Maximum number of pictures = int(log2(encoder transmission delay [s] x frame rate [fps]))
[0129] Furthermore, the maximum consecutive number, the encoder output delay, and the frame rate satisfy the following relationship.
[0130] Maximum number of consecutive frames = int (encoder transmission delay [s] x frame rate [fps] - 1)
[0131] The maximum number of layers, the encoder output delay, and the frame rate satisfy the following relationship.
[0132] Maximum number of layers = int(log2(encoder transmission delay [s] × frame rate [fps])) + 1
[0133] In addition, the maximum number of pictures [i] in each layer, the encoder transmission delay, and the frame rate satisfy the following relationship.
[0134] Maximum number of pictures [i] = int(log2(encoder transmission delay [s] × frame rate [fps] / 2 (n-i) ))
[0135] The maximum consecutive number [i] of each layer, the encoder transmission delay, and the frame rate satisfy the following relationship.
[0136] Maximum consecutive number [i] = int (encoder transmission delay [s] × frame rate [fps] / 2 (n-i) -1)
[0137] Here, i is an integer equal to or less than the maximum number of layers and indicates a layer, and n indicates (the maximum number of layers - 1).
[0138] Next, the image coding device 100 generates a code string 155 by hierarchically coding the input image 153 with the determined number of layers 161 and picture type (S302). The image coding device 100 also codes first information (sps_max_sub_layers_minus1), second information (sps_max_num_reorder_pics), and third information (sps_max_latency_increase_plus1) indicating the determined number of layers 161, the number of display delay pictures 164, and the number of consecutive B pictures 162.
[0139] Moreover, the image decoding device 200 according to the second embodiment is an image decoding device that generates an output image 263 by decoding a code sequence 251 (bit stream) obtained by hierarchical coding of an image, and performs the processing shown in FIG. 16.
[0140] First, the image decoding device 200 decodes an image from the code string 251 (S401).
[0141] Next, the image decoding device 200 decodes, from the bitstream 251, first information (sps_max_sub_layers_minus1) indicating the number of layers in hierarchical encoding (S402). For example, this number of layers is equal to or less than a maximum number of layers determined in advance according to the frame rate of the bitstream 251.
[0142] Furthermore, the image decoding device 200 decodes second information (sps_max_num_reorder_pics) indicating the number of display latency pictures from the code string 251. Moreover, the image decoding device 200 further decodes third information (sps_max_latency_increase_plus1) from the code string 251 indicating the number of consecutive B pictures.
[0143] Next, the image decoding device 200 rearranges and outputs the decoded images using the number of layers indicated in the first information, the number of display delay pictures indicated in the second information, and the number of consecutive B pictures indicated in the third information (S403).
[0144] Note that specific examples and limitations of the maximum layer number, which is the maximum value of the number of layers, the maximum picture number, which is the maximum value of the number of display delay pictures, and the maximum consecutive number, which is the maximum value of the number of consecutive B pictures, are the same as those of the image encoding device 100. In addition, the relationships of the maximum layer number, maximum picture number, and maximum consecutive number with the frame rate and the encoder transmission delay are also the same as those of the image encoding device 100.
[0145] Although the image decoding device and image encoding device according to the embodiments have been described above, the present invention is not limited to these embodiments.
[0146] Furthermore, each processing unit included in the image decoding device or image encoding device according to the above-mentioned embodiments is typically realized as an LSI, which is an integrated circuit. These may be individually implemented as single chips, or some or all of them may be included in a single chip.
[0147] The integrated circuit is not limited to an LSI, but may be realized by a dedicated circuit or a general-purpose processor. A field programmable gate array (FPGA) that can be programmed after the LSI is manufactured, or a reconfigurable processor that can reconfigure the connections and settings of the circuit cells inside the LSI may also be used.
[0148] In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory.
[0149] In other words, the image decoding device and the image encoding device include a processing circuitry and a storage electrically connected to (accessible from) the processing circuitry. The processing circuitry includes at least one of dedicated hardware and a program execution unit. In addition, when the processing circuitry includes a program execution unit, the storage unit stores a software program executed by the program execution unit. The processing circuitry uses the storage unit to execute the image decoding method or image encoding method according to the above-mentioned embodiment.
[0150] Furthermore, the present invention may be the above-mentioned software program, or a non-transitory computer-readable recording medium on which the above-mentioned program is recorded. Needless to say, the above-mentioned program can be distributed via a transmission medium such as the Internet.
[0151] Furthermore, all the numbers used above are merely examples for the purpose of specifically explaining the present invention, and the present invention is not limited to the numbers exemplified.
[0152] In addition, the division of functional blocks in the block diagram is an example, and multiple functional blocks may be realized as one functional block, one functional block may be divided into multiple blocks, or some functions may be transferred to another functional block. Furthermore, the functions of multiple functional blocks having similar functions may be processed in parallel or in a time-sharing manner by a single piece of hardware or software.
[0153] The order in which the steps included in the above image decoding method or image encoding method are executed is merely an example for specifically explaining the present invention, and the steps may be executed in an order other than the above. Also, some of the steps may be executed simultaneously (in parallel) with other steps.
[0154] The processes described in the above embodiments may be realized by centralized processing using a single device (system), or may be realized by distributed processing using multiple devices. The computer that executes the above programs may be either single or multiple. That is, centralized processing or distributed processing may be performed.
[0155] Furthermore, the present invention is particularly effective in cases where the functions of the receiving terminals are diverse and the broadcast is directed to many end users. For example, a signal having the above-mentioned data structure is broadcast. A terminal such as a 4k2k television can decode the full layer of data. Meanwhile, a smartphone can decode up to two layers. Also, depending on the congestion of the band, the transmitting device can send only the upper layer instead of the full layer. This enables flexible broadcasting and communication.
[0156] Although the image decoding device and the image encoding device according to one or more aspects of the present invention have been described based on the embodiments, the present invention is not limited to these embodiments. As long as they do not deviate from the spirit of the present invention, various modifications conceived by those skilled in the art to the present embodiments and configurations constructed by combining components in different embodiments may also be included within the scope of one or more aspects of the present invention.
[0157] (Embodiment 3) By recording a program for implementing the configuration of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments on a storage medium, it becomes possible to easily implement the processes shown in each of the above embodiments on an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.
[0158] Further, here, application examples of the video coding method (image coding method) and video decoding method (image decoding method) shown in each of the above embodiments and a system using the same will be described. The system is characterized by having an image coding / decoding device consisting of an image coding device using the image coding method and an image decoding device using the image decoding method. Other components of the system can be appropriately changed depending on the case.
[0159] 17 is a diagram showing the overall configuration of a content supply system ex100 that realizes a content distribution service. The area where communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.
[0160] This content supply system ex100 is connected to the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110, and devices such as a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game console ex115.
[0161] However, the content supply system ex100 is not limited to the configuration shown in Fig. 17, and any of the elements may be combined and connected. Also, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110, which are fixed wireless stations. Also, each device may be directly connected to each other via short-distance wireless or the like.
[0162] The camera ex113 is a device capable of shooting moving images, such as a digital video camera, and the camera ex116 is a device capable of shooting still images and moving images, such as a digital camera. The mobile phone ex114 may be any of the following: a GSM (registered trademark) (Global System for Mobile Communications) type, a CDMA (Code Division Multiple Access) type, a W-CDMA (Wideband-Code Division Multiple Access) type, a LTE (Long Term Evolution) type, a HSPA (High Speed Packet Access) mobile phone, or a PHS (Personal Handyphone System).
[0163] In the content supply system ex100, a camera ex113 and the like are connected to a streaming server ex103 through a base station ex109 and a telephone network ex104, thereby enabling live distribution and the like. In live distribution, a user performs encoding processing on content (e.g., a video of a live music performance, etc.) shot by the camera ex113 as described in each of the above embodiments (i.e., functions as an image encoding device according to an aspect of the present invention) and transmits the content to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to a client that has made a request. Examples of the clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game machine ex115, and the like that are capable of decoding the encoded data. Each device that receives the distributed data decodes the received data and plays it back (i.e., functions as an image decoding device according to an aspect of the present invention).
[0164] The encoding process of the captured data may be performed by the camera ex113, or by the streaming server ex103 which performs the data transmission process, or the two may share the same role. Similarly, the decoding process of the distributed data may be performed by the client, or by the streaming server ex103, or the two may share the same role. Furthermore, still images and / or video data captured by the camera ex116, not limited to the camera ex113, may be transmitted to the streaming server ex103 via the computer ex111. In this case, the encoding process may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or the two may share the same role.
[0165] Moreover, these encoding and decoding processes are generally processed in an LSIex500 possessed by the computer ex111 or each device. The LSIex500 may be a single chip or may be configured with multiple chips. Note that software for encoding and decoding moving images may be embedded in some kind of recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, etc., and the encoding and decoding processes may be performed using that software. Furthermore, if the mobile phone ex114 has a camera, video data captured by the camera may be transmitted. In this case, the video data is data that has been encoded and processed by the LSIex500 possessed by the mobile phone ex114.
[0166] Furthermore, the streaming server ex103 may be a plurality of servers or a plurality of computers that process, record, and distribute data in a distributed manner.
[0167] In this way, the content supply system ex100 allows the client to receive and play back encoded data. In this way, the content supply system ex100 allows the client to receive, decode, and play back information sent by a user in real time, so that even users without special rights or equipment can realize personal broadcasting.
[0168] In addition, as shown in FIG. 18, the content supply system ex100 is not limited to the example, and at least one of the video coding device (image coding device) or video decoding device (image decoding device) of each of the above-mentioned embodiments can be incorporated into a digital broadcasting system ex200. Specifically, in a broadcasting station ex201, multiplexed data in which music data and the like are multiplexed with video data is transmitted to a satellite ex202 or through radio waves. This video data is data coded by the video coding method described in each of the above-mentioned embodiments (i.e., data coded by an image coding device according to one aspect of the present invention). The broadcasting satellite ex202 receives this data and transmits radio waves for broadcasting, which are received by a home antenna ex204 capable of receiving satellite broadcasts. The received multiplexed data is decoded and played by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., functions as an image decoding device according to one aspect of the present invention).
[0169] The video decoding device or video encoding device shown in each of the above embodiments can also be implemented in a reader / recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or BD, or encodes a video signal on the recording medium ex215, and may further multiplex the video signal with a music signal and write it in some cases. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced in another device or system by the recording medium ex215 on which the multiplexed data is recorded. Also, a video decoding device may be implemented in a set-top box ex217 connected to a cable ex203 for cable television or an antenna ex204 for satellite / terrestrial broadcasting, and this may be displayed on a monitor ex219 of the television. In this case, the video decoding device may be incorporated in the television, not in the set-top box.
[0170] 19 is a diagram showing a television (receiver) ex300 using the video decoding method and video encoding method described in each of the above embodiments. The television ex300 includes a tuner ex301 that acquires or outputs multiplexed data in which audio data is multiplexed onto video data via an antenna ex204 that receives the broadcast or a cable ex203, a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates the received multiplexed data to be transmitted externally, and a multiplexing / separation unit ex303 that separates the demodulated multiplexed data into video data and audio data or multiplexes the video data and audio data encoded by a signal processing unit ex306.
[0171] The television ex300 also has a signal processing unit ex306 having an audio signal processing unit ex304 and a video signal processing unit ex305 (functioning as an image encoding device or an image decoding device according to an embodiment of the present invention) that decode the audio data and the video data, respectively, or encode the respective information, and an output unit ex309 having a speaker ex307 that outputs the decoded audio signal, and a display unit ex308 such as a display that displays the decoded video signal. The television ex300 also has an interface unit ex317 having an operation input unit ex312 that accepts input of user operations, etc. The television ex300 also has a control unit ex310 that comprehensively controls each unit, and a power supply circuit unit ex311 that supplies power to each unit. The interface unit ex317 may have, in addition to the operation input unit ex312, a bridge ex313 connected to an external device such as a reader / recorder ex218, a slot unit ex314 for enabling a recording medium ex216 such as an SD card to be mounted, a driver ex315 for connecting to an external recording medium such as a hard disk, a modem ex316 for connecting to a telephone network, etc. The recording medium ex216 is a medium that allows information to be electrically recorded by a non-volatile / volatile semiconductor memory element that stores the information. The various units of the television ex300 are connected to each other via a synchronous bus.
[0172] First, a configuration in which the television ex300 decodes and plays back multiplexed data acquired from the outside via the antenna ex204 or the like will be described. The television ex300 receives user operations from a remote controller ex220 or the like, and based on the control of a control unit ex310 having a CPU or the like, separates the multiplexed data demodulated by the modulation / demodulation unit ex302 in the multiplexing / separation unit ex303. Furthermore, the television ex300 decodes the separated audio data in the audio signal processing unit ex304, and decodes the separated video data in the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output to the outside from the output unit ex309, respectively. When outputting, it is preferable to temporarily store these signals in buffers ex318, ex319, etc. so that the audio signal and the video signal are played back in synchronization. The television ex300 may also read out the multiplexed data not from broadcasting or the like, but from recording media ex215, ex216 such as magnetic / optical disks and SD cards. Next, a configuration in which the television ex300 encodes an audio signal and a video signal and transmits them to the outside or writes them to a recording medium or the like will be described. The television ex300 receives user operations from the remote controller ex220 or the like, and, based on the control of the control unit ex310, encodes the audio signal in the audio signal processing unit ex304 and encodes the video signal in the video signal processing unit ex305 using the encoding method described in each of the above embodiments. The encoded audio signal and video signal are multiplexed in the multiplexing / demultiplexing unit ex303 and output to the outside. When multiplexing, it is preferable to temporarily store these signals in buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized. Note that the buffers ex318, ex319, ex320, and ex321 may be provided in multiple units as shown in the figure, or one or more buffers may be shared. Furthermore, other than those shown in the figure, data may be stored in a buffer as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / demultiplexing unit ex303.
[0173] Furthermore, in addition to acquiring audio data and video data from broadcasts, recording media, etc., the television ex300 may be configured to accept AV input from a microphone or camera and perform encoding processing on the data acquired from them. Note that while the television ex300 has been described here as being configured to be capable of the above-mentioned encoding processing, multiplexing, and external output, it may be configured not to be able to perform these processes and only be capable of the above-mentioned reception, decoding processing, and external output.
[0174] In addition, when the reader / recorder ex218 reads or writes multiplexed data from a recording medium, the above-mentioned decoding or encoding process may be performed by either the television ex300 or the reader / recorder ex218, or the television ex300 and the reader / recorder ex218 may share the same role.
[0175] As an example, the configuration of the information reproducing / recording unit ex400 when reading or writing data from an optical disk is shown in FIG. 20. The information reproducing / recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which will be described below. The optical head ex401 writes information by irradiating a laser spot onto the recording surface of the recording medium ex215, which is an optical disk, and reads information by detecting reflected light from the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives a semiconductor laser built into the optical head ex401 and modulates the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies a reproduction signal obtained by electrically detecting reflected light from the recording surface by a photodetector built into the optical head ex401, separates and demodulates the signal components recorded on the recording medium ex215, and reproduces the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 controls the rotational drive of the disk motor ex405 while moving the optical head ex401 to a predetermined information track, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproduction / recording unit ex400. The above read and write processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as necessary, and recording and reproducing information through the optical head ex401 while cooperating with the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor, and performs these processes by executing a read and write program.
[0176] In the above, the optical head ex401 has been described as irradiating a laser spot, but it may be configured to perform higher density recording using near-field light.
[0177] FIG. 21 shows a schematic diagram of a recording medium ex215, which is an optical disk. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disk is recorded in advance on the information track ex230 by changing the shape of the groove. This address information includes information for identifying the position of a recording block ex231, which is a unit for recording data, and a recording block can be identified by reproducing the information track ex230 and reading the address information in a recording and reproducing device. The recording medium ex215 also includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234, which are located on the inner or outer periphery of the data recording area ex233, are used for specific purposes other than recording user data. The information reproducing / recording unit ex400 reads and writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data, to the data recording area ex233 of such recording medium ex215.
[0178] In the above, the description has been given taking as examples optical discs such as single-layer DVDs and BDs, but the present invention is not limited to these and may be an optical disc with a multi-layer structure that allows recording on other surfaces as well. Also, the present invention may be an optical disc with a structure that allows multi-dimensional recording / playback, such as recording information on the same location on the disc using light of various different wavelengths or recording different layers of information from various angles.
[0179] In the digital broadcasting system ex200, a car ex210 having an antenna ex205 can receive data from a satellite ex202 or the like, and can play back moving images on a display device such as a car navigation system ex211 of the car ex210. Note that the car navigation system ex211 can be configured, for example, by adding a GPS receiver to the configuration shown in Fig. 19, and the same can be considered for a computer ex111, a mobile phone ex114, and the like.
[0180] 22A is a diagram showing a mobile phone ex114 using the video decoding method and the video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of taking videos and still images, and a display unit ex358 such as a liquid crystal display for displaying decoded data of the video captured by the camera unit ex365 and the video received by the antenna ex350. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a memory unit ex367 for storing the captured video, still images, recorded audio, or the encoded or decoded data of the received video, still images, email, etc., or a slot unit ex364 which is an interface unit with a recording medium for similarly storing data.
[0181] Further, a configuration example of the mobile phone ex114 will be described with reference to Fig. 22B. In the mobile phone ex114, a power supply circuit unit ex361, an operation input control unit ex362, a video signal processing unit ex355, a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation / demodulation unit ex352, a multiplexing / separation unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 are connected to each other via a bus ex370, in relation to a main control unit ex360 that comprehensively controls each unit of a main body unit having a display unit ex358 and an operation key unit ex366.
[0182] When the end call and power key is turned on by the user's operation, the power supply circuit unit ex361 starts up the mobile phone ex114 into an operable state by supplying power to each unit from the battery pack.
[0183] Based on the control of a main control unit ex360 having a CPU, ROM, RAM, etc., the mobile phone ex114 converts a voice signal collected by a voice input unit ex356 in a voice call mode into a digital voice signal in a voice signal processing unit ex354, performs spectrum spreading processing on this in a modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing on this in a transmission / reception unit ex351, and transmits it via an antenna ex350. Also, the mobile phone ex114 amplifies reception data received via the antenna ex350 in a voice call mode, performs frequency conversion processing and analog-to-digital conversion processing on this, performs spectrum despreading processing on this in the modulation / demodulation unit ex352, converts it into an analog voice signal in the voice signal processing unit ex354, and outputs this from a voice output unit ex357.
[0184] Furthermore, when sending an e-mail in the data communication mode, the text data of the e-mail input by operating the operation key unit ex366 of the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spectrum spreading processing on the text data in the modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing in the transmission / reception unit ex351, and then transmits the data to the base station ex110 via the antenna ex350. When receiving an e-mail, the received data is processed in roughly the reverse manner, and is output to the display unit ex358.
[0185] When transmitting video, still images, or video and audio in the data communication mode, the video signal processing unit ex355 compresses and encodes the video signal supplied from the camera unit ex365 using the video encoding method described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and sends the encoded video data to the multiplexing / separation unit ex353. Also, the audio signal processing unit ex354 encodes an audio signal collected by the audio input unit ex356 while the camera unit ex365 is capturing video, still images, etc., and sends the encoded audio data to the multiplexing / separation unit ex353.
[0186] The multiplexing / separation unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner, and the resulting multiplexed data is subjected to spectrum spreading processing in a modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and then transmitted via an antenna ex350 after undergoing digital-to-analog conversion processing and frequency conversion processing in a transmission / reception unit ex351.
[0187] When receiving data of a video file linked to a homepage or the like in the data communication mode, or when receiving an e-mail with video and / or audio attached, in order to decode the multiplexed data received via the antenna ex350, the multiplexing / separation unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and supplies the encoded video data to the video signal processing unit ex355 via the synchronous bus ex370, and supplies the encoded audio data to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by decoding using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., functions as an image decoding device according to one aspect of the present invention), and displays, for example, video and still images included in the video file linked to the homepage on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 also decodes the audio signal, and audio is output from the audio output unit ex357.
[0188] Also, like the television ex300, the terminals such as the mobile phone ex114 may be implemented in three different ways: a transmitting terminal having only an encoder, a transmitting terminal having only a decoder, and a receiving terminal having only a decoder, in addition to a transmitting terminal having both an encoder and a decoder. Furthermore, in the digital broadcasting system ex200, multiplexed data in which music data and the like are multiplexed with video data is received and transmitted, but the data may be multiplexed with text data related to the video in addition to the audio data, or may be video data itself instead of multiplexed data.
[0189] In this way, it is possible to use the video encoding method or video decoding method shown in each of the above embodiments in any of the above-mentioned devices and systems, and by doing so, it is possible to obtain the effects described in each of the above embodiments.
[0190] Furthermore, the present invention is not limited to the above-described embodiment, and various modifications and alterations are possible without departing from the scope of the present invention.
[0191] (Embodiment 4) It is also possible to generate video data by switching between the video coding method or device shown in each of the above embodiments and a video coding method or device conforming to a different standard, such as MPEG-2, MPEG4-AVC, or VC-1, as necessary.
[0192] Here, when multiple pieces of video data conforming to different standards are generated, it is necessary to select a decoding method corresponding to each standard when decoding. However, since it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that it is not possible to select an appropriate decoding method.
[0193] To solve this problem, multiplexed data, which is video data multiplexed with audio data, contains identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the video coding method or device shown in each of the above embodiments will be described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.
[0194] FIG. 23 is a diagram showing the structure of multiplexed data. As shown in FIG. 23, the multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and the sub-video of a movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio mixed with the main audio, and the presentation graphics stream indicates the subtitles of the movie. Here, the main video indicates a normal video displayed on a screen, and the sub-video indicates a video displayed on a small screen within the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI components on a screen. The video stream is encoded by the moving image encoding method or device shown in each of the above embodiments, or a moving image encoding method or device conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or Linear PCM.
[0195] Each stream included in the multiplexed data is identified by a PID. For example, 0x1011 is assigned to the video stream used for the movie image, 0x1100 to 0x111F to the audio stream, 0x1200 to 0x121F to the presentation graphics stream, 0x1400 to 0x141F to the interactive graphics stream, 0x1B00 to 0x1B1F to the video stream used for the movie secondary video, and 0x1A00 to 0x1A1F to the audio stream used for the secondary audio to be mixed with the main audio.
[0196] 24 is a diagram showing a schematic diagram of how multiplexed data is multiplexed. First, a video stream ex235 consisting of a plurality of video frames and an audio stream ex238 consisting of a plurality of audio frames are converted into PES packet sequences ex236 and ex239, respectively, and then converted into TS packets ex237 and ex240. Similarly, data of a presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then converted into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into one stream.
[0197] Fig. 25 shows in more detail how a video stream is stored in a PES packet sequence. The first row in Fig. 25 shows a video frame sequence of a video stream. The second row shows a PES packet sequence. As indicated by arrows yy1, yy2, yy3, and yy4 in Fig. 25, I-pictures, B-pictures, and P-pictures, which are multiple Video Presentation Units in a video stream, are divided into individual pictures and stored in the payload of a PES packet. Each PES packet has a PES header, and the PES header stores a Presentation Time-Stamp (PTS) that is the display time of the picture and a Decoding Time-Stamp (DTS) that is the decoding time of the picture.
[0198] Fig. 26 shows the format of the TS packet that is finally written to the multiplexed data. The TS packet is a fixed-length packet of 188 bytes consisting of a 4-byte TS header that has information such as a PID that identifies the stream, and a 184-byte TS payload that stores the data, and the above PES packet is divided and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is added to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. Information such as ATS (Arrival_Time_Stamp) is written in the TP_Extra_Header. The ATS indicates the start time of transfer of the TS packet to the PID filter of the decoder. In the multiplexed data, source packets are lined up as shown in the lower part of Fig. 26, and the number that increments from the beginning of the multiplexed data is called SPN (Source Packet Number).
[0199] In addition to the various streams such as video, audio, and subtitles, the TS packets contained in the multiplexed data also contain a PAT (Program Association Table), PMT (Program Map Table), and PCR (Program Clock Reference). The PAT indicates the PID of the PMT used in the multiplexed data, and the PID of the PAT itself is registered as 0. The PMT has the PID of each stream such as video, audio, and subtitles contained in the multiplexed data, as well as attribute information of the stream corresponding to each PID, and also has various descriptors related to the multiplexed data. The descriptors include copy control information that indicates whether copying of the multiplexed data is permitted or not. The PCR has information on the STC time corresponding to the ATS at which the PCR packet is transferred to the decoder, in order to synchronize the ATC (Arrival Time Clock), which is the time axis of the ATS, with the STC (System Time Clock), which is the time axis of the PTS and DTS.
[0200] FIG. 27 is a diagram explaining the data structure of a PMT in detail. At the beginning of a PMT, there is a PMT header that describes the length of the data contained in the PMT, etc. After that, there are multiple descriptors related to the multiplexed data. The above-mentioned copy control information and the like are described as descriptors. After the descriptors, there are multiple pieces of stream information related to each stream included in the multiplexed data. The stream information consists of stream descriptors that describe the stream type to identify the compression codec of the stream, the stream PID, and stream attribute information (frame rate, aspect ratio, etc.). There are as many stream descriptors as there are streams in the multiplexed data.
[0201] When recording on a recording medium, the multiplexed data is recorded together with a multiplexed data information file.
[0202] The multiplexed data information file is management information for multiplexed data as shown in FIG. 28, has one-to-one correspondence with the multiplexed data, and is made up of multiplexed data information, stream attribute information, and an entry map.
[0203] As shown in Fig. 28, the multiplexed data information consists of a system rate, a playback start time, and a playback end time. The system rate indicates the maximum transfer rate of the multiplexed data to the PID filter of the system target decoder, which will be described later. The interval of the ATS contained in the multiplexed data is set to be equal to or less than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the last video frame of the multiplexed data plus the playback interval of one frame.
[0204] As shown in Fig. 29, the stream attribute information is registered for each PID for each stream included in the multiplexed data. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information has information such as what compression codec was used to compress the video stream, the resolution of each picture data constituting the video stream, the aspect ratio, and the frame rate. The audio stream attribute information has information such as what compression codec was used to compress the audio stream, the number of channels included in the audio stream, which language it corresponds to, and the sampling frequency. This information is used for initializing the decoder before the player starts playing.
[0205] In this embodiment, the stream type included in the PMT of the multiplexed data is used. Also, when multiplexed data is recorded on the recording medium, video stream attribute information included in the multiplexed data information is used. Specifically, in the video coding method or device shown in each of the above embodiments, a step or means is provided for setting unique information indicating that the video data is generated by the video coding method or device shown in each of the above embodiments to the stream type included in the PMT or the video stream attribute information. This configuration makes it possible to distinguish between video data generated by the video coding method or device shown in each of the above embodiments and video data that complies with other standards.
[0206] FIG. 30 shows steps of the video decoding method according to the present embodiment. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is obtained from the multiplexed data. Next, in step exS101, it is determined whether the stream type or the video stream attribute information indicates that the multiplexed data is generated by the video coding method or device shown in each of the above embodiments. If it is determined that the stream type or the video stream attribute information is generated by the video coding method or device shown in each of the above embodiments, in step exS102, decoding is performed by the video decoding method shown in each of the above embodiments. In addition, if the stream type or the video stream attribute information indicates that the data complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS103, decoding is performed by the video decoding method that complies with the conventional standard.
[0207] In this way, by setting a new unique value in the stream type or video stream attribute information, it is possible to determine whether the video decoding method or device shown in each of the above embodiments is capable of decoding the data when decoding. Therefore, even when multiplexed data conforming to a different standard is input, an appropriate decoding method or device can be selected, making it possible to decode the data without causing an error. In addition, the video encoding method or device, or the video decoding method or device shown in the present embodiment can be used in any of the above-mentioned devices and systems.
[0208] (Embodiment 5) The video encoding method and device, and the video decoding method and device shown in each of the above embodiments are typically realized by an LSI, which is an integrated circuit. As an example, FIG. 31 shows the configuration of a single-chip LSIex500. The LSIex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which will be described below, and each element is connected via a bus ex510. When the power supply is on, the power supply circuit unit ex505 supplies power to each unit to start it up into an operable state.
[0209] For example, when performing encoding processing, the LSIex500 inputs AV signals from the microphone ex117, the camera ex113, etc. through the AV I / Oex509 based on the control of a control unit ex501 having a CPUex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as an SDRAM. Based on the control of the control unit ex501, the stored data is divided into a plurality of times as appropriate according to the processing amount and processing speed, and sent to the signal processing unit ex507, where the audio signal is encoded and / or the video signal is encoded. Here, the encoding processing of the video signal is the encoding processing described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data as the case may be, and outputs the data to the outside from the stream I / Oex506. This output multiplexed data is transmitted to the base station ex107, or written to a recording medium ex215. In addition, when multiplexing, it is advisable to temporarily store the data in a buffer ex508 to ensure synchronization.
[0210] In the above, the memory ex511 is described as an external configuration of the LSIex500, but it may be included inside the LSIex500. The buffer ex508 is not limited to one, and may include multiple buffers. Furthermore, the LSIex500 may be formed as a single chip or multiple chips.
[0211] In the above, the control unit ex501 has a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507, it is possible to further improve the processing speed. As another example, the CPU ex502 may include the signal processing unit ex507, or a part of the signal processing unit ex507, such as an audio signal processing unit. In such a case, the control unit ex501 is configured to include the CPU ex502 having the signal processing unit ex507 or a part thereof.
[0212] Although we refer to it as LSI here, it may also be called IC, system LSI, super LSI, or ultra LSI depending on the level of integration.
[0213] Furthermore, the method of integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. After LSI manufacture, a programmable FPGA (Field Programmable Gate Array) or a reconfigurable processor that allows reconfiguration of the connections and settings of circuit cells inside the LSI may be used. Typically, such a programmable logic device can execute the video encoding method or video decoding method shown in each of the above embodiments by loading or reading from a memory or the like a program that constitutes software or firmware.
[0214] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it may be possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.
[0215] (Embodiment 6) When decoding video data generated by the video encoding method or device shown in each of the above embodiments, the amount of processing is expected to increase compared to when decoding video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. Therefore, in the LSIex500, it is necessary to set a driving frequency higher than the driving frequency of the CPUex502 when decoding video data conforming to conventional standards. However, when the driving frequency is increased, a problem occurs in that power consumption increases.
[0216] In order to solve this problem, a video decoding device such as a television ex300 or an LSI ex500 is configured to identify which standard the video data complies with and switch the driving frequency according to the standard. FIG. 32 shows a configuration ex800 in this embodiment. If the video data is generated by the video encoding method or device shown in each of the above embodiments, the driving frequency switching unit ex803 sets the driving frequency high. Then, it instructs the decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments to decode the video data. On the other hand, if the video data is video data that complies with a conventional standard, it sets the driving frequency low compared to when the video data is generated by the video encoding method or device shown in each of the above embodiments. Then, it instructs the decoding processing unit ex802 that complies with the conventional standard to decode the video data.
[0217] More specifically, the drive frequency switching unit ex803 is composed of the CPU ex502 and the drive frequency control unit ex512 in FIG. 31. The decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments and the decoding processing unit ex802 that complies with the conventional standard correspond to the signal processing unit ex507 in FIG. 31. The CPU ex502 identifies which standard the video data complies with. Then, based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. Also, based on the signal from the CPU ex502, the signal processing unit ex507 decodes the video data. Here, for example, the identification information described in the fourth embodiment can be used to identify the video data. The identification information is not limited to that described in the fourth embodiment, and may be any information that can identify which standard the video data complies with. For example, if it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disc, the identification may be based on such an external signal. Also, the selection of the drive frequency in the CPUex502 may be based on a lookup table that associates the video data standard with the drive frequency, as shown in Fig. 34. The lookup table is stored in the bufferex508 or the internal memory of the LSI, and the CPUex502 can select the drive frequency by referring to this lookup table.
[0218] FIG. 33 shows steps for carrying out the method of the present embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies whether the video data is generated by the encoding method or device shown in each of the above embodiments based on the identification information. If the video data is generated by the encoding method or device shown in each of the above embodiments, in step exS202, the CPU ex502 sends a signal to set the driving frequency to a high frequency to the driving frequency control unit ex512. Then, the driving frequency is set to a high frequency in the driving frequency control unit ex512. On the other hand, if the video data is in accordance with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 sends a signal to set the driving frequency to a low frequency to the driving frequency control unit ex512. Then, in the driving frequency control unit ex512, the driving frequency is set to a low frequency compared to when the video data is generated by the encoding method or device shown in each of the above embodiments.
[0219] Furthermore, by changing the voltage applied to the LSIex500 or a device including the LSIex500 in conjunction with switching the drive frequency, it is possible to further improve the power saving effect. For example, when the drive frequency is set to a low value, it is conceivable to set the voltage applied to the LSIex500 or a device including the LSIex500 to a lower value compared to when the drive frequency is set to a high value.
[0220] In addition, the method of setting the drive frequency is not limited to the above-mentioned setting method, and may be such that the drive frequency is set high when the amount of processing required for decoding is large, and the drive frequency is set low when the amount of processing required for decoding is small. For example, when the amount of processing required for decoding video data conforming to the MPEG4-AVC standard is larger than the amount of processing required for decoding video data generated by the video encoding method or device shown in each of the above-mentioned embodiments, the drive frequency may be set in the opposite manner to the above-mentioned setting method.
[0221] Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set high, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set low. As another example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is not stopped, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the drive of the CPUex502 is temporarily stopped because there is a margin for processing. Even when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is temporarily stopped if there is a margin for processing. In this case, it is conceivable to set the stop time shorter than when the video data indicates that it is video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.
[0222] In this way, by switching the drive frequency according to the standard to which the video data conforms, it is possible to achieve power saving. Also, when the LSIex500 or a device including the LSIex500 is driven by a battery, the power saving can extend the battery life.
[0223] (Embodiment 7) In the above-mentioned devices and systems, such as televisions and mobile phones, multiple video data conforming to different standards may be input. In order to be able to decode multiple video data conforming to different standards, the signal processing unit ex507 of the LSIex500 must support multiple standards. However, if a signal processing unit ex507 corresponding to each standard is used individually, the circuit size of the LSIex500 will increase, and the cost will also increase.
[0224] In order to solve this problem, a configuration is adopted in which a decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with a decoding processing unit conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 of FIG. 35A. For example, the video decoding method shown in each of the above embodiments and the video decoding method conforming to the MPEG4-AVC standard share some of the processing contents in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For the common processing contents, a decoding processing unit ex902 conforming to the MPEG4-AVC standard is shared, and for other processing contents specific to one aspect of the present invention that are not conforming to the MPEG4-AVC standard, a dedicated decoding processing unit ex901 is used. In particular, since one aspect of the present invention is characterized by hierarchical coding, for example, a dedicated decoding processing unit ex901 is used for inverse quantization, and for any or all of the other processing such as entropy decoding, inverse quantization, deblocking filter, and motion compensation, a decoding processing unit is shared. Regarding sharing of the decoding processing unit, for common processing content, a decoding processing unit for executing the video decoding method shown in each of the above embodiments may be shared, and for processing content specific to the MPEG4-AVC standard, a dedicated decoding processing unit may be used.
[0225] Another example of partially sharing the processing is shown in ex1000 in FIG. 35B. In this example, a dedicated decoding processing unit ex1001 corresponding to the processing content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to the processing content specific to another conventional standard, and a shared decoding processing unit ex1003 corresponding to the processing content common to the video decoding method according to one aspect of the present invention and the video decoding method of another conventional standard are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for the processing content specific to one aspect of the present invention or another conventional standard, and may be capable of executing other general-purpose processing. In addition, the configuration of this embodiment can also be implemented in LSIex500.
[0226] In this way, by sharing a decoding processing unit for processing content common to a video decoding method according to one embodiment of the present invention and a video decoding method according to a conventional standard, it is possible to reduce the circuit size of the LSI and reduce costs. [Industrial Applicability]
[0227] The present invention can be applied to an image decoding method and device, or an image encoding method and device, and can be used in high-resolution information display devices or imaging devices including an image decoding device, such as televisions, digital video recorders, car navigation systems, mobile phones, digital cameras, and digital video cameras. [Explanation of symbols]
[0228] 100 Image encoding device 101 Limit value setting section 102 Encoding section 111 Hierarchical number setting section 112 Hierarchical number parameter setting section 113 Display delay picture count setting unit 114 B-picture consecutive number setting section 115 Continuous number parameter setting section 121, 209 Image sorting section 122 Code block division part 123 Subtraction section 124 Transformation and Quantization Unit 125 Variable-length coding section 126, 202 Inverse transformation and quantization unit 127, 203 Addition section 128, 204 frame memory 129 Intra Prediction Unit 130 Inter Prediction Unit 131 Selection section 151, 256 frame rates 152, 253 Transmission delay time limit 153 Input images 154, 257 coding structure limit 155, 251 code string 161 hierarchical levels 162 consecutive B pictures 163 Number of layers parameter 164 Display Delay Pictures 165 Continuous Number Parameters 171 Code Blocks 172, 174, 258 differential blocks 173, 254 Conversion factor 175, 259 Decoded Blocks 177, 261 predicted blocks 178, 255 Forecast information 200 Image Decoding Device 201 Variable length decoding unit 205 Intra prediction block generation unit 206 Inter-prediction block generation unit 208 Limitation Value Decoding Unit 210 Encoding structure confirmation section 252 Highest TId 262 encoding structure 263 Output Image
Claims
1. a receiving step of receiving a bit stream including a video encoded by hierarchically encoding a plurality of images included in the video into a hierarchical structure having one or more layers, and control information; and decoding the plurality of images from the bitstream, the lowest layer of the hierarchical structure includes I pictures and P pictures; a hierarchy other than the lowest hierarchy of the hierarchical structure includes a B-picture; the control information includes information about a frame rate of the moving image, The number of layers is predetermined based on a frame rate of the video. Receiving method.
2. A processing circuit; a storage device accessible by the processing circuitry; The processing circuitry uses the storage device to: Executing the receiving method according to claim 1 Receiving device.
Citation Information
Patent Citations
Device for encoding animation
JP2000324486A
Video signal decoding / encoding method and apparatus
JP2009540734A
Video transmission system, transmitting device, and repeating apparatus
JP2011216986A
Systems and methods for error resilient scheme for low latency h.264 video coding
US20120082226A1
Method and apparatus for video coding and decoding
WO2013004911A1
