Image encoding device and image decoding device

By encoding images hierarchically to allow decoding of lower-layer pictures at equal intervals, the method addresses high processing loads in existing methods, enabling efficient decoding at appropriate frame rates for devices with varying capabilities.

JP2024119964AActive Publication Date: 2024-09-03PANASONIC HOLDINGS CORP
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024095810
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Priority Date
2013-10-18
Filing Date
2024-06-13
Publication Date
2024-09-03
Estimated Expiration
2034-10-02

AI Technical Summary

Technical Problem

Existing image encoding and decoding methods, such as those in HEVC, suffer from high processing loads, making it difficult for devices that do not support high frame rates to efficiently decode images encoded at those rates.

Method used

The method involves encoding images in a hierarchical structure where lower-layer pictures are decoded at equal intervals without referring to higher layers, allowing devices to decode lower-layer pictures at a frame rate appropriate to their processing capacity, reducing processing load.

Benefits of technology

This approach reduces processing load by enabling devices to decode lower-layer images at appropriate frame rates, even if they do not support the original high frame rate of the encoded stream, thus improving efficiency and reducing the need for timing changes during decoding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024119964000001
    Figure 2024119964000001
Patent Text Reader

Abstract

To provide an image encoding device capable of reducing processing load.SOLUTION: The image encoding device includes a determination unit that determines the decoding timing of each of multiple pictures arranged by display order to satisfy the following conditions: (1)regardless of whether all coded pictures are decoded by the decoder, or whether only the coded picture associated with the smallest temporal ID is decoded by the decoder, the first decoding timing of each of the multiple first layer pictures is spaced at regular intervals; (ii) all multiple pictures included in each random access unit are decoded without reference to any pictures in other random access units, all multiple pictures do not include pictures that are earlier in the display order than the first picture, and the first picture is placed at the beginning of the random access unit in decoding order.SELECTED DRAWING: Figure 15B
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image coding method for hierarchically coding an image, and an image decoding method for decoding a hierarchically coded image. [Background technology]

[0002] 2. Description of the Related Art Conventionally, an image coding method for hierarchical coding of an image and an image decoding method for decoding an image coded by the hierarchical coding have been proposed (for example, see Non-Patent Document 1). [Prior art documents] [Non-patent literature]

[0003] [Non-Patent Document 1] Joint Collaborative Team on Video Coding (JCT-VC) of ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11 12th Meeting: Geneva, CH, 14-23 Jan. 2013 JCTVC-L1003_v34.doc, High Efficiency Video Coding (HEVC) text specification draft 10 (for FDIS & Last Call) http: / / phenix.it-sudparis.eu / jct / doc_end_user / documents / 12_Geneva / wg11 / JCTVC-L1003-v34.zip Summary of the Invention [Problem to be solved by the invention]

[0004] However, the image encoding method and image decoding method of Non-Patent Document 1 have a problem in that they are unable to process images efficiently due to a high processing load.

[0005] Therefore, the present invention provides an image encoding method and an image decoding method that can reduce the processing load. [Means for solving the problem]

[0006] An image coding device according to one embodiment 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 temporal IDs defined in a video coding standard such that each of the plurality of first layer pictures is associated with a smallest temporal ID and each of the plurality of second layer pictures is associated with a temporal ID greater than the smallest temporal ID, and an association unit that associates the plurality of pictures with temporal IDs defined in a video coding standard such that (i) regardless of whether all coded pictures are decoded by a decoding device or whether only the coded picture associated with the smallest temporal ID is decoded by the decoding device, a first decoding timing of each of the plurality of first layer pictures is spaced at regular intervals, and (ii) all of the plurality of pictures included in each random access unit are decoded from other random access units. the first picture is arranged at the beginning of the decoding order within the random access unit, and all of the plurality of pictures do not include a picture that is earlier in the display order than a first picture, and the first picture is arranged at the beginning of the decoding order within the random access unit; an encoding unit that encodes the plurality of pictures arranged in an encoding order different from the display order corresponding to the decoding timing according to the decoding timing so that a plurality of the 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.

[0007] A transmission method according to one embodiment of the present invention is a transmission method for encoding and transmitting a moving image using an image encoding method for encoding a moving image for each picture of a group of pictures following a randomly accessible I-picture in encoding order, the picture belonging to any one of a plurality of hierarchies, without referring to other pictures belonging to a hierarchical layer higher than the hierarchical layer to which the picture belongs, the transmission method comprising the steps of: setting the decode times of each of a plurality of pictures included in the moving image, the plurality of lower-layer pictures being a part of the plurality of pictures included in the moving image and not belonging to the highest hierarchical layer of the plurality of hierarchies, at equal intervals; and setting the decode times of each of a plurality of pictures included in the moving image such that the timings at which each of the plurality of lower-layer pictures is decoded are the same between a case in which a plurality of pictures included in the encoded moving image are decoded and a case in which only the plurality of lower-layer pictures of the plurality of pictures are decoded; the decoding time is set to n, and the decoding time is set to n, and the decoding time is set to n. In the encoding method, when a frame rate at which all pictures included in the encoded video are decoded and displayed is f, the decoding time of each of the lower layer pictures included in all of the pictures is set to n, and ...

[0008] These comprehensive or specific aspects may be realized as a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized as any combination of a system, a method, an integrated circuit, a computer program, and a recording medium. Effect of the Invention

[0009] The image encoding method and image decoding method of the present invention can reduce the processing load. [Brief description of the drawings]

[0010] [Figure 1A] FIG. 1A is a diagram showing an example for achieving temporal scalability using HEVC. [Figure 1B] FIG. 1B is a diagram showing another example for achieving temporal scalability using HEVC. [Diagram 2] FIG. 2 is a diagram for explaining the problem of being unable to decode a 120 fps encoded stream. [Diagram 3] FIG. 3 is a diagram illustrating the image coding device according to the first embodiment. In FIG. [Figure 4] FIG. 4 is a diagram showing an example of encoding a moving image using three hierarchical layers according to the first embodiment. [Diagram 5] FIG. 5 is a diagram showing an example of encoding a moving image using four hierarchical layers according to the first embodiment. [Figure 6] FIG. 6 is a diagram showing another example of encoding a moving picture using three hierarchical layers in the first embodiment. [Figure 7] FIG. 7 is a diagram illustrating the image decoding device according to the first embodiment. In FIG. [Figure 8] FIG. 8 shows the decoding order and display order of pictures, as well as the DTS and PTS when a coded stream is played back at 120 fps according to the first modification of the first embodiment. [Figure 9] FIG. 9 is a block diagram showing a configuration of an image decoding device according to Variation 1 of Embodiment 1. In FIG. [Figure 10] FIG. 10 is a flowchart showing an example of operations performed by the image decoding device according to the first modification of the first embodiment when decoding pictures in all layers. [Figure 11] FIG. 11 is a diagram showing an example of changing the DTS according to the second modification of the first embodiment. In FIG. [Figure 12] FIG. 12 is a diagram illustrating pictures decoded in an open end random access unit according to the third modification of the first embodiment. In FIG. [Figure 13] FIG. 13 is a flowchart showing an example of an operation performed by the image decoding device according to the third modification of the first embodiment to decode a moving image based on auxiliary information for playback control. [Figure 14] FIG. 14 shows an example of DTS or PTS conversion according to the fourth modification of the first embodiment. [Figure 15A] FIG. 15A is a block diagram of an image encoding device according to one embodiment of the present invention. [Figure 15B] FIG. 15B is a flowchart showing an image encoding method according to one embodiment of the present invention. [Figure 15C] FIG. 15C is a block diagram of an image decoding device according to one aspect of the present invention. [Figure 15D] FIG. 15D is a flowchart showing an image decoding method according to one embodiment of the present invention. [Figure 16] FIG. 16 is a diagram showing the overall configuration of a content supply system that realizes a content distribution service. [Figure 17] FIG. 17 is a diagram showing the overall configuration of a digital broadcasting system. [Figure 18] FIG. 18 is a block diagram showing an example of the configuration of a television. [Figure 19] FIG. 19 is a block diagram showing an example of the configuration of an information reproducing / recording unit that reads and writes information from and to a recording medium that is an optical disc. [Figure 20] FIG. 20 is a diagram showing an example of the structure of a recording medium that is an optical disc. [Figure 21A] FIG. 21A is a diagram showing an example of a mobile phone. [Figure 21B] FIG. 21B is a block diagram showing an example of the configuration of a mobile phone. [Figure 22] FIG. 22 is a diagram showing a structure of multiplexed data. [Figure 23]FIG. 23 is a diagram showing a schematic diagram of how each stream is multiplexed in multiplexed data. [Figure 24] FIG. 24 shows in more detail how a video stream is stored in a PES packet sequence. [Diagram 25] FIG. 25 is a diagram showing the structure of TS packets and source packets in multiplexed data. [Figure 26] FIG. 26 is a diagram showing the data structure of a PMT. [Figure 27] FIG. 27 is a diagram showing an internal structure of the multiplexed data information. [Figure 28] FIG. 28 shows the internal structure of the stream attribute information. [Figure 29] FIG. 29 illustrates steps for identifying video data. [Diagram 30] FIG. 30 is a block diagram showing an example of the configuration of an integrated circuit that realizes the video coding method and the video decoding method according to each embodiment. [Diagram 31] FIG. 31 is a diagram showing a configuration for switching the drive frequency. [Diagram 32] FIG. 32 is a diagram showing steps of identifying video data and switching the drive frequency. [Diagram 33] FIG. 33 is a diagram showing an example of a lookup table in which video data standards and drive frequencies correspond to each other. [Figure 34A] FIG. 34A is a diagram showing an example of a configuration in which modules of a signal processing unit are shared. [Figure 34B] FIG. 34B is a diagram showing another example of a configuration in which modules of a signal processing unit are shared. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0011] (Findings on which the present invention is based) The present inventors have found that the following problems arise with respect to the above-mentioned Non-Patent Document 1, which is described in the "Background Art" section.

[0012] In coding methods such as MPEG-4 AVC (Moving Picture Experts Group-4 Advanced Video Coding) or HEVC (High Efficiency Video Coding), scalability in the time direction (hereinafter referred to as "temporal scalability") can be realized by hierarchically coding pictures. For example, by decoding all pictures, playback at 120 fps becomes possible, and by decoding only pictures belonging to a specific layer, playback at 60 fps becomes possible.

[0013] By using such temporal scalability, it is possible to play back at double speed by decoding only pictures belonging to a specific layer at 120 fps intervals. Furthermore, in a playback device that does not support decoding at 120 fps intervals (hereinafter referred to as a 120 fps incompatible playback device), it may be possible to play back a 120 fps encoded stream at 60 fps.

[0014] 1A and 1B are diagrams showing an example of how to realize temporal scalability using HEVC. These diagrams show the reference relationship between layers and the decoding order (i.e., the coding order) of each picture.

[0015] FIG. 1A shows an example of coding each picture by a three-layer structure. TId in FIG. 1A is a Temporal ID, which is an identifier for identifying a layer. I indicates an I picture (intra-screen predicted picture), P indicates a P picture (for example, a forward reference predicted picture), and B indicates a B picture (for example, a bidirectional reference predicted picture). The numbers attached to the right of I, P, and B indicate the display order of those pictures. The arrows indicate the reference relationship between pictures, for example, picture B2 refers to picture I0 and picture P4. That is, in this reference relationship between layers, a picture is coded by referring to a picture that belongs to the same layer as the layer to which the picture belongs or a lower layer than the layer to which the picture belongs, without referring to a picture that belongs to a higher layer than the layer to which the picture belongs. Here, when each picture that belongs to any of all layers from 0 to 2 in which the Temporal ID is decoded, the frame rate becomes 120 fps. In this case, when each picture belonging to a layer with a temporal ID of 0 to 1 is decoded, the frame rate becomes 60 fps.

[0016] 1B shows an example in which each picture is coded using a four-layer structure. In this case, when each picture belonging to any of all layers with a temporal ID of 0 to 3 is decoded, the frame rate becomes 120 fps. In this case, too, when each picture belonging to any of layers with a temporal ID of 0 to 2 is decoded, the frame rate becomes 60 fps.

[0017] As mentioned above, a playback device that does not support 120 fps may be able to achieve 60 fps playback by using temporal scalability, that is, by decoding only pictures that belong to some layers in the 120 fps encoded stream.

[0018] However, even in this case, a playback device that does not support 120 fps may have to decode each picture at intervals shorter than 1 / 60 seconds, and therefore has a problem in that the playback device that does not support 120 fps cannot decode a 120 fps encoded stream even if temporal scalability is used, because the intervals for decoding each picture are too short.

[0019] Fig. 2 is a diagram for explaining the problem that a non-120 fps compatible playback device cannot decode a 120 fps encoded stream. The encoded stream shown in Fig. 2 is the 120 fps encoded stream shown in Fig. 1A. When playing back the encoded stream at 60 fps, the non-120 fps compatible playback device decodes only each picture belonging to a layer with a Temporal ID of 0 and each picture belonging to a layer with a Temporal ID of 1.

[0020] In Fig. 2, T is the time corresponding to 120 fps, that is, 1 / 120 seconds. In broadcast content or stored content, when the content is displayed at a fixed frame rate, the decoding is generally performed at a fixed frame rate. Therefore, during playback at 120 fps, 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 both T.

[0021] Therefore, even when playing back at 60 fps, both the decoding interval and the display interval need to be a time corresponding to 60 fps, that is, an interval of 2T. However, as shown in Fig. 2, when playing back at 60 fps, the decoding interval between pictures I0 and P4, or the decoding interval between pictures P4 and B2, is T. A playback device that is not compatible with 120 fps, which requires a decoding interval of 2T, has the problem that it cannot decode pictures in time. In other words, a playback device that is not compatible with 120 fps has the problem of a high processing load.

