OLD | NEW |
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 #ifndef SkCodec_DEFINED | 8 #ifndef SkCodec_DEFINED |
9 #define SkCodec_DEFINED | 9 #define SkCodec_DEFINED |
10 | 10 |
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 * to the info returned by getInfo(). | 279 * to the info returned by getInfo(). |
280 * | 280 * |
281 * This contract also allows the caller to specify | 281 * This contract also allows the caller to specify |
282 * different output-configs, which the implementation can | 282 * different output-configs, which the implementation can |
283 * decide to support or not. | 283 * decide to support or not. |
284 * | 284 * |
285 * A size that does not match getInfo() implies a request | 285 * A size that does not match getInfo() implies a request |
286 * to scale. If the generator cannot perform this scale, | 286 * to scale. If the generator cannot perform this scale, |
287 * it will return kInvalidScale. | 287 * it will return kInvalidScale. |
288 * | 288 * |
289 * If the info contains a non-null SkColorSpace, the codec | |
290 * will perform the appropriate color space transformation. | |
291 * If the caller passes in the same color space that was | |
292 * reported by the codec, the color space transformation is | |
293 * a no-op. | |
294 * | |
295 * If info is kIndex8_SkColorType, then the caller must provide storage for
up to 256 | 289 * If info is kIndex8_SkColorType, then the caller must provide storage for
up to 256 |
296 * SkPMColor values in ctable. On success the generator must copy N colors
into that storage, | 290 * SkPMColor values in ctable. On success the generator must copy N colors
into that storage, |
297 * (where N is the logical number of table entries) and set ctableCount to
N. | 291 * (where N is the logical number of table entries) and set ctableCount to
N. |
298 * | 292 * |
299 * If info is not kIndex8_SkColorType, then the last two parameters may be
NULL. If ctableCount | 293 * If info is not kIndex8_SkColorType, then the last two parameters may be
NULL. If ctableCount |
300 * is not null, it will be set to 0. | 294 * is not null, it will be set to 0. |
301 * | 295 * |
302 * If a scanline decode is in progress, scanline mode will end, requiring t
he client to call | 296 * If a scanline decode is in progress, scanline mode will end, requiring t
he client to call |
303 * startScanlineDecode() in order to return to decoding scanlines. | 297 * startScanlineDecode() in order to return to decoding scanlines. |
304 * | 298 * |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
720 | 714 |
721 // For testing with qcms | 715 // For testing with qcms |
722 // FIXME: Remove these when we are done comparing with qcms. | 716 // FIXME: Remove these when we are done comparing with qcms. |
723 friend class DM::ColorCodecSrc; | 717 friend class DM::ColorCodecSrc; |
724 friend class ColorCodecBench; | 718 friend class ColorCodecBench; |
725 | 719 |
726 friend class SkSampledCodec; | 720 friend class SkSampledCodec; |
727 friend class SkIcoCodec; | 721 friend class SkIcoCodec; |
728 }; | 722 }; |
729 #endif // SkCodec_DEFINED | 723 #endif // SkCodec_DEFINED |
OLD | NEW |