Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: ui/gfx/codec/jpeg_codec.h

Issue 2924733002: Revert of Delete FORMAT_RGB and legacy libjpeg support from gfx::JpegCodec (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ui/gfx/codec/jpeg_codec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/codec/jpeg_codec.h
diff --git a/ui/gfx/codec/jpeg_codec.h b/ui/gfx/codec/jpeg_codec.h
index fbc07903ebc8a5cae6f5b6b36dbacc119c91632f..5d10be59cb1e3f21dcb79e3c2677630decc2d469 100644
--- a/ui/gfx/codec/jpeg_codec.h
+++ b/ui/gfx/codec/jpeg_codec.h
@@ -23,6 +23,10 @@
class CODEC_EXPORT JPEGCodec {
public:
enum ColorFormat {
+ // 3 bytes per pixel (packed), in RGB order regardless of endianness.
+ // This is the native JPEG format.
+ FORMAT_RGB,
+
// 4 bytes per pixel, in RGBA order in mem regardless of endianness.
FORMAT_RGBA,
@@ -34,6 +38,15 @@
// order in kARGB_8888_Config skia bitmap.
FORMAT_SkBitmap
};
+
+ enum LibraryVariant {
+ SYSTEM_LIBJPEG = 0,
+ LIBJPEG_TURBO,
+ IJG_LIBJPEG,
+ };
+
+ // This method helps identify at run time which library chromium is using.
+ static LibraryVariant JpegLibraryVariant();
// Encodes the given raw 'input' data, with each pixel being represented as
// given in 'format'. The encoded JPEG data will be written into the supplied
« no previous file with comments | « no previous file | ui/gfx/codec/jpeg_codec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698