WO2005112446A1 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
WO2005112446A1
WO2005112446A1 PCT/JP2005/007750 JP2005007750W WO2005112446A1 WO 2005112446 A1 WO2005112446 A1 WO 2005112446A1 JP 2005007750 W JP2005007750 W JP 2005007750W WO 2005112446 A1 WO2005112446 A1 WO 2005112446A1
Authority
WO
WIPO (PCT)
Prior art keywords
axis direction
time axis
image data
screens
decoding
Prior art date
Application number
PCT/JP2005/007750
Other languages
French (fr)
Japanese (ja)
Inventor
Junya Kaku
Original Assignee
Sanyo Electric Co., Ltd.
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 Sanyo Electric Co., Ltd. filed Critical Sanyo Electric Co., Ltd.
Priority to US11/596,673 priority Critical patent/US20080008453A1/en
Publication of WO2005112446A1 publication Critical patent/WO2005112446A1/en

Links

Classifications

    • 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/7921Processing of colour television signals in connection with recording for more than one processing mode
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/114Adapting the group of pictures [GOP] structure, e.g. number of B-frames between two anchor frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • H04N19/15Data rate or code amount at the encoder output by monitoring actual compressed data size at the memory before deciding storage at the transmission buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/177Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a group of pictures [GOP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/907Television signal recording using static stores, e.g. storage tubes or semiconductor memories
    • 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
    • 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
    • H04N9/8047Transformation 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 using transform coding

Definitions

  • the present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus that processes image data of a plurality of screens including, for example, an intra-coded screen and an inter-coded screen.
  • the MPEG video decoder decodes the re-encoded data sequence thus generated in the reverse direction, and outputs the decoded image data to the display circuit. Thereby, smooth reverse reproduction is realized.
  • the circuit scale is increased because two MPEG decoders need to be prepared.
  • a main object of the present invention is to provide a novel image processing device.
  • Another object of the present invention is to reduce the circuit scale, and to provide image data of a plurality of screens which have been subjected to intra-encoding and in-encoding along the first time axis direction as the first time axis direction.
  • the object of the present invention is to provide an image processing apparatus capable of reproducing in the second time axis direction in the reverse direction.
  • the image processing device comprises: a first time axis; A plurality of blocks each containing image data of multiple screens in which the first screen is subjected to intra coding and the screen following the first screen in the first time axis direction is inter-coded.
  • Designation means for sequentially designating along the second time axis direction; first decoding means for sequentially decoding image data of a plurality of screens included in the block designated by the designation means along the first time axis direction; (1) an encoding means for performing the intra-encoding along the first time axis direction on each of the image data of a plurality of screens decoded by the decoding means; and the plurality of screens coded by the coding means.
  • Second decoding means for sequentially decoding the image data in the second time axis direction.
  • Each of the plurality of blocks is composed of a plurality of screens in which the first screen in the first time axis direction has been subjected to the encoder coding and the screen subsequent to the first screen in the first time axis direction has been subjected to the inter-coding.
  • the specifying means sequentially specifies the plurality of blocks along a second time axis direction opposite to the first time axis direction.
  • the first decoding means decodes the image data of a plurality of screens included in the specified block in order along the first time axis direction, and the encoding means decodes each of the decoded image data of the plurality of screens. Intra coding is performed along the first time axis direction.
  • the encoded image data of a plurality of screens is sequentially decoded by the second decoding means along the second time axis direction.
  • the image data decoded in the first time axis direction by the first encoding means is subjected to the encoder encoding in the first time axis direction by the encoding means.
  • the image data that has been subjected to the intra coding is thereafter decoded in the second time axis direction by the second decoding means.
  • the image processing device further comprises a determining means for determining whether or not the number of screens subjected to intra coding is equal to or greater than a threshold value, and the second decoding means includes a determining means. When the determination result is affirmative, the decoding process is performed.
  • the intra-coding process of the image data is executed along the first time axis direction, while the decoding process of the intra-coded image data is executed along the second time axis direction. Therefore, in claim 2, it is determined whether or not the number of screens subjected to intra-encoding exceeds a threshold value, and the decoding process is executed when the determination result is positive. In this way, processing failure is avoided. According to claim 3 depending on claim 1 or 2, the processing of the encoding means and the processing of the second decoding means follow the JPEG method.
  • the image processing program executed by the processor of the image processing device comprises: the first screen in the first time axis direction is intra-coded and the first screen in the first time axis direction; A designation step of sequentially designating a plurality of blocks each including image data of a plurality of screens in which a screen subsequent to the screen is subjected to the inter-encoding along a second time axis direction opposite to the first time axis direction; A first decoding step of sequentially decoding the image data of a plurality of screens included in the block specified by the specifying step along the first time axis direction; a multi-screen image data decoded by the first decoding step; A coding step of performing the intra coding along the first time axis direction; and decoding the image data of a plurality of screens coded by the coding step in order along the second time axis direction Second decryption step.
  • the image data decoded in the first time axis direction by the first decoding step is subjected to the intra coding in the first time axis direction by the encoding step.
  • the image data that has been intra-coded is then decoded in the second time axis direction in a second decoding step.
  • the image processing device comprises: the first screen in the first time axis direction is subjected to the intra coding, and the screen following the first screen in the first time axis direction is subjected to the inter coding.
  • a processor that sequentially specifies a plurality of blocks each including the image data of a plurality of screens along a second time axis direction opposite to the first time axis direction; a plurality of blocks included in a block specified by the processor.
  • a decoder for sequentially decoding the image data of the screen along the first time axis direction; and a decoder for decoding the image data of the plurality of screens decoded by the decoder along the first time axis direction. Cotec that decodes image data of multiple screens that have been subjected to intra coding in order along the second time axis direction.
  • Each of the plurality of blocks has the first screen in the first time axis direction subjected to intra coding.
  • the screen following the first screen in the first time axis direction includes image data of a plurality of screens that have been subjected to inter-coding.
  • the processor sequentially designates the plurality of blocks along a second time axis direction opposite to the first time axis direction.
  • the decoder sequentially decodes image data of a plurality of screens included in the specified block along the first time axis direction.
  • the codec performs intra-encoding on each of the decoded image data of the plurality of screens along the first time axis direction, and converts the encoded image data of the plurality of screens along the second time axis direction. Decode in order.
  • the image data can be reproduced in the second time axis direction while suppressing the circuit scale.
  • the processor instructs the codec to perform the encoding process and the decoding process alternately, and the codec executes the process according to the command from the processor.
  • FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention
  • FIG. 2 is an illustrative view showing one example of a mapping state of the SDRAM applied to the embodiment of FIG. 1;
  • FIG. 3 is an illustrative view showing a part of the operation of the embodiment in FIG. 1;
  • FIG. 4 is an illustrative view showing another portion of the operation of the FIG. 1 embodiment
  • FIG. 5A is an illustrative view showing another portion of the operation of the embodiment in FIG. 1;
  • FIG. 5 (B) is an illustrative view showing another part of the operation of the FIG. 1 embodiment
  • FIG. 5 (C) is an illustrative view showing still another part of the operation of the FIG. 1 embodiment
  • 5 (D) is an illustrative view showing another portion of the operation of the embodiment in FIG. 1;
  • FIG. 6 is a flowchart showing a part of the operation of the CPU applied to the embodiment of FIG. 1;
  • FIG. 7 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG.
  • FIG. 8 is a front view showing another part of the operation of the CPU applied to the embodiment of FIG. And;
  • FIG. 9 is a front view showing still another part of the operation of the CPU applied to the embodiment of FIG. 1;
  • FIG. 10 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG. 1;
  • FIG. 11 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG. 1;
  • FIG. 12 is a flowchart showing yet another portion of the operation of the CPU applied to the embodiment in FIG. BEST MODE FOR CARRYING OUT THE INVENTION
  • a digital video camera 10 of this embodiment includes an optical lens 12.
  • the optical image of the object scene is applied to the image plane of the image sensor 14 through the optical lens 12.
  • a charge corresponding to an optical image of the object scene, that is, a raw image signal is generated by photoelectric conversion.
  • the CPU 36 instructs the driver 16 to repeat pre-exposure and thinning-out reading.
  • the driver 16 repeatedly executes the pre-exposure of the image sensor 14 and the thinning-out reading of the raw image signal generated thereby.
  • the pre-exposure and the thinning-out reading are executed in response to the vertical synchronization signal Vsync 1 output from the frequency divider 34 based on the clock CLK1.
  • the vertical sync signal V sync 1 is generated once every 130 seconds, and the low-resolution raw image signal corresponding to the optical image of the object scene is output from the image sensor 14 at a frame rate of 30 fps. .
  • the output raw image signal of each frame is subjected to a series of processes of noise removal, level adjustment, and AZD conversion by the circuit 18 and is a digital signal.
  • the raw image data is obtained
  • the signal processing circuit 20 adds white balance adjustment, color separation, and white balance to the raw image data output from the CDS AGCZAD circuit 18. Performs processing such as YUV conversion to generate image data in YUV format.
  • the generated image data of each frame is written into the SDRAM 26 by the memory control circuit 24.
  • the video encoder 28 requests the memory control circuit 24 to read image data in response to the vertical synchronizing signal Vsync2 output from the frequency divider 32 based on the clock CLK2.
  • the vertical synchronizing signal Vsync2 is also generated once every 30 seconds, and the image data is transferred from the SDRAM 26 to the video encoder 28 at a frame rate of 30 fps.
  • the video encoder 28 converts the transferred image data into a composite video signal according to the NTSC format, and supplies the converted composite video signal to the LCD monitor 30. As a result, a through image of the object scene is displayed on the monitor screen. Although description is omitted as appropriate below, access to the SDRAM 26 is always performed through the memory control circuit 24.
  • the CPU 36 instructs the driver 16 to perform one main exposure and one readout of all pixels.
  • the driver 16 executes the main exposure of the image sensor 14 and the reading of all the pixels of the raw image signal generated by the main exposure once.
  • a high-resolution raw image signal corresponding to the optical image of the object scene is output from the image sensor 14.
  • the output raw image signal is converted into a YUV format still image data by the same processing as described above, and the converted still image data is written to the SDRAM 26.
  • the CPU 36 also issues a compression instruction to the JPEG codec 40.
  • the JPEG codec 40 reads still image data from the SDRAM 26, performs JPEG compression on the read still image data, and writes the compressed still image data, that is, JPEG data, to the SDRAM 26. Thereafter, the CPU 36 reads the JPEG data from the SDRA M26, and records the JPEG file including the read JPEG data on the recording medium 44 through the IZF 42.
  • the recording medium 44 is a detachable semiconductor memory, and can be accessed by the IZF 42 when the recording medium 44 is mounted in a slot (not shown).
  • the CPU 36 When the through image is displayed on the LCD monitor 30, When operated, the CPU 36 activates the MPEG4 codec 34.
  • the MPEG-4 codec 34 reads the image data of each frame from the SDRAM 26 every time the vertical synchronization signal Vsync 1 is generated, and performs a compression process on the read image data in accordance with the MPEG 4 format simple profile. Apply. In the image data, intra coding is applied approximately once every 15 frames, and inter coding is applied to the remaining frames.
  • the generated compressed moving image data that is, MPEG data, is written to the SDRAM 26.
  • Intra-coded frames are defined as "I-frames", and inter-coded frames are defined as "P-frames".
  • a lump composed of an I frame and a plurality of P frames following it is defined as a "GOP (Group Of Pictures)”. Then, the MPEG data has the data structure shown in FIG. Each GOP is assigned an identification number starting with "0".
  • the CPU 40 periodically reads out the MPEG data stored in the SDRAM 26 and records the read MPEG data on the recording medium 44 through the I / F 42.
  • the CPU 36 disables the MPEG4 codec 38 and records the MPEG data remaining in the SDRAM 26 on the recording medium 44.
  • an MPEG file including a plurality of frames of MPEG data is created.
  • the CPU 36 stores the JPEG data stored in the JPEG file in the recording medium 44.
  • the JPEG decoder 40 reads the JPEG data from the SDRAM 26, decompresses the read JPEG data, and writes the decompressed image data to the SDRAM 26.
  • the video encoder 28 reads the image data from the SDRAM 26 every time the vertical synchronization signal Vsync 2 is generated, converts the read image data into an NTSC C format composite video signal, and converts the converted composite video signal. Signal to the LCD monitor 30.
  • the reproduction processing of this MPEG file is executed.
  • the CPU 36 transfers the MPEG data of the first frame stored in the MPEG file from the recording medium 44 to the SDRAM 26, and gives a decompression instruction to the MPEG4 codec 38.
  • the MPEG codec 38 reads the MPEG data of the first frame from the SDRAM 26, decompresses the read MPEG data, and writes the decompressed image data to the SDRAM 26.
  • the video encoder 28 performs the same processing as described above. As a result, the still image of the first frame is displayed on the LCD monitor 30.
  • the CPU 36 transfers the MPEG data stored in the desired MPEG file to the SDRAM 26 by 1 GOP at a cycle corresponding to 1 GOP, and responds to the vertical synchronization signal Vsync 1 to the MPEG4 codec 38 To the decompression instruction.
  • the MPEG4 codec 38 performs the same processing as described above in response to the vertical synchronization signal Vsync1.
  • the video encoder 28 reads image data from the SDRAM 26 every time the vertical sync signal Vsync 2 is generated, converts the read image data into an NTSC C-format composite video signal, and converts the image data.
  • the supplied composite video signal is supplied to the LCD monitor 30. As a result, the moving image following the first frame is displayed on the LCD monitor 30.
  • the CPU 36 executes the MPEG decompression task shown in FIGS. 6 and 7, the JPEG compression task shown in FIGS. 8 to 10, the JPEG decompression task shown in FIG. 11, and the display task shown in FIG. 12 in parallel. .
  • the CPU 36 executes the tasks shown in FIGS. 6 to 12 under the control of a multitask OS such as ITRON.
  • a control program corresponding to such a task is stored in the flash memory 22.
  • the SDRAM 26 is mapped as shown in FIG. Bank 26a Bank 0), Bank 26b (Bank 1) and Bank 26c (Bank 2)
  • Each is an area for storing one frame of decompressed image data.
  • the JPEG data area 26c is an area for storing JPEG data of each frame.
  • the J PEG index area 26e is an area for storing the start address value of the J PEG data of each frame stored in the J PEG data overnight area 26d, and includes 45 columns JPEG—index [0] to JPEG—. It is formed by index [44].
  • the MPEG 4 data area 26f is an area for storing the MPEG data read from the recording medium 44.
  • the transfer of MPEG data from the recording medium 44 to the MPEG4 data area 26f is periodically executed by a task (not shown).
  • step S1 various variables are initialized. Specifically, set the GO P number gop—mmi to “#”, set the number of frames vop_num to “*”, set the column number K to “vop—mini—1”, and set the address value jenc— Set adr to "JPG —START".
  • the flags mdec—end, jenc_flg, jdec—flg and disp fig are set to 0, the frame numbers mdec_num, jenc num, and jdec—nrn are set to “0”, and the bank number is set.
  • Set mbank, jbank and dbank to "0".
  • the GOP number gop_num is the identification number of the G ⁇ P of interest
  • “#” indicates the identification number of the GOP to which the frame that was being played back when the reverse moving image playback was instructed belongs.
  • the number of frames vop—num is the number of frames to be played from the GOP of interest
  • “*” is “1” for the number of the frame that was playing when the reverse video playback was instructed. Indicates the added value.
  • Column number K is the identification number of the column formed in JPEG index area 26e shown in FIG.
  • the address value jenc-adr is the address value at which writing of the JPEG data is started
  • "JPG-START" is the start address value of the JPEG data area 26d.
  • the flag mdec end indicates that the playback frame reaches the first frame of the MPEG file. This is a flag for identifying whether or not the operation has been performed. "0" means not reached, “1” means reached.
  • the flag jenc1 fig is a flag for identifying whether or not to permit the JPEG codec 40 compression processing. "0” means forbidden, “1” means allowed.
  • the flag jdec-fig is a flag for identifying whether or not to permit the decompression processing of the JPEG codec 40. "0” means forbidden and “1” means allowed.
  • the flag disp-flg is a flag for identifying whether or not the encoding process of the video encoder 28 is permitted. "0” means prohibition, "1" means permission.
  • the frame number mdec-num is an identification number of a frame to be expanded by the MPEG4 codec 38.
  • the frame number jenc-num is an identification number of a frame to be compressed by the JPEG codec 40.
  • the frame number jdec-num is the identification number of the frame to be expanded by the JPEG codec 40.
  • the bank number mbank is an identification number of a bank in which one frame of image data expanded by the MPEG4 codec 38 is to be stored.
  • the bank number jbank is used to identify a bank in which one frame of image data to be compressed by the JPEG codec 40 or a bank in which one frame of image data decompressed by the JPEG codec 40 is to be stored.
  • the bank number dbank is the identification number of the bank in which one frame of image data to be displayed on the LCD module 30 is stored.
  • the flag mdec-end is set to "1" in step S37 described later when the playback frame reaches the first frame of the MPEG file.
  • Step S7 is a step for setting the flag; jdec-flg to "1" in place of step S69 described later after JPEG compression of the first frame of the MPEG file is completed.
  • the frame number mdec_num is set to the frame number jenc_num.
  • the number of frames vop—num is set to the number of frames] 'vop_nmn
  • the GOP number gop—num is set to the GOP number jgop—num
  • step S15 the bank number mbank is the bank number; Set to jbank.
  • Frame number mdec num, frame number vo _ num, GP 3 ⁇ 4> go— _ num and bank number mbank are referenced in the MPEG decompression task, and frame number jenc— num, frame number jvop _ num, and GOP number j go _ num.
  • the jbank number is also referred to in the JPEG compression task.
  • a one-frame decompression instruction is issued to the MPEG4 codec 38.
  • the issued decompression instruction includes a GOP number gop-num, a frame number mdec-num, and a puncture number mbank.
  • the MPEG4 codec 38 reads and reads one frame of MPEG data specified by the GOP number gop—nrnn and the frame number mdec—num from the MPEG4 data area 26 # shown in FIG.
  • the expanded MPEG data is expanded, and the expanded image data is written to the bank corresponding to the bank number mbank among the banks 0 to 2 shown in FIG.
  • YES is determined in step S19, and the flag jenc-fig is set to "1" in step S21.
  • step S23 the bank number mbank is updated according to Equation 1. According to Equation 1, the remainder obtained by dividing "mbank + l" by "3" is set as the bank number mbank.
  • step S25 the frame number mdec-num is incremented, and in step S27, it is determined whether or not the incremented frame number mdec-num matches the frame number vop-num. If NO here, it is considered that MPEG expansion of the frame to be reproduced from the GOP of interest has not been completed yet, and the direct step S Return to 3.
  • step S27 the GOP number gop—nuni is decremented in step S29 to change the GOP of interest.
  • step S31 it is determined whether or not the decremented G P number gop_num is less than "0".
  • step S33 the flow advances to step S33 to set the number of frames vop-num to the number of GOP frames corresponding to the G0P number gop-nvrai. After that, in step S35, the frame number mdec-num is set to "0", and the process returns to step S3. On the other hand, if the GOP number gop-num is less than "0", the flag mdec-end is set to "1" in step S37 to end the MPEG extension processing. Upon completion of the process in the step S37, the process returns to the step S3.
  • step S41 it is determined whether or not flag jenc-flg indicates "1". If YES, the process proceeds to step S43. As described above, the flag jenc-fig is updated to "1" in step S21 when the first MPEG expansion is completed. Therefore, the processing after step S43 is started when one frame of image data is secured in the bank corresponding to the bank number mbank.
  • a compression instruction is issued to the JPEG codec 40.
  • the J PEG codec 40 reads one frame of image data from the bank corresponding to bank number] 'bank among banks 0 to 2 shown in FIG. 4, performs J PEG compression on the read image data, Then, the generated JPEG data is written after the address corresponding to the address value jenc-adr of the JPEG data area 26 d shown in FIG.
  • step S45 When J PEG compression is completed, YES is determined in step S45, and step S47 Writes the address value jenc-adr to the column JPEG-index [K] in the JPEG index area 26 e shown in Fig. 2.
  • step S49 the address value jenc-adr is updated according to equation 2, and in step S51 it is determined whether the condition of equation 3 is satisfied.
  • jenc— adr jenc one adr + flt
  • the “compressed size” shown in Expressions 2 and 3 is the size of the JPEG data created by the process in the immediately preceding step S43.
  • “JPEG-END” is the end address value of the JPEG data area 26 d shown in FIG. 2, and “HI” is the margin.
  • step S55 the column number K is decremented, and in subsequent step S57, it is determined whether or not the column number K is less than "0". If the column number K is "0" or more, go directly to step S61. On the other hand, if the column number is less than "0", the column number K is set to "MAX-J-IDX-1" in step S59, and then the process proceeds to step S61.
  • “MAX—J—IDX” is the total number of columns formed in the JPEG index area 26 d. As can be seen from FIG. 2, "MAX-J-IDX” indicates "45" in this embodiment.
  • step S61 it is determined whether or not the frame number jenc-num matches "jvop-num-1". That is, it is determined whether or not the frame subjected to JPEG compression is the last frame to be reproduced from the focused GOP. If NO here, it is determined in step S63 whether or not the GOP number jgop_nmn is equal to or more than "# -2", and the address value written in the column JPEG__indextjdec—mmi] exceeds "0" It is determined in step S65 whether or not this is the case.
  • step S63 a sufficient number of frames of JPEG data are This is a step for determining whether or not the data is stored in the file 26d.
  • Step S65 is a step for determining whether or not a valid address value is set in the column JPEG-indexlj'dec-num].
  • step S69 If one of steps S63 and S65 is determined to be N ⁇ , the process directly proceeds to step S69. If YES is determined in both steps S65 and S67, the flag jdec-fig is set to "1" in step S67, and the process proceeds to step S69. By the processing of step S67, the processing of step S93 and thereafter shown in FIG. 11 is started. In step S69, a flag is set to prohibit the JPEG compression processing;
  • the column number K is updated to “K + jvop_num” in a step S71, and in a step S73, the updated column number K is equal to or more than “MAX—J-IDX”. Determine whether or not. If “NO” here, the process directly proceeds to the step S77. If “YES”, the variable K is updated to “K—MAX—J—IDX” in a step S75, and then the process proceeds to a step S77. As a result, the columns formed in the JPEG index area 26e are designated cyclically. -In step S77, the GOP number jgop-nrnn is decremented.
  • step S81 it is determined whether or not the updated GOP number jgop-nrnn is "0". If YES is determined here, the flag jenc-fig is set to "0" in a step S79, and the process returns to the step S41.
  • step S77 the processes in and after the step S81 are executed.
  • step S81 the number of frames of the GOP corresponding to the GOP number jgop-nrnn is added to the column number K, and the column number K is updated with the added value obtained thereby.
  • step S83 it is determined whether or not the updated column number K is equal to or greater than "MAX-J-IDX". If NO, the process directly proceeds to step S63. If YES, the column number K is updated to “K—MAX__J—IDX” in step S85, and then the process proceeds to step S63.
  • JPEG compression image data of each frame decompressed in the forward direction from each GOP specified in the reverse direction is subjected to JPEG compression in the forward direction.
  • the JPEG data of each frame obtained in this way is stored in the JPEG data area 26 d Is written to.
  • the start address value of the JPEG data of each frame is written to the JPEG index area 26e in the manner shown in FIGS. 5 (A) to 5 (D).
  • the three start address values for the three frames of GOP (n + 1) are stored in columns JPEG—index [2] to JPEG—index [0] as shown in FIG. ] Respectively.
  • the 15 start address values for the 15 frames of GOP (n) are written to columns JPEG-index [17] to JPEG-index [3], respectively, as shown in Fig. 5 (B).
  • step S63 When JPEG compression for GOP (n-1) is started, YES is determined in step S63 (and S65), and the flag; jdec-fig is set to "1" in step S67. That is, decompression processing of JPEG data is permitted.
  • the start address value stored in the JPEG index area 26e is read by the JPEG decompression task described later in the manner shown in FIGS. 5C and 5D.
  • the first 3 start address values are written to JPEG-index [2] to JPEG-index [0], respectively, and the remaining 12
  • the first address values are written in JPEG-index [44] to JPEG-index [32], respectively (see Fig. 5 (D)).
  • step S91 it is determined whether or not flag jdec-fig indicates "1". If YES, a one-frame decompression instruction is given to JPEG codec 40 in step S93.
  • the decompression instruction includes the address value written in the column; jpeg—indextjdec—num] and the bank number; jbank.
  • the JPEG codec 40 reads one frame of JPEG data from the JPEG data area 26e according to the address value included in the decompression instruction, decompresses the read JPEG data, and decompresses the decompressed image data. Bank number; Write to the bank corresponding to jbank.
  • step S95 When the JPEG decompression process is completed, YES is determined in step S95, the flag disp-flg is set to "1" in step S97, and the column number jdec-mim is incremented in step S99.
  • step S101 it is determined whether or not the updated column number; jdec-nmn is greater than or equal to "MAX-J-IDX”. If NO here, go directly to step S105, but if YES, step S1 In column 03, the column number jdec—num is set to “0”, and the process proceeds to step S105.
  • step S105 the flag; jdec-fig is set to "0", and the process returns to step S91.
  • the start address value of the JPEG data of each frame is read from the JPEG index area 26d in the manner shown in FIGS. 5 (A) to 5 (D).
  • step S111 it is determined whether or not flag disp_fig is "1". If “YES” here, the generation of the vertical synchronization signal Vsync 2 is waited for in step S113, and then the puncture number dbank is updated in accordance with equation 4 in step S115. According to Equation 4, the remainder obtained by dividing "; jbank + 2" by "3" is set as the bank number dbank.
  • step S117 the updated bank number dbank is set in the video encoder 28, and the process returns to step S111.
  • the banks 0 to 2 shown in FIG. 2 are cyclically designated by the powerful display task, and a moving image moving in the opposite direction is displayed on the LCD monitor 30.
  • each of the plurality of GOPs is an image of a plurality of frames in which the first frame in the forward direction is subjected to the intra coding and the frame following the first frame in the forward direction is subjected to the inter coding.
  • the CPU 36 sequentially specifies the plurality of GOP blocks in the reverse direction (S29).
  • the MP EG 4 codec 38 forwardly decodes the image data of a plurality of frames included in the specified GOP, and the JP EG codec 40 forwardly decodes each of the decoded image data of the plurality of frames.
  • Intra coding is performed.
  • the CPU 36 determines whether or not the number of frames subjected to the intra code is equal to or larger than a threshold (S63). When the determination result of the CPU 36 is affirmative, the J PEG codec 40 decodes the image data of a plurality of frames that have been intra-coded in the reverse direction.
  • the image data decoded in the forward direction by the MPEG4 codec 38 is intra-coded in the forward direction by the JPEG codec 40.
  • Intra The encoded image data is then decoded in the reverse direction by the JPEG codec 40.
  • the JPEG system is adopted for the intra coding of the image data of each frame.
  • the JPEG2000 system may be adopted instead of the JPEG system.

