Is it possible to draw YCbCr in Java?

I have a project at the moment, in Java, that uses a file type that is essentially in the YCbCr color space. Inside this, there are a lot of crunches happening behind the scenes (which I had to encode) for converting to RGB from YCbCr values. This is done per pixel, per frame, at a speed of 25 frames per second ...

The project must be completely written in software and must be platform independent.

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

Thanks in advance.

+4
source share
2 answers

Perhaps you can do this with the ColorSpace class. I would be surprised if you needed to convert each YCbCr value separately. I am sure that the java.awt.image package will provide classes to handle this. You can find something in Chapter 5 of Java Advanced Imaging .

+3
source

Based on McDowell's answer, this one seems to be of interest, it explains how to do color space conversion.

+3
source

All Articles