YUV Formats.docx
- 文档编号:26653192
- 上传时间:2023-06-21
- 格式:DOCX
- 页数:20
- 大小:41.96KB
YUV Formats.docx
《YUV Formats.docx》由会员分享,可在线阅读,更多相关《YUV Formats.docx(20页珍藏版)》请在冰豆网上搜索。
YUVFormats
YUVFormats
YUVformatsfallintotwodistinctgroups,thepackedformatswhereY,U(Cb)andV(Cr)samplesarepackedtogetherintomacropixelswhicharestoredinasinglearray,andtheplanarformatswhereeachcomponentisstoredasaseparatearray,thefinalimagebeingafusingofthethreeseparateplanes.
Inthediagramsbelow,thenumericalsuffixattachedtoeachY,UorVsampleindicatesthesamplingpositionacrosstheimageline,so,forexample,V0indicatestheleftmostVsampleandYnindicatestheYsampleatthe(n+1)thpixelfromtheleft.
Subsamplingintervalsinthehorizontalandverticaldirectionsmaymeritsomeexplanation.Thehorizontalsubsamplingintervaldescribeshowfrequentlyacrossalineasampleofthatcomponentistakenwhiletheverticalintervaldescribesonwhichlinessamplesaretaken.Forexample,UYVYformathasahorizontalsubsamplingperiodof2forboththeUandVcomponentsindicatingthatUandVsamplesaretakenforeverysecondpixelacrossaline.Theirverticalsubsamplingperiodis1indicatingthatUandVsamplesaretakenoneachlineoftheimage.
ForYVU9,though,theverticalsubsamplingintervalis4.ThisindicatesthatUandVsamplesareonlytakenoneveryfourthlineoftheoriginalimage.Sincethehorizontalsamplingperiodisalso4,asingleUandasingleVsamplearetakenforeachsquareblockof16imagepixels.
Also,ifyouareinterestedinYCrCbtoRGBconversion,youmayfindthispagehelpful.
PackedYUVFormats
Label
FOURCCinHex
Bitsperpixel
Description
AYUV
0x56555941
32
CombinedYUVandalpha
CLJR
0x524A4C43
8
CirrusLogicformatwith4pixelspackedintoau_int32.AformofYUV4:
1:
1wihtlessthan8bitsperY,UandVsample.
cyuv
0x76757963
16
EssentiallyacopyofUYVYexceptthatthesenseoftheheightisreversed-theimageisupsidedownwithrespecttotheUYVYversion.
GREY
0x59455247
8
ApparentlyaduplicateofY800(andalso,presumably,"Y8 ")
IRAW
0x57615349
?
InteluncompressedYUV.Ihavenoinformationonthisformat-canyouhelp?
IUYV
0x56595549
16
InterlacedversionofUYVY(lineorder0,2,4,....,1,3,5....)registeredbySilviuBrinzeiofLeadTechnologies.
IY41
0x31345949
12
InterlacedversionofY41P(lineorder0,2,4,....,1,3,5....)registeredbySilviuBrinzeiofLeadTechnologies.
IYU1
0x31555949
12
12bitformatusedinmode2oftheIEEE1394DigitalCamera1.04spec.ThisisequivalenttoY411
IYU2
0x32555949
24
24bitformatusedinmode0oftheIEEE1394DigitalCamera1.04spec
UYNV
0x564E5955
16
AdirectcopyofUYVYregisteredbyNVidiatoworkaroundproblemsinsomeoldcodecswhichdidnotlikehardwarewhichofferedmorethan2UYVYsurfaces.
UYVP
0x50565955
24?
YCbCr4:
2:
2extendedprecision10-bitspercomponentinU0Y0V0Y1order.RegisteredbyRichEhlersofEvans&Sutherland.(Awaitingconfirmationofcomponentpackingstructure)
UYVY
0x59565955
16
YUV4:
2:
2(Ysampleateverypixel,UandVsampledateverysecondpixelhorizontallyoneachline).Amacropixelcontains2pixelsin1u_int32.
V210
0x30313256
32
10-bit4:
2:
2YCrCbequivalenttotheQuicktimeformatofthesamename.
V422
0x32323456
16
IamtoldthatthisisanupsidedownversionofUYVY.
V655
0x35353656
16?
16bitYUV4:
2:
2formatregisteredbyVitecMultimedia.Ihavenoinformationonthecomponentorderingorpacking.
VYUY
0x59555956
?
ATIPackedYUVData(formatunknownbutyoucangetholdofacodecsupportingithere)
Y422
0x32323459
16
DirectcopyofUYVYasusedbyADSTechnologiesPyroWebCamfirewirecamera.
YUY2
0x32595559
16
YUV4:
2:
2asforUYVYbutwithdifferentcomponentorderingwithintheu_int32macropixel.
YUYV
0x56595559
16
DuplicateofYUY2
YUNV
0x564E5559
16
AdirectcopyofYUY2registeredbyNVidiatoworkaroundproblemsinsomeoldcodecswhichdidnotlikehardwarewhichofferedmorethan2YUY2surfaces.
YVYU
0x55595659
16
YUV4:
2:
2asforUYVYbutwithdifferentcomponentorderingwithintheu_int32macropixel.
Y41P
0x50313459
12
YUV4:
1:
1(Ysampleateverypixel,UandVsampledateveryfourthpixelhorizontallyoneachline).Amacropixelcontains8pixelsin3u_int32s.
Y411
0x31313459
12
YUV4:
1:
1withapacked,6byte/4pixelmacroblockstructure.
Y211
0x31313259
8
PackedYUVformatwithYsampledateverysecondpixelacrosseachlineandUandVsampledateveryfourthpixel.
Y41T
0x54313459
12
FormatasforY41PbutthelsbofeachYcomponentisusedtosignalpixeltransparency.
Y42T
0x54323459
16
FormatasforUYVYbutthelsbofeachYcomponentisusedtosignalpixeltransparency.
YUVP
0x50565559
24?
YCbCr4:
2:
2extendedprecision10-bitspercomponentinY0U0Y1V0order.RegisteredbyRichEhlersofEvans&Sutherland.
Y800
0x30303859
8
Simple,singleYplaneformonochromeimages.
Y8
0x20203859
8
DuplicateofY800asfarasIcansee.
AYUV
Thisisa4:
4:
4YUVformatwith8bitsamplesforeachcomponentalongwithan8bitalphablendvalueperpixel.ComponentorderingisAYUV(asthenamesuggests).
UYVY(andY422andUYNV)
UYVYisprobablythemostpopularofthevariousYUV4:
2:
2formats.ItisoutputastheformatofchoicebytheRadiusCinepakcodecandisoftenthesecondchoiceofsoftwareMPEGcodecsafterYV12.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
2
1
USamplePeriod
2
1
Effectivebitsperpixel:
16
PositivebiHeightimpliestop-downimge(toplinefirst)
IUYV
IUYVisbasicallythesameasUYVYwiththeexceptionthatthedataisinterlaced.Linesareordered0,2,4,....,1,3,5....insteadof0,1,2,3,4,5,....
cyuv
ThisFOURCC,allegedlyregisteredbyCreativeLabs,isessentiallyaduplicateofUYVY.Theonlydifferenceisthattheimageisflippedvertically,thefirstu_int16inthebufferrepresentingthebottomlineoftheviewedimage.NotethattheFOURCCiscomprisedoflowercasecharacters(somuchfortheuppercaseconvention!
)
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
2
1
USamplePeriod
2
1
Effectivebitsperpixel:
16
PositivebiHeightimpliesbottom-upimage(bottonlinefirst)
YUY2(andYUNVandV422andYUYV)
YUY2isanotherinthefamilyofYUV4:
2:
2formatsandappearstobeusedbyallthesamecodecsasUYVY.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
2
1
USamplePeriod
2
1
Effectivebitsperpixel:
16
PositivebiHeightimpliestop-downimage(toplinefirst)
ThereisahelppageherewhichcontainsinformationonplayingAVIswhichincludevideostoredinYUY2format.
YVYU
DespitebeingasimplebyteorderingchangefromYUY2orUYVY,YVYUseemstobeseensomewhatlessoftenthantheothertwoformatsdefinedabove.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
2
1
USamplePeriod
2
1
Effectivebitsperpixel:
16
PositivebiHeightimpliestop-downimage(toplinefirst)
Y41P
ThisYUV4:
1:
1formatisregisteredasaPCIstandardformat.MediamaticsMPEG1engineistheonlycodec(otherthanaBrooktreeinternalone)thatIknowofthatcangenerateit.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
4
1
USamplePeriod
4
1
Effectivebitsperpixel:
12
PositivebiHeightimpliestop-downimage(toplinefirst)
Y411
IwasoriginallytoldthatthiswasaduplicateofY41Phoweveritseemsthatthisisnotthecaseafterall.Y411isapackedYUV4:
1:
1formatwitha6pixelmacroblockstructurecontaining4pixels.Componentpackingorderis:
U2Y0Y1V2Y2Y3
Ihavenotbeenabletofind100%confirmationofthepositionfortheUandVsamples.IsuspectthatthechromasamplesareprobablybothtakenatthepositionofY2butthisisaguessjustnow.
IhaverecentlybeeninformedthatthisformatisidenticaltoIYU1.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
4
1
USamplePeriod
4
1
Effectivebitsperpixel:
12
PositivebiHeightimpliestop-downimage(toplinefirst)
IY41
IY41isbasicallythesameasY41Pwiththeexceptionthatthedataisinterlaced.Linesareordered0,2,4,....,1,3,5....insteadof0,1,2,3,4,5,....
Y211
IhaveyettofindanythingthatwilloutputY211!
TheformatlooksverymuchlikethemissingYUV4:
2:
2orderingbutYsamplesareonlytakenoneverysecondpixel.Thinkofitasahalfwidth4:
2:
2imageanddoublethewidthondisplay.
Horizontal
Vertical
YSamplePeriod
2
1
VSamplePeriod
4
1
USamplePeriod
4
1
Effectivebitsperpixel:
8
PositivebiHeightimpliestop-downimage(toplinefirst)
Y41T
ThisformatisidenticaltoY41PexceptforthefactthattheleastsignificantbitofeachYcomponentformsachromakeychannel.Ifthisbitisset,theYUVimagepixelisdisplayed,ifcleared,thepixelistransparent(andtheunderlyinggraphicspixelisshown).
PositivebiHeightimpliestop-downimage(toplinefirst)
Y42T
ThisformatisidenticaltoUYVYexceptforthefactthattheleastsignificantbitofeachYcomponentformsachromakeychannel.Ifthisbitisset,theYUVimagepixelisdisplayed,ifcleared,thepixelistransparent(andtheunderlyinggraphicspixelisshown).
PositivebiHeightimpliestop-downimage(toplinefirst)
CLJR
CirrusLogic'sformatpacks4pixelsamplesintoasingleu_int32bysacrificingprecisiononeachsample.Ysamplesaretruncatedto5bitseach,UandVhave6bitspersample.
Horizontal
Vertical
YSamplePeriod
1
1
VSamplePeriod
4
1
USamplePeriod
4
1
Effectivebitsperpixel:
8
PositivebiHeightimpliestop-downimage(toplinefirst)
IYU1
TheIYU1formatisa12bitformatusedinmode2oftheIEEE1394DigitalCamera1.04spec("1394-basedDigital
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- YUV Formats
![提示](https://static.bdocx.com/images/bang_tan.gif)