Landscapes

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

Abstract

Each of GOPs includes image data of frames in which the first frame in the forward direction is subjected intra-encoding and the second frame subsequent to the first frame in the forward direction is subjected to inter-encoding. A CPU (36) successively specifies the GOP blocks in the reverse direction. An MPEG4 codec (38) decodes the image data in the frames contained in the specified GOP in the forward direction. A JPEG code (40) subjects each of the image data in the frames decoded to intra-encoding in the forward direction. A CPU (36) judges whether the number of frames subjected intra-encoding is equal to more than a threshold value. When the judgment result of the CPU (36) is Yes, the JPEG codec (40) decodes the image data in the frames subjected to the intra-encoding, in the reverse direction.

Description

明細書 ·  Specification ·
画像処理装置 技術分野  Image processing equipment
この発明は、 画像処理装置に関し、 特にたとえばイントラ符号化を施された画 面とィンタ一符号化を施された画面とを含む複数画面の画像デ一夕を処理する、 画像処理装置に関する。 従来技術 '  The present invention relates to an image processing apparatus, and more particularly, to an image processing apparatus that processes image data of a plurality of screens including, for example, an intra-coded screen and an inter-coded screen. Conventional technology ''
従来のこの種の装置の一例が、 2003年 2月 21日付けで出願公開された特 開 2003— 52020号公報に開示されている。 この従来技術によれば、 逆転 再生が指示されると、 MP EGビデオストリームを形成する Bピクチヤおよび P ピクチャが順方向 (第 1時間軸方向) に沿って復号され、 復号された画像データ が逆方向 (第 2時間軸方向) に沿って Bピクチャに再符号化され、 そして MPE Gビデオストリームを形成する Iピクチャと再符号化された Bピクチャとからな る再符号化データ列が生成される。 MPEGビデオデコーダは、 こうして生成さ れた再符号化データ列を逆方向に復号し、 復号された画像データを表示回路に出 力する。 これによつて、滑らかな逆転再生が実現される。 しかし、従来技術では、 MPE Gデコーダを 2つ準備する必要があるため、 回路規模が拡大するという問 題がある。 発明の概要  An example of this type of conventional device is disclosed in Japanese Patent Application Publication No. 2003-52020 published on Feb. 21, 2003. According to this conventional technique, when reverse playback is instructed, B-pictures and P-pictures forming an MPEG video stream are decoded in the forward direction (first time axis direction), and the decoded image data is decoded in the reverse direction. Is re-encoded along the direction (second time axis direction) into B-pictures, and a re-encoded data sequence consisting of the I-pictures forming the MPEG video stream and the re-encoded B-pictures is generated. . The MPEG video decoder decodes the re-encoded data sequence thus generated in the reverse direction, and outputs the decoded image data to the display circuit. Thereby, smooth reverse reproduction is realized. However, in the conventional technology, there is a problem that the circuit scale is increased because two MPEG decoders need to be prepared. Summary of the Invention
それゆえに、 この発明の主たる目的は、 新規な画像処理装置を提供することで ある。  Therefore, a main object of the present invention is to provide a novel image processing device.
この発明の他の目的は、 回路規模を抑制でき、 かつ第 1時間軸方向に沿ってィ ントラ符号化およびィン夕ー符号化を施された複数画面の画像データを第 1時間 軸方向とは逆方向の第 2時間軸方向に再生することができる、 画像処理装置を提 供することである。  Another object of the present invention is to reduce the circuit scale, and to provide image data of a plurality of screens which have been subjected to intra-encoding and in-encoding along the first time axis direction as the first time axis direction. The object of the present invention is to provide an image processing apparatus capable of reproducing in the second time axis direction in the reverse direction.
クレーム 1によれば、 画像処理装置は、 次のものを備える:第 1時間軸方向の 先頭画面がィントラ符号化を施されかつ第 1時間軸方向で先頭画面に続く画面が インター符号化を施された複数画面の画像データを各々が含む複数のブロックを 第 1時間軸方向とは逆の第 2時間軸方向に沿って順に指定する指定手段;指定手 段によって指定されたプロックに含まれる複数画面の画像データを第 1時間軸方 向に沿って順に復号する第 1復号手段;第 1復号手段によって復号された複数画 面の画像デ一夕の各々に第 1時間軸方向に沿ってィン卜ラ符号化を施す符号化手 段;および符号化手段によって符号化された複数画面の画像デ一夕を第 2時間軸 方向に沿つて順に復号する第 2復号手段。 According to claim 1, the image processing device comprises: a first time axis; A plurality of blocks each containing image data of multiple screens in which the first screen is subjected to intra coding and the screen following the first screen in the first time axis direction is inter-coded. Designation means for sequentially designating along the second time axis direction; first decoding means for sequentially decoding image data of a plurality of screens included in the block designated by the designation means along the first time axis direction; (1) an encoding means for performing the intra-encoding along the first time axis direction on each of the image data of a plurality of screens decoded by the decoding means; and the plurality of screens coded by the coding means. Second decoding means for sequentially decoding the image data in the second time axis direction.
複数のプロックの各々は、 第 1時間軸方向の先頭画面がィン卜ラ符号化を施さ れかつ第 1時間軸方向で先頭画面に続く画面がィンタ一符号化を施された複数画 面の画像データを含む。 指定手段は、 かかる複数のブロックを第 1時間軸方向と は逆の第 2時間軸方向に沿って順に指定する。 第 1復号手段は、 指定されたプロ ックに含まれる複数画面の画像データを第 1時間軸方向に沿つて順に復号し、 符 号化手段は、 復号された複数画面の画像データの各々に第 1時間軸方向に沿って イントラ符号化を施す。 符号化された複数画面の画像データは、 第 2復号手段に よって、 第 2時間軸方向に沿つて順に復号される。  Each of the plurality of blocks is composed of a plurality of screens in which the first screen in the first time axis direction has been subjected to the encoder coding and the screen subsequent to the first screen in the first time axis direction has been subjected to the inter-coding. Includes image data. The specifying means sequentially specifies the plurality of blocks along a second time axis direction opposite to the first time axis direction. The first decoding means decodes the image data of a plurality of screens included in the specified block in order along the first time axis direction, and the encoding means decodes each of the decoded image data of the plurality of screens. Intra coding is performed along the first time axis direction. The encoded image data of a plurality of screens is sequentially decoded by the second decoding means along the second time axis direction.
つまり、 第 1窜号手段によって第 1時間軸方向に復号された画像データは、 符 号化手段によって第 1時間軸方向にィン卜ラ符号化を施される。 ィントラ符号化 を施された画像デ一夕はその後、 第 2復号手段によって第 2時間軸方向に復号さ れる。 イントラ符号化を採用することで、 回路規模を抑えつつ、 第 2時間軸方向 に画像デ一夕を再生することができる。  In other words, the image data decoded in the first time axis direction by the first encoding means is subjected to the encoder encoding in the first time axis direction by the encoding means. The image data that has been subjected to the intra coding is thereafter decoded in the second time axis direction by the second decoding means. By employing intra coding, it is possible to reproduce an image in the second time axis direction while suppressing the circuit scale.
クレーム 1に従属するクレーム 2によれば、 画像処理装置は、 イントラ符号化 を施された画面数が閾値以上であるか否かを判別する判別手段をさらに備え、 第 2復号手段は判別手段の判別結果が肯定的であるとき復号処理を行う。  According to claim 2 dependent on claim 1, the image processing device further comprises a determining means for determining whether or not the number of screens subjected to intra coding is equal to or greater than a threshold value, and the second decoding means includes a determining means. When the determination result is affirmative, the decoding process is performed.
画像データのィントラ符号化処理は第 1時間軸方向に沿って実行される一方、 イントラ符号化を施された画像データの復号処理は第 2時間軸方向に沿って実行 される。 そこで、 クレーム 2では、 イントラ符号化を施された画面数が閾値を上 回るか否かを判別し、 判別結果が肯定的であるときに復号処理を実行するように している。 これによつて、 処理の破綻が回避される。 クレーム 1または 2に従属するクレーム 3によれば、 符号化手段および第 2復 号手段の各々の処理は J P E G方式に従う。 The intra-coding process of the image data is executed along the first time axis direction, while the decoding process of the intra-coded image data is executed along the second time axis direction. Therefore, in claim 2, it is determined whether or not the number of screens subjected to intra-encoding exceeds a threshold value, and the decoding process is executed when the determination result is positive. In this way, processing failure is avoided. According to claim 3 depending on claim 1 or 2, the processing of the encoding means and the processing of the second decoding means follow the JPEG method.
クレーム 1ないし 3のいずれかに従属するクレーム 4によれば、 第 1時間軸方 向は順方向であり、 第 2時間軸方向は逆方向である。  According to claim 4 which depends on any of claims 1 to 3, the first time axis direction is forward and the second time axis direction is reverse.
クレーム 5によれば、 画像処理装置のプロセサによって実行される画像処理プ ログラムは、 次のものを備える:第 1時間軸方向の先頭画面がイントラ符号化を 施されかつ第 1時間軸方向で先頭画面に続く画面がィンタ一符号化を施された複 数画面の画像データを各々が含む複数のプロックを第 1時間軸方向とは逆の第 2 時間軸方向に沿って順に指定する指定ステップ;指定ステップによって指定され たプロックに含まれる複数画面の画像データを第 1時間軸方向に沿つて順に復号 する第 1復号ステップ;第 1復号ステップによって復号された複数画面の画像デ —夕の各々に第 1時間軸方向に沿ってィントラ符号化を施す符号化ステツプ;お よび符号化ステツプによつて符号化された複数画面の画像データを第 2時間軸方 向に沿って順に復号する第 2復号ステツプ。  According to claim 5, the image processing program executed by the processor of the image processing device comprises: the first screen in the first time axis direction is intra-coded and the first screen in the first time axis direction; A designation step of sequentially designating a plurality of blocks each including image data of a plurality of screens in which a screen subsequent to the screen is subjected to the inter-encoding along a second time axis direction opposite to the first time axis direction; A first decoding step of sequentially decoding the image data of a plurality of screens included in the block specified by the specifying step along the first time axis direction; a multi-screen image data decoded by the first decoding step; A coding step of performing the intra coding along the first time axis direction; and decoding the image data of a plurality of screens coded by the coding step in order along the second time axis direction Second decryption step.
クレ一ム 1と同様、 第 1復号ステツプによって第 1時間軸方向に復号された画 像データは、 符号化ステップによって第 1時間軸方向にィントラ符号化を施され る。 イントラ符号化を施された画像データはその後、 第 2復号ステップによって 第 2時間軸方向に復号される。 イントラ符号ィ匕を採用することで、 回路規模を抑 えつつ、 第 2時間軸方向に画像データを再生することができる。  Similarly to claim 1, the image data decoded in the first time axis direction by the first decoding step is subjected to the intra coding in the first time axis direction by the encoding step. The image data that has been intra-coded is then decoded in the second time axis direction in a second decoding step. By employing intra-coding, it is possible to reproduce image data in the second time axis direction while suppressing the circuit scale.
クレーム 6によれば、 画像処理装置は、 次のものを備える:第 1時間軸方向の 先頭画面がィントラ符号化を施されかつ第 1時間軸方向で先頭画面に続く画面が ィンター符号化を施された複数画面の画像デ一夕を各々が含む複数のプロックを 第 1時間軸方向とは逆の第 2時間軸方向に沿って順に指定するプロセサ;プロセ ザによって指定されたブロックに含まれる複数画面の画像デ一夕を第 1時間軸方 向に沿って順に復号するデコーダ;およびデコーダによって復号された複数画面 の画像デ一夕の各々に第 1時間軸方向に沿ってィントラ符号ィ匕を施し、 イントラ 符号化を施された複数画面の画像データを第 2時間軸方向に沿って順に復号する コーテック。  According to claim 6, the image processing device comprises: the first screen in the first time axis direction is subjected to the intra coding, and the screen following the first screen in the first time axis direction is subjected to the inter coding. A processor that sequentially specifies a plurality of blocks each including the image data of a plurality of screens along a second time axis direction opposite to the first time axis direction; a plurality of blocks included in a block specified by the processor. A decoder for sequentially decoding the image data of the screen along the first time axis direction; and a decoder for decoding the image data of the plurality of screens decoded by the decoder along the first time axis direction. Cotec that decodes image data of multiple screens that have been subjected to intra coding in order along the second time axis direction.
複数のプロックの各々は、 第 1時間軸方向の先頭画面がィントラ符号化を施さ れかつ第 1時間軸方向で先頭画面に続く画面がィンタ一符号化を施された複数画 面の画像データを含む。 プロセサは、 かかる複数のブロックを第 1時間軸方向と は逆の第 2時間軸方向に沿って順に指定する。 デコーダは、 指定されたブロック に含まれる複数画面の画像データを第 1時間軸方向に沿って順に復号する。 コ一 デックは、 復号された複数画面の画像データの各々に第 1時間軸方向に沿ってィ ントラ符号化を施し、 かつ符号化された複数画面の画像データを第 2時間軸方向 に沿って順に復号する。 Each of the plurality of blocks has the first screen in the first time axis direction subjected to intra coding. The screen following the first screen in the first time axis direction includes image data of a plurality of screens that have been subjected to inter-coding. The processor sequentially designates the plurality of blocks along a second time axis direction opposite to the first time axis direction. The decoder sequentially decodes image data of a plurality of screens included in the specified block along the first time axis direction. The codec performs intra-encoding on each of the decoded image data of the plurality of screens along the first time axis direction, and converts the encoded image data of the plurality of screens along the second time axis direction. Decode in order.
. クレーム 1または 5と同様、 回路規模を抑えつつ、 第 2時間軸方向に画像デ一 夕を再生することができる。  As in claim 1 or 5, the image data can be reproduced in the second time axis direction while suppressing the circuit scale.
クレーム 6に従属するクレーム Ίによれば、 プロセサは符号化処理および復号 処理をコ一デックに交互に命令し、 コーデックはプロセサからの命令に従う処理 を実行する。  According to claim 6 which is dependent on claim 6, the processor instructs the codec to perform the encoding process and the decoding process alternately, and the codec executes the process according to the command from the processor.
この発明の上述の目的, その他の目的, 特徴および利点は、 図面を参照して行 う以下の実施例の詳細な説明から一層明らかとなろう。 図面の簡単な説明  The above objects, other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings. Brief Description of Drawings
図 1はこの発明の一実施例の構成を示すプロック図であり ;  FIG. 1 is a block diagram showing a configuration of one embodiment of the present invention;
図 2は図 1実施例に適用される S D RAMのマツピング状態の一例を示す図 解図であり ;  FIG. 2 is an illustrative view showing one example of a mapping state of the SDRAM applied to the embodiment of FIG. 1;
図 3は図 1実施例の動作の一部を示す図解図であり ;  FIG. 3 is an illustrative view showing a part of the operation of the embodiment in FIG. 1;
図 4は図 1実施例の動作の他の一部を示す図解図であり ;  FIG. 4 is an illustrative view showing another portion of the operation of the FIG. 1 embodiment;
図 5 (A) は図 1実施例の動作の他の一部を示す図解図であり;  FIG. 5A is an illustrative view showing another portion of the operation of the embodiment in FIG. 1;
図 5 (B) は図 1実施例の動作のその他の一部を示す図解図であり ; 図 5 ( C) は図 1実施例の動作のさらにその他の一部を示す図解図であり ; 図 5 (D) は図 1実施例の動作の他の一部を示す図解図であり ;  FIG. 5 (B) is an illustrative view showing another part of the operation of the FIG. 1 embodiment; FIG. 5 (C) is an illustrative view showing still another part of the operation of the FIG. 1 embodiment; 5 (D) is an illustrative view showing another portion of the operation of the embodiment in FIG. 1;
図 6は図 1実施例に適用される C P Uの動作の一部を示すフロー図であり ; 図 7は図 1実施例に適用される C P Uの動作の他の一部を示すフロー図であ FIG. 6 is a flowchart showing a part of the operation of the CPU applied to the embodiment of FIG. 1; FIG. 7 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG.
Ό ; Ό;
図 8は図 1実施例に適用される C P Uの動作のその他の一部を示すフ口一図 であり ; FIG. 8 is a front view showing another part of the operation of the CPU applied to the embodiment of FIG. And;
図 9は図 1実施例に適用される C P Uの動作のさらにその他の一部を示すフ 口一図であり ;  FIG. 9 is a front view showing still another part of the operation of the CPU applied to the embodiment of FIG. 1;
図 10は図 1実施例に適用される C PUの動作の他の一部を示すフロー図で あり ;  FIG. 10 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG. 1;
図 11は図 1実施例に適用される C PUの動作のその他の一部を示すフロー 図であり ;そして  FIG. 11 is a flowchart showing another part of the operation of the CPU applied to the embodiment of FIG. 1; and
図 12は図 1実施例に適用される C PUの動作のさらにその他の一部を示す フロー図である。 発明を実施するための最良の形態  FIG. 12 is a flowchart showing yet another portion of the operation of the CPU applied to the embodiment in FIG. BEST MODE FOR CARRYING OUT THE INVENTION
図 1を参照して、 この実施例のディジタルビデオカメラ 10は、 光学レンズ 1 2を含む。 被写界の光学像は、 光学レンズ 12を通してイメージセンサ 14の撮 像面に照射される。 撮像面では、 光電変換によって被写界の光学像に対応する電 荷つまり生画像信号が生成される。  Referring to FIG. 1, a digital video camera 10 of this embodiment includes an optical lens 12. The optical image of the object scene is applied to the image plane of the image sensor 14 through the optical lens 12. On the imaging surface, a charge corresponding to an optical image of the object scene, that is, a raw image signal is generated by photoelectric conversion.
キ一入力装置 46に設けられたモードキー 46 aによってカメラモードが選択 されると、 スルー画像処理つまり被写界のリアルタイム動画像を LCDモニタ 3 0に表示する処理が実行される。 CPU36はまず、 プリ露光および間引き読み 出しの繰り返しをドライバ 16に命令する。 ドライバ 16は、 イメージセンサ 1 4のプリ露光とこれによつて生成された生画像信号の間引き読み出しとを繰り返 し実行する。 プリ露光および間引き読み出しは、 クロック CLK1に基づいて分 周器 34から出力される垂直同期信号 Vs ync 1に応答して実行される。 垂直 同期信号 V s y n c 1は 1 30秒に 1回の割合で発生し、 被写界の光学像に対 応する低解像度の生画像信号は 30 f p sのフレームレートでイメージセンサ 1 4から出力される。  When the camera mode is selected by the mode key 46a provided on the key input device 46, through image processing, that is, processing for displaying a real-time moving image of the object scene on the LCD monitor 30 is executed. First, the CPU 36 instructs the driver 16 to repeat pre-exposure and thinning-out reading. The driver 16 repeatedly executes the pre-exposure of the image sensor 14 and the thinning-out reading of the raw image signal generated thereby. The pre-exposure and the thinning-out reading are executed in response to the vertical synchronization signal Vsync 1 output from the frequency divider 34 based on the clock CLK1. The vertical sync signal V sync 1 is generated once every 130 seconds, and the low-resolution raw image signal corresponding to the optical image of the object scene is output from the image sensor 14 at a frame rate of 30 fps. .
出力された各フレームの生画像信号は、 03ノ八 (:ノ八0回路18によつ てノイズ除去, レベル調整および AZD変換の一連の処理を施され、 これによつ てディジタル信号である生画像データが得られる。 信号処理回路 20は、 CDS AGCZAD回路 18から出力された生画像データに白バランス調整,色分離, YUV変換などの処理を施し、 YUV形式の画像デ一夕を生成する。 生成された 各フレームの画像データは、 メモリ制御回路 24によって SDRAM 26に書き 込まれる。 The output raw image signal of each frame is subjected to a series of processes of noise removal, level adjustment, and AZD conversion by the circuit 18 and is a digital signal. The raw image data is obtained The signal processing circuit 20 adds white balance adjustment, color separation, and white balance to the raw image data output from the CDS AGCZAD circuit 18. Performs processing such as YUV conversion to generate image data in YUV format. The generated image data of each frame is written into the SDRAM 26 by the memory control circuit 24.
ビデオエンコーダ 28は、 クロック CLK 2に基づいて分周器 32から出力さ れる垂直同期信号 V s y n c 2に応答して、 画像データの読み出しをメモリ制御 回路 24に要求する。 垂直同期信号 V s y n c 2も 1ノ 30秒に 1回の割合で発 生し、 画像データは 30 f p sのフレームレートで SDRAM26からビデオェ ンコーダ 28に転送される。  The video encoder 28 requests the memory control circuit 24 to read image data in response to the vertical synchronizing signal Vsync2 output from the frequency divider 32 based on the clock CLK2. The vertical synchronizing signal Vsync2 is also generated once every 30 seconds, and the image data is transferred from the SDRAM 26 to the video encoder 28 at a frame rate of 30 fps.
ビデオエンコーダ 28は、 転送された画像デ一夕を NTS Cフォーマツトに従 うコンポジットビデオ信号に変換し、 変換されたコンポジットビデオ信号を LC Dモニタ 30に与える。 この結果、 被写界のスルー画像がモニタ画面に表示され る。 なお、 以下では説明を適宜省略するが、 SDRAM26へのアクセスは必ず メモリ制御回路 24を通して行われる。  The video encoder 28 converts the transferred image data into a composite video signal according to the NTSC format, and supplies the converted composite video signal to the LCD monitor 30. As a result, a through image of the object scene is displayed on the monitor screen. Although description is omitted as appropriate below, access to the SDRAM 26 is always performed through the memory control circuit 24.
静止画撮影キー 46 eが操作されると、 CPU 36は、 1回の本露光と 1回の 全画素読み出しとをドライバ 16に命令する。 ドライバ 16は、 イメージセンサ 14の本露光とこれによつて生成された生画像信号の全画素読み出しとを 1回ず つ実行する。 これによつて、 被写界の光学像に対応する高解像度の生画像信号が イメージセンサ 14から出力される。 出力された生画像信号は上述と同様の処理 によって YUV形式の静止画像デ一夕に変換され、 変換された静止画像データは SDRAM26に書き込まれる。  When the still image shooting key 46e is operated, the CPU 36 instructs the driver 16 to perform one main exposure and one readout of all pixels. The driver 16 executes the main exposure of the image sensor 14 and the reading of all the pixels of the raw image signal generated by the main exposure once. As a result, a high-resolution raw image signal corresponding to the optical image of the object scene is output from the image sensor 14. The output raw image signal is converted into a YUV format still image data by the same processing as described above, and the converted still image data is written to the SDRAM 26.
CPU 36はまた、 圧縮命令を J PEGコ一デック 40に向けて発行する。 J PEGコーデック 40は、 SDRAM 26から静止画像データを読み出し、 読み 出された静止画像データに J PEG圧縮を施し、 そして圧縮静止画像データつま り J PEGデータを SDRAM 26に書き込む。 CPU 36はその後、 SDRA M26から J PEGデータを読み出し、 読み出された J PEGデータを含む J P EGファイルを IZF 42を通して記録媒体 44に記録する。  The CPU 36 also issues a compression instruction to the JPEG codec 40. The JPEG codec 40 reads still image data from the SDRAM 26, performs JPEG compression on the read still image data, and writes the compressed still image data, that is, JPEG data, to the SDRAM 26. Thereafter, the CPU 36 reads the JPEG data from the SDRA M26, and records the JPEG file including the read JPEG data on the recording medium 44 through the IZF 42.
なお、 記録媒体 44は着脱自在の半導体メモリであり、 図示しないスロットに 装着されたときに I ZF 42によってアクセス可能となる。  The recording medium 44 is a detachable semiconductor memory, and can be accessed by the IZF 42 when the recording medium 44 is mounted in a slot (not shown).
スルー画像が L CDモニタ 30に表示されている状態で動画撮影キー 46 dが 操作されると、 CPU 36は、 MP EG4コ一デック 34を起動する。 MPEG 4コーデック 34は、 垂直同期信号 Vs yn c 1が発生する毎に、 SDRAM2 6から各フレームの画像デ一夕を読み出し、 読み出された画像データに MP EG 4フォーマツトのシンプルプロファイルに従う圧縮処理を施す。 画像デ一夕は、 概ね 15フレームに 1回の割合でイントラ符号化を施され、 残りのフレームでィ ンター符号化を施される。 こうして生成された圧縮動画像データつまり MP E G データは、 SDRAM26に書き込まれる。 When the through image is displayed on the LCD monitor 30, When operated, the CPU 36 activates the MPEG4 codec 34. The MPEG-4 codec 34 reads the image data of each frame from the SDRAM 26 every time the vertical synchronization signal Vsync 1 is generated, and performs a compression process on the read image data in accordance with the MPEG 4 format simple profile. Apply. In the image data, intra coding is applied approximately once every 15 frames, and inter coding is applied to the remaining frames. The generated compressed moving image data, that is, MPEG data, is written to the SDRAM 26.
イントラ符号化を施されたフレームを "Iフレーム" と定義し、 インタ一符号 化を施されたフレームを "Pフレーム" と定義する。 また、 Iフレームおよびこ れに続く複数の Pフレームからなる塊を "GOP (Group Of Pictures)" と定義 する。すると、 MP E Gデータは図 3に示すデータ構造を有することとなる。各々 の GOPには、 "0" から始まる識別番号が割り当てられる。  Intra-coded frames are defined as "I-frames", and inter-coded frames are defined as "P-frames". Also, a lump composed of an I frame and a plurality of P frames following it is defined as a "GOP (Group Of Pictures)". Then, the MPEG data has the data structure shown in FIG. Each GOP is assigned an identification number starting with "0".
CPU40は、 SDRAM 26に蓄積された MP E Gデ一夕を周期的に読み出 し、読み出された M P E Gデータを I / F 42を通して記録媒体 44に記録する。 動画撮影キー 46 dが再度操作されると、 CPU 36は、 MPEG4コ一デック 38を不能化し、 SDRAM 26に残存する MP E Gデ一夕を記録媒体 44に記 録する。 記録媒体 44内には、 複数フレームの MP EGデータを含む MP EGフ アイルが作成される。  The CPU 40 periodically reads out the MPEG data stored in the SDRAM 26 and records the read MPEG data on the recording medium 44 through the I / F 42. When the moving image shooting key 46 d is operated again, the CPU 36 disables the MPEG4 codec 38 and records the MPEG data remaining in the SDRAM 26 on the recording medium 44. In the recording medium 44, an MPEG file including a plurality of frames of MPEG data is created.
モードキー 46 aによって再生モードが選択され、 カーソルキ一46 cおよび セットキ一 46 bによって所望の J PEGファイルが選択されると、 CPU36 は、 この J PEGファイルに格納された J PEGデータを記録媒体 44から SD RAM 26に転送し、 かつ J PEGコーデック 40に伸長命令を与える。 J PE Gコ一デヅク 40は、 J PEGデ一夕を SDRAM26から読み出し、 読み出さ れた J PEGデ一夕を伸長し、 伸長された画像データを SDRAM26に書き込 む。 ビデオエンコーダ 28は、 垂直同期信号 Vs ync 2が発生する毎に SDR AM 26から画像データを読み出し、 読み出された画像データを NTS Cフォー マツトのコンポジットビデオ信号に変換し、 そして変換されたコンポジットビデ ォ信号を LCDモニタ 30に与える。 これによつて、 静止画像が LCDモニタ 3 0に表示される。 再生モードが選択されている状態でカーソルキー 46 cおよびセットキ一 46 bによって所望の MP EGファイルが選択されると、 この MP EGファイルの再 生処理が実行される。 CPU36はまず、 MP EGファイルに格納された先頭フ レームの MP EGデータを記録媒体 44から SDRAM 26に転送し、 伸長命令 を MPEG4コ一デック 38に与える。 MP EGコーデック 38は先頭フレーム の MPEGデータを SDRAM26から読み出し、 読み出された MP E Gデータ を伸長し、 そして伸長された画像データを SDRAM 26に書き込む。 ビデオェ ンコーダ 28は上述と同様の処理を実行し、 この結果、 先頭フレームの静止画像. が LCDモニタ 30に表示される。 When the playback mode is selected by the mode key 46a and the desired JPEG file is selected by the cursor key 46c and the set key 46b, the CPU 36 stores the JPEG data stored in the JPEG file in the recording medium 44. To the SD RAM 26, and gives a decompression instruction to the JPEG codec 40. The JPEG decoder 40 reads the JPEG data from the SDRAM 26, decompresses the read JPEG data, and writes the decompressed image data to the SDRAM 26. The video encoder 28 reads the image data from the SDRAM 26 every time the vertical synchronization signal Vsync 2 is generated, converts the read image data into an NTSC C format composite video signal, and converts the converted composite video signal. Signal to the LCD monitor 30. As a result, a still image is displayed on the LCD monitor 30. When a desired MPEG file is selected by the cursor key 46c and the set key 46b in a state where the reproduction mode is selected, the reproduction processing of this MPEG file is executed. First, the CPU 36 transfers the MPEG data of the first frame stored in the MPEG file from the recording medium 44 to the SDRAM 26, and gives a decompression instruction to the MPEG4 codec 38. The MPEG codec 38 reads the MPEG data of the first frame from the SDRAM 26, decompresses the read MPEG data, and writes the decompressed image data to the SDRAM 26. The video encoder 28 performs the same processing as described above. As a result, the still image of the first frame is displayed on the LCD monitor 30.
ここで、 セットキー 46 bが再度操作されると、 動画再生が実行される。 CP U36は、 所望の MP EGファイルに格納された MP EGデータを 1 GO Pに相 当する周期で 1 GO Pずつ SDRAM 26に転送し、 垂直同期信号 V s y n c 1 に応答して MP EG4コーデック 38に伸長命令を与える。 MPEG4コ一デッ ク 38は、 垂直同期信号 V s yn c 1に応答して上述と同様の処理を実行する。 ビデオエンコーダ 28は、 垂直同期信号 V s y n c 2が発生する毎に S D R AM 26から画像データを読み出し、 読み出された画像デ一夕を NTS Cフォ一マツ トのコンポジットビデオ信号に変換し、 そして変換されたコンポジットビデオ信 号を LCDモニタ 30に与える。 この結果、 先頭フレームに続く動画像が LCD モニタ 30に表示される。  Here, when the set key 46b is operated again, the moving image is reproduced. The CPU 36 transfers the MPEG data stored in the desired MPEG file to the SDRAM 26 by 1 GOP at a cycle corresponding to 1 GOP, and responds to the vertical synchronization signal Vsync 1 to the MPEG4 codec 38 To the decompression instruction. The MPEG4 codec 38 performs the same processing as described above in response to the vertical synchronization signal Vsync1. The video encoder 28 reads image data from the SDRAM 26 every time the vertical sync signal Vsync 2 is generated, converts the read image data into an NTSC C-format composite video signal, and converts the image data. The supplied composite video signal is supplied to the LCD monitor 30. As a result, the moving image following the first frame is displayed on the LCD monitor 30.
こうして動画像が順方向に再生されている途中でカーソルキー 36 cによって 右方向が指定されると、動画像が逆方向に再生される。このとき、 CPU36は、 図 6〜図 7に示す MP EG伸長タスク,図 8〜図 10に示す J P E G圧縮タスク, 図 11に示す J PEG伸長タスクおよび図 12に示す表示タスクを並列的に実行 する。  When the right direction is designated by the cursor key 36c while the moving image is being reproduced in the forward direction, the moving image is reproduced in the reverse direction. At this time, the CPU 36 executes the MPEG decompression task shown in FIGS. 6 and 7, the JPEG compression task shown in FIGS. 8 to 10, the JPEG decompression task shown in FIG. 11, and the display task shown in FIG. 12 in parallel. .
なお、 CPU36は、 I TRONのようなマルチタスク OSの制御の下で図 6〜図 12に示す夕スクを実行する。かかるタスクに対応する制御プログラムは、 フラッシュメモリ 22に記憶される。  The CPU 36 executes the tasks shown in FIGS. 6 to 12 under the control of a multitask OS such as ITRON. A control program corresponding to such a task is stored in the flash memory 22.
再生モードでは、 SDRAM26は図 2に示すようにマッピングされる。 バン ク 26 a ひ ンク 0),バンク 26 b (バンク 1)およびバンク 26 c (バンク 2) の各々は、 伸長された 1フレームの画像データを格納するエリアである。 J PE Gデータエリア 26 cは、各フレームの J PEGデータを格納するエリアである。 J PEGインデックスエリア 26 eは、 J PEGデ一夕エリア 26 dに格納され た各フレームの J PEGデータの先頭アドレス値を格納するエリアであり、 45 個のコラム JPEG— index[0]〜 JPEG— index[44]によつて形成される。 MPEG 4データエリア 26 fは、 記録媒体 44から読み出された MP EGデータを格納 するエリアである。 In the playback mode, the SDRAM 26 is mapped as shown in FIG. Bank 26a Bank 0), Bank 26b (Bank 1) and Bank 26c (Bank 2) Each is an area for storing one frame of decompressed image data. The JPEG data area 26c is an area for storing JPEG data of each frame. The J PEG index area 26e is an area for storing the start address value of the J PEG data of each frame stored in the J PEG data overnight area 26d, and includes 45 columns JPEG—index [0] to JPEG—. It is formed by index [44]. The MPEG 4 data area 26f is an area for storing the MPEG data read from the recording medium 44.
なお、 記録媒体 44から MPEG4デ一夕エリア 26 fへの MPEGデータの 転送は、 図示しないタスクによって周期的に実行される。  The transfer of MPEG data from the recording medium 44 to the MPEG4 data area 26f is periodically executed by a task (not shown).
図 6を参照して、 ステップ S 1では各種変数を初期化する。 具体的には、 GO P番号 gop— mmiを "#" に設定し、 フレーム数 vop_numを "*" に設定し、 コラム番号 Kを" vop— mini— 1 "に設定し、そしてァドレス値 jenc— adrを" JPG —START" に設定する。 さらに、 フラグ mdec— end, jenc_flg, jdec— flgおよ ひ disp figを 0 に設定し、 フレ一ム番号 mdec _ num, jenc num よひ ; jdec— nrnnを "0" に設定し、 そしてバンク番号 mbank, jbankおよび dbank を "0" に設定する。  Referring to FIG. 6, in step S1, various variables are initialized. Specifically, set the GO P number gop—mmi to “#”, set the number of frames vop_num to “*”, set the column number K to “vop—mini—1”, and set the address value jenc— Set adr to "JPG —START". In addition, the flags mdec—end, jenc_flg, jdec—flg and disp fig are set to 0, the frame numbers mdec_num, jenc num, and jdec—nrnn are set to “0”, and the bank number is set. Set mbank, jbank and dbank to "0".
ここで、 G O P番号 gop_numは注目する G〇 Pの識別番号であり、 "#" は 逆方向の動画再生が指示された時点で再生されていたフレームが属する GO Pの 識別番号を示す。フレーム数 vop— numは注目する GO Pから再生すべきフレー ムの数であり、 " * "は逆方向の動画再生が指示された時点で再生されていたフレ —ムの番号に "1" を加算した値を示す。  Here, the GOP number gop_num is the identification number of the G〇P of interest, and “#” indicates the identification number of the GOP to which the frame that was being played back when the reverse moving image playback was instructed belongs. The number of frames vop—num is the number of frames to be played from the GOP of interest, and “*” is “1” for the number of the frame that was playing when the reverse video playback was instructed. Indicates the added value.
図 3に示す GO P (n+ 1) に属する 15フレームのうちフレーム番号 "2" が割り当てられたフレームから逆方向再生を開始する場合、 "#"は "n+ 1"を 示し、 "*" は "3" を示す。  When reverse playback starts from the frame to which frame number “2” is assigned among 15 frames belonging to GOP (n + 1) shown in FIG. 3, “#” indicates “n + 1” and “*” indicates Indicates "3".
コラム番号 Kは、図 2に示す J PEGインデックスエリア 26 eに形成された コラムの識別番号である。 ァドレス値 jenc— adrは J P E Gデータの書き込みを 開始するァドレスの値であり、 "JPG— START" は J P E Gデータエリァ 26 d の先頭アドレス値である。  Column number K is the identification number of the column formed in JPEG index area 26e shown in FIG. The address value jenc-adr is the address value at which writing of the JPEG data is started, and "JPG-START" is the start address value of the JPEG data area 26d.
フラグ mdec endは、 再生フレームが MP E Gファイルの先頭フレームに達 したか否かを識別するためのフラグである。 "0" は未達を意味し、 "1" は既達 を意味する。 フラグ jenc一 figは、 J PEGコーデック 40の圧縮処理を許可す るか否かを識別するためのフラグである。 "0" は禁止を意味し、 "1" は許可を 意味する。フラグ jdec— figは、 J P E Gコーデック 40の伸長処理を許可するか 否かを識別するためのフラグである。 "0" は禁止を意味し、 "1" は許可を意味 する。 フラグ disp— flgは、 ビデオエンコーダ 28のエンコード処理を許可する か否かを識別するためのフラグである。 "0" は禁止を意味し、 "1" は許可を意 味する。 The flag mdec end indicates that the playback frame reaches the first frame of the MPEG file. This is a flag for identifying whether or not the operation has been performed. "0" means not reached, "1" means reached. The flag jenc1 fig is a flag for identifying whether or not to permit the JPEG codec 40 compression processing. "0" means forbidden, "1" means allowed. The flag jdec-fig is a flag for identifying whether or not to permit the decompression processing of the JPEG codec 40. "0" means forbidden and "1" means allowed. The flag disp-flg is a flag for identifying whether or not the encoding process of the video encoder 28 is permitted. "0" means prohibition, "1" means permission.
フレ一ム番号 mdec— numは、 M P E G 4コ一デック 38によつて伸長すべき フレームの識別番号である。フレーム番号 jenc— numは、 J P E Gコーデック 4 0によって圧縮すべきフレームの識別番号である。 フレーム番号 jdec— numは、 J PEGコ一デック 40によって伸長すべきフレームの識別番号である。  The frame number mdec-num is an identification number of a frame to be expanded by the MPEG4 codec 38. The frame number jenc-num is an identification number of a frame to be compressed by the JPEG codec 40. The frame number jdec-num is the identification number of the frame to be expanded by the JPEG codec 40.
バンク番号 mbankは、 MPEG4コ一デック 38によって伸長された 1フレ —ムの画像データを格納すべきバンクの識別番号である。 バンク番号 jbankは、 J PEGコ一デック 40によって圧縮すべき 1フレームの画像データが格納され たバンク、 あるいは J PEGコ一デック 40によって伸長された 1フレームの画 像データを格納すべきバンクの識別番号である。バンク番号 dbankは、 LCDモ 二夕 30に表示すべき 1フレームの画像データが格納されたバンクの識別番号で める。  The bank number mbank is an identification number of a bank in which one frame of image data expanded by the MPEG4 codec 38 is to be stored. The bank number jbank is used to identify a bank in which one frame of image data to be compressed by the JPEG codec 40 or a bank in which one frame of image data decompressed by the JPEG codec 40 is to be stored. Number. The bank number dbank is the identification number of the bank in which one frame of image data to be displayed on the LCD module 30 is stored.
ステップ S 3では垂直同期信号 Vs ync 1が発生したか否かを判別し、 YE Sであれば、 フラグ mdec— end力 " 1 " であるか否かをステップ S 5で判別す る。 mdec— end= 0であれば、 ステップ S 9以降の処理に進む。 mdec— end= l であれば、 ステップ S 7でフラグ jdec— flgを "1"に設定してからステップ S 3 に戻る。  In step S3, it is determined whether or not the vertical synchronization signal Vsync 1 has occurred. If YES, it is determined in step S5 whether or not the flag mdec-end force is "1". If mdec—end = 0, the process proceeds to step S9 and subsequent steps. If mdec—end = l, the flag jdec—flg is set to “1” in step S7, and the process returns to step S3.
なお、 フラグ mdec— endは、 再生フレームが MP E Gファイルの先頭フレー ムに達したときに、 後述するステップ S 37で "1" に設定される。 また、 ステ ップ S 7は、 MP EGファイルの先頭フレームの J PEG圧縮が完了した後に、 後述するステップ S 69に代わってフラグ; jdec— flgを "1"に設定するためのス テツプである。 ステツプ S 9では、 フレーム番号 mdec_numをフレーム番号 jenc_numに 設定する。 ステップ S 1 1ではフレーム数 vop— numをフレーム数]' vop_nmn に設定し、 ステップ S 13では GOP番号 gop— numを GOP番号 jgop— num に設定し、 ステップ S 15ではバンク番号 mbankをバンク番号; jbankに設定す る。 The flag mdec-end is set to "1" in step S37 described later when the playback frame reaches the first frame of the MPEG file. Step S7 is a step for setting the flag; jdec-flg to "1" in place of step S69 described later after JPEG compression of the first frame of the MPEG file is completed. . In step S9, the frame number mdec_num is set to the frame number jenc_num. In step S11, the number of frames vop—num is set to the number of frames] 'vop_nmn, in step S13, the GOP number gop—num is set to the GOP number jgop—num, and in step S15, the bank number mbank is the bank number; Set to jbank.
フレーム番号 mdec num, フレーム数 vo _ num, G P ¾> go— _ numお よびバンク番号 mbankは M P E G伸長タスクで参照され、 フレーム番号 jenc— num, フレーム数 jvop _ num, GOP番号 j go _ num.お びノヽノク番 jbank は、 J PEG圧縮タスクで参照される。 ステップ S 9〜S 15の処理によって、 互いに関連するパラメータについて同期が確保される。 なお、 ステップ S 1の処 理から明らかなように、 1回目のステップ S 9の処理は意味をなさない。  Frame number mdec num, frame number vo _ num, GP ¾> go— _ num and bank number mbank are referenced in the MPEG decompression task, and frame number jenc— num, frame number jvop _ num, and GOP number j go _ num. The jbank number is also referred to in the JPEG compression task. By the processing of steps S9 to S15, synchronization is ensured for the parameters related to each other. Note that, as is clear from the processing in step S1, the first processing in step S9 has no meaning.
ステップ S 17では、 1フレームの伸長命令を MP EG4コーデック 38に向 けて発行する。 発行された伸長命令には、 GO P番号 gop— num, フレーム番号 mdec— numおよびパンク番号 mbankが含まれる。 MP E G 4コ一デック 38 は、 GO P番号 gop— nrnnおよびフレーム番号 mdec— numによって特定される 1フレームの MPEGデータを図 4に示す MPEG4デ一夕エリア 26 ίから読 み出し、 読み出された MP EGデータを伸長し、 そして伸長された画像データを 図 4に示すバンク 0〜 2のうちバンク番号 mbankに対応するバンクに書き込む。 伸長処理が完了するとステップ S 19で YESと判断し、 ステップ S 21でフ ラグ jenc— figを "1" に設定する。 これによつて、 図 8に示すステップ S 43 以降の処理が開始される。ステップ S 23では数式 1に従ってバンク番号 mbank を更新する。 数式 1によれば、 "mbank+ l" を "3" で割り算することによつ て得られる余りが、 バンク番号 mbankとして設定される。  In step S17, a one-frame decompression instruction is issued to the MPEG4 codec 38. The issued decompression instruction includes a GOP number gop-num, a frame number mdec-num, and a puncture number mbank. The MPEG4 codec 38 reads and reads one frame of MPEG data specified by the GOP number gop—nrnn and the frame number mdec—num from the MPEG4 data area 26 # shown in FIG. The expanded MPEG data is expanded, and the expanded image data is written to the bank corresponding to the bank number mbank among the banks 0 to 2 shown in FIG. When the decompression process is completed, YES is determined in step S19, and the flag jenc-fig is set to "1" in step S21. As a result, the processing after step S43 shown in FIG. 8 is started. In step S23, the bank number mbank is updated according to Equation 1. According to Equation 1, the remainder obtained by dividing "mbank + l" by "3" is set as the bank number mbank.
[数式 1]  [Formula 1]
mb ank=(mb ank+l)%3  mb ank = (mb ank + l)% 3
ステツプ S 25ではフレーム番号 mdec— numをインクリメントし、 ステツプ S 27ではィンクリメントされたフレーム番号 mdec— numがフレーム数 vop— numと一致するか否か判別する。 ここで NOであれば、注目する GOPから再生 すべきフレームの MPE G伸長が未だ完了していないとみなし、 直接ステツプ S 3に戻る。 In step S25, the frame number mdec-num is incremented, and in step S27, it is determined whether or not the incremented frame number mdec-num matches the frame number vop-num. If NO here, it is considered that MPEG expansion of the frame to be reproduced from the GOP of interest has not been completed yet, and the direct step S Return to 3.
これに対して、 ステップ S 27で YESと判断されると、 注目する GOPを変 更するべくステップ S 29で GOP番号 gop— nuniをデイクリメントする。ステ ップ S 3 1では、 デイクリメントされた G〇 P番号 gop_numが " 0 " を下回る か否かを判別する。  On the other hand, if YES is determined in step S27, the GOP number gop—nuni is decremented in step S29 to change the GOP of interest. In step S31, it is determined whether or not the decremented G P number gop_num is less than "0".
GO P番号 gop— nmnが " 0 "以上であればステップ S 3 3に進み、 フレーム 数 vop一 numを G 0 P番号 gop一 nvraiに対応する G O Pのフレーム数に設定する。 その後、 ステップ S 3 5でフレーム番号 mdec— numを "0" に設定し、 ステツ プ S 3に戻る。 一方、 GOP番号 gop— numが " 0"未満であれば、 MP EG伸 長処理を終了するべく、 ステップ S 37でフラグ mdec— endを "1" に設定す る。 ステップ S 3 7の処理が完了すると、 ステップ S 3に戻る。  If the GOP number gop—nmn is equal to or greater than “0”, the flow advances to step S33 to set the number of frames vop-num to the number of GOP frames corresponding to the G0P number gop-nvrai. After that, in step S35, the frame number mdec-num is set to "0", and the process returns to step S3. On the other hand, if the GOP number gop-num is less than "0", the flag mdec-end is set to "1" in step S37 to end the MPEG extension processing. Upon completion of the process in the step S37, the process returns to the step S3.
かかる MP EG伸長タスクの実行によって、 図 3に示すように、 MP EGデ一 夕を形成する複数の GO Pは逆方向に順に指定され、 指定された GO Pを形成す る複数のフレームは順方向に指定される。 MPEG4コ一デック 38は、 こうし て指定されたフレームに伸長処理を施す。 伸長された画像データは、 バンク 0→ バンク 1→バンク 2→バンク 0→…の順でバンク 0〜2の各々に書き込まれる。 図 8を参照して、 ステツプ S 4 1ではフラグ jenc— flgが " 1 " を示すか否か を判別し、 YESであればステップ S 43に進む。 上述のように、 フラグ jenc— figは、 1回目の MP EG伸長が完了したときにステップ S 2 1で " 1"に更新さ れる。 このため、 ステップ S 43以降の処理は、 1フレームの画像デ一夕がバン ク番号 mbankに対応するバンクに確保された時点で開始される。  By executing the MPEG decompression task, as shown in FIG. 3, a plurality of GOPs forming the MPEG data are sequentially specified in the reverse direction, and a plurality of frames forming the specified GOP are sequentially processed. Direction is specified. The MPEG4 codec 38 performs a decompression process on the specified frame. The expanded image data is written to each of banks 0 to 2 in the order of bank 0 → bank 1 → bank 2 → bank 0 →. Referring to FIG. 8, in step S41, it is determined whether or not flag jenc-flg indicates "1". If YES, the process proceeds to step S43. As described above, the flag jenc-fig is updated to "1" in step S21 when the first MPEG expansion is completed. Therefore, the processing after step S43 is started when one frame of image data is secured in the bank corresponding to the bank number mbank.
ステップ S 43では、 圧縮命令を J PEGコーデック 40に向けて発行する。 発行された圧縮命令には、 バンク番号; jbank (=mbank) およびアドレス値; jenc — adrが含まれる。 J PEGコ一デック 40は、 図 4に示すバンク 0〜 2のうち バンク番号]' bankに対応するバンクから 1フレームの画像データを読み出し、 読 み出された画像データに J PEG圧縮を施し、 そして生成された J PEGデータ を図 4に示す J P E Gデータエリァ 2 6 dのアドレス値 jenc— adrに対応するァ ドレス以降に書き込む。  In step S43, a compression instruction is issued to the JPEG codec 40. The issued compression instruction contains the bank number; jbank (= mbank) and the address value; jenc — adr. The J PEG codec 40 reads one frame of image data from the bank corresponding to bank number] 'bank among banks 0 to 2 shown in FIG. 4, performs J PEG compression on the read image data, Then, the generated JPEG data is written after the address corresponding to the address value jenc-adr of the JPEG data area 26 d shown in FIG.
J PEG圧縮が完了するとステップ S 45で YESと判断し、 ステップ S 47 でアドレス値 jenc— adrを図 2に示す J P E Gインデックスエリア 2 6 eのコラ ム JPEG— index[K]に書き込む。 ステツプ S 4 9では数式 2に従ってァドレス値 jenc— adr を更新し、 ステップ S 5 1では数式 3の条件が満足されるか否かを判 別する。 When J PEG compression is completed, YES is determined in step S45, and step S47 Writes the address value jenc-adr to the column JPEG-index [K] in the JPEG index area 26 e shown in Fig. 2. In step S49, the address value jenc-adr is updated according to equation 2, and in step S51 it is determined whether the condition of equation 3 is satisfied.
[数式 2 ]  [Formula 2]
jenc— adr=jenc一 adr + flt サっ  jenc— adr = jenc one adr + flt
[数式 3 ]  [Equation 3]
; jenc— adr + (圧縮サイズ + a)≤JPEG_END  Jenc—adr + (compressed size + a) ≤JPEG_END
なお、 数式 2および数式 3に示す "圧縮サイズ" は、 直前のステップ S 4 3の 処理によつて作成された J P E Gデータのサイズである。 また、 "JPEG— END" は図 2に示す J P E Gデータエリア 2 6 dの末尾アドレス値であり、 "ひ"はマー ジンである。  Note that the “compressed size” shown in Expressions 2 and 3 is the size of the JPEG data created by the process in the immediately preceding step S43. “JPEG-END” is the end address value of the JPEG data area 26 d shown in FIG. 2, and “HI” is the margin.
数式 3の条件が満たされるときは、直接ステップ S 5 5に進む。これに対して、 数式 3の条件が満たされないときは、 ステップ S 5 3でァドレス値; jenc— adrを "JPEG— START" に設定してからステップ S 5 5に進む。 ステップ S 5 5では コラム番号 Kをデイクリメントし、続くステップ S 5 7ではコラム番号 Kが" 0 " を下回るか否かを判別する。 コラム番号 Kが " 0 "以上であれば、 直接ステップ S 6 1に進む。 一方、 コラム番号 が " 0 "未満であれば、 ステップ S 5 9でコ ラム番号 Kを "MAX— J—IDX— 1 " に設定してからステップ S 6 1に進む。 ここで、 "MAX— J— IDX"は、 J P E Gィンデックスエリァ 2 6 dに形成され たコラムの総数である。図 2から分かるように、この実施例では" MAX— J— IDX" は " 4 5 " を示す。  When the condition of Expression 3 is satisfied, the process directly proceeds to step S55. On the other hand, if the condition of Expression 3 is not satisfied, the address value; jenc—adr is set to “JPEG—START” in step S53, and the process proceeds to step S55. In step S55, the column number K is decremented, and in subsequent step S57, it is determined whether or not the column number K is less than "0". If the column number K is "0" or more, go directly to step S61. On the other hand, if the column number is less than "0", the column number K is set to "MAX-J-IDX-1" in step S59, and then the process proceeds to step S61. Here, “MAX—J—IDX” is the total number of columns formed in the JPEG index area 26 d. As can be seen from FIG. 2, "MAX-J-IDX" indicates "45" in this embodiment.
ステップ S 6 1ではフレーム番号 jenc— numが "jvop— num— 1 "と一致する か否かを判断する。 つまり、 J P E G圧縮を施されたフレームが注目する GO P から再生すべき末尾のフレームであるか否かを判別する。 ここで NOであれば、 G O P番号 jgop_nmnが "#ー2 "以上であるか否かをステップ S 6 3で判断 し、 コラム JPEG__indextjdec— mmi]に書き込まれたァドレス値が " 0 " を上回 るか否かをステップ S 6 5で判断する。  In step S61, it is determined whether or not the frame number jenc-num matches "jvop-num-1". That is, it is determined whether or not the frame subjected to JPEG compression is the last frame to be reproduced from the focused GOP. If NO here, it is determined in step S63 whether or not the GOP number jgop_nmn is equal to or more than "# -2", and the address value written in the column JPEG__indextjdec—mmi] exceeds "0" It is determined in step S65 whether or not this is the case.
ステップ S 6 3は、 十分なフレーム数の J P E Gデータが J P E Gデータエリ ァ 26 dに蓄積されたか否かを判別するためのステップである。 ステップ S 65 は、 有効なァドレス値がコラム JPEG— indexlj'dec— num]に設定されているか否 かを判別するためのステップである。 In step S63, a sufficient number of frames of JPEG data are This is a step for determining whether or not the data is stored in the file 26d. Step S65 is a step for determining whether or not a valid address value is set in the column JPEG-indexlj'dec-num].
ステップ S 63および S 65のいずれか一方でも N〇と判断されると、 そのま まステップ S 69に進む。 ステップ S 65および S 67の両方で YESと判断さ れると、 ステップ S 67でフラグ jdec— figを "1"に設定してからステップ S 6 9に進む。 ステップ S 67の処理によって、 図 11に示すステップ S 93以降の 処理が開始される。 ステップ S 69では J PEG圧縮処理を禁止するべくフラグ ; jenc— figを "0" に設定し、 その後ステップ S 41に戻る。  If one of steps S63 and S65 is determined to be N〇, the process directly proceeds to step S69. If YES is determined in both steps S65 and S67, the flag jdec-fig is set to "1" in step S67, and the process proceeds to step S69. By the processing of step S67, the processing of step S93 and thereafter shown in FIG. 11 is started. In step S69, a flag is set to prohibit the JPEG compression processing;
ステップ S 61で YESと判断されると、ステップ S 71でコラム番号 Kを" K +jvop_num"に更新し、ステップ S 73では更新されたコラム番号 Kが "MAX —J一 IDX"以上であるか否かを判断する。 ここで NOであれば直接ステップ S 7 7に進むが、 YESであればステツプ S 75で変数 Kを "K— MAX— J— IDX" に更新してからステップ S 77に進む。 これによつて、 J PEGインデックスェ リア 26 eに形成されたコラムは、 循環的に指定されることとなる。 - ステップ S 77では GOP番号 jgop— nrnn をディクリメントし、 ステップ S 81では更新された GO P番号 jgop— nrnnが "0" であるか否か判断する。 こ こで YESと判断されると、 ステップ S 79でフラグ jenc— figを "0" に設定 してからステップ S 41に戻る。  If YES is determined in the step S61, the column number K is updated to “K + jvop_num” in a step S71, and in a step S73, the updated column number K is equal to or more than “MAX—J-IDX”. Determine whether or not. If “NO” here, the process directly proceeds to the step S77. If “YES”, the variable K is updated to “K—MAX—J—IDX” in a step S75, and then the process proceeds to a step S77. As a result, the columns formed in the JPEG index area 26e are designated cyclically. -In step S77, the GOP number jgop-nrnn is decremented. In step S81, it is determined whether or not the updated GOP number jgop-nrnn is "0". If YES is determined here, the flag jenc-fig is set to "0" in a step S79, and the process returns to the step S41.
一方、 ステップ S 77で NOと判断されるとステップ S 81以降の処理を実行 する。 ステップ S 81では、 GO P番号 jgop— nrnn に対応する GO Pのフレー ム数をコラム番号 Kに加算し、 これによつて得られた加算値によってコラム番号 Kを更新する。ステップ S 83では、更新されたコラム番号 Kが" MAX— J— IDX" 以上であるか否か判断する。 そして、 NOであれば直接ステップ S 63に移行す るが、 YESであればステツプ S 85でコラム番号 Kを "K— MAX__J— IDX" に更新してからステップ S 63に移行する。  On the other hand, if NO is determined in the step S77, the processes in and after the step S81 are executed. In step S81, the number of frames of the GOP corresponding to the GOP number jgop-nrnn is added to the column number K, and the column number K is updated with the added value obtained thereby. In step S83, it is determined whether or not the updated column number K is equal to or greater than "MAX-J-IDX". If NO, the process directly proceeds to step S63. If YES, the column number K is updated to “K—MAX__J—IDX” in step S85, and then the process proceeds to step S63.
かかる J P E G圧縮夕スクによって、 逆方向に順に指定される各 G O Pから順 方向に伸長された各フレームの画像データが、順方向に J P E G圧縮を施される。 こうして得られた各フレームの J PEGデータは、 J PEGデータエリア 26 d に書き込まれる。 また、 各フレームの J PEGデータの先頭アドレス値は、 図 5 (A) 〜図 5 (D) に示す要領で J PEGインデックスエリア 26 eに書き込ま れる。 With this JPEG compression, image data of each frame decompressed in the forward direction from each GOP specified in the reverse direction is subjected to JPEG compression in the forward direction. The JPEG data of each frame obtained in this way is stored in the JPEG data area 26 d Is written to. The start address value of the JPEG data of each frame is written to the JPEG index area 26e in the manner shown in FIGS. 5 (A) to 5 (D).
J PEGインデックスエリア 26 eに注目すると、 まず、 GOP (n+ 1) の 3フレームに関する 3つの先頭アドレス値が、 図 5 (A) に示す要領でコラム JPEG— index[2]〜JPEG—index[0]にそれぞれ書き込まれる。次に、 GOP (n) の 15フレームに関する 15個の先頭アドレス値が、 図 5 (B) に示す要領でコ ラム JPEG— index[17]〜 JPEG— index[3]にそれぞれ書き込まれる。  Focusing on the JPEG index area 26e, first, the three start address values for the three frames of GOP (n + 1) are stored in columns JPEG—index [2] to JPEG—index [0] as shown in FIG. ] Respectively. Next, the 15 start address values for the 15 frames of GOP (n) are written to columns JPEG-index [17] to JPEG-index [3], respectively, as shown in Fig. 5 (B).
GOP (n— 1) に関する J PEG圧縮が開始されると、 ステップ S 63 (お よび S 65) で YESと判断され、 ステップ S 67でフラグ; jdec— figが" 1"に 設定される。 つまり、 J PEGデータの伸長処理が許可される。 JPEGインデ ックスエリア 26 eに格納された先頭アドレス値は、 後述する J PEG伸長タス クによって、 図 5 (C) および図 5 (D) に示す要領で読み出される。  When JPEG compression for GOP (n-1) is started, YES is determined in step S63 (and S65), and the flag; jdec-fig is set to "1" in step S67. That is, decompression processing of JPEG data is permitted. The start address value stored in the JPEG index area 26e is read by the JPEG decompression task described later in the manner shown in FIGS. 5C and 5D.
GOP (n— 2) の 15フレームに関する 15個の先頭アドレス値のうち、 先 頭から 3個の先頭ァドレス値は JPEG— index[2]〜 JPEG— index[0]にそれぞれ 書き込まれ、 残りの 12個の先頭ァドレス値は JPEG— index[44]〜 JPEG— index[32]にそれぞれ書き込まれる (図 5 (D) 参照)。  Of the 15 start address values for the 15 frames of GOP (n-2), the first 3 start address values are written to JPEG-index [2] to JPEG-index [0], respectively, and the remaining 12 The first address values are written in JPEG-index [44] to JPEG-index [32], respectively (see Fig. 5 (D)).
図 11を参照して、 ステツプ S 91ではフラグ jdec— figが " 1 "を示すか否か 判断し、 YESであればステップ S 93で 1フレームの伸長命令を J PEGコー デック 40に与える。伸長命令には、 コラム; jpeg— indextjdec— num]に書き込ま れたアドレス値とバンク番号; jbankが含まれる。 J PEGコーデック 40は、 伸 長命令に含まれるアドレス値に従って J PEGデータエリア 26 eから 1フレー ムの J PEGデータを読み出し、 読み出された J PEGデータを伸長し、 そして 伸長された画像データをバンク番号; jbankに対応するバンクに書き込む。  Referring to FIG. 11, in step S91, it is determined whether or not flag jdec-fig indicates "1". If YES, a one-frame decompression instruction is given to JPEG codec 40 in step S93. The decompression instruction includes the address value written in the column; jpeg—indextjdec—num] and the bank number; jbank. The JPEG codec 40 reads one frame of JPEG data from the JPEG data area 26e according to the address value included in the decompression instruction, decompresses the read JPEG data, and decompresses the decompressed image data. Bank number; Write to the bank corresponding to jbank.
かかる J PEG伸長処理が完了すると、 ステップ S 95で YESと判断し、 ス テツプ S 97でフラグ disp—flgを "1" に設定するとともに、 ステップ S 99 でコラム番号 jdec— mimをインクリメントする。ステップ S 101では、更新さ れたコラム番号; jdec— nmnが "MAX— J— IDX"以上であるか否か判断する。 こ こで NOであれば直接ステップ S 105に進むが、 YESであればステップ S 1 03でコラム番号 jdec— numを "0" に設定してからステップ S 105に進む。 ステップ S 105ではフラグ; jdec— figを "0"に設定し、その後ステップ S 91 に戻る。 When the JPEG decompression process is completed, YES is determined in step S95, the flag disp-flg is set to "1" in step S97, and the column number jdec-mim is incremented in step S99. In step S101, it is determined whether or not the updated column number; jdec-nmn is greater than or equal to "MAX-J-IDX". If NO here, go directly to step S105, but if YES, step S1 In column 03, the column number jdec—num is set to “0”, and the process proceeds to step S105. In step S105, the flag; jdec-fig is set to "0", and the process returns to step S91.
かかる J PEG伸長タスクによって、 各フレームの J PEGデータの先頭アド レス値は、 図 5 (A) 〜図 5 (D) に示す要領で J PEGインデックスエリア 2 6 dから読み出される。  By such a JPEG decompression task, the start address value of the JPEG data of each frame is read from the JPEG index area 26d in the manner shown in FIGS. 5 (A) to 5 (D).
図 12を参照して、 ステップ S 111ではフラグ disp— figが "1"であるか 否かを判断する。 ここで YESであれば、 ステップ S 113で垂直同期信号 Vs ync 2の発生を待ち、 その後ステップ S 1 15で数式 4に従ってパンク番号 dbankを更新する。 数式 4によれば、 "; jbank+2" を "3"で割り算することで 得られる余りが、 バンク番号 dbankとして設定される。  Referring to FIG. 12, in step S111, it is determined whether or not flag disp_fig is "1". If “YES” here, the generation of the vertical synchronization signal Vsync 2 is waited for in step S113, and then the puncture number dbank is updated in accordance with equation 4 in step S115. According to Equation 4, the remainder obtained by dividing "; jbank + 2" by "3" is set as the bank number dbank.
[数式 4]  [Formula 4]
dbank=jbank+2)%3  dbank = jbank + 2)% 3
ステップ S 117では更新されたバンク番号 dbank をビデオエンコーダ 28 に設定し、 その後ステップ S 111に戻る。  In step S117, the updated bank number dbank is set in the video encoder 28, and the process returns to step S111.
力 る表示タスクによって、 図 2に示すバンク 0〜 2が循環的に指定され、 逆 方向に動く動画像が LCDモニタ 30に表示される。  The banks 0 to 2 shown in FIG. 2 are cyclically designated by the powerful display task, and a moving image moving in the opposite direction is displayed on the LCD monitor 30.
以上の説明から分かるように、 複数の GO Pの各々は、 順方向の先頭フレーム がィントラ符号化を施されかつ順方向で先頭フレームに続くフレームがィンター 符号ィ匕を施された複数フレームの画像データを含む。 CPU36は、 かかる複数 の GO Pブロックを逆方向に順に指定する (S29)。 MP E G 4コ一デック 38は、 指定された GOPに含まれる複数フレームの画像データを順方向に復号し、 J P EGコ一デック 40は、 復号された複数フレームの画像データの各々に順方向に イントラ符号化を施す。 CPU 36は、 イントラ符号ィヒを施されたフレーム数が 閾値以上であるか否かを判別する (S63)。 J PEGコ一デック 40は、 CPU36 の判別結果が肯定的であるとき、 イントラ符号化を施された複数フレームの画像 データを逆方向に復号する。  As can be understood from the above description, each of the plurality of GOPs is an image of a plurality of frames in which the first frame in the forward direction is subjected to the intra coding and the frame following the first frame in the forward direction is subjected to the inter coding. Includes data. The CPU 36 sequentially specifies the plurality of GOP blocks in the reverse direction (S29). The MP EG 4 codec 38 forwardly decodes the image data of a plurality of frames included in the specified GOP, and the JP EG codec 40 forwardly decodes each of the decoded image data of the plurality of frames. Intra coding is performed. The CPU 36 determines whether or not the number of frames subjected to the intra code is equal to or larger than a threshold (S63). When the determination result of the CPU 36 is affirmative, the J PEG codec 40 decodes the image data of a plurality of frames that have been intra-coded in the reverse direction.
つまり、 MPEG4コ一デック 38によつて順方向に復号された画像デ一夕は、 J PEGコーデック 40によって順方向にイントラ符号化を施される。 イントラ 符号化を施された画像データはその後、 J P E Gコ一デック 4 0によって逆方向 に復号される。 イントラ符号化を採用することで、 回路規模を抑えつつ、 逆方向 に画像デ一夕を再生することができる。 In other words, the image data decoded in the forward direction by the MPEG4 codec 38 is intra-coded in the forward direction by the JPEG codec 40. Intra The encoded image data is then decoded in the reverse direction by the JPEG codec 40. By adopting intra coding, it is possible to reproduce the image in the opposite direction while suppressing the circuit scale.
なお、 この実施例では、 各フレームの画像データのイントラ符号化に J P E G 方式を採用しているが、 J P E G方式に代えて J P E G 2 0 0 0方式を採用する ようにしてもよい。  In this embodiment, the JPEG system is adopted for the intra coding of the image data of each frame. However, the JPEG2000 system may be adopted instead of the JPEG system.
この発明が詳細に説明され図示されたが、 それは単なる図解および一例として 用いたものであり、 限定であると解されるべきではないことは明らかであり、 こ の発明の精神および範囲は添付されたクレームの文言によってのみ限定される。  While this invention has been described and illustrated in detail, it is obvious that it is used by way of example and example only and should not be construed as limiting, the spirit and scope of the invention being set forth in the appended claims. Limited only by the language of the claim.

