Summary of the invention
Goal of the invention: the present invention provides a kind of display with curve data error correction and error correction method thereof, to solveCertainly the problems of the prior art.
Technical scheme: for achieving the above object, the technical solution used in the present invention is:
A kind of display with curve data error correction, including: video card, decoding unit, curve data memory element, communicationUnit, curvature correction unit, GTG expanding element, coding unit and display unit;Described video card sends letter by decoding unitNumber to curvature correction unit, curve data memory element sends a signal to curvature correction unit, curvature correction by communication unitUnit sends the signal to display unit by GTG expanding element and coding unit;Described decoding unit decodes for video,Communication unit is used for error correction, and curvature correction unit is used for image rectification, after GTG expanding element is used for extending GTG number matchesEnd module bit wide, coding unit encodes for video signal.
Further, described communication unit includes: the pre-memory cell of timing unit, handshake elements, communications interface unit, curve andError correction unit;Described timing unit sends the signal to communications interface unit by handshake elements, and communications interface unit is by signalFeeding back to handshake elements, error correction unit receives communications interface unit and the signal of the pre-memory cell of curve and exports just data;InstituteState whether handshake elements is stablized, communications interface unit is used for receiving curve data, and the pre-memory cell of curve is used for for verifying to communicatePrestore aim curve data, and error correction unit is for correcting data error and exports just data.
Further, described communications interface unit includes with lower interface: SPI interface, UART interface, I2C interface, USB interface.
Further, described curve data memory element includes following memorizer: E2PROM, flash.
Further, described display unit is GTG display unit or color display unit.
Further, based on a kind of display with curve data error correction described in claim 1-5 any oneError correction method, including following operating procedure:
The first step: the signal that video card exports is decoded as the signal that bit wide is M position by decoding unit, and wherein RGB is respectively M position, and RGB dividesWei not represent the signal of three kinds of colors of red, green, blue;
Second step: the curve data within curve data memory element is read and after error correction, is sent to curve school by communication unitPositive unit, wherein curve data is M+N position;
3rd step: curvature correction unit sends, to decoding unit, the M digital video signal come and makees curvature correction, is output as M+ after correctionThe data of N position, communication unit sends the data of M+N position and corrects on this basis to curvature correction unit, curvature correction unit;
4th step: the signal of the M+N position that curvature correction unit sends is made GTG extension by GTG expanding element, it is output as K, toolThere is output 2M+NPlant the ability of GTG;
5th step: the signal that bit wide is K position after coding unit output coding shows to display unit;
Wherein, in above-mentioned steps, M is the bit wide of video card, and N is the bit wide needing extension after calibration curve, and K is the position of display unitWide.
Further, in described second step, the curve data bit wide of curve data memory element storage is M+N position, totally 2MNumberAccording to.
Further, in described second step there is the high address of curve data memory element in curve data, predefined shakes handsThere is the low address of curve data memory element in data.
Further, in described second step, reading and the error correction procedure of curve data are comprised the following steps by communication unit:
Step (1), timing unit is started working after display powers on, and sends when timing to T moment and shakes hands commencing signal to holdingHands unit, wherein T is more than or equal to 0;
Step (2), handshake elements read the handshake data of curve data memory element low address by communications interface unit, if readingThe handshake data taken is consistent with expection, then communications interface unit starts to read the curve data of high address, enters step (3), ifThe handshake data read is inconsistent with expection, then repeat step (1);
It is sent to entangle after the curve data of the curve A that step (3), communications interface unit read curve data memory element high addressWrong unit, error correction unit reads the aim curve B that the pre-memory cell of curve prestores, and correlation curve A and the number of curve B one by one simultaneouslyAccording to;
Step (4), i represent 2MI-th in individual data, as i=0, makes Ai=0;As i > 0 time, if i-th curve data | Ai-Bi|<Bi* P%, then it is assumed that curve data AiCorrectly, otherwise it is assumed that AiMistake, and correct it as Ai=Bi+Ai-1-Bi-1, wherein 0≤P≤100, P represents the diversity of display unit, and the value of P is determined by the display effect maximum difference of display unit Different Individual,Identical, it is 0;
Step (5), end error correction procedure, curve of output data are to curvature correction unit.
Further, in described 4th step, GTG expanding element utilizes frame per second control technology to realize, by time domain and skyBetween territory control RGB height K bit value between actual value a and a+1 with frame per second and spatial position change, wherein value is the number of a+1Measure and determined by the value of low M+N-K position, reach the purpose of GTG extension.
Beneficial effect: compared with prior art, the invention have the advantages that
1, display loading curve data within the upper electrical derangement phase can be avoided, reduce mistake probability of happening;
2, can the correctness of detection curve data, and wrong data is carried out error correction.
Detailed description of the invention
A kind of display with curve data error correction, including: video card, decoding unit, curve data memory element,Communication unit, curvature correction unit, GTG expanding element, coding unit and display unit;Described video card is sent out by decoding unitThe number of delivering letters sends a signal to curvature correction unit, curve to curvature correction unit, curve data memory element by communication unitCorrection unit sends the signal to display unit by GTG expanding element and coding unit;Described decoding unit is used for video solutionCode, communication unit is used for error correction, and curvature correction unit is used for image rectification, and GTG expanding element is used for extending GTG number matchesRear module bit wide, coding unit encodes for video signal.
Aforementioned communication unit includes: the pre-memory cell of timing unit, handshake elements, communications interface unit, curve and error correction listUnit;Described timing unit sends the signal to communications interface unit by handshake elements, and signal is fed back to by communications interface unitHandshake elements, error correction unit receives communications interface unit and the signal of the pre-memory cell of curve and exports just data;Described shake handsUnit is used for verifying that communication is the most stable, and communications interface unit is used for receiving curve data, and the pre-memory cell of curve is used for the mesh that prestoresMark curve data, error correction unit is for correcting data error and exports just data.
Aforementioned communication interface unit includes but not limited to lower interface: SPI interface, UART interface, I2C interface, USB connectMouthful.
Aforementioned curve data memory element includes but not limited to following memorizer: E2PROM, flash.
Aforementioned display unit is GTG display unit or color display unit.
The error correction method of aforesaid a kind of display with curve data error correction, including following operating procedure:
The first step: the signal that video card exports is decoded as the signal that bit wide is M position by decoding unit, and wherein RGB is respectively M position, and RGB dividesWei not represent the signal of three kinds of colors of red, green, blue;
Second step: the curve data within curve data memory element is read and after error correction, is sent to curve school by communication unitPositive unit, wherein curve data is M+N position;
3rd step: curvature correction unit sends, to decoding unit, the M digital video signal come and makees curvature correction, is output as M+ after correctionThe data of N position, communication unit sends the data of M+N position and corrects on this basis to curvature correction unit, curvature correction unit;
4th step: the signal of the M+N position that curvature correction unit sends is made GTG extension by GTG expanding element, it is output as K, toolThere is output 2M+NPlant the ability of GTG;
5th step: the signal that bit wide is K position after coding unit output coding shows to display unit;
Wherein, in above-mentioned steps, M is the bit wide of video card, and N is the bit wide needing extension after calibration curve, and K is the position of display unitWide.
In aforementioned second step, the curve data bit wide of curve data memory element storage is M+N position, totally 2MIndividual data.
In aforementioned second step there is the high address of curve data memory element in curve data, and predefined handshake data existsThe low address of curve data memory element.
In aforementioned second step, reading and the error correction procedure of curve data are comprised the following steps by communication unit:
Step (1), timing unit is started working after display powers on, and sends when timing to T moment and shakes hands commencing signal to holdingHands unit, wherein T is more than or equal to 0;
Step (2), handshake elements read the handshake data of curve data memory element low address by communications interface unit, if readingThe handshake data taken is consistent with expection, then communications interface unit starts to read the curve data of high address, enters step (3), ifThe handshake data read is inconsistent with expection, then repeat step (1);
It is sent to entangle after the curve data of the curve A that step (3), communications interface unit read curve data memory element high addressWrong unit, error correction unit reads the aim curve B that the pre-memory cell of curve prestores, and correlation curve A and the number of curve B one by one simultaneouslyAccording to;
Step (4), i represent 2MI-th in individual data, as i=0, makes Ai=0;As i > 0 time, if i-th curve data | Ai-Bi|<Bi* P%, then it is assumed that curve data AiCorrectly, otherwise it is assumed that AiMistake, and correct it as Ai=Bi+Ai-1-Bi-1, wherein 0≤P≤100, P represents the diversity of display unit, and the value of P is determined by the display effect maximum difference of display unit Different Individual,Identical, it is 0;
Step (5), end error correction procedure, curve of output data are to curvature correction unit.
In aforementioned 4th step, GTG expanding element utilizes frame per second control technology to realize, by time domain and spatial domain controlRGB height K bit value processed is with frame per second and spatial position change between actual value a and a+1, and wherein value is that the quantity of a+1 is by low MThe value of+N-K position determines, reaches the purpose of GTG extension.
Below in conjunction with embodiment, the present invention is further described.
Fig. 1 is the hardware architecture diagram of a kind of display with curve data error correction of the present invention, its hardwareIncluding video card, it is connected with video card for decoding unit, curve data memory element and the curve data memory element of video decodingIt is connected and there is the communication unit of error correction, is connected with decoding unit and communication unit and for the curvature correction list of image rectificationUnit, it is connected with curvature correction unit and is used for extending GTG expanding element and the GTG of GTG number matches rear module bit wideExpanding element is connected and is used for the coding unit that video signal encodes and the display unit being connected with coding unit.
Fig. 2 is communication unit hardware architecture diagram, and its hardware includes timing unit, is connected for verifying with timing unitThe handshake elements that communicates the most stable, be connected the communication received for curve data with handshake elements and curve data memory elementInterface unit, the pre-memory cell of curve of the aim curve data that prestore, memory cell pre-with communications interface unit and curve are connected and useExport the error correction unit of just data in correcting data error simultaneously.
Being output as M=8 position with video card, the bit wide of extension is N=4 position, and display unit is detailed description as a example by K=8 position:
The first step: the signal that video card exports is decoded as the signal that bit wide is 8 by decoding unit, and wherein RGB is respectively 8;
Second step: the curve data within curve data memory element is read and after error correction, is sent to curve school by communication unitPositive unit, wherein curve data is 12;
3rd step: curvature correction unit sends, to decoding unit, the 8 digital video signals come and makees curvature correction, exports bit wide after correctionIt is the data of 12;
4th step: the signal of 12 that curvature correction unit sends is made GTG extension by GTG expanding element, and its carry-out bit is a width of8, there is output 212Plant the ability of GTG
5th step: the signal that bit wide is 8 after coding unit output coding shows to display unit.
On the basis of technique scheme, farther include following attached technical scheme:
In above-mentioned second step, owing to medical display has higher requirement to bit wide, therefore curve data memory element storesCurve data bit wide be 12, totally 28Individual data;There is the high address of curve data memory element in curve data, low address is depositedStorage is predefined handshake data;Reading and the error correction procedure of curve data are comprised the following steps by communication unit:
(1), timing unit is started working after display powers on, and sends when timing to T moment and shakes hands commencing signal to list of shaking handsUnit, wherein T is more than or equal to 0;
(2), handshake elements by communications interface unit read curve data memory element low address handshake data, if readHandshake data is consistent with expection, then communications interface unit starts to read the curve data of high address, enters step (3), if readingHandshake data with expection inconsistent, then repeat step (1);
(3), it is sent to error correction list after the curve data (curve A) of communications interface unit reading curve data memory element high addressUnit, error correction unit reads the aim curve (curve B) that the pre-memory cell of curve prestores simultaneously, and correlation curve A and curve B one by oneData;
(4), as i=0, A is madei=0;As i > 0 time, if i-th curve data | Ai-Bi|<Bi* P%, then it is assumed that curve data AiJustReally, otherwise it is assumed that AiMistake, and correct it as Ai=Bi+Ai-1-Bi-1, wherein the value of 0 < P < 100, P is different by display unitIndividual display effect maximum difference determines;
(5), terminating error correction procedure, curve of output data are to curvature correction unit.
In above-mentioned (4th) step, GTG expanding element utilizes frame per second control technology to realize, by time domain and spatial domainControl RGB most-significant byte numerical value between actual value a and a+1 with frame per second and spatial position change, wherein value be a+1 quantity byThe value of low 4 determines, thus reaches the purpose of GTG extension.
The above is only the preferred embodiment of the present invention, it should be pointed out that: for the ordinary skill people of the artFor Yuan, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also shouldIt is considered as protection scope of the present invention.