[utility model content]
The technical problems to be solved in the utility model is, obtain the resolution of picture and the display resolution of described device does not match at prior art above-mentioned, thereby cause normally to show in its image file or the data of display distortion have occupied this terminal storage space, make the defective that the service efficiency of storage space of this terminal reduces, a kind of resolution of picture and display resolution coupling of described digital terminal of obtaining is provided, the data that can not cause can not showing in its picture material have occupied this terminal storage space, make the device of the automatic adjustment input picture resolution that the service efficiency of storage space of this terminal improves.
The technical scheme that its technical matters that solves the utility model adopts is: the device of constructing a kind of automatic adjustment input picture resolution, comprise central controller, be used to store memory of data, be used to show the display of storing image data and be connected the input interface that is used to connect the external memorizer external equipment, also comprise by described input interface and obtain the resolution of view data and this view data and be temporarily stored in view data acquisition device in the described storer by described central controller by external memorizer or external equipment with described central controller, the difference that obtains described monitor resolution and calculate described input picture resolution and described monitor resolution from described central controller return central controller the display resolution acquisition device and from described central controller obtain above-mentioned data and according to these data to described temporary Flame Image Process, storage and the image processing apparatus that shows.
In device described in the utility model, described display resolution acquisition device also comprises: temporary image resolution ratio obtains the unit, monitor resolution is obtained unit, resolution computing unit and packed pixel computing unit; Wherein: the input end that temporary image resolution ratio obtains the unit is connected on the described central controller, and its output is connected to an input end of described resolution computing unit; The input end that monitor resolution is obtained the unit is connected on the central controller, and its output terminal is connected another input end of described resolution computing unit; The resolution computing unit comprises above-mentioned two input ends and output terminal, and its output terminal is connected on the described packed pixel computing unit; The output terminal of packed pixel computing unit is connected described image processing apparatus.
In device described in the utility model, described image processing apparatus comprises that also controlling described register map picture once sends into the image input control module of described central controller data in buffer amount and the Flame Image Process control module how decision compresses data in the described buffer memory, and described image input control module links to each other with central controller with described packed pixel computing unit respectively; Described Flame Image Process control module links to each other with central controller with described packed pixel computing unit respectively.
In device described in the utility model, described image input control module comprises input line number computing unit, input columns computing unit and image Input Control Element; The input end of described input line number computing unit is connected described packed pixel computing unit, and its output terminal is connected to described image Input Control Element; The input end of described input columns computing unit is connected described packed pixel computing unit, and its output terminal is connected to described image Input Control Element; Described image Input Control Element also is connected with described central controller.
In device described in the utility model, described Flame Image Process control module comprises and is used for searching the unit and being used to determine pixel delete cells with the highest pixel level or the upright position row or column position adjacent, that needs are deleted symmetrically of described pure color or tone purity in the pixel that the image pixel of a described input-buffer is searched the highest pixel of pure color or tone purity; The input end that described pixel is searched the unit is connected on the described central controller, and its output terminal is connected described pixel delete cells; The output of described pixel delete cells is connected on the described central controller.
In device described in the utility model, also comprise being used for that described treated image is stored in the image memory device of described storer and being used for described treated image is presented at image display device on the display of described terminal; Described image memory device and image display device are connected on the described central controller.
In device described in the utility model, the ultimate resolution that described input image data resolution shows greater than described terminal.
Implement digital terminal of the present utility model and make its input picture and the method for its display screen coupling, have following beneficial effect: since input picture be just with this input picture in the display screen part treatment of details that can not show, so the file of its input satisfies its display requirement and data volume is less, the utilization rate of its storage space is higher.
[embodiment]
Below in conjunction with accompanying drawing the utility model embodiment is described further.
As shown in Figure 1, adjust automatically among the embodiment of device of input picture resolution at the utility model, its self-adjusting method comprises the steps:
S11 obtains input image data and resolution thereof: in this step, data are read in place by image data storage or generation, at this moment, what read in is the data of a two field picture, be in order to obtain the parameter of image comprehensively on the one hand, the parameters such as sum that comprise resolution, pixel also can temporarily leave this frame image data in the storer on the other hand, and convenient follow-up handling procedure calls.Above-mentioned image comprises by the memory device stores in the external world image in this device.
S12 obtains terminal display resolution: in this device, comprised a display screen that is used for display image, this display screen has a resolution, and this monitor resolution is the demonstration bottleneck of whole device.Usually, be exactly the display resolution that this monitor resolution has determined whole device.For this device, as long as it is just passable that the resolution of view data of input is not less than aforementioned display device resolution, too high-resolution image can not demonstrate its details equally on above-mentioned display screen, on the contrary, its a large amount of details has increased its file content, take the storage space of this device, make this device in identical storage space, can only store less picture, make that the utilization rate of its storage space is lower.Therefore, as long as the image resolution ratio of input is not less than aforementioned display device resolution, aforementioned display device resolution can be used as the standard of the resolution of above-mentioned terminal input picture.In this step, be exactly to obtain aforementioned display device resolution by central controller.
The resolution of the more above-mentioned input image data of S13 and the resolution of terminal display, needing to obtain the number of pixels of compression: pass through above-mentioned steps, obtain the resolution and the terminal display resolution of input image data, in this step, more above-mentioned two resolution, the concrete number of pixels that draws total number of pixels of needing compression and need compress specific to every row in every frame and every row, for example, the resolution of the image of input is 3000 * 1000, and monitor resolution is 800 * 600, just can draw altogether what pixels needs compress according to these two data, wherein, comprise needing how many row of compression and how many row altogether.
S14 calls in buffer memory simultaneously with the pixel of same position in several capable pixels in the input picture: in this step, the data of same number of columns in the several line data in the view data of above-mentioned input are called in memory buffer, prepare to begin to handle (compression) these data.Owing to needing altogether in above-mentioned steps, to have obtained the pixel, row and the columns that compress, and a part that is actually in the two field picture of calling in this step (is actually image is divided into limited piece, access one handles at every turn soon, there is a proportionate relationship between piece and the integral image), therefore, can obtain the concrete quantity of input image data need compress in this step pixel, row and columns by the parameter correspondence that entire image need be compressed.In the present embodiment, when calling in above-mentioned view data, obtain above-mentioned pixel, row and columns.
S15 scans these pixels, finds out wherein pure color or the highest pixel of tone purity: for the data of calling in, scan wherein each pixel, in these pixels, analyze and find the wherein pixel or the purest point of its colourity of pure color.Because the diversity of image, thus may be in the pixel of the view data of input, may there be pure color, at this moment, the target of searching is exactly the purest pixel of colourity.
S16 decision is current to need the deletion amount of pixels and with the horizontal or vertical adjacent pixels point symmetry deletion of described demarcation pixel: with the above-mentioned pixel that finds be the center, according to above-mentioned line number and the columns that needing to obtain compression, delete the row or column adjacent symmetrically with this pure color pixel, if so-called symmetry has been deleted a row pixel on the left side of this pure color pixel horizontal level in fact exactly, then also require at its right deletion one row; If deleted a row pixel, then also require at its following deletion one row in the top of this pure color pixel upright position.
Does S17 handle a two field picture? judge whether to finish the processing of a two field picture, as finishing, execution in step S18, as not finishing the processing of a two field picture, jump to step S14, call in the another part (piece) in the input picture, the adjacent part (piece) of normally above-mentioned processing section (piece) begins it is carried out the processing of step S14 to S17.
View data after S18 will handle is kept in the storer, and on display, show: in this step, an above-mentioned two field picture is finished dealing with according to exploration on display resolution ratio, obtain meeting the image file of aforementioned display device resolution, this file both can make full use of display, and its data volume is also less, and helping preserving in the finite storage space of this digital terminal all may many picture file.In this step, above-mentioned file is kept in the storer, simultaneously, on the display screen of this device, shows this document.
Fig. 2 is a logical organization block diagram of realizing the device of said method, as shown in Figure 2, this device comprises:central controller 1, be connectedstorer 3 and display 2 on the above-mentionedcentral controller 1, in addition, also compriseimage capturing device 5, temporary image resolution ratio obtainsunit 59, monitor resolution is obtainedunit 60,resolution computing unit 61, packedpixel computing unit 62, input linenumber computing unit 71, inputcolumns computing unit 72, imageInput Control Element 73, pixel is searchedunit 74,pixel delete cells 75,image memory device 8 and image display device 9.Wherein, temporary image resolution ratio obtainsunit 59, monitorresolution acquisition device 60,resolution calculation element 61 and packedpixel computing unit 62 and constitutes the display resolution acquisition device, be used to obtain this digital terminal exploration on display resolution ratio, monitor resolution according to described image resolution ratio that obtains and described terminal, the calculating difference therebetween and the result of the described resolution calculation element of foundation, it is embodied as need be at the pixel number of every row or the deletion of every row.In addition, above-mentioned input linenumber computing unit 71, inputcolumns computing unit 72, image-input device 73, pixel is searchedunit 74 andpixel delete cells 75 composing images treating apparatus, wherein, input linenumber computing unit 71 is used for according to the resolution of described image and describedly need obtains the image pixel line number of the each input-buffer of described image processing apparatus in the pixel of every row or the deletion of every row; Inputcolumns computing unit 72 is used for according to the resolution of described image and describedly need obtains the image pixel columns of the each input-buffer of described image processing apparatus in the pixel of every row or the deletion of every row; Pixel is searchedunit 74 and is used for image pixel at a described input-buffer, searches pure color or the highest pixel of tone purity;Pixel delete cells 75 is used to determine and described pure color or the highest pixel level or the upright position row or column position adjacent, that needs are deleted symmetrically of tone purity, and these information is sent back central controller 1.In said apparatus, also comprise being used for that described treated image is stored in theimage memory device 8 of described storer and being used for described treated image is presented atimage display device 9 on the display of described terminal.
In Fig. 2, the annexation of each part mentioned above is as follows: display 2 andstorer 3 are connected on thecentral controller 1;Image capturing device 5 is connected on the above-mentionedcentral controller 1, will be temporarily stored in thestorer 3 that is connected withcentral controller 1 by the image of input interface input; Temporary image resolution ratio obtainsunit 59 and is connected by above-mentioned central controller, obtains the resolution that is temporarily stored in the input picture in thestorer 3, and sends it toresolution computing unit 61; Monitorresolution acquisition device 60 is obtained the resolution of display screen and is outputed toresolution computing unit 61 by above-mentionedcentral controller 1;Resolution computing unit 61 calculates its difference, this input image pixels and the included number of pixels of the every two field picture of this display screen by above-mentioned two resolution, and it is outputed to packedpixel computing unit 62; Packedpixel computing unit 62 calculates in current input image, the number of pixels that every row or every row need compress.Packedpixel computing unit 62 is transported to inputcolumns computing unit 72, image-input device 73 andpixel delete cells 75 respectively with its result calculated.After inputcolumns computing unit 72, image-input device 73 calculate the line number and columns of each input respectively, be sent to imageInput Control Element 73, this imageInput Control Element 73 will meet the transmission of data blocks that is divided out in the input image data of line number that aforementioned calculation comes out and the columns buffer memory in thecentral controller 1 successively bycentral processing unit 1; Simultaneously, pixel is searchedunit 74 and is searched view data in the buffer memory, find out its pure color or the highest pixel of tone purity, and its position is sent in thepixel delete cells 75, the data of pixel deletecells 75 comprehensive its inputs, make the position of the row or column of closing on that needs the highest pixel of symmetry deletion and above-mentioned pure color or tone purity, and send it to above-mentionedcentral processing unit 1, the feasible view data that can utilize in these result treatment buffer memorys.In the present embodiment, above-mentioned terminal also comprises and is connected on thecentral controller 1 and is stored in the image after the above-mentioned processing in the above-mentionedstorer 3 and is presented atimage memory device 8 andimage display device 9 on the display 2.
The above embodiment has only expressed several embodiment of the present utility model, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the utility model claim.Should be pointed out that for the person of ordinary skill of the art under the prerequisite that does not break away from the utility model design, can also make some distortion and improvement, these all belong to protection domain of the present utility model.Therefore, the protection domain of the utility model patent should be as the criterion with claims.