Claims

請求の範囲 The scope of the claims
1 . 画像処理装置であって、 次のものを備える:  1. An image processing device comprising:
第 1時間軸方向の先頭画面がィントラ符号化を施されかつ前記第 1時間軸方向 で前記先頭画面に続く画面がィンター符号化を施された複数画面の画像データを 各々が含む複数のプロックを前記第 1時間軸方向とは逆の第 2時間軸方向に沿つ て順に指定する指定手段;  A plurality of blocks each including image data of a plurality of screens in which the first screen in the first time axis direction is subjected to the intra coding and the screen following the first screen in the first time axis direction is subjected to the inter coding. Designation means for sequentially designating along a second time axis direction opposite to the first time axis direction;
前記指定手段によって指定されたブロックに含まれる複数画面の画像データを 前記第 1時間軸方向に沿って順に復号する第 1復号手段;  First decoding means for sequentially decoding image data of a plurality of screens included in the block designated by the designation means along the first time axis direction;
前記第 1復号手段によって復号された複数画面の画像データの各々に前記第 1 時間軸方向に沿ってイントラ符号化を施す符号化手段;および  Encoding means for performing intra-encoding on each of the image data of a plurality of screens decoded by the first decoding means along the first time axis direction; and
前記符号化手段によって符号化された複数画面の画像データを前記第 2時間軸 方向に沿つて順に復号する第 2復号手段。  Second decoding means for sequentially decoding the image data of a plurality of screens encoded by the encoding means along the second time axis direction.
2 . クレーム 1に従属する画像処理装置であって、 前記イントラ符号化を施さ れた画面数が閾値以上であるか否かを判別する判別手段をさらに備え、 前記第 2 復号手段は前記判別手段の判別結果が肯定的であるとき復号処理を行う。 , 2. An image processing apparatus according to claim 1, further comprising: a determination unit configured to determine whether the number of screens subjected to the intra encoding is equal to or greater than a threshold value, wherein the second decoding unit includes the determination unit. When the result of the determination is positive, the decoding process is performed. ,
3 . クレーム 1または 2に従属する画像処理装置であって、 前記符号化手段お よび前記第 2復号手段の各々の処理は J P E G方式に従う。 3. An image processing device according to claim 1 or 2, wherein the processing of the encoding means and the processing of the second decoding means follow the JPEG system.
4. クレーム 1ないし 3のいずれかに従属する画像処理装置であって、 前記第 1時間軸方向は順方向であり、 前記第 2時間軸方向は逆方向である。  4. An image processing apparatus according to any one of claims 1 to 3, wherein the first time axis direction is a forward direction, and the second time axis direction is a reverse direction.
5 .画像処理装置のプロセサによって実行される画像処理プログラムであって、 次のものを備える:  5. An image processing program executed by a processor of the image processing apparatus, comprising:
第 1時間軸方向の先頭画面がィントラ符号化を施されかつ前記第 1時間軸方向 で前記先頭画面に続く画面がィンター符号化を施された複数画面の画像デ一夕を 各々が含む複数のプロックを前記第 1時間軸方向とは逆の第 2時間軸方向に沿つ て順に指定する指定ステップ;  A plurality of screens each including image data of a plurality of screens in which the first screen in the first time axis direction is subjected to the intra coding and the screen following the first screen in the first time axis direction is subjected to the inter coding. A designating step of sequentially designating the blocks along a second time axis direction opposite to the first time axis direction;
前記指定ステツプによって指定されたプロックに含まれる複数画面の画像デ一 夕を前記第 1時間軸方向に沿って順に復号する第 1復号ステップ;  A first decoding step of sequentially decoding image data of a plurality of screens included in the block specified by the specified step along the first time axis direction;
前記第 1復号ステツプによって復号された複数画面の画像データの各々に前記 第 1時間軸方向に沿ってイントラ符号化を施す符号化ステップ;および 前記符号化ステツプによつて符号化された複数画面の画像データを前記第 2時 間軸方向に沿つて順に復号する第 2復号ステツプ。 An encoding step of performing intra-encoding along the first time axis direction on each of the image data of a plurality of screens decoded by the first decoding step; and A second decoding step of sequentially decoding the image data of a plurality of screens encoded by the encoding step along the second time axis direction.
6 . 画像処理装置であって、 次のものを備える:  6. An image processing device comprising:
第 1時間軸方向の先頭画面がィントラ符号化を施されかつ前記第 1時間軸方向 で前記先頭画面に続く画面がインタ一符号化を施された複数画面の画像データを 各々が含む複数のプロックを前記第 1時間軸方向とは逆の第 2時間軸方向に沿つ て順に指定するプロセサ;  A plurality of blocks each including image data of a plurality of screens in which a first screen in the first time axis direction is subjected to intra coding and a screen subsequent to the first screen in the first time axis direction is inter-coded. A processor that sequentially specifies along a second time axis direction opposite to the first time axis direction;
前記プロセサによって指定されたプロックに含まれる複数画面の画像データを 前記第 1時間軸方向に沿って順に復号するデコーダ;および  A decoder for sequentially decoding image data of a plurality of screens included in a block designated by the processor along the first time axis direction; and
前記デコーダによって復号された複数画面の画像データの各々に前記第 1時間 軸方向に沿ってィントラ符号化を施し、 前記ィントラ符号化を施された複数画面 の画像データを前記第 2時間軸方向に沿って順に復号するコーデック。  Each of the image data of the plurality of screens decoded by the decoder is subjected to the intra coding along the first time axis direction, and the image data of the plurality of screens subjected to the inner coding is processed in the second time axis direction. A codec that decodes in order.
7 . クレーム 6に従属する画像処理装置であって、 前記プロセサは符号化処理 および復号処理を前記コーデックに交互に命令し、 前記コーデックは前記プロセ サからの命令に従う処理を実行する。  7. An image processing device according to claim 6, wherein the processor alternately instructs the codec to perform an encoding process and a decoding process, and the codec executes a process according to the instruction from the processor.
PCT/JP2005/007750 2004-05-17 2005-04-18 Image processing device WO2005112446A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US11/596,673 US20080008453A1 (en) 2004-05-17 2005-04-18 Image Processing Apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2004-146162 2004-05-17
JP2004146162A JP4190458B2 (en) 2004-05-17 2004-05-17 Image processing device

