Solved

YUV graphics file format

Posted on 1998-12-23
6
157 Views
Last Modified: 2010-04-04
This may be a odd question, but how do I convert a yuv file to something usefull like a jpeg of tiff? their are two variants of yuv, and diffrent samplings, 4:2:2 interlaced. the images are 720 wide by 576 heigh with a matt.  Where do I start as I'm no expert?
0
Comment
Question by:iqofone
  • 3
  • 2
6 Comments
 

Author Comment

by:iqofone
ID: 1352724
Adjusted points to 150
0
 
LVL 8

Accepted Solution

by:
ZifNab earned 150 total points
ID: 1352725
Hi iqofone,

 Here some advice. First you need to know how both file types look like.
 Therefore you go to : http://www.wotsit.org/

 Then you search if somebody already looked at it.
 Therefore you go to (for yuv):  http://www.webartz.com/fourcc/indexyuv.htm
 --> you get the algorithmen for transfering YUV to RGB / RGB to YUV

RGB to YUV Conversion

Y  =  (0.257 * R) + (0.504 * G) + (0.098 * B) + 16
Cr =  (0.439 * R) - (0.368 * G) - (0.071 * B) + 128
Cb = -(0.148 * R) - (0.291 * G) + (0.439 * B) + 128

YUV to RGB Conversion

B = 1.164(Y - 16)                   + 2.018(Cb - 128)
G = 1.164(Y - 16) - 0.813(Cr - 128) - 0.391(Cb - 128)
R = 1.164(Y - 16) + 1.596(Cr - 128)

Then you make it possible to translate it from one type to the other, in Delphi.

For this you can search for freeware components with source which to such things.

Look at http://www.torry.ru for example.

And then, after hard work... you got what you want and can refine it.

Hope this helps you a little bit further.

Regards, Zif.

0
 

Expert Comment

by:ptiemann2
ID: 1352726
I need to know the exact file format of your YUV file.
I have written converters for about 15 image file formats with various sub-formats each, so I am very sure I can help you.
Email me a sample YUV file to peter@preview.org or let me know which application created it.
Also, when you send me a file, tell me the characteristics = width, height, color depth, maybe: alpha channel/ transparency.

0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 8

Expert Comment

by:ZifNab
ID: 1352727
Hi ptiemann2, the links above bring you to the YUV formats. (I believe there are several). Zif.
0
 

Expert Comment

by:ptiemann2
ID: 1352728
(to ZifNab)
I thought he had a non-standard format. It could be some special hardware that creates a proprietary file.
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1352729
ptiemann2, yes it could be... but he never replied... hope he does now.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now