Solved

YUV graphics file format

Posted on 1998-12-23
6
158 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
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…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

920 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

15 Experts available now in Live!

Get 1:1 Help Now