Questions tagged [yuv]

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

720 questions
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
  • 259
  • 3
  • 6
  • 17
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
  • 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,442
  • 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
  • 10,685
  • 10
  • 47
  • 76
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,781
  • 6
  • 21
  • 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
  • 531
  • 1
  • 6
  • 11
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
0
votes
2 answers

YUV420P to JPEG by ffmpeg

My task: Convert YUV Frame data to jpeg images by ffmpeg. What I have: Data of every plane and linesize for each one; I tried to create empty AVFrame and fill it's data and linesize with this information, but after encoding it with CODEC_ID_MJPEG…
mmmaaak
  • 783
  • 1
  • 13
  • 38
-1
votes
1 answer

VHDL RGB to YUV444 implementation mismatch

The design I'm trying to implement a RGB to YUV444 conversion algorithm in hardware based in the next approximation I've got working in a C based program: #define CLIP(X) ( (X) > 255 ? 255 : (X) < 0 ? 0 : X) #define RGB2Y(R, G, B) CLIP(( ( 66 * (R)…
joe
  • 175
  • 1
  • 12
-1
votes
1 answer

Making a ffmpeg screen capture on Mac OS X using YUV 4:2:0 Planar color model

I make screen recordings with ffmpeg, using avfoundation on Mac OS X, x11grab on Linux and gdigrab on Windows. The resulting files should be compatible with modern web browsers (
Bass
  • 4,011
  • 2
  • 26
  • 67
-1
votes
1 answer

Get center pixel from image with format YUV

I made image converting from YUV(NV21 Android) to RGB And i tried get color of pixel by x,y cordinates. For example i tried get pixel from center. But i get color from wrong place. Collect image YUV ByteBuffer yBuff =…
lirugo
  • 41
  • 4
-1
votes
1 answer

In Android Camera2 API. Can I use a image reader (YUV_420_888) for processing and another(JPEG) for capture still image?

I try but preview freeze when I press the capture button and no image created. Any suggestion ? How many imagereader can I use in one Camera2 project?
1 2 3
47
48