Image data identifying processing method and device thereof
Technical field
The present invention relates to a kind of image data identifying processing method and device thereof, especially a kind of have image treatment method and the device thereof that can identify and process some different images standard data.
Background technology
Along with development and the extensive use of electronic image system, the image standard that is applied to wherein play has also obtained great development.At present, more conventional image standard includes the TSC-system (abbreviation of National TelevisionSystem Committee, by American R & D), the Phase Alternation Line system (abbreviation of Phase Alteration Line, by Germany, on the basis of TSC-system, developed), the Sequential Color and Memory system (abbreviation of French Sequentiel CouleurA Memoire, by France, researched and developed) and high definition standard (for example, 720P, 1080i and 1080P) etc.
Image system is for dissimilar image standard, and its system configuration adopting is different.Its normally the image processor of image system first will deposit in advance in its memory corresponding to the configuration of input image standard.During system works, first by CPU, from memory, read configuration information, system modules is arranged; Then open stream, system starts normal work.
Due to, system configuration is to determine according to the image standard of input, therefore, once the image standard of change input, the original configuration of system just can not make system normally work.At this moment, just need to change system configuration, make its image standard that is applicable to new input, and then system is normally worked.Common operation is the memory of replacing system.System reads the configuration information corresponding to new input image standard from the memory newly changing like this, changes system settings, and then normally works.So operation is clearly quite inconvenient.
Therefore, a kind of new image processor is urgently proposed, to solve shortcoming of the prior art.
Summary of the invention
In view of this, one object of the present invention is to provide a kind of image data identifying processing method, and it can identify and process multiple different images standard data.
Another object of the present invention is to provide a kind of image recognition process unit, and it can implement the above image data identifying processing method relating to, and has the function of identifying and process multiple different images standard data.
In order to achieve the above object, an embodiment of the invention provide a kind of image data identifying processing method, and it includes following steps, and the length in the image data of detection input between two adjacent EAV is to obtain inputting the standard information of image data.The standard information of the image data of the input of acquisition is notified to processing unit.Processing unit access stores the memory of some system configuration informations corresponding to different images standard, and therefrom reads corresponding system configuration information according to image standard information.Processing unit, according to system configuration information configuration signal processing unit, makes it can process the image data of input.After configuration, the image data of input is correctly exported through system identification unit and signal processing unit.
Further, in different execution modes, it also includes following steps, in the input process of image data, constantly the image data of input is sampled, and the result of the result of this sampling and sampling last time is compared.If both are identical, inoperation; If both are different, detect it for which kind of image standard, after confirming the standard of new input image data, it can notifier processes unit.Processing unit is reference to storage, and therefrom reads corresponding system configuration information according to image standard information.Processing unit, according to system configuration information configuration signal processing unit, makes it can process the image data of input.After configuration, the image data of input can correctly be exported through system identification unit and signal processing unit.
Further, in different execution modes, it also includes following steps, and when system identification unit is found this sampled result and last time, sampled result was different, it can send interrupting information to processing unit.Processing unit can be according to interrupting information, shutdown signal processing unit.When processing unit is reading new configuration information, and after completion system configuration, it is opening signal processing unit again.
Further, in different execution modes, sampled data is the length information between two adjacent EAV in the image data of input.
Further, in different execution modes, the image data standard of input includes TSC-system and Phase Alternation Line system.
Further, in different execution modes, for the image data of TSC-system formula, system configuration is: IMAGE_WIDTH=720, IMAGE_HEIGHT=280.And for the image data of pal mode, system configuration is: IMAGE_WIDTH=720, IMAGE_HEIGHT=288.
In order to achieve the above object, another execution mode of the present invention provides a kind of image data recognition process unit of implementing above-mentioned image data identifying processing method, and it includes system identification unit (system recognizing unit), signal processing unit (signal processing unit), processor (processing unit) and memory (memory).Wherein system identification unit is used for being connected with extraneous image data input source, and can identify the image data standard of input.Memory is for storing the system configuration corresponding to some different images standards.During use, system identification unit after identifying the image standard of input, notification processor.Processor is reference to storage, reads the system configuration of correspondence, subsequently the relative set signal processing unit with it of wherein storage.After completing, the image data of input can be exported normally through system identification unit and signal processing unit.
Further, in different execution modes, in memory, the system configuration of storage includes the system configuration corresponding at least two kinds of image standards in TSC-system, Phase Alternation Line system, Sequential Color and Memory system and high definition standard.And memory can be industry known various element or the devices with memory function, for example CD, hard disk, storage card, USB flash disk etc. itself.
Further, in different execution modes, in system identification unit, be provided with a counter, for recording the length between the adjacent EAV of image data two of input, after length numerical value in the image data that obtains input between two adjacent EAV, length numerical value in its some different systems image datas that it and system identification element memory can be stored up between two adjacent EAV compares, and when both are consistent, can know the standard of the image data of input.
Further, in different execution modes, also can constantly sample to the image data of input in system identification unit in the input process of image data, and the result of the result of this sampling and sampling last time is compared.If both are identical, inoperation; If both are different, detect it for which kind of image standard, after confirming the standard of new input image data, it can notifier processes unit.Processing unit is reference to storage, and therefrom reads corresponding system configuration information according to image standard information.Processing unit, according to system configuration information configuration signal processing unit, makes it can process the image data of input.After configuration, the image data of input can correctly be exported through system identification unit and signal processing unit.
Further, in different execution modes, when system identification unit is found this sampled result and last time, sampled result was different, it can send interrupting information to processing unit.Processing unit can be according to interrupting information, shutdown signal processing unit.When processing unit is reading new configuration information, after completion system configuration, it is opening signal processing unit again.
With respect to prior art, image identifying processing method and the device thereof that the present invention relates to, make to use the more efficiently more intelligent more automation that becomes of its image system.The trouble that effectively minimizing replacing memory brings and the possibility of makeing mistakes.When normal replacing input source, do not need to do any operation, this input will be identified and adapt to system automatically.When input source surprisingly changes, as long as input source form is correct, do not need to do any operation, this input will be identified and adapt to system automatically.
Accompanying drawing explanation
Fig. 1 is the logical construction schematic diagram of the image processor that relates to of an embodiment of the invention;
Fig. 2 is the operational flowchart of the image processor shown in Fig. 1;
Fig. 3 is the structural representation of TSC-system formula image data two adjacent lines code streams.
Embodiment
Refer to shown in Fig. 1, a kind of image recognition process unit 100 that an embodiment of the invention relate to, it includes system identification unit (system recognizing unit) 110, signal processing unit (signal processing unit) 120, processor (processing unit) 130 and memory (memory) 140.Wherein system identification unit is used for being connected with extraneous image data input source, and can identify the image data standard of input.Memory is for storing the system configuration corresponding to some different images standards.During use, system identification unit identifies after the image standard of input, notification processor.Processor is reference to storage, reads wherein the corresponding system configuration with it of storage, relative set signal processing unit subsequently, and after completing, the image data of input is exported normally through system identification unit and signal processing unit.
Further, when image recognition process unit is used, its operating process refers to shown in Fig. 2.The image data of input source passes to system identification unit 110, and system identification unit can judge the standard of the image data of input according to the length between two adjacent EAV in the image data of input, knows after its standard information.System identification unit passes to processing unit 130 by the image standard information of input.
For example, the code stream of the image data of TSC-system, starting of every a line code stream is an EAV (endof active video), and EAV is comprised of 4 continuous byte, and its initial EAV is FF, 00,00, F1.After EAV, be that clear data (Blanking) is invalid data, it has 268 Byte.After clear data, be SAV (start of active video), SAV is comprised of 4 continuous byte, and its initial SAV is FF, 00,00, EC.The valid data of 1440 byte, i.e. picture material afterwards.After this, be again the initial EAV of downing code flow.The EAV of current line fixes to the interval of adjacent descending EAV, is 1716 byte.Therefore as long as the EAV that the counter in system identification unit calculates current line is 1716 to the interval of descending EAV, also just can judge is TSC-system formula code stream.Its standard code stream diagram refers to shown in Fig. 3.
And pal mode code stream is also similar, just the size of its clear data is 280 Byte, so the EAV of current line is 1728 byte to the interval of descending EAV, therefore as long as the EAV that the counter in system identification unit calculates current line is 1728 to the interval of adjacent descending EAV, also just can judge is pal mode code stream.
Processing unit 130 references to storage 140, and according to image standard information, read the system configuration information of correspondence with it of storing in it.According to system configuration information, system is configured, signal processing unit 120 is set to the image data standard corresponding to input, and then the image data of output that can be correct input.For example, when playing the image data of TSC-system formula, system configuration is that the size of is: IMAGE_WIDTH=720, IMAGE_HEIGHT=280.And when playing the image data of pal mode, system configuration is that the size of is: IMAGE_WIDTH=720, IMAGE_HEIGHT=288.After having configured, the image data of input by system identification unit 110 and signal processing unit 120 by correct output.
In image data output procedure, can constantly sample to the image data of input in system identification unit 110, by the length numerical value between two adjacent EAV in the image data that sampling obtains specifically and obtained the length numerical value between two adjacent EAV in image data last time and compare, to prevent because changing the image data of input, and cause system to be made mistakes, normal image output data.
Below the replacement of the input source with TSC-system and two standards of Phase Alternation Line system is further detailed the present invention.
First using the image data of TSC-system as input source, be connected with input image recognition process unit 100, its system identification unit 110 can detect the length between two adjacent EAV in the image data of inputting, every through a byte, counter in system identification unit all can add 1 on former record numerical value basis, when the numerical value drawing when last record is 1716, length numerical value in its each standard image data that can and store between two adjacent EAV is compared, when finding it and in TSC-system image data, the length numerical value between two adjacent EAV be consistent, the image data standard that can learn input is TSC-system.
System identification unit 110 passes to processing unit 130 by the standard information of the image data of acquisition, processing unit 130 meeting references to storage 140 read corresponding to the system configuration information of TSC-system image data and carry out system configuration, the TSC-system image data corresponding to input that signal processing unit is arranged.
After system configuration completes, the image data of the TSC-system formula of input process system identification unit 110 and signal processing unit 120 are by correct output.
In the process of output, can constantly sample to the image data of input in system identification unit 110, length numerical value in the image data that length numerical value in the image data that this sampling is obtained between two adjacent EAV and last time, sampling obtained between two adjacent EAV is compared, to guarantee the normal output of the image data of input.
Use the image data of Phase Alternation Line system as input source, to replace the image data input source of former TSC-system.The image data input source of Phase Alternation Line system is connected with image recognition process unit 100, the image data of the 110 pairs of inputs in system identification unit is sampled, detect length information between two adjacent EAV whether consistent with last time, sampling obtained, the numerical value that its counter obtains can be 1728, finds that the numerical value that sampling obtained with last time is different.System identification unit can compare the length numerical value between two adjacent EAV in the image data standard of this numerical value and storage, when finding it and in Phase Alternation Line system image data, the length numerical value between two adjacent EAV is consistent, the image data standard that can learn input is Phase Alternation Line system.
System identification unit 110 sends to processing unit 130 by interrupting information and image data standard information.Processing unit 130 is understood temporary close signal processing unit 120 to avoid output error according to interrupting information.Standard message reference memory according to the image data of input, reads corresponding to the system configuration information of Phase Alternation Line system image data and carries out system configuration, the Phase Alternation Line system image data corresponding to input that signal processing unit is arranged.
After system configuration completes, processing unit 130 is opened system identification unit 120, the image data of the pal mode of input after system identification unit 110 and signal processing unit 120 by correct output.
Image identifying processing method and the device thereof that the present invention relates to, make to use the more efficiently more intelligent more automation that becomes of its image system.The trouble that effectively minimizing replacing memory brings and the possibility of makeing mistakes.When normal replacing input source, do not need to do any operation, this input will be identified and adapt to system automatically.When input source surprisingly changes, as long as input source form is correct, do not need to do any operation, this input will be identified and adapt to system automatically.