[go: up one dir, main page]

CN107592518B - A kind of composite video signal quality index determination method and device - Google Patents

A kind of composite video signal quality index determination method and device Download PDF

Info

Publication number
CN107592518B
CN107592518B CN201610528550.XA CN201610528550A CN107592518B CN 107592518 B CN107592518 B CN 107592518B CN 201610528550 A CN201610528550 A CN 201610528550A CN 107592518 B CN107592518 B CN 107592518B
Authority
CN
China
Prior art keywords
composite video
video signal
value
amplitude
delay
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.)
Active
Application number
CN201610528550.XA
Other languages
Chinese (zh)
Other versions
CN107592518A (en
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.)
Sanechips Technology Co Ltd
Original Assignee
Shenzhen ZTE Microelectronics Technology Co Ltd
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 Shenzhen ZTE Microelectronics Technology Co Ltd filed Critical Shenzhen ZTE Microelectronics Technology Co Ltd
Priority to CN201610528550.XA priority Critical patent/CN107592518B/en
Priority to PCT/CN2017/088678 priority patent/WO2018006701A1/en
Publication of CN107592518A publication Critical patent/CN107592518A/en
Application granted granted Critical
Publication of CN107592518B publication Critical patent/CN107592518B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Processing Of Color Television Signals (AREA)
  • Testing, Inspecting, Measuring Of Stereoscopic Televisions And Televisions (AREA)

Abstract

The invention discloses a kind of composite video signal quality index to determine method and device, which comprises the coenvelope line for obtaining composite video signal determines the first range value of the coenvelope line wave crest;According to first range value, the value range of luminance component amplitude in the composite video signal is determined, and determine the value range of coloration relative luminance delay in the composite video signal;To the luminance component amplitude and coloration relative luminance delay difference assignment in corresponding value range, the assignment is substituted into and be delayed with the luminance component amplitude, the coloration relative luminance as in the coenvelope line function of variable, and determines the second range value of the wave crest of the function of the coenvelope line of substitution assignment;When second range value and the first range value difference are less than preset value, the bright gain inequality of color and the bright delay inequality of color of the composite video signal are determined by each assignment that the luminance component amplitude and the coloration relative luminance are delayed.

Description

一种复合视频信号质量指标确定方法及装置A kind of composite video signal quality index determination method and device

技术领域technical field

本发明涉及视频测试技术,具体涉及一种复合视频信号质量指标确定方法及装置。The invention relates to video testing technology, in particular to a method and device for determining a quality index of a composite video signal.

背景技术Background technique

复合视频信号(CVBS,Composite Video Broadcast Signal)是被广泛使用的标准,也叫做基带视频或RCA(Radio Corporation of American)视频,其以模拟波形来传输数据。复合视频包含色差(色调和饱和度)和亮度(光亮)信息,并将它们同步在消隐脉冲中,用同一信号传输。实际使用中,具体还包括帕尔制(PAL,Phase Alteration Line)和美国国家电视标准委员会制(NTSC,National Television Standards Committee)两种制式,它们与CVBS使用相同的接口,是更具体的合视频信号制式。Composite Video Broadcast Signal (CVBS, Composite Video Broadcast Signal) is a widely used standard, also called baseband video or RCA (Radio Corporation of American) video, which transmits data in analog waveforms. Composite video contains color difference (hue and saturation) and luminance (brightness) information, synchronized in a blanking pulse, transmitted with the same signal. In actual use, it also includes two formats: PAL (Phase Alteration Line) and National Television Standards Committee (NTSC, National Television Standards Committee), which use the same interface as CVBS, which is a more specific composite video. Signal System.

目前很多电视机都设有CVBS接口,即黄色的为视频信号,白色的为左声道音频信号,红色的为右声道音频信号。大多数有线电视的机顶盒和网络机顶盒也都设有CVBS接口,这样可以将数字信号转换成模拟信号,即CVBS信号,并通过电视机播放。At present, many TV sets are equipped with CVBS interfaces, that is, the yellow one is the video signal, the white one is the left channel audio signal, and the red one is the right channel audio signal. Most cable TV set-top boxes and network set-top boxes are also equipped with CVBS interfaces, so that digital signals can be converted into analog signals, ie CVBS signals, and played through the TV.

将数字信号转换成CVBS信号的方法非常多,一般是通过CVBS解码芯片转换,但是CVBS信号是较复杂的复合视频信号,含有多种模拟电压电平、时间间隔等指标,并且所有视频信息只使用一条传输线传输,将亮度信息、色彩信息和同步信号组合在一个信号中,不同的CVBS解码芯片转换出来的视频信号质量的差异很大,因此需要在CVBS解码芯片投入市场前作严格的测试,以验证CVBS解码芯片的质量。There are many ways to convert digital signals into CVBS signals, generally through CVBS decoding chips, but CVBS signals are more complex composite video signals, containing a variety of analog voltage levels, time intervals and other indicators, and all video information only uses A transmission line transmits the brightness information, color information and synchronization signal into one signal. The quality of the video signal converted by different CVBS decoding chips is very different. Therefore, it is necessary to carry out strict testing before the CVBS decoding chip is put into the market to verify The quality of the CVBS decoding chip.

测试的方法可以是测试CVBS解码芯片转换出来的视频信号,也可以在CVBS解码芯片还未制造出之前,通过CVBS解码芯片的寄存器转换级(RTL,Register Transfer Level)代码,通过模拟装置模拟出CVBS信号,对模拟后的CVBS信号进行测试。The test method can be to test the video signal converted by the CVBS decoding chip, or before the CVBS decoding chip is manufactured, through the register transfer level (RTL, Register Transfer Level) code of the CVBS decoding chip, and simulate the CVBS through the simulation device. signal, and test the simulated CVBS signal.

上述测试方法都会影响视频质量的色亮增益差和色亮延时差指标的确定,误差非常大,这直接影响了对CVBS信号的质量判断。The above test methods will all affect the determination of the indicators of the video quality of the color-brightness gain difference and the color-brightness delay difference, and the error is very large, which directly affects the quality judgment of the CVBS signal.

还有测试方法是将CVBS信号送入解码器,一路进入亮度通道,经过色负载波陷波器(4.43mhz陷波器)吸收掉色度信号,而取出亮度信号,而另一路通过带通滤波器取出4.43mhz的色度信号,分别测量这两个信号的幅度并观测包络线在时域的延时。这种测试方法由于在分布取出信号时,会引入额外的幅度失真和时序失真,导致误差非常大。Another test method is to send the CVBS signal into the decoder, one way into the luminance channel, and the chrominance signal is absorbed by the color load wave notch filter (4.43mhz notch filter), and the luminance signal is taken out, and the other way is passed through the bandpass filter. Take out the chrominance signal of 4.43mhz, measure the amplitude of the two signals and observe the delay of the envelope in the time domain. This test method will introduce additional amplitude distortion and timing distortion when distributing the signal, resulting in a very large error.

发明内容SUMMARY OF THE INVENTION

为解决现有存在的技术问题,本发明实施例期望提供一种复合视频信号质量指标确定方法及装置,能更准确的确定CVBS解码芯片转换后的CVBS信号的色亮增益差和色亮延时差,判断CVBS解码芯片的转换质量。In order to solve the existing technical problems, the embodiments of the present invention are expected to provide a method and device for determining the quality index of a composite video signal, which can more accurately determine the color-brightness gain difference and the color-brightness delay of the CVBS signal converted by the CVBS decoding chip. Poor, judge the conversion quality of the CVBS decoding chip.

本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is realized as follows:

本发明实施例提供了一种复合视频信号质量指标确定方法,所述方法包括:An embodiment of the present invention provides a method for determining a quality indicator of a composite video signal, the method comprising:

获取复合视频信号的上包络线,确定所述上包络线波峰的第一幅度值;Obtain the upper envelope of the composite video signal, and determine the first amplitude value of the peak of the upper envelope;

根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal, and determine the value range of the chrominance relative luminance delay in the composite video signal;

在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;Assign values to the luminance component amplitude and chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignments into the upper envelope with the luminance component amplitude and the chrominance relative luminance delay as variables function, and determine the second amplitude value of the peak of the function that is substituted into the assigned upper envelope;

当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。When the difference between the second amplitude value and the first amplitude value is smaller than a preset value, determine the color-brightness gain of the composite video signal through the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Difference and color brightness delay difference.

优选地,所述获取复合视频信号的上包络线,包括:Preferably, the obtaining the upper envelope of the composite video signal includes:

获取所述复合视频信号每个周期内的峰值点,连接所述峰值点,形成上包络线。The peak points in each cycle of the composite video signal are acquired, and the peak points are connected to form an upper envelope.

优选地,所述确定所述上包络线波峰的第一幅度值,包括:Preferably, the determining the first amplitude value of the upper envelope peak includes:

获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值。Acquire the peak point of the upper envelope, measure the amplitude of the peak point, and obtain the first amplitude value.

优选地,所述确定所述复合视频信号中亮度分量幅度的取值范围,包括:Preferably, the determining the value range of the luminance component amplitude in the composite video signal includes:

根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal from zero to the first amplitude value;

所述确定所述复合视频信号中色度相对亮度延时的取值范围,包括:The determining the value range of the chrominance relative luminance delay in the composite video signal includes:

所述复合视频信号中色度相对亮度延时的范围为大于或等于-π,且小于或等于π。The range of the chrominance relative luminance delay in the composite video signal is greater than or equal to -π and less than or equal to π.

优选地,所述确定代入赋值的上包络线的函数的波峰的第二幅度值,包括;Preferably, the determining of the second amplitude value of the peak of the function substituted into the assigned upper envelope includes;

基于所述代入赋值的上包络线的函数,计算所述代入赋值的上包络线的函数的最大值,将所计算的最大值确定为所述第二幅度值。Based on the function of the upper envelope of the assignment assignment, a maximum value of the function of the upper envelope line assigned to the assignment is calculated, and the calculated maximum value is determined as the second amplitude value.

优选地,所述方法还包括;Preferably, the method further comprises;

基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;The respective upper envelopes of the plurality of composite video signals obtained based on the plurality of composite video signals, respectively, based on the respective upper envelopes, the respective color-brightness gain differences and color-brightness delay differences of the plurality of composite video signals are determined respectively. ;

分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively;

将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差。The average value is used as the color-brightness gain difference and the color-brightness delay difference of the composite video signal.

本发明实施例还提供了一种复合视频信号质量指标确定装置,所述装置包括获取模块、第一确定模块、第二确定模块、第三确定模块和第四确定模块;其中,The embodiment of the present invention also provides a composite video signal quality indicator determination device, the device includes an acquisition module, a first determination module, a second determination module, a third determination module and a fourth determination module; wherein,

所述获取模块,用于获取复合视频信号的上包络线;The acquisition module is used to acquire the upper envelope of the composite video signal;

所述第一确定模块,用于确定所述上包络线波峰的第一幅度值;the first determining module, configured to determine the first amplitude value of the upper envelope peak;

所述第二确定模块,用于根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;The second determining module is configured to determine, according to the first amplitude value, the value range of the luminance component amplitude in the composite video signal, and determine the value range of the chrominance relative luminance delay in the composite video signal ;

所述第三确定模块,用于在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;The third determination module is configured to assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignment into the luminance component amplitude and the chrominance relative luminance delay. The delay is in the upper envelope function of the variable, and the second amplitude value of the peak of the function of the upper envelope of the assignment is determined;

所述第四确定模块,用于当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。The fourth determination module is configured to determine by each assignment of the luminance component amplitude and the chrominance relative luminance delay when the difference between the second amplitude value and the first amplitude value is less than a preset value The difference in color and brightness gain and the difference in color and brightness delay of the composite video signal.

优选地,所述获取模块还用于:Preferably, the acquisition module is also used for:

获取所述复合视频信号每个周期内的峰值点,连接所述峰值点,形成上包络线。The peak points in each cycle of the composite video signal are acquired, and the peak points are connected to form an upper envelope.

优选地,所述第一确定模块还用于:Preferably, the first determining module is further used for:

获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值。Acquire the peak point of the upper envelope, measure the amplitude of the peak point, and obtain the first amplitude value.

优选地,所述第二确定模块还用于:Preferably, the second determining module is further used for:

根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal from zero to the first amplitude value;

所述第二确定模块还用于确定所述复合视频信号中色度相对亮度延时的取值范围:所述复合视频信号中色度相对亮度延时的范围为大于或等于-π,且小于或等于π。The second determination module is further configured to determine the value range of the chrominance relative luminance delay in the composite video signal: the range of the chrominance relative luminance delay in the composite video signal is greater than or equal to -π and less than or equal to pi.

优选地,所述第三确定模块还用于:Preferably, the third determining module is further used for:

基于所述代入赋值的上包络线的函数,计算所述代入赋值的上包络线的函数的最大值,将所计算的最大值确定为所述第二幅度值。Based on the function of the upper envelope of the assignment assignment, a maximum value of the function of the upper envelope line assigned to the assignment is calculated, and the calculated maximum value is determined as the second amplitude value.

优选地,所述第四确定模块还用于:Preferably, the fourth determining module is further used for:

基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;The respective upper envelopes of the plurality of composite video signals obtained based on the plurality of composite video signals, respectively, based on the respective upper envelopes, the respective color-brightness gain differences and color-brightness delay differences of the plurality of composite video signals are determined respectively. ;

分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively;

将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差。The average value is used as the color-brightness gain difference and the color-brightness delay difference of the composite video signal.

本发明实施例提供一种复合视频信号质量指标确定方法及装置,获取复合视频信号的上包络线,确定所述上包络线波峰的第一幅度值;根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差;可见,本发明实施例通过对CVBS信号的近似计算,能更准确地确定色亮增益差和色亮延时差的质量指标,判断CVBS解码芯片的转换质量。Embodiments of the present invention provide a method and device for determining a quality index of a composite video signal, which acquire an upper envelope of a composite video signal, and determine a first amplitude value of the peak of the upper envelope; and determine, according to the first amplitude value, The value range of the luminance component amplitude in the composite video signal, and the value range of the chrominance relative luminance delay in the composite video signal is determined; within the corresponding value range, the luminance component amplitude and chrominance relative to The luminance delays are respectively assigned, and the assignments are substituted into the upper envelope function with the luminance component amplitude and the chrominance relative luminance delay as variables, and the peak value of the function of the upper envelope of the assignment is determined. second amplitude value; when the difference between the second amplitude value and the first amplitude value is less than a preset value, determine the composite video by assigning the luminance component amplitude and the chrominance relative luminance delay The color-brightness gain difference and the color-brightness delay difference of the signal; it can be seen that the embodiment of the present invention can more accurately determine the quality indicators of the color-brightness gain difference and the color-brightness delay difference by approximating the CVBS signal, and judge the CVBS decoding chip. conversion quality.

附图说明Description of drawings

图1为本发明实施例一复合视频信号质量指标确定方法的流程示意图;1 is a schematic flowchart of a method for determining a quality indicator of a composite video signal according to an embodiment of the present invention;

图2为本发明实施例一复合视频信号的20T脉冲波形示意图;2 is a schematic diagram of a 20T pulse waveform of a composite video signal according to an embodiment of the present invention;

图3为本发明实施例一复合视频信号的频率趋向正无穷的示意图一;3 is a schematic diagram 1 of the frequency of a composite video signal tending to positive infinity according to an embodiment of the present invention;

图4为本发明实施例一复合视频信号的频率趋向正无穷的示意图二;4 is a schematic diagram 2 of the frequency of a composite video signal tending to positive infinity according to Embodiment 1 of the present invention;

图5为本发明实施例一复合视频信号的频率趋向正无穷的示意图三;5 is a schematic diagram 3 of the frequency of a composite video signal tending to positive infinity according to Embodiment 1 of the present invention;

图6为本发明实施例一复合视频信号的频率趋向正无穷的示意图四;6 is a schematic diagram 4 of the frequency of the composite video signal tending to positive infinity according to Embodiment 1 of the present invention;

图7为将图3的包络单独取出形成的波形图;Fig. 7 is the waveform diagram formed by taking out the envelope of Fig. 3 separately;

图8为本发明实施例二复合视频信号质量指标确定方法的流程示意图;8 is a schematic flowchart of a method for determining a quality indicator of a composite video signal according to Embodiment 2 of the present invention;

图9为本发明实施例三复合视频信号质量指标确定装置的示意图。FIG. 9 is a schematic diagram of an apparatus for determining a quality indicator of a composite video signal according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

本发明实施例的基本原理为:计算色亮增益差和色亮延时差需要的色度分量幅度AC、亮度分量幅度AY和色度相对亮度延时无法从复合视频信号中直接测得,但是可以先测量出复合视频信号的包络线波峰、波谷的实测幅度值;建立以所述色度分量幅度、亮度分量幅度和色度相对亮度延时为变量的包络线函数,然后根据此函数,在AY的理论取值范围内,对AY的多次赋值试算,获得包络线波峰、波谷的理论幅度值,逐步逼近实测幅度值,最终得到设定精度的AC、AY本发明实施例的原理是通过一种近似计算方法来获得复合视频信号的质量指标,这种近似计算方法很适合于通过计算机计算。The basic principle of the embodiment of the present invention is: the chrominance component amplitude A C , the luminance component amplitude A Y and the chrominance relative luminance delay required to calculate the color-brightness gain difference and the color-brightness delay difference It cannot be directly measured from the composite video signal, but the measured amplitude values of the envelope peaks and troughs of the composite video signal can be measured first; variable envelope function, and then according to this function, in A Y and Within the theoretical value range of , for A Y and The theoretical amplitude values of the envelope peaks and troughs are obtained, and the measured amplitude values are gradually approached, and finally the A C , A Y and the set accuracy are obtained. The principle of the embodiment of the present invention is to obtain the quality index of the composite video signal through an approximate calculation method, and this approximate calculation method is very suitable for calculation by a computer.

