WO2010122620A1 - 画像再生装置及び画像再生方法 - Google Patents

画像再生装置及び画像再生方法 Download PDF

Info

Publication number
WO2010122620A1
WO2010122620A1 PCT/JP2009/006669 JP2009006669W WO2010122620A1 WO 2010122620 A1 WO2010122620 A1 WO 2010122620A1 JP 2009006669 W JP2009006669 W JP 2009006669W WO 2010122620 A1 WO2010122620 A1 WO 2010122620A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
data
image
error
compressed data
Prior art date
Application number
PCT/JP2009/006669
Other languages
English (en)
French (fr)
Inventor
荒川賢治
Original Assignee
パナソニック株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by パナソニック株式会社 filed Critical パナソニック株式会社
Publication of WO2010122620A1 publication Critical patent/WO2010122620A1/ja
Priority to US13/274,578 priority Critical patent/US8666187B2/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/89Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder
    • H04N19/895Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder in combination with error concealment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/78Television signal recording using magnetic recording
    • H04N5/781Television signal recording using magnetic recording on disks or drums
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/79Processing of colour television signals in connection with recording
    • H04N9/80Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
    • H04N9/804Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components
    • H04N9/8042Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback involving pulse code modulation of the colour picture signal components involving data reduction

Definitions

  • the present invention relates to an image reproducing device and an image reproducing method, and more particularly, to an image reproducing device and an image reproducing method for reading compressed image data from a recording medium and expanding the read image data.
  • Patent Document 1 discloses a technique for partially reading and expanding a necessary part of code data (hereinafter also referred to as compressed data) recorded on a recording medium.
  • an RST marker is detected from compressed data including a restart marker code (hereinafter also referred to as an RST marker), and the compressed data is expanded using the position of the detected RST marker as an expansion start position. To do. Thereby, in the technique described in Patent Document 1, only a part of the compressed data can be expanded, so that necessary data can be processed at a higher speed.
  • a restart marker code hereinafter also referred to as an RST marker
  • the RST marker is a code indicating a position for returning the expansion process when an error occurs in the expansion process.
  • a technique for performing decompression restoration processing using an RST marker is disclosed in Patent Document 2, for example.
  • errors include a code error that occurs when the code data recorded on the recording medium itself is incorrect, and a transfer error that occurs when the code data is read from the recording medium.
  • the compressed data is simply decompressed from the next RST marker and the decompressed data is output.
  • an object of the present invention is to provide an image reproducing apparatus and an image reproducing method capable of flexibly controlling the processing of the decompressed data obtained when an error occurs and dealing with the generated error.
  • an image reproducing apparatus is an image reproducing apparatus that decompresses and outputs compressed data, which is compressed image data, and outputs the compressed data from a recording medium in a predetermined processing unit.
  • a reproduction unit that reads out unit compressed data for each time, and a decompression unit that generates unit decompression data that is image data for each of the decompressed processing units by decompressing the unit compressed data read by the reproduction unit.
  • An output unit that outputs decompressed data including unit decompressed data generated by the decompressing unit, and an error management unit that detects an error generated by at least one of the reproducing unit and the decompressing unit for each unit compressed data;
  • a controller that determines whether or not to output the decompressed data when the error is detected, and the decompression data is detected when the error is detected.
  • Output by the control unit the control unit complements unit expanded data corresponding to the unit compressed data in which the error is detected with predetermined supplemental image data, and the output unit The decompressed data including the complementary image data is output.
  • the user can confirm the image data even a little by outputting the image data when it is determined to output the image data. Therefore, it is possible to confirm what kind of image data is to be reproduced as compared with the case where no image is displayed. Conversely, if it is determined that no image data is output when an error occurs, the image data is not output, so that the user does not need to check incomplete image data due to the occurrence of the error. Only normal image data can be confirmed. In this way, by adaptively changing the processing when an error occurs, the processing of the image data when an error is detected can be flexibly controlled and the generated error can be dealt with.
  • the image reproduction device further includes an input unit that acquires a first user instruction indicating whether or not to output the decompressed data when the error is detected, and the control unit includes the first user. According to the instruction, it may be determined whether or not to output the decompressed data when the error is detected.
  • the image reproduction apparatus further includes a data buffer management unit that has at least one buffer and stores unit compressed data read by the reproduction unit in the buffer, and the reproduction unit includes the recording medium
  • the unit compressed data read from is transferred to the data buffer management unit, and the decompression unit reads the unit compressed data stored in the buffer and decompresses the read unit compressed data to generate the unit decompressed data.
  • the error management unit reads from the buffer by the transfer error management unit that detects a transfer error that occurs when the unit compressed data is transferred from the recording medium to the data buffer management unit, and the decompression unit.
  • a code error management unit that detects a code error of the unit compressed data.
  • the reproducing unit reads the same unit compressed data, which is compressed data of the same processing unit as the unit compressed data in which the transfer error is detected, from the recording medium. It may be read again.
  • the transfer error management unit When the transfer error is detected, the transfer error management unit counts the number of transfer errors, compares the counted number with a predetermined threshold, notifies the control unit of the comparison result, and The unit repeats the reproduction unit to re-read the same unit compressed data until the counted number exceeds the threshold based on the comparison result, and outputs the decompressed data when the error is detected Then, when it is determined, and the number of counted times exceeds the threshold value, or a code error is detected by the code error management unit, it corresponds to the unit compressed data in which the error is detected.
  • Unit decompression data may be supplemented to the supplemental image data.
  • the input unit further acquires a second user instruction indicating the threshold value, and the control unit performs the same operation as the reproduction unit until the counted number exceeds the threshold value indicated by the second user instruction.
  • the rereading of the unit compressed data may be repeated.
  • the playback unit reads the unit compressed data from the recording medium by accessing the recording medium at a first access frequency
  • a transfer error is detected in the unit compressed data by the transfer error management unit
  • the same unit compressed data may be read by accessing the recording medium at a second access frequency lower than the first access frequency.
  • the access frequency to the recording medium can be lowered at the time of re-transfer, the possibility that the unit compressed data can be transferred normally can be increased.
  • control unit may record a recording medium when an error occurs in at least two unit compressed data included in the compressed data indicating one frame, or when an error occurs in the compressed data indicating at least two frames. Recording medium defective image data indicating that the recording medium is defective, and the output unit may output the recording medium defective image data.
  • control unit determines to output the decompressed data when the error is detected
  • unit control data corresponding to the unit compressed data in which the error is detected is converted into single color image data, Or you may complement using the image data around the image area corresponding to the said unit expansion data.
  • image data similar to normal image data can be output even a little.
  • image data similar to more normal image data can be output by generating a predicted image of the missing image region using image data around the missing image region.
  • the input unit obtains a third user instruction indicating whether to decompress unit compressed data after the unit compressed data in which the error is detected, and the control unit According to the third user instruction, when the error is detected, it may be determined whether to decompress the unit compressed data after the unit compressed data in which the error is detected.
  • the compressed data includes an application marker segment
  • the decompression unit further detects the application marker segment, and when the error is detected in the unit compressed data included in the application marker segment, the application data
  • the unit compressed data after the unit compressed data not included in the marker segment may be expanded.
  • image data not included in the application marker segment (hereinafter referred to as APP marker) can be expanded, image data to be output can be generated. This is because the data is added to the data of the image main body, and therefore the data of the image main body can be expanded even when an error occurs in the unit compressed data included in the APP marker.
  • the compressed data includes a restart marker code
  • the decompression unit further detects the restart marker code, and when the error is detected, the compressed data of the processing unit in which the error is detected.
  • the compressed data after the restart marker code included thereafter may be decompressed.
  • the control unit determines predetermined specific image data for complementing image data after the specific data detected when predetermined specific data is detected, and the decompression unit further includes the When the specific data is detected and the specific data is detected in the Huffman code area of the compressed data, the image data after the detected specific data may be complemented with the specific image data determined by the control unit.
  • the specific data embedded in the compressed data can be detected and replaced with the specific image data, so that the user can confirm the image data that has been partially expanded.
  • the image reproduction device further includes a storage unit, an image acquisition unit that acquires moving image data including a plurality of frames at a first frame rate, and stores the moving image data in the storage unit.
  • the moving image data is read out, and the read moving image data is compressed at the second frame rate to generate the compressed data, and the compressed data generated by the compressing unit is recorded on the recording medium.
  • the control unit further compares the first frame rate with the second frame rate, and if the first frame rate is faster than the second frame rate, the control unit performs a predetermined process by the compression unit.
  • the compression unit converts the specific data into the Huffman code. It may be embedded in the region.
  • the compression process cannot be performed in time, and therefore, within a possible range for one frame of image data.
  • a large amount of image data can be compressed by embedding specific data after performing compression processing. Therefore, compared with the case where the image data for one frame is not compressed, the user can check the acquired image data even in a part.
  • the image reproduction device may further include a display unit that displays the decompressed data output by the output unit.
  • the present invention can be realized not only as an image reproducing apparatus but also as a method using a processing unit constituting the image reproducing apparatus as a step.
  • FIG. 1 is a block diagram illustrating an example of the configuration of the image reproduction apparatus according to the first embodiment.
  • FIG. 2 is an operation conceptual diagram of the image reproduction apparatus according to the first embodiment when no error occurs.
  • FIG. 3 is a conceptual diagram of the operation of the image reproducing apparatus according to the first embodiment in a case where image data partially missing when a transfer error occurs is not displayed.
  • FIG. 4 is a conceptual diagram of the operation of the image reproducing apparatus according to the first embodiment in the case where partially missing image data is displayed when a transfer error occurs.
  • FIG. 5 is a conceptual diagram of the operation of the image reproduction apparatus according to the first embodiment when a transfer error occurs during reading of the APP marker.
  • FIG. 1 is a block diagram illustrating an example of the configuration of the image reproduction apparatus according to the first embodiment.
  • FIG. 2 is an operation conceptual diagram of the image reproduction apparatus according to the first embodiment when no error occurs.
  • FIG. 3 is a conceptual diagram of the operation of the image reproducing apparatus according to the first embodiment in a case where
  • FIG. 6 is a conceptual diagram of the operation of the image reproduction apparatus according to the first embodiment when decompressing partially compressed data.
  • FIG. 7 is a conceptual diagram of a partial compressed data complementing process at the time of moving image decompression.
  • FIG. 8 is a conceptual diagram of the complement processing when an error occurs in the compressed data in which the RST marker is inserted.
  • FIG. 9 is a flowchart showing decompression processing of the image reproduction apparatus according to the first embodiment.
  • FIG. 10 is a flowchart showing transfer error processing of the image reproduction apparatus according to the first embodiment.
  • FIG. 11 is a flowchart showing a code error process of the image reproduction apparatus according to the first embodiment.
  • FIG. 12 is a flowchart showing error image display processing of the image reproduction apparatus according to the first embodiment.
  • FIG. 13 is a flowchart illustrating a complementing process of the image reproduction device according to the first embodiment.
  • FIG. 14 is a flowchart showing recording medium determination processing of the image reproduction apparatus according to the first embodiment.
  • FIG. 15 is a block diagram illustrating an example of the configuration of the image recording apparatus according to the second embodiment.
  • FIG. 16 is an operation conceptual diagram of the image recording apparatus according to the second embodiment.
  • FIG. 17 is a flowchart illustrating compression processing of the image recording apparatus according to the second embodiment.
  • FIG. 18 is a block diagram illustrating an example of a different configuration of the image reproduction device according to the embodiment of the present invention.
  • the image reproducing apparatus is an image reproducing apparatus that reads compressed image data recorded on a recording medium in a predetermined processing unit, and decompresses and outputs the read compressed image data.
  • the image reproduction apparatus determines whether or not an error has occurred in the read compressed image data, and outputs an image data in which a part of the image is lost due to the error when the error has occurred. It is characterized by determining whether or not.
  • the configuration of the image reproduction apparatus 100 according to the first embodiment will be described with reference to FIG.
  • FIG. 1 is a block diagram illustrating an example of the configuration of the image reproduction device 100 according to the first embodiment.
  • the image playback apparatus 100 includes a playback unit 110, a data buffer management unit 120, a decompression unit 130, a storage unit 140, an error management unit 150, a control unit 160, and an input unit 170.
  • the display processing unit 180 and the monitor 190 are provided.
  • the image reproduction device 100 reads compressed data from a recording medium 200 such as an SD card or HDD (Hard Disk Drive), and displays an image generated by expanding the read compressed data on the monitor 190.
  • the recording medium 200 records compressed data generated by compressing image data based on an encoding standard such as JPEG or MPEG.
  • the reproduction unit 110 is a reading unit that reads compressed data from the recording medium 200 as unit compressed data for each predetermined processing unit.
  • the playback unit 110 reads the compressed data in units of sectors, which is the minimum read unit of the recording medium 200, and transfers the read compressed data in units of sectors to the data buffer management unit 120.
  • the playback unit 110 reads again from the recording medium 200 the same unit compressed data that is compressed data in the same processing unit as the unit compressed data in which the error has occurred.
  • the playback unit 110 reads the compressed data by accessing the recording medium 200 at a predetermined access frequency.
  • the playback unit 110 can change the access frequency under the control of the control unit 160.
  • the playback unit 110 normally reads the unit compressed data by accessing the recording medium 200 at the first access frequency, and reads the unit compressed data at the second access frequency lower than the first access frequency when performing re-reading. The same unit compressed data is read by accessing.
  • the data buffer management unit 120 has at least one data buffer, and stores the unit compressed data read by the reproduction unit 110 in the data buffer.
  • the data buffer management unit 120 has two sector buffers 121 and 122, and the compressed data transferred from the reproduction unit 110 is alternately transferred to the sector buffers 121 and 122 in units of sectors. To store.
  • the sector buffers 121 and 122 are storage units capable of storing compressed data having a data amount for at least one sector.
  • the data buffer management unit 120 may have three or more sector buffers.
  • the sector buffers 121 and 122 may be physically different buffer memories, or may be physically one buffer memory that is logically divided into regions.
  • the decompressing unit 130 decompresses the unit compressed data read by the reproducing unit 110, thereby generating unit decompressed data that is image data for each decompressed processing unit. Specifically, the decompressing unit 130 reads the compressed data stored in the sector buffers 121 and 122 in units of sectors, and decompresses the read compressed data in units of sectors. The decompressing unit 130 stores the decompressed data in units of sectors generated by decompressing the compressed data in units of sectors in the storage unit 140.
  • the storage unit 140 is a memory that stores decompressed data.
  • the storage unit 140 can store image data for at least one frame. Therefore, the storage unit 140 stores the decompressed data that is image data for one frame by accumulating the unit decompressed data generated by the decompressing unit 130.
  • the error management unit 150 detects an error generated by at least one of the reproduction unit 110 and the decompression unit 130 for each unit compressed data. Specifically, the error management unit 150 determines whether or not an error has occurred during the processing performed by each of the reproduction unit 110 and the decompression unit 130 on a sector basis. If the error management unit 150 determines that an error has occurred, the error management unit 150 notifies the control unit 160 that an error has been detected. As a specific configuration, as illustrated in FIG. 1, the error management unit 150 includes a transfer error management unit 151 and a code error management unit 152.
  • the transfer error management unit 151 detects a transfer error that occurs when the unit compressed data is transferred from the recording medium 200 to the data buffer management unit 120. That is, the transfer error management unit 151 detects a transfer error that occurs during transfer by the playback unit 110. For example, the transfer error management unit 151 determines whether a transfer error has occurred using ECC (Error Correction Code) or the like.
  • ECC Error Correction Code
  • the transfer error management unit 151 counts the number of transfer errors that is the number of times a transfer error is detected. Further, the transfer error management unit 151 compares the counted number of transfer errors with a predetermined threshold value, and notifies the control unit 160 of the comparison result. In other words, the transfer error management unit 151 determines whether the number of transfer errors exceeds a predetermined threshold and notifies the control unit 160 of the determination result.
  • the threshold value at this time is the number of times determined by the control unit 160, for example, a specific number of times that is a predetermined default number, or a user-specified number of times indicated by a user instruction input from the input unit 170 It is.
  • the code error management unit 152 detects a code error in the unit compressed data read from the sector buffers 121 and 122 by the decompression unit 130. For example, if the Huffman code area indicating the data of the image body in the compressed data includes a header or data that cannot appear (eg, FFFF, etc.), the code error management unit 152 sets the code error Is detected.
  • the control unit 160 controls the processing of the entire image reproduction device 100 by notifying each processing unit included in the image reproduction device 100 of an instruction. For example, the control unit 160 notifies the user instructions acquired by the input unit 170 to each processing unit. Details of specific instructions will be described later with reference to FIGS.
  • control unit 160 determines whether or not to display the decompressed data on the monitor 190 when an error (transfer error or code error) is detected by the error management unit 150. When it is determined that the decompressed data is to be displayed on the monitor 190, the control unit 160 supplements the unit decompressed data corresponding to the unit compressed data in which the error is detected with predetermined supplemental image data.
  • control unit 160 supplements the image area missing due to the error with the supplemental image data.
  • the complementary image data is, for example, image data around the missing image region, other image data, or image data of a specific single color.
  • the control unit 160 When it is determined not to display the decompressed data on the monitor 190, the control unit 160 generates non-expandable display image data indicating that an error has occurred and causes the monitor 190 to display it.
  • control unit 160 determines whether the recording medium is good or bad according to the number of errors that have occurred and the location where the error has occurred. Specifically, the controller 160 generates an error in at least two different unit compressed data included in the compressed data indicating one frame, or an error occurs in the compressed data indicating at least two different frames. In this case, recording medium defect image data indicating that the recording medium is defective is generated.
  • the input unit 170 is a user interface that acquires a user instruction from a user and transmits the acquired user instruction to the control unit 160. For example, when an error is detected, a first user instruction indicating whether or not to output image data obtained by decompressing the compressed data, a designated number of retransfers (retry times) when a transfer error is detected, that is, The input unit 170 acquires a second user instruction indicating a threshold value, a third user instruction indicating whether or not to decompress the compressed data after the location where the error is detected, and the like when an error is detected.
  • the display processing unit 180 is an example of an output unit that outputs decompressed data including unit decompressed data generated by the decompressing unit 130. Specifically, as illustrated in FIG. 1, the display processing unit 180 reads image data from the storage unit 140 and causes the monitor 190 to display the image data.
  • the monitor 190 is a display unit that displays image data such as an LCD (Liquid Crystal Display), an organic EL (Electro-Luminescence) display, a cathode ray tube, and a PDP (Plasma Display Panel).
  • LCD Liquid Crystal Display
  • organic EL Electro-Luminescence
  • cathode ray tube a cathode ray tube
  • PDP Plasma Display Panel
  • the image reproduction device 100 determines whether or not to display the image data in which a part of the image is lost due to the error on the monitor 190 even when an error occurs. If it is determined to be displayed, the image area missing due to the error is complemented and displayed. Since the determination at this time can be determined by the user via the input unit 170, the intention of the user can be reflected in the countermeasure when an error occurs.
  • FIG. 2 is an operation conceptual diagram of the image reproduction device 100 according to the first embodiment when no error occurs.
  • the user gives an instruction for extension operation (extension instruction) from the input unit 170.
  • the control unit 160 notifies the reproduction unit 110 of a reproduction instruction for starting to read compressed data from the recording medium 200.
  • the playback unit 110 reads the compressed data instructed by the control unit 160 (compressed data obtained by compressing “image data 0”) from the recording medium 200. Reading from the recording medium 200 is performed in a minimum reading unit, that is, a sector unit, and compressed data is transferred from the recording medium 200 to the data buffer management unit 120.
  • the data buffer management unit 120 manages the compressed data in units of sectors with two banks (that is, the sector buffer 121 and the sector buffer 122), and first compresses the first sector (sector 0) into the bank 1 (sector buffer 121). Store the data.
  • the playback unit 110 notifies the control unit 160 that the storage of the compressed data in units of sectors is completed by interrupt processing.
  • the control unit 160 confirms the presence / absence of a transfer error for the sector by a notification from the transfer error management unit 151. When there is no transfer error, the control unit 160 instructs the decompression unit 130 to decompress the compressed data of the sector. The decompression unit 130 decompresses the compressed data of the designated sector in accordance with the decompression instruction from the control unit 160. The expanded image data is stored in the storage unit 140 as needed.
  • the compressed data of the next sector (sector 1) read out by the reproducing unit 110 is stored in the sector buffer 122 (in this case, bank 2) different from the previous one to prevent overwriting of the compressed data.
  • the control unit 160 instructs the expansion unit 130 to expand the next bank.
  • the control unit 160 instructs the display processing unit 180 to start displaying image data (display instruction).
  • the display processing unit 180 outputs the image data according to the display timing of the monitor 190 and causes the monitor 190 to display it.
  • the image reproduction device 100 reads image data compressed in units of sectors from the recording medium 200. Then, the image reproduction device 100 expands the read compressed data, and causes the monitor 190 to display the image data generated by the expansion.
  • FIG. 3 is a conceptual diagram of the operation of the image reproduction device 100 according to the first embodiment in the case where image data partially missing when a transfer error occurs is not displayed. In the example shown in FIG. 3, it is assumed that a transfer error occurs during transfer of the compressed data of sector 2.
  • the user sets the number of retries (specified number of times) when an error occurs (twice in the example of FIG. 3) and the setting of non-display of image data when an error occurs.
  • the operation until the transfer error occurs is the same as in the normal operation shown in FIG.
  • the transfer error management unit 151 When the transfer error management unit 151 detects a transfer error in the compressed data transferred by the playback unit 110, the transfer error management unit 151 notifies the control unit 160 that a transfer error has occurred ("sector 2 transfer error" shown in FIG. 3). At this time, the transfer error management unit 151 counts the number of transfer errors, compares the counted number of transfer errors with the specified number, and notifies the control unit 160 of the comparison result.
  • control unit 160 If the number of transfer errors does not exceed the specified number of times, the control unit 160 reads out from the recording medium 200 the compressed data of the same sector, that is, the sector where the transfer error has occurred (sector 2 in this case). Instruct (retry processing). If the number of transfer errors exceeds the specified number, the control unit 160 stops the processing of the sector in which the transfer error has occurred, and creates non-expandable display image data that displays that the expansion is impossible.
  • the control unit 160 stores the created non-expandable display image data in the storage unit 140 and instructs the display processing unit 180 to display the image data.
  • the display processing unit 180 reads out the non-expandable display image data from the storage unit 140 according to the display instruction, and displays it on the monitor 190.
  • the image reproduction apparatus 100 cannot decompress when a transfer error occurs and the number of transfer errors that has occurred exceeds the threshold value (specified number).
  • Display image data is displayed on the monitor 190. That is, for example, a message such as “An error has occurred” or “An image cannot be displayed because an error has occurred during data reading” is displayed on the monitor 190.
  • FIG. 4 is an operation conceptual diagram of the image reproducing device 100 according to the first embodiment in the case where partially missing image data is displayed when a transfer error occurs.
  • the compressed data includes an RST marker.
  • the user sets the number of retries (specified number of times) when an error occurs (once in the example of FIG. 4) and the setting of image data display when an error occurs.
  • the operation until the number of transfer errors exceeds the specified number is the same as the operation shown in FIG.
  • the decompression unit 130 decompresses compressed data including a sector (sector 2) in which a transfer error has occurred. That is, the decompression unit 130 decompresses the compressed data of all sectors regardless of whether or not a transfer error is detected.
  • the control unit 160 starts from the compressed data (sector 3 in the example of FIG. 4) where the RST marker is inserted after the point where the code error has occurred.
  • the expansion unit 130 is instructed to perform the expansion operation.
  • control unit 160 Upon completion of expansion, the control unit 160 instructs the display processing unit 180 to start display (display instruction).
  • the display processing unit 180 reads out partially missing image data from the storage unit 140 and displays it on the monitor 190.
  • the image reproducing apparatus 100 performs a partial process when a transfer error occurs and the transfer error count that is the number of transfer errors that has occurred exceeds a threshold value (specified count). Is displayed on the monitor 190. At this time, as will be described later, the missing image region is complemented by predetermined complement image data by the control unit 160.
  • the decompression operation reliably returns in units of the RST marker, so that the reproducibility of the image data becomes higher.
  • the restoration process of the error data expansion operation by the RST marker is also described in Patent Document 2 and the like, and is well known, so the explanation is omitted.
  • control unit 160 notifies the display processing unit 180 of a display instruction when a code error is detected.
  • FIG. 5 is an operation conceptual diagram of the image reproducing device 100 according to the first embodiment when a transfer error occurs during reading of the APP marker.
  • the APP marker is data that is arbitrarily added to the compressed data defined in the JPEG standard. Therefore, even if the APP marker cannot be correctly expanded, the image data of the main body is not affected.
  • the expansion operation has already been started, the APP marker is included up to sector a + n, and the image data of the main body is included after sector b. Therefore, the expansion unit 130 outputs image data (expansion data) to the storage unit 140 after sector b in order to skip the APP marker.
  • the control unit 160 does not stop the decompression operation.
  • the expansion unit 130 performs the expansion operation.
  • control unit 160 may generate image data or character data indicating that a transfer error has occurred in order to notify the user that a transfer error has occurred.
  • the generated image data or character data is output to the monitor 190 via the display processing unit 180, and the monitor 190 displays image data or character data indicating that a transfer error has occurred. For example, a message such as “A transfer error has occurred” is displayed on the monitor 190.
  • the image reproduction device 100 does not stop the decompression operation even when a transfer error occurs while reading the APP marker, and the compressed data after the APP marker ends. That is, the unit compressed data after the unit compressed data not included in the APP marker is expanded.
  • the decompression process can be performed if there is no error in the image data body by not stopping the decompression due to the transfer error of the compressed data attached information such as the APP marker.
  • the image reproduction apparatus 100 according to the first embodiment continues the expansion operation not only for the APP marker but also when a transfer error occurs during reading of auxiliary information other than the image data main body.
  • FIG. 6 is an operation conceptual diagram of the image reproducing device 100 according to the first embodiment when decompressing incomplete compressed data (hereinafter referred to as partial compressed data) due to the interruption of the compression processing.
  • specific data hereinafter, specific code
  • the user gives an instruction to decompress by permitting the reproduction of partially compressed data in which specific data is embedded in a part of the compressed data at the input unit 170.
  • the control unit 160 sets a specific code in the expansion unit 130, and when the expansion unit 130 detects the specific code, the expansion unit 130 stops the expansion operation. Then, instead of decompressing the remaining data, for example, specific image data such as black or blue is output following the already decompressed decompressed data.
  • a specific code exists in sector 2, and the decompression unit 130 writes specific image data in the storage unit 140 after detecting the specific code.
  • the decompression unit 130 outputs a decompression completion interrupt to the control unit 160 when it finishes writing specific image data for the size of the image data that should originally exist in the storage unit 140.
  • the control unit 160 instructs the display processing unit 180 to display the partially missing image data.
  • FIG. 7 is a conceptual diagram of a partial compression data complementing process when expanding a moving image.
  • the moving image is the image data 300 for one frame of normally compressed image data and the image data of the next frame of the image data 300, and includes image data 310 including specific data (specific code). Including.
  • image data 300 is normally expanded.
  • the specific code is, for example, code data for designating specific image data.
  • neighboring frames are often similar, and therefore information on neighboring frames is used to improve the reproducibility of image data.
  • information on neighboring frames can be used for those having a high correlation between the previous captured image and the current captured image.
  • the frame in which an error is detected is not displayed, and the previous frame is continuously displayed or blacked out.
  • the image region 311 described as “specific color” in FIG. 7 is filled with specific image data created at the time of compression. Thereby, although a part of image is missing, the change of the image can be confirmed even a little.
  • the control unit 160 displays the immediately preceding image data. From 300, virtual image data 320 corresponding to the image data 310 is created.
  • the example shown in FIG. 7 is a moving image taken from a train running on the track, and the frame 301 of the image data 300 is an area corresponding to the next frame (image data 310), so that the inside of the frame is enlarged.
  • virtual image data 320 is created.
  • the frame 301 is determined by using, for example, angle of view information at the time of shooting, a frame rate of a moving image, train speed information, or GPS (Global Positioning System) information.
  • angle of view information at the time of shooting a frame rate of a moving image
  • train speed information a frame rate of a moving image
  • GPS Global Positioning System
  • the data of the same image position of the virtual image data 320 (the frame 321 indicated by the dotted line in FIG. 7) is inserted into the missing portion (the image region 311 in FIG. 7) configured by the specific data of the image data 310. Complement. Thereby, the image data 330 having higher reproducibility than the image data 310 can be obtained.
  • FIG. 8 is a conceptual diagram of the complementing process when an error occurs in the compressed data in which the RST marker is inserted.
  • the image data 400 is an example in which image data expanded excluding the area where an error has occurred, that is, partially expanded image data is displayed on the monitor 190. Although some areas of the image data are missing due to an error, if there is an RST marker, normal extension from the next RST marker in which an error has occurred can be performed. The image data has been restored.
  • the image data 410 is image data obtained as a result of complementing the image data 400 with other image data as in FIG.
  • the missing area may be complemented from the image data around the missing area instead of complementing with other image data.
  • FIG. 9 is a flowchart showing the decompression process of the image reproduction apparatus 100 according to the first embodiment.
  • the control unit 160 When the decompression process is started based on the decompression instruction input from the input unit 170, the control unit 160 notifies the reproduction unit 110 of a reproduction instruction for performing the compressed data transfer process from the recording medium 200. Thereby, the reproducing unit 110 reads out the compressed data from the recording medium 200 in units of sectors (S101). The read compressed data is stored in one of the sector buffers 121 and 122 by the data buffer management unit 120.
  • the transfer error management unit 151 checks whether or not a transfer error has occurred in the read compressed data (S102). If the transfer error management unit 151 does not detect a transfer error (NO in S102), the control unit 160 instructs the decompression unit 130 to decompress the compressed data in the sector buffer 121 or 122 (notifies the decompression instruction). .
  • the decompressing unit 130 reads the compressed data from the sector buffer 121 or 122, and starts decompressing the read compressed data (S103).
  • the code error management unit 152 checks whether there is a code error in the code of the compressed data (S104). When the code error is not detected (NO in S104), the control unit 160 detects whether or not the decompression process of the decompressed compression data is completed (S105). If the expansion process is not completed (NO in S105), the compressed data of the subsequent sector is read from the recording medium 200 (return to S101).
  • the decompression process is completed.
  • the decompressed data generated by the decompressing unit 130 decompressing the compressed data is stored in the storage unit 140.
  • the display processing unit 180 reads the decompressed data from the storage unit 140 and causes the monitor 190 to display it.
  • the transfer error management unit 151 detects a transfer error (YES in S102)
  • the image reproduction device 100 performs a transfer error process (S107).
  • S107 a transfer error process
  • FIG. 10 is a flowchart showing the transfer error process (S107 in FIG. 9) of the image reproduction apparatus 100 according to the first embodiment.
  • the transfer error process is a process performed by the image reproduction device 100 when a transfer error occurs, and is the process described with reference to FIGS. 3 to 5, for example.
  • the transfer error management unit 151 counts the number of transfer errors (S201).
  • the transfer error management unit 151 determines whether or not a threshold value for the number of transfer errors is set (S202). That is, in the transfer error management unit 151, the input unit 170 acquires a user instruction indicating a threshold value for the number of transfer errors, and is set as a threshold value (specified number) for the transfer error number by the control unit 160 based on the user instruction. It is determined whether or not.
  • the transfer error management unit 151 compares the specific number with the count number of the previous transfer error number (S203). The comparison result is notified to the control unit 160.
  • the specific number of times is a predetermined default threshold value.
  • the transfer error management unit 151 compares the specified number of times with the count of the number of transfer errors (S204). The comparison result is notified to the control unit 160.
  • control unit 160 determines whether or not to perform retransfer processing (re-execution of transfer processing from the recording medium 200, that is, retry processing) from the comparison result (S205). Specifically, the control unit 160 determines whether or not the count number of transfer errors exceeds a specific number or a specified number, and if it exceeds, determines that the retransfer process is not performed. The control unit 160 determines that the retransfer process is performed when the count number is equal to or less than the specific number or the specified number.
  • the image reproduction device 100 If it is determined that the retry process (retransfer process) is not performed based on the result of the transfer error process (S107) (NO in S108), the image reproduction device 100 performs an error image display process (S113). Details of the error image display processing will be described later with reference to FIG.
  • the control unit 160 determines whether or not the access frequency to the recording medium 200 can be lowered (S109). When the access frequency is lowered (YES in S109), the control unit 160 instructs the playback unit 110 to lower the access frequency to the recording medium 200 and perform a retransfer process. The access frequency is lowered according to the instruction (S110). The reproducing unit 110 reads the compressed data of the same sector from the recording medium 200 by accessing the recording medium 200 again with the lowered access frequency (S111).
  • the control unit 160 If the access frequency cannot be lowered (NO in S109), the control unit 160 notifies the reproduction unit 110 of the same sector re-transfer processing instruction, and the reproduction unit 110 accesses the recording medium 200 again at the same access frequency. Thus, the compressed data of the same sector is read from the recording medium 200 (S111).
  • the transfer error management unit 151 determines whether or not a transfer error has occurred in the read compressed data (S102), and the image reproduction device 100 repeats the above processing.
  • the code error management unit 152 detects a code error (YES in S104)
  • the image reproduction device 100 performs code error processing (S112).
  • code error processing S112
  • FIG. 11 is a flowchart showing the code error processing (S112 in FIG. 9) of the image reproduction apparatus 100 according to the first embodiment.
  • the code error processing is processing performed by the image reproduction device 100 when a code error occurs.
  • the control unit 160 determines whether or not detection of specific data embedded in the Huffman code area of the compressed data is set (S301). If the setting is to detect specific data (YES in S301), the control unit 160 sets the output of the specific image data to the decompression unit 130, and the image data corresponding to the remaining image data is, for example, black or gray Such specific color image data is output (S302).
  • the code error processing is completed when the output of the image data for the image data size (one frame) has been completed.
  • control unit 160 determines whether or not the continuation of the decompression process is set (S303). If the continuation of the decompression process is not set (NO in S303), the image reproduction device 100 completes the code error process.
  • the decompression unit 130 detects whether or not an RST marker is inserted in the compressed data (S304). If the RST marker has been inserted (YES in S304), the control unit 160 sets the decompression unit 130 to skip the compressed data until the next RST marker (S305). The decompressing unit 130 does not perform the decompressing operation until the next RST marker is detected from the compressed data stored in the sector buffer 121 or 122 by the reproducing unit 110.
  • control unit 160 determines whether or not the decompression unit 130 can perform the Huffman decoding process (S306).
  • the playback unit 110 performs a transfer process from the recording medium 200 in order to read the compressed data of the next sector (S307).
  • the image reproduction device 100 repeats the processing from the transfer error determination processing (S102 in FIG. 9).
  • the image reproduction device 100 completes the code error process and performs an error image display process (S113 in FIG. 9).
  • S113 in FIG. 9 details of the error image display process will be described with reference to FIG.
  • FIG. 12 is a flowchart showing the error image display process (S113 in FIG. 9) of the image reproduction apparatus 100 according to the first embodiment.
  • the error image display process is an image display process when an error such as a transfer error or a code error occurs.
  • the control unit 160 determines whether or not the compressed data in which an error has occurred is set to be displayed on the monitor 190 (S401).
  • the control unit 160 displays the image data decompressed until the error has occurred.
  • the display processing unit 180 is set to output the image data stored in the storage unit 140 to the monitor 190 (S402).
  • the image reproduction device 100 completes the error image display process and performs a complement process (S114 in FIG. 9).
  • the control unit 160 stores error display image data (for example, “this file” in the storage unit 140).
  • Image data for displaying characters such as “cannot be reproduced” is generated, and the display processing unit 180 is set to output the error display image data stored in the storage unit 140 to the monitor 190 (S403).
  • the image reproduction device 100 completes the error image display process and performs a complement process (S114 in FIG. 9). Note that the display processing unit 180 outputs error image data or error display image data in accordance with the display timing of the monitor 190.
  • FIG. 13 is a flowchart showing the complementing process (S114 in FIG. 9) of the image reproduction device 100 of the first embodiment.
  • the complementing process is a process of complementing image data that has been lost due to an error.
  • control unit 160 determines whether or not a complementing process is set (S501). When the complementing process is not set (NO in S501), the control unit 160 determines whether or not the missing image area filling process is set (S502). When the fill process is not set (NO in S502), the image reproduction device 100 completes the complement process.
  • the control unit 160 fills the image area lacking the image data stored in the storage unit 140 with image data such as black, gray, and yellow (S503).
  • An image generated by the filling process corresponds to, for example, the image data 420 in FIG.
  • the image reproduction device 100 completes the complementing process.
  • the control unit 160 determines whether or not the complement process using the image data in the same image data is set (S504). If the setting is to perform complementation within the same image data (YES in S504), the control unit 160 generates image data of the missing image region from the peripheral images of the missing image region, thereby missing the image. Data complementation is performed (S505). Then, the image reproduction device 100 completes the complementing process.
  • the control unit 160 determines whether or not other image data can be used (S506). Specifically, the control unit 160 determines whether other compressed data or image data other than the compressed data in which an error has occurred is stored in the recording medium 200 or the storage unit 140.
  • the other image data is image data similar to the image data in which an error has occurred, such as an image before or after one frame, or an image continuously shot at the same place and time.
  • control unit 160 If there is no other image data (NO in S506), the control unit 160 notifies that there is no other image data to be complemented (S507). Specifically, the control unit 160 creates displayless image data without a file in the storage unit 140 (for example, image data for displaying characters such as “There is no other file and cannot be complemented”), and the display processing unit In 180, the displayless image data stored in the storage unit 140 is set to be output to the monitor 190. Then, the image reproduction device 100 completes the complementing process.
  • the control unit 160 creates displayless image data without a file in the storage unit 140 (for example, image data for displaying characters such as “There is no other file and cannot be complemented”), and the display processing unit In 180, the displayless image data stored in the storage unit 140 is set to be output to the monitor 190. Then, the image reproduction device 100 completes the complementing process.
  • the missing image area may be filled with single-color image data instead of displaying the no-file display image data.
  • the control unit 160 When there is other image data (YES in S506), the control unit 160 generates image data of the missing image region from the image data of the portion corresponding to the missing image region of the other image data.
  • the missing image data is complemented (S508).
  • the image generated by this complementation corresponds to, for example, the image data 410 in FIG. Then, the image reproduction device 100 completes the complementing process.
  • the image reproducing device 100 performs the recording medium determination process (S115).
  • the recording medium determination process S115.
  • FIG. 14 is a flowchart showing a recording medium determination process of the image reproduction apparatus 100 according to the first embodiment.
  • the recording medium determination process is a process for determining whether the recording medium 200 on which the compressed data to be read is recorded is good or bad.
  • the control unit 160 determines whether there is an error in another sector in the same compressed data (compressed data indicating the same frame) (S601). When there is no error in another sector in the same compressed data (NO in S601), the control unit 160 determines whether there is an error in other compressed data (compressed data indicating another frame) on the same recording medium 200. Determination is made (S602). If there is no error in other compressed data in the same recording medium 200 (NO in S602), the control unit 160 determines that the recording medium 200 is normal, and the image reproducing device 100 completes the recording medium determination process. To do.
  • the recording medium 200 is defective. Is displayed on the monitor 190 (S603).
  • the control unit 160 creates recording medium error display image data (for example, image data for displaying characters such as “This memory card is broken and cannot be reproduced”) in the storage unit 140, and performs display processing.
  • the unit 180 is set to output the recording medium error display image data stored in the storage unit 140 to the monitor 190. Then, the image reproduction device 100 completes the recording medium determination process. When the recording medium determination process (S115) is completed, the image reproduction device 100 completes the expansion process.
  • the image reproduction device 100 determines whether or not an error has occurred in the read compressed image data, and responds to the error according to the type and number of errors that have occurred. To change.
  • the image reproducing apparatus 100 determines whether or not to display image data when an error occurs, the image data partially missing due to the error is displayed on the monitor 190 even when an error occurs. Can be displayed.
  • retransfer from the recording medium 200 can be performed.
  • the user can set whether or not to perform retransfer at this time, the number of times, and the like via the input unit 170.
  • the image reproducing apparatus 100 according to Embodiment 1 can flexibly process the obtained decompressed data when an error occurs.
  • the image recording apparatus compares the frame rate when capturing moving image data (capture frame rate) with the frame rate when compressing captured moving image data (compressed frame rate). As a result of comparison, when the capture frame rate is faster than the compression frame rate, the compression process for one frame is interrupted halfway, and the data is partially compressed normally by embedding specific data in the Huffman code area. And compressed data including specific data is recorded on a recording medium.
  • the configuration of the image recording apparatus according to the second embodiment will be described with reference to FIG.
  • FIG. 15 is a block diagram illustrating an example of the configuration of the image recording apparatus 500 according to the second embodiment.
  • the image recording apparatus 500 includes a recording unit 510, a data buffer management unit 520, a compression unit 530, a storage unit 540, a control unit 560, an input unit 570, and an image processing unit 580. , Sensor 590.
  • the image recording apparatus 500 compresses the image data acquired by the sensor 590 and records the compressed image data on a recording medium 600 such as an SD card or HDD.
  • the sensor 590 is an image sensor such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal Oxide Semiconductor).
  • the sensor 590 acquires RAW data by imaging a subject.
  • the RAW data is, for example, RGB data.
  • the storage unit 540 is a memory that stores the image data converted by the image processing unit 580.
  • the image processing unit 580 converts the RAW data acquired by the sensor 590 into image data and stores the image data in the storage unit 540.
  • the image data is image data composed of luminance information (Y) and color difference information (Cb, Cr).
  • the compression unit 530 reads the image data from the storage unit 540 and compresses the read image data based on the JPEG standard. Compressed data that is compressed image data is output to the data buffer management unit 520.
  • the compression unit 530 includes a specific data generation unit 531.
  • the specific data generation unit 531 adds the specific data determined by the control unit 560 to the compressed data when the control unit 560 is instructed to stop the compression process.
  • the compression unit 530 outputs the compressed data including the normally compressed data and the specific data to the data buffer management unit 520.
  • the data buffer management unit 520 includes a data buffer 521, and stores the compressed data output from the compression unit 530 in the data buffer 521 in the minimum reading unit of the recording medium 600.
  • FIG. 15 shows a configuration in which the data buffer management unit 520 includes one data buffer 521, but the data buffer management unit 520 may include one or more data buffers.
  • the recording unit 510 writes the compressed data from the data buffer management unit 520 to the recording medium 600.
  • the control unit 560 controls processing of the entire image recording apparatus 500 by notifying each processing unit included in the image recording apparatus 500 of an instruction. For example, the control unit 560 notifies each processing unit of the user instruction acquired by the input unit 570.
  • the control unit 560 captures the raw frame rate when the image processing unit 580 captures the RAW data from the sensor 590, converts it to image data, and stores it in the storage unit 540, and the compression unit 530 captures the image data from the storage unit 540.
  • the compressed frame rate when reading and compressing is compared.
  • the control unit 560 determines that the compression process is not in time, and notifies the compression unit 530 of a compression stop instruction.
  • the control unit 560 determines that the compression process is not in time when two or more compression instructions are input from the input unit 570 during the compression process of one frame.
  • the input unit 570 is a user interface that acquires a user instruction from a user and transmits the acquired user instruction to the control unit 560.
  • the input unit 570 obtains from the user a compression instruction that indicates the start of a series of processes from data acquisition by the image recording apparatus 500 to compression and recording on the recording medium 600.
  • the image recording apparatus 500 compares the capture frame rate with the compression frame rate, and when the capture frame rate is faster than the compression frame rate, stops the compression process for one frame.
  • the specific data is embedded in the Huffman code area.
  • FIG. 16 is an operation conceptual diagram of the image recording apparatus 500 of the second embodiment.
  • the user gives a compression instruction from the input unit 570, and the control unit 560 transmits a shooting instruction to start exposure to the sensor 590.
  • the control unit 560 transmits a capture instruction to the sensor 590 and the image processing unit 580 in order to capture the RAW data into the storage unit 540.
  • RAW data is output from the sensor 590, and the image processing unit 580 converts the RAW data into image data including luminance information and color difference information, and stores the converted image data in the storage unit 540.
  • the compression unit 530 compresses the image data stored in the storage unit 540, and stores the compressed image data in the data buffer 521 in the data buffer management unit 520.
  • the recording unit 510 reads the compressed data stored in the data buffer 521 and records it on the recording medium 600.
  • the capture frame rate when capturing data from the sensor 590 (interval from the shooting instruction in FIG. 16 to the next shooting instruction) and the compression frame rate of compression processing (1 of the compression unit 530 in FIG. 16).
  • the capture frame rate from the sensor 590 is faster. For this reason, the compression unit 530 cannot perform processing in real time.
  • the consistency between the capture process and the compression process is achieved by skipping the frames processed by the compression unit 530. That is, since the compression processing of the image data for one frame is skipped, the image data for one frame is not recorded.
  • the compression unit 530 performs compression processing as much as possible in order to leave as much information of all the frames as possible.
  • the control unit 560 receives an input from the input unit 570 while the compression unit 530 is compressing one frame of image data. If only one compression instruction is performed, it is determined that the compression process is in time. On the contrary, when the input unit 570 acquires a plurality of compression instructions during the compression process of one frame of image data, the control unit 560 determines that the compression process is delayed, and stops the compression process at that time.
  • the control unit 560 stops the compression operation by notifying the compression unit 530 of a compression stop instruction, and takes the consistency of the real-time processing.
  • the compression unit 530 cancels the compression process, adds the specific data predetermined by the control unit 560 to the data buffer management unit 520 after the compressed data generated halfway.
  • the recording unit 510 records partially compressed data including specific data on the recording medium 600.
  • FIG. 17 is a flowchart illustrating compression processing of the image recording apparatus 500 according to the second embodiment.
  • the image recording apparatus 500 starts the compression process based on the compression instruction input from the input unit 570.
  • the sensor 590 acquires RAW data under the control of the control unit 560, and the image processing unit 580 converts the RAW data into image data and stores it in the storage unit 540.
  • the compression unit 530 compresses the image data stored in the storage unit 540, and the recording unit 510 records the compressed data on the recording medium 600.
  • the control unit 560 compares the captured frame rate with the compressed frame rate (S701). If the capture frame rate is faster (YES in S701), the control unit 560 notifies the compression unit 530 of an instruction to interrupt the compression process. At this time, the control unit 560 performs embedding setting of specific data in the compression unit 530.
  • the compression unit 530 embeds specific data determined by the control unit 560 following the compressed data that has been normally compressed (S702).
  • the control unit 560 determines completion of the compression process (S703).
  • the completion of the compression process by the compression unit 530 is confirmed (YES in S703), the image recording apparatus 500 completes the compression process.
  • the image recording apparatus 500 compares the captured frame rate with the compressed frame rate. If the captured frame rate is faster than the compressed frame rate, the image recording apparatus 500 stops the compression process for one frame. Embed specific data. Thereby, compared with the case where image data for one frame is not compressed and recorded in the related art, the image data can be compressed and recorded even if it is a part.
  • the present invention may be an imaging device that combines the above-described image reproduction device 100 and the image recording device 500.
  • FIG. 18 is a block diagram illustrating an example of a different configuration of the image reproduction device according to the embodiment of the present invention.
  • FIGS. 1 and 15 includes a playback unit 110, an expansion unit 130, an error management unit 150, a display processing unit 180, a monitor 190, a recording unit 510, a compression unit 530, and an image processing unit 580.
  • the same components as those in FIGS. 1 and 15 are denoted by the same reference numerals.
  • the image reproduction device 700 is an imaging device such as a digital camera, for example, and compresses the image data acquired by the sensor 590 and records it on the recording medium 800. Further, the compressed data is read from the recording medium 800, the read compressed data is expanded, and the obtained image data is displayed on the monitor 190.
  • the data buffer management unit 720 performs processing of both the data buffer management units 120 and 520. As shown in FIG. 18, as an example, the data buffer management unit 720 includes sector buffers 721 and 722. The sector buffers 721 and 722 correspond to the sector buffers 121 and 122, the data buffer 521, and the like.
  • the storage unit 740 corresponds to the storage units 140 and 540. Note that the storage unit 740 may be physically two memories, or may be physically one memory that is logically divided into regions.
  • the control unit 760 corresponds to the control units 160 and 560, and controls the processing of the entire image reproduction device 700 by performing both processing.
  • the input unit 770 corresponds to the input units 170 and 570, and performs both processes.
  • the image reproducing device 700 may have the functions of the image reproducing device 100 and the image recording device 500 together.
  • the buffer capacity of the data buffer management unit 120 is described as two. However, the present invention is not limited to this, and three or more data buffers may be provided.
  • a data buffer capable of absorbing the speed difference in order to conceal the processing waiting time by the playback unit 110 or the decompression unit 130. It is better to have
  • the data buffer management unit 120 first stores data in the bank 1 (sector buffer 121).
  • the data is not limited to this, and may be stored in the bank 2 (sector buffer 122). .
  • the decompressed image data when it does not have an image data size that can be displayed on the monitor 190, it can be displayed on the monitor 190 by at least one of the decompression unit 130, the display processing unit 180, or the control unit 160.
  • the image data size may be resized.
  • image data that cannot be decompressed is created when an error occurs. However, it may be created in advance. Further, when there is a margin in the memory space of the storage unit 140, it is not necessary to create each time by holding the non-expandable display image data created once.
  • the occurrence of an error in the data in the APP marker is performed after the display of the image data.
  • the display is performed in advance and the user is allowed to select whether to display the image data. Also good.
  • all the compressed data is input to the decompression unit 130.
  • the sector b and after may be input.
  • the decompressing unit 130 skips the data and performs the decompressing operation from the data after the APP marker.
  • the missing area of the image data is complemented by enlarging the previous frame, but the next frame is estimated from subject motion prediction and the angular velocity sensor of the camera. You may make a prediction.
  • the data buffer management unit 120 is provided to perform reading from the recording medium 200 and expansion by the expansion unit 130 at the same time.
  • the reproduction unit 110 is transferred from the recording medium 200 to the storage unit 140.
  • the compressed data may be transferred, and the decompression unit 130 may read the decompressed data from the storage unit 140 and decompress the compressed data.
  • RAW data is described as data captured from the sensor 590.
  • the present invention is not limited to this, and the image recording apparatus 500 acquires image data, and the compression unit 530 acquires the acquired image data. You may compress. Further, if necessary, the data may be compressed after conversion such as resizing.
  • FF FF
  • Y, Cb, and Cr data 10 pieces of “FF” are specified as specific data, and then Y, Cb, and Cr data are specified.
  • the number of FFs, FF, Y, and Cb are not limited thereto.
  • the order of Cr may be changed.
  • “FFD9” indicating the end of the image may be inserted at the error location and the specific data may be embedded thereafter.
  • the image reproduction device 100 may not include the monitor 190.
  • the display processing unit 180 may display the compressed data stored in the storage unit 140 on a display device such as an external display.
  • the control unit 160 determines whether or not to output the decompressed data when an error (transfer error or code error) is detected by the error management unit 150.
  • the control unit 160 complements the supplemental image data in the same manner as in the first embodiment.
  • the display processing unit 180 outputs decompressed data including complementary image data.
  • the image recording apparatus 500 may not include the sensor 590.
  • the image processing unit 580 may store image data input from the outside in the storage unit 740.
  • the present invention can be realized not only as an image reproducing apparatus and an image reproducing method, but also as a program for causing a computer to execute the image reproducing method of the present embodiment. Further, it may be realized as a recording medium such as a computer-readable CD-ROM (Compact Disc-Read Only Memory) for recording the program. Furthermore, it may be realized as information, data, or a signal indicating the program. These programs, information, data, and signals may be distributed via a communication network such as the Internet.
  • a communication network such as the Internet.
  • the constituent elements constituting the image reproducing apparatus may be configured by one system LSI (Large Scale Integration).
  • the system LSI is an ultra-multifunctional LSI manufactured by integrating a plurality of components on a single chip.
  • the system LSI is a computer system including a microprocessor, a ROM, a RAM, and the like. .
  • the reproduction unit 110, the data buffer management unit 120, the decompression unit 130, the error management unit 150, and the control unit 160 are configured as one system LSI.
  • the image reproduction apparatus and the image reproduction method of the present invention have an effect that the expanded data obtained when an error occurs can be flexibly processed, and can be used for a digital camera or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

 エラーが発生した場合に得られた画像データの処理を制御することで、発生したエラーに対処する。 圧縮データを伸張して出力する画像再生装置(100)であって、記録媒体(200)から圧縮データを所定の処理単位毎に単位圧縮データとして読み出す再生部(110)と、単位圧縮データを伸張することで単位伸張データを生成する伸張部(130)と、単位伸張データを含む伸張データを出力する表示処理部(180)と、再生部(110)又は伸張部(130)によって発生するエラーを単位圧縮データ毎に検出するエラー管理部(150)と、エラーが検出された場合に伸張データを出力するか否かを決定する制御部(160)とを備え、伸張データを出力すると決定された場合、制御部(160)は、エラーが検出された単位圧縮データに対応する単位伸張データを補完画像データに補完し、表示処理部(180)は、補完画像データを含む伸張データを出力する。