[0022] In order to solve such problems, an image coding method according to one embodiment of the present invention is an image coding method that codes a moving image, for each picture belonging to any of a plurality of hierarchies, without referring to other pictures that belong to a higher hierarchical level than the hierarchical level to which the picture belongs, and determines the decode times of each of a plurality of pictures included in the moving image, which are a portion of a plurality of pictures included in the moving image and which do not belong to the highest hierarchical level of the plurality of hierarchies, so that the decode times of each of the plurality of lower-layer pictures, which are a portion of the plurality of pictures included in the moving image and which do not belong to the highest hierarchical level of the plurality of hierarchies, are equally spaced, and so that the timing at which each of the plurality of lower-layer pictures is decoded is the same between a case in which the plurality of pictures included in the coded moving image are decoded and a case in which only the plurality of lower-layer pictures of the plurality of pictures are decoded, codes each of the plurality of pictures included in the moving image in accordance with an coding order corresponding to the determined decode times, and generates an encoded stream including the plurality of coded pictures and the decode times determined for each of the plurality of pictures.

[0023] As a result, each of the multiple pictures included in the encoded stream is encoded without referring to other pictures that belong to a layer higher than the layer to which the picture belongs. Therefore, the image decoding device can decode only the multiple lower layer pictures in the encoded stream. Furthermore, the decoding times of the multiple lower layer pictures included in the encoded stream are equal intervals. Therefore, when the image decoding device decodes only the multiple lower layer pictures in the encoded stream, the image decoding device can sequentially decode the lower layer pictures at equal time intervals. Therefore, by setting the equal intervals to an appropriate time, the processing load of the image decoding device can be reduced. That is, the image decoding device can decode each picture at a frame rate according to its own processing capability without performing decoding at a high frame rate. Furthermore, the timing at which each of the multiple lower layer pictures is decoded is the same between the case where multiple pictures (e.g., all pictures) included in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. Therefore, the image decoding device does not need to change the timing at which each of the multiple lower layer pictures is decoded between the case where all pictures in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. This makes it possible to further reduce the processing load on the image decoding device.

[0024] In addition, in determining the decoding time, the decoding times of each of a plurality of top layer pictures belonging to the highest layer, which are a portion of a plurality of pictures included in the moving image, may be determined to be between the decoding times of each of the plurality of lower layer pictures.

[0025] Thereby, when the encoded stream is decoded, the top layer picture and the lower layer picture are decoded alternately. Therefore, the time interval at which each of the multiple lower layer pictures in the encoded stream is decoded is longer than the time interval at which each of all the pictures in the decoded stream is decoded. As a result, when decoding only the multiple lower layer pictures, the image decoding device can decode each picture at a frame rate that is certainly lower than when decoding each of all the pictures in the decoded stream. Therefore, the processing load of the image decoding device can be certainly reduced.

[0026] In addition, in determining the decoding times, the decoding times of each of the multiple pictures included in the video may be determined so that twice the interval between the decoding times of a topmost picture and a lower picture that are consecutive in decoding order among the multiple topmost pictures and the multiple lower pictures is equal to the equally spaced time.

[0027] As a result, the interval between the decode times of each of the multiple lower layer pictures is twice the interval between the decode times of the topmost picture and the lower layer pictures that are consecutive in decoding order, that is, twice the interval between the times at which all the pictures in the decoded stream are decoded. Therefore, if the frame rate when all the pictures in the encoded stream are decoded and displayed is 120 fps, the image decoding device can easily decode each of the multiple lower layer pictures included in the encoded stream at a time interval that is the reciprocal of the frame rate of 60 fps.

[0028] In addition, when the video has a plurality of random access units each consisting of a plurality of pictures consecutive in decoding order, the determination of the decoding time may determine, for each random access unit, the decoding time of each picture in the random access unit so that all pictures in the random access unit, except for a picture displayed in display order earlier than the first picture in decoding order, can be decoded without referring to pictures included in other random access units. For example, the first picture is an I-picture in which a picture later in decoding order than the first picture is prohibited from referring to a picture earlier in decoding order than the first picture. Or, the first picture is an I-picture in which a picture later in decoding order than the first picture and earlier in display order is permitted to refer to a picture earlier in decoding order than the first picture.

[0029] This allows the image decoding device to appropriately decode, for each random access unit, each of the multiple pictures included in that random access unit.

[0030] In addition, in determining the decoding times, when the frame rate at which all pictures included in the encoded moving image are decoded and displayed is f, the decoding times of each of the multiple lower-layer pictures included in all of the pictures may be determined so that the decoding times are separated by a time indicated by n times the reciprocal of f (n is an integer greater than or equal to 2).

[0031] This allows the image decoding device to decode each of the multiple lower layer pictures in order, without burden, at a time interval that is n times the reciprocal of the frame rate.

[0032] In addition, the image encoding method may further include display delay information in the encoded stream indicating a display delay, which is the time between the decoding time of the first picture in the decoding order contained in the video and the display time of the first picture in the display order contained in the video.

[0033] This allows the image decoding device to obtain the display delay information from the encoded stream, and therefore, if the image decoding device starts decoding the encoded stream from a time that is earlier than the display start time by the display delay indicated by the display delay information, the image decoding device can display the moving image without delay from the display start time.

[0034] In addition, the image coding method may further include, in the coded stream, unequal interval information indicating that the decoding times determined for each of the multiple pictures included in the video are not equally spaced.

[0035] This allows the image decoding device to obtain unequal interval information from the encoded stream. Therefore, the image decoding device can determine that each of the multiple pictures included in the encoded stream cannot be sequentially decoded at the display frame rate. As a result, the image decoding device can decode each of the multiple pictures included in the encoded stream at an appropriate timing by referring to the decoding time determined for each of the multiple pictures included in the encoded stream.

[0036] In addition, an image decoding device according to one aspect of the present invention is an image decoding method for decoding an encoded stream including moving images that have been encoded for each picture belonging to any of a plurality of hierarchies without referring to other pictures that belong to a hierarchical level higher than the hierarchical level to which the picture belongs, the image decoding method comprising: obtaining from the encoded stream the decoding times of each of a plurality of pictures included in the encoded stream, the plurality of lower-layer pictures being a part of the plurality of pictures included in the encoded stream and not belonging to the highest hierarchical level of the plurality of hierarchies, determined so that the decoding times of each of the plurality of lower-layer pictures are equally spaced apart and so that the timing at which each of the plurality of lower-layer pictures is decoded is the same between a case in which the plurality of pictures included in the encoded stream are decoded and a case in which only the plurality of lower-layer pictures among the plurality of pictures are decoded; and decoding each of the plurality of pictures included in the encoded stream or the plurality of lower-layer pictures according to the obtained decoding times.

[0037] As a result, each of the multiple pictures included in the encoded stream is encoded without referring to other pictures that belong to a layer higher than the layer to which the picture belongs. Therefore, the image decoding device can decode only the multiple lower layer pictures in the encoded stream. Furthermore, the decoding times of the multiple lower layer pictures included in the encoded stream are equal intervals. Therefore, when the image decoding device decodes only the multiple lower layer pictures in the encoded stream, the image decoding device can sequentially decode the lower layer pictures at equal time intervals. Therefore, if the equal intervals are appropriate, the processing load of the image decoding device can be reduced. That is, the image decoding device can decode each picture at a frame rate according to its own processing capability without performing decoding at a high frame rate. Furthermore, the timing at which each of the multiple lower layer pictures is decoded is the same between the case where multiple pictures (e.g., all pictures) included in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. Therefore, the image decoding device does not need to change the timing at which each of the multiple lower layer pictures is decoded between the case where all pictures in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. This makes it possible to further reduce the processing load on the image decoding device.

[0038] In addition, the image decoding method may further include, when the decoding times of each of a plurality of pictures included in the encoded stream are not equally spaced, changing the decoding times of each of the plurality of pictures to be equally spaced, and, in decoding the encoded stream, decoding each of the plurality of pictures included in the encoded stream or each of the plurality of lower-layer pictures according to the changed decoding times.

[0039] This allows the image decoding device to decode each of the multiple pictures included in the coded stream at equal time intervals, thereby further reducing the processing load on the image decoding device.

[0040] In addition, in the decoding of the encoded stream, it may be determined for each picture included in the encoded stream whether or not the decoding time acquired for the picture coincides with a generation timing of a processing signal that occurs at a predetermined cycle, and when it is determined that the decoding time coincides, the picture may be decoded. For example, the image decoding method may further determine, as the predetermined cycle, an inverse of a frame rate at which all pictures included in the encoded stream are decoded and displayed.

[0041] This makes it possible to appropriately decode each of the multiple pictures at its corresponding decode time even if the decode times of the multiple pictures are not equally spaced.

[0042] These comprehensive or specific aspects may be realized as a system, a method, an integrated circuit, a computer program, or a recording medium such as a computer-readable CD-ROM, or may be realized as any combination of the system, method, integrated circuit, computer program, or recording medium.

[0043] Hereinafter, the embodiment will be specifically described with reference to the drawings.

[0044] The embodiments described below are all comprehensive or specific examples. The numerical values, shapes, materials, components, component arrangement and connection forms, steps, and order of steps shown in the following embodiments are merely examples and are not intended to limit the present invention. Furthermore, among the components in the following embodiments, components that are not described in an independent claim showing a top concept are described as optional components.

[0045] (Embodiment 1) FIG. 3 is a diagram illustrating the image coding device according to the present embodiment.

[0046] The image coding device 10 in this embodiment obtains video with a frame rate of 120 fps, and generates and outputs a coded stream by coding the video. When all pictures included in this coded stream are decoded, the video is displayed at a frame rate of 120 fps. When a part of a plurality of pictures included in this coded stream are decoded, the video is displayed at a frame rate of 60 fps. For example, the part of a plurality of pictures included in the coded stream are pictures that each belong to a layer other than the highest layer.

[0047] Fig. 4 is a diagram showing an example of encoding a moving image using three hierarchical layers in this embodiment. Image encoding device 10 in this embodiment generates an encoded stream of 120 fps by encoding a moving image based on a prediction structure similar to the prediction structure of pictures shown in Fig. 1A. At this time, image encoding device 10 adjusts the decoding time stamp (DTS) of pictures that are decoded only when playing back at 120 fps, so that the decoding interval is 2T (1 / 60 seconds) when playing back the encoded stream at 60 fps. In other words, image encoding device 10 adjusts the DTS of multiple pictures that belong to the highest hierarchical layer of multiple hierarchical layers.

[0048] Fig. 5 is a diagram showing an example of encoding a moving image using four layers in this embodiment. Image encoding device 10 in this embodiment generates an encoded stream of 120 fps by encoding the moving image based on a prediction structure similar to the prediction structure of the pictures shown in Fig. 1B. At this time, image encoding device 10 adjusts the decoding time of pictures that are decoded only when playing back at 120 fps, so that the decoding interval is 2T (1 / 60 seconds) when playing back the encoded stream at 60 fps.

[0049] Here, when encoding a video, a random access unit called a GOP (Group Of Pictures) is configured so that decoding can start from a picture in the middle of the encoded stream. The first picture in the random access unit in decoding order is a random access point. For example, in FIG. 4, pictures I0 to B9 are the first random access unit, and picture I16 is the first picture of the second random access unit. Here, in the second random access unit, pictures such as picture B11 do not refer to picture I16 or pictures after picture I16 in decoding order, but are included in the second random access unit.

[0050] In addition, when recording a broadcasted coded stream (i.e., a broadcast stream), the recording may be performed up to the end of a random access unit such as the first random access unit. In this case, although the picture P12 can be decoded, the picture B11 cannot be decoded because it is included in the second random access unit. This makes the operation during decoding complicated.

[0051] Here, a picture that satisfies a predetermined condition is called an advance picture. The predetermined condition for a picture is that (1) the picture refers to a picture included in the immediately preceding random access unit in decoding order, and (2) the display order of the picture is before any picture included in the immediately preceding random access unit in decoding order. Note that a random access unit is a unit defined by a coding order and a decoding order, and the coding order and the decoding order are the same. Furthermore, a random access unit that is immediately before a random access unit that includes an advance picture, such as the first random access unit, is called an open end random access unit. Also, a picture included in an open end random access unit and that is later in display order than an advance picture is called an isolated picture. For example, picture B11 in FIG. 4 is an advance picture, and picture P12 is an isolated picture.

[0052] FIG. 6 is a diagram showing another example of encoding a moving image using three hierarchical layers in this embodiment.

[0053] When implementing temporal scalability using three hierarchical layers, the image coding device 10 in this embodiment may code images so as to prevent the occurrence of open end random access units, as shown in FIG.

[0054] Any picture included in the second random access unit is later than the last picture P12 of the first random access unit in display order. Therefore, all pictures included in the second random access unit are not advance pictures. As a result, the first random access unit is not an open end random access unit. However, picture B1 cannot refer to picture B2 because picture B2 is later in the decoding order than picture B1. Similarly, picture B5 cannot refer to picture B6 because picture B6 is later in the decoding order than picture B5. In this way, the prediction structure of pictures with a Temporal ID of 2 is restricted.

[0055] In the examples of Fig. 4 to Fig. 6, the cases where the number of layers is 3 and 4 have been described by taking temporal scalability at 60p and 120p as an example. However, the combinations of frame rates and the number of layers that can be realized are not limited to these. When only pictures at low layers are decoded and displayed, if the display interval between each picture at the display frame rate is T_pts, it is sufficient to ensure that the decoding interval between any consecutive pictures in decoding order is equal to T_pts or is equal to or greater than T_pts. Image encoding device 10 performs motion encoding of images so as to satisfy this condition.

[0056] FIG. 7 is a diagram illustrating the image decoding device 20 according to this embodiment.