下面将结合附图及具体实施例对本发明再做进一步地说明。The present invention will be further described below with reference to the accompanying drawings and specific embodiments.

实施例一Example 1

图1为本发明实施例一复合视频信号质量指标确定方法的流程示意图,所述方法的执行主体可以是测试主机,更具体地可以是一台计算机,如图1所示,所述方法包括:FIG. 1 is a schematic flowchart of a method for determining a quality indicator of a composite video signal according to an embodiment of the present invention. The execution body of the method may be a test host, more specifically, a computer. As shown in FIG. 1 , the method includes:

步骤101:获取复合视频信号的上包络线,确定所述上包络线波峰的第一幅度值;Step 101: Obtain the upper envelope of the composite video signal, and determine the first amplitude value of the peak of the upper envelope;

这里,通过测试主机获取复合视频信号的上包络线,所述复合视频信号是待测试的标准信号,一般是根据复合视频解码芯片,也就是CVBS解码芯片的RTL代码,通过模拟装置模拟出的复合视频信号,是数字信号,可以直接被测试主机获取;也可以是从复合视频解码芯片直接输出的,也就是能被普通模拟电视机接收的CVBS信号,需要通过模数转换装置才能被测试主机获取;Here, the upper envelope of the composite video signal is obtained through the test host. The composite video signal is the standard signal to be tested. Generally, it is simulated by the simulation device according to the RTL code of the composite video decoding chip, that is, the CVBS decoding chip. The composite video signal is a digital signal, which can be directly acquired by the test host; it can also be directly output from the composite video decoding chip, that is, the CVBS signal that can be received by ordinary analog TVs. It needs to go through an analog-to-digital conversion device to be tested by the host. Obtain;

所述上包络线的获取是通过将所述复合视频信号的峰值点连接起来而获得,具体地,是通过应用程序处理的,所述应用程序设有特定的算法,可以自动捕捉到所述复合视频信号的峰值点,再画出与所述峰值点相切的切线,最后将切线光滑连接即可,所述应用程序一般是安装在测试主机的视频信号处理应用程序。The acquisition of the upper envelope is obtained by connecting the peak points of the composite video signal, and specifically, is processed by an application program, which is provided with a specific algorithm to automatically capture the The peak point of the composite video signal, then draw a tangent line tangent to the peak point, and finally connect the tangent line smoothly. The application program is generally a video signal processing application program installed on the test host.

具体地,所述测试主机的视频处理应用程序可以是矩阵实验室(MATLAB,MatrixLaboratory)。Specifically, the video processing application of the test host may be a Matrix Laboratory (MATLAB, Matrix Laboratory).

测试复合视频信号中色亮增益差和色亮延时差的具体信号为20T脉冲波形,20T脉冲的定义,20T脉冲的波形中,当幅度达到最大值的一半时,所对应的两个时间点之间的距离为20T,T为时间周期;具体到制式,对于PAL,T为100ns;对于NTSC,T为125ns。The specific signal for testing the color gain difference and color brightness delay difference in the composite video signal is the 20T pulse waveform. The distance between them is 20T, and T is the time period; specific to the system, for PAL, T is 100ns; for NTSC, T is 125ns.

在20T脉冲中,色度和亮度信号均是正弦平方波,且色度信号叠加在亮度信号中。In a 20T pulse, both the chrominance and luma signals are square sine waves, and the chrominance signal is superimposed on the luma signal.

图2为本实施例中的20T脉冲波形,ω=2πf,f为复合视频信号的载波频率。Fig. 2 shows the 20T pulse waveform in this embodiment, ω=2πf, and f is the carrier frequency of the composite video signal.

为了更好地观察20T脉冲波形,假设所述复合视频信号的频率趋向正无穷,这样,复合视频信号的包络线更清楚,具体见图3~图6,图3~图6为色度分量和亮度分量不同特征的四种类型,其中:In order to better observe the 20T pulse waveform, it is assumed that the frequency of the composite video signal tends to be infinity, so that the envelope of the composite video signal is clearer, see Figure 3 to Figure 6 for details, and Figure 3 to Figure 6 are the chrominance components and four types of different features for the luminance component, where:

AC和AY分别为色度分量和亮度分量的幅度,为色度相对亮度的延时。A C and A Y are the magnitudes of the chrominance and luminance components, respectively, is the delay between chrominance and luminance.

图3的特征是:AC>AY即色度分量的幅度大于亮度分量的幅度,色度超前亮度;The characteristics of Fig. 3 are: A C >A Y , That is, the amplitude of the chrominance component is greater than that of the luminance component, and the chrominance leads the luminance;

图4的特征是:AC>AY即色度分量的幅度大于亮度分量的幅度,色度滞后亮度;The characteristics of Fig. 4 are: A C >A Y , That is, the amplitude of the chrominance component is greater than that of the luminance component, and the chrominance lags the luminance;

图5的特征是:AC<AY即色度分量的幅度小于亮度分量的幅度,色度超前亮度;The characteristics of Figure 5 are: A C <A Y , That is, the amplitude of the chrominance component is smaller than that of the luminance component, and the chrominance leads the luminance;

图6的特征是:AC<AY即色度分量的幅度小于亮度分量的幅度,色度滞后亮度;The characteristics of Fig. 6 are: A C <A Y , That is, the amplitude of the chrominance component is smaller than that of the luminance component, and the chrominance lags the luminance;

上述图形的特征是根据包络线的形状定性分析得到的。The characteristics of the above graphs are obtained by qualitative analysis according to the shape of the envelope.

进一步地,将图3中包络线单独展示,获得图7所示的包络线。Further, the envelope shown in FIG. 3 is shown separately to obtain the envelope shown in FIG. 7 .

所述上包络线波峰的第一幅度值即为图7所示的M的值,确定所述第一幅度值是为了在后续步骤中确定复合视频信号中亮度分量幅度和色度相对亮度延时的取值范围;The first amplitude value of the upper envelope peak is the value of M shown in FIG. 7 , and the first amplitude value is determined to determine the amplitude of the luminance component and the relative luminance delay of chrominance in the composite video signal in the subsequent steps. The value range of time;

确定所述第一幅度值的方法可以包括:获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值,即图7所示的M的值。The method for determining the first amplitude value may include: acquiring a peak point of the upper envelope, measuring the amplitude of the peak point, and obtaining the first amplitude value, that is, the value of M shown in FIG. 7 .

步骤102:根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;Step 102: According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal, and determine the value range of the chrominance relative luminance delay in the composite video signal;

获得所述第一幅度值后需要建立一个所述复合视频信号中亮度分量幅度、色度分量幅度、色度相对亮度延时和M的关系表达式,然后据此确定亮度分量幅度、色度相对亮度延时的取值范围,具体如下:After obtaining the first amplitude value, it is necessary to establish a relationship expression of the luminance component amplitude, chrominance component amplitude, chrominance relative luminance delay and M in the composite video signal, and then determine the luminance component amplitude, chrominance relative The value range of the brightness delay is as follows:

根据复合视频信号的原理,可知复合视频信号的色度和亮度波形分别为正弦平方波,因此可用AC、AY作为变量表示成复合视频信号的包络线的标准函数,具体地,图7中的上包络线和下包络线分别用下述的式(1)、(2)表示。According to the principle of the composite video signal, it can be known that the chrominance and luminance waveforms of the composite video signal are sine square waves respectively, so A C , A Y and The variable is expressed as a standard function of the envelope of the composite video signal. Specifically, the upper envelope and the lower envelope in FIG. 7 are represented by the following equations (1) and (2), respectively.

上述两式中,CVBS_t为上包络线,CVBS_b为下包络线,AC和AY分别为色度分量和亮度分量的幅度,为色度相对亮度的延时。In the above two formulas, CVBS_t is the upper envelope, CVBS_b is the lower envelope, A C and A Y are the amplitudes of the chrominance and luminance components, respectively, is the delay between chrominance and luminance.

根据式(1),假设色度相对亮度的延时为零,即则可得:M=AY+Ac;According to equation (1), it is assumed that the delay of chrominance relative to luminance is zero, that is, Then we can get: M=A Y +Ac;

而Ac是正弦平方,大于或等于零,所以AY是不会大于M的,因此可得AY的取值范围为0到M,即所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;And Ac is the square of the sine, greater than or equal to zero, so A Y will not be greater than M, so the value range of A Y can be obtained from 0 to M, that is, the value range of the luminance component amplitude in the composite video signal is zero to the first amplitude value;

由正弦函数的特点可知,式(1)中周期为2π,而为色度相对亮度的延时,有可能超前,也可能滞后,因此可设置的取值范围为大于或等于-π,且小于或等于π,的取值范围可以表示为[-π,π]。From the characteristics of the sine function, it can be known that in formula (1) period is 2π, and It is the delay of chrominance relative to brightness, which may lead or lag, so it can be set The value range of is greater than or equal to -π, and less than or equal to π, The value range of can be expressed as [-π,π].

