From: John W. <Joh...@Di...> - 2007-07-15 21:59:13
|
Hi Matt, >Ok, I _now_ am interested in getting hardware YV12 surfaces working. Cool >I've read the MMSP2 PDF manual and I think I understand everything in there >(so far) about using the FDC to convert YV12 to YUY2 except the source >address part. All I see is a base offset, X offset, and Y offset for the >Luminance, Cb, and Cr planes. Offset from what? hehe... I was hoping I >could provide a 32-bit absolute memory address but that doesn't seem the >case. Any ideas on how to provide the source address? I'll try and zip up and mail over what I have so far in the morning, it's not very neat (understatement) but it does give you an idea of how this should work, I am working from within a RAW environment (no Linux) but you should be able to transpose it to use the symbols exposed by the kernel mode FDC driver (FDC_Util, FDC_Run, FDC_IsBusy and FDC_Stop if I remember rightly with most usfull stuff passed into FDC_Util). The driver defines the various YUV formats with names such as FDC_CHROMA_420, FDC_CHROMA_422, FDC_CHROMA_444 etc. internally. Other then that I think it is just as the book says ;). John |