A kind of shaping methods of rapid jumping video signal of mobile analog television and device
Technical field
The present invention relates to the mobile analog television field, more specifically, relate to a kind of shaping methods and device of rapid jumping video signal of mobile analog television.
Background technology
In the simulated television, the generation of picture signal, process, be transferred to the recovery of receiver, whole process is nearly all finished under the simulation system.Be characterized in adopting the time shaft sampling, every frame is taken a sample in the vertical direction, transmits television image signal in the amplitude modulation(PAM) mode.For reducing frequency band, avoid simultaneously human eye to the sensitive frequency of image repetition, with a two field picture be divided into again very, by chance two field scans.
During receiving, anolog TV signals need to use the constantly signal of variation of automatic gain control processing amplitude, need simultaneously to follow the tracks of the black level (black level) of composite video broadcast singal (CVBS), make video decode signal before that unified amplitude and consistent black level be arranged, thereby keep picture brightness constant.Common processing method is the foundation of adjusting as signal gain according to the amplitude of the amplitude of row synchronous head (sync-tip) in the CVBS signal or chrominance pulse (color burst), and the level at color burst place is as black level.In order to prevent the impact of the cas fortuits such as noise, the result after need to be average according to the amplitude information in the multirow signal does signal gain adjustment and black level adjustment.
Yet when CVBS signal level rapid jumping, common gain adjustment and black level control method can't in time be made a response to this sudden change, cause the CVBS signal level rear row dropout of undergoing mutation, and the black longitudinal band appears in picture.
Summary of the invention
The embodiment of the invention proposes a kind of shaping methods of rapid jumping video signal of mobile analog television, when CVBS signal level rapid jumping, it is carried out shaping, make adjustment rear video decoded signal have unified black level and signal amplitude, avoid occurring the black longitudinal band.
The embodiment of the invention also proposes a kind of apparatus for shaping of rapid jumping video signal of mobile analog television, when CVBS signal level rapid jumping, it is carried out shaping, make adjustment rear video decoded signal have unified black level and signal amplitude, avoid occurring the black longitudinal band.
The technical scheme of the embodiment of the invention is as follows:
A kind of shaping methods of rapid jumping video signal of mobile analog television, the method comprises:
Detect in real time, and the difference of the black level of the black level black level of acquisition lastrow composite video broadcast singal CVBS and current line CVBS, with the black level difference in height of described difference as lastrow;
Utilize the compensation level of each sampled point among the black level of described lastrow CVBS and the described difference in height node-by-node algorithm lastrow CVBS, by the black level of the described sampled point of described compensation level compensation, make CVBS that unified black level be arranged.
Obtain further comprising before the described difference in height:
The synchronous head of the described lastrow CVBS of buffer memory, the synchronous head of described current line CVBS and described lastrow CVBS.
The described black level of described lastrow CVBS and the described difference in height utilized comprises by the compensation level that sampled point calculates sampled point among the lastrow CVBS:
Total number of sample points is N in every delegation, the black level that K sampled point compensation level equals described lastrow CVBS in N sampled point and sampled point K black level variable quantity with, described sampled point K black level variable quantity equals described difference in height and multiply by K again divided by N.
Described total number of sample points N equals the product of signal sampling clock frequency and line period, and described line period is the transmission time of the CVBS of delegation.
Described total number of sample points N equals line period divided by the sampling clock cycle, and described line period is the transmission time of the CVBS of delegation.
Described CVBS is the PAL standard, and corresponding line period is 64 μ s, and described CVBS sampling clock is 27MHz, and described total number of sample points N equals 1728.
A kind of apparatus for shaping of rapid jumping video signal of mobile analog television comprises
Acquisition module is used for detecting in real time and obtaining the black level of lastrow CVBS and the black level of current line CVBS;
Computing module is used for calculating the black level difference in height of lastrow and the compensation level of described lastrow CVBS sampled point,
The difference of the black level of described lastrow CVBS and the black level of described current line CVBS, with the black level difference in height of described difference as described lastrow, described computing module utilizes the compensation level of each sampled point among the black level of described lastrow CVBS and the described difference in height node-by-node algorithm lastrow CVBS;
Compensating module utilizes the black level of the described sampled point of described compensation level compensation, makes CVBS that unified black level be arranged.
Described device further comprises row cache device line buffer, is used for the synchronous head of the described lastrow CVBS of buffer memory, synchronous head and the described lastrow CVBS of described current line CVBS.
The degree of depth of described line buffer at least can the CVBS of buffer memory delegation.
Described computing module comprises memory cell and control unit,
Memory cell is used for storage current line total number of sample points N;
Control unit, be used for calculating K sampled point compensation of N sampled point level, the black level that K sampled point compensation level equals described lastrow CVBS and sampled point K black level variable quantity with, described sampled point K black level variable quantity equals described difference in height and multiply by K again divided by N.
Can find out that from technique scheme in embodiments of the present invention, the difference of the black level of at first definite lastrow CVBS and the black level of current line CVBS is the black level difference in height of lastrow; Then, utilize the black level of described lastrow CVBS and described difference in height is calculated sampled point among the lastrow CVBS by sampled point compensation level, by the described sampled point black of described compensation level compensation level, thereby make CVBS that unified black level be arranged.Lastrow CVBS is divided into several sampled points, utilize lastrow CVBS black level and described difference in height for each sampled point, the compensation level of each sampled point of node-by-node algorithm, utilize this its sampled point of compensation level compensation black level, when CVBS signal level rapid jumping, in time make a response, further so that CVBS has unified black level, further make the CVBS amplitude consistent.And unified black level can avoid lowering gradually the capable dropout that causes owing to black level, further avoids owing to the black longitudinal band appears in the row dropout.
Description of drawings
Fig. 1 is the shaping methods schematic flow sheet of embodiment of the invention rapid jumping video signal of mobile analog television;
Fig. 2 is the apparatus for shaping structural representation of embodiment of the invention rapid jumping video signal of mobile analog television;
Fig. 3 is the CVBS signal schematic representation of saltus step in the embodiment of the invention and the CVBS signal schematic representation after the shaping.
Embodiment
For making the purpose, technical solutions and advantages of the present invention express clearlyer, the present invention is further described in more detail below in conjunction with drawings and the specific embodiments.
In embodiments of the present invention, when CVBS level rapid jumping, row and black level in the ranks have very large gap, and delegation or multirow CVBS in causing changing are destroyed.Utilize the CVBS of row cache device linebuffer buffer memory lastrow, the compensation level by the black level of the black level of current line CVBS and lastrow CVBS calculates sampled point among the lastrow CVBS compensates sampled point black level again.Make CVBS that unified black level be arranged, further make CVBS that unified signal amplitude is arranged, avoid the CVBS level to undergo mutation losing of rear row signal and the black longitudinal band that causes.
Fig. 1 is the shaping methods schematic flow sheet of rapid jumping video signal of mobile analog television, specifically may further comprise the steps:
Step 101, line buffer is set.
Line buffer is set, and line buffer is used for buffer memory and comprises the synchronous head of lastrow CVBS, synchronous head and the lastrow CVBS of current line CVBS.The degree of depth of line buffer at least can buffer memory delegation CVBS.Certainly the degree of depth of line buffer also can be set to more slightly larger than delegation CVBS.Buffer memory comprises that the synchronous head of lastrow CVBS, the CVBS that the synchronous head of current line CVBS is preserved with affirmation are lastrow CVBS.Buffer memory lastrow CVBS among the line buffer is processed accordingly, with behavior unit the black lvevl of CVBS is adjusted, and the CVBS after adjusting has unified black level.
Step 102, calculating black level difference in height.
Detect in real time the black level of every row CVBS, the black level of current line CVBS is designated as BLACK_CUR, the black level of lastrow CVBS is designated as BLACK_LAST.Black level difference in height=BLACK_LAST-BLACK_CUR.
Step 103, calculating sampling point compensation level.
Every CVBS of delegation is comprised of several sampled points, calculates lastrow sampled point compensation level by sampled point, by sampled point compensation black level, further obtains the unified black level of lastrow CVBS by lastrow sampled point compensation level.
Total number of sample points is N, the compensation level of K sampled point equal BLACK LAST and K sampled point black level variable quantity and.Sampled point K black level variable quantity equals black level difference in height and multiply by K again divided by N.
The product of the line period that the CVBS standard is corresponding and CVBS sampling clock frequency can be determined total number of sample points N.In like manner, line period corresponding to CVBS standard also can be determined total number of sample points N divided by the CVBS sampling clock cycle.The sampling clock cycle is the inverse of sampling clock frequency.
For example CVBS is the PAL standard, and the CVBS sampling clock is 27Hz, and the transmission time of delegation's sampled point is that line period is 64 μ s, and then total number of sample points N is 27MHz*64 μ s=1728, and the compensation level of k sampled point is determined by following formula:
Compensation level (k)=BLACK_LAST+[(k/1728) * BLACK_DIFF]
Wherein the span of k is [1,1728].
For example, for k=2, the 2nd sampled point compensation level (2)=BLACK_LAST+[(2/1728) * BLACK_DIFF].
Be the apparatus for shaping structural representation of embodiment of the invention rapid jumping video signal of mobile analog television referring to accompanying drawing 2, specifically comprise:
Row cache device 201(line buffer), be used for the synchronous head of buffer memory lastrow CVBS, synchronous head and the lastrow CVBS of current line CVBS.The degree of depth of described line buffer at least can the CVBS of buffer memory delegation.
Acquisition module 202 is used for detecting in real time the black level of lastrow CVBS and the black level of current line CVBS, obtains the difference of the blacklevel of the black level of described lastrow CVBS and described current line CVBS, i.e. the black level difference in height;
Computing module 203 is used for utilizing the black level difference in height of the black level of lastrow CVBS and lastrow to calculate the compensation level of lastrow CVBS sampled point,
The black level difference in height of lastrow is black level poor of the black level of described lastrow CVBS and current line CVBS, and computing module 203 utilizes the black level of described lastrow CVBS and described difference in height is calculated sampled point among the lastrow CVBS by sampled point compensation level;
Computing module 203 comprises memory cell 2031 and control unit 2032,
Memory cell 2031 is used for storage current line total number of sample points N;
Control unit 2032, be used for calculating K sampled point compensation of N sampled point level, the black level that K sampled point compensation level equals described lastrow CVBS and sampled point K black level variable quantity with, described sampled point K black level variable quantity equals described difference in height and multiply by K again divided by N.
Compensating module 204 utilizes the described sampled point black of described compensation level compensation level.
From line buffer output lastrow CVBS, according to the black level difference in height between the black level of the black level of lastrow CVBS and current line CVBS by several sampled points black level among the sampled point compensation CVBS.Referring to accompanying drawing 3, left figure is the CVBS signal of saltus step, and the black level of adjacent two row has obvious difference in height, and distortion has equally also occured the content part of two interlines.Right figure is through the CVBS signal after the technical solution of the present invention shaping.Can find out that the CVBS signal after the shaping has unified blacklevel, this moment, the amplitude of this CVBS signal equally also was consistent.The disunity of black level can cause losing of capable signal and the black longitudinal band occur.
Adopt technical scheme among the present invention to make CVBS have unified black level to avoid the CVBS signal level rear row dropout of undergoing mutation, and then the situation of avoiding picture the black longitudinal band to occur occur.
The above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.