步骤103:在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;Step 103: Assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignments into the upper value with the luminance component amplitude and the chrominance relative luminance delay as variables. In the envelope function, and determine the second amplitude value of the peak of the function that is substituted into the assigned upper envelope;

当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。When the difference between the second amplitude value and the first amplitude value is smaller than a preset value, determine the color-brightness gain of the composite video signal through the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Difference and color brightness delay difference.

具体地,为了在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值后,能确定所述上包络线的函数的波峰的第二幅度值,需要对所述包络线标准函数进行变换,获得亮度分量幅度和色度相对亮度延时与所述包络线波峰的第二幅度值的关系式;Specifically, in order to determine the second amplitude value of the peak of the upper envelope function after assigning the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, it is necessary to The envelope standard function is transformed to obtain the relationship between the luminance component amplitude and the chrominance relative luminance delay and the second amplitude value of the envelope peak;

当然,在赋值试算的过程中,还需要其它一些公式,为了描述清楚,先将计算过程中用到的所有公式先一一推导出:Of course, in the process of assignment trial calculation, some other formulas are needed. In order to describe clearly, all formulas used in the calculation process are deduced one by one:

注意到当ωt∈[0,π]时,式(1)存在一个极大值,式(2)存在一个极大值和极小值。因此分别对式(1)和式(2)对t求导,得到式(3)和式(4)。Note that when ωt∈[0,π], there is a maximum value in formula (1), and a maximum value and a minimum value in formula (2). Therefore, formula (1) and formula (2) are respectively derived with respect to t to obtain formula (3) and formula (4).

当式(1)和式(2)达到极大值或极小值时,式(3)和式(4)分别等于0,得到(5)和式(6)。When equations (1) and (2) reach a maximum value or a minimum value, equations (3) and (4) are respectively equal to 0, and equations (5) and (6) are obtained.

设满足式(5)的t为tt,满足式(6)的t为tb1和tb2;根据tb1和tb2的关系可得式(7):Let t that satisfies Equation (5) be t t , and t that satisfies Equation (6) be t b1 and t b2 ; according to the relationship between t b1 and t b2 , Equation (7) can be obtained:

结合图7,将tt、tb1、tb2和式(7)代入式(1)和式(2),获得式(8)、(9)、(10):Combined with Figure 7, t t , t b1 , t b2 and formula (7) are substituted into formula (1) and formula (2) to obtain formulas (8), (9), (10):

式(9)和式(10)相加得到式(11):Equation (9) and Equation (10) are added to obtain Equation (11):

AY-AC=Y1+Y2 (11)A Y -A C =Y1+Y2 (11)

接着由式(5)推导得到式(12):Then formula (12) is derived from formula (5):

最终得到式(13):Finally, formula (13) is obtained:

同理,由式(6)可以推导得到式(14):Similarly, formula (14) can be derived from formula (6):

推导出上述公式后,对AY在取值范围内分别赋值,根据赋值用式(11)求出相应的AC;求得AC后,将AC、AY代入式(13)求出ωttAfter deriving the above formula, for A Y and Assign values respectively within the value range, and use formula (11) to obtain the corresponding A C according to the assignment; after obtaining A C , assign A C , A Y and Substitute into equation (13) to find ωt t ;

将求得的ωtt代入式(8),确定所述上包络线的第二幅度值,也就是计算所述代入赋值的上包络线的函数的最大值,记为M’,Substitute the obtained ωt t into Equation (8) to determine the second amplitude value of the upper envelope, that is, to calculate the maximum value of the function of the upper envelope of the substituted assignment, denoted as M',

对AY在设定的取值范围继续赋值,得到多个上包络线的第二幅度值;for A Y and Continue to assign values in the set value range to obtain the second amplitude values of multiple upper envelopes;

当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差;When the difference between the second amplitude value and the first amplitude value is smaller than a preset value, determine the color-brightness gain of the composite video signal through the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Difference and color brightness delay difference;

具体地,通过如下公式计算:Specifically, it is calculated by the following formula:

式(15)求得的结果为色亮增益差,单位为%;The result obtained by formula (15) is the difference in color and brightness gain, and the unit is %;

式(16)求得的结果为色亮延时差,单位为ns;如果计算结果为负,说明色度滞后,如果计算结果为正,说明色度超前;The result obtained by formula (16) is the color-brightness delay difference, and the unit is ns; if the calculation result is negative, it means that the chroma lags; if the calculation result is positive, it means that the chroma is ahead;

其中,N为常数,因为是20T脉冲,所以取20,T是时间周期;具体到制式,对于PAL,T为100ns;对于NTSC,T为125ns;Among them, N is a constant, because it is a 20T pulse, so take 20, and T is the time period; specific to the system, for PAL, T is 100ns; for NTSC, T is 125ns;

预设差异值为根据复合视频解码芯片,即CVBS解码芯片的要求确定,不作赘述。The preset difference value is determined according to the requirements of the composite video decoding chip, that is, the CVBS decoding chip, and will not be repeated here.

进一步地,为了使计算结果更准确,可以从复合视频信号中提取多个波形,分别计算出色亮增益差和色亮延时差;Further, in order to make the calculation result more accurate, multiple waveforms can be extracted from the composite video signal, and the color-brightness gain difference and the color-brightness delay difference are calculated respectively;

具体地,基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;Specifically, based on the respective upper envelopes of the multiple composite video signals obtained from the multiple composite video signals, the respective color brightness gain differences and color brightness of the multiple composite video signals are determined based on the respective upper envelopes. delay difference;

分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively;

将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差Taking the average value as the difference in color and brightness gain and the difference in color and brightness delay of the composite video signal

更具体地,根据复合视频信号原理,可知20T脉冲的波形是初相位为零度、90度、180度、270度的四种波形循环,其中零度、180度和90度、270度的形状完全一样,只是波峰波谷方向相反,因此只要计算零度和90度这两种波形的指标,并取平均值,即:More specifically, according to the principle of composite video signal, it can be known that the waveform of the 20T pulse is four waveform cycles with initial phases of zero, 90, 180 and 270 degrees, and the shapes of zero, 180 and 90 and 270 degrees are exactly the same. , but the direction of the peaks and troughs is opposite, so just calculate the indicators of the two waveforms of zero degree and 90 degrees, and take the average value, namely:

根据初相位为零的复合视频信号,计算出第一色亮增益差和第一色亮延时差:According to the composite video signal whose initial phase is zero, calculate the first color brightness gain difference and the first color brightness delay difference:

根据初相位为90度的复合视频信号,计算出第二色亮增益差和第二色亮延时差;Calculate the second color brightness gain difference and the second color brightness delay difference according to the composite video signal with an initial phase of 90 degrees;

根据第一色亮增益差和第二色亮增益差的平均值获得色亮增益差,根据第一色亮延时差和第二色亮延时差的平均值获得色亮延时差。The color brightness gain difference is obtained according to the average value of the first color brightness gain difference and the second color brightness gain difference, and the color brightness delay difference is obtained according to the average value of the first color brightness delay difference and the second color brightness delay difference.

实施例二Embodiment 2

图8为本发明实施例二复合视频信号质量指标确定方法的流程示意图,所述方法的执行主体可以是测试主机,更具体地可以是一台计算机,如图8所示,所述方法包括:8 is a schematic flowchart of a method for determining a quality indicator of a composite video signal according to Embodiment 2 of the present invention. The execution body of the method may be a test host, more specifically, a computer. As shown in FIG. 8 , the method includes:

步骤201:确定复合视频信号的上包络线、下包络线的波峰、波谷的实测幅度值;Step 201: Determine the measured amplitude values of the upper envelope, the lower envelope, and the trough of the composite video signal;

由于实施例一确定的亮度分量幅度和色度相对亮度延时的取值范围是比较大的,计算的工作量比较大,本步骤在实施例一的基础上,设法减小亮度分量幅度和色度相对亮度延时的取值范围;Since the value ranges of the luminance component amplitude and chrominance relative to the luminance delay determined in the first embodiment are relatively large, and the calculation workload is relatively large, this step tries to reduce the luminance component amplitude and color on the basis of the first embodiment. The value range of the relative brightness delay;

具体地,在实施例一步骤101的基础上,除了获取所述复合视频信号的上包络线外,还获取了所述复合视频信号的下包络线,确定了上包络线、下包络线的波峰、波谷的实测幅度值,图7中分别对应M、Y1和Y2;Specifically, on the basis of step 101 of the first embodiment, in addition to the upper envelope of the composite video signal, the lower envelope of the composite video signal is also obtained, and the upper envelope and lower envelope are determined. The measured amplitude values of the peak and trough of the network line correspond to M, Y1 and Y2 respectively in Figure 7;

这样,在后续的步骤中,可以更精确地确定亮度分量幅度和色度相对亮度延时的取值范围。In this way, in the subsequent steps, the value ranges of the luminance component amplitude and the chrominance relative luminance delay can be determined more accurately.

步骤202:确定所述复合视频信号中亮度分量幅度和色度相对亮度延时的取值范围;Step 202: Determine the value range of the luminance component amplitude and the chrominance relative luminance delay in the composite video signal;

