Signal Playback Device
A decode control section 103 sets allocated times required for decoding a plurality of coded streams in processing units based on input stream information on the plurality of coded streams. A decode section 101 decodes the plurality of coded streams while switching the input between the plurality of coded streams based on the allocated times.
1 . A signal playback device for receiving N (N is a natural number) independent coded streams and decoding the N coded streams in a time-division manner while switching the N coded streams to each other, the device comprising:
stream buffers for storing the N coded streams respectively;
decode means for decoding the coded streams in predetermined processing units and outputting resultant decoded data;
video output means having frame buffers for storing N pieces of decoded data of the N coded streams respectively;
a first switch provided between the stream buffers and the decode means;
a second switch provided between the decode means and the video output means; and
decode control means for receiving input stream information on the N coded streams and outputting a switching signal for controlling switch operations of the first and second switches based on the received input stream information,
wherein the first switch is configured to selectively output the coded streams stored in the stream buffers based on the switching signal received,
the second switch is configured to switch output destinations of the decoded data output from the decode means to each other based on the switching signal received so that the decoded data can be stored in the corresponding frame buffers, and
the decode control means is configured to receive input stream information on the N coded streams and while setting allocated times required for decoding the coded streams in processing units based on the input stream information, output the switching signal to the first and second switches once the allocated time has passed.
2 . The signal playback device of claim 1 , wherein the input stream information includes at least one among resolution information of each of the N coded streams, playback mode information indicating special playback including skipping and freezing, and frame rate information defining interlaced and progressive display rates.
3 . The signal playback device of claim 1 , wherein the decode control means further has a function of, if decoding of a processing unit of any of the coded streams is completed before the lapse of the allocated time, outputting the switching signal immediately after the completion of the decoding.
4 . The signal playback device of claim 1 , wherein the decode control means further has a function of, if a processing unit of any of the coded streams has not been completed within the allocated time, outputting the switching signal after decoding of a processing sub-unit constituting the processing unit, of which decoding is underway at the expiration of the allocated time, is completed and decoding information on the processing sub-unit is saved.
5 . The signal playback device of claim 4 , wherein the decode means is configured so that
if decoding of a processing unit of an input coded stream has been completed within the allocated time in the immediately-preceding decoding, the decode means starts decoding of the next processing unit, and
if decoding of a processing unit of an input coded stream has not been completed within the allocated time in the immediately-preceding decoding, the decode means restarts the decoding of the processing unit of which decoding has not been completed based on the decoding information saved in the immediately-preceding decoding.
6 . The signal playback device of claim 4 , wherein the processing sub-unit is a slice composed of a plurality of macro-blocks as the minimum units of coding, and
the decoding information is picture information and slice information.
7 . The signal playback device of claim 4 , wherein the processing sub-unit is a macro-block as the minimum unit of coding, and
the decoding information is picture information, slice information and macro-block information.
8 . The signal playback device of claim 1 , wherein the decode control means further has a function of, if decoding of a processing unit of any of the coded streams has not been completed within the allocated time, outputting the switching signal after decoding information on a processing sub-unit constituting the processing unit, of which decoding has been completed at the expiration of the allocated time, is saved.
9 . The signal playback device of claim 8 , wherein the decode means is configured so that
if decoding of a processing unit of an input coded stream has been completed within the allocated time in the immediately-preceding decoding, the decode means starts decoding of the next processing unit, and
if decoding of a processing unit of an input coded stream has not been completed within the allocated time in the immediately-preceding decoding, the decode means restarts the decoding of the processing unit of which decoding has not been completed based on the decoding information saved in the immediately-preceding decoding.
10 . The signal playback device of claim 8 , wherein the processing sub-unit is a slice composed of a plurality of macro-blocks as the minimum units of coding, and
the decoding information is picture information and slice information.
11 . The signal playback device of claim 8 , wherein the processing sub-unit is a macro-block as the minimum unit of coding, and
the decoding information is picture information, slice information and macro-block information.
12 . The signal playback device of claim 1 , wherein the processing unit is composed of M (M is a natural number) pictures.
13 . The signal playback device of claim 1 , wherein the N coded streams are hierarchically coded streams.