title: How to work with BufferedImage and YCbCr colorspace?
body: <p>I need to translate colors in bitmap loaded to BufferedImage from RGB to YCbCr (luminance and 2 channels chrominance) and back after process.</p>
  
  <p>I made it with functions used like rgb2ycbcr() in main method for each pixel, but it isn't so smart solution. I should use ColorSpace and ColorModel classes to get BufferedImage with correct color space. It would be more flexible method, but I don't know how to do that.</p>
  
  <p>I'm lost and I need some tips. Can somebody help me?</p>