The features and advantages of the invention will be more clearly understood from the following description taken in conjunction with the accompanying drawings, in which:
In the system in the embodiment, the data processor 21A is provided with a communication interface 26A instead of the external interface 6, the data processor 21B is provided with a communication interface 26B, and the communication interfaces 26A and 26B are connected by a communication path 31. In the present embodiment, data is exchanged through the communication path 31 in a handshake routine using a communication interface such as a serial communication interface, however, a parallel communication interface etc. can also be used. Further, to the communication interfaces 26A and 26B, a RAM 32A and a RAM 32B are directly connected, respectively. The communication interfaces 26A and 26B have the same configuration. The CPUs 22A and 22B can access the respective RAMs 24A and 24B directly, however, they can access the RAMs 32A and 32B only via the communication interfaces 26A and 26B, that is, cannot access them directly.
In
The data transmission/reception sections 46A and 46B realize communication between processors by controlling the communication interfaces 26A and 26B, respectively. The data transmission/reception sections 46A and 46B communicate data, such as parts of a file, and a command. A command is used to direct processing and notify the condition between processors.
The command IF sections 47A and 47B transmit an instruction or a notification from each portion to another data processor as a command. Further, the command IF sections 47A and 47B receive a command from the other data processor, judge the contents of the command, and notify each portion of that. In the case of a command involving an exchange of data, data is transmitted after a command is transmitted and data is received after the command is received.
The file multiplexing section 42 multiplexes a file in accordance with the rule of each file format (Dynamic image: AVI format, MP4 format. Static image: JPEG format etc.) or demultiplexes a file.
The file management section 43 manages files including those on the memory card 9 and the main processing contents thereof are, for example, initializing, starting file creation, ending file creation, deleting, write to a file, read from a file, etc.
The access control section 49 issues an instruction to the file management section 43 in accordance with an instruction from the file multiplexing section 42 and performs processing to the file on the memory card 29. Because it is not possible to issue an instruction directly to the file management section 43, the access control section 49 remotely issues an instruction to the access section 48 using communication between data processors, issues an instruction to the file management section 43 from the access section 48, and performs each process. An instruction from the access control section 49 to the access section 48 is performed by a command.
The access section 48 issues an instruction to the file management section 43 in accordance with an instruction of the access control section 49 and performs each process.
With the hardware configuration and software structure described above, in the system of the embodiment, an AVI file is formed in the memory card 29, the data processor 21B accesses the file indirectly to carry out a processing to record/play back a dynamic image file, however, the processing is shared as follows.
[Write Operation During the Period of Recording]
The data processor 21A writes a file in real time to the memory card 29 through the file management section 43 for managing files and the memory card IF section 41 and via the memory card interface 25. The data processor 21A also manages files on the memory card 29.
The data processor 21B encodes RGB image data from the CCD etc. into MPEG4, encodes audio data in the PCM code into MP2 and multiplexes the data. However, writing to the file on the memory card 29 etc. is performed by the data processor 21A.
[Read Operation During the Period of Playing Back]
The data processor 21A reads a file on the memory card in real time through the file management section 43 for managing files and the memory card IF section 41 and via the memory card interface 25.
The data processor 21B demultiplexes a file on the memory card 29, decodes data in MPEG4 into YUV image data, and decodes data in MP2 into audio data in PCM code. However, reading from a file on the memory card etc. is performed by the data processor 21A.
The write operation during the period of recording and the read operation during the period of playing back are explained in detail below.
As shown by the arrow e, the MPEG4 data encoded in the video processing section 27 and the MP2 data encoded in the audio processing section 28 are multiplexed in accordance with information for MUX processing in the file multiplexing section 42 of the data processor 21B using the RAM 24B as a work memory. As shown by the arrow f, the data having been subjected to MUX processing is stored sequentially in the RAM 32B via the communication interface 26B.
As shown by the arrow g, the data having been subjected to MUX processing and stored in the RAM 32B is transmitted to the RAM 32A via the communication interface 26B, the communication path 31, and the communication interface 26A. As shown in
As shown by the arrow h, the data having been subjected to MUX processing and stored in the RAM 32A is transmitted to the RAM 24A when the condition is such that the load of the internal bus 32A of the data processor 21A is light, as shown by the arrow h, then, as shown by the arrow i, the data is transmitted from the RAM 24A to the memory card 29 via the memory card interface 25 (refer to
In the manner described above, the data of the file having been subjected to MUX processing in the data processor 21B is written to the file on the memory card 29 by the data processor 21A.
Next, the read operation during the period of playing back is explained below.
When data to be played back is read from the memory card 29, as shown in
In response to this, the data processor 21A reads the specified data from the memory card 29 via the memory card interface 25 as shown by the arrow j when the condition is such that the load of the internal bus 23A is light and transmits the data to the RAM 24A, and further, as shown by the arrow k, the data processor 21A transmits the data to the RAM 32A via the communication interface 26A. By the way, it is also possible to transmit data from the memory card 29 to the RAM 32A via the memory card interface 25 and not via the RAM 24A. The data to be read is the data having been subjected to MUX processing.
As shown by the arrow 1, the data transmitted to the RAM 32A is transmitted to the RAM 32B via the communication interface 26A, the communication path 31, and the communication interface 26B.
Next, as shown by the arrow m, the data of the RAM 32B is transmitted to the RAM 24B. The data having been subjected to MUX processing and transmitted to the RAM 24B is demultiplexed into the data in MPEG4 and MP2 in the file multiplexing section 42. As shown by the arrow n, the video processing section 27 and the audio processing section 28 access the MPEG4 and MP2 data stored in the RAM 24B and generate a playing back signal (YUV image data and PCM audio data) by decoding the data.
Table 1 shows an example of a command issued from the access control section 49 of the data processor 21B.
The embodiments of the present invention are explained as above.
When the data processor 21B creates a file on the memory card 29, the file multiplexing section 42 of the data processor 21B outputs a CREATE command to the access control section 49 as shown in
Next, the file multiplexing section 42 directs the video processing section 27 and the audio processing section 28 to start encoding via the VC control section 44 and the AC control section 45. In response to this, the video processing section 27 encodes RGB image data and generates MPEG4 data and the audio processing section 28 encodes PCM audio data and generates MP2 data, and stores the data in the RAM 24B. The VC control section 44 and the AC control section 45 request the file multiplexing section 42 to perform multiplexing processing of the MPEG4 data and the MP2 data into a file. The file multiplexing section 42 adds information for multiplexing data and requests the access control section 49 to perform write processing. At this time, the data stored in the RAM 24B is transmitted to the RAM 32B. The access control section 49 transmits a WRITE command to the access section 48 via the command IF section 47B, the data transmission/reception section 46B, the data transmission/reception section 46A, and the command IF section 47A. The access section 48 starts data reception, sequentially stores the transmitted data in the RAM 32A, and further, transmits the data in the RAM 32A to the RAM 24A when the condition is such that the load of the internal bus 32A is light. Incidentally, the amount of data to be transmitted in one time is determined in advance and data is transmitted in the units of blocks.
When transmission of data is completed, the access section 48 requests the file management section 43 to write data to the memory card 29. The file management section 43 reads data from the RAM 24 when the condition is such that the load of the internal bus 32A is light and writes data to the file on the memory card 29 via the memory card IF section 41.
Data transmission from the RAM 24B to the RAM 24A and data write to the memory card 29 are performed in parallel with the encode processing in the video processing section 27 and the audio processing section 28.
The first half of the write processing of a file shown in
When the encode processing in the video processing section 27 and the audio processing section 28 is completed and the write of data to the memory card 29 is completed, the file multiplexing section 42 outputs a CLOSE command to the access control section 49 as shown in
The embodiments of the present invention are described as above, however, it is apparent that there can be various modification examples. The present invention can be applied to a system that utilizes a multiprocessor in which data processors are connected with each another by a communication path.
Number | Date | Country | Kind |
---|---|---|---|
2006-082317 | Mar 2006 | JP | national |