• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2014 The PDFium Authors
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 #ifndef CORE_FXCODEC_FX_CODEC_DEF_H_
8 #define CORE_FXCODEC_FX_CODEC_DEF_H_
9 
10 enum class FXCODEC_STATUS {
11   kError = -1,
12   kFrameReady,
13   kFrameToBeContinued,
14   kDecodeReady,
15   kDecodeToBeContinued,
16   kDecodeFinished,
17 };
18 
19 #ifdef PDF_ENABLE_XFA
20 enum FXCODEC_IMAGE_TYPE {
21   FXCODEC_IMAGE_UNKNOWN = 0,
22   FXCODEC_IMAGE_JPG,
23 #ifdef PDF_ENABLE_XFA_BMP
24   FXCODEC_IMAGE_BMP,
25 #endif  // PDF_ENABLE_XFA_BMP
26 #ifdef PDF_ENABLE_XFA_PNG
27   FXCODEC_IMAGE_PNG,
28 #endif  // PDF_ENABLE_XFA_PNG
29 #ifdef PDF_ENABLE_XFA_GIF
30   FXCODEC_IMAGE_GIF,
31 #endif  // PDF_ENABLE_XFA_GIF
32 #ifdef PDF_ENABLE_XFA_TIFF
33   FXCODEC_IMAGE_TIFF,
34 #endif  // PDF_ENABLE_XFA_TIFF
35   FXCODEC_IMAGE_MAX
36 };
37 #endif  // PDF_ENABLE_XFA
38 
39 #endif  // CORE_FXCODEC_FX_CODEC_DEF_H_
40