GFL_SAVE_PARAMS

GFL SDK

GFL_SAVE_PARAMS

The GFL_SAVE_PARAMS structure contains options for the save of picture.

typedef struct (
  GFL_UINT32 Flags,  
  GFL_INT32 FormatIndex,  
  GFL_COMPRESSION Compression,  
  GFL_INT16 Quality,  
  GFL_INT16 CompressionLevel,  
  GFL_BOOL Interlaced,  
  GFL_BOOL Progressive,  
  GFL_BOOL OptimizeHuffmanTable,  
  GFL_BOOL InAscii,  
  GFL_UINT32 Offset,  
  GFL_CORDER ChannelOrder,  
  GFL_CTYPE ChannelType,  
  GFL_WRITE_CALLBACK Write,  
  GFL_TELL_CALLBACK Tell,  
  GFL_SEEK_CALLBACK Seek
} GFL_SAVE_PARAMS

Members

    Flags
    Options
    GFL_SAVE_REPLACE_EXTENSIONReplace extension by the default format extension
    GFL_SAVE_ANYWAYConvert picture if colormode can be saved in this format (For example, RGB picture must be converted in 256 colors to save it in GIF)
    FormatIndex
    Index of format to be used.
    Compression
    GFL_NO_COMPRESSIONNo compression
    GFL_RLEPackbits
    GFL_LZWLZW (tiff only)
    GFL_CCITT_FAX3Fax Group 3 (tiff only)
    GFL_CCITT_FAX3_2DFax Group 3-2D (tiff only)
    GFL_CCITT_FAX4Fax Group 4 (tiff only)
    Quality
    Quality of the compression (JPEG)
    0: the worst, 100: the best
    CompressionLevel
    Level of compression (PNG).
    1: minimum, 7: maximum
    Interlaced
    Interlaced mode (GIF).
    Progressive
    Progressive mode (JPEG).
    OptimizeHuffmanTable
    Optimize the Huffman table (JPEG).
    InAscii
    Use the ascii mode (PNM)
    Offset
    For RAW or YUV format, offset of the data start.
    ChannelOrder
    For RAW format, channel order of components.
    GFL_CORDER_INTERLEAVEDInterleaved
    GFL_CORDER_SEQUENTIALSequential
    GFL_CORDER_SEPARATESeparate
    ChannelType
    For RAW format, channel type of components.
    GFL_CTYPE_GREYSCALEGreyscale
    GFL_CTYPE_RGBRed-Green-Blue
    GFL_CTYPE_BGRBleu-Green-Red
    GFL_CTYPE_RGBARed-Green-Bleu-Alpha
    GFL_CTYPE_ABGRAlpha-Bleu-Green-Red
    GFL_CTYPE_CMYCyan-Magenta-Yellow
    GFL_CTYPE_CMYKCyan-Magenta-Yellow-Black
    Write
    Pointer to a write user function.
    Tell
    Pointer to a tell user function.
    Seek
    Pointer to a seek user function.

See also