Receiving method and receiving device
By encoding images in layers with equal decoding intervals and synchronized display delay, the method reduces processing load and ensures compatible decoding and display rates for diverse playback devices.
Patent Information
- Application Number
- JP2025205387
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2013-10-18
- Filing Date
- 2025-11-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2034-10-02
AI Technical Summary
Existing image encoding and decoding methods, such as HEVC, face high processing loads due to the need for decoding at short intervals, which is not feasible for playback devices that do not support high frame rates like 120fps.
The method encodes images in layers without referencing higher layers, setting decoding times of lower-layer pictures to equal intervals, allowing sequential decoding at matching the playback device's processing capacity, and includes display delay information for synchronized playback.
Reduces processing load by enabling decoding at frame rates compatible with playback devices, ensuring timely decoding and synchronized display without changing decoding timings based on the number of decoded layers.
Smart Images

Figure 0007955465000001 
Figure 0007955465000002 
Figure 0007955465000003
Abstract
Description
Technical Field
[0001] The present invention relates to an image encoding method for hierarchically encoding an image, an image decoding method for decoding a hierarchically encoded image, and the like.
Background Art
[0002] Conventionally, an image encoding method for hierarchically encoding an image and an image decoding method for decoding an image encoded by the hierarchical encoding have been proposed (for example, see Non-Patent Document 1).
Prior Art Documents
Non-Patent Documents
[0003]
Non-Patent Document 1
Summary of Invention
Problem to be Solved by the Invention
[0004] However, the image encoding method and the image decoding method according to Non-Patent Document 1 have a problem in that, because the processing load is high, it is not possible to efficiently perform processing on an image.
[0005] Therefore, the present invention provides an image encoding method and an image decoding method that can reduce processing load. [Means for solving the problem]
[0006] A receiving method according to one aspect of the present invention is a receiving method that receives and decodes an encoded stream containing a group of pictures that follow a randomly accessible I-picture in encoding order, and for each picture belonging to one of a plurality of layers, without referring to other pictures belonging to a higher layer than the layer to which the picture belongs, the receiving method receives the encoded stream containing a plurality of encoded pictures and a decoding time set for each of the plurality of pictures, obtains the decoding time of each of the plurality of pictures contained in the encoded stream from the encoded stream, decodes each of the plurality of pictures or the plurality of lower layer pictures contained in the encoded stream according to the obtained decoding time, and the decoding time of each of the plurality of pictures contained in the video is for some of the plurality of pictures contained in the video that do not belong to the highest layer of the plurality of layers. The decoding times of the multiple lower-layer pictures are set to be at equal intervals, and the timing of decoding each of the multiple lower-layer pictures is the same when the multiple pictures included in the encoded video are decoded and when only the multiple lower-layer pictures among the multiple pictures are decoded. The multiple pictures that do not belong to the lowest layer include bidirectional reference prediction pictures. The decoding time of all pictures belonging to the picture group is earlier than the decoding time of all pictures that follow in the display order from the later I-picture which is displayed later than the picture group. In the decoding time setting, if the frame rate at which all pictures included in the encoded video are decoded and displayed is f, the decoding times of each of the multiple lower-layer pictures included in all the pictures are set to be separated by a time indicated by n times the reciprocal of f (where n is an integer of 2 or more).
[0007] An image encoding apparatus according to one aspect of the present invention includes: an acquisition unit that acquires a plurality of pictures, including a plurality of first layer pictures and a plurality of second layer pictures, arranged in display order; an association unit that associates the plurality of pictures with a temporal ID defined in a video encoding standard, such that each of the plurality of first layer pictures is associated with the smallest temporal ID and each of the plurality of second layer pictures is associated with a temporal ID larger than the smallest temporal ID; and (i) regardless of whether all encoded pictures are decoded by the decoding device or only the encoded picture associated with the smallest temporal ID is decoded by the decoding device, the first decoding timings of each of the plurality of first layer pictures are spaced at regular intervals, and (ii) all of the plurality of pictures included in each random access unit are not included in the other random access unit. The system includes: a determination unit that determines the decoding timing for each of the plurality of pictures arranged in the display order such that all of the plurality of pictures are decoded without referencing any of the pictures in the random access unit, all of the plurality of pictures do not include any picture that is earlier in the display order than the first picture, and the first picture is positioned first in the decoding order within the random access unit; an encoding unit that encodes the plurality of pictures, which are arranged in an encoding order different from the display order in response to the decoding timing, according to the decoding timing so that a plurality of encoded pictures, including a plurality of encoded first layer pictures and a plurality of encoded second layer pictures, are generated; and a generation unit that generates an encoded stream including the plurality of encoded first layer pictures, the plurality of encoded second layer pictures and the decoding timing.
[0008] A transmission method according to one aspect of the present invention is a transmission method that encodes a moving image using an image encoding method that encodes a moving image for each picture belonging to one of a plurality of layers, without referring to other pictures belonging to a higher layer than the layer to which the picture belongs, and transmits the moving image, wherein the decoding times of each of the plurality of lower layer pictures, which are some of the plurality of pictures included in the moving image and do not belong to the highest layer of the plurality of layers, are set so that the decoding times of each of the plurality of lower layer pictures are at equal intervals, and the decoding timing of each of the plurality of lower layer pictures is the same when the plurality of pictures included in the encoded moving image are decoded and when only the plurality of lower layer pictures are decoded, and the decoding times of each of the plurality of pictures included in the moving image are set The system encodes each of the multiple pictures contained in the video according to the encoding order corresponding to the decoding time, generates an encoded stream including the encoded multiple pictures and the decoding time set for each of the multiple pictures, transmits the encoded stream, includes a multiple of pictures that do not belong to the lowest layer including a bidirectional reference prediction picture, the decoding time of all pictures belonging to the picture group is earlier than the decoding time of all pictures that follow in the display order from the backward I picture which is later in the display order than the picture group, and in setting the decoding time, if the frame rate at which all pictures contained in the encoded video are decoded and displayed is f, the decoding time of each of the multiple lower-layer pictures contained in all the pictures is set such that the decoding time of each of the multiple lower-layer pictures is separated by a time indicated by n times the reciprocal of f (where n is an integer of 2 or more).
[0009] These comprehensive or specific embodiments may be implemented as a system, method, integrated circuit, computer program, or recording medium such as a computer-readable CD-ROM, or as any combination of a system, method, integrated circuit, computer program, and recording medium. [Effects of the Invention]
[0010] The image encoding method and image decoding method of the present invention can reduce processing load. [Brief explanation of the drawing]
[0011] [Figure 1A] Figure 1A shows an example of how to achieve time scalability using HEVC. [Figure 1B] Figure 1B shows another example of achieving time scalability with HEVC. [Figure 2] Figure 2 illustrates the challenge of being unable to decode a 120fps encoded stream. [Figure 3] Figure 3 is a diagram illustrating the image encoding device in Embodiment 1. [Figure 4] Figure 4 shows an example of encoding a video using three layers in Embodiment 1. [Figure 5] Figure 5 shows an example of encoding a video using four layers in Embodiment 1. [Figure 6] Figure 6 shows another example of encoding video using three layers in Embodiment 1. [Figure 7] Figure 7 is a diagram illustrating the image decoding device in Embodiment 1. [Figure 8] Figure 8 shows the decoding order and display order of each picture, as well as the DTS and PTS, when the encoded stream is played back at 120fps, according to a modified example 1 of Embodiment 1. [Figure 9] Figure 9 is a block diagram showing the configuration of an image decoding device according to a modified example 1 of Embodiment 1. [Figure 10] Figure 10 is a flowchart showing an example of the operation of an image decoding device according to Modification 1 of Embodiment 1 when decoding a picture at all levels. [Figure 11] Figure 11 shows an example of modifying the DTS according to a modified example 2 of Embodiment 1. [Figure 12] FIG. 12 is a diagram for describing a picture to be decoded in an open-ended random access unit according to Modification 3 of Embodiment 1. [Figure 13] FIG. 13 is a flowchart illustrating an example of an operation of an image decoding apparatus according to Modification 3 of Embodiment 1 that decodes a moving image based on auxiliary information for playback control. [Figure 14] FIG. 14 is a diagram illustrating an example of DTS or PTS conversion according to Modification 4 of Embodiment 1. [Figure 15A] FIG. 15A is a block diagram of an image encoding apparatus according to an aspect of the present invention. [Figure 15B] FIG. 15B is a flowchart illustrating an image encoding method according to an aspect of the present invention. [Figure 15C] FIG. 15C is a block diagram of an image decoding apparatus according to an aspect of the present invention. [Figure 15D] FIG. 15D is a flowchart illustrating an image decoding method according to an aspect of the present invention. [Figure 16] FIG. 16 is an overall configuration diagram of a content supply system that implements a content distribution service. [Figure 17] FIG. 17 is an overall configuration diagram of a digital broadcasting system. [Figure 18] FIG. 18 is a block diagram illustrating a configuration example of a television. [Figure 19] FIG. 19 is a block diagram illustrating a configuration example of an information reproduction / recording unit that reads and writes information from and to a recording medium that is an optical disc. [Figure 20] FIG. 20 is a diagram illustrating a structural example of a recording medium that is an optical disc. [Figure 21A] FIG. 21A is a diagram illustrating an example of a mobile phone. [Figure 21B] FIG. 21B is a block diagram illustrating a configuration example of a mobile phone. [Figure 22] FIG. 22 is a diagram illustrating a configuration of multiplexed data. [Figure 23]Figure 23 schematically shows how each stream is multiplexed in the multiplexed data. [Figure 24] Figure 24 shows in more detail how the video stream is stored in the PES packet sequence. [Figure 25] Figure 25 shows the structure of TS packets and source packets in multiplexed data. [Figure 26] Figure 26 shows the data structure of PMT. [Figure 27] Figure 27 shows the internal structure of the multiplexed data information. [Figure 28] Figure 28 shows the internal structure of stream attribute information. [Figure 29] Figure 29 shows the steps for identifying video data. [Figure 30] Figure 30 is a block diagram showing an example of the configuration of an integrated circuit that implements the video encoding method and video decoding method of each embodiment. [Figure 31] Figure 31 shows a configuration for switching the drive frequency. [Figure 32] Figure 32 shows the steps for identifying video data and switching the drive frequency. [Figure 33] Figure 33 shows an example of a lookup table that associates video data specifications with drive frequencies. [Figure 34A] Figure 34A shows an example of a configuration in which the signal processing module is shared. [Figure 34B] Figure 34B shows another example of a configuration in which the signal processing module is shared. [Modes for carrying out the invention]
[0012] (Knowledge that formed the basis of this invention) The inventors have found that the following problems arise with respect to Non-Patent Document 1, which is described in the "Background Art" section.
[0013] In encoding schemes such as MPEG-4 AVC (Moving Picture Experts Group-4 Advanced Video Coding) or HEVC (High Efficiency Video Coding), temporal scalability (hereinafter referred to as temporal scalability) can be achieved by hierarchically encoding pictures. For example, by decoding all pictures, playback at 120fps becomes possible, and by decoding only the pictures belonging to a specific layer, playback at 60fps becomes possible.
[0014] By utilizing this kind of time scalability, it becomes possible to play back at double speed by decoding only the pictures belonging to a specific layer at 120fps intervals. Furthermore, playback devices that do not support decoding at 120fps intervals (hereinafter referred to as 120fps-incompatible playback devices) may be able to play back a 120fps encoded stream at 60fps.
[0015] Figures 1A and 1B illustrate an example of how to achieve time scalability with HEVC. These figures show the reference relationships between layers and the decoding order (i.e., encoding order) of each picture.
[0016] Figure 1A shows an example of encoding each picture using a three-layer structure. In Figure 1A, TId is the Temporal ID, an identifier used to identify the layer. I represents an I picture (in-screen predictive picture), P represents a P picture (e.g., a forward-looking predictive picture), and B represents a B picture (e.g., a two-way predictive picture). The numbers to the right of I, P, and B indicate the display order of those pictures. The arrows represent the reference relationships between pictures; for example, picture B2 references picture I0 and picture P4. In other words, in this layer-to-layer reference relationship, a picture is encoded by referencing pictures in the same layer as the picture it belongs to, or in a lower layer, without referencing pictures in a higher layer than the layer to which the picture belongs. When each picture belonging to any of the layers from Temporal ID 0 to 2 is decoded, the frame rate becomes 120fps. In this case, decrypting each picture whose Temporal ID belongs to any level from 0 to 1 will result in a frame rate of 60fps.
[0017] Figure 1B shows an example where each picture is encoded using a four-layer structure. In this case, decoding each picture whose Temporal ID belongs to any of the layers from 0 to 3 results in a frame rate of 120 fps. In this case as well, decoding each picture whose Temporal ID belongs to any of the layers from 0 to 2 results in a frame rate of 60 fps.
[0018] As mentioned above, playback devices that do not support 120fps may be able to achieve 60fps playback by using time scalability, that is, by decoding only the pictures belonging to certain layers in the 120fps encoded stream.
[0019] However, even in this case, playback devices that do not support 120fps may have to decode each picture at intervals shorter than 1 / 60th of a second. Therefore, even with time scalability, playback devices that do not support 120fps have the problem of being unable to decode a 120fps encoded stream because the interval for decoding each picture is too short.
[0020] Figure 2 illustrates the problem that a playback device that does not support 120fps cannot decode a 120fps encoded stream. The encoded stream shown in Figure 2 is the 120fps encoded stream shown in Figure 1A. When a playback device that does not support 120fps plays this encoded stream at 60fps, it decodes only the pictures belonging to the layer with a Temporal ID of 0 and the pictures belonging to the layer with a Temporal ID of 1.
[0021] In Figure 2, T corresponds to the time at 120fps, or 1 / 120th of a second. In broadcast and stored content, when displaying content at a fixed frame rate, decoding is generally also performed at a fixed frame rate. Therefore, during 120fps playback, both the interval at which each picture is decoded (hereinafter referred to as the decoding interval) and the interval at which each picture is displayed (hereinafter referred to as the display interval) are T.
[0022] Therefore, even during 60fps playback, both the decoding interval and the display interval must be the time corresponding to 60fps, i.e., an interval of 2T. However, as shown in Figure 2, when playback is performed at 60fps, the decoding interval between picture I0 and picture P4, or between picture P4 and picture B2, is T. In 120fps-incompatible playback devices, where a decoding interval of 2T is required, there is a problem that the decoding of the pictures cannot be completed in time. In other words, there is a problem of high processing load in 120fps-incompatible playback devices.
[0023] To solve such problems, an image encoding method according to one aspect of the present invention encodes a moving image for each picture belonging to any of a plurality of layers without referring to other pictures belonging to a higher layer than the layer to which the picture belongs, wherein the decoding times of a plurality of lower-layer pictures, which are some of the plurality of pictures included in the moving image and do not belong to the highest layer of the plurality of layers, are determined so that the decoding times of each of the plurality of lower-layer pictures are at equal intervals, and the timing of decoding of each of the plurality of lower-layer pictures is the same when the plurality of pictures included in the encoded moving image are decoded and when only the plurality of lower-layer pictures are decoded, the plurality of pictures included in the moving image are encoded according to the encoding order corresponding to the determined decoding times, and an encoded stream is generated that includes the encoded plurality of pictures and the decoding times determined for each of the plurality of pictures.
[0024] As a result, each of the multiple pictures included in the encoded stream is encoded without referencing other pictures belonging to a higher hierarchy than the one to which it belongs. Therefore, the image decoder can decode only the multiple lower-level pictures in the encoded stream. Furthermore, the decoding times of each of the multiple lower-level pictures included in the encoded stream are equally spaced. Therefore, when the image decoder decodes only the multiple lower-level pictures in the encoded stream, it can decode those lower-level pictures sequentially at equally spaced time intervals. Therefore, by setting these equal intervals to appropriate times, the processing load on the image decoder can be reduced. In other words, the image decoder can decode each picture at a frame rate that matches its processing capacity, rather than performing picture-by-picture decoding at a high frame rate. Moreover, the timing of decoding each of the multiple lower-level pictures is the same whether multiple pictures included in the encoded stream (e.g., all pictures) are decoded or only the multiple lower-level pictures are decoded. Therefore, the image decoder does not need to change the timing of decoding each of the multiple lower-level pictures depending on whether all pictures in the encoded stream are decoded or only the multiple lower-level pictures are decoded. Therefore, the processing load on the image decoding device can be further reduced.
[0025] Furthermore, in determining the decoding time, the decoding time of each of the multiple top-level pictures belonging to the highest level among the multiple pictures included in the video may be determined between the decoding times of each of the multiple lower-level pictures.
[0026] As a result, when the encoded stream is decoded, the top layer picture and the lower layer pictures are decoded alternately. Therefore, the time intervals at which each of the multiple lower layer pictures in the encoded stream is decoded are all longer than the time intervals at which each of the pictures in the decoded stream is decoded. Consequently, when the image decoder decodes only multiple lower layer pictures, it can decode each picture at a reliably lower frame rate than when decoded each of the pictures in the decoded stream individually. Therefore, the processing load on the image decoder can be reliably reduced.
[0027] Furthermore, in determining the decoding time, the decoding time for each of the multiple pictures included in the video may be determined such that twice the interval between the decoding times of consecutive uppermost and lowermost pictures in the decoding order is equal to the time of the equal interval.
[0028] As a result, the decoding time interval for each of the multiple lower-layer pictures is twice the decoding time interval for the topmost and lower-layer pictures in the decoding order, that is, twice the time interval for each of all pictures in the decoding stream to be decoded. Therefore, if the frame rate when decoding and displaying all pictures in the encoded stream is 120fps, the image decoding device can decode each of the multiple lower-layer pictures contained in the encoded stream without burden at a time interval that is the reciprocal of the frame rate of 60fps.
[0029] Furthermore, if the video has multiple random access units consisting of multiple consecutive pictures in decoding order, the decoding time determination may be made for each random access unit such that, within that random access unit, all pictures except those displayed before the first picture in decoding order can be decoded without referencing pictures included in other random access units. For example, the first picture is an I-picture in which subsequent pictures in decoding order are prohibited from referencing pictures earlier in decoding order than the first picture. Alternatively, the first picture is an I-picture in which subsequent pictures in decoding order are prohibited from referencing pictures earlier in decoding order than the first picture.
[0030] This allows the image decoding device to properly decode each of the multiple pictures contained within a random access unit.
[0031] Furthermore, in determining the decoding time, if the frame rate at which all pictures included in the encoded video are decoded and displayed is f, the decoding time of each of the multiple lower-layer pictures included in all the pictures may be determined such that the decoding times of each of the pictures are separated by a time indicated by n times the reciprocal of f (where n is an integer of 2 or more).
[0032] This allows the image decoding device to decode each of the multiple underlying pictures sequentially and without burden at time intervals that are n times the reciprocal of its frame rate.
[0033] Furthermore, the image encoding method may also include in the encoded stream display delay information, which is the time between the decoding time of the first picture in the decoding order included in the video and the display time of the first picture in the display order included in the video.
[0034] This allows the image decoder to obtain display delay information from the encoded stream. Therefore, if the image decoder starts decoding the encoded stream at a time earlier than the display start time, based on the display delay information, it can display the video without delay from the display start time.
[0035] Furthermore, the image encoding method may also include unequal interval information in the encoding stream indicating that the decoding times determined for each of the multiple pictures contained in the video are not equally spaced.
[0036] This allows the image decoding device to obtain unequal-interval information from the encoded stream. Therefore, the image decoding device can determine that it cannot sequentially decode each of the multiple pictures contained in the encoded stream at the display frame rate. As a result, the image decoding device can decode the multiple pictures contained in the encoded stream at the appropriate timing by referring to the decoding time determined for each of the multiple pictures contained in the encoded stream.
[0037] Furthermore, an image decoding apparatus according to one aspect of the present invention is an image decoding method that decodes an encoded stream containing a video image encoded without referring to other pictures belonging to a higher level than the level to which the picture belongs, for each picture belonging to any of the multiple levels, wherein the decoding times of some of the multiple pictures included in the encoded stream, which are lower-level pictures that do not belong to the highest level of the multiple levels, are determined to be at equal intervals, and the timing of decoding each of the multiple lower-level pictures is the same when the multiple pictures included in the encoded stream are decoded and when only the multiple lower-level pictures are decoded, and the decoding times of each of the multiple pictures included in the encoded stream are obtained from the encoded stream, and each of the multiple pictures included in the encoded stream, or each of the multiple lower-level pictures, is decoded according to the obtained decoding times.
[0038] As a result, each of the multiple pictures included in the encoded stream is encoded without referencing other pictures belonging to a higher hierarchy than the one to which it belongs. Therefore, the image decoder can decode only the multiple lower-level pictures in the encoded stream. Furthermore, the decoding times of each of the multiple lower-level pictures in the encoded stream are equally spaced. Therefore, when the image decoder decodes only the multiple lower-level pictures in the encoded stream, it can decode those lower-level pictures sequentially at equally spaced time intervals. Therefore, if the equal intervals are appropriate, the processing load on the image decoder can be reduced. In other words, the image decoder can decode each picture at a frame rate that matches its processing capacity, rather than performing picture-by-picture decoding at a high frame rate. Moreover, the timing of decoding each of the multiple lower-level pictures is the same whether multiple pictures in the encoded stream (e.g., all pictures) are decoded or only the multiple lower-level pictures are decoded. Therefore, the image decoder does not need to change the timing of decoding each of the multiple lower-level pictures depending on whether all pictures in the encoded stream are decoded or only the multiple lower-level pictures are decoded. Therefore, the processing load on the image decoding device can be further reduced.
[0039] Furthermore, if the decoding times of the multiple pictures included in the encoded stream are not at equal intervals, the image decoding method may change the decoding times of the multiple pictures to equal intervals, and in decoding the encoded stream, each of the multiple pictures included in the encoded stream, or each of the multiple lower-layer pictures, may be decoded according to the changed decoding times.
[0040] As a result, the decoding times of each of the multiple pictures are changed at equal intervals, allowing the image decoder to decode each of the multiple pictures included in the encoded stream at equal time intervals. Therefore, the processing load on the image decoder can be further reduced.
[0041] Furthermore, in decoding the encoded stream, for each picture included in the encoded stream, it may be determined whether the decoding time obtained for that picture matches the timing of a processing signal that occurs at predetermined intervals, and if it is determined that they match, the picture may be decoded. For example, the image decoding method further determines the reciprocal of the frame rate when all pictures included in the encoded stream are decoded and displayed as the predetermined interval.
[0042] This allows each of the multiple pictures to be properly decoded at its own decryption time, even if the decoding times of each picture are not at equal intervals.
[0043] These comprehensive or specific embodiments may be implemented as a system, method, integrated circuit, computer program, or recording medium such as a computer-readable CD-ROM, or as any combination of a system, method, integrated circuit, computer program, or recording medium.
[0044] The embodiments will be described in detail below with reference to the drawings.
[0045] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, arrangement and connection configurations of components, steps, and the order of steps shown in the following embodiments are examples only and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, those not described in the independent claim representing the highest-level concept will be described as optional components.
[0046] (Embodiment 1) Figure 3 is a diagram illustrating the image encoding device in this embodiment.
[0047] In this embodiment, the image encoding device 10 acquires a video at a frame rate of 120 fps, encodes the video, generates an encoded stream, and outputs it. If all the pictures included in this encoded stream are decoded, the video is displayed at a frame rate of 120 fps. If only some of the pictures included in this encoded stream are decoded, the video is displayed at a frame rate of 60 fps. For example, some of the pictures included in the encoded stream are pictures that each belong to any hierarchy other than the highest hierarchy.
[0048] Figure 4 shows an example of encoding video using three layers in this embodiment. The image encoding device 10 in this embodiment generates a 120fps encoded stream by encoding video based on a prediction structure similar to the picture prediction structure shown in Figure 1A. At this time, the image encoding device 10 adjusts the decoding time (DTS: Decoding Time Stamp) of pictures that are decoded only when played back at 120fps so that the decoding interval becomes 2T (1 / 60 second) when the encoded stream is played back at 60fps. In other words, the image encoding device 10 adjusts the DTS of multiple pictures belonging to the highest layer among the multiple layers.
[0049] Figure 5 shows an example of encoding a video using four layers in this embodiment. The image encoding device 10 in this embodiment generates a 120fps encoded stream by encoding the video based on a prediction structure similar to the picture prediction structure shown in Figure 1B. At this time, the image encoding device 10 adjusts the decoding time of pictures that are decoded only when the encoded stream is played back at 120fps so that the decoding interval becomes 2T (1 / 60 second) when the encoded stream is played back at 60fps.
[0050] When encoding video, random access units, such as GOPs (Group of Pictures), are constructed so that decoding can begin from a picture in the middle of the encoding stream. The picture that is first in the decoding order within a random access unit is the random access point. For example, as shown in Figure 4, pictures I0 to B9 constitute the first random access unit, and picture I16 is the first picture of the second random access unit. In the second random access unit, pictures such as picture B11 do not refer to picture I16, or to pictures after picture I16 in the decoding order, but they are included in the second random access unit.
[0051] Furthermore, in recordings of encoded streams that are broadcast (i.e., broadcast streams), the recording may extend to the end of a random access unit, such as the first random access unit. In this case, picture P12 can be decoded, but picture B11 cannot be decoded because it is included in the second random access unit. Therefore, the decoding process becomes complicated.
[0052] Here, a picture that satisfies certain conditions is called an advanced picture. The conditions for a picture are: (1) that the picture references a picture included in the preceding random access unit in the decoding order, and (2) that the display order of the picture is earlier than any picture included in the preceding random access unit in the decoding order. A random access unit is a unit defined by the encoding order and decoding order, and the encoding order and decoding order are the same. Furthermore, a random access unit that is immediately preceding a random access unit containing an advanced picture, such as the first random access unit, is called an open-terminated random access unit. Also, a picture included in an open-terminated random access unit that is displayed later than an advanced picture is called an isolated picture. For example, in Figure 4, picture B11 is an advanced picture, and picture P12 is an isolated picture.
[0053] Figure 6 shows another example of encoding video using three layers in this embodiment.
[0054] In this embodiment, the image encoding device 10 may encode images in a way that avoids the occurrence of open-ended random access units, as shown in Figure 6, when achieving time scalability using three layers.
[0055] Every picture in the second random access unit appears later in the display order than the last picture P12 in the first random access unit. Therefore, none of the pictures in the second random access unit are advanced pictures. As a result, the first random access unit is not an open-ended random access unit. However, picture B1 cannot reference picture B2 because its decoding order is later than picture B1's. Similarly, picture B5 cannot reference picture B6 because its decoding order is later than picture B5's. Thus, the prediction structure of pictures with Temporal ID 2 is constrained.
[0056] In the examples in Figures 4 to 6, the temporal scalability at 60p and 120p was explained for cases with 3 and 4 layers. However, the combinations of frame rates and the number of layers that can be achieved are not limited to these. When decoding and displaying only low-level pictures, if the display interval of each picture at the display frame rate is T_pts, then it is sufficient to guarantee that the decoding interval of any consecutive pictures in the decoding order is the same as or greater than T_pts. The image encoding device 10 dynamically encodes the image to satisfy this condition.
[0057] Figure 7 is a diagram illustrating the image decoding device 20 in this embodiment.
[0058] In this embodiment, the image decoding device 20 acquires the encoded stream generated by the image encoding device 10 described above. The image decoding device 20 displays the video at a frame rate of 120 fps by decoding all the pictures included in this encoded stream. Alternatively, the image decoding device 20 displays the video at a frame rate of 60 fps by decoding some of the multiple pictures included in this encoded stream. For example, some of the multiple pictures included in the encoded stream are multiple pictures that each belong to any hierarchy other than the highest hierarchy.
[0059] Thus, in this embodiment, the decoding times of multiple pictures (hereinafter referred to as lower-layer pictures) that do not belong to the highest layer and are included in the encoded stream are equally spaced. Therefore, when the image decoding device decodes only multiple lower-layer pictures from the encoded stream, it can decode those lower-layer pictures sequentially at equally spaced time intervals. Therefore, by setting these equal intervals to an appropriate time (for example, 2T = 1 / 60 second as described above), the processing load on the image decoding device can be reduced. In other words, the image decoding device can decode each picture at a frame rate that matches its own processing capacity, without having to perform decoding at a high frame rate. For example, when decoding an encoded stream at 60fps, it is sufficient to ensure that the time required to decode one picture is 1 / 60 second or less.
[0060] (Variation 1) Here, we will explain the DTS of the first picture in a random access unit.
[0061] Figure 8 shows the decoding order and display order of each picture, as well as the DTS and PTS (Presentation Time Stamp) when the encoded stream shown in Figure 4 is played back at 120fps.
[0062] Here, the subscripts (numbers) for DTS and PTS indicate the display order. DTS or PTS are indicated by the header of the PES packet in MPEG-2 TS (Transport Stream) broadcasting, for example. In MMT (MPEG Media Transport) or RTP (Real-time Transport Protocol), DTS or PTS are indicated by the header of the transport layer packet or by the header information of the encoded stream included in the payload. In formats that transmit files without packetization, such as MPEG-DASH (Dynamic Adaptive Streaming over HTTP), DTS or PTS are included in the header portion of the file. Alternatively, in MPEG-4 AVC or HEVC, it is also possible to indicate DTS or PTS within the encoded stream by using SEI (Supplemental Enhancement Information), such as Picture Timing SEI or Buffering Period SEI.
[0063] In conventional encoded streams, images are displayed at a fixed frame rate, and if the interval between the PTS (Photo Timestamp) of two consecutive pictures in display order is T, then the interval between the DTS (Decoded Timestamp) of two consecutive pictures in decoding order is also always T. Therefore, a playback device (or image decoder) can start decoding the first picture in decoding order at the timing of its DTS, and then decode each subsequent picture sequentially at intervals of T without referring to the DTS of each subsequent picture.
[0064] On the other hand, in the encoded stream of this embodiment, as shown in Figure 8, the DTS interval between picture I0 and picture P4, and the DTS interval between picture P4 and picture B2 are 2T (where T is, for example, 1 / 120 seconds). Also, the DTS interval between picture B2 and picture B1, and the DTS interval between two consecutive pictures from picture B1 onwards in the decoding order are T. Therefore, in the encoded stream of this embodiment, the DTS interval between pictures is variable. Consequently, the image decoding device (or playback device) needs to refer to the DTS for each picture and decode the picture at the timing of that DTS.
[0065] The image decoding device 20 according to this modified example decodes or displays pictures based on the timing of video processing signals generated at regular intervals. For example, if the display frame rate is 120fps, the image decoding device 20 generates a video processing signal every T (e.g., 1 / 120 seconds) and decodes or displays pictures at the timing of the video processing signal generation. In the encoded stream shown in Figure 8, the DTS interval between picture I0 and picture P4, and the DTS interval between picture P4 and picture B2, are twice the period T of the video processing signal. Furthermore, the DTS interval between two consecutive pictures from picture B2 onward in the decoding order is equal to the period T of the video processing signal.
[0066] Figure 9 is a block diagram showing the configuration of the image decoding device 20 in this modified example.
[0067] The image decoding device 20 according to this modified example has the same functions as the image decoding device 20 in the above embodiment, and decodes the encoded picture to the timing indicated by the DTS of the picture. Such an image decoding device 20 includes a signal interval setting unit 21, a DTS acquisition unit 22, a determination unit 23, and a decoding unit 24.
[0068] Figure 10 is a flowchart showing an example of the operation of the image decoding device 20 according to this modified example when decoding a picture of all levels.
[0069] First, the signal interval setting unit 21 of the image decoding device 20 sets the interval or period (hereinafter referred to as V_period) at which the video processing signal is generated to be the reciprocal of the frame rate when decoding and displaying all layers (step S21).
[0070] Next, the DTS acquisition unit 22 acquires the DTS of the picture to be decoded (hereinafter referred to as dts_i) from the header of the PES packet in which the encoded data of the picture is stored (step S22). Next, the determination unit 23 monitors the timing of the video processing signal and determines whether that timing matches dts_i (step S23). If the interval of the picture's DTS is N times V_period, the timing of the video processing signal that occurs N times, counting from the decoding time of the previously decoded picture, will match dts_i. If it is determined that the timing matches ("yes" in step S23), the decoding unit 24 decodes the picture to be decoded (step S24). On the other hand, if it is determined that the timing does not match ("no" in step S23), the determination unit 23 repeatedly executes the process in step S23.
[0071] Furthermore, step S21 only needs to be performed once prior to the start of decoding of the first picture, and does not need to be performed for each picture that is decoded. Also, in the determination in step S23, if the difference between the timing of the video processing signal generation and dts_i is smaller than a predetermined threshold, the two may be considered to match. Moreover, the operation shown in Figure 10 can be applied not only to the time scalability between decoding all layers and decoding lower layers, but also to the time scalability between two different lower layers.
[0072] Thus, in the image decoding device 20 of this modified example, even if the interval of the DTS is variable, if the interval of the DTS can be expressed as an integer multiple of the period of the video processing signal, the picture can be decoded according to the variable DTS. As a result, the amount of processing required when determining the decoding timing can be reduced.
[0073] Here, we consider a case where the frame rate when all layers are decoded (hereinafter referred to as FrameRateAll) is not an integer multiple of the frame rate when only the lower layers are decoded (hereinafter referred to as FrameRatePart), such as the time scalability of 50fps and 120fps. In this case, in order to guarantee decoding in an image decoding device with a decoding capability of 50fps, the interval of the DTS when decoding only the lower layers must be 1 / 50th of a second. However, since FrameRateAll is not an integer multiple of FrameRatePart, not only is the decoding interval of the picture during playback at 120fps not a constant interval (i.e., a fixed interval), but the interval of the DTS (1 / 50th of a second) is not an integer multiple of the period of the video processing signal (1 / 120th of a second). As a result, decoding cannot be performed at the time indicated in the DTS, and overflow or underflow may occur in the buffer of the encoded picture, etc. Therefore, when providing time scalability, the image encoding device 10 according to this modified example may determine the combination of layers that realize time scalability such that the frame rate of the display when decoding all layers is an integer multiple of the frame rate of the display when decoding only the lower layers. Alternatively, the image encoding device 10 may store in the encoding stream information indicating that the frame rate when decoding all layers is an integer multiple of the frame rate when decoding only some layers. Or, the image encoding device 10 may store this information in a descriptor or the like in a Transport Stream (TS) which is formed by multiplexing the encoding stream.
[0074] Furthermore, in a random access unit, the difference between the DTS of the first picture in the decoding order and the PTS of the first picture in the display order is called the display delay. In the example shown in Figure 8, the difference between DTS0 and PTS0 is the display delay. In conventional encoded streams where the display frame rate is fixed, the interval between DTSs is also fixed, and this interval is the same as the interval between PTSs. Therefore, the display delay is expressed as the number of pictures decoded up to the PTS of the first picture in the display order multiplied by the interval between PTSs. In the example shown in Figure 8, only two pictures, picture I0 and picture P4, are decoded up to the PTS of picture I0, so in the conventional calculation method, the display delay is calculated as 2 × T. However, in the example shown in Figure 8, the interval between PTSs between picture I0 and picture P4, and the interval between PTSs between picture P4 and picture B2, are twice T, so the actual display delay is 4 × T. Thus, the conventional method cannot properly represent the display delay.
[0075] Therefore, the image encoding device 10 according to this modified example may include information in the encoded stream indicating how many times the display delay is compared to the PTS interval, in order to correctly represent the display delay even in encoded streams where the DTS interval is not constant. In the example shown in Figure 8, the PTS interval is T, and the display delay is 4 times T, so the image encoding device 10 represents the display delay as 4. Alternatively, the image encoding device 10 may indicate the display delay as the actual time length, such as "4 × T". If the number of pictures decoded up to the PTS of the first picture in the display order is required, the image encoding device 10 may indicate that number separately from the information indicating the display delay described above. Furthermore, the image encoding device 10 may seamlessly connect multiple streams or multiple specific sections of a stream. In this case, the image encoding device 10 encodes the streams or specific sections before and after the connection so that the display delays are equal, taking into account that the DTS interval is variable. In this case, the image encoding device 10 may store information in the encoding stream indicating that the display delay is the same before and after the seamless connection. Alternatively, when encoding streams that are seamlessly connected to each other, the image encoding device 10 may encode them so that the display delay is the same before and after the seamless connection, rather than encoding them so that the number of pictures decoded up to the PTS of the first picture in display order is the same.
[0076] Furthermore, the image encoding device 10 according to this modified version may signal auxiliary information indicating that the interval of DTS is not constant when the display frame rate is constant, i.e., the interval of PTS is constant. For example, the auxiliary information is a flag indicating whether the interval of DTS is constant or not. In this case, if the flag indicating that it is not constant is set, the image decoding device 20 will perform the operation shown in Figure 10, and if it is not set, the interval of DTS is constant, so it may operate without referring to the DTS for each picture.
[0077] The image encoding device 10 in this modified example may set the above-mentioned auxiliary information for each random access unit, for each encoded stream unit, or for each unit referenced by the playlist in the stored content. The auxiliary information can be stored in any of the multiple layers of the content transmission and reception system, such as the area for storing private data in the TS packet (private_data_bytes, etc.), the content management information in the stored content, or the SEI in an encoded stream such as MPEG-4 AVC or HEVC. However, since it is desirable that the auxiliary information be accessible before decoding the encoded stream, the image encoding device 10 may store the auxiliary information in a higher layer of the content transmission and reception system, such as a multiplexing layer such as TS, or the management information for multiplexed data. Thus, in this modified example, unequal interval information indicating that the decoding times determined for each of the multiple pictures contained in the video are not equally spaced is included in the encoded stream as the above-mentioned auxiliary information.
[0078] Furthermore, the image encoding device 10 according to this modified example may store information in the encoding stream indicating that the interval between DTS of any two consecutive pictures in the decoding order is variable when decoding only the lower layers of an encoding stream that has time scalability. This information indicates that, assuming the display frame rate (hereinafter referred to as frame_rate) is constant when decoding only the lower layers as described above, the interval between DTS of any two consecutive pictures in the decoding order is the same as or greater than 1 / frame_rate(seconds). For example, in MPEG2-TS, the PMT (Program Map Tables) indicates identification information of the encoding streams that constitute the program. The image encoding device 10 according to this modified example may indicate the above information by defining descriptors in the PMT. For example, an image decoding device 20 having decoding capability up to 60fps will not decode or play back the encoding stream if the descriptor in the PMT indicates that the interval between DTS will be less than 1 / 60th of a second. Alternatively, the image decoding device 20 can perform operations such as resetting the DTS so that the decoding interval for each picture is 1 / 60th of a second or longer, and then decoding each picture. If resetting the DTS requires a change in the PTS, the image decoding device 20 will also change the PTS.
[0079] (Modification 2) Next, we will explain how to change the decryption time of a picture.
[0080] In the above embodiment, the image decoding device 20 may change the DTS of the picture before starting decoding so that the interval of DTS becomes 1 / frame_rate(seconds) when decoding all layers.
[0081] Figure 11 shows an example of modifying the DTS.
[0082] The image decoding device 20 according to this modified example, as shown in Figure 11, changes the DTS of picture I0 and picture P4 to make the DTS interval for all of them 1 / frame_rate(seconds). Pictures with variable DTS intervals are those that are decoded before the PTS of the first picture in the display order. By changing the DTS of these pictures, it is possible to guarantee that the DTS interval will be fixed. Furthermore, if the DTS interval is fixed, the timing of picture decoding can be determined and decoded using the same method as before. Note that only the DTS of pictures decoded before the PTS of the first picture in the display order is changed to be delayed, and the DTS interval after the change will be 1 / frame_rate(seconds). Therefore, no special problems arise with decoder models such as HRD (Hypothetical Reference Decoder) in MPEG-4 AVC or HEVC.
[0083] The image encoding device 10 according to this modified example may indicate the value of the modified DTS in the TREF (Timestamp Reference) field of the PES header or elsewhere when multiplexing the encoded stream using a TS. Furthermore, even when using other multiplexing methods, the image encoding device 10 may indicate the DTS before and after the modification. In addition, information indicating the correspondence between the layer to be decoded and the DTS or PTS used may be indicated, for example, in the TS descriptor, the program information in the transport layer, or the management information in the stored content, such as indicating that the modified DTS should be used when decoding all layers. The image encoding device 10 may also indicate in the program information in the transport layer or the management information in the stored content that the interval of the modified DTS is fixed, or that this interval is equal to the interval of the PTS.
[0084] In this way, the image decoding device 20 can decode only the lower layers even if its processing power is low. On the other hand, the image decoding device 20 with high processing power that can decode all layers can determine that a modified DTS or PTS has been transmitted by analyzing the MPEG-2 TS descriptor or determining whether the TREF field in the PES packet header is present. Therefore, the image decoding device 20 can decode the encoded stream using the modified DTS or PTS.
[0085] Furthermore, if the image decoding device 20 records the encoded stream assuming that all layers can be decoded, it may record the encoded stream after modifying the DTS as described above. In this case, instead of using a field such as TREF to store the modified DTS or PTS, the DTS or PTS field in the PES header may be modified.
[0086] (Variation 3) Next, we will explain the auxiliary information for playback control.
[0087] Figure 12 is a diagram illustrating the picture decoded in an open-terminated random access unit.
[0088] For example, in the example shown in Figure 12, the end of the stored encoded stream, or the encoded stream acquired via the communication network, coincides with the end of the first random access unit, which is an open-ended random access unit. In this case, pictures B11, B13, B14, and B15 contained in the second random access unit cannot be decoded. However, picture P12, which belongs to the first random access unit, can be decoded. Here, picture B11 is an advanced picture, and picture P12 is an orphaned picture.
[0089] In a coded stream, a random access unit can decode all pictures within the random access unit, except for a predetermined picture, without referencing other random access units. This predetermined picture is, when the random access unit is configured as an open GOP (Group of Pictures), the picture displayed before the first picture in the decoding order within that random access unit. Such a predetermined picture may reference a picture contained in the random access unit immediately preceding it in the decoding order. Therefore, if decoding begins from the beginning of the random access unit, which is an open GOP, the predetermined picture cannot be decoded. Consequently, the image decoding device decodes and displays all pictures in the random access unit that are displayed after the first picture in the decoding order, treating each of them as decodeable pictures.
[0090] Here, the image decoding device 20, which has acquired the encoded data up to the open-ended random access unit of the encoded stream, cannot decode the advanced picture because it has not acquired the advanced picture. Therefore, the image encoding device 10 according to this modified example includes auxiliary information for playback control in the encoded stream.
[0091] Auxiliary information for playback control includes, for example, the information shown in (1) to (5) below.
[0092] (1) Information indicating whether the random access unit is an open-terminal random access unit. (2) Information indicating whether the random access unit is the last random access unit in a continuously played section, such as the end of the encoded stream or the last random access unit indicated by a playlist, etc. (3) Information indicating whether the picture is an orphaned picture, or information indicating whether it is the last orphaned picture in the display order in a random access unit. (4) Information indicating whether the picture is an advanced picture. (5) Information indicating whether there are any orphaned pictures that appear later in the random access unit than the specified picture. Furthermore, in (2) above, if discontinuous sections within an encoded stream, or different encoded streams, are concatenated, the random access unit before the concatenation section cannot reference the picture of the subsequent random access unit. Therefore, the random access unit before the concatenation section is treated the same as the last random access unit in the playback section.
[0093] The image encoding device 10 according to this modified example may set the auxiliary information for playback control as described above for each random access unit, for each encoded stream unit, or for each unit referenced by the playlist in the stored content. Furthermore, the auxiliary information can be stored in any of the multiple layers of the content transmission and reception system, such as the area for storing private data in TS packets (private_data_bytes, etc.), content management information in the stored content, or SEI in encoded streams such as MPEG-4 AVC or HEVC. However, since it is desirable that the auxiliary information be accessible before decoding the encoded stream, the image encoding device 10 may store the auxiliary information in a higher layer of the content transmission and reception system, such as a multiplexing layer like TS, or management information for multiplexed data.
[0094] The information in (1) and (2) above is attribute information indicating the attributes of a random access unit. The image encoding device 10 stores this attribute information in an SEI that is decoded before the first picture of the random access unit, or in the packet header or payload of a transport layer such as a TS packet or MMT packet that stores the first picture of the random access unit, or in a table that manages the attributes of the random access unit in the content management information. If information indicating a random access point is signaled at the transport layer, for example, in the random_access_indicator of a TS packet, the attribute information may be stored in the packet that indicates it is a random access point.
[0095] Furthermore, the information in (3) and (4) above is attribute information for each picture that constitutes a random access unit. The image encoding device 10 may store this attribute information collectively for the random access unit, or it may store it for each picture. If it is stored for each picture, the image encoding device 10 adds an SEI to each random access unit in the encoded stream, or stores the attribute information in the header or payload of the TS packet that stores the first data of the picture. The image encoding device 10 may also store the attribute information for a picture only if the random access unit is an open-terminated random access unit.
[0096] Next, we will explain the image decoding method for open-ended random access units.
[0097] Figure 13 is a flowchart showing an example of the operation in which the image decoding device 20 according to this modified example decodes a moving image based on auxiliary information for playback control.
[0098] First, the image decoding device 20 determines whether auxiliary information for playback control exists in the content management information, the transport layer such as TS, or the encoded stream (step S211). In a playback section that is played back continuously, auxiliary information for playback control is either provided or not provided for all random access units that constitute the playback section. Therefore, the processing in step S211 only needs to be performed for the first random access unit in the playback section.
[0099] If it is determined that auxiliary information for playback control exists ("Yes" in step S211), the image decoding device 20 performs the process in step S212. If it is determined that it does not exist ("No" in step S211), the image decoding device 20 performs the process in step S215.
[0100] In step S215, the image decoding device 20 determines the picture to be decoded based on a predetermined method (step S215). In step S212, the image decoding device 20 determines whether the random access unit to be decoded is the last random access unit in a continuously replayed section and satisfies the conditions that it is an open-ended random access unit (step S212).
[0101] If the condition is met ("Yes" in step S212), the image decoding device 20 determines which picture to decode by referring to auxiliary information for playback control (step S213). On the other hand, if the condition is not met ("No" in step S212), the image decoding device 20 decides to decode all pictures contained in the random access unit (step S214). However, in this case, if the random access unit to be decoded is the first random access unit in the playback interval, the image decoding device 20 does not decode pictures that refer to pictures contained in the random access unit immediately preceding the random access unit to be decoded in the decoding order.
[0102] Then, the image decoding device 20 decodes the picture determined in any of steps S213, S214, or S215 (step S216).
[0103] Note that the processing in step S212 may be performed for each random access unit. Also, the determination of the picture in step S213 is performed at the start of decoding of the random access unit if the auxiliary information for each of the multiple pictures is stored together in the random access unit. Furthermore, if the auxiliary information for each of the multiple pictures is stored separately for each picture, the determination of the picture is performed for each picture.
[0104] If the auxiliary information for playback control does not indicate the information for each picture, the image decoding device 20 may determine in step S213 whether the referenced picture exists. The image decoding device 20 can then determine whether the picture can be decoded and which picture to decode.
[0105] The image decoding device 20 may also perform the picture determination in step S213 as follows.
[0106] For example, the image decoding device 20 determines that only pictures that appear earlier in the display order than the advanced picture will be decoded, and that isolated pictures will not be decoded.
[0107] Alternatively, the image decoding device 20 determines the pictures to be decoded to be the pictures that appear earlier in the display order than the advanced picture and the isolated picture. The advanced picture that appears earlier in the display order than the isolated picture cannot be decoded. Therefore, at the timing indicated by the PTS of the advanced picture, the image decoding device 20 freezes and displays the decoding result of the picture that is immediately preceding the advanced picture in the display order among the decodeable pictures. In other words, the image decoding device 20 continues to display the decoding result of the preceding picture even at the timing indicated by the PTS of the advanced picture. Alternatively, the image decoding device 20 may display an image obtained by interpolating the decoding result of the picture that is immediately preceding the advanced picture in the display order among the decodeable pictures with the decoding result of the advanced picture.
[0108] Here, an image decoding device with a decoding capability of 120fps can perform special playback, such as playback at 4x speed, by decoding only the pictures belonging to the hierarchy with a Temporal ID of 0 at a decoding interval of 120fps. Therefore, the method for determining which pictures to decode may be switched between normal playback, where pictures from all hierarchies are decoded and displayed, and special playback. For example, in the example shown in Figure 1A or Figure 1B, the only pictures with a Temporal ID of 0 are the I picture and the P picture, and the advanced picture is not included in each of these pictures. Therefore, the image decoding device 20 may decode isolated pictures during normal playback, but may decode isolated pictures when special playback is performed, such as when decoding and playing back only the pictures belonging to the hierarchy with a Temporal ID of 0. More generally, in the case of special playback, the image decoding device 20 may decode only the pictures in the hierarchy to be decoded that are displayed earlier than the advanced picture.
[0109] Furthermore, if the random access unit is an open-terminated random access unit, the image encoding device 10 may store information for identifying the advance picture or the last isolated picture in display order as attribute information of the random access unit in the encoding stream. For example, if the decoding order of the advance picture is Nth within the random access unit, the image decoding device 20 can decide to decode only pictures that have a PTS earlier than the PTS of the Nth picture. Alternatively, if the last isolated picture in display order is Nth in the decoding order, the image decoding device 20 can decide not to decode pictures that are displayed later than that isolated picture.
[0110] (Modification 4) For example, in the modified image decoding device 20, whose decoding capability is limited to 60fps, if an encoded stream with a frame rate exceeding 60fps is acquired, the DTS or PTS of each picture may be converted so that each picture included in the encoded stream can be decoded. For example, the image decoding device 20 may convert the DTS or PTS when acquiring and recording an encoded stream via a broadcast or communication network. Alternatively, the image decoding device 20 may convert the DTS or PTS when transmitting an encoded stream recorded in memory or on a hard disk to an external device via a communication network or the like.
[0111] Figure 14 shows an example of DTS or PTS conversion. The first row from the top in Figure 14 shows the original DTS of all pictures that make up the entire layer and are included in the original encoded stream. When all pictures are decoded and displayed, the video is displayed at a frame rate of 120fps. The second row from the top in Figure 14 shows each picture and its original DTS when the above original encoded stream is recorded as a 60fps encoded stream. In a 60fps encoded stream recorded in this way, it is not guaranteed that the interval between DTSs of pictures will be 1 / 60 (seconds).
[0112] The third row from the top in Figure 14 shows each picture recorded and the modified DTS of those pictures when the original encoded stream is recorded as a 60fps encoded stream. The image decoding device 20 in this modified example makes the DTS changes shown in this third row. As a result of changing the DTS, it is guaranteed that the interval between DTSs of pictures will be 1 / 60 (seconds). The fourth row from the top in Figure 14 shows each picture recorded and the PTS of those pictures when the original encoded stream is recorded as a 60fps encoded stream. No change to the PTS is necessary, and the same value as the original PTS can be used. Here, the DTS is changed to be delayed from the original DTS, while the PTS is not changed. Therefore, neither overflow nor underflow occurs in the preceding buffer (equivalent to the Coded Picture Buffer in MPEG-4 AVC or HEVC) or the buffer for holding the reference picture (equivalent to the Decoded Picture Buffer in MPEG-4 AVC or HEVC) provided in the image decoding device 20.
[0113] If a change in the PTS is necessary, the PTS may be modified to satisfy the buffer model (equivalent to the Hypothetical Reference Decoder in MPEG-4 AVC or HEVC). When multiplexing an encoded stream using MPEG-2 TS, the PTS or DTS is indicated in the header of the PES packet. Therefore, the image decoder 20 may modify the PTS or DTS in the header of the PES packet. Alternatively, the image decoder 20 may store the modified value in the TREF (Timestamp Reference) field of the PES packet header without changing the value of the PTS or DTS. Alternatively, the image decoder 20 may modify the PTS or DTS and then store the original value of the PTS or DTS in the TREF field.
[0114] In the above embodiments and their modifications, time scalability based on a combination of 60fps and 120fps was described as an example, but the present invention may be applied to time scalability with other frame rate combinations. Furthermore, in the above embodiments and their modifications, the combination of all layers and each layer except the top layer was described as an example of the layers to be decoded when realizing time scalability, but the present invention may be applied to other combinations of layers.
[0115] Although one or more embodiments of an image encoding apparatus and an image decoding apparatus have been described above based on embodiments and their modifications, the present invention is not limited to these embodiments and their modifications.
[0116] Figure 15A is a block diagram of an image encoding device according to one aspect of the present invention.
[0117] An image encoding device 100 according to one aspect of the present invention is a device that encodes a moving image for each picture belonging to any of a plurality of layers without referring to other pictures belonging to a higher layer than the layer to which the picture belongs, and comprises a determination unit 101, an encoding unit 102, and a generation unit 103.
[0118] The determination unit 101 determines the decoding time for each of the multiple pictures contained in the video, such that the decoding times for some of the multiple pictures contained in the video, which are lower-level pictures that do not belong to the highest level of the multiple levels, are equally spaced. At this time, the determination unit 101 further determines the decoding time for each of the multiple pictures contained in the video such that the timing of decoding for each of the lower-level pictures is the same whether the multiple pictures contained in the encoded video are decoded or only the lower-level pictures of those multiple pictures are decoded.
[0119] The encoding unit 102 encodes each of the multiple pictures contained in the video according to the encoding order corresponding to the determined decoding time. The generation unit 103 generates an encoded stream that includes the encoded multiple pictures and the determined decoding time for each of the multiple pictures.
[0120] Figure 15B is a flowchart showing an image encoding method according to one aspect of the present invention.
[0121] An image encoding method according to one aspect of the present invention is a method in which an image encoding device 100 encodes a moving image for each picture belonging to any of a plurality of layers without referring to other pictures belonging to a higher layer than the layer to which the picture belongs. This image encoding method includes steps S101, S102, and S103. In step S101, the decoding time of each of the plurality of pictures contained in the moving image is determined so that the decoding times of each of the plurality of lower-layer pictures, which are some of the plurality of pictures contained in the moving image and do not belong to the highest layer of the plurality of layers, are equally spaced. At this time, the decoding time of each of the plurality of pictures contained in the moving image is further determined so that the timing of decoding each of the plurality of lower-layer pictures is the same whether the plurality of pictures contained in the encoded moving image are decoded or only the plurality of lower-layer pictures among the plurality of pictures are decoded.
[0122] In step S102, multiple pictures contained in the video are encoded according to the encoding order corresponding to the determined decoding time. In step S103, an encoded stream is generated that includes the encoded multiple pictures and the determined decoding time for each of those multiple pictures.
[0123] As a result, each of the multiple pictures included in the encoded stream is encoded without referencing other pictures belonging to a higher hierarchy than the one to which it belongs. Therefore, the image decoder can decode only the multiple lower-level pictures in the encoded stream. Furthermore, the decoding times for each of the multiple lower-level pictures included in the encoded stream are equally spaced. Therefore, when the image decoder decodes only the multiple lower-level pictures in the encoded stream, it can decode those lower-level pictures sequentially at equally spaced time intervals. Therefore, by setting this equal interval to an appropriate time, such as 1 / 60th of a second, the processing load on the image decoder can be reduced. In other words, the image decoder can decode each picture at a frame rate such as 60fps, which is appropriate to its processing capacity, rather than performing the decoding at a high frame rate such as 120fps. Moreover, the timing at which each of the multiple lower-level pictures is decoded is the same whether multiple pictures included in the encoded stream (e.g., all pictures) are decoded or only the multiple lower-level pictures are decoded. For example, as shown in Figure 4 or Figure 6, multiple lower-layer pictures such as pictures I0, P4, B2, I8, and B6 are decoded at the same timing whether decoding is performed at 120fps or 60fps. Therefore, the image decoding device does not need to change the decoding timing of each of the multiple lower-layer pictures depending on whether it is decoding all pictures in the encoded stream or only the multiple lower-layer pictures. Consequently, the processing load on the image decoding device can be further reduced.
[0124] Furthermore, in determining the decoding time in step S101, the decoding time of each of the multiple top-level pictures belonging to the highest level among the multiple pictures included in the video is determined between the decoding times of each of the multiple lower-level pictures. For example, in the example shown in Figure 6, the decoding time of picture B1, which is the top-level picture, is determined between the lower-level pictures P4 and B2, and the decoding time of picture B3, which is the top-level picture, is determined between the lower-level pictures B2 and I8.
[0125] As a result, when the encoded stream is decoded, the top layer picture and the lower layer pictures are decoded alternately. Therefore, the time intervals at which each of the multiple lower layer pictures in the encoded stream is decoded are all longer than the time intervals at which each of the pictures in the decoded stream is decoded. Consequently, when the image decoder decodes only multiple lower layer pictures, it can decode each picture at a reliably lower frame rate than when decoded each of the pictures in the decoded stream individually. Therefore, the processing load on the image decoder can be reliably reduced.
[0126] Furthermore, in determining the decoding time in step S101, the decoding time for each of the multiple pictures included in the video is determined such that twice the interval between the decoding times of consecutive top-layer and bottom-layer pictures in the decoding order is equal to the aforementioned equal interval time. For example, in the example shown in Figure 6, the interval between the decoding times of picture B1, which is the top-layer picture, and picture B2, which is the bottom-layer picture, in the decoding order is T = 1 / 120 seconds. Therefore, in step S101, the decoding time for each of the multiple pictures included in the video is determined such that 2 × T = 1 / 60 seconds is equal to the aforementioned equal interval time.
[0127] As a result, the decoding time interval for each of the multiple lower-layer pictures is twice the decoding time interval for the topmost and lower-layer pictures in the decoding order, that is, twice the time interval for each of all pictures in the decoding stream to be decoded. Therefore, if the frame rate when decoding and displaying all pictures in the encoded stream is 120fps, the image decoding device can decode each of the multiple lower-layer pictures contained in the encoded stream without burden at a time interval that is the reciprocal of the frame rate of 60fps.
[0128] Furthermore, if the video has multiple random access units consisting of multiple pictures that are consecutive in decoding order, the decoding time may be determined in step S101 as follows. That is, in step S101, the decoding time for each picture within the random access unit is determined so that all pictures in that random access unit, except for pictures displayed before the first picture in decoding order, can be decoded without referencing pictures contained in other random access units. Here, the first picture is an I-picture (so-called IDR picture: Instantaneous Decoding Refresh Picture) in which pictures decoded after the first picture are prohibited from referencing pictures decoded before the first picture. Alternatively, the first picture is an I-picture (so-called CRA picture: Clean Random Access Picture) that is decoded after the first picture and displayed before it is permitted to reference pictures decoded before the first picture. For example, in step S101, the image encoding device 100 determines the decoding time for each of the multiple pictures contained in the video, as shown in Figure 6. In the example shown in Figure 6, picture I16 is a CRA picture because picture B13, which is displayed earlier than picture I16, refers to picture P12 in the first random access unit.
[0129] This allows the image decoding device to properly decode each of the multiple pictures contained within a random access unit.
[0130] Here, we will explain in detail the processing operation in which the image encoding device 100 determines the decoding times of multiple pictures contained in the video in step S101, as shown in the example in Figure 6.
[0131] If the frame rate at which all pictures contained in the encoded video are decoded and displayed is, for example, 120fps, then in step S101, the image encoding device 100 determines the decoding time for each of the pictures in a time unit (1 / 120 seconds) that is the reciprocal of the frame rate (120fps). In other words, the decoding time determined for each picture is expressed as a time obtained by adding an offset value to an integer multiple of that time unit. Alternatively, in step S101, the image encoding device 100 may first determine the TId for each of the multiple pictures contained in the video, and then determine the decoding order for each of the multiple pictures. Then, based on the determined decoding order, the image encoding device 100 determines the DTS for each of the multiple pictures in the above time unit.
[0132] For example, the image encoding device 100 determines a value called TId for each picture arranged in display order, within the range of 0 to K (where K is an integer greater than or equal to 1), which is used to identify the hierarchy of that picture. A TId of K represents the highest hierarchy, and a TId of 0 represents the lowest hierarchy. Specifically, the determination unit 101 determines the Tid of the first I picture among the multiple pictures arranged in display order in the moving image to be 0. Furthermore, for each set of M consecutive pictures (hereinafter referred to as a picture set) from the multiple pictures following the first I picture arranged in display order, the determination unit 101 determines the TId of the last I picture or P picture in that picture set to be 0. In a picture set, the last picture in display order is either an I picture or a P picture, and the TId of that I picture or P picture is determined to be 0. A picture whose TId is determined to be 0 is hereinafter referred to as a 0-hierarchy picture. For example, in the example shown in Figure 1A, the four pictures, including picture B1, picture B2, picture B3, and picture P4, correspond to the picture set described above. Picture P4 is then identified as a 0-level picture.
[0133] Next, the determination unit 101 identifies at least one picture other than the 0th tier picture (e.g., picture B) included in the picture set as a candidate picture, which is a candidate for determining the TId. This candidate picture is a picture that is displayed between two default pictures whose TIds have already been determined. For example, in the example shown in Figure 1A, if the TIds of picture I0 and picture P4 have already been determined, then picture I0 and picture P4 are default pictures. In this case, in a picture set including pictures B1 to B3 and picture P4, picture B2, which is displayed between picture I0 and picture P4, is identified as a candidate picture.
[0134] Furthermore, if there are multiple candidate pictures identified in this way, the determination unit 101 determines the TId of the first candidate picture in the display order to be N, which is the value obtained by adding 1 to the TId of the two default pictures corresponding to that first candidate picture, that is not the lower one. For example, in the example shown in Figure 1B, if the TIds of picture I0, picture P8, and picture B4 have already been determined, then picture I0, picture P8, and picture B4 are default pictures. In this case, in the picture set including pictures B1 to B7 and picture P8, picture B2, which is displayed between picture I0 and picture B4, and picture B6, which is displayed between picture B4 and picture P8, are identified as candidate pictures. Therefore, the determination unit 101 determines the TId of candidate picture B2, which is the first candidate picture B2 in the display order among the candidate pictures B2 and B6, to be the value obtained by adding 1 to the TId=1 of the two default pictures I0 and B4 that correspond to the first candidate picture B2, which is not the lower of the two default pictures I0 and B4 (N=2).
[0135] The determination unit 101 repeats the process of identifying candidate pictures and determining their Tid until the ITd of all pictures other than 0-tier pictures included in the picture set, where N is in the range of K or less, is determined. As a result, a TId is determined for each picture, as shown in Figure 1A or Figure 1B.
[0136] Next, the determination unit 101 determines that the decoding order of the first I-picture is 1st. For example, as shown in Figure 6, the determination unit 101 determines that the decoding order of picture I0, which is the first I-picture, is 1st.
[0137] The determination unit 101 then determines the decoding order of each of the multiple pictures within each picture set. Specifically, the determination unit 101 determines that the decoding order of the 0th-level picture is the first in that picture set. Then, the determination unit 101 determines the decoding order of the other pictures included in that picture set, starting from the picture that appears first in display order, immediately following the already determined decoding order. For example, in a picture set containing pictures B1 to B7 and picture P8, the determination unit 101 determines that the decoding order of picture P8, which is the 0th-level picture, is the first. Then, the determination unit 101 determines the decoding order of pictures B1 to B3 so that picture B1, picture B2, and picture B3 follow in that order after picture P8.
[0138] Furthermore, the determination unit 101 decides to decode the multiple picture sets arranged in display order in the order in which they are arranged. In other words, the determination unit 101 determines the decoding order of the first picture set to be the ordinal number obtained by adding 1 to the decoding order of the first I picture (picture I0) as described above.
[0139] Furthermore, once the determination unit 101 determines the decoding time of the first I-picture (picture I0), it determines the decoding time of the next picture (picture P4) in the decoding order of that I-picture by adding the aforementioned time unit (1 / 120 second) × 2 to the decoding time of that I-picture. The determination unit 101 also determines the decoding time of each picture that is decoded later in the decoding order than the next picture (picture P4) by adding the aforementioned time unit to the decoding time of the previous picture in the decoding order.
[0140] As described above, the determination unit 101 determines the decoding time for each picture, so that the decoding times of the multiple lower-layer pictures are at equal intervals, that is, intervals of the aforementioned time unit (1 / 120 second) × 2.
[0141] Furthermore, in determining the decoding time in step S101, if the frame rate at which all pictures contained in the encoded video are decoded and displayed is f, the decoding time of each of the multiple lower-layer pictures contained in all the pictures may be determined such that the decoding times of each of the pictures are separated by a time indicated by n times the reciprocal of f (where n is an integer greater than or equal to 2).
[0142] This allows the image decoding device to decode each of the multiple underlying pictures sequentially and without burden at time intervals that are n times the reciprocal of its frame rate.
[0143] Furthermore, an image encoding method according to one aspect of the present invention may also include display delay information in the encoding stream, which is the time between the decoding time of the first picture in the decoding order included in the video and the display time of the first picture in the display order included in the video.
[0144] This allows the image decoding device to obtain display delay information from the encoded stream. Therefore, as shown in Figure 8, if the image decoding device starts decoding the encoded stream at a time earlier than the display start time by the amount of the display delay indicated by the display delay information, it can display the video without delay from the display start time.
[0145] Furthermore, an image encoding method according to one aspect of the present invention may include unequal interval information in the encoding stream indicating that the decoding times determined for each of the multiple pictures contained in the video are not equally spaced.
[0146] This allows the image decoding device to obtain unequal-interval information from the encoded stream. Therefore, the image decoding device can determine that it cannot sequentially decode each of the multiple pictures contained in the encoded stream at the display frame rate. As a result, the image decoding device can decode the multiple pictures contained in the encoded stream at appropriate timings, referring to the decoding time determined for each of the multiple pictures contained in the encoded stream, according to the flowchart shown in Figure 10.
[0147] Figure 15C is a block diagram of an image decoding device according to one aspect of the present invention.
[0148] An image decoding device 200 according to one aspect of the present invention is a device that decodes an encoded stream containing a video image, for each picture belonging to any of a plurality of layers, without referencing other pictures belonging to a higher layer than the layer to which the picture belongs. This image decoding device 200 comprises an acquisition unit 201 and a decoding unit 202.
[0149] The acquisition unit 201 acquires the decoding time of each of the multiple pictures contained in the encoded stream from the encoded stream. Here, the decoding time of each of the multiple pictures is determined as follows: In other words, these decoding times are determined so that the decoding times of some of the multiple pictures contained in the encoded stream, which are lower-level pictures that do not belong to the highest level of the multiple levels, are at equal intervals. Furthermore, these decoding times are determined so that the timing of decoding each of the multiple lower-level pictures is the same whether the multiple pictures contained in the encoded stream are decoded or only the lower-level pictures among the multiple pictures are decoded.
[0150] The decoding unit 202 decodes each of the multiple pictures or multiple lower-layer pictures contained in the encoded stream according to the acquired decoding time.
[0151] Figure 15D is a flowchart showing an image decoding method according to one aspect of the present invention.
[0152] An image decoding method according to one aspect of the present invention is a method in which an image decoding device 200 decodes an encoded stream containing a video image encoded for each picture belonging to one of a plurality of layers, without referencing other pictures belonging to a higher layer than the layer to which the picture belongs. This image decoding method includes steps S201 and S202.
[0153] In step S201, the decoding time of each of the multiple pictures contained in the encoded stream is obtained from the encoded stream. Here, the decoding time of each of the multiple pictures is determined as follows: In other words, these decoding times are determined so that the decoding times of some of the multiple pictures contained in the encoded stream, which are lower-level pictures that do not belong to the highest level of the multiple levels, are equally spaced. Furthermore, these decoding times are determined so that the timing of decoding each of the multiple lower-level pictures is the same whether the multiple pictures contained in the encoded stream are decoded or only the lower-level pictures of the multiple pictures are decoded.
[0154] In step S202, each of the multiple pictures or multiple underlayer pictures contained in the encoded stream is decoded according to the acquired decoding time.
[0155] As a result, each of the multiple pictures included in the encoded stream is encoded without referencing other pictures belonging to a higher hierarchy than the one to which it belongs. Therefore, the image decoding device 200 can decode only the multiple lower-level pictures in the encoded stream. Furthermore, the decoding times of each of the multiple lower-level pictures included in the encoded stream are equally spaced. Therefore, when the image decoding device 200 decodes only the multiple lower-level pictures in the encoded stream, it can decode those lower-level pictures sequentially at equally spaced time intervals. Therefore, if the equal intervals are appropriate, the processing load on the image decoding device 200 can be reduced. In other words, the image decoding device 200 can perform picture-by-picture decoding at a frame rate that matches its own processing capacity, without having to perform decoding at a high frame rate. Moreover, the timing at which each of the multiple lower-level pictures is decoded is the same whether multiple pictures included in the encoded stream (e.g., all pictures) are decoded or only the multiple lower-level pictures are decoded. Therefore, the image decoding device 200 does not need to change the decoding timing of each of the multiple lower-layer pictures depending on whether it is decoding all the pictures in the encoded stream or only multiple lower-layer pictures. Consequently, the processing load on the image decoding device 200 can be further reduced.
[0156] Furthermore, in one aspect of the present invention, if the decoding times of the multiple pictures included in the encoded stream are not at equal intervals, the decoding times of the multiple pictures may be changed to equal intervals, and in decoding the encoded stream, each of the multiple pictures or the multiple lower-layer pictures included in the encoded stream may be decoded according to the changed decoding times.
[0157] As a result, as shown in Figure 11, for example, the decoding times of each of the multiple pictures are changed at equal intervals, so that the image decoding device 200 can decode each of the multiple pictures included in the encoding stream at equal time intervals. Therefore, the processing load on the image decoding device 200 can be further reduced.
[0158] Furthermore, in an image decoding method according to one aspect of the present invention, when decoding an encoded stream, it may be determined whether the decoding time obtained for each picture included in the encoded stream matches the timing of a processing signal (corresponding to the video processing signal described above) that occurs at predetermined intervals, and if it is determined that they match, the picture may be decoded. For example, the image decoding method may further determine the reciprocal of the frame rate when all pictures included in the encoded stream are decoded and displayed as the predetermined interval described above.
[0159] As a result, as shown in the flowchart of Figure 10, even if the decoding times of multiple pictures are not at equal intervals, each of the multiple pictures can be appropriately decoded at its own decoding time.
[0160] In each of the above embodiments, each component may be implemented by dedicated hardware or by executing a software program suitable for each component. Each component may also be implemented by a program execution unit such as a CPU or processor reading and executing a software program recorded on a recording medium such as a hard disk or semiconductor memory. Here, the software that implements the image encoding devices 10 and 100 of the above embodiments or modified examples causes the computer to execute each step included in the flowchart shown in Figure 15B. Similarly, the software that implements the image decoding devices 20 and 200 of the above embodiments or modified examples causes the computer to execute each step included in the flowchart shown in Figure 15D.
[0161] (Embodiment 2) By recording a program for realizing the configuration of the video encoding method (image encoding method) or video decoding method (image decoding method) shown in each of the above embodiments onto a storage medium, the processes shown in each of the above embodiments can be easily performed on an independent computer system. The storage medium can be anything that can record a program, such as a magnetic disk, optical disk, magneto-optical disk, IC card, or semiconductor memory.
[0162] Furthermore, here we will describe application examples of the video encoding method (image encoding method) and video decoding method (image decoding method) shown in each of the embodiments described above, and a system using them. The system is characterized by having an image encoding and decoding device consisting of an image encoding device using the image encoding method and an image decoding device using the image decoding method. Other configurations in the system can be appropriately modified as needed.
[0163] Figure 16 shows the overall configuration of the content supply system ex100 that realizes the content distribution service. The communication service area is divided into desired sizes, and fixed radio stations, base stations ex106, ex107, ex108, ex109, and ex110, are installed in each cell.
[0164] This content supply system ex100 connects various devices such as computers ex111, PDAs (Personal Digital Assistants) ex112, cameras ex113, mobile phones ex114, and game consoles ex115 to the internet ex101, via the internet service provider ex102 and telephone network ex104, and base stations ex106 via ex110.
[0165] However, the content supply system ex100 is not limited to the configuration shown in Figure 16, and any combination of elements may be used for connection. Furthermore, each device may be directly connected to the telephone network ex104 from the base station ex106, which is a fixed radio station, without going through ex110. Also, each device may be directly connected to one another via short-range radio or the like.
[0166] Camera ex113 is a device capable of recording video, such as a digital video camera, and Camera ex116 is a device capable of taking still images and recording video, such as a digital camera. Furthermore, Mobile phone ex114 can be a mobile phone using GSM (Registered Trademark) (Global System for Mobile Communications), CDMA (Code Division Multiple Access), W-CDMA (Wideband-Code Division Multiple Access), LTE (Long Term Evolution), HSPA (High Speed Packet Access), or PHS (Personal Handyphone System), and any of these is acceptable.
[0167] In the content supply system ex100, cameras ex113 and other devices are connected to the streaming server ex103 via the base station ex109 and the telephone network ex104, enabling live streaming and other functions. In live streaming, content captured by the user using the camera ex113 (for example, video of a music concert) is encoded as described in each of the embodiments above (i.e., it functions as an image encoding device according to one aspect of the present invention) and transmitted to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to the requesting client. Clients include computers ex111, PDAs ex112, cameras ex113, mobile phones ex114, game consoles ex115, etc., that are capable of decoding the encoded data. Each device that receives the distributed data decodes and plays back the received data (i.e., it functions as an image decoding device according to one aspect of the present invention).
[0168] The encoding process for the captured data may be performed by the camera ex113, the streaming server ex103 which handles data transmission, or the tasks may be shared between them. Similarly, the decoding process for the transmitted data may be performed by the client, the streaming server ex103, or the tasks may be shared between them. In addition, still images and / or video data captured by camera ex116 may be transmitted to the streaming server ex103 via computer ex111, not limited to camera ex113. In this case, the encoding process may be performed by camera ex116, computer ex111, or streaming server ex103, or the tasks may be shared among them.
[0169] Furthermore, these encoding and decoding processes are generally performed by the computer ex111 or the LSIex500 in each device. The LSIex500 may be a single chip or a configuration consisting of multiple chips. Alternatively, the software for video encoding and decoding may be embedded in some recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, and the encoding and decoding processes may be performed using that software. In addition, if the mobile phone ex114 has a camera, video data acquired by that camera may be transmitted. In this case, the video data is data that has been encoded by the LSIex500 in the mobile phone ex114.
[0170] Furthermore, the streaming server ex103 may consist of multiple servers or multiple computers that distribute, process, record, and distribute data.
[0171] As described above, the content supply system ex100 allows clients to receive and play back encoded data. In this way, the content supply system ex100 allows clients to receive, decode, and play back information transmitted by users in real time, enabling personal broadcasting even for users who do not possess special rights or equipment.
[0172] Furthermore, as shown in Figure 17, the digital broadcasting system ex200 can also incorporate at least one of the motion image encoding device (image encoding device) or motion image decoding device (image decoding device) described in each of the above embodiments, not limited to the content supply system ex100. Specifically, at the broadcasting station ex201, multiplexed data, in which music data and other data are multiplexed with video data, is transmitted via radio waves to the communication station or satellite ex202. This video data is data encoded by the motion image encoding method described in each of the above embodiments (i.e., data encoded by an image encoding 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 reproduced by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., it functions as an image decoding device according to one aspect of the present invention).
[0173] Furthermore, the video decoding device or video encoding device described in each of the above embodiments can also be implemented in a reader / recorder ex218 that reads and decodes multiplexed data recorded on recording media ex215 such as DVDs and BDs, or encodes video signals onto recording media ex215, and, in some cases, multiplexes them with music signals before writing. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced on other devices or systems using the recording media ex215 on which the multiplexed data is recorded. Alternatively, the video decoding device may be implemented in a set-top box ex217 connected to a cable television cable ex203 or a satellite / terrestrial broadcast antenna ex204, and displayed on the television monitor ex219. In this case, the video decoding device may be built into the television itself instead of in a set-top box.
[0174] Figure 18 shows 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 with video data via an antenna ex204 or cable ex203, etc. that receives the above broadcast, a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates it into 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 the signal processing unit ex306.
[0175] Furthermore, the TV ex300 includes a signal processing unit ex306 having an audio signal processing unit ex304 that decodes audio data and video data, respectively, or encodes the information of each, and a video signal processing unit ex305 (which functions as an image encoding device or image decoding device according to one aspect of the present invention), 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 shows the decoded video signal. Furthermore, the TV ex300 has an interface unit ex317 having an operation input unit ex312 that receives user input, etc. Furthermore, the TV ex300 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 include, in addition to the operation input unit ex312, a bridge ex313 for connecting to external devices such as a reader / recorder ex218, a slot unit ex314 for inserting recording media such as an SD card ex216, a driver ex315 for connecting to external recording media such as a hard disk, and a modem ex316 for connecting to a telephone network. The recording media ex216 enables the electrical recording of information using non-volatile / volatile semiconductor memory elements that it stores. The various parts of the television ex300 are connected to each other via a synchronization bus.
[0176] First, we will describe a configuration in which the TV ex300 decodes and plays back multiplexed data acquired from an external source, such as the antenna ex204. The TV ex300 receives user input from a remote controller ex220 or the like, and based on the control of the control unit ex310, which has a CPU, the multiplexed data demodulated by the modulation / demodulation unit ex302 is separated by the multiplexing / separation unit ex303. Furthermore, the TV ex300 decodes the separated audio data with the audio signal processing unit ex304, and decodes the separated video data with 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 advisable to temporarily store these signals in buffers ex318, ex319, etc., so that the audio signal and video signal are played back in sync. In addition, the TV ex300 may read multiplexed data from recording media such as magnetic / optical disks or SD cards ex215, ex216, rather than from broadcasts, etc. Next, a configuration in which the TV ex300 encodes audio and video signals and transmits them externally or writes them to a recording medium will be described. The TV ex300 receives user operations from a remote controller ex220 or the like, and based on the control of the control unit ex310, encodes audio signals in the audio signal processing unit ex304 and encodes video signals in the video signal processing unit ex305 using the encoding method described in each of the embodiments above. The encoded audio and video signals are multiplexed in the multiplexing / decompression unit ex303 and output externally. When multiplexing, it is advisable to temporarily store these signals in buffers ex320, ex321, etc., so that the audio and video signals are synchronized. Note that there may be multiple buffers ex318, ex319, ex320, and ex321 as shown in the figure, or one or more buffers may be shared. Furthermore, in addition to what is shown in the figure, data may also be stored in buffers as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / decompression unit ex303.
[0177] Furthermore, in addition to acquiring audio and video data from broadcasts and recording media, the TV ex300 may also be configured to accept AV inputs from microphones and cameras, and may perform encoding processing on the data acquired from them. While the TV ex300 is described here as having the above-mentioned encoding processing, multiplexing, and external output capabilities, it may also be configured to only perform the above-mentioned reception, decoding, and external output functions, without being able to perform these processes.
[0178] Furthermore, when the reader / recorder ex218 reads or writes multiplexed data from the recording medium, the above 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 task.
[0179] As an example, Figure 19 shows the configuration of the information playback / recording unit ex400 when reading or writing data from an optical disc. The information playback / recording unit ex400 comprises the elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which are described below. The optical head ex401 writes information by irradiating the recording surface of the recording medium ex215, which is an optical disc, with a laser spot, and reads the information by detecting the reflected light from the recording surface of the recording medium ex215. The modulation recording unit ex402 electrically drives the semiconductor laser built into the optical head ex401 and modulates the laser light according to the recorded data. The playback / demodulation unit ex403 amplifies the playback signal electrically detected by a photodetector built into the optical head ex401 that detects the reflected light from the recording surface, separates and demodulates the signal components recorded on the recording medium ex215, and plays back the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information played back 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, moves the optical head ex401 to a predetermined information track, and performs laser spot tracking. The system control unit ex407 controls the entire information playback / recording unit ex400. The above reading and writing processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as needed, and performing information recording and playback through the optical head ex401 while coordinating the operation of the modulation recording unit ex402, the playback / demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor and executes these processes by running read / write programs.
[0180] In the above explanation, the optical head ex401 was described as emitting a laser spot, but a configuration using near-field light for higher-density recording is also possible.
[0181] Figure 20 shows a schematic diagram of the recording medium ex215, which is an optical disc. Guide grooves are formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating the absolute position on the disc is recorded in advance on the information track ex230 by changes in the shape of the grooves. This address information includes information for identifying the position of the recording block ex231, which is the unit in which data is recorded, and the recording block can be identified by playing back the information track ex230 and reading the address information in a recording or playback device. The recording medium ex215 also includes a data recording area ex233, an inner circumference area ex232, and an outer circumference area ex234. The data recording area ex233 is the area used to record user data, and the inner circumference area ex232 and outer circumference area ex234, which are located inward or outward from the data recording area ex233, are used for specific purposes other than recording user data. The information playback / 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 the recording medium ex215.
[0182] The above explanation used single-layer optical discs such as DVDs and Blu-ray discs as examples, but it is not limited to these; it may also be a multi-layer optical disc that can record on surfaces other than the surface. Furthermore, it may be an optical disc with a multi-dimensional recording / playback structure, such as recording information using light of various different wavelengths of color in the same location on the disc, or recording different layers of information from various angles.
[0183] Furthermore, in the digital broadcasting system ex200, it is possible to receive data from satellite ex202, etc., using a vehicle ex210 equipped with antenna ex205, and to play video on a display device such as the car navigation system ex211 located in the vehicle ex210. For example, the configuration of the car navigation system ex211 could be one of those shown in Figure 18 with the addition of a GPS receiver, and similar configurations could be considered for the computer ex111, mobile phone ex114, etc.
[0184] Figure 21A shows a mobile phone ex114 using the video decoding method and video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves with a base station ex110, a camera unit ex365 capable of taking video and still images, and a display unit ex358 such as a liquid crystal display that displays decoded data such as video captured by the camera unit ex365 and video received by the antenna ex350. The mobile phone ex114 further includes a main unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting sound, an audio input unit ex356 such as a microphone for inputting sound, a memory unit ex367 for storing encoded or decoded data such as captured video, still images, recorded audio, or received video, still images, and emails, or a slot unit ex364 which is an interface unit with a recording medium for storing data.
[0185] Furthermore, an example of the configuration of the mobile phone ex114 will be explained using Figure 21B. In the mobile phone ex114, the main control unit ex360 comprehensively controls each part of the main body, which includes the display unit ex358 and the operation key unit ex366. The power supply circuit unit ex361, operation input control unit ex362, video signal processing unit ex355, camera interface unit ex363, LCD (Liquid Crystal Display) control unit ex359, modulation / demodulation unit ex352, multiplexing / decompression unit ex353, audio signal processing unit ex354, slot unit ex364, and memory unit ex367 are all connected to each other via the bus ex370.
[0186] When the user performs an action such as ending a call or turning on the power key, the power supply circuit unit ex361 supplies power from the battery pack to each component, thereby starting up the mobile phone ex114 into an operational state.
[0187] The mobile phone ex114, based on the control of the main control unit ex360 which has a CPU, ROM, RAM, etc., converts the audio signal picked up by the audio input unit ex356 into a digital audio signal in the audio signal processing unit ex354 during voice call mode, performs spread spectrum processing on this 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 it via the antenna ex350. Also, during voice call mode, the mobile phone ex114 amplifies the received data received via the antenna ex350, performs frequency conversion processing and analog-to-digital conversion processing on it, performs despread spectrum processing in the modulation / demodulation unit ex352, converts it into an analog audio signal in the audio signal processing unit ex354, and then outputs it from the audio output unit ex357.
[0188] Furthermore, when sending an email in data communication mode, the text data of the email entered by operating the operation keys ex366 on the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spread spectrum processing on the text data in the modulation / demodulation unit ex352, and after digital-to-analog conversion and frequency conversion processing in the transmission / reception unit ex351, it is transmitted to the base station ex110 via the antenna ex350. When receiving an email, the received data is processed in almost the reverse order and output to the display unit ex358.
[0189] When transmitting video, still images, or video and audio in 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 shown in each of the above embodiments (i.e., it 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. The audio signal processing unit ex354 encodes the audio signal picked up 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.
[0190] The multiplexing / decompression unit ex353 multiplexes encoded video data supplied from the video signal processing unit ex355 and encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner. The resulting multiplexed data is then subjected to spread spectrum processing in the modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and after digital-to-analog conversion and frequency conversion processing in the transmission / reception unit ex351, it is transmitted via the antenna ex350.
[0191] When receiving video data linked to a homepage or the like in data communication mode, or when receiving an email with attached video and / or audio, the multiplexing / decomposition unit ex353 separates the multiplexed data received via antenna ex350 into a video data bitstream and an audio data bitstream, and supplies the encoded video data to the video signal processing unit ex355 and the encoded audio data to the audio signal processing unit ex354 via the synchronization bus ex370. The video signal processing unit ex355 decodes the video signal by decoding it using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., it functions as an image decoding device according to one aspect of the present invention), and the video and still images contained in the video file linked to a homepage are displayed on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 decodes the audio signal, and the audio is output from the audio output unit ex357.
[0192] Furthermore, terminals such as the mobile phone ex114 mentioned above, like the television ex300, can be implemented in three ways: a transceiver-type terminal with both an encoder and a decoder, a transmitting terminal with only an encoder, and a receiving terminal with only a decoder. In addition, while the digital broadcasting system ex200 was described as receiving and transmitting multiplexed data in which music data etc. is multiplexed with video data, it may also be data in which text data related to the video is multiplexed in addition to audio data, or it may be video data itself instead of multiplexed data.
[0193] Thus, the video encoding method or video decoding method shown in each of the above embodiments can be used in any of the above-described devices or systems, and by doing so, the effects described in each of the above embodiments can be obtained.
[0194] Furthermore, the present invention is not limited to the above-described embodiments, and various modifications or alterations are possible without departing from the scope of the present invention.
[0195] (Embodiment 3) It is also possible to generate video data by appropriately switching between the video encoding methods or devices shown in each of the above embodiments and video encoding methods or devices compliant with different standards such as MPEG-2, MPEG4-AVC, and VC-1, as needed.
[0196] When multiple video data sets, each conforming to a different standard, are generated, it becomes necessary to select a decoding method corresponding to each standard during the decoding process. However, because it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that the appropriate decoding method cannot be selected.
[0197] To solve this problem, the multiplexed data, which is created by multiplexing audio data and other data onto video data, is configured to include identification information indicating which standard the video data conforms to. The specific configuration of the multiplexed data, which includes video data generated by the video encoding method or apparatus shown in each of the above embodiments, is described below. The multiplexed data is a digital stream in MPEG-2 transport stream format.
[0198] Figure 22 is a diagram showing the structure of multiplexed data. As shown in Figure 22, multiplexed data is obtained by multiplexing one or more of the following: video stream, audio stream, presentation graphics stream (PG), and interactive graphics stream. The video stream represents the main and secondary video of a film, the audio stream (IG) represents the main audio portion of a film and the secondary audio mixed with the main audio, and the presentation graphics stream represents the subtitles of a film. Here, the main video refers to the normal video displayed on the screen, and the secondary video refers to the video displayed on a smaller screen within the main video. The interactive graphics stream represents an interactive screen created by placing GUI components on the screen. The video stream is encoded by the video encoding method or apparatus shown in each embodiment above, or by a video encoding method or apparatus conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded using methods such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or Linear PCM.
[0199] Each stream included in the multiplexed data is identified by a PID. For example, the video stream used for movie footage is assigned 0x1011, audio streams are assigned 0x1100 to 0x111F, presentation graphics are assigned 0x1200 to 0x121F, interactive graphics streams are assigned 0x1400 to 0x141F, video streams used for secondary footage in movies are assigned 0x1B00 to 0x1B1F, and audio streams used for secondary audio mixed with the main audio are assigned 0x1A00 to 0x1A1F.
[0200] Figure 23 schematically illustrates how multiplexed data is multiplexed. First, the video stream ex235, consisting of multiple video frames, and the audio stream ex238, consisting of multiple audio frames, are converted into PES packet sequences ex236 and ex239, respectively, and then into TS packets ex237 and ex240. Similarly, the data from the presentation graphics stream ex241 and the interactive graphics stream ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then further into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into a single stream.
[0201] Figure 24 shows in more detail how a video stream is stored in a sequence of PES packets. The first row in Figure 24 shows a sequence of video frames in the video stream. The second row shows a sequence of PES packets. As indicated by the arrows yy1, yy2, yy3, and yy4 in Figure 24, the multiple Video Presentation Units in the video stream, namely I-pictures, B-pictures, and P-pictures, are separated picture by picture and stored in the payload of a PES packet. Each PES packet has a PES header, which contains the Presentation Time-Stamp (PTS), which is the time the picture was displayed, and the Decoding Time-Stamp (DTS), which is the time the picture was decoded.
[0202] Figure 25 shows the format of the TS packet that is ultimately written to the multiplexed data. The TS packet is a fixed-length 188-byte packet consisting of a 4-byte TS header containing information such as the PID that identifies the stream, and a 184-byte TS payload that stores the data. The PES packet is split and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is attached to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. The TP_Extra_Header contains information such as the ATS (Arrival_Time_Stamp). The ATS indicates the start time of forwarding the TS packet to the decoder's PID filter. As shown in the lower part of Figure 25, the source packets are arranged in the multiplexed data, and the number that increments from the beginning of the multiplexed data is called the SPN (Source Packet Number).
[0203] Furthermore, the TS packets included in the multiplexed data contain not only individual streams such as video, audio, and subtitles, but also 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 PAT itself is registered with a PID of 0. The PMT contains the PIDs of each stream such as video, audio, and subtitles included in the multiplexed data, as well as attribute information of the stream corresponding to each PID, and also contains various descriptors related to the multiplexed data. These descriptors include copy control information that instructs whether to allow or deny copying of the multiplexed data. The PCR contains information about the STC time corresponding to the ATS time when the PCR packet is forwarded 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 / DTS.
[0204] Figure 26 is a diagram illustrating the data structure of a PMT in detail. At the beginning of a PMT is a PMT header that indicates the length of the data contained in the PMT. Following this are multiple descriptors related to the multiplexed data. The copy control information mentioned above is written as a descriptor. After the descriptors are multiple stream information entries for each stream contained in the multiplexed data. The stream information consists of stream descriptors that describe the stream type, the stream's PID, and the stream's attribute information (frame rate, aspect ratio, etc.) to identify the compression codec of the stream. There are as many stream descriptors as there are streams in the multiplexed data.
[0205] When recording to a recording medium, the above-mentioned multiplexed data is recorded together with the multiplexed data information file.
[0206] As shown in Figure 27, the multiplexed data information file is management information for the multiplexed data, has a one-to-one correspondence with the multiplexed data, and consists of multiplexed data information, stream attribute information, and an entry map.
[0207] As shown in Figure 27, the multiplexed data information consists of the system rate, playback start time, and 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 included in the multiplexed data is set to be less than or equal to 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 by adding the playback interval of one frame to the PTS of the last video frame of the multiplexed data.
[0208] As shown in Figure 28, attribute information for each stream included in the multiplexed data is registered for each PID. Attribute information differs for video streams, audio streams, presentation graphics streams, and interactive graphics streams. Video stream attribute information includes details such as the compression codec used to compress the video stream, the resolution of each individual picture data constituting the video stream, the aspect ratio, and the frame rate. Audio stream attribute information includes details such as the compression codec used to compress the audio stream, the number of channels included in the audio stream, the languages supported, and the sampling frequency. This information is used for initializing the decoder before playback by the player.
[0209] In this embodiment, the stream type included in the PMT is used from the multiplexed data. Furthermore, if the multiplexed data is recorded on the recording medium, the video stream attribute information included in the multiplexed data information is used. Specifically, in the video encoding method or apparatus shown in each embodiment, a step or means is provided to set unique information indicating that the video data was generated by the video encoding method or apparatus shown in each embodiment, for 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 encoding method or apparatus shown in each embodiment and video data conforming to other standards.
[0210] Furthermore, the steps of the video decoding method in this embodiment are shown in Figure 29. 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 video stream attribute information indicates that the multiplexed data was generated by the video encoding method or device shown in each of the embodiments described above. If it is determined that the stream type or video stream attribute information was generated by the video encoding method or device shown in each of the embodiments described above, decoding is performed in step exS102 using the video decoding method shown in each of the embodiments described above. If the stream type or video stream attribute information indicates that it conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, decoding is performed in step exS103 using a video decoding method conforming to the conventional standard.
[0211] In this way, by setting new unique values for the stream type or video stream attribute information, it is possible to determine whether the video can be decoded using the video decoding method or apparatus described in each of the embodiments described above. Therefore, even when multiplexed data conforming to different standards is input, an appropriate decoding method or apparatus can be selected, making it possible to decode without errors. Furthermore, the video encoding method or apparatus, or video decoding method or apparatus, described in this embodiment can be used with any of the devices or systems described above.
[0212] (Embodiment 4) The video encoding method and apparatus, and video decoding method and apparatus described in each of the above embodiments are typically implemented as an integrated circuit (LSI). As an example, Figure 30 shows the configuration of a single-chip LSIex500. The LSIex500 comprises elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which are described below, and each element is connected via a bus ex510. The power supply circuit ex505 starts up to an operational state by supplying power to each part when the power supply is turned on.
[0213] For example, when performing encoding processing, the LSIex500 receives AV signals from a microphone ex117, camera ex113, etc., via AV I / O ex509, based on the control of the control unit ex501, which has a CPU ex502, memory controller ex503, stream controller ex504, drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as SDRAM. Based on the control of the control unit ex501, the stored data is divided into multiple parts as appropriate depending on the amount of processing and processing speed, and sent to the signal processing unit ex507, where the audio signal encoding and / or video signal encoding are performed. Here, the video signal encoding process is the encoding process described in each of the embodiments above. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and encoded video data, and outputs it externally from the stream I / O ex506. This output multiplexed data is transmitted to the base station ex107 or written to the recording medium ex215. When multiplexing, it is recommended to temporarily store the data in buffer ex508 to ensure synchronization.
[0214] Although the memory ex511 was described above as an external component of the LSIex500, it may also be an internal component of the LSIex500. Similarly, the buffer ex508 is not limited to one, but may have multiple buffers. Furthermore, the LSIex500 may be implemented on a single chip or across multiple chips.
[0215] Furthermore, while the above assumes that the control unit ex501 includes a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may also have a CPU. By providing a CPU inside the signal processing unit ex507, it becomes possible to further improve the processing speed. Another example is that 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 will have a configuration that includes the signal processing unit ex507, or a CPU ex502 having a part of it.
[0216] Although we have used the term LSI here, depending on the degree of integration, they may also be called IC, system LSI, super LSI, or ultra LSI.
[0217] Furthermore, the method of integrated circuit implementation is not limited to LSIs; it may also be implemented using dedicated circuits or general-purpose processors. After LSI manufacturing, FPGAs (Field Programmable Gate Arrays) that can be programmed, or reconfigurable processors that allow for the reconfiguration of the connections and settings of circuit cells inside the LSI, may also be used.
[0218] Furthermore, if advancements in semiconductor technology or derivative technologies lead to the emergence of integrated circuit technologies that replace LSIs, then naturally, these technologies can be used to integrate functional blocks. The application of biotechnology, for example, is a possible possibility.
[0219] (Embodiment 5) When decoding video data generated by the video encoding methods or devices described in the above embodiments, the processing load is likely to increase compared to 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 the drive frequency of the CPUex502 to a higher frequency than when decoding video data conforming to conventional standards. However, increasing the drive frequency leads to the problem of increased power consumption.
[0220] To solve this problem, video decoding devices such as the TV ex300 and LSI ex500 are configured to identify which standard the video data conforms to and to switch the drive frequency according to the standard. Figure 31 shows the configuration ex800 in this embodiment. The drive frequency switching unit ex803 sets a high drive frequency when the video data is generated by the video encoding method or device shown in each of the above embodiments. It then instructs the decoding processing unit ex801, which executes the video decoding method shown in each of the above embodiments, to decode the video data. On the other hand, when the video data is video data conforming to a conventional standard, the drive frequency is set lower than when the video data is generated by the video encoding method or device shown in each of the above embodiments. It then instructs the decoding processing unit ex802, which conforms to a conventional standard, to decode the video data.
[0221] More specifically, the drive frequency switching unit ex803 consists of the CPU ex502 and the drive frequency control unit ex512 in Figure 30. The decoding processing unit ex801, which executes the video decoding method described in each of the above embodiments, and the decoding processing unit ex802, which conforms to conventional standards, correspond to the signal processing unit ex507 in Figure 30. The CPU ex502 identifies which standard the video data conforms to. Based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. The signal processing unit ex507 also decodes the video data based on the signal from the CPU ex502. Here, for example, the identification information described in Embodiment 3 can be used to identify the video data. The identification information is not limited to that described in Embodiment 3; any information that can identify which standard the video data conforms to is acceptable. For example, if it is possible to identify which standard the video data conforms to based on an external signal that identifies whether the video data is for use on a television or on a disc, then such an external signal may be used for identification. Furthermore, the selection of the drive frequency in CPUex502 can be performed based on a lookup table that associates the video data standard with the drive frequency, as shown in Figure 33. The lookup table can be stored in buffer ex508 or the internal memory of the LSI, and CPUex502 can select the drive frequency by referring to this lookup table.
[0222] Figure 32 shows the steps for implementing the method of this 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, based on the identification information, whether or not the video data was generated by the encoding method or device shown in each of the embodiments described above. If the video data was generated by the encoding method or device shown in each of the embodiments described above, in step exS202, the CPU ex502 sends a signal to the drive frequency control unit ex512 to set a higher drive frequency. The drive frequency control unit ex512 then sets the drive frequency to a higher level. On the other hand, if the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, in step exS203, the CPU ex502 sends a signal to the drive frequency control unit ex512 to set a lower drive frequency. The drive frequency control unit ex512 then sets the drive frequency to a lower level than when the video data was generated by the encoding method or device shown in each of the embodiments described above.
[0223] Furthermore, by changing the voltage supplied to the LSIex500 or the device containing the LSIex500 in conjunction with the switching of the drive frequency, it is possible to further enhance the power saving effect. For example, when setting a lower drive frequency, it is conceivable to set the voltage supplied to the LSIex500 or the device containing the LSIex500 to a lower value compared to when the drive frequency is set to a higher value.
[0224] Furthermore, the method for setting the drive frequency is not limited to the above-described method; a higher drive frequency is set when the processing load during decoding is large, and a lower drive frequency is set when the processing load during decoding is small. For example, if the processing load for decoding video data compliant with the MPEG4-AVC standard is greater than the processing load for decoding video data generated by the video encoding method or device shown in each of the above embodiments, the drive frequency can be set in the opposite way to the above-described method.
[0225] Furthermore, the method for setting the drive frequency is not limited to a configuration that lowers the drive frequency. For example, if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, the voltage supplied to the LSIex500 or the device including the LSIex500 can be set high. If the identification information indicates that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, the voltage supplied to the LSIex500 or the device including the LSIex500 can be set low. Another example is that if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, the CPUex502 can be driven without stopping. If the identification information indicates that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, or VC-1, there is processing capacity, so the CPUex502 can be temporarily driven. Even if the identification information indicates that the video data was generated by the video encoding method or device shown in each of the above embodiments, if there is processing capacity, the CPUex502 can be temporarily driven. In this case, it is possible to set a shorter stop time compared to when indicating that the video data conforms to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.
[0226] In this way, power saving can be achieved by switching the drive frequency according to the standard to which the video data conforms. Furthermore, if the LSIex500 or a device containing the LSIex500 is powered by batteries, the battery life can be extended as a result of the power saving.
[0227] (Embodiment 6) Televisions, mobile phones, and other devices and systems mentioned above may receive multiple video data streams conforming to different standards. To enable decoding of these streams, the LSIex500's signal processing unit, ex507, needs to support multiple standards. However, using separate ex507 signal processing units for each standard would increase the circuit size and cost of the LSIex500.
[0228] To solve this problem, the decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with the decoding processing unit compliant with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 of Figure 34A. For example, the video decoding method shown in each of the above embodiments and the video decoding method compliant with the MPEG4-AVC standard have some common processing content in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For common processing content, a decoding processing unit ex902 corresponding to the MPEG4-AVC standard is shared, and for other processing content specific to one aspect of the present invention that does not correspond to the MPEG4-AVC standard, a dedicated decoding processing unit ex901 is used. Regarding the 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 is shared, and for processing content specific to the MPEG4-AVC standard, a dedicated decoding processing unit may be used.
[0229] Furthermore, another example of partially sharing processing is shown in ex1000 of Figure 34B. In this example, a dedicated decoding processing unit ex1001 corresponding to processing content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to processing content specific to other conventional standards, and a shared decoding processing unit ex1003 corresponding to processing content common to the video decoding method according to one aspect of the present invention and the video decoding method of other conventional standards are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for processing content specific to one aspect of the present invention or other conventional standards, but may be capable of executing other general-purpose processing. It is also possible to implement the configuration of this embodiment using LSIex500.
[0230] Thus, by sharing the decoding processing unit for common processing content between the video decoding method according to one aspect of the present invention and the conventional video decoding method, it is possible to reduce the circuit size of the LSI and lower costs.
[0231] Although one or more embodiments of an image encoding method and an image decoding method have been described above based on embodiments, the present invention is not limited to these embodiments. Without departing from the spirit of the present invention, various modifications that a person skilled in the art can conceive of may be applied to these embodiments, and forms constructed by combining components from different embodiments may also be included within the scope of one or more embodiments. [Industrial applicability]
[0232] The present invention can be applied, for example, to image encoding devices and image decoding devices, and more specifically, to information display devices and imaging devices such as televisions, digital video recorders, car navigation systems, mobile phones, digital still cameras, and digital video cameras. [Explanation of Symbols]
[0233] 10,100 Image encoding device 20,200 Image Decoding Devices 21 Signal interval setting unit 22 DTS Acquisition Department 23 Judgment section 24 Decoding section 101 Decision Section 102 Encoding section 103 Generation part 201 Acquisition Department 202 Decoding section
Claims
1. A receiving method for receiving and decoding an encoded stream containing a video image, where each picture belonging to one of several layers is a randomly accessible I-picture, and the subsequent picture in the encoded order is a group of pictures, and each picture belonging to one of several layers does not refer to other pictures belonging to a higher layer than the layer to which the picture belongs. The encoded stream is received, which includes a plurality of encoded pictures and a decoding time set for each of the plurality of pictures. The decoding time of each of the plurality of pictures included in the encoded stream is obtained from the encoded stream, and each of the plurality of pictures, or the plurality of lower layer pictures, included in the encoded stream is decoded according to the obtained decoding time. The decoding time of each of the multiple pictures included in the aforementioned video is: The decoding times of some of the multiple pictures included in the video, which are lower-layer pictures that do not belong to the highest layer of the multiple layers, are set to be at equal intervals, and the timing of decoding each of the multiple lower-layer pictures is the same when the multiple pictures included in the encoded video are decoded and when only the multiple lower-layer pictures are decoded. Multiple pictures that do not belong to the lowest tier include two-way reference prediction pictures. The decoding time of all pictures belonging to the aforementioned picture group is earlier than the decoding time of all pictures that follow the picture group in display order, starting from the later picture I. In the setting of the decoding time, If the frame rate at which all pictures contained in the encoded video are decoded and displayed is f, then the decoding times of each of the multiple lower-layer pictures contained in all of the pictures are set such that the decoding times of each of the pictures are separated by a time indicated by n times the reciprocal of f (where n is an integer of 2 or more). Reception method.
2. A receiving device that receives and decodes an encoded stream containing a video image, which is a group of pictures that follow a randomly accessible I-picture in encoding order, and for each picture belonging to one of several layers, it does not refer to other pictures belonging to a higher layer than the layer to which the picture belongs. A receiving unit that receives the encoded stream, which includes a plurality of encoded pictures and a decoding time set for each of the plurality of pictures, The system includes a decoding unit that obtains the decoding time of each of the plurality of pictures included in the encoding stream from the encoding stream, and decodes each of the plurality of pictures or the plurality of lower layer pictures included in the encoding stream according to the obtained decoding time, The decoding time of each of the multiple pictures included in the aforementioned video is: The decoding times of some of the multiple pictures included in the video, which are lower-layer pictures that do not belong to the highest layer of the multiple layers, are set to be at equal intervals, and the timing of decoding each of the multiple lower-layer pictures is the same when the multiple pictures included in the encoded video are decoded and when only the multiple lower-layer pictures are decoded. Multiple pictures that do not belong to the lowest tier include two-way reference prediction pictures. The decoding time of all pictures belonging to the aforementioned picture group is earlier than the decoding time of all pictures that follow the picture group in display order, starting from the later picture I. In the setting of the decoding time, If the frame rate at which all pictures contained in the encoded video are decoded and displayed is f, then the decoding times of each of the multiple lower-layer pictures contained in all the pictures are separated by a time indicated by n times the reciprocal of f (where n is an integer of 2 or more). The decoding time for each of the aforementioned pictures is set in Receiving device.
Citation Information
Patent Citations
Method and apparatus of video coding using picture structure with low-delay hierarchical b group
JP2012124896A
Coding apparatus, coding method, transmitting apparatus, and receiving apparatus
JP2015065530A
Method and Apparatus of Video Coding Using Picture Structure with Low-Delay Hierarchical B Group
US20120140825A1
