you may have problems with converting RGB to YCbCrif you are unlucky to use jpeg_utils.c from one of these beautiful stm examples, you should be aware that there is a bug in JPEG_InitPreProcColorTables function.They add 1 for a nicer rounding: ((int3...