[0057] The image decoding device 20 in this embodiment obtains an encoded stream generated by the above-mentioned image encoding device 10. The image decoding device 20 displays moving images at a frame rate of 120 fps by decoding all pictures included in the encoded stream. The image decoding device 20 also displays moving images at a frame rate of 60 fps by decoding a part of a plurality of pictures included in the encoded stream. For example, the part of a plurality of pictures included in the encoded stream are pictures each belonging to any layer other than the highest layer.

[0058] In this manner, in this embodiment, the decoding times of the multiple pictures (hereinafter, referred to as lower layer pictures) that are included in the coded stream and do not belong to the highest layer are equally spaced. Therefore, when the image decoding device decodes only the multiple lower layer pictures in the coded stream, the image decoding device can sequentially decode the lower layer pictures at equal time intervals. Therefore, by setting the equal intervals to an appropriate time (for example, the above-mentioned 2T=1 / 60 seconds), the processing load of the image decoding device can be reduced. In other words, the image decoding device can decode each picture at a frame rate according to its own processing capability, without performing the decoding at a high frame rate. For example, when decoding a 60 fps coded stream, it is sufficient to ensure that the time required for decoding one picture is 1 / 60 seconds or less.

[0059] (Variation 1) Here, the DTS of the first picture in the random access unit will be described.

[0060] FIG. 8 is a diagram showing the decoding order and display order of each picture, as well as DTS and PTS (Presentation Time Stamp) when the coded stream shown in FIG. 4 is played back at 120 fps.

[0061] Here, the subscripts (numbers) for DTS and PTS indicate the order of display. For example, in MPEG-2 TS (Transport Stream) in broadcasting, DTS or PTS is indicated by the header of a PES packet. In MMT (MPEG Media Transport) or RTP (Real-time Transport Protocol), DTS or PTS is indicated by the header of a packet in the transport layer, or by header information of the encoded stream included in the payload. In a format in which a file is transmitted without being packetized, such as MPEG-DASH (Dynamic Adaptive Streaming over HTTP), DTS or PTS is included in the header of the file. Alternatively, in MPEG-4 AVC or HEVC, DTS or PTS can be indicated in the encoded stream by using SEI (Supplemental Enhancement Information), such as Picture Timing SEI or Buffering Period SEI.

[0062] In a conventional coded stream, pictures are displayed at a fixed frame rate, and if the interval between the PTSs of two consecutive pictures in display order is T, the interval between the DTSs of two consecutive pictures in decoding order is also always T. Therefore, a playback device (or an image decoding device) can start decoding a picture at the timing of the DTS of the first picture in decoding order, and decode each of the subsequent pictures in order at intervals of T, without referring to the DTS of each of the subsequent pictures.

[0063] On the other hand, in the coded stream in this embodiment, as shown in FIG. 8, the interval between the DTSs between pictures I0 and P4 and between pictures P4 and B2 is 2T (T is, for example, 1 / 120 seconds). The interval between the DTSs between pictures B2 and B1 and between two consecutive pictures following picture B1 in decoding order is T. Therefore, in the coded stream in this embodiment, the interval between the DTSs between pictures is variable. Therefore, an image decoding device (or a playback device) needs to refer to the DTS for each picture and decode the picture at the timing of the DTS.

[0064] The image decoding device 20 according to this modification decodes or displays pictures based on the timing of a video processing signal generated at regular intervals. For example, if the display frame rate is 120 fps, 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 generation of the video processing signal. In the coded stream shown in FIG. 8, the interval of the DTS between picture I0 and picture P4 and the interval of the DTS between picture P4 and picture B2 are twice the period T of the video processing signal. Furthermore, the interval of the DTS between two consecutive pictures after picture B2 in decoding order is equal to the period T of the video processing signal.

[0065] FIG. 9 is a block diagram showing a configuration of an image decoding device 20 in this modification.

[0066] An image decoding device 20 according to this modification has the same functions as the image decoding device 20 according to the above embodiment, and decodes an encoded picture at 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.

[0067] FIG. 10 is a flowchart showing an example of the operation of the image decoding device 20 according to this modification when decoding pictures in all layers.

[0068] First, the signal interval setting unit 21 of the image decoding device 20 sets the interval or period (hereinafter referred to as V_period) for generating a video processing signal so that V_period is the reciprocal of the frame rate when all layers are decoded and displayed (step S21).

[0069] Next, the DTS acquisition unit 22 acquires the DTS (hereinafter, referred to as dts_i) of the picture to be decoded 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 generation of the video processing signal and determines whether the timing matches dts_i (step S23). When the interval of the DTS of the picture is N times V_period, the timing of the video processing signal generated N times, counting from the decoding time of the picture decoded immediately before, matches 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 of step S23.

[0070] Note that step S21 only needs to be performed once before the start of decoding of the first picture, and does not need to be performed for each picture being decoded. In addition, in the determination in step S23, when the difference between the timing of generation of the video processing signal and dts_i is smaller than a predetermined threshold, the two may be considered to match. In addition, the operation shown in Fig. 10 can be applied not only to temporal scalability between the decoding of all layers and the decoding of a low layer, but also to temporal scalability between two different low layers.

[0071] In this way, in the image decoding device 20 of this modification, even if the DTS interval is variable, if the DTS interval 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 to determine the decoding timing can be reduced.

[0072] Here, 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 50 fps and 120 fps. In this case, in order to guarantee decoding in an image decoding device having a decoding capability of 50 fps, the interval of DTS when only the lower layers are decoded needs to be 1 / 50 seconds. However, since FrameRateAll is not an integer multiple of FrameRatePart, not only is the decoding interval of pictures not a constant interval (i.e., a fixed interval) during playback at 120 fps, but the interval of DTS (1 / 50 seconds) is not an integer multiple of the period of the video processing signal (1 / 120 seconds). As a result, decoding cannot be performed at the time indicated by the DTS, and there is a possibility that an overflow or underflow occurs in a buffer for coded pictures, etc. Therefore, when providing temporal scalability, the image coding device 10 according to this modification may determine a combination of layers that realizes temporal scalability such that the frame rate of display when all layers are decoded is an integer multiple of the frame rate of display when only low layers are decoded. Also, the image coding device 10 may store, in the coded stream, information indicating that the frame rate when all layers are decoded is an integer multiple of the frame rate when only some layers are decoded. Alternatively, the image coding device 10 may store the information in a descriptor in a TS (Transport Stream) formed by multiplexing the coded stream.

[0073] In addition, in a random access unit, the difference between the DTS of the first picture in decoding order and the PTS of the first picture in display order is called the display delay. In the example shown in FIG. 8, the difference between DTS0 and PTS0 is the display delay. In a conventional coded stream in which the display frame rate is fixed, the DTS interval is also fixed, and the interval is the same as the PTS interval. Therefore, the display delay is expressed by a value obtained by multiplying the number of pictures decoded before the PTS of the first picture in display order by the PTS interval. In the example shown in FIG. 8, two pictures, ie, picture I0 and picture P4, are decoded before the PTS of picture I0, so the display delay is calculated as 2×T in the conventional calculation method. However, in the example shown in FIG. 8, the interval between the PTSs between picture I0 and picture P4 and the interval between the PTSs between picture P4 and picture B2 are twice T, so the actual display delay is 4×T. In this way, the conventional method cannot adequately express the display delay.

[0074] Therefore, the image coding device 10 according to this modification may include information indicating how many times the display delay is as compared with the PTS interval in the coded stream in order to correctly express the display delay even in a coded stream in which the DTS interval is not constant. In the example shown in FIG. 8, the PTS interval is T, and the display delay is four times T, so the image coding device 10 expresses the display delay as 4. Alternatively, the image coding device 10 may indicate the display delay in an actual time length, such as "4×T". When the number of pictures to be decoded before the PTS of the picture that is the first in the display order is required, the image coding device 10 may indicate the number of pictures separately from the information indicating the display delay described above. In addition, the image coding device 10 may seamlessly connect a plurality of streams or a plurality of specific sections of a stream. In this case, the image coding device 10 encodes the streams or specific sections before and after the connection so that the display delays are equal, taking into consideration that the DTS intervals are variable in the streams or specific sections before and after the connection. At this time, the image coding device 10 may store information indicating that the display delay is equal before and after the seamless connection in the coded stream. Furthermore, when coding streams that are seamlessly connected to each other, the image coding device 10 may code the streams so that the display delays defined by this modification are equal, rather than coding the streams so that the number of pictures that are decoded up to the PTS of the first picture in display order is equal before and after the seamless connection.

[0075] Furthermore, the image encoding device 10 according to this modification may signal auxiliary information indicating that the DTS interval is not constant when the display frame rate is constant, i.e., when the PTS interval is constant. For example, the auxiliary information is a flag indicating whether the DTS interval is constant. In this case, when the flag indicating that the DTS interval is not constant is set, the image decoding device 20 performs the operation shown in FIG. 10, and when the flag is not set, the DTS interval is constant, so the image decoding device 20 may operate without referring to the DTS for each picture.

[0076] The image coding device 10 according to this modification may set the above-mentioned auxiliary information for each random access unit, for each coded stream unit, or for each unit referenced by a playlist in stored content. The auxiliary information may be stored in any of a plurality of layers in a content transmission / reception system, such as an area for storing private data in a TS packet (such as private_data_bytes), content management information in stored content, or SEI in a coded stream such as MPEG-4 AVC or HEVC. However, since it is preferable that the auxiliary information can be referenced before decoding the coded stream, the image coding device 10 may store the auxiliary information in a higher layer in a content transmission / reception system, such as a multiplexing layer such as a TS, or management information of multiplexed data. Thus, in this modification, unequal interval information indicating that the decode times determined for each of a plurality of pictures included in a moving image are not equally spaced is included in the coded stream as the above-mentioned auxiliary information.

[0077] Furthermore, the image coding device 10 according to this modification may store information indicating that the interval between the DTSs of any two pictures consecutive in the decoding order is variable when decoding only the lower layer of the coding stream having temporal scalability. This information indicates that, when decoding only the above-mentioned lower layer, if the display frame rate (hereinafter referred to as frame_rate) is constant, the interval between the DTSs of any two pictures consecutive in the decoding order is equal to 1 / frame_rate (seconds) or is equal to or greater than 1 / frame_rate (seconds). For example, in MPEG2-TS, identification information of the coding stream constituting a program is indicated in PMT (Program Map Tables). The image coding device 10 according to this modification may indicate the above information by defining a descriptor in the PMT. For example, an image decoding device 20 having a decoding capability of up to 60 fps does not decode or play the coding stream when the descriptor in the PMT indicates that the interval between the DTSs is less than 1 / 60 seconds. Alternatively, the image decoding device 20 can perform operations such as resetting the DTS so that the decoding interval of each picture is 1 / 60 seconds or more, and decoding each picture. When resetting the DTS, if it is necessary to change the PTS, the image decoding device 20 also changes the PTS.

[0078] (Variation 2) Next, changing the decoding time of a picture will be described.

[0079] When decoding all layers, the image decoding device 20 in the above embodiment may change the DTS of a picture before starting decoding so that the interval between DTSs becomes 1 / frame_rate (seconds).

[0080] FIG. 11 is a diagram showing an example of changing the DTS.

[0081] As shown in FIG. 11, the image decoding device 20 according to this modification changes the DTSs of the pictures I0 and P4, thereby setting all the DTS intervals to 1 / frame_rate (seconds). The pictures with variable DTS intervals are pictures that are decoded before the PTS of the first picture in display order. By changing the DTSs of these pictures, it is possible to ensure that the DTS intervals are fixed. Furthermore, if the DTS intervals are fixed, the picture decoding timing can be determined and decoded by the same method as in the past. Note that the DTS of the pictures that are decoded before the PTS of the first picture in display order is only changed so as to be delayed, and the DTS intervals after the change are 1 / frame_rate (seconds). Therefore, no special problems arise with a decoder model such as HRD (Hypothetical Reference Decoder) in MPEG-4 AVC or HEVC.

[0082] When multiplexing an encoded stream by TS, the image encoding device 10 according to this modification may indicate the value of the changed DTS in a TREF (Timestamp Reference) field of the PES header or the like. In addition, even when another multiplexing method is used, the image encoding device 10 may indicate the DTS before and after the change. Furthermore, information indicating the correspondence between the layer to be decoded and the DTS or PTS to be used, such as indicating that the changed DTS is used when decoding all layers, may be indicated in, for example, a TS descriptor, program information in the transport layer, or management information in the stored content. In addition, the image encoding device 10 may indicate information indicating that the interval of the changed DTS is fixed or that the interval is equal to the interval of the PTS in program information in the transport layer or management information in the stored content.

[0083] In this way, even if the image decoding device 20 has low processing power, it can decode only the low layers. Also, an image decoding device 20 with high processing power that can decode all layers can determine that the changed DTS or PTS has been transmitted by analyzing the MPEG-2 TS descriptor or by 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 changed DTS or PTS.

[0084] Furthermore, when recording an encoded stream on the assumption that all layers can be decoded, the image decoding device 20 may record the encoded stream after changing the DTS as described above. In this case, instead of using a field for storing the changed DTS or PTS, such as TREF, the DTS or PTS field in the PES header may be changed.

[0085] (Variation 3) Next, the auxiliary information for playback control will be described.

[0086] FIG. 12 is a diagram for explaining pictures decoded in an open end random access unit.

[0087] For example, in the example shown in FIG. 12, the end of the stored coded stream or the coded stream acquired via a communication network coincides with the end of the first random access unit, which is an open end random access unit. At this time, pictures B11, B13, B14, and B15 included in the second random access unit cannot be decoded. However, picture P12 belonging to the first random access unit can be decoded. Here, picture B11 is an advance picture, and picture P12 is an isolated picture.

