| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2007 The Android Open Source Project | 3 * Copyright 2007 The Android Open Source Project |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 | 9 |
| 10 #ifndef IMAGE_CODEC_BMPDECODERHELPER_H__ | 10 #ifndef IMAGE_CODEC_BMPDECODERHELPER_H__ |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 namespace image_codec { | 50 namespace image_codec { |
| 51 | 51 |
| 52 class BmpDecoderCallback { | 52 class BmpDecoderCallback { |
| 53 public: | 53 public: |
| 54 BmpDecoderCallback() { } | 54 BmpDecoderCallback() { } |
| 55 virtual ~BmpDecoderCallback() {} | 55 virtual ~BmpDecoderCallback() {} |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * This is called once for an image. It is passed the width and height and | 58 * This is called once for an image. It is passed the width and height and |
| 59 * should return the address of a buffer that is large enough to store | 59 * should return the address of a buffer that is large enough to store |
| 60 * all of the resulting pixels (widht * height * 3 bytes). If it returns NULL, | 60 * all of the resulting pixels (widht * height * 3 bytes). If it returns nullp
tr, |
| 61 * then the decoder will abort, but return true, as the caller has received | 61 * then the decoder will abort, but return true, as the caller has received |
| 62 * valid dimensions. | 62 * valid dimensions. |
| 63 */ | 63 */ |
| 64 virtual uint8* SetSize(int width, int height) = 0; | 64 virtual uint8* SetSize(int width, int height) = 0; |
| 65 | 65 |
| 66 private: | 66 private: |
| 67 DISALLOW_EVIL_CONSTRUCTORS(BmpDecoderCallback); | 67 DISALLOW_EVIL_CONSTRUCTORS(BmpDecoderCallback); |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 class BmpDecoderHelper { | 70 class BmpDecoderHelper { |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 int redShiftLeft_; | 107 int redShiftLeft_; |
| 108 int greenShiftLeft_; | 108 int greenShiftLeft_; |
| 109 int blueShiftLeft_; | 109 int blueShiftLeft_; |
| 110 uint8* output_; | 110 uint8* output_; |
| 111 bool inverted_; | 111 bool inverted_; |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace | 114 } // namespace |
| 115 | 115 |
| 116 #endif | 116 #endif |
| OLD | NEW |