在实施例一步骤102的基础上,本步骤进一步确定亮度分量幅度和色度相对亮度延时的取值范围,具体如下:On the basis of step 102 in the first embodiment, this step further determines the value ranges of the luminance component amplitude and the chrominance relative luminance delay, as follows:

1)确定亮度分量幅度的取值范围:1) Determine the value range of the luminance component amplitude:

将前述式(11)代入式(8),可得AY的取值范围为:Substituting the aforementioned formula (11) into formula (8), the value range of A Y can be obtained as:

2)确定色度相对亮度延时的取值范围:2) Determine the value range of the chrominance relative luminance delay:

实施例一中步骤102中确定色度相对亮度延时的取值范围为[-π,π];In the first embodiment, in step 102, it is determined that the value range of the chrominance relative luminance delay is [-π, π];

为正弦函数的平方,根据正弦函数的特点可知,平方后的周期缩小一半,所以可将色度相对亮度延时的取值范围设置为[-π/2,π/2];but is the square of the sine function. According to the characteristics of the sine function, the period after the square is reduced by half, so the value range of the chrominance relative luminance delay can be set to [-π/2, π/2];

进一步地,式(13)是用于计算ωt的,和确定所述第二幅度值有直接的关系,之前的一些公式只是为了推导出式(13),式(13)中的取值范围就决定了色度相对亮度延时的取值范围,因此对式(13)作进一步的定性分析,从(13)可以看出,tg(2ωt)为正切函数,正切函数的周期为π,而tg(2ωt)中为2倍的ωt,周期缩小一半,周期为π/2,所以色度相对亮度延时的取值范围也可以是π/2,因此色度相对亮度延时的取值范围可以设置为[-π/4,π/4]。Further, Equation (13) is used to calculate ωt, which is directly related to determining the second amplitude value. Some of the previous formulas are only for deriving Equation (13). In Equation (13) The value range of tg(2ωt) determines the value range of the chrominance relative to luminance delay. Therefore, further qualitative analysis of formula (13) is carried out. It can be seen from (13) that tg(2ωt) is a tangent function, and the period of the tangent function is is π, and tg(2ωt) is 2 times ωt, the period is reduced by half, and the period is π/2, so the value range of the chrominance relative luminance delay can also be π/2, so the chrominance relative luminance delay The value range of can be set to [-π/4,π/4].

步骤203:在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线、下包络线函数中,并确定代入赋值的上包络线、下包络线的函数的波峰、波谷的理论幅度值;Step 203: Assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignments into the upper value with the luminance component amplitude and the chrominance relative luminance delay as variables. In the envelope and lower envelope functions, and determine the theoretical amplitude values of the peaks and troughs of the upper envelope and lower envelope functions that are substituted into the assignment;

当所述理论幅度值与所述实测幅度值的差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。When the difference between the theoretical amplitude value and the measured amplitude value is less than a preset value, determine the color-brightness gain difference of the composite video signal by assigning the luminance component amplitude and the chrominance relative luminance delay and color brightness delay difference.

在实施例一步骤103的基础上,本步骤还需要计算所述下包络线函数的波峰、波谷的理论幅度值;On the basis of step 103 in the first embodiment, this step also needs to calculate the theoretical amplitude values of the peaks and troughs of the lower envelope function;

具体地,对AY在取值范围内分别赋值,根据赋值用式(11)求出相应的AC;求得AC后,将AC、AY代入式(13)、式(14)和式(7)求出ωtt、ωtb1和ωtb2,注意若ωtb1小于0,则将ωtb1加上π/2作为下面计算的ωtb1,即 Specifically, for A Y and Assign values respectively within the value range, and use formula (11) to obtain the corresponding A C according to the assignment; after obtaining A C , assign A C , A Y and Substitute into Equation (13), Equation (14) and Equation (7) to find ωt t , ωt b1 and ωt b2 , note that if ωt b1 is less than 0, then add ωt b1 to π/2 as the ωt b1 calculated below, namely

将求得的ωtt、ωtb1和ωtb2代入式(8)(9)(10),确定上包络线、下包络线函数的波峰、波谷的理论幅度值,即M’、Y1’和Y2’的值,分别与上包络线、下包络线的波峰、波谷的实测幅度值M、Y1和Y2相减,将三个差值的绝对值相加,三个差值之和设为S。Substitute the obtained ωt t , ωt b1 and ωt b2 into equations (8)(9)(10) to determine the theoretical amplitude values of the peaks and valleys of the upper and lower envelope functions, namely M', Y1' and Y2', respectively subtract the measured amplitude values M, Y1 and Y2 of the peaks and troughs of the upper envelope and lower envelope, and add the absolute values of the three differences, and the sum of the three differences Set to S.

对AY在设定的取值范围继续赋值,得到多个所述上包络线、下包络线函数的波峰、波谷的理论幅度值;for A Y and Continue to assign values in the set value range to obtain a plurality of theoretical amplitude values of the peaks and valleys of the upper envelope and lower envelope functions;

计算出多个上包络线、下包络线函数的波峰、波谷的理论幅度值,分别与上包络线、下包络线的波峰、波谷的实测幅度值计算,得到多个S,当S小于预设差异值时,通过所述亮度分量幅度、色度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差,计算公式见式(15)、(16)。Calculate the theoretical amplitude values of the peaks and troughs of multiple upper envelope and lower envelope functions, and calculate with the measured amplitude values of the peaks and troughs of the upper envelope and lower envelope respectively, and obtain multiple S, when When S is less than the preset difference value, determine the color-brightness gain difference and the color-brightness delay difference of the composite video signal through the assignments of the luminance component amplitude, the chrominance component amplitude, and the chrominance relative luminance delay, and calculate The formulas are shown in formulas (15) and (16).

实施例三Embodiment 3

图9为本发明实施例三复合视频信号质量指标确定装置的示意图,如图9所示,所述装置包括:获取模块31、第一确定模块32、第二确定模块33、第三确定模块34和第四确定模块35;其中,FIG. 9 is a schematic diagram of an apparatus for determining a quality indicator of a composite video signal according to Embodiment 3 of the present invention. As shown in FIG. 9 , the apparatus includes: an acquisition module 31 , a first determination module 32 , a second determination module 33 , and a third determination module 34 and the fourth determination module 35; wherein,

所述获取模块31,用于获取复合视频信号的上包络线;The acquisition module 31 is used to acquire the upper envelope of the composite video signal;

所述第一确定模块32,用于确定所述上包络线波峰的第一幅度值;The first determining module 32 is configured to determine the first amplitude value of the upper envelope peak;

所述第二确定模块33,用于根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;The second determining module 33 is configured to determine, according to the first amplitude value, the value range of the luminance component amplitude in the composite video signal, and determine the value of the chrominance relative luminance delay in the composite video signal scope;

所述第三确定模块34,用于在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;The third determination module 34 is configured to assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignment into the luminance component amplitude and the chrominance relative luminance delay. The luminance delay is in the upper envelope function of the variable, and the second amplitude value of the peak of the function of the assigned upper envelope is determined;

所述第四确定模块35,用于当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。The fourth determination module 35 is configured to, when the difference between the second amplitude value and the first amplitude value is less than a preset value, pass the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Determine the color-brightness gain difference and the color-brightness delay difference of the composite video signal.

为了说明的更清楚,下面将分别对各个模块作详细说明:In order to explain more clearly, each module will be described in detail below:

所述获取模块31,用于获取复合视频信号的上包络线;The acquisition module 31 is used to acquire the upper envelope of the composite video signal;

所述复合视频信号是待测试的标准信号,一般是根据复合视频解码芯片的RTL代码,通过模拟装置模拟出的复合视频信号,是数字信号,可以直接被获取模块31获取;也可以是从复合视频解码芯片直接输出的,也就是能被普通模拟电视机接收的CVBS信号,需要通过模数转换装置才能被获取模块31获取;The composite video signal is a standard signal to be tested, and is generally a composite video signal simulated by an analog device according to the RTL code of the composite video decoding chip, which is a digital signal and can be directly obtained by the obtaining module 31; The CVBS signal directly output by the video decoding chip, that is, the CVBS signal that can be received by an ordinary analog TV, needs to be acquired by the acquisition module 31 through an analog-to-digital conversion device;

所述上包络线的获取是通过将所述复合视频信号的波形的峰值点连接起来而获得,具体地,是通过应用程序处理的,所述应用程序设有特定的算法,可以自动捕捉到所述复合视频信号的峰值点,再画出与所述峰值点相切的切线,最后将切线光滑连接即可,所述应用程序一般是安装在测试主机的视频信号处理应用程序。The acquisition of the upper envelope is obtained by connecting the peak points of the waveform of the composite video signal. Specifically, it is processed by an application program. The application program is provided with a specific algorithm, which can automatically capture the The peak point of the composite video signal, then draw a tangent line tangent to the peak point, and finally connect the tangent line smoothly. The application program is generally a video signal processing application program installed on the test host.