[0088] In addition, in a random access unit in an encoded stream, all pictures except a predetermined picture among the pictures constituting the random access unit can be decoded without referring to other random access units. When the random access unit is configured as an open GOP (Group Of Pictures), the predetermined picture is a picture that is displayed before the first picture in the decoding order in the random access unit. Such a predetermined picture may refer to a picture included in a random access unit that is immediately before the random access unit in the decoding order of the random access unit. Therefore, when decoding is started from the beginning of the random access unit that is an open GOP, the predetermined picture cannot be decoded. Therefore, the image decoding device decodes and displays all pictures that are displayed after the first picture in the decoding order in the random access unit as decodable pictures.

[0089] Here, the image decoding device 20 that has acquired the encoded data up to the open end random access unit of the encoded stream has not acquired the advance picture, and therefore cannot decode the advance picture. Therefore, the image coding device 10 according to this modification includes auxiliary information for playback control in the encoded stream.

[0090] The auxiliary information for playback control is, for example, the following information (1) to (5).

[0091] (1) Information indicating whether the random access unit is an open-end random access unit.

[0092] (2) Information indicating whether the random access unit is the last random access unit in a section that is played continuously, such as the last random access unit in a coded stream or the last random access unit indicated by a playlist, etc.

[0093] (3) Information indicating whether the picture is an isolated picture or whether the picture is the last isolated picture in display order in a random access unit.

[0094] (4) Information indicating whether the picture is an advanced picture

[0095] (5) Information indicating whether there is an isolated picture in the random access unit that is later in display order than the specified picture.

[0096] In the above (2), when discontinuous sections in an encoded stream or different encoded streams are concatenated, the random access unit before the concatenated part cannot refer to the picture of the following random access unit. Therefore, the random access unit before the concatenated part is treated the same as the last random access unit in the playback section.

[0097] The image coding device 10 according to this modification may set auxiliary information for playback control as described above for each random access unit, each coded stream unit, or each unit referenced by a playlist in stored content. The auxiliary information may be stored in any of a plurality of layers in a content transmission / reception system, such as an area for storing private data in a TS packet (such as private_data_bytes), content management information in stored content, or SEI in a coded stream such as MPEG-4 AVC or HEVC. However, since it is desirable that the auxiliary information can be referenced before decoding the coded stream, the image coding device 10 may store the auxiliary information in a higher layer in a content transmission / reception system, such as a multiplexed layer such as a TS, or management information of multiplexed data.

[0098] The above information (1) and (2) is attribute information indicating attributes of the random access unit. The image encoding device 10 stores the attribute information in an SEI that precedes the first picture of the random access unit in decoding order, or in a 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 content management information. In the transport layer, when information indicating a random access point is signaled, such as a random_access_indicator of a TS packet, the attribute information may be stored in a packet that indicates that it is a random access point.

[0099] Moreover, the above information (3) to (4) is attribute information for each picture constituting a random access unit. The image coding device 10 may collectively store the attribute information for each random access unit, or may store the attribute information for each picture. When storing the attribute information for each picture, the image coding device 10 adds an SEI to each random access unit in the coded stream, or stores the attribute information in the header or payload of a TS packet that stores the start data of the picture. Moreover, the image coding device 10 may store the attribute information for a picture only when the random access unit is an open end random access unit.

[0100] Next, a method for decoding an image in an open end random access unit will be described.

[0101] FIG. 13 is a flowchart showing an example of the operation of the image decoding device 20 according to this modification when decoding a moving image based on auxiliary information for playback control.

[0102] First, the image decoding device 20 judges whether or not auxiliary information for playback control is present in the management information of the content, the transport layer such as TS, or the coded stream (step S211). In a playback section that is played back continuously, auxiliary information for playback control is either provided in all random access units that make up the playback section, or is not provided. Therefore, the process of step S211 needs to be performed only on the first random access unit in the playback section.

[0103] Here, if it is determined that auxiliary information for playback control exists ("Yes" in step S211), the image decoding device 20 performs processing of step S212, and if it is determined that auxiliary information does not exist ("No" in step S211), the image decoding device 20 performs processing of step S215.

[0104] In step S215, the image decoding device 20 determines a picture to be decoded based on a predefined 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 section to be continuously played back and is an open end random access unit (step S212).

[0105] Here, if it is determined that the condition is satisfied ("Yes" in step S212), the image decoding device 20 refers to the auxiliary information for playback control and determines the picture to be decoded (step S213). On the other hand, if it is determined that the condition is not satisfied ("No" in step S212), the image decoding device 20 determines to decode all pictures included 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 section, the image decoding device 20 does not decode a picture that refers to a picture included in a random access unit immediately preceding the random access unit to be decoded in decoding order.

[0106] Then, the image decoding device 20 decodes the picture determined in any one of the processes in steps S213, S214, and S215 (step S216).

[0107] The process of step S212 may be performed for each random access unit. In addition, the picture determination in step S213 is performed at the start of decoding of the random access unit when auxiliary information of each of the multiple pictures is stored together in the random access unit. In addition, the picture determination is performed for each picture when auxiliary information of each of the multiple pictures is stored for each picture.

[0108] If the auxiliary information for playback control does not indicate information about each picture, the image decoding device 20 may determine whether or not a reference picture exists in step S213. This allows the image decoding device 20 to determine whether or not a picture can be decoded, and to determine which picture to decode.

[0109] Note that the image decoding device 20 may determine the picture in step S213 as follows.

[0110] For example, the image decoding device 20 determines only pictures that precede the advance picture in display order as pictures to be decoded, and determines isolated pictures as pictures not to be decoded.

[0111] Alternatively, the image decoding device 20 determines a picture that is earlier in display order than the advance picture and an isolated picture as pictures to be decoded. An advance picture that is earlier in display order than an isolated picture cannot be decoded. Therefore, the image decoding device 20 freezes and displays the decoding result of a picture that is immediately before the advance picture in display order among the decodable pictures at the timing indicated by the PTS of the advance picture. That is, the image decoding device 20 continues to display the decoding result of the immediately previous picture even at the timing indicated by the PTS of the advance picture. Alternatively, the image decoding device 20 may display an image obtained by interpolating the decoding result of a picture that is immediately before the advance picture in display order among the decodable pictures and the decoding result of the advance picture.

[0112] Here, an image decoding device with a decoding capability of 120 fps can perform trick play such as playing back at 4x speed by decoding only pictures belonging to a layer with a Temporal ID of 0 at a decoding interval of 120 fps. Therefore, a method of determining a picture to be decoded may be switched between normal play in which pictures of all layers are decoded and displayed, and trick play. For example, in the example shown in FIG. 1A or FIG. 1B, the pictures with a Temporal ID of 0 are only I pictures and P pictures, and advance pictures are not included in the pictures. Therefore, the image decoding device 20 may decode an isolated picture in a case where only pictures belonging to a layer with a Temporal ID of 0 are decoded and played back during trick play, etc., without decoding an isolated picture during normal play. More generally, in the case of trick play, the image decoding device 20 may decode only pictures that are earlier in display order than advance pictures in the pictures of the layer to be decoded.

[0113] In addition, when the random access unit is an open end random access unit, the image encoding device 10 may store information for identifying the advance picture or the last isolated picture in display order in the encoded stream as attribute information of the random access unit. For example, if the decoding order of the advance picture is Nth in the random access unit, the image decoding device 20 may determine to decode only a picture having a PTS earlier than the PTS of the Nth picture. Alternatively, if the last isolated picture in display order is Nth in decoding order, the image decoding device 20 may determine not to decode a picture that is later in display order than the isolated picture.

[0114] (Variation 4) For example, when an image decoding device 20 according to this modification, which has an upper limit of decoding capability of 60 fps, acquires an encoded stream with a frame rate exceeding 60 fps, it may convert the DTS or PTS of each picture 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 broadcast or a communication network. Alternatively, the image decoding device 20 may convert the DTS or PTS when transmitting an encoded stream recorded in a memory, a hard disk, or the like to an external device via a communication network, or the like.

[0115] Fig. 14 is a diagram showing an example of DTS or PTS conversion. The first row from the top in Fig. 14 shows the original DTS of all pictures constituting all layers included in the original coded stream. When all pictures are decoded and displayed, a moving image is displayed at a frame rate of 120 fps. The second row from the top in Fig. 14 shows each picture recorded when the original coded stream is recorded as a 60 fps coded stream, and the original DTS of those pictures. In a 60 fps coded stream recorded in this way, it is not guaranteed that the DTS interval between pictures will be 1 / 60 (seconds).

[0116] The third row from the top in FIG. 14 shows pictures recorded when the original encoded stream is recorded as an encoded stream of 60 fps, and the DTS of those pictures after the change. The image decoding device 20 in this modification changes the DTS shown in the third row. As a result of changing the DTS, it is guaranteed that the DTS interval between pictures is 1 / 60 (seconds). The fourth row from the top in FIG. 14 shows pictures recorded when the original encoded stream is recorded as an encoded stream of 60 fps, and the PTS of those pictures. There is no need to change the PTS, and the same value as the original PTS can be used. Here, the DTS is changed so as to be delayed from the original DTS, and the PTS is not changed. Therefore, neither overflow nor underflow occurs in the upstream buffer (corresponding to the Coded Picture Buffer in MPEG-4 AVC or HEVC) provided in the image decoding device 20, or in the buffer for holding reference pictures (corresponding to the Decoded Picture Buffer in MPEG-4 AVC or HEVC).

[0117] In addition, when it is necessary to change the PTS, the PTS may be changed so as to satisfy a buffer model (corresponding to a Hypothetical Reference Decoder in MPEG-4 AVC or HEVC). When the encoded stream is multiplexed by MPEG-2 TS, the PTS or DTS is indicated in the header of the PES packet. Therefore, the image decoding device 20 may change the PTS or DTS in the header of the PES packet. Alternatively, the image decoding device 20 may not change the value of the PTS or DTS, and may store the changed value in a TREF (Timestamp Reference) field in the PES packet header. Alternatively, the image decoding device 20 may change the PTS or DTS, and then store the original PTS or DTS value in the TREF field.

[0118] In the above embodiment and its modified examples, the temporal scalability based on the combination of 60 fps and 120 fps has been described as an example, but the present invention may be applied to temporal scalability with other combinations of frame rates. Also, in the above embodiment and its modified examples, the combination of all layers and each layer except the top layer has been described as an example of layers to be decoded when realizing temporal scalability, but the present invention may be applied to other combinations of layers.

[0119] The image encoding device and image decoding device according to one or more aspects have been described above based on an embodiment and its modified examples, but the present invention is not limited to the embodiment and its modified examples.

[0120] FIG. 15A is a block diagram of an image encoding device according to one embodiment of the present invention.

[0121] An image encoding device 100 according to one embodiment of the present invention is an apparatus for encoding moving images, for each picture belonging to one of a plurality of hierarchies, without referring to other pictures belonging to a hierarchical layer higher than the hierarchical layer to which the picture belongs, and includes a determination unit 101, an encoding unit 102, and a generation unit 103.

[0122] The determining unit 101 determines the decode times of the plurality of pictures included in the video such that the decode times of the plurality of lower layer pictures, which are some of the plurality of pictures included in the video and do not belong to the highest layer of the plurality of layers, are equally spaced. At this time, the determining unit 101 further determines the decode times of the plurality of pictures included in the video such that the timings at which the plurality of lower layer pictures are decoded are the same between a case in which the plurality of pictures included in the encoded video are decoded and a case in which only the plurality of lower layer pictures among the plurality of pictures are decoded.

[0123] The encoding unit 102 encodes each of the pictures included in the video in an encoding order according to the determined decoding times. The generating unit 103 generates an encoded stream including the encoded pictures and the determined decoding times for each of the pictures.

[0124] FIG. 15B is a flowchart showing an image encoding method according to one embodiment of the present invention.

[0125] An image coding method according to an aspect of the present invention is a method in which an image coding device 100 codes a moving image for each picture belonging to one of a plurality of layers without referring to other pictures belonging to a layer higher than the layer to which the picture belongs. The image coding method includes steps S101, S102, and S103. In step S101, the decoding times of the plurality of pictures included in the moving image are determined so that the decoding times 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 equal to each other. At this time, the decoding times of the plurality of pictures included in the moving image are determined so that the timings at which the plurality of lower layer pictures are decoded are the same between a case in which the plurality of pictures included in the coded moving image are decoded and a case in which only the plurality of lower layer pictures among the plurality of pictures are decoded.

[0126] In step S102, the multiple pictures included in the video are coded in a coding order according to the determined decoding times, and in step S103, a coded stream including the coded pictures and the determined decoding times for each of the multiple pictures is generated.

[0127] As a result, each of the multiple pictures included in the encoded stream is encoded without referring to other pictures that belong to a layer higher than the layer to which the picture belongs. Therefore, the image decoding device can decode only the multiple lower layer pictures in the encoded stream. Furthermore, the decoding times of the multiple lower layer pictures included in the encoded stream are equal intervals. Therefore, when the image decoding device decodes only the multiple lower layer pictures in the encoded stream, the image decoding device can sequentially decode the lower layer pictures at equal time intervals. Therefore, by setting the equal interval to an appropriate time such as 1 / 60 seconds, the processing load of the image decoding device can be reduced. In other words, the image decoding device can decode each picture at a frame rate such as 60 fps according to its own processing capability, without performing decoding at a high frame rate such as 120 fps. Furthermore, the timing at which each of the multiple lower layer pictures is decoded is the same between the case where multiple pictures (for example, all pictures) included in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. For example, as shown in FIG. 4 or FIG. 6, pictures I0, P4, B2, I8, B6, etc., which are multiple lower layer pictures, are decoded at the same timing when decoding is performed at 120 fps and when decoding is performed at 60 fps. Therefore, the image decoding device does not need to change the timing of decoding each of the multiple lower layer pictures when decoding all pictures of the encoded stream and when decoding only the multiple lower layer pictures. Therefore, the processing load of the image decoding device can be further reduced.

