home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsc / computils / !CompUtils / Resources / Expand / cc / h / Universal
Encoding:
Text File  |  1995-07-27  |  1.4 KB  |  42 lines

  1. /* Header file for Expand code module, object version. */
  2. /* The code is called using Expand() which returns the */
  3. /* reason code. All entries in Expand's header (with   */
  4. /* the exception of the code entry point) may be read  */
  5. /* or written using the global variables below.        */
  6.  
  7. /* Function prototype */
  8. int    Expand(void);
  9.  
  10. /* Global variables */
  11. extern    int    Expand_SampleType;
  12. extern    int    Expand_SequenceType;
  13. extern    void    *Expand_SrcBufferPtr;
  14. extern    long    Expand_SrcLength;
  15. extern    void    *Expand_DestBufferPtr;
  16. extern    long    Expand_DestLength;
  17. extern    long    Expand_BytesWritten;
  18. extern    int    Expand_ReasonCode;
  19. extern    long    Expand_OutputFlags;
  20. extern    long    Expand_SampleLength;
  21. extern    long    Expand_Counter;
  22. extern    int    Expand_SamplePeriod;
  23. extern    int    Expand_FileFormat;
  24.  
  25. /* Reason codes */
  26. #define    ALL_DONE        0   /* Decompression complete */
  27. #define    SRC_EMPTY       1   /* Src buffer request */
  28. #define    DEST_FULL       2   /* Dest buffer output */
  29. #define    INIT_DONE       3   /* Initialisation complete */
  30. #define    SRC_ERROR      5   /* ERROR = bad src buffer */
  31. #define    DEST_ERROR      6   /* ERROR = bad dest buffer */
  32. #define    UNKNOWN_FORMAT    8   /* Unrecognised sample format */
  33.  
  34. /* Output flags for this version */
  35. #define    OUTPUT_LINEAR    (1<<0)
  36. #define    OUTPUT_ENHANCE    (1<<1)
  37. #define    OUTPUT_16BIT    (1<<2)
  38. #define    USING_16BIT    (1<<28)
  39. #define    USING_ENHANCE   (1<<29)
  40. #define    FILE_IS_LINEAR  (1<<30)
  41. #define    FILE_IS_16BIT    (1<<31)
  42.