CN101511028A - Method for judging synchronous code of standard action image architecture criterion - Google Patents

Method for judging synchronous code of standard action image architecture criterion Download PDF

Info

Publication number
CN101511028A
CN101511028A CN 200810008261 CN200810008261A CN101511028A CN 101511028 A CN101511028 A CN 101511028A CN 200810008261 CN200810008261 CN 200810008261 CN 200810008261 A CN200810008261 A CN 200810008261A CN 101511028 A CN101511028 A CN 101511028A
Authority
CN
China
Prior art keywords
data
synchronous code
standard
comparison operation
action image
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN 200810008261
Other languages
Chinese (zh)
Inventor
王文彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Altek Corp
Original Assignee
Altek Corp
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 Altek Corp filed Critical Altek Corp
Priority to CN 200810008261 priority Critical patent/CN101511028A/en
Publication of CN101511028A publication Critical patent/CN101511028A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The invention relates to a synchronization code judging method under the standard mobile imaging architecture specification, which mainly solves the possible errors during the image transmission between mobile devices, as if an error occurs in the transmitted bit stream, the error of the whole image data can be caused. The method provides a way repeatedly using comparison operation to compare each input data; the position of the synchronization code under the SMIA specification is correctly obtained, and possible misinterpretation can be solved.

Description