具体地,所述视频处理应用程序可以是矩阵实验室(MATLAB,MatrixLaboratory)。Specifically, the video processing application may be MatrixLaboratory (MATLAB, MatrixLaboratory).

所述第一确定模块32,用于确定所述上包络线波峰的第一幅度值;The first determining module 32 is configured to determine the first amplitude value of the upper envelope peak;

根据相关标准,测试复合视频信号中色亮增益差和色亮延时差的具体信号为20T脉冲波形,20T脉冲的定义,20T脉冲的波形中,当幅度达到最大值的一半时,所对应的两个时间点之间的距离为20T,T为时间周期;具体到制式,对于PAL,T为100ns;对于NTSC,T为125ns。According to the relevant standards, the specific signal for testing the color gain difference and color brightness delay difference in the composite video signal is the 20T pulse waveform. The distance between the two time points is 20T, and T is the time period. Specifically, for the system, for PAL, T is 100 ns; for NTSC, T is 125 ns.

在20T脉冲中,色度和亮度信号均是正弦平方波,且色度信号叠加在亮度信号中。In a 20T pulse, both the chrominance and luma signals are square sine waves, and the chrominance signal is superimposed on the luma signal.

图2为本实施例中的20T脉冲波形,ω=2πf,f为复合视频信号的载波频率。Fig. 2 shows the 20T pulse waveform in this embodiment, ω=2πf, and f is the carrier frequency of the composite video signal.

为了更好地观察20T脉冲波形,假设所述复合视频信号的频率趋向正无穷,这样,复合视频信号的包络线更清楚,具体见图3~图6,图3~图6为色度分量和亮度分量不同特征的四种类型,其中:In order to better observe the 20T pulse waveform, it is assumed that the frequency of the composite video signal tends to be infinity, so that the envelope of the composite video signal is clearer, see Figure 3 to Figure 6 for details, and Figure 3 to Figure 6 are the chrominance components and four types of different features for the luminance component, where:

AC和AY分别为色度分量和亮度分量的幅度,为色度相对亮度的延时。A C and A Y are the magnitudes of the chrominance and luminance components, respectively, is the delay between chrominance and luminance.

图3的特征是:AC>AY即色度分量的幅度大于亮度分量的幅度,色度超前亮度;The characteristics of Fig. 3 are: A C >A Y , That is, the amplitude of the chrominance component is greater than that of the luminance component, and the chrominance leads the luminance;

图4的特征是:AC>AY即色度分量的幅度大于亮度分量的幅度,色度滞后亮度;The characteristics of Fig. 4 are: A C >A Y , That is, the amplitude of the chrominance component is greater than that of the luminance component, and the chrominance lags the luminance;

图5的特征是:AC<AY即色度分量的幅度小于亮度分量的幅度,色度超前亮度;The characteristics of Figure 5 are: A C <A Y , That is, the amplitude of the chrominance component is smaller than that of the luminance component, and the chrominance leads the luminance;

图6的特征是:AC<AY即色度分量的幅度小于亮度分量的幅度,色度滞后亮度;The characteristics of Fig. 6 are: A C <A Y , That is, the amplitude of the chrominance component is smaller than that of the luminance component, and the chrominance lags the luminance;

上述图形的特征是根据包络线的形状定性分析得到的,分析方法是本领域技术人员都了解的,不作赘述。The characteristics of the above graphs are obtained by qualitative analysis according to the shape of the envelope, and the analysis methods are known to those skilled in the art, and will not be described in detail.

进一步地,将图3中包络线单独展示,获得图7所示的包络线。Further, the envelope shown in FIG. 3 is shown separately to obtain the envelope shown in FIG. 7 .

所述上包络线波峰的第一幅度值即为图7所示的M的值,确定所述第一幅度值是为了在后续步骤中确定复合视频信号中亮度分量幅度和色度相对亮度延时的取值范围;The first amplitude value of the upper envelope peak is the value of M shown in FIG. 7 , and the first amplitude value is determined to determine the amplitude of the luminance component and the relative luminance delay of chrominance in the composite video signal in the subsequent steps. The value range of time;

确定所述第一幅度值的方法可以包括:获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值,即图7所示的M的值。The method for determining the first amplitude value may include: acquiring a peak point of the upper envelope, measuring the amplitude of the peak point, and obtaining the first amplitude value, that is, the value of M shown in FIG. 7 .

所述第二确定模块33,用于根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;The second determining module 33 is configured to determine, according to the first amplitude value, the value range of the luminance component amplitude in the composite video signal, and determine the value of the chrominance relative luminance delay in the composite video signal scope;

获得所述第一幅度值后,需要建立一个所述复合视频信号中亮度分量幅度、色度分量幅度、色度相对亮度延时和M的关系表达式,然后据此确定亮度分量幅度、色度相对亮度延时的取值范围,具体地如下:After obtaining the first amplitude value, it is necessary to establish a relational expression of the luminance component amplitude, chrominance component amplitude, chrominance relative luminance delay and M in the composite video signal, and then determine the luminance component amplitude, chrominance component according to this. The value range of the relative brightness delay is as follows:

根据复合视频信号的原理,可知复合视频信号的色度和亮度波形分别为正弦平方波,因此可用AC、AY作为变量表示成复合视频信号的包络线的标准函数,具体地,图7中上包络线和下包络线分别用前述的式(1)、(2)表示。According to the principle of the composite video signal, it can be known that the chrominance and luminance waveforms of the composite video signal are sine square waves respectively, so A C , A Y and The variable is expressed as a standard function of the envelope of the composite video signal. Specifically, the upper envelope and the lower envelope in FIG. 7 are respectively represented by the aforementioned equations (1) and (2).

上述两式中,CVBS_t为上包络线,CVBS_b为下包络线,AC和AY分别为色度分量和亮度分量的幅度,为色度相对亮度的延时。In the above two formulas, CVBS_t is the upper envelope, CVBS_b is the lower envelope, A C and A Y are the amplitudes of the chrominance and luminance components, respectively, is the delay between chrominance and luminance.

根据式(1),假设色度相对亮度的延时为零,即则可得:M=AY+Ac;According to equation (1), it is assumed that the delay of chrominance relative to luminance is zero, that is, Then we can get: M=A Y +Ac;

而Ac是正弦平方,大于或等于零,所以AY是不会大于M的,因此可得AY的取值范围为0到M,即所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;And Ac is the square of the sine, greater than or equal to zero, so A Y will not be greater than M, so the value range of A Y can be obtained from 0 to M, that is, the value range of the luminance component amplitude in the composite video signal is zero to the first amplitude value;

由正弦函数的特点可知,式(1)中周期为2π,而为色度相对亮度的延时,有可能超前,也可能滞后,因此可设置的取值范围为大于或等于-π,且小于或等于π,的取值范围可以表示为[-π,π]。From the characteristics of the sine function, it can be known that in formula (1) period is 2π, and It is the delay of chrominance relative to brightness, which may lead or lag, so it can be set The value range of is greater than or equal to -π, and less than or equal to π, The value range of can be expressed as [-π,π].

所述第三确定模块34,用于在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;The third determination module 34 is configured to assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignment into the luminance component amplitude and the chrominance relative luminance delay. The luminance delay is in the upper envelope function of the variable, and the second amplitude value of the peak of the function of the assigned upper envelope is determined;

具体地,为了在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值后,能确定所述上包络线的函数的波峰的第二幅度值,需要对所述包络线标准函数进行变换,获得亮度分量幅度和色度相对亮度延时与所述包络线波峰的第二幅度值的关系式;Specifically, in order to determine the second amplitude value of the peak of the upper envelope function after assigning the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, it is necessary to assign the The envelope standard function is transformed to obtain the relationship between the luminance component amplitude and the chrominance relative luminance delay and the second amplitude value of the envelope peak;

当然,在赋值试算的过程中,还需要其它的一些公式,为了描述清楚,先将计算过程中用到的所有公式先一一推导出:Of course, in the process of assignment trial calculation, some other formulas are needed. In order to describe clearly, all formulas used in the calculation process are deduced one by one:

注意到当ωt∈[0,π]时,式(1)存在一个极大值,式(2)存在一个极大值和极小值。因此分别对式(1)和式(2)对t求导,得到式(3)和式(4)。Note that when ωt∈[0,π], there is a maximum value in formula (1), and a maximum value and a minimum value in formula (2). Therefore, formula (1) and formula (2) are respectively derived with respect to t to obtain formula (3) and formula (4).

当式(1)和式(2)达到极大值或极小值时,式(3)和式(4)分别等于0,得到(5)和式(6)。When equations (1) and (2) reach a maximum value or a minimum value, equations (3) and (4) are respectively equal to 0, and equations (5) and (6) are obtained.

设满足式(5)的t为tt,满足式(6)的t为tb1和tb2;根据tb1和tb2的关系可得式(7):Let t that satisfies Equation (5) be t t , and t that satisfies Equation (6) be t b1 and t b2 ; according to the relationship between t b1 and t b2 , Equation (7) can be obtained:

