Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/ImageProcessing.h @ 4443:fd958175c5b9
ImageProcessing::ConvertJpegYCbCrToRgb()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 Jan 2021 13:07:15 +0100 |
parents | d9473bd5ed43 |
children | 5774fe497ff2 |
comparison
equal
deleted
inserted
replaced
4442:f77ee6e6cf47 | 4443:fd958175c5b9 |
---|---|
195 // Resize an image, but keeps its original aspect ratio. Zeros are | 195 // Resize an image, but keeps its original aspect ratio. Zeros are |
196 // added around the image to reach the specified size. | 196 // added around the image to reach the specified size. |
197 static ImageAccessor* FitSizeKeepAspectRatio(const ImageAccessor& source, | 197 static ImageAccessor* FitSizeKeepAspectRatio(const ImageAccessor& source, |
198 unsigned int width, | 198 unsigned int width, |
199 unsigned int height); | 199 unsigned int height); |
200 | |
201 // https://en.wikipedia.org/wiki/YCbCr#JPEG_conversion | |
202 static void ConvertJpegYCbCrToRgb(ImageAccessor& image /* inplace */); | |
200 }; | 203 }; |
201 } | 204 } |