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

Side by Side Diff: src/codec/SkCodec_libbmp.h

Issue 1055743003: Swizzler changes Index8 and 565 (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright 2015 Google Inc. 2 * Copyright 2015 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkCodec.h" 8 #include "SkCodec.h"
9 #include "SkColorTable.h" 9 #include "SkColorTable.h"
10 #include "SkImageInfo.h" 10 #include "SkImageInfo.h"
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 * 113 *
114 */ 114 */
115 Result decodeMask(const SkImageInfo& dstInfo, void* dst, 115 Result decodeMask(const SkImageInfo& dstInfo, void* dst,
116 size_t dstRowBytes); 116 size_t dstRowBytes);
117 117
118 /* 118 /*
119 * 119 *
120 * Set an RLE pixel using the color table 120 * Set an RLE pixel using the color table
121 * 121 *
122 */ 122 */
123 void setRLEPixel(SkPMColor* dst, size_t dstRowBytes, 123 void setRLEPixel(void* dst, size_t dstRowBytes,
scroggo 2015/04/02 19:20:31 Why did these change?
msarett 2015/04/03 18:01:32 I wanted to setRLEPixels for kN32 and for kIndex8,
scroggo 2015/04/06 14:55:11 sgtm
124 const SkImageInfo& dstInfo, uint32_t x, uint32_t y, 124 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
125 uint8_t index); 125 uint8_t index);
126 /* 126 /*
127 * 127 *
128 * Set an RLE24 pixel from R, G, B values 128 * Set an RLE24 pixel from R, G, B values
129 * 129 *
130 */ 130 */
131 void setRLE24Pixel(SkPMColor* dst, size_t dstRowBytes, 131 void setRLE24Pixel(void* dst, size_t dstRowBytes,
132 const SkImageInfo& dstInfo, uint32_t x, uint32_t y, 132 const SkImageInfo& dstInfo, uint32_t x, uint32_t y,
133 uint8_t red, uint8_t green, uint8_t blue); 133 uint8_t red, uint8_t green, uint8_t blue);
134 134
135 /* 135 /*
136 * 136 *
137 * Performs the bitmap decoding for RLE input format 137 * Performs the bitmap decoding for RLE input format
138 * 138 *
139 */ 139 */
140 Result decodeRLE(const SkImageInfo& dstInfo, void* dst, 140 Result decodeRLE(const SkImageInfo& dstInfo, void* dst,
141 size_t dstRowBytes); 141 size_t dstRowBytes, const Options& opts);
142 142
143 /* 143 /*
144 * 144 *
145 * Performs the bitmap decoding for standard input format 145 * Performs the bitmap decoding for standard input format
146 * 146 *
147 */ 147 */
148 Result decode(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes); 148 Result decode(const SkImageInfo& dstInfo, void* dst, size_t dstRowBytes);
149 149
150 /* 150 /*
151 * 151 *
(...skipping 21 matching lines...) Expand all
173 SkBmpCodec(const SkImageInfo& srcInfo, SkStream* stream, 173 SkBmpCodec(const SkImageInfo& srcInfo, SkStream* stream,
174 uint16_t bitsPerPixel, BitmapInputFormat format, 174 uint16_t bitsPerPixel, BitmapInputFormat format,
175 SkMasks* masks, uint32_t numColors, uint32_t bytesPerColor, 175 SkMasks* masks, uint32_t numColors, uint32_t bytesPerColor,
176 uint32_t offset, RowOrder rowOrder, size_t RLEBytes, 176 uint32_t offset, RowOrder rowOrder, size_t RLEBytes,
177 bool isIco); 177 bool isIco);
178 178
179 // Fields 179 // Fields
180 const uint16_t fBitsPerPixel; 180 const uint16_t fBitsPerPixel;
181 const BitmapInputFormat fInputFormat; 181 const BitmapInputFormat fInputFormat;
182 SkAutoTDelete<SkMasks> fMasks; // owned 182 SkAutoTDelete<SkMasks> fMasks; // owned
183 SkAutoTDelete<SkColorTable> fColorTable; // owned 183 SkPMColor* fColorTable; // unowned
184 uint32_t fNumColors; 184 uint32_t fNumColors;
185 const uint32_t fBytesPerColor; 185 const uint32_t fBytesPerColor;
186 const uint32_t fOffset; 186 const uint32_t fOffset;
187 const RowOrder fRowOrder; 187 const RowOrder fRowOrder;
188 const size_t fRLEBytes; 188 const size_t fRLEBytes;
189 const bool fIsIco; 189 const bool fIsIco;
190 190
191 typedef SkCodec INHERITED; 191 typedef SkCodec INHERITED;
192 }; 192 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698