Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
|
Thread Tools | Search this Thread | Display Modes |
3rd February 2006, 20:41 | #15 | Link | |
Squeeze it!
Join Date: Oct 2003
Location: Germany
Posts: 472
|
Quote:
To show the image, you have to feed to your code a rgb one. (If using DirectX then you could pass the yuv image via the hardware on your graphicscard which could do the conversation, but lets stick on straight rgb handling). Do apply in your delphi avisynth_c example a condition where its asked about the incoming Colorspace from the resulted clip. There are declared functions in the avisynth_c interface which can do that like 'IsRGB32()'. If its not the case, then do invoke via a "ConverttoRGB32()" , take the clip from the result and use avsiynth's BitBlt() to perform an image blocktransfer to your determined target-imagepointer. Now the frameserved Imagedata is rgb which is easy to handle for your application's video preview routines by just requesting the bitmaps from the mentioned target-image-memorypointer. I do use RGB24 as output with no problems but as I heared its better to serve RGB32 as its DWORD aligned (if I understood right) as most of the GDI API routines do prefer DWORD aligned RGB data. Last edited by Inc; 3rd February 2006 at 20:48. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|