The determination methods of the synchronous code under the standard action image architecture standard
Technical field
The present invention is meant that especially utilization comparison operation repeatedly draws correct synchronous code position, with the image data that correct decipher was received about the determination methods of the synchronous code under a kind of standard action image architecture standard.
Background technology
Under the quick growth of the mobile phone with camera-enabled or other portable apparatus, utilize standard action image architecture (SMIA, Standard Mobile Imaging Architecture) but the standard standard of image transmission on the equipment in action, this standard action image architecture is a kind of image processing architecture that is used in particular for running gear, between the transducer (SMIA-compliantsensor) of SMIA compatibility and the SMIA compatible mainframe that is connected (SMIA-compliant host), obtain treatment efficiency preferably, its standard device enclosing cover (housing), mechanical connection (mechanicalinterconnection), function (functionality), buffer (register set) and interface (interface) etc.
When the image that transmits between running gear, according to above-mentioned SMIA standard, it has defined 11 kinds of image data forms (dataformat), wherein synchronous code (synchronization code) comprises the bit code of picture frame (frame) beginning, as SOF (frame start synchronization code), end bit code with this picture frame, as EOF (frame end synchronization code), the start bit of the row in the image pixel array (line), as SOL (line start synchronization code), the stop bits of every row uses EOL (line end synchronization code), during transmission, data and synchronous code all are to pass earlier from least significant bit (LSB), each synchronous code please refer to table one, wherein standard capable opening code (SOL), End Of Line Code (EOL), frame opening code (SOF), frame end code (EOF) and logic channel (logical channel) etc.
Synchronous code Value
Row opening code (SOL) FF H00 H00 HX0 H(X is the number of channel)
End Of Line Code (EOL) FF H00 H00 HX1 H
Frame opening code (SOF) FF H00 H00 HX2 H
Frame end code (EOF) FF H00 H00 HX3 H
Logic channel FF H00 H00 H0X HTo FF H00 H00 H7X H
Fig. 1 shows the framework composition under the standard for this reason, and the figure shelves with VGA are example, data field shown in the figure (data) (the VGA form is 480 row of row 1 to 480 of row) is defined map file data between frame end code (EOF) and the frame opening code (SOF), and outside frame, defined (frame blanking period) between the frame clear area, also between End Of Line Code (EOL) and row opening code (SOL), defined (line blanking) between the line space white area.
The arrangement of data in internal memory as shown in Figure 2, each byte is with most significant digit (maximum significant bit, MSB) begin to transmit, and least significant bit (least significantbit, LSB) send at last, arrangement in internal memory as shown in the figure, position 31-24,23-16,15-8 and 7-0, but during the graph data under transmission SMIA standard, its bit stream (bit stream) is by the camera module output of running gear, when also not transmitting any data, (leastsignificantbit LSB) passes earlier with least significant bit, the bit stream form as shown in the figure, the position of MSB and LSB is inverted, passes earlier by LSB, as position 24-31,16-23,8-15 and 0-7.
As shown in Figure 3 in the data that receiving terminal (receiver) is received, the frame of each figure then begins with frame opening code (SOF), finish with frame end code (EOF), data of central each row are then to go opening code (SOL) beginning, finish by End Of Line Code (EOL), form the form of bit stream shown in Figure 1, wherein first row opening code is replaced by the frame opening code, and last End Of Line Code replaces with the frame end code.Above-mentioned logic channel is that staggered data are split up into different data flow, and channel number has 0 to 7.
Summary of the invention
11 kinds of image data forms all have the bits number standard of single file data in the above-mentioned known techniques, during transmission, when data number mistake even synchronous code mistake unexpectedly appear in bit stream, receiving terminal possibly can't be separated from bit stream and translate image data, and the mistake that causes next a succession of possibly to restore, therefore when even proposition receiving terminal of the present invention is received data number mistake even synchronous code mistake, decoder (decoder) that still can safety operation.
The determination methods of the synchronous code under the standard action image architecture standard of the present invention promptly proposes solution at the problems referred to above, mainly be to see through to utilize comparison operation to compare the data synchronization sign indicating number of each input repeatedly, up to the correct synchronous code of comparing out, thereby can correctly draw the position of data, and the mistake of interpretation can not take place.
The step of preferred embodiment comprises that decoder begins to receive data, it is to begin to transmit with least significant bit (LSB) that data transmit, entering behind the decoder again, the upset ordering is the kenel of legacy data, and the present invention is in order to compare to the synchronous code of least significant bit (LSB) elder generation, just be stored to buffer after so overturn again, then, data will find the synchronous code of correct least significant bit (LSB) elder generation through the comparison operation of different displacements.
Main embodiment is to seek the accurate synchronization sign indicating number with maximum 8 times comparison operations, can design 8 kinds of comparators simultaneously, respectively has a kind of synchronous code of displacement, proceeds to many 8 different comparison operations, to obtain correct synchronous code position.
Description of drawings
Fig. 1 is the image data schematic diagram of known techniques under the SMIA standard;
Fig. 2 is the schematic diagram of known techniques bitstream data conversion under the SMIA standard;
Fig. 3 is the schematic diagram of the bit stream in the transmission of known techniques under the SMIA standard;
Fig. 4 is the flow chart of the synchronous code determination methods under the standard action image architecture standard of the present invention;
Fig. 5 is the embodiment schematic diagram of the synchronous code determination methods under the standard action image architecture standard of the present invention;
Fig. 6 is the place value schematic diagram of the comparison operation that the present invention utilized.
The primary clustering symbol description
Data Receiving unit 51
The first data sorting unit 53
Storage element 55
First comparing unit 501
Second comparing unit 502
The 3rd comparing unit 503
The 4th comparing unit 504
The 5th comparing unit 505
The 6th comparing unit 506
The 7th comparing unit 507
The 8th comparing unit 508
The second data sorting unit 57
Embodiment
It is according to a standard action image architecture standard (SMIA) that image between running gear transmits, wherein defined image data form has plural number and plants synchronous code (synchronization code), the frame opening code (SOF) that comprises standard picture frame (frame) starting position, with the frame end code (EOF) of picture frame end position, and each line data is determined by the capable opening code (SOL) of original position and the End Of Line Code (EOL) of end position in the image.Yet, when image transmits, can produce the problem of error in data unavoidably, a data flow that transmits continuously may produce whole wrong problem because of the mistake of a central position, synchronous code determination methods provided by the present invention then is the comparison operation that sees through repeatedly, by pen comparison data, correctly to find the position of synchronous code, at the image data interpretation that each synchronous code defined, avoid again because the mistake that certain bit-errors produces.
Because image data under the SMIA standard is to be begun to transmit by least significant bit (LSB) (LSB) wherein, the load mode of LSB first just, after decoder (decoder) receives data, the meeting auto arrangement becomes the order of original bit stream under the SMIA standard, is the data of start bit by most significant digit (MSB) just.And the present invention is in order to carry out interpretation at each synchronous code, the synchronous code of least significant bit (LSB) elder generation (LSB first) so will compare, and because 0 to 7 position of bit stream possible displacement that error in data or synchronous code mistake produce, so a kind of synchronous code finder that is formed by a plurality of comparison circuits is provided, seek possible displacement by the comparison operation of plural number kind, preferred embodiment is 8 kinds, comprises the state that does not have displacement.
Because the data number may make a mistake, so the bit stream displacement can change at any time, therefore above-mentioned synchronous code finder need all be searched once again at the various possible displacement of each frequency.
Data displacement according to above-mentioned desire solution, the synchronous code judgment mode that the present invention proposes has method flow as shown in Figure 4, comprise that the decoder that step S401 represents begins to receive data, because SMIA standard, data transmit and must begin to transmit (LSB first) with least significant bit (LSB), and when arriving decoder, the ordering of then will overturning automatically, recover the kenel of legacy data, just the data that begin with most significant digit (MSB first).
And because synchronous code determination methods of the present invention is mainly to compare with the synchronous code of least significant bit (LSB) elder generation, so palpus as step S403, the ordering of again data that received being overturn is compared by the bit stream form of least significant bit (LSB) elder generation.Then, as step S405, these bit streams all are stored in the Storage Media such as buffer, and then, data will find the synchronous code of correct least significant bit (LSB) elder generation through the comparison operation of different displacements, as step S407.Can carry out comparison operation by a plurality of comparators (comparator) on actual the enforcement, the value of the synchronous code of then built-in one group of possible displacement in each comparator, each comparator compares computing in proper order, judges whether to meet the synchronous code of the least significant bit (LSB) that data had that is received into.
Flow process with plural number time comparison operation, if the result of first comparison operation does not meet, then carry out the displacement (step S409) of a position again, carry out comparison operation next time, judge whether to meet this displacement again, do not meet if having, carry out a displacement again, by that analogy, up to the synchronous code that finds the least significant bit (LSB) elder generation that meets, obtain correct synchronous code position (step S411), when finding correct displacement, again data are turned into the data format of MSB elder generation, export with the data kenel of byte (byte) then.
Above-mentioned preferred embodiment is to be one group byte kenel Data transmission with 8 positions, so possible displacement is the displacement of 0 (not having displacement) to 7 positions, so the present invention is except seeking the purpose of accurate synchronization sign indicating number with maximum 8 times comparison operations, also can design 8 kinds of comparators simultaneously, the synchronous code that respectively has a kind of displacement situation, carry out 8 different comparison operations, to obtain correct synchronous code position.
For realizing flow process shown in Figure 4, the invention provides the embodiment of the synchronous code determination methods under the standard action image architecture standard as shown in Figure 5.
Data Receiving unit 51 is received in the image signal between running gear under the SMIA standard, because the image of SMIA standard is the data kenel transmission with LSB elder generation, so when entering decoder, will change the data kenel of MSB elder generation into.And the synchronous code that The present invention be directed to LSB elder generation compares computing, carries out the ordering transformation so need to see through the first graphic data sorting unit 53, forms the data kenel of LSB elder generation, then is temporary in the storage element 55 again.
Afterwards, the data of LSB elder generation are seen through the comparison operation first time of first comparing unit 501, whether the synchronous code of judging LSB elder generation meets the displacement of setting in first comparing unit, if do not meet, data is delivered to the secondary comparison operation of execution in second comparing unit 502 again.In like manner, if do not meet, data are delivered in the 3rd comparing unit 503 again and carried out comparison operation for the third time, by that analogy, at the most again through the 4th comparison operation of the 4th comparing unit 504, the 5th comparison operation of the 5th comparing unit 505, the 6th comparison operation of the 6th comparing unit 506, the comparison operation of the 7th comparison operation of the 7th comparing unit 507 and the 8th comparison operation of the 8th comparing unit 508 etc., in case after obtaining the synchronous code position of LSB elder generation, then do not proceed following computing, correct Data Position is found in expression, just obtains the bit stream of correct decipher.Last again the data of this LSB elder generation are seen through the general kenel that the second data sorting unit 57 is converted to data, just with the data kenel of MSB elder generation.
Fig. 6 is shown as the place value schematic diagram of the comparison operation that the present invention utilizes, if the synchronous code of LSB elder generation should be 4 bytes, as 00,000,000 11,111,111 00,000,000 00000000, but make the synchronous code of the LSB elder generation that is received produce the displacement of 4 positions because of error in data or each synchronous code mistake of standard image data, become and to be distributed in 0,000 0,000,111,111,110,000 00,000,000 0000 of 5 bytes, so the present invention must provide the comparator that holds at least 5 byte datas, or use the comparison operation of at least 5 bytes.
For instance, if the synchronous code of the LSB elder generation that receives has the displacement of 4 positions, * * * * 0,000 0,000,111 111,110,000 00000000 0000**** shown in data 60, at this moment, the employed place value of each comparator or comparison operation then needs as each graphic data, and wherein * is the part of void value:
As the data of using in first comparison operation 601:
00000000?11111111?00000000?00000000********
As the data of using in second comparison operation 602:
*0000000?01111111?10000000?00000000?0*******
As the data of using in the 3rd comparison operation 603:
**000000?00111111?11000000?00000000?00******
As the data of using in the 4th comparison operation 604:
***00000?00011111?11100000?00000000?000*****
As the data of using in the 5th comparison operation 605:
****0000?00001111?11110000?00000000?0000****
As the data of using in the 6th comparison operation 606:
*****000?00000111?11111000?00000000?00000***
As the data of using in the 7th comparison operation 607:
******00?00000011?11111100?00000000?000000**
As the data of using in the 8th comparison operation 608:
*******0?00000001?11111110?00000000?0000000*
Place value by above each comparison operation utilization, the various situations of different displacements have been taken into full account, in the actual operation, see through the comparison of first comparison operation earlier, if do not meet the place value that is received, then carry out the comparison operation second time of a position of displacement, up to obtaining the computing that correct result promptly stops other.
In sum, the determination methods of the synchronous code under the standard action image architecture standard of the present invention is to consider transmitting the phenomenon that the situation that error in data takes place produces each synchronous code generation displacement, so utilize comparison operation repeatedly to find out correct synchronous code position, thereby draw the data of correct decipher.
But the above only is a preferable possible embodiments of the present invention, and is non-so promptly limit to claim of the present invention, so the equivalent structure that uses specification of the present invention and diagramatic content to do such as changes, all in like manner is contained in the scope of the present invention, closes and gives Chen Ming.

