?
Solved

YUV graphics file format

Posted on 1998-12-23
6
Medium Priority
?
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 

Author Comment

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

Accepted Solution

by:
ZifNab earned 300 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses
Course of the Month13 days, 4 hours left to enroll

777 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