1 // Copyright 2014 PDFium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 6 7 #include "core/fxcodec/gif/cfx_gif.h" 8 9 const char kGifSignature87[] = "GIF87a"; 10 const char kGifSignature89[] = "GIF89a"; 11 12 static_assert(sizeof(CFX_GifGlobalFlags) == 1, 13 "CFX_GifGlobalFlags should have a size of 1"); 14 static_assert(sizeof(CFX_GifLocalFlags) == 1, 15 "CFX_GifLocalFlags should have a size of 1"); 16 static_assert(sizeof(CFX_GifHeader) == 6, 17 "CFX_GifHeader should have a size of 6"); 18 static_assert(sizeof(CFX_GifLocalScreenDescriptor) == 7, 19 "CFX_GifLocalScreenDescriptor should have a size of 7"); 20 static_assert(sizeof(CFX_CFX_GifImageInfo) == 9, 21 "CFX_CFX_GifImageInfo should have a size of 9"); 22 static_assert(sizeof(CFX_GifControlExtensionFlags) == 1, 23 "CFX_GifControlExtensionFlags should have a size of 1"); 24 static_assert(sizeof(CFX_GifPlainTextExtension) == 13, 25 "CFX_GifPlainTextExtension should have a size of 13"); 26 static_assert(sizeof(CFX_GifGraphicControlExtension) == 5, 27 "CFX_GifGraphicControlExtension should have a size of 5"); 28 static_assert(sizeof(GifApplicationExtension) == 12, 29 "GifApplicationExtension should have a size of 12"); 30 static_assert(sizeof(CFX_GifPalette) == 3, 31 "CFX_GifPalette should have a size of 3"); 32 33 CFX_GifImage::CFX_GifImage() = default; 34 35 CFX_GifImage::~CFX_GifImage() = default; 36