diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 00:47:55 +0000 |
commit | 26a029d407be480d791972afb5975cf62c9360a6 (patch) | |
tree | f435a8308119effd964b339f76abb83a57c29483 /gfx/skia/skia/src/pdf/SkJpegInfo.h | |
parent | Initial commit. (diff) | |
download | firefox-26a029d407be480d791972afb5975cf62c9360a6.tar.xz firefox-26a029d407be480d791972afb5975cf62c9360a6.zip |
Adding upstream version 124.0.1.upstream/124.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'gfx/skia/skia/src/pdf/SkJpegInfo.h')
-rw-r--r-- | gfx/skia/skia/src/pdf/SkJpegInfo.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gfx/skia/skia/src/pdf/SkJpegInfo.h b/gfx/skia/skia/src/pdf/SkJpegInfo.h new file mode 100644 index 0000000000..82a8a736fd --- /dev/null +++ b/gfx/skia/skia/src/pdf/SkJpegInfo.h @@ -0,0 +1,25 @@ +/* + * Copyright 2015 Google Inc. + * + * Use of this source code is governed by a BSD-style license that can be + * found in the LICENSE file. + */ +#ifndef SkJpegInfo_DEFINED +#define SkJpegInfo_DEFINED + +#include "include/codec/SkEncodedOrigin.h" +#include "include/core/SkSize.h" +#include "include/private/SkEncodedInfo.h" + +/** Returns true if the data seems to be a valid JPEG image with a known colorType. + + @param [out] size Image size in pixels + @param [out] colorType Encoded color type (kGray_Color, kYUV_Color, several others). + @param [out] orientation EXIF Orientation of the image. +*/ +bool SkGetJpegInfo(const void* data, size_t len, + SkISize* size, + SkEncodedInfo::Color* colorType, + SkEncodedOrigin* orientation); + +#endif // SkJpegInfo_DEFINED |