Questions tagged [yuv]

YUV is a color space typically used as part of a color image pipeline.

784 questions
0
votes
1 answer

How to judge whether a file is a nv12 format file?

I have a file, I want to know whether it is NV12 format, how to judge a file is a nv12 format file? Is there any tool or test code?
Lyric
  • 15
  • 1
  • 5
0
votes
1 answer

YUY2 process image fault

I'm trying to process YUY2 image (Y, Cb, Cr). I need to filter the image and eliminate all the colors but the red coloring. I used Image Processing Lab to find the values of the elements Y, Cb, Cr. I found the values (you can see the image with the…
user2004403
  • 193
  • 2
  • 13
0
votes
1 answer

error in the output texture yuv422 in ios

here's a screenshot screen with the ipad http://joxi.ru/7J9NUdg5CbCJWOM8-i0 sein http://joxi.ru/SspPUdg5CbBrLdFutis error: 1) picture (http://joxi.ru/CYRRUdg5CbDiKIByZLo) 2) size, not full screen My shader: NSString *const yuvFragmentShaderString =…
user1881371
  • 129
  • 11
0
votes
1 answer

Capturing screen in YUV format with BitBlt

I am currently using BitBlt function to capture the screen and then I encode it. Since my encoder uses YUV420 format for the input I need to convert the data from RGB to YUV before encoding. I was wondering if there is any way to capture the screen…
Dundar
  • 1,311
  • 1
  • 14
  • 25
0
votes
1 answer

how to display yuv in android

In a camera preview function, I've been using yuv2rgb, and using the resulting bitmap. This is slow, so I want to display the picture as it is. I use example class // public abstract class ViewBase extends SurfaceView implements …
0
votes
1 answer

Prove that the equivalent number of bits per pixel for the YUV 4:2:0 scheme is 12

Prove that the equivalent number of bits per pixel for the YUV 4:2:0 scheme is 12
Osama Al-far
  • 427
  • 3
  • 10
  • 24
0
votes
1 answer

how to write yuv422 image data to bmp file?

I have image data in yuv422 format in EEPROM using at91sam9260 using image sensor interface (ISI). i want to write it to SD-card in .bmp format? Or i have to first convert yuv422 image to RGB and then i have to process data to write BMP file? I…
Haris_tech
  • 83
  • 1
  • 2
  • 13
0
votes
1 answer

FFMpeg(Android) av_read_frame or avcodec_decode_video2 returning same colour

I've been experimenting FFMpeg for the past 2 weeks and I'm having a bit of trouble... First I've been working with a Galaxy S3, which worked super fine, gave me the best pictures ever but I recently switched to a Galaxy NEXUS which gave me a bunch…
Cehm
  • 1,502
  • 1
  • 12
  • 14
0
votes
0 answers

Using FBO to render YUV data

I was able to render YUV image on the screen using shaders. To improve performance I want to use FBO. But I am not able to do it. My initialization code is as below void opengl_init(int w, int h) { glGenFramebuffers(1, &framebuffer); …
Febin George
  • 47
  • 1
  • 7
0
votes
1 answer

Sdd watermark to YUV video data (SDL_Overlay) programmatically

My application plays video via SDL + ffmpeg library(not the exe tool). and I want to add the text onto the video The ffmpeg's VHOOK source code shows it converts the data to RGB32. Can't it be done in YUV directly? Here my current code, can you…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
0
votes
2 answers

Blackmagic frame : convert from yuv to RGB to use in openCV

I have a problem to convert an image captured from a camera in YUV format to RGB format. The function which is used to do it is the following : int uwidth = 1920; int uheight= 1080; int i = 0,j = 0, r = 0, g = 0, b = 0; typedef unsigned char…
nico_db
  • 1
  • 1
  • 3
0
votes
2 answers

ffmpeg YUV to RGB distored color and position

Sorry that I still cannot post images for my question since low reputation. I use the ffmpeg function to convert the decoded frame, from YUV to RGB24, but the color and resulted image is distorted seriously. Following is my code snip, the frame…
ThomasChang
  • 11
  • 1
  • 3
0
votes
1 answer

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…
ReachConnection
  • 1,831
  • 6
  • 22
  • 32
0
votes
1 answer

YUV to RGB in iOS5 with OpenGLES

Hy everyone, I try to convert yuv data (yuv420p) in rgb data in ios 5 with OpenGLES. I already had a look at the GLCameraRipple Demo from Apple, but that did not worked for me. Have anybody tried this before and can help me? Cheers
MrCoinSiX
  • 571
  • 1
  • 6
  • 13
0
votes
1 answer

YUV to RGB by Shader on iPhone

Currently I am developing a video player using FFMPEG. I'm trying to convert YUV420P to RGB by Shader to reduce performance hit and I could see it works fine. The problem is caused when I try to change image size. Case 1. YUV to RGB is perfect. but…
user1333656
  • 1
  • 1
  • 2