[0128] In addition, in determining the decode times in step S101, the decode times of the top layer pictures, which are some of the pictures included in the video and belong to the highest layer, are determined to be between the decode times of the lower layer pictures. For example, in the example shown in Fig. 6, the decode time of the top layer picture B1 is determined to be between the lower layer pictures P4 and B2, and the decode time of the top layer picture B3 is determined to be between the lower layer pictures B2 and I8.

[0129] Thereby, when the encoded stream is decoded, the top layer picture and the lower layer picture are decoded alternately. Therefore, the time interval at which each of the multiple lower layer pictures in the encoded stream is decoded is longer than the time interval at which each of all the pictures in the decoded stream is decoded. As a result, when decoding only the multiple lower layer pictures, the image decoding device can decode each picture at a frame rate that is certainly lower than when decoding each of all the pictures in the decoded stream. Therefore, the processing load of the image decoding device can be certainly reduced.

[0130] In addition, in determining the decode time in step S101, the decode time of each of the multiple pictures included in the video is determined so that the time twice the interval between the decode times of the multiple top layer pictures and the multiple lower layer pictures that are consecutive in decoding order is equal to the above-mentioned equally spaced time. For example, in the example shown in FIG. 6, the interval between the decode times of picture B1, which is the top layer picture, and picture B2, which is the lower layer picture that are consecutive in decoding order, is T=1 / 120 seconds. Therefore, in step S101, the decode time of each of the multiple pictures included in the video is determined so that 2×T=1 / 60 seconds is equal to the above-mentioned equally spaced time.

[0131] As a result, the interval between the decode times of each of the multiple lower layer pictures is twice the interval between the decode times of the topmost picture and the lower layer pictures that are consecutive in decoding order, that is, twice the interval between the times at which all the pictures in the decoded stream are decoded. Therefore, if the frame rate when all the pictures in the encoded stream are decoded and displayed is 120 fps, the image decoding device can easily decode each of the multiple lower layer pictures included in the encoded stream at a time interval that is the reciprocal of the frame rate of 60 fps.

[0132] Also, when a video has a plurality of random access units each consisting of a plurality of pictures consecutive in decoding order, in step S101, the decoding time may be determined as follows. That is, in this step S101, for each random access unit, the decoding time of each picture in the random access unit is determined so that all pictures in the random access unit, except for a picture displayed in display order before the first picture in decoding order, can be decoded without referring to pictures included in other random access units. Here, the first picture is an I-picture (so-called IDR picture: Instantaneous Decoding Refresh Picture) in which a picture later than the first picture in decoding order is prohibited from referring to a picture earlier than the first picture in decoding order. Alternatively, the first picture is an I-picture (so-called CRA picture: Clean Random Access Picture) in which a picture later than the first picture in decoding order and earlier in display order is permitted to refer to a picture earlier than the first picture in decoding order. For example, in step S101, the image coding device 100 determines the decoding times of each of the pictures included in the video as shown in Fig. 6. In the example shown in Fig. 6, picture I16 is a CRA picture because picture B13, which precedes picture I16 in display order, refers to picture P12 in the first random access unit.

[0133] This allows the image decoding device to appropriately decode, for each random access unit, each of the multiple pictures included in that random access unit.

[0134] Here, a detailed description will be given of the processing operation performed by the image coding device 100 in step S101 to determine the decoding times of a plurality of pictures included in a video, as in the example shown in FIG.

[0135] For example, if the frame rate at which all pictures included in the encoded video are decoded and displayed is 120 fps, the image encoding device 100 determines the decode time of each of all pictures in a time unit (1 / 120 seconds) that is the reciprocal of the frame rate (120 fps) in step S101. That is, the decode time determined for each picture is expressed as a time obtained by adding an offset value to an integer multiple of the time unit. Alternatively, in step S101, the image encoding device 100 may first determine the TId of each of the pictures included in the video, and then determine the decoding order of each of the pictures. Then, the image encoding device 100 determines the DTS of each of the pictures in the time unit based on the determined decoding order.

[0136] For example, the image coding device 100 determines, for each picture arranged in display order, a TId, which is a value for identifying a layer of the picture, in the range of 0 to K (K is an integer equal to or greater than 1). A layer with a TId of K is the highest layer, and a layer with a Tid of 0 is the lowest layer. Specifically, the determination unit 101 determines the Tid of the first I picture among a plurality of pictures arranged in display order in a moving image to be 0. Furthermore, the determination unit 101 determines the TId of the last I picture or P picture in the picture set for each of M consecutive pictures (hereinafter, referred to as a picture set) (M is an integer equal to or greater than 2) among a plurality of pictures following the first I picture arranged in display order to be 0. In the picture set, the last picture in display order is an I picture or a P picture, and the TId of the I picture or P picture is determined to be 0. Furthermore, a picture with a TId determined to be 0 is hereinafter referred to as a layer 0 picture. For example, in the example shown in Figure 1A, four pictures including picture B1, picture B2, picture B3, and picture P4 correspond to the above-mentioned picture set, and picture P4 is determined as the 0th layer picture.

[0137] Next, the determining unit 101 identifies at least one picture (e.g., a B picture) other than the 0th layer picture included in the picture set, which is a candidate for determining the TId, as a candidate picture. This candidate picture is a picture displayed between two default pictures whose TIds have already been determined. For example, in the example shown in FIG. 1A, when the TIds of the pictures I0 and P4 have already been determined, the pictures I0 and P4 are default pictures. In this case, in the picture set including the pictures B1 to B3 and the picture P4, the picture B2, which is a picture displayed between the pictures I0 and P4, is identified as a candidate picture.

[0138] Furthermore, if there are a plurality of candidate pictures thus identified, the determining unit 101 determines the TId of the first candidate picture in display order among the candidate pictures to be the value N obtained by adding 1 to the non-lower TId of the two default pictures corresponding to the first candidate picture. For example, in the example shown in FIG. 1B, when the TIds of the pictures I0, P8, and B4 have already been determined, the pictures I0, P8, and B4 are default pictures. In this case, in the picture set including the pictures B1 to B7 and P8, the picture B2, which is a picture displayed between the pictures I0 and B4, and the picture B6, which is a picture displayed between the pictures B4 and P8, are identified as candidate pictures. Therefore, the determination unit 101 determines the TId of the first candidate picture B2 in display order among the candidate pictures B2 and B6 to be the value (N=2) obtained by adding 1 to the TId=1 of the two default pictures I0 and B4 corresponding to the first candidate picture B2, which is not the lower one.

[0139] The determination unit 101 repeats the process of identifying candidate pictures and determining Tids in this way until ITds of all pictures other than the 0th layer picture that are included in the picture set and in which N is equal to or less than K are determined. As a result, TIds are determined for each picture, as shown in FIG. 1A or FIG. 1B.

[0140] Next, the determining unit 101 determines the decoding order of the above-mentioned leading I-picture to be 1. For example, as shown in Fig. 6, the determining unit 101 determines the decoding order of the leading I-picture, picture I0, to be 1.

[0141] Then, for each of the above-mentioned picture sets, the determining unit 101 determines the decoding order of each of the multiple pictures in the picture set. Specifically, the determining unit 101 determines the decoding order of the 0th layer picture to be the first in the picture set. Then, the determining unit 101 determines the decoding order of the multiple pictures other than the 0th layer picture included in the picture set, starting from the previous picture in display order, to be immediately after the already determined decoding order. For example, in a picture set including pictures B1 to B7 and picture P8, the determining unit 101 determines the decoding order of picture P8, which is the 0th layer picture, to be the first. Then, the determining unit 101 determines the decoding order of pictures B1 to B3 such that picture P8 is followed in order by picture B1, picture B2, and picture B3.

[0142] Furthermore, the determining unit 101 determines that a plurality of picture sets arranged in display order are to be decoded in the order in which they are arranged. That is, the determining unit 101 determines that the decoding order of the first picture in a picture set is the ordinal number obtained by adding 1 to the last decoding order of the immediately preceding picture set in display order or the decoding order of the first I-picture (picture I0) described above.

[0143] Furthermore, after determining the decode time of the first I-picture (picture I0), the determining unit 101 determines the decode time of the picture (picture P4) immediately following the I-picture in decode order to be the decode time of the I-picture plus the above-mentioned time unit (1 / 120 seconds) × 2. The determining unit 101 also determines the decode time of each picture later in decode order than the above-mentioned immediately following picture (picture P4) to be the time obtained by adding the above-mentioned time unit to the decode time of the picture immediately preceding it in decode order.

[0144] As a result of the determination unit 101 determining the decode time of each picture as described above, the decode times of the multiple lower layer pictures are spaced at equal intervals, that is, at intervals of the above-mentioned time unit (1 / 120 seconds)×2.

[0145] In addition, in determining the decoding time in step S101, 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 may be determined so that the decoding times are separated by a time indicated by the reciprocal of f multiple n (n is an integer greater than or equal to 2).

[0146] This allows the image decoding device to decode each of the multiple lower layer pictures in order, without burden, at a time interval that is n times the reciprocal of the frame rate.

[0147] In addition, an image encoding method according to one aspect of the present invention may further include display delay information in the encoded stream, which indicates a display delay, 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.

[0148] This allows the image decoding device to obtain the display delay information from the encoded stream. Therefore, as shown in Fig. 8, if the image decoding device starts decoding the encoded stream from a time that is earlier than the display start time by the display delay indicated by the display delay information, the image decoding device can display the moving image without delay from the display start time.

[0149] In addition, an image encoding method according to one aspect of the present invention may further include, in the encoded stream, unequal interval information indicating that the decoding times determined for each of a plurality of pictures included in a moving image are not equally spaced.

[0150] This allows the image decoding device to obtain unequal interval information from the encoded stream. Therefore, the image decoding device can determine that each of the multiple pictures included in the encoded stream cannot be sequentially decoded at the display frame rate. As a result, the image decoding device can decode the multiple pictures at appropriate timing by referring to the decoding times determined for each of the multiple pictures included in the encoded stream according to the flowchart shown in FIG. 10.

[0151] FIG. 15C is a block diagram of an image decoding device according to one aspect of the present invention.

[0152] An image decoding device 200 according to an aspect of the present invention is a device that decodes an encoded stream including a video encoded for each picture belonging to one of a plurality of layers without referring to other pictures belonging to a layer higher than the layer to which the picture belongs. The image decoding device 200 includes an acquisition unit 201 and a decoding unit 202.

[0153] The acquisition unit 201 acquires the decode time of each of the multiple pictures included in the coded stream from the coded stream. Here, the decode time of each of the multiple pictures is determined as follows. That is, these decode times are determined so that the decode times of multiple lower layer pictures, which are some of the multiple pictures included in the coded stream and do not belong to the highest layer of the multiple layers, are equally spaced. Furthermore, these decode times are determined so that the timing at which each of the multiple lower layer pictures is decoded is the same between when the multiple pictures included in the coded stream are decoded and when only the multiple lower layer pictures of the multiple pictures are decoded.

[0154] The decoding unit 202 decodes each of the multiple pictures or multiple lower layer pictures included in the coded stream according to the acquired decoding times.

[0155] FIG. 15D is a flowchart showing an image decoding method according to one embodiment of the present invention.

[0156] An image decoding method according to an aspect of the present invention is a method in which an image decoding device 200 decodes an encoded stream including a moving image that is encoded for each picture belonging to one of a plurality of layers without referring to other pictures belonging to a layer higher than the layer to which the picture belongs. This image decoding method includes steps S201 and S202.

[0157] In step S201, the decode time of each of the multiple pictures included in the coded stream is obtained from the coded stream. Here, the decode time of each of the multiple pictures is determined as follows. That is, these decode times are determined so that the decode times of multiple lower layer pictures, which are some of the multiple pictures included in the coded stream and do not belong to the highest layer of the multiple layers, are equally spaced. Furthermore, these decode times are determined so that the timing at which each of the multiple lower layer pictures is decoded is the same between when the multiple pictures included in the coded stream are decoded and when only the multiple lower layer pictures of the multiple pictures are decoded.

[0158] In step S202, the multiple pictures or multiple lower layer pictures included in the coded stream are decoded according to the obtained decoding times.

[0159] As a result, each of the multiple pictures included in the encoded stream is encoded without referring to other pictures that belong to a layer higher than the layer to which the picture belongs. Therefore, the image decoding device 200 can decode only the multiple lower layer pictures in the encoded stream. Furthermore, the decoding times of the multiple lower layer pictures included in the encoded stream are equal intervals. Therefore, when the image decoding device 200 decodes only the multiple lower layer pictures in the encoded stream, it can sequentially decode the lower layer pictures at equal time intervals. Therefore, if the equal intervals are appropriate, the processing load of the image decoding device 200 can be reduced. That is, the image decoding device 200 can decode each picture at a frame rate according to its own processing capability, without performing decoding at a high frame rate. Furthermore, the timing at which each of the multiple lower layer pictures is decoded is the same between the case where multiple pictures (for example, all pictures) included in the encoded stream are decoded and the case where only the multiple lower layer pictures are decoded. Therefore, the image decoding device 200 does not need to change the timing of decoding each of the multiple lower layer pictures depending on whether all pictures in the coded stream are decoded or only the multiple lower layer pictures are decoded. This makes it possible to further reduce the processing load of the image decoding device 200.

[0160] In addition, the image decoding method according to one embodiment of the present invention may further include, when the decoding times of each of a plurality of pictures included in an encoded stream are not equally spaced, changing the decoding times of each of the plurality of pictures to be equally spaced, and, in decoding the encoded stream, decoding each of the plurality of pictures or each of a plurality of lower-layer pictures included in the encoded stream according to the changed decoding times.

