views:

420

answers:

2

Hi everyone,

I've a project at the moment, in Java, which uses a filetype which is inherently in the YCbCr colorspace. Within this, there is a lot of number crunching happening behind the scenes (which I've had to code) to convert to RGB from the YCbCr values. This is done per-pixel, per-frame, at 25 frames per second...

The project must be entirely written in software, and must be platform independant.

If I could skip this step, and still create an image from an array, but in a YCbCr format, I could save a lot of work...

Thanks in advance.

+3  A: 

You can probably do this with the ColorSpace class. I would be surprised if you needed to convert each YCbCr value individually. I'm sure the java.awt.image package will provide classes for handling this. You may find something in Chapter 5 of Java Advanced Imaging.

McDowell
thanks for the info, I'll look into it :)
Dave
+3  A: 

Building on McDowell's answer, this seems to be of interest, it explains how to do a colorspace conversion.

unwind