Description

画像再生装置及び画像再生方法
 本発明は、画像再生装置及び画像再生方法に関し、特に、圧縮された画像データを記録媒体から読み出し、読み出した画像データを伸張する画像再生装置及び画像再生方法に関する。
 従来、画像データは、JPEG(Joint Photographic coding Experts Group)、MPEG(Moving Picture Experts Group)などの符号化規格に基づいて圧縮符号化され、記録媒体などに記録されている。記録媒体に記録されている符号データ(以下、圧縮データとも記載する)のうち、必要な一部分を部分的に読み出して伸張する技術が、例えば、特許文献1に示されている。
 特許文献1に記載の技術では、リスタートマーカーコード(以下、RSTマーカーとも記載する)が含まれた圧縮データからRSTマーカーを検出し、検出したRSTマーカーの位置を伸張開始位置として圧縮データを伸張する。これにより、特許文献1に記載の技術では、圧縮データの一部のみを伸張することができるので、必要なデータをより高速に処理することができる。
 なお、RSTマーカーは、伸張処理などでエラーが発生した場合などに、伸張処理を復帰するための位置を示す符号である。RSTマーカーを用いた伸張の復帰処理を行う技術は、例えば、特許文献2に示されている。
 特許文献2に記載の技術では、エラーが発生した場合、RSTマーカーを検出し、検出したRSTマーカー以降の圧縮データを伸張する。さらに、エラーが発生した箇所には、所定のダミー画像データを補完する。これにより、特許文献2に記載の技術では、画像の復元性を高めている。
