Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
3.7 KiB

  1. /*
  2. * @DEC_COPYRIGHT@
  3. */
  4. /*
  5. * HISTORY
  6. * $Log: scon.h,v $
  7. * $EndLog$
  8. */
  9. /*****************************************************************************
  10. ** Copyright (c) Digital Equipment Corporation, 1997 **
  11. ** **
  12. ** All Rights Reserved. Unpublished rights reserved under the copyright **
  13. ** laws of the United States. **
  14. ** **
  15. ** The software contained on this media is proprietary to and embodies **
  16. ** the confidential technology of Digital Equipment Corporation. **
  17. ** Possession, use, duplication or dissemination of the software and **
  18. ** media is authorized only pursuant to a valid written license from **
  19. ** Digital Equipment Corporation. **
  20. ** **
  21. ** RESTRICTED RIGHTS LEGEND Use, duplication, or disclosure by the U.S. **
  22. ** Government is subject to restrictions as set forth in Subparagraph **
  23. ** (c)(1)(ii) of DFARS 252.227-7013, or in FAR 52.227-19, as applicable. **
  24. ******************************************************************************/
  25. #ifndef _SCON_H_
  26. #define _SCON_H_
  27. #ifdef WIN32
  28. #include <windows.h>
  29. #endif
  30. #include "SC.h"
  31. typedef void *SconHandle_t;
  32. typedef ScBoolean_t SconBoolean_t;
  33. typedef enum {
  34. SCON_MODE_NONE,
  35. SCON_MODE_VIDEO, /* Video conversions */
  36. SCON_MODE_AUDIO /* Audio conversions */
  37. } SconMode_t;
  38. typedef enum {
  39. SconErrorNone = 0,
  40. SconErrorInternal,
  41. SconErrorMemory,
  42. SconErrorBadArgument,
  43. SconErrorBadHandle,
  44. SconErrorBadMode,
  45. SconErrorUnsupportedFormat,
  46. SconErrorBufSize,
  47. SconErrorUnsupportedParam,
  48. SconErrorImageSize, /* Invalid image height and/or width */
  49. SconErrorSettingNotEqual, /* The exact Parameter setting was not accepted */
  50. SconErrorInit, /* initialization error */
  51. } SconStatus_t;
  52. typedef enum {
  53. SCON_INPUT = 1,
  54. SCON_OUTPUT = 2,
  55. SCON_INPUT_AND_OUTPUT = 3,
  56. } SconParamType_t;
  57. typedef enum {
  58. /* SCON Parameters */
  59. SCON_PARAM_VERSION=0x00, /* SCON version number */
  60. SCON_PARAM_VERSION_DATE, /* SCON build date */
  61. SCON_PARAM_DEBUG, /* debug handle */
  62. SCON_PARAM_KEY, /* SCON security key */
  63. /* Video Parameters */
  64. SCON_PARAM_WIDTH=0x100,
  65. SCON_PARAM_HEIGHT,
  66. SCON_PARAM_STRIDE, /* bytes between scan lines */
  67. SCON_PARAM_IMAGESIZE,
  68. SCON_PARAM_VIDEOFORMAT,
  69. SCON_PARAM_VIDEOBITS,
  70. SCON_PARAM_VIDEOQUALITY, /* video quality */
  71. } SconParameter_t;
  72. typedef qword SconListParam1_t;
  73. typedef qword SconListParam2_t;
  74. typedef struct SconList_s {
  75. int Enum; /* an enumerated value associated with the entry */
  76. char *Name; /* the name of an entry in the list. NULL = last entry */
  77. char *Desc; /* a lengthy description of the entry */
  78. SconListParam1_t param1;
  79. SconListParam2_t param2;
  80. } SconList_t;
  81. /********************** Public Prototypes ***********************/
  82. /*
  83. * scon_api.c
  84. */
  85. EXTERN SconStatus_t SconOpen(SconHandle_t *handle, SconMode_t smode,
  86. void *informat, void *outformat);
  87. EXTERN SconStatus_t SconConvert(SconHandle_t handle, void *inbuf, dword inbufsize,
  88. void *outbuf, dword outbufsize);
  89. EXTERN SconBoolean_t SconIsSame(SconHandle_t handle);
  90. EXTERN SconStatus_t SconClose(SconHandle_t handle);
  91. EXTERN SconStatus_t SconSetParamInt(SconHandle_t handle, SconParamType_t ptype,
  92. SconParameter_t param, long value);
  93. #endif /* _SCON_H_ */