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 * |
289 * If info is kIndex8_SkColorType, then the caller must provide storage for
up to 256 | 295 * If info is kIndex8_SkColorType, then the caller must provide storage for
up to 256 |
290 * SkPMColor values in ctable. On success the generator must copy N colors
into that storage, | 296 * SkPMColor values in ctable. On success the generator must copy N colors
into that storage, |
291 * (where N is the logical number of table entries) and set ctableCount to
N. | 297 * (where N is the logical number of table entries) and set ctableCount to
N. |
292 * | 298 * |
293 * If info is not kIndex8_SkColorType, then the last two parameters may be
NULL. If ctableCount | 299 * If info is not kIndex8_SkColorType, then the last two parameters may be
NULL. If ctableCount |
294 * is not null, it will be set to 0. | 300 * is not null, it will be set to 0. |
295 * | 301 * |
296 * If a scanline decode is in progress, scanline mode will end, requiring t
he client to call | 302 * If a scanline decode is in progress, scanline mode will end, requiring t
he client to call |
297 * startScanlineDecode() in order to return to decoding scanlines. | 303 * startScanlineDecode() in order to return to decoding scanlines. |
298 * | 304 * |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
714 | 720 |
715 // For testing with qcms | 721 // For testing with qcms |
716 // FIXME: Remove these when we are done comparing with qcms. | 722 // FIXME: Remove these when we are done comparing with qcms. |
717 friend class DM::ColorCodecSrc; | 723 friend class DM::ColorCodecSrc; |
718 friend class ColorCodecBench; | 724 friend class ColorCodecBench; |
719 | 725 |
720 friend class SkSampledCodec; | 726 friend class SkSampledCodec; |
721 friend class SkIcoCodec; | 727 friend class SkIcoCodec; |
722 }; | 728 }; |
723 #endif // SkCodec_DEFINED | 729 #endif // SkCodec_DEFINED |
OLD | NEW |