[0161] 11, the decoding times of the pictures are changed at equal intervals, so that the image decoding device 200 can decode the pictures included in the coded stream at equal time intervals. This can further reduce the processing load of the image decoding device 200.

[0162] In addition, the image decoding method according to one aspect of the present invention may determine, for each picture included in the encoded stream, whether or not the decode time acquired for that picture coincides with the generation timing of a processing signal (corresponding to the above-mentioned video processing signal) that occurs at a predetermined cycle, and may decode the picture when it is determined that the decode time coincides. For example, the image decoding method may further determine, as the above-mentioned predetermined cycle, the reciprocal of the frame rate when all pictures included in the encoded stream are decoded and displayed.

[0163] As a result, as shown in the flowchart of FIG. 10, even if the decode times of the multiple pictures are not equally spaced, each of the multiple pictures can be decoded appropriately at its decode time.

[0164] In each of the above embodiments, each component may be configured with dedicated hardware, or may be realized by executing a software program suitable for each component. Each component may be realized by a program execution unit such as a CPU or a processor reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. Here, the software for realizing the image encoding device 10, 100 of the above embodiment or modification causes a computer to execute each step included in the flowchart shown in FIG. 15B. Also, the software for realizing the image decoding device 20, 200 of the above embodiment or modification causes a computer to execute each step included in the flowchart shown in FIG. 15D.

[0165] (Embodiment 2) By recording a program for implementing the configuration of the video coding method (image coding method) or video decoding method (image decoding method) shown in each of the above embodiments on a storage medium, it becomes possible to easily implement the processes shown in each of the above embodiments on an independent computer system. The storage medium may be a magnetic disk, an optical disk, a magneto-optical disk, an IC card, a semiconductor memory, or any other medium capable of recording a program.

[0166] Further, here, application examples of the video coding method (image coding method) and video decoding method (image decoding method) shown in each of the above embodiments and a system using the same will be described. The system is characterized by having an image coding / decoding device consisting of an image coding device using the image coding method and an image decoding device using the image decoding method. Other components of the system can be appropriately changed depending on the case.

[0167] 16 is a diagram showing the overall configuration of a content supply system ex100 that realizes a content distribution service. The area where communication services are provided is divided into cells of a desired size, and base stations ex106, ex107, ex108, ex109, and ex110, which are fixed wireless stations, are installed in each cell.

[0168] This content supply system ex100 is connected to the Internet ex101 via an Internet service provider ex102, a telephone network ex104, and base stations ex106 to ex110, and devices such as a computer ex111, a PDA (Personal Digital Assistant) ex112, a camera ex113, a mobile phone ex114, and a game console ex115.

[0169] However, the content supply system ex100 is not limited to the configuration shown in Fig. 16, and any combination of elements may be connected. Also, each device may be directly connected to the telephone network ex104 without going through the base stations ex106 to ex110, which are fixed wireless stations. Also, each device may be directly connected to each other via short-distance wireless or the like.

[0170] The camera ex113 is a device capable of shooting moving images, such as a digital video camera, and the camera ex116 is a device capable of shooting still images and moving images, such as a digital camera. The mobile phone ex114 may be any of the following: a GSM (registered trademark) (Global System for Mobile Communications) type, a CDMA (Code Division Multiple Access) type, a W-CDMA (Wideband-Code Division Multiple Access) type, a LTE (Long Term Evolution) type, a HSPA (High Speed ​​Packet Access) mobile phone, or a PHS (Personal Handyphone System).

[0171] In the content supply system ex100, a camera ex113 and the like are connected to a streaming server ex103 through a base station ex109 and a telephone network ex104, thereby enabling live distribution and the like. In live distribution, a user performs encoding processing on content (e.g., a video of a live music performance, etc.) shot by the camera ex113 as described in each of the above embodiments (i.e., functions as an image encoding device according to an aspect of the present invention) and transmits the content to the streaming server ex103. Meanwhile, the streaming server ex103 streams the transmitted content data to a client that has made a request. Examples of the clients include a computer ex111, a PDA ex112, a camera ex113, a mobile phone ex114, a game machine ex115, and the like that are capable of decoding the encoded data. Each device that receives the distributed data decodes the received data and plays it back (i.e., functions as an image decoding device according to an aspect of the present invention).

[0172] The encoding process of the captured data may be performed by the camera ex113, or by the streaming server ex103 which performs the data transmission process, or the two may share the same role. Similarly, the decoding process of the distributed data may be performed by the client, or by the streaming server ex103, or the two may share the same role. Furthermore, still images and / or video data captured by the camera ex116, not limited to the camera ex113, may be transmitted to the streaming server ex103 via the computer ex111. In this case, the encoding process may be performed by the camera ex116, the computer ex111, or the streaming server ex103, or the two may share the same role.

[0173] Moreover, these encoding and decoding processes are generally processed in an LSIex500 possessed by the computer ex111 or each device. The LSIex500 may be a single chip or may be configured with multiple chips. Note that software for encoding and decoding moving images may be embedded in some kind of recording medium (CD-ROM, flexible disk, hard disk, etc.) that can be read by the computer ex111, etc., and the encoding and decoding processes may be performed using that software. Furthermore, if the mobile phone ex114 has a camera, video data captured by the camera may be transmitted. In this case, the video data is data that has been encoded and processed by the LSIex500 possessed by the mobile phone ex114.

[0174] Furthermore, the streaming server ex103 may be a plurality of servers or a plurality of computers that process, record, and distribute data in a distributed manner.

[0175] In this way, the content supply system ex100 allows the client to receive and play back encoded data. In this way, the content supply system ex100 allows the client to receive, decode, and play back information sent by a user in real time, so that even users without special rights or equipment can realize personal broadcasting.

[0176] In addition, as shown in FIG. 17, the content supply system ex100 is not limited to the example, and at least one of the video encoding device (image encoding device) or video decoding device (image decoding device) of each of the above-mentioned embodiments can be incorporated into a digital broadcasting system ex200. Specifically, in a broadcasting station ex201, multiplexed data in which music data and the like are multiplexed with video data is transmitted to a satellite ex202 or through radio waves. This video data is data encoded by the video encoding method described in each of the above-mentioned 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 played by a device such as a television (receiver) ex300 or a set-top box (STB) ex217 (i.e., functions as an image decoding device according to one aspect of the present invention).

[0177] The video decoding device or video encoding device shown in each of the above embodiments can also be implemented in a reader / recorder ex218 that reads and decodes multiplexed data recorded on a recording medium ex215 such as a DVD or BD, or encodes a video signal on the recording medium ex215, and may further multiplex the video signal with a music signal and write it in some cases. In this case, the reproduced video signal is displayed on a monitor ex219, and the video signal can be reproduced in another device or system by the recording medium ex215 on which the multiplexed data is recorded. Also, a video decoding device may be implemented in a set-top box ex217 connected to a cable ex203 for cable television or an antenna ex204 for satellite / terrestrial broadcasting, and this may be displayed on a monitor ex219 of the television. In this case, the video decoding device may be incorporated in the television, not in the set-top box.

[0178] 18 is a diagram showing a television (receiver) ex300 using the video decoding method and video encoding method described in each of the above embodiments. The television ex300 includes a tuner ex301 that acquires or outputs multiplexed data in which audio data is multiplexed onto video data via an antenna ex204 that receives the broadcasts or a cable ex203, a modulation / demodulation unit ex302 that demodulates the received multiplexed data or modulates the received multiplexed data to be transmitted externally, and a multiplexing / separation unit ex303 that separates the demodulated multiplexed data into video data and audio data or multiplexes the video data and audio data encoded by a signal processing unit ex306.

[0179] The television ex300 also has a signal processing unit ex306 having an audio signal processing unit ex304 and a video signal processing unit ex305 (functioning as an image encoding device or an image decoding device according to an embodiment of the present invention) that decode the audio data and the video data, respectively, or encode the respective information, and an output unit ex309 having a speaker ex307 that outputs the decoded audio signal, and a display unit ex308 such as a display that displays the decoded video signal. The television ex300 also has an interface unit ex317 having an operation input unit ex312 that accepts input of user operations, etc. The television ex300 also has a control unit ex310 that comprehensively controls each unit, and a power supply circuit unit ex311 that supplies power to each unit. The interface unit ex317 may have, in addition to the operation input unit ex312, a bridge ex313 connected to an external device such as a reader / recorder ex218, a slot unit ex314 for enabling a recording medium ex216 such as an SD card to be mounted, a driver ex315 for connecting to an external recording medium such as a hard disk, a modem ex316 for connecting to a telephone network, etc. The recording medium ex216 is a medium that allows information to be electrically recorded by a non-volatile / volatile semiconductor memory element that stores the information. The various units of the television ex300 are connected to each other via a synchronous bus.

[0180] First, a configuration in which the television ex300 decodes and plays back multiplexed data acquired from the outside via the antenna ex204 or the like will be described. The television ex300 receives user operations from a remote controller ex220 or the like, and based on the control of a control unit ex310 having a CPU or the like, separates the multiplexed data demodulated by the modulation / demodulation unit ex302 in the multiplexing / separation unit ex303. Furthermore, the television ex300 decodes the separated audio data in the audio signal processing unit ex304, and decodes the separated video data in the video signal processing unit ex305 using the decoding method described in each of the above embodiments. The decoded audio signal and video signal are output to the outside from the output unit ex309, respectively. When outputting, it is preferable to temporarily store these signals in buffers ex318, ex319, etc. so that the audio signal and the video signal are played back in synchronization. The television ex300 may also read out the multiplexed data not from broadcasting or the like, but from recording media ex215, ex216 such as magnetic / optical disks and SD cards. Next, a configuration in which the television ex300 encodes an audio signal and a video signal and transmits them to the outside or writes them to a recording medium or the like will be described. The television ex300 receives user operations from the remote controller ex220 or the like, and, based on the control of the control unit ex310, encodes the audio signal in the audio signal processing unit ex304 and encodes the video signal in the video signal processing unit ex305 using the encoding method described in each of the above embodiments. The encoded audio signal and video signal are multiplexed in the multiplexing / demultiplexing unit ex303 and output to the outside. When multiplexing, it is preferable to temporarily store these signals in buffers ex320, ex321, etc. so that the audio signal and the video signal are synchronized. Note that the buffers ex318, ex319, ex320, and ex321 may be provided in multiple units as shown in the figure, or one or more buffers may be shared. Furthermore, other than those shown in the figure, data may be stored in a buffer as a buffer to avoid system overflow and underflow, for example, between the modulation / demodulation unit ex302 and the multiplexing / demultiplexing unit ex303.

[0181] Furthermore, in addition to acquiring audio data and video data from broadcasts, recording media, etc., the television ex300 may be configured to accept AV input from a microphone or camera and perform encoding processing on the data acquired from them. Note that while the television ex300 has been described here as being configured to be capable of the above-mentioned encoding processing, multiplexing, and external output, it may be configured not to be able to perform these processes and only be capable of the above-mentioned reception, decoding processing, and external output.

[0182] In addition, when the reader / recorder ex218 reads or writes multiplexed data from a recording medium, the above-mentioned decoding or encoding process may be performed by either the television ex300 or the reader / recorder ex218, or the television ex300 and the reader / recorder ex218 may share the same role.

[0183] As an example, the configuration of the information reproducing / recording unit ex400 when reading or writing data from an optical disk is shown in FIG. 19. The information reproducing / recording unit ex400 includes elements ex401, ex402, ex403, ex404, ex405, ex406, and ex407, which will be described below. The optical head ex401 irradiates a laser spot onto the recording surface of the recording medium ex215, which is an optical disk, to write information, and detects the reflected light from the recording surface of the recording medium ex215 to read the information. The modulation recording unit ex402 electrically drives the semiconductor laser built into the optical head ex401 and modulates the laser light according to the recording data. The reproduction demodulation unit ex403 amplifies a reproduction signal obtained by electrically detecting the reflected light from the recording surface by a photodetector built into the optical head ex401, separates and demodulates the signal components recorded on the recording medium ex215, and reproduces the necessary information. The buffer ex404 temporarily holds information to be recorded on the recording medium ex215 and information reproduced from the recording medium ex215. The disk motor ex405 rotates the recording medium ex215. The servo control unit ex406 controls the rotational drive of the disk motor ex405 while moving the optical head ex401 to a predetermined information track, and performs a laser spot tracking process. The system control unit ex407 controls the entire information reproduction / recording unit ex400. The above read and write processes are realized by the system control unit ex407 using various information held in the buffer ex404, generating and adding new information as necessary, and recording and reproducing information through the optical head ex401 while cooperating with the modulation recording unit ex402, the reproduction demodulation unit ex403, and the servo control unit ex406. The system control unit ex407 is composed of, for example, a microprocessor, and performs these processes by executing a read and write program.

[0184] In the above, the optical head ex401 has been described as irradiating a laser spot, but it may be configured to perform higher density recording using near-field light.

[0185] FIG. 20 shows a schematic diagram of a recording medium ex215, which is an optical disk. A guide groove (groove) is formed in a spiral shape on the recording surface of the recording medium ex215, and address information indicating an absolute position on the disk is recorded in advance on the information track ex230 by changing the shape of the groove. This address information includes information for identifying the position of a recording block ex231, which is a unit for recording data, and a recording block can be identified by reproducing the information track ex230 and reading the address information in a recording and reproducing device. The recording medium ex215 also includes a data recording area ex233, an inner peripheral area ex232, and an outer peripheral area ex234. The area used for recording user data is the data recording area ex233, and the inner peripheral area ex232 and the outer peripheral area ex234, which are located on the inner or outer periphery of the data recording area ex233, are used for specific purposes other than recording user data. The information reproducing / recording unit ex400 reads and writes encoded audio data, video data, or multiplexed data obtained by multiplexing these data, to the data recording area ex233 of such recording medium ex215.