Publications (1)

Publication Number Publication Date
WO2005112446A1 true WO2005112446A1 (en) 2005-11-24

Family

ID=35394526

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2005/007750 WO2005112446A1 (en) 2004-05-17 2005-04-18 Image processing device

Country Status (4)

Country Link
US (1) US20080008453A1 (en)
JP (1) JP4190458B2 (en)
CN (1) CN100563321C (en)
WO (1) WO2005112446A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723986A (en) * 2012-06-28 2012-10-10 无锡莱吉特信息科技有限公司 Underwater light-emitting diode (LED) communication system based on universal serial bus (USB) interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07162805A (en) * 1993-12-08 1995-06-23 Toshiba Corp Special reproducing device for compressed image
JPH1032787A (en) * 1996-07-16 1998-02-03 Fujitsu Ltd Moving image encoding system for real-time reverse reproduction
JPH11252507A (en) * 1998-02-27 1999-09-17 Sony Corp Video signal reproducing device, its method, video signal recording and reproducing device and its method
JP2001333384A (en) * 1999-12-15 2001-11-30 Sanyo Electric Co Ltd Image processing method, image processor capable of utilizing the method and television receiver

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7706445B2 (en) * 2001-05-31 2010-04-27 Sanyo Electric Co., Ltd. Image processing employing picture type conversion
US7245821B2 (en) * 2001-05-31 2007-07-17 Sanyo Electric Co., Ltd. Image processing using shared frame memory
US7940844B2 (en) * 2002-06-18 2011-05-10 Qualcomm Incorporated Video encoding and decoding techniques

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07162805A (en) * 1993-12-08 1995-06-23 Toshiba Corp Special reproducing device for compressed image
JPH1032787A (en) * 1996-07-16 1998-02-03 Fujitsu Ltd Moving image encoding system for real-time reverse reproduction
JPH11252507A (en) * 1998-02-27 1999-09-17 Sony Corp Video signal reproducing device, its method, video signal recording and reproducing device and its method
JP2001333384A (en) * 1999-12-15 2001-11-30 Sanyo Electric Co Ltd Image processing method, image processor capable of utilizing the method and television receiver

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102723986A (en) * 2012-06-28 2012-10-10 无锡莱吉特信息科技有限公司 Underwater light-emitting diode (LED) communication system based on universal serial bus (USB) interface