Claims (12)

1, the determination methods of the synchronous code under a kind of standard action image architecture standard is characterized in that, includes:
Receive data;
With the data that this received ordering of overturning, form data form by least significant bit (LSB) elder generation;
Be stored to a storage element;
Carry out a comparison operation, these data and one group of synchronous code with a displacement are compared computing; And
If the result of this comparison operation does not meet the synchronous code that these data have, then have the comparison operation of different displacements next time, meet the synchronous code that these data have up to operation result.
2, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 1, it is characterized in that: the step of described reception data is the image datas that are received under the standard action image architecture standard.
3, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 2 is characterized in that: described image data is the data kenel that begins to transmit with least significant bit (LSB).
4, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 3 is characterized in that: the ordering of then will overturning automatically when described data enter a decoder is to the data that begin with most significant digit.
5, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 1, it is characterized in that: described comparison operation is to see through a plurality of comparators with different displacement synchronous codes to carry out, and sees through these a plurality of comparators and compares the synchronous code that computing judges whether to meet the least significant bit (LSB) of the data that received in proper order.
6, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 1, it is characterized in that: when this comparison operation result meets the synchronous code that these data have, again these data are turned into the data kenel of most significant digit elder generation, and the data kenel with byte is exported after upset.
7, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 1 is characterized in that: described data are one group byte kenel transmission with 8 positions, and these data comprise the displacement of 0 to 7 position.
8, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 7 is characterized in that: the synchronous code that can obtain correct least significant bit (LSB) elder generation with maximum 8 times comparison operations.
9, the determination methods of the synchronous code under a kind of standard action image architecture standard is characterized in that, includes:
One decoder receives the data with least significant bit (LSB) elder generation;
This decoder is carried out the data that are turned into most significant digit elder generation;
The ordering of again these data being overturn forms the data form by least significant bit (LSB) elder generation;
Data storing to one storage element;
Data passes to one first comparing unit is carried out comparison operation for the first time;
Data passes to one second comparing unit is carried out comparison operation for the second time;
Data passes to one the 3rd comparing unit is carried out comparison operation for the third time;
Data passes to one the 4th comparing unit is carried out the 4th comparison operation;
Data passes to one the 5th comparing unit is carried out the 5th comparison operation;
Data passes to one the 6th comparing unit is carried out the 6th comparison operation;
Data passes to one the 7th comparing unit is carried out the 7th comparison operation; And
Data passes to one the 8th comparing unit is carried out the 8th comparison operation;
Wherein each comparing unit has the synchronous code of different displacements, when comparison operation result wherein meets the synchronous code that these data have, does not then carry out comparison operation next time.
10, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 9, it is characterized in that: the step of these reception data is the image datas that are received under the standard action image architecture standard.
11, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 9, it is characterized in that: when operation result meets the synchronous code that these data have, again these data are turned into the data kenel of most significant digit elder generation, and the data kenel with byte is exported after upset.
12, the determination methods of the synchronous code under the standard action image architecture standard as claimed in claim 9 is characterized in that: described data are the displacement that one group byte kenel transmission and this data comprise 0 to 7 position with 8 positions.
CN 200810008261 2008-02-14 2008-02-14 Method for judging synchronous code of standard action image architecture criterion Pending CN101511028A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200810008261 CN101511028A (en) 2008-02-14 2008-02-14 Method for judging synchronous code of standard action image architecture criterion

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200810008261 CN101511028A (en) 2008-02-14 2008-02-14 Method for judging synchronous code of standard action image architecture criterion