特開平8-070432号公報 特開2006-345046号公報
 しかしながら、上記従来の技術では、エラーが発生した際の処理が不十分であるという課題がある。
 例えば、エラーには、記録媒体に記録された符号データそのものが間違っている場合に発生する符号エラーと、記録媒体から符号データを読み出す際に発生する転送エラーとなどがある。上記従来の技術では、エラーの種類などを考慮に入れることなく、エラーが発生した場合は、次のRSTマーカーから圧縮データを伸張し、伸張データを出力するにすぎない。
 つまり、上記従来の技術では、生成した伸張データの処理については固定的で、柔軟な対応をすることができない。
 そこで、本発明は、エラーが発生した場合に得られた伸張データの処理を柔軟に制御し、発生したエラーに対処することができる画像再生装置及び画像再生方法を提供することを目的とする。
 上記の課題を解決するために、本発明の画像再生装置は、圧縮された画像データである圧縮データを伸張して出力する画像再生装置であって、記録媒体から前記圧縮データを所定の処理単位毎に、単位圧縮データとして読み出す再生部と、前記再生部によって読み出された単位圧縮データを伸張することで、伸張された前記処理単位毎の画像データである単位伸張データを生成する伸張部と、前記伸張部によって生成された単位伸張データを含む伸張データを出力する出力部と、前記再生部及び前記伸張部の少なくとも一方によって発生するエラーを、前記単位圧縮データ毎に検出するエラー管理部と、前記エラーが検出された場合に前記伸張データを出力するか否かを決定する制御部とを備え、前記エラーが検出された場合に前記伸張データを出力することが前記制御部によって決定された場合、前記制御部は、前記エラーが検出された単位圧縮データに対応する単位伸張データを所定の補完画像データに補完し、前記出力部は、前記補完画像データを含む前記伸張データを出力する。
 これにより、例えば、エラーが発生した場合であっても画像データを出力すると決定した場合に画像データを出力することで、ユーザは、少しでも画像データを確認することができる。したがって、全く表示させない場合に比べて、どのような画像データを再生しようとしたのか確認することができる。また、逆に、エラーが発生した場合には画像データを出力しないと決定した場合には画像データを出力しないので、ユーザは、エラーが発生したことによる不完全な画像データを確認する必要がなく、正常の画像データのみを確認することができる。このように、エラーが発生した際の処理を適応的に変更することで、エラーを検出した場合の画像データの処理を柔軟に制御し、発生したエラーに対処することができる。
 また、前記画像再生装置は、さらに、前記エラーが検出された場合に前記伸張データを出力するか否かを示す第1ユーザ指示を取得する入力部を備え、前記制御部は、前記第1ユーザ指示に従って、前記エラーが検出された場合に前記伸張データを出力するか否かを決定してもよい。
 これにより、ユーザからの指示を受け付ける入力部を備えるので、ユーザの意向を反映させて、エラーが発生した際の処理を行うことができる。
 また、前記画像再生装置は、さらに、少なくとも1つのバッファを有し、前記再生部によって読み出された単位圧縮データを前記バッファに格納するデータバッファ管理部を備え、前記再生部は、前記記録媒体から読み出した前記単位圧縮データを前記データバッファ管理部に転送し、前記伸張部は、前記バッファに格納された単位圧縮データを読み出し、読み出した単位圧縮データを伸張することで前記単位伸張データを生成し、前記エラー管理部は、前記記録媒体から前記データバッファ管理部への前記単位圧縮データの転送の際に発生する転送エラーを検出する転送エラー管理部と、前記伸張部によって前記バッファから読み出された単位圧縮データの符号エラーを検出する符号エラー管理部とを有してもよい。
 これにより、記録媒体からバッファへの単位圧縮データの転送時にエラー(転送エラー)が発生したのか、読み出された単位圧縮データの符号にエラー(符号エラー)が発生したのか、あるいは、これらの両方のエラーが発生しているのかを判断するので、発生したエラーの種別に応じて適切な処理を行うことができる。
 また、前記再生部は、前記転送エラー管理部によって転送エラーが検出された場合、前記転送エラーが検出された単位圧縮データと同一の処理単位の圧縮データである同一単位圧縮データを前記記録媒体から再度読み出してもよい。
 これにより、転送エラーが発生した場合に同一単位圧縮データを再転送することができるので、転送エラーが発生することなく、正常に単位圧縮データを転送できる可能性を高めることができる。
 また、前記転送エラー管理部は、前記転送エラーを検出した場合、当該転送エラーの回数をカウントし、カウントした回数と所定の閾値とを比較し、比較結果を前記制御部に通知し、前記制御部は、前記比較結果に基づいて、前記カウントした回数が前記閾値を超えるまで、前記再生部に前記同一単位圧縮データの再読み出しを繰り返させ、前記エラーが検出された場合に前記伸張データを出力すると決定した場合であって、かつ、前記カウントした回数が前記閾値を超えたか、又は、前記符号エラー管理部によって符号エラーが検出された場合に、前記エラーが検出された単位圧縮データに対応する単位伸張データを前記補完画像データに補完してもよい。
 これにより、再転送を行う回数(閾値)を決定しておくことで、際限なく再転送が行われることを防ぐことができる。
 また、前記入力部は、さらに、前記閾値を示す第2ユーザ指示を取得し、前記制御部は、前記カウントした回数が、前記第2ユーザ指示が示す閾値を超えるまで、前記再生部に前記同一単位圧縮データの再読み出しを繰り返させてもよい。
 これにより、ユーザが再転送の回数を設定することができる。
 また、前記再生部は、第1アクセス周波数で前記記録媒体にアクセスすることで、前記記録媒体から前記単位圧縮データを読み出し、前記転送エラー管理部によって当該単位圧縮データに転送エラーが検出された場合、前記第1アクセス周波数より低い第2アクセス周波数で前記記録媒体にアクセスすることで、前記同一単位圧縮データを読み出してもよい。
 これにより、再転送時には記録媒体へのアクセス周波数を下げることができるので、正常に単位圧縮データを転送できる可能性を高めることができる。
 また、前記制御部は、1つのフレームを示す圧縮データに含まれる少なくとも2つの単位圧縮データにエラーが発生した場合、又は、少なくとも2つのフレームを示す圧縮データにエラーが発生した場合に、記録媒体が不良であることを示す記録媒体不良画像データを生成し、前記出力部は、前記記録媒体不良画像データを出力してもよい。
 これにより、記録媒体そのものの不良をユーザに提示することができる。
 また、前記制御部は、前記エラーが検出された場合に前記伸張データを出力することを決定した場合、前記エラーが検出された単位圧縮データに対応する単位伸張データを、単一色の画像データ、又は、当該単位伸張データに対応する画像領域の周囲の画像データを用いて補完してもよい。
 これにより、エラーが発生したために欠落した画像領域を他の画像データに補完することができるので、少しでも正常な画像データに類似した画像データを出力することができる。例えば、欠落した画像領域の周囲の画像データを利用して、欠落した画像領域の予測画像を生成することで、より正常な画像データに類似した画像データを出力することができる。
 また、前記入力部は、前記エラーが検出された場合に、前記エラーが検出された単位圧縮データ以降の単位圧縮データを伸張するか否かを示す第3ユーザ指示を取得し、前記制御部は、前記第3ユーザ指示に従って、前記エラーが検出された場合に前記エラーが検出された単位圧縮データ以降の単位圧縮データを伸張するか否かを決定してもよい。
 これにより、エラーが発生した場合であっても伸張処理を継続させるか否かを決定するので、伸張処理を継続させた場合は、伸張処理を中止した場合に比べて、少しでも多くの伸張できた画像データを確認することができる。
 また、前記圧縮データは、アプリケーションマーカーセグメントを含み、前記伸張部は、さらに、前記アプリケーションマーカーセグメントを検出し、前記アプリケーションマーカーセグメントに含まれる単位圧縮データに前記エラーが検出された場合に、前記アプリケーションマーカーセグメントに含まれない単位圧縮データ以降の単位圧縮データを伸張してもよい。
 これにより、アプリケーションマーカーセグメント(以下、APPマーカーと記載)に含まれない画像データを伸張することができるので、出力すべき画像データを生成することができる。なぜなら、画像本体のデータに付加されたデータであるので、APPマーカーに含まれる単位圧縮データにエラーが発生した場合であっても画像本体のデータを伸張することができるためである。
 また、前記圧縮データは、リスタートマーカーコードを含み、前記伸張部は、さらに、前記リスタートマーカーコードを検出し、前記エラーが検出された場合に、前記エラーが検出された処理単位の圧縮データ以降に含まれるリスタートマーカーコード以降の圧縮データを伸張してもよい。
 これにより、RSTマーカー以降の圧縮データを伸張することができるので、エラーにより欠落する画像領域を少なくすることができる。
 また、前記制御部は、予め定められた特定データが検出された場合に検出された特定データ以降の画像データを補完するための所定の特定画像データを決定し、前記伸張部は、さらに、前記特定データの検出処理を行い、前記圧縮データのハフマン符号領域に前記特定データを検出した場合、検出した特定データ以降の画像データを前記制御部によって決定された特定画像データに補完してもよい。
 これにより、圧縮データに埋め込まれた特定データを検出し、特定の画像データに置き換えることができるので、ユーザは、一部分でも伸張できた画像データを確認することができる。
 また、前記画像再生装置は、さらに、記憶部と、複数のフレームから構成される動画像データを第1フレームレートで取得し、前記記憶部に格納する画像取得部と、前記記憶部に格納された動画像データを読み出し、読み出した動画像データを第2フレームレートで圧縮することで、前記圧縮データを生成する圧縮部と、前記圧縮部によって生成された圧縮データを前記記録媒体に記録する記録部とを備え、前記制御部は、さらに、前記第1フレームレートと前記第2フレームレートとを比較し、前記第1フレームレートの方が前記第2フレームレートより速い場合、前記圧縮部による所定フレームの画像データの圧縮処理を中止させ、前記圧縮部は、前記制御部によって前記圧縮処理が中止された場合、前記特定データを前記ハフマン符号領域に埋め込んでもよい。
 これにより、動画像データを取得する際のフレームレートが取得した動画像データを圧縮する際のフレームレートより速い場合は、圧縮処理が間に合わないため、1フレームの画像データに対して可能な範囲で圧縮処理を行った上で特定データを埋め込むことで、少しでも多くの画像データを圧縮することができる。したがって、1フレーム分の画像データを圧縮しない場合に比べて、ユーザは、たとえ一部分でも取得した画像データを確認することができる。
 また、前記画像再生装置は、さらに、前記出力部によって出力された伸張データを表示する表示部を備えてもよい。
 なお、本発明は、画像再生装置として実現できるだけではなく、当該画像再生装置を構成する処理部をステップとする方法として実現することもできる。
 本発明では、エラーが発生した場合に得られた伸張データの処理を柔軟に制御し、発生したエラーに対処することができる。
