Summary of the invention
The present invention proposes a kind of image and merges device and comprise the portable terminal device that this image merges device, only adopt the static image data of a plurality of still image input units of still image first-in first-out memory cell buffer memory, reduced the quantity of still image first-in first-out memory cell, saved a large amount of memory spaces, reduce the design difficulty of chip, and reduced manufacturing cost.
Technical scheme of the present invention is achieved in that
A kind of image merges device, comprises dynamic image input unit, the first first-in first-out memory cell, at least one still image input unit, the second first-in first-out memory cell and an image merge cells;
Described dynamic image input unit is used to import dynamic image data;
Described at least one still image input unit is used to import static image data;
The described first first-in first-out memory cell is connected with described dynamic image input unit, is used for the dynamic image data according to the described dynamic image input unit input of the mode buffer memory of first-in first-out;
Described one second first-in first-out memory cell is connected with described at least one still image input unit, be used for according to the mode of first-in first-out in advance buffer memory carry out image and merge required static image data;
Described image merge cells, be connected with the described second first-in first-out memory cell with the described first first-in first-out memory cell, be used for reading the static image data of the described second first-in first-out memory cell buffer memory, and merge described dynamic image data and described static image data according to the dynamic image data of described first first-in first-out memory cell output.
Preferably, also comprise:
Display unit is connected with described image merge cells, is used to receive the image after described image merge cells merges, and shows described image.
Preferably, described display unit is LCDs LCD.
Preferably, also comprise:
The unit is set, is used for being provided with the position and the size of described dynamic image input unit and described still image input unit input picture.
A kind of portable terminal device, comprise image acquisition unit, be used to obtain original dynamic image data and static image data, comprise that also a kind of image merges device, described image merges device and comprises dynamic image input unit, the first first-in first-out memory cell, at least one still image input unit, the second first-in first-out memory cell and an image merge cells;
Described dynamic image input unit is used to import dynamic image data;
Described at least one still image input unit is used to import static image data;
The described first first-in first-out memory cell is connected with described dynamic image input unit, is used for the dynamic image data according to the described dynamic image input unit input of the mode buffer memory of first-in first-out;
Described one second first-in first-out memory cell is connected with described at least one still image input unit, be used for according to the mode of first-in first-out in advance buffer memory carry out image and merge required static image data;
Described image merge cells, be connected with the described second first-in first-out memory cell with the described first first-in first-out memory cell, be used for reading the static image data of the described second first-in first-out memory cell buffer memory, and merge described dynamic image data and described static image data according to the dynamic image data of described first first-in first-out memory cell output.
Preferably, described image merging device also comprises:
Display unit is connected with described image merge cells, is used to receive the image after described image merge cells merges, and shows described image.
Preferably, described display unit is LCDs LCD.
Preferably, described image merging device also comprises:
The unit is set, is used for being provided with the position and the size of described dynamic image input unit and described still image input unit input picture.
The present invention adopts the static image data of a still image first-in first-out memory cell (the second first-in first-out memory cell) a plurality of still image input units of buffer memory, thereby reduced the quantity of still image first-in first-out memory cell, thereby saved a large amount of memory spaces, owing to only need a still image first-in first-out memory cell, reduced the design difficulty of chip, reduce the size of chip, reduced the manufacturing cost of chip.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
With reference to Fig. 2, show the composition structure chart that a kind of image of the present invention merges device first embodiment.Described image merges device 200 and comprises dynamic image input unit 210, the first first-in first-out memory cell 220, at least one still image input unit 230, the second first-in first-out memory cell 240 and an image merge cells 250.
In the present embodiment, with two still image input units 230 is that example describes, it will be appreciated by those skilled in the art that, the present invention does not limit the quantity of described still image input unit 230, the quantity of described still image input unit 230 can be one, also can be three or more, all same suitable technical scheme of the present invention.
Described dynamic image input unit 210 is used to import dynamic image data.
The characteristics of image layer are to refresh in real time in the dynamic image input unit 210, the image of input can not stop, need refresh according to the speed of input, image in the dynamic image input unit 210 is the input continuously of a frame one frame, in the present invention, represent view data in the dynamic image input unit 210 with Layer A.
Described at least one still image input unit 230 is used to import static image data.
Described still image input unit 230 is a memory, in the present invention, represent view data in the still image input unit 230 with Layer B, a plurality of if still image input unit 230 has, then be respectively Layer B0, Layer B1, Layer B2.......
The described first first-in first-out memory cell 220 is connected with described dynamic image input unit 210, is used for the dynamic image data according to described dynamic image input unit 210 inputs of the mode buffer memory of first-in first-out.
Because dynamic image input unit 210 and image merge cells 250 are at 2 clock zones, the speed that is to say described dynamic image input unit 210 and described image merge cells 250 is different, therefore need with first-in first-out memory cell (FIFO, First In First Out) realizes, the size of this FIFO, relevant with the performance of actual product, be 256byte generally speaking.
Described one second first-in first-out memory cell 240 is connected with described at least one still image input unit 230, be used for according to the mode of first-in first-out in advance buffer memory carry out image and merge required static image data.
The quantitative relation of the described second first-in first-out memory cell 240 and still image input unit 230 is the one-to-many or the relation of (when having only a still image input unit 230) one to one, promptly individual no matter how much quantity of still image input unit 230 has, all only need one second first-in first-out memory cell 240 (still image first-in first-out memory cell) to get final product.
Because still image input unit 230 and image merge cells 250 are at 2 clock zones, the speed that is to say described still image input unit 230 and described image merge cells 250 is different, therefore need realize with FIFO, the size of this FIFO, relevant with the performance of actual product, be 256byte generally speaking.
The described second first-in first-out memory cell 240 is read the second first-in first-out memory cell 240 according to demand and position that image merges in advance with static image data, and static image data is passive, is read by image merge cells 250 when needing to get final product.
Described image merge cells 250, be connected with the described second first-in first-out memory cell 240 with the described first first-in first-out memory cell 220, be used for reading the static image data of the described second first-in first-out memory cell, 240 buffer memorys, and merge described dynamic image data and described static image data according to the dynamic image data of the described first first-in first-out memory cell 220 outputs.
Described image merge cells 250 reads static image data according to dynamic image data, for the part of dynamic image data and static image data stack, carries out directly map brushing after the computing according to the covering that sets in advance (overlay) mode.The part that does not superpose for dynamic image data and static image data is directly with directly output after the dynamic image data of this position or the static image data map brushing.
Further, described image merging device 200 also comprises:
Display unit 260 is connected with described image merge cells 250, is used to receive the image after described image merge cells 250 merges, and shows described image.
Described display unit 260 can be LCDs (LCD, Liquid Crystal Display), cathode-ray tube display (CRT, Cathode Ray Tube) or other display unit.
Further, described image merging device 200 also comprises:
Unit (figure does not show) is set, is used for being provided with the position and the size of described dynamic image input unit 210 and described still image input unit 230 input pictures.
Described covering (overlay) mode that unit further is used to be provided with dynamic image data and static image data overlapping portion is set.
Described the image size that unit further is used for being provided with described display unit 260 is set.
In the present invention, described image merging is merged into example with dynamic image data and static image data and is described, in actual applications, image of the present invention merges the merging that device is not only applicable to dynamic image data and static image data, also go for having only static image data to merge this a kind of situation, in this case, do not need the dynamic image input unit and the first first-in first-out memory cell.
The present invention adopts the static image data of a still image first-in first-out memory cell (the second first-in first-out memory cell 240) a plurality of still image input units 230 of buffer memory, thereby reduced the quantity of still image first-in first-out memory cell, thereby saved a large amount of memory spaces, for example hypothesis has 3 still image input units 230, each needs 256byte, prior art then needs the memory space of 256*3byte, and the present invention only needs the memory space of 256*1byte; And owing to only need a still image first-in first-out memory cell, reduced the design difficulty of chip, reduced the size of chip, reduced the manufacturing cost of chip.
The invention also discloses a kind of portable terminal device,, show the composition structure chart of a kind of portable terminal device first embodiment of the present invention with reference to Fig. 2.Described portable terminal device comprises image acquisition unit 310, described portable terminal device comprises that also a kind of image merges device 200, and described image merges device 200 and comprises dynamic image input unit 210, the first first-in first-out memory cell 220, at least one still image input unit 230, the second first-in first-out memory cell 240 and an image merge cells 250.
In the present embodiment, with two still image input units 230 is that example describes, it will be appreciated by those skilled in the art that, the present invention does not limit the quantity of described still image input unit 230, the quantity of described still image input unit 230 can be one, also can be three or more, all same suitable technical scheme of the present invention.
Described image acquisition unit 310 is used to obtain original dynamic image data and static image data.
Described image acquisition unit 310 is used to described dynamic image input unit 210 that dynamic image data is provided, or provides static image data for described still image input unit 230.
The quantity of described image acquisition unit 310 can be one, both for described dynamic image input unit 210 provides dynamic image data, provides static image data for described still image input unit 230 again; The quantity of described image acquisition unit 310 also can be respectively described dynamic image input unit 210 dynamic image data is provided for a plurality of, for described still image input unit 230 provides static image data.
Described dynamic image input unit 210 is used to import dynamic image data.
The characteristics of image layer are to refresh in real time in the dynamic image input unit 210, the image of input can not stop, need refresh according to the speed of input, image in the dynamic image input unit 210 is the input continuously of a frame one frame, in the present invention, represent view data in the dynamic image input unit 210 with Layer A.
Described at least one still image input unit 230 is used to import static image data.
In the present invention, represent view data in the still image input unit 230 with Layer B, a plurality of if still image input unit 230 has, then be respectively Layer B0, Layer B1, Layer B2.......
The described first first-in first-out memory cell 220 is connected with described dynamic image input unit 210, is used for the dynamic image data according to described dynamic image input unit 210 inputs of the mode buffer memory of first-in first-out.
Because dynamic image input unit 210 and image merge cells 250 are at 2 clock zones, the speed that is to say described dynamic image input unit 210 and described image merge cells 250 is different, therefore need with first-in first-out memory cell (FIFO, First In First Out) realizes, the size of this FIFO, relevant with the performance of actual product, be 256byte generally speaking.
Described one second first-in first-out memory cell 240 is connected with described at least one still image input unit 230, be used for according to the mode of first-in first-out in advance buffer memory carry out image and merge required static image data.
The quantitative relation of the described second first-in first-out memory cell 240 and still image input unit 230 is the one-to-many or the relation of (when having only a still image input unit 230) one to one, promptly individual no matter how much quantity of still image input unit 230 has, all only need one second first-in first-out memory cell 240 (still image first-in first-out memory cell) to get final product.
Because still image input unit 230 and image merge cells 250 are at 2 clock zones, the speed that is to say described still image input unit 230 and described image merge cells 250 is different, therefore need realize with FIFO, the size of this FIFO, relevant with the performance of actual product, be 256byte generally speaking.
The described second first-in first-out memory cell 240 is read the second first-in first-out memory cell 240 according to demand and position that image merges in advance with static image data, and static image data is passive, is read by image merge cells 250 when needing to get final product.
Described image merge cells 250, be connected with the described second first-in first-out memory cell 240 with the described first first-in first-out memory cell 220, be used for reading the static image data of the described second first-in first-out memory cell, 240 buffer memorys, and merge described dynamic image data and described static image data according to the dynamic image data of the described first first-in first-out memory cell 220 outputs.
Described image merge cells 250 reads static image data according to dynamic image data, for the part of dynamic image data and static image data stack, carries out directly map brushing after the computing according to the covering that sets in advance (overlay) mode.The part that does not superpose for dynamic image data and static image data is directly with directly output after the dynamic image data of this position or the static image data map brushing.
Further, described image merging device 200 also comprises:
Display unit 260 is connected with described image merge cells 250, is used to receive the image after described image merge cells 250 merges, and shows described image.
Described display unit 260 can be LCDs (LCD, Liquid Crystal Display), cathode-ray tube display (CRT, Cathode Ray Tube) or other display unit.
Further, described image merging device 200 also comprises:
The unit is set, is used for being provided with the position and the size of described dynamic image input unit 210 and described still image input unit 230 input pictures.
Described covering (overlay) mode that unit further is used to be provided with dynamic image data and static image data overlapping portion is set.
Described the image size that unit further is used for being provided with described display unit 260 is set.
In the present invention, described image merging is merged into example with dynamic image data and static image data and is described, in actual applications, portable terminal device of the present invention is not only applicable to the merging of dynamic image data and static image data, also go for having only static image data to merge this a kind of situation, in this case, do not need the dynamic image input unit and the first first-in first-out memory cell.
Portable terminal device of the present invention can be portable equipments such as camera, video camera, mobile phone.
The present invention adopts the static image data of a still image first-in first-out memory cell (the second first-in first-out memory cell 240) a plurality of still image input units 230 of buffer memory, thereby reduced the quantity of still image first-in first-out memory cell, thereby saved a large amount of memory spaces, for example hypothesis has 3 still image input units 230, each needs 256byte, prior art then needs the memory space of 256*3byte, and the present invention only needs the memory space of 256*1byte; And owing to only need a still image first-in first-out memory cell, reduced the design difficulty of chip, reduced the size of chip, reduced the manufacturing cost of chip.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.