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

Side by Side Diff: ui/gfx/codec/chromeos/jpeg_codec_robust_slow.h

Issue 2755563002: Move ui/gfx/codec/ into its own component. (Closed)
Patch Set: none Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « ui/gfx/codec/chromeos/OWNERS ('k') | ui/gfx/codec/chromeos/jpeg_codec_robust_slow.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GFX_CHROMEOS_CODEC_JPEG_CODEC_ROBUST_SLOW_H_ 5 #ifndef UI_GFX_CODEC_CHROMEOS_JPEG_CODEC_ROBUST_SLOW_H_
6 #define UI_GFX_CHROMEOS_CODEC_JPEG_CODEC_ROBUST_SLOW_H_ 6 #define UI_GFX_CODEC_CHROMEOS_JPEG_CODEC_ROBUST_SLOW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 14
15 namespace gfx { 15 namespace gfx {
16 16
(...skipping 17 matching lines...) Expand all
34 34
35 // 4 bytes per pixel, it can be either RGBA or BGRA. It depends on the bit 35 // 4 bytes per pixel, it can be either RGBA or BGRA. It depends on the bit
36 // order in kARGB_8888_Config skia bitmap. 36 // order in kARGB_8888_Config skia bitmap.
37 FORMAT_SkBitmap 37 FORMAT_SkBitmap
38 }; 38 };
39 39
40 // Decodes the JPEG data contained in input of length input_size. The 40 // Decodes the JPEG data contained in input of length input_size. The
41 // decoded data will be placed in *output with the dimensions in *w and *h 41 // decoded data will be placed in *output with the dimensions in *w and *h
42 // on success (returns true). This data will be written in the'format' 42 // on success (returns true). This data will be written in the'format'
43 // format. On failure, the values of these output variables is undefined. 43 // format. On failure, the values of these output variables is undefined.
44 static bool Decode(const unsigned char* input, size_t input_size, 44 static bool Decode(const unsigned char* input,
45 ColorFormat format, std::vector<unsigned char>* output, 45 size_t input_size,
46 int* w, int* h); 46 ColorFormat format,
47 std::vector<unsigned char>* output,
48 int* w,
49 int* h);
47 50
48 // Decodes the JPEG data contained in input of length input_size. If 51 // Decodes the JPEG data contained in input of length input_size. If
49 // successful, a SkBitmap is created and returned. It is up to the caller 52 // successful, a SkBitmap is created and returned. It is up to the caller
50 // to delete the returned bitmap. 53 // to delete the returned bitmap.
51 static SkBitmap* Decode(const unsigned char* input, size_t input_size); 54 static SkBitmap* Decode(const unsigned char* input, size_t input_size);
52 }; 55 };
53 56
54 } // namespace gfx 57 } // namespace gfx
55 58
56 #endif // UI_GFX_CHROMEOS_CODEC_JPEG_CODEC_ROBUST_SLOW_H_ 59 #endif // UI_GFX_CODEC_CHROMEOS_JPEG_CODEC_ROBUST_SLOW_H_
OLDNEW
« no previous file with comments | « ui/gfx/codec/chromeos/OWNERS ('k') | ui/gfx/codec/chromeos/jpeg_codec_robust_slow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698