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

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

Issue 1305123002: Scanline decoding for gifs (Closed) Base URL: https://skia.googlesource.com/skia.git@real-bmp-scan
Patch Set: First round of fixes Created 5 years, 4 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
(Empty)
1 /*
2 * Copyright 2015 The Android Open Source Project
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #include "SkTypes.h"
9
10 /*
11 * Helper class to determine the destination y-values for interlaced gifs
12 */
13 class SkGifInterlaceIter : SkNoncopyable {
14 public:
15
16 explicit SkGifInterlaceIter(int32_t height);
17
18 /*
19 * Get the next destination y-value
20 */
21 int32_t nextY();
22
23 private:
24
25 /*
26 * Updates the iterator to prepare the next y-value
27 */
28 void prepareY();
29
30 const int32_t fHeight;
31 int32_t fCurrY;
32 int32_t fDeltaY;
33 const uint8_t* fStartYPtr;
34 const uint8_t* fDeltaYPtr;
35 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698