[0186] In the above, the description has been given taking as examples optical discs such as single-layer DVDs and BDs, but the present invention is not limited to these and may be an optical disc with a multi-layer structure that allows recording on other surfaces as well. Also, the present invention may be an optical disc with a structure that allows multi-dimensional recording / playback, such as recording information on the same location on the disc using light of various different wavelengths or recording different layers of information from various angles.

[0187] In the digital broadcasting system ex200, a car ex210 having an antenna ex205 can receive data from a satellite ex202 or the like, and can play back moving images on a display device such as a car navigation system ex211 of the car ex210. Note that the car navigation system ex211 can be configured, for example, by adding a GPS receiver to the configuration shown in Fig. 18, and the same can be considered for a computer ex111, a mobile phone ex114, and the like.

[0188] 21A is a diagram showing a mobile phone ex114 using the video decoding method and the video encoding method described in the above embodiment. The mobile phone ex114 includes an antenna ex350 for transmitting and receiving radio waves to and from the base station ex110, a camera unit ex365 capable of taking videos and still images, and a display unit ex358 such as a liquid crystal display for displaying data obtained by decrypting the video captured by the camera unit ex365 and the video received by the antenna ex350. The mobile phone ex114 further includes a main body unit having an operation key unit ex366, an audio output unit ex357 such as a speaker for outputting audio, an audio input unit ex356 such as a microphone for inputting audio, a memory unit ex367 for storing the captured video, still images, recorded audio, or the encoded or decoded data of the received video, still images, email, etc., or a slot unit ex364 which is an interface unit with a recording medium for similarly storing data.

[0189] Furthermore, a configuration example of the mobile phone ex114 will be described with reference to Fig. 21B. In the mobile phone ex114, a power circuit unit ex361, an operation input control unit ex362, a video signal processing unit ex355, a camera interface unit ex363, an LCD (Liquid Crystal Display) control unit ex359, a modulation / demodulation unit ex352, a multiplexing / separation unit ex353, an audio signal processing unit ex354, a slot unit ex364, and a memory unit ex367 are connected to each other via a bus ex370, in relation to a main control unit ex360 that comprehensively controls each unit of a main body unit having a display unit ex358 and an operation key unit ex366.

[0190] When the end call and power key is turned on by the user's operation, the power supply circuit unit ex361 starts up the mobile phone ex114 into an operable state by supplying power to each unit from the battery pack.

[0191] Based on the control of a main control unit ex360 having a CPU, ROM, RAM, etc., the mobile phone ex114 converts a voice signal collected by a voice input unit ex356 in a voice call mode into a digital voice signal in a voice signal processing unit ex354, performs spectrum spreading processing on this in a modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing on this in a transmission / reception unit ex351, and transmits it via an antenna ex350. Also, the mobile phone ex114 amplifies reception data received via the antenna ex350 in a voice call mode, performs frequency conversion processing and analog-to-digital conversion processing on this, performs spectrum despreading processing on this in the modulation / demodulation unit ex352, converts it into an analog voice signal in the voice signal processing unit ex354, and outputs this from a voice output unit ex357.

[0192] Furthermore, when sending an e-mail in the data communication mode, the text data of the e-mail input by operating the operation key unit ex366 of the main unit is sent to the main control unit ex360 via the operation input control unit ex362. The main control unit ex360 performs spectrum spreading processing on the text data in the modulation / demodulation unit ex352, performs digital-to-analog conversion processing and frequency conversion processing in the transmission / reception unit ex351, and then transmits the data to the base station ex110 via the antenna ex350. When receiving an e-mail, the received data is processed in roughly the reverse manner, and is output to the display unit ex358.

[0193] When transmitting video, still images, or video and audio in the data communication mode, the video signal processing unit ex355 compresses and encodes the video signal supplied from the camera unit ex365 using the video encoding method described in each of the above embodiments (i.e., functions as an image encoding device according to one aspect of the present invention), and sends the encoded video data to the multiplexing / separation unit ex353. Also, the audio signal processing unit ex354 encodes an audio signal collected by the audio input unit ex356 while the camera unit ex365 is capturing video, still images, etc., and sends the encoded audio data to the multiplexing / separation unit ex353.

[0194] The multiplexing / separation unit ex353 multiplexes the encoded video data supplied from the video signal processing unit ex355 and the encoded audio data supplied from the audio signal processing unit ex354 in a predetermined manner, and the resulting multiplexed data is subjected to spectrum spreading processing in a modulation / demodulation unit (modulation / demodulation circuit unit) ex352, and then transmitted via an antenna ex350 after undergoing digital-to-analog conversion processing and frequency conversion processing in a transmission / reception unit ex351.

[0195] When receiving data of a video file linked to a homepage or the like in the data communication mode, or when receiving an e-mail with video and / or audio attached, in order to decode the multiplexed data received via the antenna ex350, the multiplexing / separation unit ex353 separates the multiplexed data into a bit stream of video data and a bit stream of audio data, and supplies the encoded video data to the video signal processing unit ex355 via the synchronous bus ex370, and supplies the encoded audio data to the audio signal processing unit ex354. The video signal processing unit ex355 decodes the video signal by decoding using a video decoding method corresponding to the video encoding method shown in each of the above embodiments (i.e., functions as an image decoding device according to one aspect of the present invention), and displays, for example, video and still images included in the video file linked to the homepage on the display unit ex358 via the LCD control unit ex359. The audio signal processing unit ex354 also decodes the audio signal, and audio is output from the audio output unit ex357.

[0196] Also, like the television ex300, the terminals such as the mobile phone ex114 may be implemented in three different ways: a transmitting terminal having only an encoder, a transmitting terminal having only a decoder, and a receiving terminal having only a decoder, in addition to a transmitting terminal having both an encoder and a decoder. Furthermore, in the digital broadcasting system ex200, multiplexed data in which music data and the like are multiplexed with video data is received and transmitted, but the data may be multiplexed with text data related to the video in addition to the audio data, or may be video data itself instead of multiplexed data.

[0197] In this way, it is possible to use the video encoding method or video decoding method shown in each of the above embodiments in any of the above-mentioned devices and systems, and by doing so, it is possible to obtain the effects described in each of the above embodiments.

[0198] Furthermore, the present invention is not limited to the above-described embodiment, and various modifications and alterations are possible without departing from the scope of the present invention.

[0199] (Embodiment 3) It is also possible to generate video data by switching between the video coding method or device shown in each of the above embodiments and a video coding method or device conforming to a different standard, such as MPEG-2, MPEG4-AVC, or VC-1, as necessary.

[0200] Here, when multiple pieces of video data conforming to different standards are generated, it is necessary to select a decoding method corresponding to each standard when decoding. However, since it is not possible to identify which standard the video data to be decoded conforms to, a problem arises in that it is not possible to select an appropriate decoding method.

[0201] To solve this problem, multiplexed data, which is video data multiplexed with audio data, contains identification information indicating which standard the video data complies with. A specific configuration of multiplexed data including video data generated by the video coding method or device shown in each of the above embodiments will be described below. The multiplexed data is a digital stream in the MPEG-2 transport stream format.

[0202] FIG. 22 is a diagram showing the structure of multiplexed data. As shown in FIG. 22, the multiplexed data is obtained by multiplexing one or more of a video stream, an audio stream, a presentation graphics stream (PG), and an interactive graphics stream. The video stream indicates the main video and the sub-video of a movie, the audio stream (IG) indicates the main audio part of the movie and the sub-audio mixed with the main audio, and the presentation graphics stream indicates the subtitles of the movie. Here, the main video indicates a normal video displayed on a screen, and the sub-video indicates a video displayed on a small screen within the main video. The interactive graphics stream indicates an interactive screen created by arranging GUI components on a screen. The video stream is encoded by the moving image encoding method or device shown in each of the above embodiments, or a moving image encoding method or device conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. The audio stream is encoded by a method such as Dolby AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, or Linear PCM.

[0203] Each stream included in the multiplexed data is identified by a PID. For example, 0x1011 is assigned to the video stream used for the movie image, 0x1100 to 0x111F to the audio stream, 0x1200 to 0x121F to the presentation graphics stream, 0x1400 to 0x141F to the interactive graphics stream, 0x1B00 to 0x1B1F to the video stream used for the movie secondary video, and 0x1A00 to 0x1A1F to the audio stream used for the secondary audio to be mixed with the main audio.

[0204] 23 is a diagram showing a schematic diagram of how multiplexed data is multiplexed. First, a video stream ex235 consisting of a plurality of video frames and an audio stream ex238 consisting of a plurality of audio frames are converted into PES packet sequences ex236 and ex239, respectively, and then converted into TS packets ex237 and ex240. Similarly, data of a presentation graphics stream ex241 and interactive graphics ex244 are converted into PES packet sequences ex242 and ex245, respectively, and then further converted into TS packets ex243 and ex246. The multiplexed data ex247 is constructed by multiplexing these TS packets into one stream.

[0205] Fig. 24 shows in more detail how a video stream is stored in a PES packet sequence. The first row in Fig. 24 shows a video frame sequence of a video stream. The second row shows a PES packet sequence. As indicated by arrows yy1, yy2, yy3, and yy4 in Fig. 24, I-pictures, B-pictures, and P-pictures, which are multiple Video Presentation Units in a video stream, are divided into individual pictures and stored in the payload of a PES packet. Each PES packet has a PES header, and the PES header stores a Presentation Time-Stamp (PTS) that is the display time of the picture and a Decoding Time-Stamp (DTS) that is the decoding time of the picture.

[0206] Fig. 25 shows the format of the TS packet that is finally written to the multiplexed data. The TS packet is a fixed-length packet of 188 bytes consisting of a 4-byte TS header having information such as a PID that identifies the stream and a 184-byte TS payload that stores the data, and the above PES packet is divided and stored in the TS payload. In the case of BD-ROM, a 4-byte TP_Extra_Header is added to the TS packet, forming a 192-byte source packet that is written to the multiplexed data. Information such as ATS (Arrival_Time_Stamp) is written in the TP_Extra_Header. The ATS indicates the start time of transfer of the TS packet to the PID filter of the decoder. In the multiplexed data, source packets are lined up as shown in the lower part of Fig. 25, and the number that increments from the beginning of the multiplexed data is called SPN (Source Packet Number).

[0207] In addition to the various streams such as video, audio, and subtitles, the TS packets contained in the multiplexed data also contain a PAT (Program Association Table), PMT (Program Map Table), and PCR (Program Clock Reference). The PAT indicates the PID of the PMT used in the multiplexed data, and the PID of the PAT itself is registered as 0. The PMT has the PID of each stream such as video, audio, and subtitles contained in the multiplexed data, and attribute information of the stream corresponding to each PID, as well as various descriptors related to the multiplexed data. The descriptors include copy control information that indicates whether copying of the multiplexed data is permitted or not. The PCR has information on the STC time corresponding to the ATS at which the PCR packet is transferred to the decoder, in order to synchronize the ATC (Arrival Time Clock), which is the time axis of the ATS, with the STC (System Time Clock), which is the time axis of the PTS and DTS.

[0208] FIG. 26 is a diagram explaining the data structure of a PMT in detail. At the beginning of a PMT, a PMT header is placed, which describes the length of the data contained in the PMT, etc. After that, multiple descriptors related to the multiplexed data are placed. The above-mentioned copy control information, etc. are written as descriptors. After the descriptors, multiple pieces of stream information related to each stream included in the multiplexed data are placed. The stream information is made up of stream descriptors that describe the stream type to identify the compression codec of the stream, the stream PID, and stream attribute information (frame rate, aspect ratio, etc.). There are as many stream descriptors as there are streams in the multiplexed data.

[0209] When recording on a recording medium, the multiplexed data is recorded together with a multiplexed data information file.

[0210] The multiplexed data information file is management information for multiplexed data as shown in FIG. 27, has one-to-one correspondence with the multiplexed data, and is made up of multiplexed data information, stream attribute information, and an entry map.

[0211] As shown in Fig. 27, the multiplexed data information consists of a system rate, a playback start time, and a playback end time. The system rate indicates the maximum transfer rate of the multiplexed data to the PID filter of the system target decoder, which will be described later. The interval of the ATS contained in the multiplexed data is set to be equal to or less than the system rate. The playback start time is the PTS of the first video frame of the multiplexed data, and the playback end time is set to the PTS of the last video frame of the multiplexed data plus the playback interval of one frame.

[0212] As shown in Fig. 28, the stream attribute information is registered for each PID for each stream included in the multiplexed data. The attribute information has different information for each video stream, audio stream, presentation graphics stream, and interactive graphics stream. The video stream attribute information has information such as what compression codec was used to compress the video stream, the resolution of each picture data constituting the video stream, the aspect ratio, and the frame rate. The audio stream attribute information has information such as what compression codec was used to compress the audio stream, the number of channels included in the audio stream, which language it corresponds to, and the sampling frequency. This information is used for initializing the decoder before the player starts playing.

[0213] In this embodiment, the stream type included in the PMT of the multiplexed data is used. Also, when multiplexed data is recorded on the recording medium, video stream attribute information included in the multiplexed data information is used. Specifically, in the video coding method or device shown in each of the above embodiments, a step or means is provided for setting unique information indicating that the video data is generated by the video coding method or device shown in each of the above embodiments to the stream type included in the PMT or the video stream attribute information. This configuration makes it possible to distinguish between video data generated by the video coding method or device shown in each of the above embodiments and video data that complies with other standards.