结合图7,将tt、tb1、tb2和式(7)代入式(1)和式(2),获得式(8)、(9)、(10):Combined with Figure 7, t t , t b1 , t b2 and formula (7) are substituted into formula (1) and formula (2) to obtain formulas (8), (9), (10):

式(9)和式(10)相加得到式(11):Equation (9) and Equation (10) are added to obtain Equation (11):

接着由式(5)推导得到式(12):Then formula (12) is derived from formula (5):

最终得到式(13):Finally, formula (13) is obtained:

同理,由式(6)可以推导得到式(14):Similarly, equation (14) can be derived from equation (6):

推导出上述公式后,对AY在取值范围内分别赋值,根据赋值用式(11)求出相应的AC;求得AC后,将AC、AY代入式(13)求出ωttAfter deriving the above formula, for A Y and Assign values respectively within the value range, and use formula (11) to obtain the corresponding A C according to the assignment; after obtaining A C , assign A C , A Y and Substitute into equation (13) to find ωt t ;

将求得的ωtt代入式(8),确定所述上包络线的第二幅度值,也就是计算所述代入赋值的上包络线的函数的最大值,记为M’,Substitute the obtained ωt t into Equation (8) to determine the second amplitude value of the upper envelope, that is, to calculate the maximum value of the function of the upper envelope of the substituted assignment, denoted as M',

对AY在设定的取值范围继续赋值,得到多个上包络线的第二幅度值;for A Y and Continue to assign values in the set value range to obtain the second amplitude values of multiple upper envelopes;

所述第四确定模块35,用于当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。The fourth determination module 35 is configured to, when the difference between the second amplitude value and the first amplitude value is less than a preset value, pass the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Determine the color-brightness gain difference and the color-brightness delay difference of the composite video signal.

当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差;When the difference between the second amplitude value and the first amplitude value is smaller than a preset value, determine the color-brightness gain of the composite video signal through the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Difference and color brightness delay difference;

具体地,通过公式(15)、(16)计算:Specifically, it is calculated by formulas (15) and (16):

式(15)求得的结果为色亮增益差,单位为%;The result obtained by formula (15) is the difference in color and brightness gain, and the unit is %;

式(16)求得的结果为色亮延时差,单位为ns;如果计算结果为负,说明色度滞后,如果计算结果为正,说明色度超前;The result obtained by formula (16) is the color-brightness delay difference, and the unit is ns; if the calculation result is negative, it means that the chroma lags; if the calculation result is positive, it means that the chroma is ahead;

其中,N为常数,因为是20T脉冲,所以取20,T是时间周期;具体到制式,对于PAL,T为100ns;对于NTSC,T为125ns;Among them, N is a constant, because it is a 20T pulse, so take 20, and T is the time period; specific to the system, for PAL, T is 100ns; for NTSC, T is 125ns;

预设差异值为根据复合视频解码芯片的要求确定,不作赘述。The preset difference value is determined according to the requirements of the composite video decoding chip, and will not be repeated.

进一步地,为了使计算结果更准确,可以从复合视频信号中提取多个波形,分别计算出色亮增益差和色亮延时差;Further, in order to make the calculation result more accurate, multiple waveforms can be extracted from the composite video signal, and the color-brightness gain difference and the color-brightness delay difference are calculated respectively;

具体地,基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;Specifically, based on the respective upper envelopes of the multiple composite video signals obtained from the multiple composite video signals, the respective color brightness gain differences and color brightness of the multiple composite video signals are determined based on the respective upper envelopes. delay difference;

分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively;

将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差Taking the average value as the difference in color and brightness gain and the difference in color and brightness delay of the composite video signal

更具体地,根据复合视频信号原理,可知20T脉冲的波形是初相位为零度、90度、180度、270度的四种波形循环,其中零度、180度和90度、270度的形状完全一样,只是波峰波谷方向相反,因此只要计算零度和90度这两种波形的指标,并取平均值,即:More specifically, according to the principle of composite video signal, it can be known that the waveform of the 20T pulse is four waveform cycles with initial phases of zero, 90, 180 and 270 degrees, and the shapes of zero, 180 and 90 and 270 degrees are exactly the same. , but the direction of the peaks and troughs is opposite, so just calculate the indicators of the two waveforms of zero degree and 90 degrees, and take the average value, namely:

根据初相位为零的复合视频信号,计算出第一色亮增益差和第一色亮延时差:According to the composite video signal whose initial phase is zero, calculate the first color brightness gain difference and the first color brightness delay difference:

根据初相位为90度的复合视频信号,计算出第二色亮增益差和第二色亮延时差;Calculate the second color brightness gain difference and the second color brightness delay difference according to the composite video signal with an initial phase of 90 degrees;

根据第一色亮增益差和第二色亮增益差的平均值获得色亮增益差,根据第一色亮延时差和第二色亮延时差的平均值获得色亮延时差。The color brightness gain difference is obtained according to the average value of the first color brightness gain difference and the second color brightness gain difference, and the color brightness delay difference is obtained according to the average value of the first color brightness delay difference and the second color brightness delay difference.

在实际应用中,所述获取模块31、第一确定模块32、第二确定模块33、第三确定模块34和第四确定模块35均可由位于测试主机的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)、或现场可编程门阵列(FPGA)等实现。In practical applications, the acquisition module 31 , the first determination module 32 , the second determination module 33 , the third determination module 34 and the fourth determination module 35 can all be composed of a central processing unit (CPU), a microprocessor located in the test host (MPU), digital signal processor (DSP), or field programmable gate array (FPGA), etc.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the within the protection scope of the present invention.

Claims (12)