Also Published As

Publication number Publication date
US20080008453A1 (en) 2008-01-10
CN100563321C (en) 2009-11-25
JP2005328432A (en) 2005-11-24
CN1934859A (en) 2007-03-21
JP4190458B2 (en) 2008-12-03

Similar Documents

Publication Publication Date Title
KR101015737B1 (en) Recording method, recording device, recording medium, image pickup device, and image pickup method
JP4682102B2 (en) Image coding apparatus and image coding method
JP2010074241A (en) Moving picture reproducing apparatus, moving picture reproducing method, program, and recording medium
US20090153677A1 (en) Recording and reproduction apparatus and methods, and a recording medium storing a computer program for executing the methods
JP2004015580A (en) Recorder
JP2005039792A (en) Recording apparatus and reproducing apparatus
WO2005112446A1 (en) Image processing device
US7991265B2 (en) Content recording apparatus capable of recording long content output
JP2004193695A (en) Recording and reproducing apparatus and method
JP2009272921A (en) Moving image recording apparatus, moving image reproducing apparatus, moving image recording method, moving image reproducing method, and semiconductor integrated circuit
WO2005081521A1 (en) File access device
JP2000287162A (en) Digital camera and moving picture reproducing device
JP2004140630A (en) Method and apparatus for compressing image for performing frame thinning processing
JP2008097727A (en) Animation-reproducing device
JP4446669B2 (en) Moving image data recording method and reproducing method thereof, moving image data recording device and reproducing device thereof
JP2007324663A (en) Video camera
JP2005300943A (en) Information display position control method and device
JP4420778B2 (en) Video playback device
JP2005348258A (en) Photographing apparatus and method, program and storage medium
JP2005229553A (en) Image processing apparatus
JP2013058853A (en) Moving image reproduction device, moving image reproduction method, and program
JP4298583B2 (en) Imaging device and mobile phone
KR101332299B1 (en) Image recording apparatus and method thereof
JP4164696B2 (en) Imaging apparatus and imaging method
JP2007081463A (en) Image processing apparatus and method

Legal Events

Date Code Title Description
AK Designated states

Kind code of ref document: A1

Designated state(s): AE AG AL AM AT AU AZ BA BB BG BR BW BY BZ CA CH CN CO CR CU CZ DE DK DM DZ EC EE EG ES FI GB GD GE GH GM HR HU ID IL IN IS KE KG KM KP KR KZ LC LK LR LS LT LU LV MA MD MG MK MN MW MX MZ NA NI NO NZ OM PG PH PL PT RO RU SC SD SE SG SK SL SM SY TJ TM TN TR TT TZ UA UG US UZ VC VN YU ZA ZM ZW

AL Designated countries for regional patents

Kind code of ref document: A1

Designated state(s): BW GH GM KE LS MW MZ NA SD SL SZ TZ UG ZM ZW AM AZ BY KG KZ MD RU TJ TM AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IS IT LT LU MC NL PL PT RO SE SI SK TR BF BJ CF CG CI CM GA GN GQ GW ML MR NE SN TD TG

121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200580009533.5

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 11596673

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

122 Ep: pct application non-entry in european phase
WWP Wipo information: published in national office

Ref document number: 11596673

Country of ref document: US