[0214] FIG. 29 shows steps of the video decoding method according to the present embodiment. In step exS100, the stream type included in the PMT or the video stream attribute information included in the multiplexed data information is obtained from the multiplexed data. Next, in step exS101, it is determined whether the stream type or the video stream attribute information indicates that the multiplexed data is generated by the video coding method or device shown in each of the above embodiments. If it is determined that the stream type or the video stream attribute information is generated by the video coding method or device shown in each of the above embodiments, in step exS102, decoding is performed by the video decoding method shown in each of the above embodiments. In addition, if the stream type or the video stream attribute information indicates that the data complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS103, decoding is performed by the video decoding method that complies with the conventional standard.

[0215] In this way, by setting a new unique value in the stream type or video stream attribute information, it is possible to determine whether the video decoding method or device shown in each of the above embodiments is capable of decoding the data when decoding. Therefore, even when multiplexed data conforming to a different standard is input, an appropriate decoding method or device can be selected, making it possible to decode the data without causing an error. In addition, the video encoding method or device, or the video decoding method or device shown in the present embodiment can be used in any of the above-mentioned devices and systems.

[0216] (Embodiment 4) The video encoding method and device, and the video decoding method and device shown in each of the above embodiments are typically realized by an LSI, which is an integrated circuit. As an example, FIG. 30 shows the configuration of a single-chip LSIex500. The LSIex500 includes elements ex501, ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509, which will be described below, and each element is connected via a bus ex510. When the power supply is on, the power supply circuit unit ex505 supplies power to each unit to start them up in an operable state.

[0217] For example, when performing encoding processing, the LSIex500 inputs AV signals from the microphone ex117, the camera ex113, etc. through the AV I / Oex509 based on the control of a control unit ex501 having a CPUex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc. The input AV signals are temporarily stored in an external memory ex511 such as an SDRAM. Based on the control of the control unit ex501, the stored data is divided into a plurality of times as appropriate according to the processing amount and processing speed, and sent to the signal processing unit ex507, where the audio signal is encoded and / or the video signal is encoded. Here, the encoding processing of the video signal is the encoding processing described in each of the above embodiments. The signal processing unit ex507 further performs processing such as multiplexing the encoded audio data and the encoded video data as the case may be, and outputs the data to the outside from the stream I / Oex506. This output multiplexed data is transmitted to the base station ex107, or written to a recording medium ex215. In addition, when multiplexing, it is advisable to temporarily store the data in a buffer ex508 to ensure synchronization.

[0218] In the above, the memory ex511 is described as an external configuration of the LSIex500, but it may be included inside the LSIex500. The buffer ex508 is not limited to one, and may include multiple buffers. Furthermore, the LSIex500 may be formed as a single chip or multiple chips.

[0219] In the above, the control unit ex501 has a CPU ex502, a memory controller ex503, a stream controller ex504, a drive frequency control unit ex512, etc., but the configuration of the control unit ex501 is not limited to this configuration. For example, the signal processing unit ex507 may further include a CPU. By providing a CPU inside the signal processing unit ex507, it is possible to further improve the processing speed. As another example, the CPU ex502 may include the signal processing unit ex507, or a part of the signal processing unit ex507, such as an audio signal processing unit. In such a case, the control unit ex501 is configured to include the CPU ex502 having the signal processing unit ex507 or a part thereof.

[0220] Although we refer to it as LSI here, it may also be called IC, system LSI, super LSI, or ultra LSI depending on the level of integration.

[0221] The method of integration is not limited to LSI, but may be realized by a dedicated circuit or a general-purpose processor. It is also possible to use a field programmable gate array (FPGA) that can be programmed after LSI manufacturing, or a reconfigurable processor that can reconfigure the connections and settings of circuit cells inside the LSI.

[0222] Furthermore, if a new integrated circuit technology that can replace LSI appears due to the progress of semiconductor technology or a derivative technology, it may be possible to integrate the functional blocks using that technology. The application of biotechnology is also a possibility.

[0223] (Embodiment 5) When decoding video data generated by the video encoding method or device shown in each of the above embodiments, the amount of processing is expected to increase compared to when decoding video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. Therefore, in the LSIex500, it is necessary to set a driving frequency higher than the driving frequency of the CPUex502 when decoding video data conforming to conventional standards. However, when the driving frequency is increased, a problem occurs in that power consumption increases.

[0224] In order to solve this problem, a video decoding device such as a television ex300 or an LSI ex500 is configured to identify which standard the video data complies with and switch the driving frequency according to the standard. FIG. 31 shows a configuration ex800 in this embodiment. If the video data is generated by the video encoding method or device shown in each of the above embodiments, the driving frequency switching unit ex803 sets the driving frequency high. Then, it instructs the decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments to decode the video data. On the other hand, if the video data is video data that complies with a conventional standard, it sets the driving frequency low compared to when the video data is generated by the video encoding method or device shown in each of the above embodiments. Then, it instructs the decoding processing unit ex802 that complies with the conventional standard to decode the video data.

[0225] More specifically, the drive frequency switching unit ex803 is composed of the CPU ex502 and the drive frequency control unit ex512 in FIG. 30. The decoding processing unit ex801 that executes the video decoding method shown in each of the above embodiments and the decoding processing unit ex802 that complies with the conventional standard correspond to the signal processing unit ex507 in FIG. 30. The CPU ex502 identifies which standard the video data complies with. Then, based on the signal from the CPU ex502, the drive frequency control unit ex512 sets the drive frequency. Also, based on the signal from the CPU ex502, the signal processing unit ex507 decodes the video data. Here, for example, the identification information described in the third embodiment can be used to identify the video data. The identification information is not limited to that described in the third embodiment, and may be any information that can identify which standard the video data complies with. For example, if it is possible to identify which standard the video data complies with based on an external signal that identifies whether the video data is used for a television or a disc, the identification may be based on such an external signal. Also, the selection of the drive frequency in the CPUex502 may be based on a lookup table that associates the video data standard with the drive frequency, as shown in Fig. 33. The lookup table is stored in the bufferex508 or the internal memory of the LSI, and the CPUex502 can select the drive frequency by referring to this lookup table.

[0226] FIG. 32 shows steps for carrying out the method of the present embodiment. First, in step exS200, the signal processing unit ex507 acquires identification information from the multiplexed data. Next, in step exS201, the CPU ex502 identifies whether the video data is generated by the encoding method or device shown in each of the above embodiments based on the identification information. If the video data is generated by the encoding method or device shown in each of the above embodiments, in step exS202, the CPU ex502 sends a signal to set the driving frequency to a high frequency to the driving frequency control unit ex512. Then, the driving frequency is set to a high frequency in the driving frequency control unit ex512. On the other hand, if the video data indicates that it is video data that complies with conventional standards such as MPEG-2, MPEG4-AVC, and VC-1, in step exS203, the CPU ex502 sends a signal to set the driving frequency to a low frequency to the driving frequency control unit ex512. Then, in the driving frequency control unit ex512, the driving frequency is set to a low frequency compared to when the video data is generated by the encoding method or device shown in each of the above embodiments.

[0227] Furthermore, by changing the voltage applied to the LSIex500 or a device including the LSIex500 in conjunction with switching the drive frequency, it is possible to further improve the power saving effect. For example, when the drive frequency is set to a low value, it is conceivable to set the voltage applied to the LSIex500 or a device including the LSIex500 to a lower value compared to when the drive frequency is set to a high value.

[0228] In addition, the method of setting the drive frequency is not limited to the above-mentioned setting method, and may be such that the drive frequency is set high when the amount of processing required for decoding is large, and the drive frequency is set low when the amount of processing required for decoding is small. For example, when the amount of processing required for decoding video data conforming to the MPEG4-AVC standard is larger than the amount of processing required for decoding video data generated by the video encoding method or device shown in each of the above-mentioned embodiments, the drive frequency may be set in the opposite manner to the above-mentioned setting method.

[0229] Furthermore, the method of setting the drive frequency is not limited to the configuration of lowering the drive frequency. For example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set high, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the voltage to be applied to the LSIex500 or the device including the LSIex500 is set low. As another example, when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is not stopped, and when the identification information indicates that the video data is compliant with conventional standards such as MPEG-2, MPEG4-AVC, VC-1, the drive of the CPUex502 is temporarily stopped because there is a margin for processing. Even when the identification information indicates that the video data is generated by the video encoding method or device shown in each of the above embodiments, the drive of the CPUex502 is temporarily stopped if there is a margin for processing. In this case, it is conceivable to set the stop time shorter than when the video data indicates that it is video data conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1.

[0230] In this way, by switching the drive frequency according to the standard to which the video data conforms, it is possible to achieve power saving. Also, when the LSIex500 or a device including the LSIex500 is driven by a battery, the power saving can extend the battery life.

[0231] (Embodiment 6) In the above-mentioned devices and systems, such as televisions and mobile phones, multiple video data conforming to different standards may be input. In order to be able to decode multiple video data conforming to different standards, the signal processing unit ex507 of the LSIex500 must support multiple standards. However, if a signal processing unit ex507 corresponding to each standard is used individually, the circuit size of the LSIex500 will increase, and the cost will also increase.

[0232] In order to solve this problem, a configuration is adopted in which a decoding processing unit for executing the video decoding method shown in each of the above embodiments is partially shared with a decoding processing unit conforming to conventional standards such as MPEG-2, MPEG4-AVC, and VC-1. An example of this configuration is shown in ex900 of FIG. 34A. For example, the video decoding method shown in each of the above embodiments and the video decoding method conforming to the MPEG4-AVC standard share some of the processing contents in processes such as entropy coding, inverse quantization, deblocking filter, and motion compensation. For the common processing contents, a decoding processing unit ex902 conforming to the MPEG4-AVC standard is shared, and for other processing contents specific to one aspect of the present invention that do not conform to the MPEG4-AVC standard, a dedicated decoding processing unit ex901 is used. Regarding the sharing of the decoding processing unit, for the common processing contents, a decoding processing unit for executing the video decoding method shown in each of the above embodiments is shared, and for processing contents specific to the MPEG4-AVC standard, a dedicated decoding processing unit is used.

[0233] Another example of partially sharing the process is shown in ex1000 in FIG. 34B. In this example, a dedicated decoding processing unit ex1001 corresponding to the process content specific to one aspect of the present invention, a dedicated decoding processing unit ex1002 corresponding to the process content specific to another conventional standard, and a shared decoding processing unit ex1003 corresponding to the process content common to the video decoding method according to one aspect of the present invention and the video decoding method of another conventional standard are used. Here, the dedicated decoding processing units ex1001 and ex1002 are not necessarily specialized for the process content specific to one aspect of the present invention or another conventional standard, and may be capable of executing other general-purpose processes. In addition, the configuration of this embodiment can also be implemented in LSIex500.

[0234] In this way, by sharing a decoding processing unit for processing content common to a video decoding method according to one embodiment of the present invention and a video decoding method according to a conventional standard, it is possible to reduce the circuit size of the LSI and reduce costs.

[0235] Although the image encoding method and image decoding method according to one or more aspects have been described based on the embodiments, the present invention is not limited to these embodiments. As long as they do not deviate from the spirit of the present invention, various modifications conceived by those skilled in the art to the present embodiments and forms constructed by combining components in different embodiments may also be included within the scope of one or more aspects. [Industrial Applicability]

[0236] The present invention can be applied, for example, to image encoding devices and image decoding devices, and more specifically, can be used in 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]

[0237] 10,100 Image encoding device 20,200 Image decoding device 21 Signal interval setting section 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. 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 temporal IDs defined in a video encoding standard such that each of the plurality of first layer pictures is associated with a minimum temporal ID and each of the plurality of second layer pictures is associated with a temporal ID greater than the minimum temporal ID; (i) regardless of whether all coded pictures are decoded by a decoding device or whether only a coded picture associated with the smallest temporal ID is decoded by the decoding device, first decoding timings of each of the plurality of first layer pictures are spaced at regular intervals; (ii) all of the plurality of pictures included in each random access unit are decoded without referring to any picture in other random access units, all of the plurality of pictures do not include a picture preceding a first picture in the display order, and the first picture is arranged at the beginning of the decoding order in the random access unit; a determination unit that determines a decoding timing for each of the plurality of pictures arranged in the display order such that an encoding unit that encodes, according to the decoding timing, the pictures arranged in an encoding order different from the display order corresponding to the decoding timing so as to generate a plurality of encoded pictures including a plurality of encoded first layer pictures and a plurality of encoded second layer pictures; a generating 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; An image encoding device comprising:

2. An image decoding device, A first acquisition unit; A second acquisition unit; A decoding unit, The first acquisition unit is Obtaining a plurality of encoded pictures from the encoded stream, the encoded pictures including a plurality of first layer pictures and a plurality of second layer pictures; The plurality of coded pictures include associated with a temporal ID defined in a video encoding standard such that each of the first layer pictures is associated with a minimum temporal ID and each of the second layer pictures is associated with a temporal ID greater than the minimum temporal ID; The second acquisition unit is obtaining decoding timings of the plurality of coded pictures from the coded stream; The decoding timing of the plurality of coded pictures is (i) regardless of whether all coded pictures are decoded or only the coded picture associated with the smallest temporal ID is decoded, the first decoding timings of each of the plurality of first layer pictures are spaced at regular intervals; (ii) all pictures included in each random access unit are decoded without reference to any pictures in other random access units, all of the pictures do not include a picture that precedes a first picture in display order, and the first picture is arranged at the beginning of the random access unit in decoding order; It has been determined that the above conditions are met. The decoding unit is decoding, in accordance with the decoding timing, the first layer pictures and the second layer pictures arranged in the decoding order, or only the first layer pictures arranged in the decoding order; the decoding order is different from the display order of the plurality of coded pictures. An image decoding device comprising:

Citation Information

Patent Citations

  • Method and apparatus of video coding using picture structure with low-delay hierarchical b group

    JP2012124896A

  • Transmitter, transmission method, receiver and reception method

    JP2015046726A

  • Coding apparatus, coding method, transmitting apparatus, and receiving apparatus

    JP2015065530A