1.一种复合视频信号质量指标确定方法,其特征在于,所述方法包括:1. a composite video signal quality index determination method, is characterized in that, described method comprises: 获取复合视频信号的上包络线,确定所述上包络线波峰的第一幅度值;Obtain the upper envelope of the composite video signal, and determine the first amplitude value of the peak of the upper envelope; 根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal, and determine the value range of the chrominance relative luminance delay in the composite video signal; 在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;Assign values to the luminance component amplitude and chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignments into the upper envelope with the luminance component amplitude and the chrominance relative luminance delay as variables function, and determine the second amplitude value of the peak of the function that is substituted into the assigned upper envelope; 当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。When the difference between the second amplitude value and the first amplitude value is less than a preset value, determine the color-brightness gain of the composite video signal through the respective assignments of the luminance component amplitude and the chrominance relative luminance delay Difference and color brightness delay difference. 2.根据权利要求1所述的方法,其特征在于,所述获取复合视频信号的上包络线,包括:2. The method according to claim 1, wherein the obtaining the upper envelope of the composite video signal comprises: 获取所述复合视频信号每个周期内的峰值点,连接所述峰值点,形成上包络线。The peak points in each cycle of the composite video signal are acquired, and the peak points are connected to form an upper envelope. 3.根据权利要求2所述的方法,其特征在于,所述确定所述上包络线波峰的第一幅度值,包括:3. The method according to claim 2, wherein the determining the first amplitude value of the upper envelope peak comprises: 获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值。Acquire the peak point of the upper envelope, measure the amplitude of the peak point, and obtain the first amplitude value. 4.根据权利要求1所述的方法,其特征在于,所述确定所述复合视频信号中亮度分量幅度的取值范围,包括:4. The method according to claim 1, wherein the determining the value range of the luminance component amplitude in the composite video signal comprises: 根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal from zero to the first amplitude value; 所述确定所述复合视频信号中色度相对亮度延时的取值范围,包括:The determining the value range of the chrominance relative luminance delay in the composite video signal includes: 所述复合视频信号中色度相对亮度延时的范围为大于或等于-π,且小于或等于π。The range of the chrominance relative luminance delay in the composite video signal is greater than or equal to -π and less than or equal to π. 5.根据权利要求1所述的方法,其特征在于,所述确定代入赋值的上包络线的函数的波峰的第二幅度值,包括;5. The method according to claim 1, characterized in that, the second amplitude value of the wave crest of the function of the upper envelope curve that is determined to be substituted into the assignment comprises; 基于所述代入赋值的上包络线的函数,计算所述代入赋值的上包络线的函数的最大值,将所计算的最大值确定为所述第二幅度值。Based on the function of the upper envelope of the assignment assignment, a maximum value of the function of the upper envelope line assigned to the assignment is calculated, and the calculated maximum value is determined as the second amplitude value. 6.根据权利要求1所述的方法,其特征在于,所述方法还包括;6. The method of claim 1, wherein the method further comprises: 基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;The respective upper envelopes of the plurality of composite video signals obtained based on the plurality of composite video signals, respectively, based on the respective upper envelopes, the respective color-brightness gain differences and color-brightness delay differences of the plurality of composite video signals are determined respectively. ; 分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively; 将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差。The average value is used as the color-brightness gain difference and the color-brightness delay difference of the composite video signal. 7.一种复合视频信号质量指标确定装置,其特征在于,所述装置包括获取模块、第一确定模块、第二确定模块、第三确定模块和第四确定模块;其中,7. An apparatus for determining a quality index of a composite video signal, wherein the apparatus comprises an acquisition module, a first determination module, a second determination module, a third determination module and a fourth determination module; wherein, 所述获取模块,用于获取复合视频信号的上包络线;The acquisition module is used to acquire the upper envelope of the composite video signal; 所述第一确定模块,用于确定所述上包络线波峰的第一幅度值;the first determining module, configured to determine the first amplitude value of the upper envelope peak; 所述第二确定模块,用于根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围,并确定所述复合视频信号中色度相对亮度延时的取值范围;The second determining module is configured to determine, according to the first amplitude value, the value range of the luminance component amplitude in the composite video signal, and determine the value range of the chrominance relative luminance delay in the composite video signal ; 所述第三确定模块,用于在对应的取值范围内对所述亮度分量幅度和色度相对亮度延时分别赋值,将所述赋值代入以所述亮度分量幅度、所述色度相对亮度延时为变量的上包络线函数中,并确定代入赋值的上包络线的函数的波峰的第二幅度值;The third determination module is configured to assign values to the luminance component amplitude and the chrominance relative luminance delay respectively within the corresponding value range, and substitute the assignment into the luminance component amplitude and the chrominance relative luminance delay. The delay is in the upper envelope function of the variable, and the second amplitude value of the peak of the function of the upper envelope of the assignment is determined; 所述第四确定模块,用于当所述第二幅度值与所述第一幅度值差值小于预设值时,通过所述亮度分量幅度和所述色度相对亮度延时的各赋值确定所述复合视频信号的色亮增益差和色亮延时差。The fourth determination module is configured to determine by each assignment of the luminance component amplitude and the chrominance relative luminance delay when the difference between the second amplitude value and the first amplitude value is less than a preset value The difference in color and brightness gain and the difference in color and brightness delay of the composite video signal. 8.根据权利要求7所述的装置,其特征在于,所述获取模块还用于:8. The device according to claim 7, wherein the acquisition module is further configured to: 获取所述复合视频信号每个周期内的峰值点,连接所述峰值点,形成上包络线。The peak points in each cycle of the composite video signal are acquired, and the peak points are connected to form an upper envelope. 9.根据权利要求8所述的装置,其特征在于,所述第一确定模块还用于:9. The apparatus according to claim 8, wherein the first determining module is further configured to: 获取所述上包络线的峰值点,测量所述峰值点的幅度,获得所述第一幅度值。Acquire the peak point of the upper envelope, measure the amplitude of the peak point, and obtain the first amplitude value. 10.根据权利要求7所述的装置,其特征在于,所述第二确定模块还用于:10. The apparatus according to claim 7, wherein the second determining module is further configured to: 根据所述第一幅度值,确定所述复合视频信号中亮度分量幅度的取值范围为零到所述第一幅度值;According to the first amplitude value, determine the value range of the luminance component amplitude in the composite video signal from zero to the first amplitude value; 所述第二确定模块还用于确定所述复合视频信号中色度相对亮度延时的取值范围:所述复合视频信号中色度相对亮度延时的范围为大于或等于-π,且小于或等于π。The second determination module is further configured to determine the value range of the chrominance relative luminance delay in the composite video signal: the range of the chrominance relative luminance delay in the composite video signal is greater than or equal to -π and less than or equal to pi. 11.根据权利要求7所述的装置,其特征在于,所述第三确定模块还用于:11. The apparatus according to claim 7, wherein the third determining module is further configured to: 基于所述代入赋值的上包络线的函数,计算所述代入赋值的上包络线的函数的最大值,将所计算的最大值确定为所述第二幅度值。Based on the function of the upper envelope of the assignment assignment, a maximum value of the function of the upper envelope line assigned to the assignment is calculated, and the calculated maximum value is determined as the second amplitude value. 12.根据权利要求7所述的装置,其特征在于,所述第四确定模块还用于:12. The apparatus according to claim 7, wherein the fourth determining module is further configured to: 基于多个复合视频信号分别获取的所述多个复合视频信号各自的上包络线,基于各上包络线分别确定所述多个复合视频信号各自的色亮增益差和色亮延时差;The respective upper envelopes of the plurality of composite video signals obtained based on the plurality of composite video signals, respectively, based on the respective upper envelopes, the respective color-brightness gain differences and color-brightness delay differences of the plurality of composite video signals are determined respectively. ; 分别对多个色亮增益差和色亮延时差分别取平均值;Take the average value of a plurality of color-brightness gain differences and color-brightness delay differences respectively; 将所述平均值作为所述复合视频信号的色亮增益差和色亮延时差。The average value is used as the color-brightness gain difference and the color-brightness delay difference of the composite video signal.
CN201610528550.XA 2016-07-06 2016-07-06 A kind of composite video signal quality index determination method and device Active CN107592518B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610528550.XA CN107592518B (en) 2016-07-06 2016-07-06 A kind of composite video signal quality index determination method and device
PCT/CN2017/088678 WO2018006701A1 (en) 2016-07-06 2017-06-16 Method and apparatus for determining composite video signal quality indicator, and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610528550.XA CN107592518B (en) 2016-07-06 2016-07-06 A kind of composite video signal quality index determination method and device

Publications (2)

Publication Number Publication Date
CN107592518A CN107592518A (en) 2018-01-16
CN107592518B true CN107592518B (en) 2019-04-30

Family

ID=60901401

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610528550.XA Active CN107592518B (en) 2016-07-06 2016-07-06 A kind of composite video signal quality index determination method and device

Country Status (2)

Country Link
CN (1) CN107592518B (en)
WO (1) WO2018006701A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109905698A (en) * 2019-02-27 2019-06-18 晶晨半导体(上海)股份有限公司 Composite video synchronization broadcast singal adjustment method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547309A (en) * 2011-11-24 2012-07-04 苏州希图视鼎微电子有限公司 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)
CN104320655A (en) * 2014-11-11 2015-01-28 杭州士兰微电子股份有限公司 Video decoding chip testing device and method
WO2016078262A1 (en) * 2014-11-19 2016-05-26 深圳市中兴微电子技术有限公司 Measurement method and apparatus for composite video broadcast signal quality and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8237863B2 (en) * 2008-01-12 2012-08-07 Huaya Microelectronics Adaptive gain and offset control in a digital video decoder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102547309A (en) * 2011-11-24 2012-07-04 苏州希图视鼎微电子有限公司 Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)
CN104320655A (en) * 2014-11-11 2015-01-28 杭州士兰微电子股份有限公司 Video decoding chip testing device and method
WO2016078262A1 (en) * 2014-11-19 2016-05-26 深圳市中兴微电子技术有限公司 Measurement method and apparatus for composite video broadcast signal quality and storage medium
CN105681780A (en) * 2014-11-19 2016-06-15 深圳市中兴微电子技术有限公司 Method and apparatus for measuring quality of composite video broadcast signal

Also Published As

Publication number Publication date
WO2018006701A1 (en) 2018-01-11
CN107592518A (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CA1226061A (en) Computer inspection including color
WO2019056986A1 (en) Skin color detection method and device and storage medium
CN105100794A (en) Audio and video synchronization test method and apparatus
CN107592518B (en) A kind of composite video signal quality index determination method and device
CN103873857A (en) Test equipment and test method for audio and video output interface
CN101778299A (en) Method for color space conversion and system thereof
WO2019080243A1 (en) Method for improving out-of-gamut color overlapping mapping
CN102387397B (en) Method and device for detecting color sub-carrier frequency in video signal
CN106303451B (en) The video processing unit output synchronism detection method and system of multi-display apparatus
CN105681780B (en) A kind of measuring method and device of Composite Video Baseband Signal quality
CN103067654B (en) A kind of video camera with radio detection and spectrum display function
CN107197245A (en) A kind of method of testing and system of set top box audio frequency and video
CN104320655B (en) Video decoding chip test device and method
CA1115831A (en) Color television receiving system utilizing inferred high frequency signal components to reduce color infidelities in regions of color transitions
CN108682407B (en) Automatic color temperature adjusting method
JPS58186291A (en) Color video signal gradation conversion method
WO2020173127A1 (en) Method and system for debugging composite synchronous video broadcast signal
JPS58129890A (en) Adaptive type luminance signal and chroma signal separation filter
CN100539712C (en) The method of measurement of brightness and color difference signal time difference
CN103686159B (en) A kind of test video signal method and device
TWI327025B (en) Automated test measurement system and method therefor
CN102547309B (en) Detection calculating method and device for frequency shift of composite video broadcast signal (CVBS)
CN105704416B (en) A kind of sdi signal calibrating jitter method and system
CN105466478B (en) A kind of optical fibre interrogation system passage consistency calibration method
Leonhardt et al. Critical spectra in the color reproduction process of digital motion picture cameras

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
EE01 Entry into force of recordation of patent licensing contract
EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20180116

Assignee: Xi'an Chris Semiconductor Technology Co. Ltd.

Assignor: SHENZHEN ZTE MICROELECTRONICS TECHNOLOGY CO., LTD.

Contract record no.: 2019440020036

Denomination of invention: Method and device for determining quality index of composite video signal

Granted publication date: 20190430

License type: Common License

Record date: 20190619