図1は、実施の形態1の画像再生装置の構成の一例を示すブロック図である。 図2は、エラーが発生しない場合の実施の形態1の画像再生装置の動作概念図である。 図3は、転送エラー発生時に部分的に欠落している画像データを表示しない場合における実施の形態1の画像再生装置の動作概念図である。 図4は、転送エラーが発生した時に部分的に欠落している画像データを表示する場合における実施の形態1の画像再生装置の動作概念図である。 図5は、APPマーカーを読み出し中に転送エラーが発生した場合における実施の形態1の画像再生装置の動作概念図である。 図6は、部分圧縮データを伸張する場合における実施の形態1の画像再生装置の動作概念図である。 図7は、動画伸張時の部分圧縮データの補完処理の概念図である。 図8は、RSTマーカーが挿入されている圧縮データにエラーが発生した場合の補完処理の概念図である。 図9は、実施の形態1の画像再生装置の伸張処理を示すフローチャートである。 図10は、実施の形態1の画像再生装置の転送エラー処理を示すフローチャートである。 図11は、実施の形態1の画像再生装置の符号エラー処理を示すフローチャートである。 図12は、実施の形態1の画像再生装置のエラー画像表示処理を示すフローチャートである。 図13は、実施の形態1の画像再生装置の補完処理を示すフローチャートである。 図14は、実施の形態1の画像再生装置の記録媒体判定処理を示すフローチャートである。 図15は、実施の形態2の画像記録装置の構成の一例を示すブロック図である。 図16は、実施の形態2の画像記録装置の動作概念図である。 図17は、実施の形態2の画像記録装置の圧縮処理を示すフローチャートである。 図18は、本発明の実施の形態の画像再生装置の異なる構成の一例を示すブロック図である。
 以下、図面を参照して本発明の実施の形態を説明する。
 (実施の形態1)
 実施の形態1の画像再生装置は、記録媒体に記録された圧縮画像データを所定の処理単位で読み出し、読み出した圧縮画像データを伸張して出力する画像再生装置である。実施の形態1の画像再生装置は、読み出した圧縮画像データにエラーが発生しているか否かを判定し、エラーが発生していた場合にエラーにより画像の一部が欠落した画像データを出力するか否かを決定することを特徴とする。以下では、まず、実施の形態1の画像再生装置100の構成について、図1を用いて説明する。
 図1は、実施の形態1の画像再生装置100の構成の一例を示すブロック図である。
 図1に示すように、画像再生装置100は、再生部110と、データバッファ管理部120と、伸張部130と、記憶部140と、エラー管理部150と、制御部160と、入力部170と、表示処理部180と、モニタ190とを備える。画像再生装置100は、SDカード、HDD(Hard Disk Drive)といった記録媒体200から圧縮データを読み出し、読み出した圧縮データを伸張することで生成された画像をモニタ190に表示する。なお、記録媒体200には、JPEG又はMPEGなどの符号化規格に基づいて画像データを圧縮することで生成される圧縮データが記録されている。
 再生部110は、記録媒体200から圧縮データを所定の処理単位毎に、単位圧縮データとして読み出す読み出し部である。例えば、再生部110は、記録媒体200の最小読み出し単位であるセクタ単位で圧縮データを読み出し、読み出したセクタ単位の圧縮データをデータバッファ管理部120に転送する。このとき、再生部110は、転送処理によるエラーが発生した場合、エラーが発生した単位圧縮データと同一の処理単位の圧縮データである同一単位圧縮データを記録媒体200から再度読み出す。
 また、再生部110は、所定のアクセス周波数で記録媒体200にアクセスすることで圧縮データを読み出す。なお、再生部110は、制御部160からの制御によってアクセス周波数を変更することができる。例えば、再生部110は、通常時には第1アクセス周波数で記録媒体200にアクセスすることで単位圧縮データを読み出し、再読み出しを行う際は、第1アクセス周波数より低い第2アクセス周波数で記録媒体200にアクセスすることで同一単位圧縮データを読み出す。
 データバッファ管理部120は、少なくとも1つのデータバッファを有し、再生部110によって読み出された単位圧縮データをデータバッファに格納する。実施の形態1では図1に示すように、データバッファ管理部120は、2つのセクタバッファ121及び122を有し、再生部110から転送された圧縮データをセクタ単位でセクタバッファ121及び122に交互に格納する。
 なお、セクタバッファ121及び122は、少なくとも1セクタ分のデータ量を有する圧縮データを記憶可能な記憶部である。また、データバッファ管理部120は、3つ以上のセクタバッファを有してもよい。また、セクタバッファ121及び122は、物理的に異なるバッファメモリでもよく、あるいは、論理的に領域分割された物理的には1つのバッファメモリでもよい。
 伸張部130は、再生部110によって読み出された単位圧縮データを伸張することで、伸張された上記処理単位毎の画像データである単位伸張データを生成する。具体的には、伸張部130は、セクタバッファ121及び122に格納された圧縮データをセクタ単位で読み出し、読み出したセクタ単位の圧縮データを伸張する。そして、伸張部130は、セクタ単位の圧縮データを伸張することで生成されたセクタ単位の伸張データを記憶部140に格納する。
 記憶部140は、伸張データを記憶するメモリなどである。記憶部140は、少なくとも1フレーム分の画像データを記憶することができる。したがって、記憶部140は、伸張部130によって生成された単位伸張データを蓄積することで、1フレーム分の画像データである伸張データを記憶する。
 エラー管理部150は、再生部110及び伸張部130の少なくとも一方によって発生するエラーを単位圧縮データ毎に検出する。具体的には、エラー管理部150は、再生部110及び伸張部130のそれぞれが行う処理中にエラーが発生したか否かを、セクタ単位で判定する。エラー管理部150は、エラーが発生したと判定した場合に、エラーを検出したことを制御部160に通知する。具体的な構成として、図1に示すように、エラー管理部150は、転送エラー管理部151と符号エラー管理部152とを備える。
 転送エラー管理部151は、記録媒体200からデータバッファ管理部120への単位圧縮データの転送の際に発生する転送エラーを検出する。すなわち、転送エラー管理部151は、再生部110による転送の際に発生する転送エラーを検出する。例えば、転送エラー管理部151は、ECC(Error Correction Code)などを用いて転送エラーが発生したか否かを判定する。
 また、転送エラー管理部151は、転送エラーを検出した回数である転送エラー回数をカウントする。さらに、転送エラー管理部151は、カウントした転送エラー回数と所定の閾値とを比較し、比較結果を制御部160に通知する。言い換えると、転送エラー管理部151は、転送エラー回数が所定の閾値を超えるか否かを判定し、判定結果を制御部160に通知する。なお、このときの閾値は、制御部160によって決定される回数であって、例えば、予め定められたデフォルト回数である特定回数、又は、入力部170から入力されるユーザ指示が示すユーザ指定回数などである。
 符号エラー管理部152は、伸張部130によってセクタバッファ121及び122から読み出された単位圧縮データの符号エラーを検出する。例えば、圧縮データのうち画像本体のデータを示すハフマン符号領域中に、ヘッダ、又は出現し得ないデータ(例、FFFFなど)などが含まれていた場合に、符号エラー管理部152は、符号エラーを検出する。
 制御部160は、画像再生装置100に含まれる各処理部に指示を通知することで、画像再生装置100全体の処理を制御する。例えば、制御部160は、入力部170によって取得されたユーザ指示を各処理部に通知する。具体的な指示の詳細については、図2~図6を用いて後述する。
 また、制御部160は、エラー管理部150によってエラー(転送エラー又は符号エラー)が検出された場合に伸張データをモニタ190に表示させるか否かを決定する。伸張データをモニタ190に表示させることを決定した場合、制御部160は、エラーが検出された単位圧縮データに対応する単位伸張データを所定の補完画像データに補完する。
 具体的には、制御部160は、エラーにより欠落した画像領域を補完画像データに補完する。補完画像データは、例えば、欠落した画像領域周辺の画像データ、他の画像データ、又は、特定の単一色の画像データなどである。伸張データをモニタ190に表示させないことを決定した場合、制御部160は、エラーが発生したことを示す伸張不可表示画像データを生成し、モニタ190に表示させる。
 また、制御部160は、記録媒体が良であるか不良であるかを、発生したエラーの回数及びエラーの発生場所に応じて判定する。具体的には、制御部160は、1つのフレームを示す圧縮データに含まれる少なくとも2つの異なる単位圧縮データにエラーが発生した場合、又は、少なくとも2つの異なるフレームを示す圧縮データにエラーが発生した場合に、記録媒体が不良であることを示す記録媒体不良画像データを生成する。
 入力部170は、ユーザからユーザ指示を取得し、取得したユーザ指示を制御部160に送信するユーザインタフェースである。例えば、エラーが検出された場合にその圧縮データを伸張した画像データを出力するか否かを示す第1ユーザ指示、転送エラーが検出された際の再転送の指定回数(リトライ回数)、すなわち、閾値を示す第2ユーザ指示、及び、エラーが検出された場合に、エラーが検出された箇所以降の圧縮データを伸張するか否かを示す第3ユーザ指示などを、入力部170は取得する。
 表示処理部180は、伸張部130によって生成された単位伸張データを含む伸張データを出力する出力部の一例である。具体的には、図1に示すように、表示処理部180は、記憶部140から画像データを読み出し、モニタ190に表示させる。
 モニタ190は、LCD(Liquid Crystal Display)、有機EL(Electro-Luminescence)ディスプレイ、ブラウン管、PDP(Plasma Display Panel)といった画像データを表示する表示部である。
 以上の構成により、実施の形態1の画像再生装置100は、エラーが発生した場合であっても、エラーにより画像の一部が欠落した画像データをモニタ190に表示させるか否かを決定し、表示させると決定した場合には、エラーにより欠落した画像領域を補完して表示する。このときの決定は、入力部170を介してユーザが決定することができるので、エラーが発生した際の対処にユーザの意向を反映させることができる。
 続いて、実施の形態1の画像再生装置100の動作についてエラーが発生するパターンを例に挙げながら説明する。
 まず、図2を用いて、エラーが検出されない場合の画像再生装置100の通常動作について説明する。図2は、エラーが発生しない場合の実施の形態1の画像再生装置100の動作概念図である。
 ユーザは、入力部170より伸張動作の指示(伸張指示)を行う。伸張指示により、制御部160は、記録媒体200からの圧縮データの読み出し開始のための再生指示を再生部110に通知する。再生部110は、制御部160により指示された圧縮データ(“画像データ0”が圧縮された圧縮データ)を記録媒体200から読み出す。記録媒体200からの読み出しは、最小読み出し単位、すなわち、セクタ単位で実施され、記録媒体200からデータバッファ管理部120へと圧縮データが転送される。
 データバッファ管理部120は、セクタ単位の圧縮データを2つのバンク(すなわち、セクタバッファ121とセクタバッファ122)で管理し、最初にバンク1(セクタバッファ121)に最初のセクタ(セクタ0)の圧縮データを格納する。再生部110は、記録媒体200からの読み出し、及び、セクタバッファ121への格納が完了した段階で、セクタ単位の圧縮データの格納が完了したことを割り込み処理により制御部160に通知する。
 制御部160は、そのセクタに対する転送エラーの有無を転送エラー管理部151からの通知により確認する。制御部160は、転送エラーがない場合、伸張部130にそのセクタの圧縮データの伸張指示を行う。伸張部130は、制御部160からの伸張指示に従い、指定されたセクタの圧縮データを伸張する。伸張された画像データは、随時記憶部140に格納していく。
 再生部110により読み出される次のセクタ(セクタ1)の圧縮データは、先程とは異なるセクタバッファ122(この場合では、バンク2)に格納し、圧縮データの上書きを防ぐ。再生部110による読み出し完了と、伸張部130による前のバンクの伸張動作完了とが通知された場合、制御部160は、次のバンクの伸張指示を伸張部130に行う。
 以上の動作を、圧縮データの記録媒体200からの読み出し完了及び伸張動作の完了まで繰り返す。1フレーム分の全ての圧縮データ(セクタ0~セクタn)に対する伸張動作が完了すると、制御部160は、表示処理部180に画像データの表示開始の指示(表示指示)を行う。表示処理部180は、モニタ190の表示タイミングに従って、画像データの出力を行い、モニタ190に表示させる。
 以上のように、実施の形態1の画像再生装置100は、記録媒体200からセクタ単位で圧縮された画像データを読み出す。そして、画像再生装置100は、読み出した圧縮データを伸張し、伸張することで生成された画像データをモニタ190に表示させる。
 次に、図3を用いて、記録媒体200からデータバッファ管理部120への転送処理中に転送エラーが発生した場合の動作のうち、転送エラーにより部分的に欠落した画像を、転送エラーが発生した場合には表示させない場合の動作について説明する。図3は、転送エラー発生時に部分的に欠落している画像データを表示しない場合における実施の形態1の画像再生装置100の動作概念図である。なお、図3に示す例では、セクタ2の圧縮データを転送中に転送エラーが発生した場合を想定する。
 この場合、予め伸張開始時に、ユーザによりエラー発生時のリトライ回数(指定回数)の設定(図3の例では、2回)、エラー発生時の画像データの非表示の設定とを行っている。転送エラーが発生するまでの動作は、図2に示す通常動作時と同じである。
 転送エラー管理部151は、再生部110によって転送された圧縮データに転送エラーを検出した場合、転送エラーが発生したこと(図3に示す“セクタ2転送エラー”)を制御部160に通知する。このとき、転送エラー管理部151は、転送エラー回数をカウントし、カウントした転送エラー回数と指定回数とを比較し、比較結果も制御部160に通知する。
 制御部160は、転送エラー回数が指定回数を超えていなければ、同一セクタ、すなわち、転送エラーが発生したセクタ(ここでは、セクタ2)の圧縮データの記録媒体200からの読み出しを再生部110に指示する(リトライ処理)。転送エラー回数が指定回数を超えていた場合、制御部160は、転送エラーが発生したセクタの処理を中止し、伸張不可である旨を表示する伸張不可表示画像データを作成する。
 そして、制御部160は、作成した伸張不可表示画像データを記憶部140に格納し、表示処理部180にその画像データの表示指示を行う。表示処理部180は、表示指示に従って、記憶部140から伸張不可表示画像データを読み出し、モニタ190に表示する。
 以上のように、実施の形態1の画像再生装置100は、転送エラーが発生し、かつ、発生した転送エラーの回数である転送エラー回数が閾値(指定回数)を超えた場合には、伸張不可表示画像データをモニタ190に表示させる。つまり、モニタ190には、例えば、“エラーが発生しました”、あるいは、“データ読み出し時にエラーが発生したため、画像の表示ができません”などのメッセージが表示される。
 なお、エラー時表示不可の設定時に符号エラーが発生した場合は、リトライは実行せず、制御部160は、図3の転送エラー回数が指定回数を超えた以降と同じ処理を実施する。
 続いて、図4を用いて、記録媒体200からデータバッファ管理部120への転送処理中に転送エラーが発生し、転送エラーが発生した場合であっても転送エラーにより部分的に欠落している画像を表示させる場合の動作について説明する。図4は、転送エラーが発生した時に部分的に欠落している画像データを表示する場合における実施の形態1の画像再生装置100の動作概念図である。なお、圧縮データには、RSTマーカーが含まれているとする。
 この場合、予め伸張開始時に、ユーザによりエラー発生時のリトライ回数(指定回数)の設定(図4の例では、1回)、エラー発生時の画像データの表示の設定とを行っている。転送エラー回数が指定回数を超えるまでの動作は、図3に示す動作と同じである。
 エラー検出時の画像データの表示の設定がなされた場合、転送エラーが発生しているセクタ(セクタ2)を含む圧縮データを、伸張部130が伸張する。すなわち、転送エラーの検出の有無に関わらず、伸張部130は全てのセクタの圧縮データを伸張する。
 ただし、転送エラーの発生したセクタの圧縮データは、正常なデータではないため、符号エラーを起こす可能性が高い。制御部160は、符号エラー管理部152により符号エラーが通知されると、符号エラーが発生した箇所以降で、RSTマーカーが挿入されている箇所の圧縮データ(図4の例では、セクタ3)から伸張動作を実施するように伸張部130に指示する。
 以上の動作を圧縮データの記録媒体200からの読み出し完了及び伸張動作の完了まで繰り返す。なお、圧縮データの最後のRSTマーカー以降の圧縮データに対する伸張処理で符号エラーが発生した場合は、その時点で伸張完了とする。
 伸張完了を受けて、制御部160は、表示処理部180に表示開始の指示(表示指示)を行う。表示処理部180は、記憶部140から部分的に欠落した画像データを読み出し、モニタ190に表示する。
 以上のように、実施の形態1の画像再生装置100は、転送エラーが発生し、かつ、発生した転送エラーの回数である転送エラー回数が閾値(指定回数)を超えた場合には、部分的に欠落している画像データをモニタ190に表示させる。このとき、後述するように、欠落している画像領域は、制御部160によって所定の補完画像データに補完されている。
 また、圧縮データにRSTマーカーが含まれる場合、RSTマーカー単位で伸張動作が確実に復帰するため、より画像データの再現性が高くなる。RSTマーカーによるエラーデータの伸張動作の復帰処理については、特許文献2などにも記載されており、周知であるため説明を割愛する。
 なお、図4に示すように、表示処理部180が記憶部140から読み出すまでの間に、伸張部130の伸張完了が行うことができれば、伸張部130による伸張完了を待つ必要はなく、表示指示を先に通知してもよい。
 なお、圧縮データにRSTマーカーが含まれない場合は、符号エラーが発生した箇所以降の圧縮データを伸張することができない。このため、制御部160は、符号エラーが検出された場合、表示処理部180に表示指示を通知する。
 次に、図5を用いて、APPマーカーに含まれる単位圧縮データを読み出し中に転送エラーが発生した場合の動作について説明する。図5は、APPマーカーを読み出し中に転送エラーが発生した場合における実施の形態1の画像再生装置100の動作概念図である。なお、APPマーカーは、JPEG規格で定められた圧縮データに任意で付加されるデータである。したがって、APPマーカーを正しく伸張できない場合であっても、本体の画像データには影響がない。
 図5に示す例では、既に伸張動作が開始されており、APPマーカーがセクタa+nまで含まれており、本体の画像データはセクタb以降に含まれている場合の動作を示している。したがって、APPマーカーの読み飛ばしのため、伸張部130は、セクタb以降で画像データ(伸張データ)を記憶部140に出力している。
 図5に示すように、セクタa+1にて転送エラー管理部151が転送エラーを検出した場合でも、制御部160は伸張動作を停止することはない。積算した再生部110での読み出しセクタ数がAPPマーカー長を超えたところ(図5の例では、セクタb)から伸張部130にて伸張動作を実施する。
 また、制御部160は、伸張動作を実施させたのち、転送エラーが発生したことをユーザに知らせるために、転送エラーが発生したことを示す画像データ又は文字データを生成してもよい。生成した画像データ又は文字データは、表示処理部180を介してモニタ190に出力し、モニタ190は転送エラーが発生したことを示す画像データ又は文字データを表示する。例えば、モニタ190には、“転送エラーが発生しました”などのメッセージが表示される。
 以上のように、実施の形態1の画像再生装置100は、APPマーカーを読み出し中に転送エラーが発生した場合であっても伸張動作を停止することなく、APPマーカーが終了した箇所以降の圧縮データ、すなわち、APPマーカーに含まれない単位圧縮データ以降の単位圧縮データを伸張する。これにより、APPマーカーといった圧縮データの付属情報の転送エラーによる伸張停止をしないことで、画像データ本体にエラーがなければ、伸張処理を実施することができる。なお、実施の形態1の画像再生装置100が伸張動作を継続するのは、APPマーカーに限らず、画像データ本体以外の付属情報の読み出し時に転送エラーが発生した場合でもよい。
 次に、図6を用いて、圧縮時に圧縮処理が中断されたことなどによる不完全な圧縮データを伸張する場合の動作について説明する。図6は、圧縮処理が中断されたことなどによる不完全な圧縮データ(以下、部分圧縮データ)を伸張する場合における実施の形態1の画像再生装置100の動作概念図である。このとき、部分圧縮データには、圧縮処理が中断されたこと、すなわち、データが不完全であることを示す特定のデータ(以下、特定コード)が付加される。
 ユーザは、入力部170にて圧縮データの一部に特定のデータが埋め込まれている部分圧縮データの再生を許可して伸張の指示を行う。制御部160は、伸張部130に特定コードを設定することで、伸張部130は特定コードを検出すると伸張動作を停止する。そして、残りのデータを伸張する代わりに、例えば、黒や青といった特定の画像データを既に伸張済みの伸張データに続けて出力する。
 図6に示す例では、セクタ2に特定コードが存在し、伸張部130は、特定コードを検出した後、記憶部140に特定の画像データの書き込みを行う。伸張部130は、本来存在すべき画像データのサイズ分の特定の画像データを記憶部140に書き込み終えたとき、制御部160へ伸張完了割り込みを出力する。制御部160は、表示処理部180へ部分的に欠落した画像データの表示を行うように指示を行う。
 図7は、動画伸張時の部分圧縮データの補完処理の概念図である。同図に示す例では、動画像は、正常に圧縮された1フレーム分の画像データ300と、画像データ300の次のフレームの画像データであって、特定データ(特定コード)を含む画像データ310とを含んでいる。ここで、画像データ300は、正常に伸張されるものとする。
 また、特定コードとは、例えば、特定の画像データを指定するための符号データである。一例として、特定コードは、FFFFFFFFFF55A030といったように、JPEGデータでは無効データである“FF”を特定個数続け(この場合10個)、その後にY、Cb、Crの順で特定の画像データ(この場合、Y=8’h55、Cb=8’hA0、Cr=8’h30)を続けたデータである。
 なお、通常、動画像の場合、近隣のフレームは似通っていることが多いため、画像データの再現性を高めるために近隣フレームの情報を活用する。また、動画像に限らず、静止画の高速連写時も同様に、前回の撮影画像と、今回の撮影画像との相関が高いものについては、近隣フレームの情報を活用することができる。
 一般的に、画像データのハフマン符号領域中に、つまり、画像の終端を示すEOI(End of Image)“FFD9”検出までに特定データがあった場合、ハフマン復号化エラーとなるが、既にエラーで再生不可の画像に対して特定コードの挿入を行っているので、この特定コードにより再生できないといったデメリットはない。
 また、従来はエラーを検出したフレームについては表示せず、前のフレームを継続して表示するか、ブラックアウトする。しかしながら、本実施の形態では、部分圧縮データである画像データ310を表示することも可能である。
 画像データ310では、図7中“特定色”と記載した画像領域311を、圧縮時に作成した特定の画像データによって塗りつぶしている。これにより、一部の画像が欠けているが、少しでも画像の変化を確認することができる。
 また、画像データ310の欠落した画像領域を補完する際に、画像データ310に類似する画像データ(ここでは、直前フレームである画像データ300)を利用する場合、制御部160は、直前の画像データ300から、画像データ310に対応した仮想画像データ320を作成する。図7に示す例は、線路上を走る電車から撮影された動画像であり、画像データ300の枠301が次のフレーム(画像データ310)に対応した領域であるため、枠内を拡大することで仮想画像データ320を作成する。
 なお、このとき、枠301は、例えば、撮影時の画角情報、動画像のフレームレート、及び、電車の速度情報又はGPS(Global Positioning System)情報などを用いて決定される。
 そして、画像データ310の特定データで構成されている欠落部分(図7中、画像領域311)に、仮想画像データ320の同じ画像位置のデータ(図7中、点線で示す枠321)をはめ込んで補完していく。これにより、画像データ310より再現性の高い画像データ330を得ることができる。
 また、図8は、RSTマーカーが挿入されている圧縮データにエラーが発生した場合の補完処理の概念図である。画像データ400は、エラーの発生した領域を除いて伸張した画像データ、すなわち、部分的に伸張した画像データをモニタ190に表示した例である。エラーにより画像データの一部の領域が欠落しているが、RSTマーカーが存在していると、エラーの発生した次のRSTマーカーからの正常な伸張が行えるため、正常に伸張できている箇所から画像データは復帰している。
 この画像データ400に対し、図7と同様に他の画像データで補完した結果得られる画像データが画像データ410である。また、欠落した画像データ領域を特定データ、この場合グレー(Y=8’h55、Cb=8’h80、Cr=8’h80)の画像データで塗りつぶすことで得られる画像データが画像データ420である。いずれの場合も、エラーが発生して全くモニタ190に表示できないことに比べると、もとの画像データを確認しやすくなっている。
 なお、他の画像データで補完する代わりに、欠落領域の周囲の画像データから欠落領域を補完してもよい。
 続いて、実施の形態1の画像再生装置100の動作について図を用いて説明する。
 図9は、実施の形態1の画像再生装置100の伸張処理を示すフローチャートである。
 入力部170から入力される伸張指示に基づいて伸張処理を開始すると、制御部160は、再生部110に、記録媒体200から圧縮データの転送処理を実施するための再生指示を通知する。これにより、再生部110は、記録媒体200からセクタ単位で圧縮データを読み出す(S101)。読み出された圧縮データは、データバッファ管理部120によって、セクタバッファ121及び122のいずれかに格納される。
 再生部110が記録媒体200からセクタ単位の圧縮データを読み出す際、転送エラー管理部151は、読み出した圧縮データに転送エラーが発生しているか否かを確認する(S102)。転送エラー管理部151が転送エラーを検出しなかった場合(S102でNO)、制御部160は、伸張部130にセクタバッファ121又は122内の圧縮データの伸張を指示する(伸張指示を通知する)。伸張部130は、圧縮データをセクタバッファ121又は122から読み出し、読み出した圧縮データの伸張動作を開始する(S103)。
 そして、符号エラー管理部152は、圧縮データの符号に符号エラーがないかを確認する(S104)。符号エラーを検出しなかった場合(S104でNO)、制御部160は、伸張対象の圧縮データの伸張処理が完了したか否かを検出する(S105)。伸張処理が完了でなければ(S105でNO)、記録媒体200から続きのセクタの圧縮データを読み出す(S101に戻る)。
 伸張処理が完了の場合は(S105でYES)、伸張処理を完了する。なお、伸張部130が圧縮データを伸張することで生成された伸張データは、記憶部140に記憶される。そして、表示処理部180は、伸張データを記憶部140から読み出し、モニタ190に表示させる。
 転送エラー管理部151が、転送エラーを検出した場合(S102でYES)、画像再生装置100は、転送エラー処理を行う(S107)。以下では、図10を用いて、転送エラー処理の詳細について説明する。
 図10は、実施の形態1の画像再生装置100の転送エラー処理(図9のS107)を示すフローチャートである。なお、ここで転送エラー処理とは、転送エラーが発生した際に画像再生装置100が行う処理であって、例えば、図3~図5を用いて説明した処理である。
 まず、転送エラー管理部151は、転送エラー回数をカウントする(S201)。次に、転送エラー管理部151は、転送エラー回数の閾値が設定されているか否かを判定する(S202)。すなわち、転送エラー管理部151は、転送エラー回数の閾値を示すユーザ指示を入力部170が取得し、かつ、当該ユーザ指示に基づいて制御部160によって転送エラー回数の閾値(指定回数)として設定されているか否かを判定する。
 転送エラー回数の閾値が設定されていなければ(S202でNO)、転送エラー管理部151は、特定回数と先程の転送エラー回数のカウント数とを比較する(S203)。比較結果は、制御部160に通知される。なお、特定回数とは、予め定められたデフォルトの閾値である。
 転送エラー回数の閾値が設定されていれば(S202でYES)、転送エラー管理部151は、指定回数と転送エラー回数のカウント数とを比較する(S204)。比較結果は、制御部160に通知される。
 そして、制御部160は、比較結果から再転送処理(記録媒体200からの転送処理の再実施、すなわち、リトライ処理)を行うか否かを判断する(S205)。具体的には、制御部160は、転送エラー回数のカウント数が、特定回数又は指定回数を超えているか否かを判定し、超えている場合は、再転送処理を行わないと判定する。制御部160は、カウント数が特定回数又は指定回数以下である場合は、再転送処理を行うと判定する。
 以上の処理により、転送エラー処理は終了する。以下では、図9に戻り、転送エラー処理以降の処理について説明する。
 転送エラー処理(S107)の結果に基づいて、リトライ処理(再転送処理)を行わないと判定した場合(S108でNO)、画像再生装置100は、エラー画像表示処理を行う(S113)。エラー画像表示処理の詳細については、図12を用いて後述する。
 また、リトライを行うと判定した場合(S108でYES)、制御部160は、記録媒体200へのアクセス周波数が下げられるかどうかの判断を実施する(S109)。アクセス周波数が下げられる場合(S109でYES)、制御部160は、再生部110に記録媒体200へのアクセス周波数を下げて再転送処理を行うように指示し、再生部110は、制御部160からの指示に従ってアクセス周波数を下げる(S110)。再生部110は、下げられたアクセス周波数で記録媒体200に再度アクセスすることで、同一セクタの圧縮データを記録媒体200から読み出す(S111)。
 アクセス周波数が下げられない場合(S109でNO)、制御部160は、再生部110に同一セクタの再転送処理の指示を通知し、再生部110は、同じアクセス周波数で記録媒体200に再度アクセスすることで、同一セクタの圧縮データを記録媒体200から読み出す(S111)。
 そして、転送エラー管理部151は、読み出された圧縮データに転送エラーが発生したか否かを判定し(S102)、画像再生装置100は、上述の処理を繰り返す。
 符号エラー管理部152が符号エラーを検出した場合(S104でYES)、画像再生装置100は、符号エラー処理を行う(S112)。以下では、図11を用いて、符号エラー処理の詳細について説明する。
 図11は、実施の形態1の画像再生装置100の符号エラー処理(図9のS112)を示すフローチャートである。なお、ここで符号エラー処理とは、符号エラーが発生した際に画像再生装置100が行う処理である。
 符号エラー処理では、まず、制御部160が、圧縮データのハフマン符号領域中に埋め込まれた特定データの検出が設定されているか否かを判別する(S301)。特定データの検出を行う設定であった場合(S301でYES)、制御部160は、伸張部130に特定画像データの出力を設定し、残りの画像データに対応する画像データとして、例えば黒、グレーといった特定色の画像データを出力する(S302)。画像データサイズ分(1フレーム分)の画像データを出力し終えた段階で符号エラー処理を完了する。
 特定データの検出を行わない設定であった場合(S301でNO)、制御部160は、伸張処理の継続が設定されているかどうかを判別する(S303)。伸張処理の継続が設定されていない場合は(S303でNO)、画像再生装置100は、符号エラー処理を完了する。
 伸張処理の継続が設定されている場合は(S303でYES)、伸張部130は、この圧縮データにRSTマーカーが挿入されているか否かを検出する(S304)。RSTマーカーが挿入されていれば(S304でYES)、制御部160は、伸張部130に、次のRSTマーカーまで圧縮データを読み飛ばすように設定する(S305)。伸張部130は、再生部110がセクタバッファ121又は122に格納した圧縮データのうち、次のRSTマーカーを検出するまで、伸張動作を行わない。
 次に、制御部160は、伸張部130によるハフマン復号化処理が可能か否かを判定する(S306)。RSTマーカー単位で処理する場合は(S306でYES)、ハフマン復号化処理が可能なので、次のセクタの圧縮データを読み出すために、再生部110は、記録媒体200からの転送処理を行う(S307)。以降は、画像再生装置100は、転送エラー判定処理(図9のS102)から処理を繰り返す。
 また、RSTマーカーが挿入されていない場合(S304でNO)であっても、符号エラーとなった圧縮データの中には、ハフマン復号化処理が可能なものもあるため、制御部160は、伸張部130によるハフマン復号化処理が可能であるか否かを判定する(S306)。ハフマン復号化処理が可能である場合(S306でYES)、同様に再生部110は、記録媒体200からの転送処理を行う(S307)。以降は、画像再生装置100は、転送エラー判定処理(図9のS102)から処理を繰り返す。
 ハフマン復号化処理ができない場合(S306でNO)、画像再生装置100は、符号エラー処理を完了し、エラー画像表示処理を行う(図9のS113)。以下では、図12を用いて、エラー画像表示処理の詳細について説明する。
 図12は、実施の形態1の画像再生装置100のエラー画像表示処理(図9のS113)を示すフローチャートである。なお、ここでエラー画像表示処理とは、転送エラー又は符号エラーなどのエラーが発生した際の画像の表示処理である。
 ここでは、まず制御部160は、エラーが発生した圧縮データに対してモニタ190での表示を行うように設定されているかどうかを判定する(S401)。エラーが発生した圧縮データを伸張することで得られる画像データを表示する設定であった場合(S401でYES)、制御部160は、エラーが発生する途中まで伸張した画像データを表示するために、表示処理部180に記憶部140に格納されている画像データをモニタ190へ出力するように設定する(S402)。画像再生装置100は、エラー画像表示処理を完了し、補完処理(図9のS114)を行う。
 また、エラーが発生した圧縮データを伸張することで得られる画像データを表示しない設定であった場合(S401でNO)、制御部160は、記憶部140にエラー表示画像データ(例えば、“このファイルは再生できません”といった文字を表示するための画像データ)を作成し、表示処理部180に記憶部140に格納されているエラー表示画像データをモニタ190へ出力するように設定する(S403)。そして、画像再生装置100は、エラー画像表示処理を完了し、補完処理(図9のS114)を行う。なお、表示処理部180は、モニタ190の表示タイミングに従って、エラー画像データ又はエラー表示画像データを出力する。
 以下では、図13を用いて、補完処理の詳細について説明する。
 図13は、実施の形態1の画像再生装置100の補完処理(図9のS114)を示すフローチャートである。なお、ここで補完処理とは、エラーが発生したことにより欠落した画像データを補完する処理である。
 まず、制御部160は、補完処理が設定されているか否かを判定する(S501)。補完処理が設定されていない場合(S501でNO)、制御部160は、欠落画像領域の塗りつぶし処理が設定されているか否かを判定する(S502)。塗りつぶし処理が設定されていない場合(S502でNO)、画像再生装置100は、補完処理を完了する。
 塗りつぶし処理が設定されている場合(S502でYES)、制御部160は、記憶部140に記憶されている画像データの欠落した画像領域を、例えば黒、グレー、黄といった画像データで塗りつぶす(S503)。この塗りつぶし処理により生成される画像は、例えば、図8の画像データ420に相当する。塗りつぶし処理が完了すれば、画像再生装置100は、補完処理を完了する。
 また、補完処理が設定されている場合(S501でYES)、制御部160は、同一画像データ内の画像データを用いた補完処理が設定されているか否かを判定する(S504)。同一画像データ内での補完を行う設定であった場合(S504でYES)、制御部160は、欠落した画像領域の周辺の画像から、欠落した画像領域の画像データを生成することで、欠落画像データの補完を行う(S505)。そして、画像再生装置100は、補完処理を完了する。
 同一画像データ内での補完を行わない設定であった場合(S504でNO)、制御部160は、他の画像データを利用することができるか否かを判定する(S506)。具体的には、制御部160は、記録媒体200や記憶部140にエラーの発生した圧縮データ以外の他の圧縮データや画像データが記憶されているか否かを判別する。ここで他の画像データとは、例えば、1フレーム前若しくは後の画像、又は、同じ場所及び時間で連写撮影された画像など、エラーが発生した画像データに類似する画像データである。
 他の画像データがなかった場合(S506でNO)、制御部160は、補完するための他の画像データが存在しない旨を通知する(S507)。具体的には、制御部160は、記憶部140にファイル無し表示画像データ(例えば、“他のファイルがないため、補完できません”といった文字を表示するための画像データ)を作成し、表示処理部180に記憶部140に格納されているファイル無し表示画像データをモニタ190へ出力するように設定する。そして、画像再生装置100は、補完処理を完了する。
 なお、このとき、他の画像データが無かった場合(S506でNO)、ファイル無し表示画像データを表示させる代わりに、欠落した画像領域を単一色の画像データで塗りつぶしてもよい。
 他の画像データがあった場合(S506でYES)、制御部160は、他の画像データの欠落した画像領域に相当する部分の画像データから、欠落した画像領域の画像データを生成することで、欠落画像データの補完を行う(S508)。この補完により生成される画像は、例えば、図8の画像データ410に相当する。そして、画像再生装置100は、補完処理を完了する。
 以上のようにして、補完処理が完了すれば、画像再生装置100は、記録媒体判定処理(S115)を行う。以下では、図14を用いて、記録媒体判定処理の詳細について説明する。
 図14は、実施の形態1の画像再生装置100の記録媒体判定処理を示すフローチャートである。なお、ここで記録媒体判定処理とは、読み出し対象の圧縮データを記録している記録媒体200の良又は不良を判定する処理である。
 まず制御部160は、同一圧縮データ(同一フレームを示す圧縮データ)内の他のセクタでエラーがあったかどうかを判定する(S601)。同一圧縮データ内の他のセクタでエラーがなかった場合(S601でNO)、制御部160は、同一の記録媒体200で他の圧縮データ(他のフレームを示す圧縮データ)のエラーがあったかどうかを判定する(S602)。同一の記録媒体200で他の圧縮データのエラーがなかった場合(S602でNO)、制御部160は、記録媒体200は正常であると判断し、画像再生装置100は、記録媒体判定処理を完了する。
 同一圧縮データ内の他のセクタでエラーがあった場合(S601でYES)、又は、同一の記録媒体200内の他の圧縮データでエラーがあった場合(S602でYES)、記録媒体200が不良である旨を通知する画像をモニタ190に表示する(S603)。具体的には、制御部160は、記憶部140に記録媒体エラー表示画像データ(例えば“このメモリカードは壊れており、再生できません”といった文字を表示するための画像データ)を作成し、表示処理部180に記憶部140に格納されている記録媒体エラー表示画像データをモニタ190へ出力するように設定する。そして、画像再生装置100は、記録媒体判定処理を完了する。記録媒体判定処理(S115)が完了すれば、画像再生装置100は、伸張処理を完了する。
 以上のように、実施の形態1の画像再生装置100は、読み出した圧縮画像データにエラーが発生しているか否かを判定し、発生したエラーの種別及び回数などに応じて、エラーへの対応を変更する。
 例えば、画像再生装置100は、エラーが発生した場合に画像データを表示させるか否かを決定するので、エラーが発生した場合であっても、エラーにより部分的に欠けた画像データをモニタ190に表示させることができる。
 また、転送エラーが発生した場合は、記録媒体200からの再転送を行うことができる。このときの再転送を行うか否か、及びその回数などを、入力部170を介してユーザが設定することができる。
 このように、実施の形態1の画像再生装置100は、エラーが発生した場合に、得られている伸張データを柔軟に処理することができる。
 (実施の形態2)
 実施の形態2の画像記録装置は、動画像データを取り込む際のフレームレート(取り込みフレームレート)と、取り込んだ動画像データを圧縮する際のフレームレート(圧縮フレームレート)とを比較する。そして、比較の結果、取り込みフレームレートが圧縮フレームレートより速い場合に、1つのフレームに対する圧縮処理を途中で中断し、特定データをハフマン符号領域に埋め込むことにより、部分的に正常に圧縮されたデータと特定データとを含む圧縮データを記録媒体に記録する。以下では、まず、実施の形態2の画像記録装置の構成について図15を用いて説明する。
 図15は、実施の形態2の画像記録装置500の構成の一例を示すブロック図である。
 図15に示すように、画像記録装置500は、記録部510と、データバッファ管理部520と、圧縮部530と、記憶部540と、制御部560と、入力部570と、画像処理部580と、センサ590とを備える。画像記録装置500は、センサ590によって取得された画像データを圧縮し、圧縮した画像データをSDカード、HDDなどの記録媒体600に記録する。
 センサ590は、CCD(Charge Coupled Device)、CMOS(Complementary Metal Oxide Semiconductor)などのイメージセンサである。センサ590は、被写体を撮像することでRAWデータを取得する。RAWデータは、例えば、RGBデータである。
 記憶部540は、画像処理部580によって変換された画像データを格納するメモリである。
 画像処理部580は、センサ590によって取得されたRAWデータを画像データに変換し、記憶部540に格納する。ここで、画像データとは、輝度情報(Y)、及び色差情報(Cb、Cr)で構成される画像データである。
 圧縮部530は、記憶部540から画像データを読み出し、読み出した画像データをJPEG規格に基づいて圧縮する。圧縮された画像データである圧縮データは、データバッファ管理部520に出力される。
 また、圧縮部530は、特定データ生成部531を備える。特定データ生成部531は、制御部560から圧縮処理の中止指示が通知された場合に、制御部560によって定められた特定データを圧縮データに付加する。圧縮部530は、正常に圧縮されたデータと、特定データとを含む圧縮データをデータバッファ管理部520に出力する。
 データバッファ管理部520は、データバッファ521を有し、圧縮部530から出力される圧縮データを記録媒体600の最小読み出し単位でデータバッファ521に格納する。なお、図15は、データバッファ管理部520は、1つのデータバッファ521を備える構成を示しているが、データバッファ管理部520は、1つ以上のデータバッファを備えてもよい。
 記録部510は、データバッファ管理部520から記録媒体600に圧縮データを書き込む。
 制御部560は、画像記録装置500に含まれる各処理部に指示を通知することで、画像記録装置500全体の処理を制御する。例えば、制御部560は、入力部570によって取得されたユーザ指示を各処理部に通知する。
 例えば、制御部560は、画像処理部580がセンサ590からRAWデータを取り込み、画像データに変換して記憶部540に記憶する際の取り込みフレームレートと、圧縮部530が記憶部540から画像データを読み出し、圧縮する際の圧縮フレームレートとを比較する。制御部560は、取り込みフレームレートが圧縮フレームレートよりも速い場合に、圧縮処理が間に合わないと判断して圧縮中止指示を圧縮部530に通知する。具体的には、制御部560は、1フレームの圧縮処理中に入力部570から2つ以上の圧縮指示が入力された際に、圧縮処理が間に合わないと判断する。
 入力部570は、ユーザからユーザ指示を取得し、取得したユーザ指示を制御部560に送信するユーザインタフェースである。例えば、入力部570は、画像記録装置500によるデータの取り込みから圧縮して記録媒体600に記録するまでの一連の処理の開始を示す圧縮指示を、ユーザから取得する。
 以上の構成により、実施の形態2の画像記録装置500は、取り込みフレームレートと圧縮フレームレートとの比較を行い、取り込みフレームレートが圧縮フレームレートより速い場合は、1フレームの圧縮処理を中止するとともに、特定データをハフマン符号領域に埋め込む。これにより、従来では1フレーム分の画像データを圧縮及び記録しなかった場合に比べて、たとえ一部分であっても画像データを圧縮及び記録することができる。
 続いて、取り込みフレームレートが圧縮フレームレートより速い場合の画像記録装置500の動作について、図16を用いて説明する。
 図16は、実施の形態2の画像記録装置500の動作概念図である。
 ユーザは、入力部570より圧縮指示を行い、制御部560は、センサ590へ露光開始の撮影指示を送信する。センサ590にて露光完了後、RAWデータを記憶部540に取り込むため、制御部560は、センサ590、画像処理部580に取り込み指示を送信する。これにより、センサ590からRAWデータが出力され、画像処理部580は、RAWデータを輝度情報及び色差情報から構成される画像データに変換し、変換した画像データを記憶部540へ格納する。
 圧縮部530は、記憶部540に格納された画像データを圧縮し、圧縮した画像データをデータバッファ管理部520内のデータバッファ521に格納する。記録部510は、データバッファ521に格納された圧縮データを読み出して、記録媒体600に記録する。
 図16では、センサ590からのデータを取り込む際の取り込みフレームレート(図16中の撮影指示から次の撮影指示までの間隔)と、圧縮処理の圧縮フレームレート(図16中の圧縮部530の1つ1つの枠)とを比較すると、センサ590からの取り込みフレームレートの方が速い。そのため、圧縮部530は、リアルタイムに処理ができなくなってしまう。
 通常、圧縮部530で処理するフレームをスキップさせることで、取り込み処理と圧縮処理との整合性を取る。すなわち、1フレーム分の画像データの圧縮処理をスキップするので、1フレーム分の画像データが記録されない。しかしながら、図16の例では、なるべく全てのフレームの情報を少しでも多く残すために、圧縮部530は、少しでも圧縮処理を行っている。
 このときの、圧縮処理を中断し、特定データの書き込み処理を行うか否かの判断基準として、制御部560は、圧縮部530が1フレームの画像データの圧縮動作中に、入力部570から入力される圧縮指示が1つであれば、圧縮処理が間に合っていると判断する。逆に、1フレームの画像データの圧縮処理中に、入力部570が複数の圧縮指示を取得した場合、制御部560は、圧縮処理が遅延していると判断し、その時点で圧縮処理を中止させる。
 例えば、図16に示すように、圧縮部530の“圧縮2”のように、圧縮処理中に2つの圧縮指示が入ると、圧縮動作が遅延していると判断する。制御部560は、圧縮動作が遅延している場合、圧縮部530に圧縮中止指示を通知することでその圧縮動作を中止させて、リアルタイム処理の整合性を取る。このとき、圧縮部530は、圧縮処理を中止するとともに、途中まで生成した圧縮データに続けて、制御部560によって予め定められた特定データを付加してデータバッファ管理部520へと出力する。記録部510は、記録媒体600へ、特定データを含む部分圧縮データを記録する。
 続いて、実施の形態2の画像記録装置500の動作について図17を用いて説明する。図17は、実施の形態2の画像記録装置500の圧縮処理を示すフローチャートである。
 実施の形態2の画像記録装置500は、入力部570から入力される圧縮指示に基づいて圧縮処理を開始する。圧縮処理が開始されると、図16に示すように、制御部560の制御に従って、センサ590はRAWデータを取得し、画像処理部580はRAWデータを画像データに変換し、記憶部540に格納する。そして、圧縮部530は、記憶部540に格納された画像データを圧縮し、記録部510は圧縮データを記録媒体600に記録する。
 このとき図17に示すように、制御部560は、取り込みフレームレートと圧縮フレームレートとを比較する(S701)。取り込みフレームレートの方が速かった場合(S701でYES)、制御部560は、圧縮部530に圧縮処理の中断指示を通知する。このとき、制御部560は、圧縮部530に特定データの埋め込み設定を行う。圧縮部530は、正常に圧縮した圧縮データに続けて、制御部560によって決定された特定データの埋め込みを行う(S702)。
 また、圧縮フレームレートの方が常に速い場合(S701でNO)、制御部560は、圧縮処理の完了を判別する(S703)。圧縮部530による圧縮処理の完了を確認した場合(S703でYES)、画像記録装置500は、圧縮処理を完了する。
 以上のように、実施の形態2の画像記録装置500は、取り込みフレームレートと圧縮フレームレートとの比較を行い、取り込みフレームレートが圧縮フレームレートより速い場合は、1フレームの圧縮処理を中止するとともに、特定データを埋め込む。これにより、従来では1フレーム分の画像データを圧縮及び記録しなかった場合に比べて、たとえ一部分であっても画像データを圧縮及び記録することができる。
 以上、本発明の画像再生装置及び画像再生方法について、実施の形態に基づいて説明したが、本発明は、これらの実施の形態に限定されるものではない。本発明の趣旨を逸脱しない限り、当業者が思いつく各種変形を当該実施の形態に施したものや、異なる実施の形態における構成要素を組み合わせて構築される形態も、本発明の範囲内に含まれる。
 例えば、本発明は、上述の画像再生装置100と画像記録装置500とを組み合わせた撮像装置であってもよい。図18は、本発明の実施の形態の画像再生装置の異なる構成の一例を示すブロック図である。
 図18に示す画像再生装置700は、再生部110と、伸張部130と、エラー管理部150と、表示処理部180と、モニタ190と、記録部510と、圧縮部530と、画像処理部580と、センサ590と、データバッファ管理部720と、記憶部740と、制御部760と、入力部770とを備える。図1及び図15と同じ構成要素には、同一の参照符号を付している。
 画像再生装置700は、例えば、デジタルカメラなどの撮像装置であって、センサ590によって取得した画像データを圧縮して、記録媒体800に記録する。さらに、記録媒体800から圧縮データを読み出して、読み出した圧縮データを伸張し、得られた画像データをモニタ190に表示する。
 データバッファ管理部720は、データバッファ管理部120及び520の双方の処理を行う。図18に示すように、一例として、データバッファ管理部720は、セクタバッファ721及び722を備える。セクタバッファ721及び722は、セクタバッファ121及び122、並びにデータバッファ521などに相当する。
 記憶部740は、記憶部140及び540に相当する。なお、記憶部740は、物理的に2つのメモリであってもよく、あるいは、論理的に領域分割された物理的に1つのメモリであってもよい。
 制御部760は、制御部160及び560に相当し、双方の処理を行うことで、画像再生装置700全体の処理を制御する。入力部770は、入力部170及び570に相当し、双方の処理を行う。
 以上のように、画像再生装置700は、画像再生装置100と画像記録装置500との機能を併せ持っていてもよい。
 また、実施の形態1において、データバッファ管理部120のバッファ容量を2つで記載したが、これに限らず、3つ以上のデータバッファを備えてもよい。特に再生部110の転送速度と、伸張部130の処理速度とに共にゆらぎがある場合、再生部110、又は伸張部130による処理待ち時間を隠蔽するために、その速度差を吸収できるだけのデータバッファを備える方がよい。
 また、実施の形態1において、データバッファ管理部120で、最初にバンク1(セクタバッファ121)にデータを格納しているが、それに限らず、バンク2(セクタバッファ122)に格納してもよい。
 また、実施の形態1において、伸張した画像データがモニタ190で表示可能な画像データサイズでなかった場合、伸張部130、表示処理部180、又は制御部160の少なくとも1つでモニタ190に表示可能な画像データサイズにリサイズしてもよい。
 また、実施の形態1において、伸張不可表示の画像データの作成をエラー発生時に行っているが、事前に作成しておいてもよい。また、記憶部140のメモリスペースに余裕がある場合は、一度作成した伸張不可表示画像データを保持しておくことで、毎回作成する必要がない。
 また、実施の形態1において、APPマーカー内のデータにおいてエラーが発生したことを、画像データの表示の後に実施しているが、事前に表示し、画像データの表示有無を使用者に選択させてもよい。
 また、実施の形態1において、図5に示す動作例では、伸張部130に圧縮データを全て入力しているが、セクタb以降を入力してもよい。この場合、セクタb内にAPPマーカーのデータが一部存在していれば、伸張部130はそのデータを読み飛ばし、APPマーカー以降のデータから伸張動作を実施する。
 また、実施の形態1において、画像データの欠落領域の補完について、図7に示す例では、前のフレームの拡大により作成しているが、被写体の動き予測やカメラの角速度センサから次のフレームを予測して作成してもよい。
 また、実施の形態1において、データバッファ管理部120を設けて記録媒体200からの読み出しと、伸張部130での伸張を同時に行っているが、再生部110は、記録媒体200から記憶部140に圧縮データを転送し、伸張部130は、記憶部140から圧縮データを読み出して伸張してもよい。
 また、実施の形態2において、センサ590からの取り込みデータとしてRAWデータを記載しているが、これに限らず、画像記録装置500は、画像データを取得し、取得した画像データを圧縮部530が圧縮してもよい。また、必要であればリサイズなどの変換をしてから圧縮してもよい。
 また、各実施の形態において、特定データとして、“FF”を10個続けた後、Y、Cb、Crのデータを指定しているが、これに限らず、FFの個数やFF、Y、Cb、Crの順序を変更してもよい。また、画像の終端を示す“FFD9”をエラー箇所に挿入し、それ以降に特定データを埋め込むようにしてもよい。
 また、実施の形態1において、画像再生装置100は、モニタ190を備えていなくてもよい。このとき、表示処理部180は、外部ディスプレイなどの表示装置に、記憶部140に格納した圧縮データを表示させてもよい。なお、このとき、制御部160は、エラー管理部150によってエラー(転送エラー又は符号エラー)が検出された場合に伸張データを出力するか否かを決定する。伸張データを出力することを決定した場合、制御部160は、実施の形態1と同様に補完画像データに補完する。そして、表示処理部180は、補完画像データを含む伸張データを出力する。
 また、実施の形態2において、画像記録装置500は、センサ590を備えていなくてもよい。このとき、画像処理部580は、外部から入力される画像データを記憶部740に格納してもよい。
 また、本発明は、上述したように、画像再生装置及び画像再生方法として実現できるだけではなく、本実施の形態の画像再生方法をコンピュータに実行させるためのプログラムとして実現してもよい。また、当該プログラムを記録するコンピュータ読み取り可能なCD-ROM(Compact Disc-Read Only Memory)などの記録媒体として実現してもよい。さらに、当該プログラムを示す情報、データ又は信号として実現してもよい。そして、これらプログラム、情報、データ及び信号は、インターネットなどの通信ネットワークを介して配信されてもよい。
 また、本発明は、画像再生装置を構成する構成要素の一部又は全部を、1個のシステムLSI(Large Scale Integration)から構成してもよい。システムLSIは、複数の構成部を1個のチップ上に集積して製造された超多機能LSIであり、具体的には、マイクロプロセッサ、ROM及びRAMなどを含んで構成されるコンピュータシステムである。
 例えば、図1に示す画像再生装置100では、再生部110と、データバッファ管理部120と、伸張部130と、エラー管理部150と、制御部160とが1つのシステムLSIとして構成される。なお、これはあくまで一例であって、本発明はこれには限られない。
 本発明の画像再生装置及び画像再生方法は、エラーが発生した場合に得られている伸張データを柔軟に処理することができるという効果を奏し、デジタルカメラなどに利用することができる。
