Thanks Charles.
As you mentioned, YUV consists Y for Luma, U and V for the color difference of from Luma to Blue and Red(chrominance), basically describes colors based on brightness. I could realize with Wikipedia. http://en.wikipedia.org/wiki/YUV It also seems "1 value for 2 pixels" makes sense for weird saved jpeg file.
For converting YUV to RGB, the formula is necessary. http://www.fourcc.org/fccyvrgb.php
So, I would like to know whether YUV data in buffer are automatically recognized and converted to RGB data with this formula for saving a jpeg file when "save" command to [pix_buffer] works. Otherwise, do we have to use [pix_rgba] before putting data in [pix_buffer]?
Best,
Sei
2012/7/10 Charles Goyard cg@fsck.fr:
Seiichiro MATSUMURA wrote:
Somehow colors are changed, the width become half and a picture itself is doubled.
iirc, in YUV you have a luminance layer (Y) and then the colors encoded in a strange way, like 1 value for 2 pixels for the width in the U and V layers. Well, something like that. Maybe it's a bug in the colorspace conversion because you don't make it explicit ?
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list