yuv

YUV Textures and Shaders

I've always used RGB textures. Now comes up the need of use of YUV textures (a set of three texture, specifying 1 luminance and 2 chrominance channels). Of course the YUV texture could be converted on CPU, getting the RGB texture usable as usual... but I need to get RGB pixel directly on GPU, to avoid unnecessary processor load... The pr...

How to generate a VBR video from stream of YUV images?

My hardware (video capture card) gives me the images in YV12 (YUV 420) format and I am trying to generate a video from it. I am using C++ under windows and I would like to generate a mpeg-4 VBR video from that stream but I dont know where I should start... (I need it to be VBR because it is a security camera and there will be a lot of re...

How to deal with RGB to YUV conversion

The formula says: Y = 0.299 * R + 0.587 * G + 0.114 * B; U = -0.14713 * R - 0.28886 * G + 0.436 * B; V = 0.615 * R - 0.51499 * G - 0.10001 * B; What if, for example, the U variable becomes negative? U = -0.14713 * R - 0.28886 * G + 0.436 * B; Assume maximum values for R and G (ones) and B = 0 So, I am interested in implementing t...

How to get YUV video data stream from web cameras in C# NOT USING DIRECT SHOW?

What I need is raw camera data Stream of images\Frames in YUV format. I need to get tham using C#. And NOT USING DIRECT SHOW (if possible at all). I need a live stream not something like 1 frame per 5 seconds. If It will be mono compateble it would be grate but win only will be ok. I use .Net 3.5 but if needed I can swich to 4. I heard...

Is there any C# library for working with pipes with YUV data?

Is there any C# library for working with pipes with YUV data? or at least with yuv files... So we have programm like FFmpeg or VLC or x264.exe it can give us live yuv pipe or file... so is there any good library for playing with yuv files\pipes - like a yuv file\pipe to rgb file pipe... ...

How to rotate yuv420 data?

Hi Everyone, I need to know how to rotate an image, which is in yuv420p format by 90 degrees. The option of converting this to rgb, rotating and again reconverting to yuv is not feasible. Even an algorithm would help. Regards, Anirudh. ...

image format best for display

I am working on an image processing application. I have to display an image sequence. I would like to avoid any extra overhead for {internal} format conversions. I believe RGB should be the optimal format for display. But SDL accepts various YUV formats and there is no native{to SDL} support for RGB. Whereas Qt does not accept YUV form...

How to extract frames from yuv 420 video clip and store them as different images, using matlab?

How do I extract the frames from a yuv 420 video? Let's say i want to store them as still images. How? ...

how to convert avi file to yuv 420 (software/matlab/source code/c/c++ anything)

Guys I want to convert an avi file into yuv 420 video clip. Is there any method to do that? thx! ...

Where can I obtain a raw YUV File?

I need a raw YUV file for research purposes. Neither the size nor the content is critical. Any ideas on where such files exist? ...

How to extract Y,U, and V components from a given yuv file using Matlab? Each component is used for further pixels level manipulation.

Hey guys. I'm currently playing with YUV file. Do you have any suggestion on how to extract y,u,v components from a yuv video? I found a piece of program which was shown below. But I don't know which part is the valid components that I want. Thanks. % function mov = loadFileYuv(fileName, width, height, idxFrame) function [mov,imgRgb] =...

How do I obtain the height and width of a given YUV video clip under Matlab? Is there any reader() function or get() function? Anything else?

How to get the width and height of a given yuv file? The dimensions are needed for subsequent movie/matrix processing. Thank you. ...

Converting to YUV / YCbCr colour space - many versions

There are many different colour conversions to YUV but they all have different results! Which one is officially correct? This is the output from my test program. I have input R=128 G=50 B=50 (max value is 255). The table shows the converted YUV values, and the re-converted RGB values (which don't match the original). ./ColourConversion...

How to decode this YUV colorspace string and save it as an image

So I am using one third party library which is not very well documented. It has a method which takes a picture with camera and this is what it returns: 'E{\x7fM{\x7f;\x89\x89:\x89\x89=\x81\x87<\x81\x87O\x90\x7fJ\x90\x7fB\x87\x80I\x87\x80<{\x81={\x81A\x81\x82A\x81\x82E\x81\x81:\x81\x818\x80\x81?\x80\x81?\x8c\x85C\x8c\x85Dw\x84Kw\x84K\x81...

YUV decode funtcion error or hardware problem ?

I get the YUV to RGB function 1&2 (from stack overflow) but the result is wrong like this http://163.18.62.32/device.jpg I dont understand what's wrong in the step my device is Moto Milestone with 2.1 update 1 thx function 1 public int[] decodeYUV420SP( byte[] yuv420sp, int width, int height) { final int frameSiz...

Need algorithm or help on Quantization of a YUV image bit stream.

package Phase2; import magick.ImageInfo; import magick.MagickImage; import magick.MagickException; import magick.MagickApiException; import magick.ColorspaceType; import java.awt.Dimension; import magick.PixelPacket; public class TASK1 { public static MagickImage scaleColorTable(MagickImage image, int choice) { try ...