100、700 画像再生装置
110 再生部
120、520、720 データバッファ管理部
121、122、721、722 セクタバッファ
130 伸張部
140、540、740 記憶部
150 エラー管理部
151 転送エラー管理部
152 符号エラー管理部
160、560、760 制御部
170、570、770 入力部
180 表示処理部
190 モニタ
200、600、800 記録媒体
300、310、330、400、410、420 画像データ
301、321 枠
311 画像領域
320 仮想画像データ
500 画像記録装置
510 記録部
521 データバッファ
530 圧縮部
531 特定データ生成部
580 画像処理部
590 センサ

Claims (16)

  1.  圧縮された画像データである圧縮データを伸張して出力する画像再生装置であって、
     記録媒体から前記圧縮データを所定の処理単位毎に、単位圧縮データとして読み出す再生部と、
     前記再生部によって読み出された単位圧縮データを伸張することで、前記処理単位毎の画像データである伸張された単位伸張データを生成する伸張部と、
     前記伸張部によって生成された単位伸張データを含む伸張データを出力する出力部と、
     前記再生部及び前記伸張部の少なくとも一方によって発生するエラーを、前記単位圧縮データ毎に検出するエラー管理部と、
     前記エラーが検出された場合に前記伸張データを出力するか否かを決定する制御部とを備え、
     前記エラーが検出された場合に前記伸張データを出力することが前記制御部によって決定された場合、
     前記制御部は、前記エラーが検出された単位圧縮データに対応する単位伸張データを所定の補完画像データに補完し、
     前記出力部は、前記補完画像データを含む前記伸張データを出力する
     画像再生装置。
  2.  前記画像再生装置は、さらに、
     前記エラーが検出された場合に前記伸張データを出力するか否かを示す第1ユーザ指示を取得する入力部を備え、
     前記制御部は、前記第1ユーザ指示に従って、前記エラーが検出された場合に前記伸張データを出力するか否かを決定する
     請求項1記載の画像再生装置。
  3.  前記画像再生装置は、さらに、
     少なくとも1つのバッファを有し、前記再生部によって読み出された単位圧縮データを前記バッファに格納するデータバッファ管理部を備え、
     前記再生部は、前記記録媒体から読み出した前記単位圧縮データを前記データバッファ管理部に転送し、
     前記伸張部は、前記バッファに格納された単位圧縮データを読み出し、読み出した単位圧縮データを伸張することで前記単位伸張データを生成し、
     前記エラー管理部は、
     前記記録媒体から前記データバッファ管理部への前記単位圧縮データの転送の際に発生する転送エラーを検出する転送エラー管理部と、
     前記伸張部によって前記バッファから読み出された単位圧縮データの符号エラーを検出する符号エラー管理部とを有する
     請求項2記載の画像再生装置。
  4.  前記再生部は、前記転送エラー管理部によって転送エラーが検出された場合、前記転送エラーが検出された単位圧縮データと同一の処理単位の圧縮データである同一単位圧縮データを前記記録媒体から再度読み出す
     請求項3記載の画像再生装置。
  5.  前記転送エラー管理部は、前記転送エラーを検出した場合、当該転送エラーの回数をカウントし、カウントした回数と所定の閾値とを比較し、比較結果を前記制御部に通知し、
     前記制御部は、
     前記比較結果に基づいて、前記カウントした回数が前記閾値を超えるまで、前記再生部に前記同一単位圧縮データの再読み出しを繰り返させ、
     前記エラーが検出された場合に前記伸張データを出力すると決定した場合であって、かつ、前記カウントした回数が前記閾値を超えたか、又は、前記符号エラー管理部によって符号エラーが検出された場合に、前記エラーが検出された単位圧縮データに対応する単位伸張データを前記補完画像データに補完する
     請求項4記載の画像再生装置。
  6.  前記入力部は、さらに、前記閾値を示す第2ユーザ指示を取得し、
     前記制御部は、前記カウントした回数が、前記第2ユーザ指示が示す閾値を超えるまで、前記再生部に前記同一単位圧縮データの再読み出しを繰り返させる
     請求項5記載の画像再生装置。
  7.  前記再生部は、第1アクセス周波数で前記記録媒体にアクセスすることで、前記記録媒体から前記単位圧縮データを読み出し、前記転送エラー管理部によって当該単位圧縮データに転送エラーが検出された場合、前記第1アクセス周波数より低い第2アクセス周波数で前記記録媒体にアクセスすることで、前記同一単位圧縮データを読み出す
     請求項4記載の画像再生装置。
  8.  前記制御部は、1つのフレームを示す圧縮データに含まれる少なくとも2つの単位圧縮データにエラーが発生した場合、又は、少なくとも2つのフレームを示す圧縮データにエラーが発生した場合に、記録媒体が不良であることを示す記録媒体不良画像データを生成し、
     前記出力部は、前記記録媒体不良画像データを出力する
     請求項1記載の画像再生装置。
  9.  前記制御部は、前記エラーが検出された場合に前記伸張データを出力することを決定した場合、前記エラーが検出された単位圧縮データに対応する単位伸張データを、単一色の画像データ、又は、当該単位伸張データに対応する画像領域の周囲の画像データを用いて補完する
     請求項1記載の画像再生装置。
  10.  前記入力部は、前記エラーが検出された場合に、前記エラーが検出された単位圧縮データ以降の単位圧縮データを伸張するか否かを示す第3ユーザ指示を取得し、
     前記制御部は、前記第3ユーザ指示に従って、前記エラーが検出された場合に前記エラーが検出された単位圧縮データ以降の単位圧縮データを伸張するか否かを決定する
     請求項1記載の画像再生装置。
  11.  前記圧縮データは、アプリケーションマーカーセグメントを含み、
     前記伸張部は、さらに、前記アプリケーションマーカーセグメントを検出し、前記アプリケーションマーカーセグメントに含まれる単位圧縮データに前記エラーが検出された場合に、前記アプリケーションマーカーセグメントに含まれない単位圧縮データ以降の単位圧縮データを伸張する
     請求項1記載の画像再生装置。
  12.  前記圧縮データは、リスタートマーカーコードを含み、
     前記伸張部は、さらに、前記リスタートマーカーコードを検出し、前記エラーが検出された場合に、前記エラーが検出された処理単位の圧縮データ以降に含まれるリスタートマーカーコード以降の圧縮データを伸張する
     請求項1記載の画像再生装置。
  13.  前記制御部は、予め定められた特定データが検出された場合に検出された特定データ以降の画像データを補完するための所定の特定画像データを決定し、
     前記伸張部は、さらに、前記特定データの検出処理を行い、前記圧縮データのハフマン符号領域に前記特定データを検出した場合、検出した特定データ以降の画像データを前記制御部によって決定された特定画像データに補完する
     請求項1記載の画像再生装置。
  14.  前記画像再生装置は、さらに、
     記憶部と、
     複数のフレームから構成される動画像データを第1フレームレートで取得し、前記記憶部に格納する画像取得部と、
     前記記憶部に格納された動画像データを読み出し、読み出した動画像データを第2フレームレートで圧縮することで、前記圧縮データを生成する圧縮部と、
     前記圧縮部によって生成された圧縮データを前記記録媒体に記録する記録部とを備え、
     前記制御部は、さらに、前記第1フレームレートと前記第2フレームレートとを比較し、前記第1フレームレートの方が前記第2フレームレートより速い場合、前記圧縮部による所定フレームの画像データの圧縮処理を中止させ、
     前記圧縮部は、前記制御部によって前記圧縮処理が中止された場合、前記特定データを前記ハフマン符号領域に埋め込む
     請求項13記載の画像再生装置。
  15.  前記画像再生装置は、さらに、前記出力部によって出力された伸張データを表示する表示部を備える
     請求項1記載の画像再生装置。
  16.  圧縮された画像データである圧縮データを伸張して出力する画像再生方法であって、
     記録媒体から前記圧縮データを所定の処理単位毎に、単位圧縮データとして読み出す再生ステップと、
     前記再生ステップで読み出された単位圧縮データを伸張することで、伸張された前記処理単位毎の画像データである単位伸張データを生成する伸張ステップと、
     前記伸張ステップで生成された単位伸張データを含む伸張データを出力する出力ステップと、
     前記再生ステップ及び前記伸張ステップの少なくとも一方において発生するエラーを、前記単位圧縮データ毎に検出するエラー管理ステップと、
     前記エラーが検出された場合に前記伸張データを出力するか否かを決定する制御ステップとを含み、
     前記エラーが検出された場合に前記伸張データを出力することを前記制御ステップで決定した場合、
     前記制御ステップでは、前記エラーが検出された単位圧縮データに対応する単位伸張データを所定の補完画像データに補完し、
     前記出力ステップでは、前記補完画像データを含む前記伸張データを出力する
     画像再生方法。
