mirror of
https://github.com/roytam1/basilisk55.git
synced 2026-05-26 15:02:46 +00:00
c994f27de5
- Port WebP decoder changes. (238b430ec) - Bug 1462355 - Part 1a. Make imgFrame animation parameters threadsafe. (807acf738) - Bug 1462355 - Part 1b. Update Decoder and SurfacePipe plumbing to use updated imgFrame methods. (622098073) - Bug 1462355 - Part 1c. Make individual image decoders to use updated Decoder/SurfacePipe methods. (3417e581c) - Fix pasta error (b9003c9c5) - Unrefactor mRawVeggies back to mVBuffMeat ;P (5b821064f) - Split out FrameTimeout into its own header file for re-use. (a51993521) - Fix blank pixel color for truncated GIFs (25f4c75d6)
48 lines
1.4 KiB
C++
48 lines
1.4 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef mozilla_image_AnimationParams_h
|
|
#define mozilla_image_AnimationParams_h
|
|
|
|
#include <stdint.h>
|
|
#include "mozilla/gfx/Rect.h"
|
|
#include "FrameTimeout.h"
|
|
|
|
namespace mozilla {
|
|
namespace image {
|
|
|
|
enum class BlendMethod : int8_t {
|
|
// All color components of the frame, including alpha, overwrite the current
|
|
// contents of the frame's output buffer region.
|
|
SOURCE,
|
|
|
|
// The frame should be composited onto the output buffer based on its alpha,
|
|
// using a simple OVER operation.
|
|
OVER
|
|
};
|
|
|
|
enum class DisposalMethod : int8_t {
|
|
CLEAR_ALL = -1, // Clear the whole image, revealing what's underneath.
|
|
NOT_SPECIFIED, // Leave the frame and let the new frame draw on top.
|
|
KEEP, // Leave the frame and let the new frame draw on top.
|
|
CLEAR, // Clear the frame's area, revealing what's underneath.
|
|
RESTORE_PREVIOUS // Restore the previous (composited) frame.
|
|
};
|
|
|
|
struct AnimationParams
|
|
{
|
|
gfx::IntRect mBlendRect;
|
|
FrameTimeout mTimeout;
|
|
uint32_t mFrameNum;
|
|
BlendMethod mBlendMethod;
|
|
DisposalMethod mDisposalMethod;
|
|
};
|
|
|
|
} // namespace image
|
|
} // namespace mozilla
|
|
|
|
#endif // mozilla_image_AnimationParams_h
|