Solved

YUV graphics file format

Posted on 1998-12-23
6
161 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 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
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 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