PCT/JP2009/006669 2009-04-22 2009-12-07 画像再生装置及び画像再生方法 WO2010122620A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US13/274,578 US8666187B2 (en) 2009-04-22 2011-10-17 Image reproduction apparatus and image reproduction method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2009104477A JP2010258624A (ja) 2009-04-22 2009-04-22 画像再生装置及び画像再生方法
JP2009-104477 2009-04-22

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US13/274,578 Continuation US8666187B2 (en) 2009-04-22 2011-10-17 Image reproduction apparatus and image reproduction method

Publications (1)

Publication Number Publication Date
WO2010122620A1 true WO2010122620A1 (ja) 2010-10-28

Family

ID=43010758

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2009/006669 WO2010122620A1 (ja) 2009-04-22 2009-12-07 画像再生装置及び画像再生方法

Country Status (3)

Country Link
US (1) US8666187B2 (ja)
JP (1) JP2010258624A (ja)
WO (1) WO2010122620A1 (ja)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130242186A1 (en) * 2012-03-14 2013-09-19 Samsung Electronics Co., Ltd. Image processing apparatus and control method thereof
CN110574375B (zh) * 2017-04-28 2023-06-02 苹果公司 视频流水线
US10861142B2 (en) 2017-07-21 2020-12-08 Apple Inc. Gaze direction-based adaptive pre-filtering of video data
US10678636B2 (en) * 2018-02-28 2020-06-09 Intel Corporation Techniques for detecting and correcting errors in data
US11314555B2 (en) * 2019-08-26 2022-04-26 International Business Machines Corporation Synchronous re-execution of a data transformation operation to obtain further details regarding an exception

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0870432A (ja) * 1994-08-29 1996-03-12 Sanyo Electric Co Ltd 部分伸長装置及び方法
JPH10174094A (ja) * 1996-12-16 1998-06-26 Matsushita Electric Ind Co Ltd 映像復号化装置
JP2001169282A (ja) * 1999-09-30 2001-06-22 Matsushita Electric Ind Co Ltd 動画像復号化方法、動画像復号化装置、及びプログラム記録媒体
JP2005333437A (ja) * 2004-05-20 2005-12-02 Mitsubishi Electric Corp 画像撮影機器
JP2006174280A (ja) * 2004-12-17 2006-06-29 Canon Inc 画像処理装置、画像処理方法及びそのプログラム
JP2006196959A (ja) * 2005-01-11 2006-07-27 Canon Inc 動画データ受信装置
JP2006345046A (ja) * 2005-06-07 2006-12-21 Rohm Co Ltd 画像復号回路、画像復号システムおよびそれを搭載した電子機器

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020196853A1 (en) * 1997-06-04 2002-12-26 Jie Liang Reduced resolution video decompression
US6999673B1 (en) 1999-09-30 2006-02-14 Matsushita Electric Industrial Co., Ltd. Moving picture decoding method, moving picture decoding apparatus and program recording medium
DE60032315T2 (de) * 1999-10-25 2007-06-28 Matsushita Electric Industrial Co., Ltd., Kadoma Videodekodierungsverfahren, Videodekodierungsvorrichtung, und Programmspeichermedium
US7474792B2 (en) * 2002-12-02 2009-01-06 Ricoh Company, Ltd. Image processing apparatus for using distortion amount information
JP4790446B2 (ja) * 2006-03-01 2011-10-12 三菱電機株式会社 動画像復号装置及び動画像符号化装置
KR100834680B1 (ko) * 2006-09-18 2008-06-02 삼성전자주식회사 이동통신 단말기에서 출력되는 동영상 및 이미지의 화질을개선하기 위한 장치 및 방법

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0870432A (ja) * 1994-08-29 1996-03-12 Sanyo Electric Co Ltd 部分伸長装置及び方法
JPH10174094A (ja) * 1996-12-16 1998-06-26 Matsushita Electric Ind Co Ltd 映像復号化装置
JP2001169282A (ja) * 1999-09-30 2001-06-22 Matsushita Electric Ind Co Ltd 動画像復号化方法、動画像復号化装置、及びプログラム記録媒体
JP2005333437A (ja) * 2004-05-20 2005-12-02 Mitsubishi Electric Corp 画像撮影機器
JP2006174280A (ja) * 2004-12-17 2006-06-29 Canon Inc 画像処理装置、画像処理方法及びそのプログラム
JP2006196959A (ja) * 2005-01-11 2006-07-27 Canon Inc 動画データ受信装置
JP2006345046A (ja) * 2005-06-07 2006-12-21 Rohm Co Ltd 画像復号回路、画像復号システムおよびそれを搭載した電子機器