Publications (1)

Publication Number Publication Date
CN101511028A true CN101511028A (en) 2009-08-19

Family

ID=41003258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200810008261 Pending CN101511028A (en) 2008-02-14 2008-02-14 Method for judging synchronous code of standard action image architecture criterion

Country Status (1)

Country Link
CN (1) CN101511028A (en)

Similar Documents

Publication Publication Date Title
US20070174522A1 (en) Universal interface apparatus and method
US20210176418A1 (en) Data transmission system and data transmission method thereof
US20110194651A1 (en) Serial data receiver circuit apparatus and serial data receiving method
CN101990095A (en) Method and apparatus for generating compressed file, camera module associated therewith, and terminal including the same
CN103186559A (en) Electronic device and method for transferring presentations in lantern slide playing of electronic device
CN101901218A (en) General data loading device and method
US20220272208A1 (en) Transmitter, receiver, and communication system
CN101888427A (en) Method for matching dialing name and terminal
CN1581898A (en) Managing an address book in portable terminal having a camera
CN105955915A (en) Method, device, and system for removing deflection of parallel data
EP1763238A2 (en) Image processor, imaging device, and image processing system
CN209982615U (en) Apparatus for color space 4:4:4 transmission
CN101511028A (en) Method for judging synchronous code of standard action image architecture criterion
CN110636219B (en) Video data stream transmission method and device
US20100328514A1 (en) Image processing device, imaging apparatus, and thumbnail image displaying method
US9872035B2 (en) System and method for transcoding data
CN105100813A (en) Video image preprocessing method and apparatus
US8116416B2 (en) Method for determining synchronization code under SMIA
CN1119067C (en) Bit synchronization circuit and method
US20200193135A1 (en) Image processing method and device, and unmanned aerial vehicle
CN110519602B (en) Method and device for data stream transmission
CN114461560A (en) Control chip and test board for PCI-E to USB or UFS interface
US7460718B2 (en) Conversion device for performing a raster scan conversion between a JPEG decoder and an image memory
CN108595357B (en) DM365 data transmission interface circuit based on FPGA
CN105657318A (en) Video transmission method and device based on LVDS signal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Open date: 20090819