yuv

YUV Conversion via a fragment shader...

I have implemented a YUV to RGB conversion via a fragment shader written in Nvidia's shader language. (Y, U and V are stored in separate textures that are combined via multi texturing in my fragment shader). It works great under OpenGL, but under Direct3D I just can't get the output image to look right. I'm starting to suspect that Direc...

Automatic YUV -> RGB in DirectShow for custom decoder

Hello everybody, after hours of searching on the net I'm quite desperate to find solution for this. I've up & running OGG Theora decoder in DirectShow which ouputs YV12 and YUY2 color models. Now, I want to make a RGB pixel manipulation filter for this output and to process it into video renderer. According to http://msdn.microsoft.com/...

YUV/PCM Visualizer to measure Lip Sync

I have a two dump files of raw video and raw audio from an encoder and I want to be able to measure the "Lip-sync". Imagine a video of a hammer striking an anvil. I want to go frame by frame and see that when the hammer finally hits the anvil, there is a spike in amplitude on the audio track. Because of the speed that everything happens...

Do all webcams use YUY2?

I've noticed that raw data from my webcam comes in the from of YUY2. Actually, this "raw data" is the input for an AVICAP callback, and I suppose that this is the actual data from the webcam. Anyway, do all the webcams use YUY2 format, or should I expect different formats as well? ...

How to display a raw YUV frame in a Cocoa OpenGL program

Hello everyone, I have been assigned wit the task to write a program that takes a sample raw YUV file and display it in a Cocoa OpenGL program. I am an intern at my job and I have little or no clue how to start. I have been reading wikipedia & articles on YUV, but I couldn't find any good source code on how to open a raw YUV file, ext...

Finding YUV file format in Cocoa

I got a raw YUV file format all I know at this point is that the clip has a resolution of 176x144. the Y pla is 176x144=25344 bytes, and the UV plan is half of that. Now, I did some readings about YUV, and there are different formats corresponding to different ways how the Y & US planes are stored. Now, how can perform some sort of ch...

Need help with YUV display in OpenGl

I am having trouble displaying a raw YUV file that it is in NV12 format. I can display a selected frame, however, it is still mainly in black and white with certain shades of pink and green. Here is how my output looks like Anyways, here is how my program works. (This is done in cocoa/objective-c, but I need your expert advice on pro...

Where can I download a sample NV12 YUV frame.

I am writing a program to test NV12 YUV frames, I just want to download some sample clips? do anyone know a good site where I can download some frames off? ...

Writing YUV data into a CGContext

How can I write a YUV frame data into a CGContext? ...

OpenGL Colorspace Conversion

Does anyone know how to create a texture with a YUV colorspace so that we can get hardware based YUV to RGB colorspace conversion without having to use a fragment shader? I'm using an NVidia 9400 and I don't see an obvious GL extension that seems to do the trick. I've found examples how to use a fragment shader, but the project I'm wor...

How to perform RGB->YUV conversion with ActionScript?

How to perform RGB->YUV conversion with ActionScript? Libs? Tuts? Articles? ...

How to perform RGB->YUV conversion in C/C++?

How to perform RGB->YUV conversion in C/C++? I have some Bitmap.. RGB I need to convert it to YUV Libs? Tuts? Articles? ...

Convert yuv sequence to bmp images

Hello; I have yuv sequences and I want to convert it to bmp images.And I want to save it to folder on my computer. I used yuv2bmp m file in http://www.mathworks.com/matlabcentral/fileexchange/25563-convert-420-yuv-to-bmp . Altough Yuv file is 44MB, unfortunately Matlab gave memory error. How can I overcome of this problem? Could you ...

Fast rgb565 to YUV (or even rgb565 to Y)

I'm working on a thing where I want to have the output option to go to a video overlay. Some support rgb565, If so sweet, just copy the data across. If not I have to copy data across with a conversion and it's a frame buffer at a time. I'm going to try a few things, but I thought this might be one of those things that optimisers w...

Overlay Surface

Dear All What is overlay surface? I have to work currently on overlay surface and for which i should know the concept of overlay surface? As i have to wrok on converting YUV444->RGB888 Thanks in advance ...

[DirectDraw] Problem with bliting YUV surface onto the primary surface in Window Mobile

I'm trying to blit YUV hardware surface to the primary surface in WinMobile. Everything works: creation of the surfaces, I test that the passed FourCC code is actually used by querying the surface description, I set puffer pointer (correctly, according to lPitch and width/height of the surface). I verified that it all works properly on P...

Conversion from YUV444 to RGB888

I am new in this field and i desperately need some guidance from u all. I have to support yuv444 to rgb 888 in display driver module. There is one test which i have done for yv12 rgb565 in wince 6.0 r3 which is mentioned below. //------------------------------------------------------------------------------ // // Function: PP_CS...

Formulae for U and V buffer offset

Hi all ! What should be the buffer offset value for U & V in YUV444 format type? Like for an example if i am using YV12 format the value is as follows: ppData.inputIDMAChannel.UBufOffset = iInputHeight * iInputWidth + (iInputHeight * iInputWidth)/4; ppData.inputIDMAChannel.VBufOffset = iInputHeight * iInputWidth; iInput...

GPU YUV to RGB. Worth the effort?

Hello, I have to convert several full PAL videos (720x576@25) from YUV 4:2:2 to RGB, in real time, and probably a custom resize for each. I have thought of using the GPU, as I have seen some example that does just this (except that it's 4:4:4 so the bpp is the same in source and destiny)-- http://www.fourcc.org/source/YUV420P-OpenGL-GLS...

Greyscale Image from YUV420p data

From what I have read on the internet the Y value is the luminance value and can be used to create a grey scale image. The following link: http://www.bobpowell.net/grayscale.htm, has some C# code on working out the luminance of a bitmap image : { Bitmap bm = new Bitmap(source.Width,source.Height); for(int y=0;y<bm.Height;y++) ...