Also Published As

Publication number Publication date
JP2010258624A (ja) 2010-11-11
US20120033893A1 (en) 2012-02-09
US8666187B2 (en) 2014-03-04

Similar Documents

Publication Publication Date Title
US9736363B2 (en) Imaging apparatus and control method thereof
WO2010122620A1 (ja) 画像再生装置及び画像再生方法
US9826252B2 (en) Method and video system for freeze-frame detection
US20150103204A1 (en) Image processing device and method capable of displaying high-quality image while preventing display delay, and image pickup apparatus
JP2004062950A (ja) データ処理装置およびデータ処理方法、並びにプログラム
US9456180B2 (en) Image processing apparatus, communication system, and computer program
JP4610523B2 (ja) 動画処理装置
JP2000092445A (ja) 画像再生装置及び画像再生方法
US7444581B2 (en) Error handling of storage device data in real time systems
US20090092376A1 (en) Video reproduction apparatus
JP4991579B2 (ja) 再生装置
JP4921118B2 (ja) 映像信号処理装置、映像信号処理方法、及びプログラム
US9596375B2 (en) Image capturing apparatus for recording a raw image, control method of image capturing apparatus, and non-transitory computer readable storage medium with continuous shooting mode control of development process on raw image data in accordance with free storage space
JP2009140233A (ja) 映像記録装置および監視システム
JP2006024993A (ja) 撮像信号処理装置
JP4719116B2 (ja) 映像信号処理装置、
JP4952409B2 (ja) 画像圧縮装置及びプログラム
JP2009130561A (ja) 撮像装置、撮像装置の制御方法および撮像装置の制御プログラム
JP4991143B2 (ja) 映像処理装置およびコンピュータプログラム
JP2007336212A (ja) 情報複製方法及びシステム
US20120327096A1 (en) Image generating device
JP2007243333A (ja) 手ブレ補正方法、手ブレ補正装置、および撮像装置
JP2005175582A (ja) エンコード装置及びエンコード処理方法
JP2004173244A (ja) データ記録装置、そのプログラム、及び記録媒体
JP5106452B2 (ja) 監視記録システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09843620

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09843620

Country of ref document: EP

Kind code of ref document: A1