中国物联网大厦:深入 BT601 & BT656

来源:百度文库 编辑:中财网 时间:2024/04/29 19:02:35

深入 BT601 & BT656

上一篇 / 下一篇  2007-08-14 10:18:23 / 天气: 晴朗 / 心情: 高兴 / 个人分类:video tech

查看( 3579 ) / 评论( 0 ) / 评分( 0 / 0 ) Before the discuss:
F.c,R@x2Vv1u0.1 They BT601/656 are used for digitalize the common TV video system:
0GAY/GS0    but you may know if only intent to digitalize ,the ADC can do the works. So , therefor, the following function should adding in .
e.h E3c1I9k/F.JC+p0.2 Beside digitalize, BT601/656 has strong compatible,it is common  for 525-line, 625-line system ,and all the system  common to them.
(l(S'v~"{m#Ur8L0
中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台6g{:}7c[9^0Y;Ah i
.1 what is the ITU-R BT601: BT601 = CCIR601
G l)ag#H0.11 the ITU-601 is for codingvideosignals:The YUV color space in,3 components - Luminance Y /Chrominance Cb, Cr
/J P v tQ_8o0.12 The ITU-601 is for 525-Line /625-Line System
| Q C'c'[(a4K-rJ0    25 frames per second (30 frames per second), that is 50 fields/s (60 fields/s)
E` Jw,l)l*z%c!_0    625 lines/frame (525 lines/frame)
2o4AL,}X-{0
;D%F$w9x!B.U V[gp$S0.13  The 13.5M sampling or 18M sampling mode limitation中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台0n\?,QQU%F
    for luminance: 864 samples/line (858 samples/line), that means for both cases a sampling frequency of 13.5 MHz.
.b|.])Y`h4W0    for chrominance: 432 samples/line (429 samples/line), that means for both cases a sampling frequency of 6.75 MHz.
j1{:Oe5u0    so,it limite the input signal up to576p(720*576) (864Sample/perTotalLine)(Luma BW 12M)input.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台O;c-V Baf6V

3u&r1W G Z5iZm2_0.14 Sampling Structure:
}H3yN#iHN x*b0   orthogonal samplingcoding: uniform PCM either8 bitsor10 bits.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台lz&rS Q1|v._7p.H
   The 8 bit serial protocol (216 Mbit/s) was once used inD1digital tape recording. Modern standards use an encoding table to expand the data to 9 or 10 bits for improved behavior over long transmission lines. The 9 bit serial version has a data rate of 243 Mbit/s. By far, the most common version of the interface is the 10-bitSerial Digital Interface(which was later standardized asSMPTE259M), which is now a ubiquitous interconnect standard for professional video equipment which operates on standard-definition digital video. This format, originally used in D5 digital tape recording, has a data rate of 270 Mbit/s. Additionally, a 360 Mbit/s version of the interface has been defined, which is sometimes used inwidescreenapplications.
2s#e#i'Wk0    Color coding system is YUV 4:2:2 OR 4:4:4中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台v^Dw4D p
    And then,
8fJIZy k1]k\a0   TheSampling Structure is defined by Bitband and the Color system
(JFb eHl0    For instant:
gg;c8MRUI1a.H[%Z0    For a pair of pixels, the data are stored in the order Y1:Y2:Cb:Cr at4:2:2 8bit mode,with the chrominance samplesco-sitedwith the first luminance sample.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台W8V2h0ex4?8Ty+IgL9{

.15 quantization levels (for8 bitssamples) and analogical signal:
   In each 8 bit luminance sample, the value0 and 255 only for sync.
   In each 8 bit luminance sample, the valuefrom 1 to 254 for video.
    In each 8 bit luminance sample, the value luminance: 16 = black, 235 = white
    In each 8 bit luminance sample, the value chrominance: 128 = no chrominance中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台2hw4_ O!u O7I&^
中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台)t!K p CH:d
.16 The bit rate中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台Z9]1L)d'`Z)H
    resulting is either 216 Mbps (for 8 bits samples as in D1-DTR), or 270 Mbps (for 10 bits samples as in D5-DTR).中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台W9g5O&l V t

R6Fb)Nyr0   Active Video中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台&PE.d\:]iH
    The active video is the part of the video signal that describes the image, in other words it's the video signal excluding the Vertical Blanking Interval and the Horizontal Blanking Interval.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台tl CsO'j [
    576 lines/frame (480 lines/frame)中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台Sl0p&Of~Y(f c[xB
    720 samples/line for luminance and 360 samples/line for chrominance.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台3a K \;wI*m
    The bit rate resulting is 165.9 Mbps for 8 bits samples.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台7n_*] m3d`/{ f
中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台r%L+tM*w [KU
.17 later versions introduced the bit-serial family ofserial digital video interfacesthat are now commonly used.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台(s hS4b.J5rT

`L3PwR3Fl7d&S"_0.18 601 Data order:

5ndK&f#` s.F~0From the picure, we can see, that the total sampling for the Y = 863 and CR=431 CB=491中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台5^C Y9@1Q

:?3Z+j qn+e Ch9f0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台9O)\6mxd3L"@ K6E%\

What is the ITU-R BT 656 = CCIR656中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台 g [hLg.z
656 that thepractical implementationof Recommendation601requires definition of details of interfaces and the data streams traversing them,most used for Interfaces fordigital componentvideo signals in 525-line and 625-line television systems operating at the 4:2:2 level of Recommendation ITU-R BT.601 (Part A).中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台 zE0sy'qaY

0t_c l5E0The data signal are in the form of binary information coded in8-bit words. These signals are:
9x~4C+y0?$D0– video data;
– timing reference codes;
– ancillary data;
– identification codes.
"ek0BE tR']~flg(]0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台O^%G,g-C:v9h$o9`5[
.1 The 656 use the 4:2:2 video coding protocal in 601.
.2 Parallel Interface (Used in mostly TV VIDEO system)
The Y, Cb, Cr signal of ITU-R 601 is multiplexed in the following way: Cb, Y, Cr, Y, Cb, Y, Cr, ..., producing the Parallel Digital Signal, that has 27MHz frequency.The signal is driven to a bus of 11 pairs (10 for the data and 1 for the clock). Lines must be balanced ECL with characteristic impedance 100 ohms. Cables can be 50 m long without equalization (till 150 m otherwise). Connectors are type D 25 pins.
F/FS1NUe0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台 KXnnWQ5[2Q9h
Notes: The D25pin is defined for Line driver and line receiver interconnection . basically 656 use 9 pin ,we called 8 - bit mode not D25 connector.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台,SOH*_+^W

.3 Serial Interface (Used in most digital camera system)
The Parallel Digital Signal is converted to the Serial Digital Signal, that has 270 MHz frequency. The conversion includes a scrambling process, in order to reduce the DC components and make easier the clock reconstruction, and a Non Return to Zero Inverted coding, that make the signal insensible to polarity.The cable is coax. 75 ohms, the connectors are BNC.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台,Q.t%d8x k,@
Notes: This mode use only one line to transform the 656 data, So you see BNC connector here.
%Eh n;m&M x!\+U0
/JZ Tf&Q)h0.4 Data format:中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台+FS8pb:Q AF9^
A BT.656 data stream is a sequence of8-bit or 10-bitbytes, transmitted at a rate of27 Mbyte/s. Horizontal scan lines of video pixel data are delimited in the stream by 4-byte long SAV (Start of Active Video) and EAV (End of Active Video) code sequences. SAV codes also contain status bits indicating line position in a video field or frame. Line position in a full frame can be determined by tracking SAV status bits, allowing receivers to 'synchronize' with an incoming stream.

Individual pixels in a line are coded inYCbCrformat. After a SAV code (4 bytes) is sent, the first 8 bits of Y (luma) data are sent then 8 bits of Cb (chroma U), followed by 8 bits of Y for the next pixel and then 8 bits of Cr (chroma V). To reconstruct complete Y,Cb,Cr pixel values,chroma subsamplingmust be used

1D n,hUkj/d,vr;Q%K#t0

The compare from BT601 &  BT656 :
.1 The BT601 and BT656 are all digital video signal data format
The video signal means: the input is CVBS,S-VIDEO,and YPBPR for DTV,basic in YUV coding system.
.2 the BT601(ITU-601) and ITU-656 are all 4:2:2 data format support. But 601 is also support 4:4:4.The 656 only support the 4:2:2.

difference:
.1 The 601 sampling rate is 13.5M,The 656 sampling rate is 27M
.2 The data format for601 include seprated H,Y sync
   The 656 hasembedded(the digital data include the coding information for Hs Vs and Field)Sync(Called Video Timing Reference Codes SAV,EAV),656 has field informations.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台B:{%`3l1H L

Different fromBT.601 and BT.709

BT.601 was established in 1987 for 525-line (NTSC) and 625-line PAL/SECAM. In 1990, BT.709 was introduced for high definition (HDTV) with specifications for 1125 and 1250 lines. In 2000, BT.709-4 added 1080 lines to conform to the DTV standard. Following are the sampling frequencies used for both standards.

6VpRxn"T0
Luma        Chroma
^+wxUEA0Standard Sampling Sampling
Ux#l:ow0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台 G*[9z[:vo&W{$OE
BT.601 SDTV 13.5MHz 6.75MHz (4:2:2)
BT.709 HDTV 74.25MHz 37.125MHz (4:2:2)
a1A]1n.?:}0

/H7d9^S3a8_ |0
问题小结:(中国人用中文:)
~3Z"L5Hy01 有关于8位,10位,16位,32位的问题:中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台W'YU0cV+j*g
位数的概念其实是两个方面的:中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台$rE&CA1U,_F_%m
.1 是标准里面定义的"a uniformly-quantized 8-bit binary encoding,",也就是编码的格式,601里面支持两种格式:8-bit,10-bit.
2[,bID$xF?/}b0   如果是8-bit,那么信号的表示范围是0-255,如果同时是4:2:2,记住这个先决条件,那么,就有下面的结论:中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台+D| Az6e6mh:q
   "In the case of the 4:2:2 systems described in this Recommendation, levels 0 and 255 are reserved for synchronization
data, while levels 1 to 254 are available for video."
%t0F~seu&@y8Q$d0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台-W^q[aW Lt
.2 硬件连接的表示方法:
,e9bD;C }vY0    因为656一般是用8位数据线的+1根时钟线,那么也叫做8-bit mode,很多人认为这个是串行的,因为相对于16bit的601节省了8根数据线。然而,在656标准里面是却定义为位并行的(BIT-PARALLEL INTERFACE),因为656还有更决的,那就是一根线传送的标准:(BIT-SERIAL INTERFACE)
u:X2F+?y"cz~O0    而601一般是16位数据线的,那么也叫16-bit mode,这个和编码的位的概念是不同的。但是,601似乎也有8-bit的所谓的接口串行的接法。
l2Wwdw c6~0
7q7\u)vv0o0.3 有关于16-BIT 601,这个是指数据线的位数。
K!o Wt`L0    我们知道,601一般是16位的数据线,因为y/cb/cr的编码定义是同时的,也就是串行的,那么必须是27M的带宽时钟。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台+e#VAc FP
    所谓串行不是指数据线的位数,传统认为,数据线位数多的就是并行。
0Zf6@)N8p P8^+A0    这里的串行是指在一个基本的编码字(Code word)里面Y/CB/CR是否是交织的,这个在后面我会写详细解释。
#_k&^.iVSm0    但有时候,也有用16位的数据线,把y 和cb/cr分别同时传,这样只需要13.5M的带宽时钟。
4^3E.[/^FY'j0ddrUL0中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台)zs&L2yd D$q(@
2 有关于支持串行和并行两种模式:
[2}$ic'l#N(HV*@c:r}^0    所谓串行和并行,有时候,定义为如果y/cb/cr同时传送那就是串行的,否则就是并行的。
Q&[-T2RW3K j8@0    所谓串行不是指数据线的位数,传统认为,数据线位数多的就是并行。
K}l$N~UZS0    这里的串行可以是指在一个基本的编码字(Code word)里面Y/CB/CR是否是交织的。有是并行的,没有串行的。
!K[/XT*s0    但这些并行,串行的方式总的来说都可称为数字串行的接口(serial digital video interfaces),因为每一个端口的数据都不是固定的,中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台Q9Mj,uZ^a)o#m
    根据编码的格式不同,比如:601-8bit , 他的端口(D7-D0)可以是...0(8-bit),CB(8-bit),Y(8-bit),CR(8-bit),Y,0,...
\.fnM$H(qOF0
7[1@lc}Fa/Ews*P_0    601 8-bit模式是Y/CB/CR的串行传送的数字串行接口,所以带宽要求高。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台]iKZh8C'Z
    601 16-bit模式是Y ,CB/CR的并行传送的数字串行接口,但是因为是16bit 所以带宽减半中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台9]q u_{ u
中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台s;[},}'{,P3dz z4yl%L
    656作为"practical implementation of Recommendation 601",因为固定8位的(The data signal are in the form of binary information coded in 8-bit words.),所以应该归为串行的传送。但是,因为可以656还可以变为一根线传送的,所以,又支持位串行和位并行两种方式,这个和传统的串行和并行不同。
-VBESr%@$YD#g0
8h%Z m:qNM03 有关于601是8-bit 模式的硬件连接,为什么传送带宽反而要求更高。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台,`+AWd^8{;zYOI
    因为601是"co-sited"的"sampling structure", 对于,4:2:2结构来说,那么,"co-sited"是指同时的,那么它的带宽就是: Y+CR+CB = 13.5M+6.75*2M = 27M
E/a5@Vl[H&~sK:V0    也就是在一帧的视阈内,同时在8位的数据线上传送这些数据,所以带宽要求高。当然也有16-bit模式的601.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台o:xU$A\]3y
    656作为601的扩展,支持串行和并行两种模式:并行模式下,16根数据线,可以用一般的带宽分别传送: Y + CRCB =13.5M.中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台+Fwld'CH,i.P*~

OV|,Y2d6oZZ;E6W04.16-bit mode 601和656的并行模式区别和选择理由:
`3L k U/z0    。1 同步传送和非同步中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台a0qW1|*GD
    656除了基本的601信息外,还含有一些同步数字编码信息,比如SAV,EAV等等。所以他总共9位,8-bit data + clock中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台!wpx%_p.fv+e
    601 -16bit 除了16位的数据,还有HS,VS,CLK信号,总共是19Bit.
y$Wz"sH6\qZX2Li0   CCIR656是同步传输的,decoder端不用自己产生clock。在CCIR601中,decoder要自己去锁定这个同步讯号,再自己产生clock来解。所以以CCIR656来传递的video讯号质量应该更    好控制。
m;s3`J,|gAx0
t/fB'@_ v M-p0    。2 速度因素:601有更多的Pin脚,而且省去了再解码 656 -〉601 的步骤,所以应该更快
S T\ZE,ql0
@)Azb?!CE0    总结,现在IC pin脚的节省大于速度因素,所以,一般考虑656。
1fw6_ j+[Zo0
BpM B)cBR!?05.抽样频率的选择和两大系统的统一
ctCv1o"ow*m0    对于数字分量编码,CCIR601建议亮度抽样频率为525/60和625/50三大制式行频公倍数2.25MHz的6倍,即13.5MHz。对现行NTSC电视制式而言,亮度信号的带宽是6MHz,13.5MHz>2×6MHz=12MHz,所以它符合奈奎斯特定理。而色差信号的带宽比亮度信号窄得多,所以在分量编码时两个色差信号的抽样频率可以低一些。因同时考虑到抽样的样点结构应满足正交结构要求,两个色差信号的抽样频率均选为亮度信号抽样频率的一半,即6.75MHz,这样亮度信号与两个色差信号的抽样频率之比为 4∶2∶2。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台,Cd ]Jt)v#Nm

_o%Cim ] t06.
数字分量视频信号有效行取样点数的确定和两大系统的统一
k J9_E y+M,|e }0每行数字分量信号的取样点数为:
NN\j3D-f0  对于625行/50场制式:
`@x-N:Q/C&}0     每行亮度取样点=13.5Mhz/15625Hz=864点/行;每行每个色度取样点=6.75Mhz/15625Hz=432点/行。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台8EAtg:d&O#a"y
  对于525行/60场制式:中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台 u G)d7a'j Y1g
     每行亮度取样点=13.5Mhz/15734.266Hz=858点/行;每行每色度取样点=6.75Mhz/15734Hz=429点/行。
XdhGG2Gu s0   可见,这两种制式选用了相同的抽样频率,但每行取样点数却不相同。所以把两者取样点数之差别放在数字有效行以外的部分,而使每个数字有效行内的取样点数相同。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台inEG5{nV
  CCIR 601建议两种制式有效行内的取样点数亮度信号取720个,两个色差信号各取360个,即每个数字有效行包括720个亮度数据和720个色度数据(两个色度各360个),这样就统一了数字分量编码标准,使三种不同制式便于转换和统一。所以有效行亮度信号与两个色差信号的取样点数之比也为4:2:2 (720:360:360)。
1n7W&y+Y:N6M:bN0  上述两点即为获取高质量的后期制作由CCIR 601建议所确定的数字分量编码标准:
l4kk"N4nM0
'\ mh1tv"r]1Bb:c07.同步的方式:
$D^_#H @:qt0TbqA0    ITU656接口为8bit数据位宽接口,为内同步方式,即同步字嵌入于ITU656码流当中;
D6{E5vbZ w0    ITU601接口可以为16bit数据位宽接口,为外同步方式,即同步信号用单独的信号线传输。
K4\VoZ gn,_V)R0
_9Fj;p:u-` |_;_)px0    从ITU656接口转换为ITU601接口的方式是通过将嵌入在ITU656码流内部的同步信号提取出来,中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台,Y1IHE_NORVY2|
    同时将表示亮度和色度的数据流分离开,排成16bit数据位宽的ITU601格式同时输出,从而完成格式的转换。中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台p y5q nE
 
I9l'V2v8el%Q/WX`08.656内部使用的校验码基本
xc^5bIk7\0    P3,P2,P1,P0是1位误码纠错和2位误码检错的功能中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台qU3uUlN:J
    海明校验码
|:|J-E ?d0    这是由Richard Hamming于1950年提出、目前还被广泛采用的一种很有效的校验方法,是只要增加少数几个校验位,就能检测出二位同时出错、亦能检测出一位出错并能自动恢复该出错位的正确值的有效手段,后者被称为自动纠错。它的实现原理,是在k个数据位之外加上r个校验位,从而形成一个k+r位的新的码字,使新的码字的码距比较均匀地拉大。把数据的每一个二进制位分配在几个不同的偶校验位的组合中,当某一位出错后,就会引起相关的几个校验位的值发生变化,这不但可以发现出错,还能指出是哪一位出错,为进一步自动纠错提供了依据。假设为k个数据位设置r个校验位,则校验位能表示2r个状态,可用其中的一个状态指出 "没有发生错误",用其余的2 r -1个状态指出有错误发生在某一位,包括k个数据位和r个校验位,因此校验位的位数应满足如下关系:
Z;{SRML%r02r ≥ k + r + 1 (2.7)
'[5[ D.ug|0如要能检出与自动校正一位错,并能同时发现两位错,此时校验位的位数r和数据位的位数k应满足下述关系:
Iq XdV)f02r-1 ≥ k + r (2.8)中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台$QG?d2C/o
   
A~G#nd8qVCW0Reference:
u7A[B&i4]mKY0.1 http://www.cnblogs.com/wantfei/archive/2006/12/07/62030.html中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台%E-O\A CQF7s
.2 http://www.dtvbbs.cn/forum/中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台)ED wp,K
.3 http://emic.blog.sohu.com/70924040.html中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台0M4I9h BL[3lo
.4 CCIR 601/656中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台/bo }1r2@N_
.5 SAA7118中国电子顶级开发网--电子设计讨论、博客、超人气的电子工程师资料分享平台5\3Ny?+J#cmyu