home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / videbjct / pnsncptd.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  4.8 KB  |  139 lines

  1. /*
  2.  * Copyright (c) 1990, 1991, 1992 Stanford University
  3.  *
  4.  * Permission to use, copy, modify, and distribute this software and 
  5.  * its documentation for any purpose is hereby granted without fee, provided
  6.  * that (i) the above copyright notices and this permission notice appear in
  7.  * all copies of the software and related documentation, and (ii) the name
  8.  * Stanford may not be used in any advertising or publicity relating to
  9.  * the software without the specific, prior written permission of
  10.  * Stanford.
  11.  * 
  12.  * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  13.  * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  14.  * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  15.  *
  16.  * IN NO EVENT SHALL STANFORD BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
  17.  * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES
  18.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT
  19.  * ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY,
  20.  * ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  21.  * SOFTWARE.
  22.  */
  23.  
  24. /* $Header: /Source/Media/collab/VideoObject/RCS/PanasonicOptDriver.h,v 0.20 92/09/12 14:07:09 drapeau Exp Locker: drapeau $ */
  25. /* $Log:    PanasonicOptDriver.h,v $
  26.  * Revision 0.20  92/09/12  14:07:09  drapeau
  27.  * Removed the function PanasonicOptReadResponse() since it was not being used.
  28.  * Because of this, also removed references to XView toolkit header files.
  29.  * 
  30.  * Revision 0.19  92/09/01  17:11:46  drapeau
  31.  * Updated copyright notice.
  32.  * Also, added function prototypes to function definitions for better
  33.  * ANSI compliance.
  34.  * 
  35.  * Revision 0.18  92/01/03  16:52:46  drapeau
  36.  * Removed inclusion of string.h so as not to conflict with other files
  37.  * that use this driver.
  38.  * 
  39.  * Revision 0.17  91/09/30  17:05:44  lim
  40.  * Added PanasonicOptPing.
  41.  * 
  42.  * Revision 0.16  91/08/24  13:38:05  lim
  43.  * 1. Updated to use status codes in new PlayerStatus.h
  44.  * 2. Clear Marker() removed as part of video object.
  45.  * 
  46.  * Revision 0.15  91/08/07  13:46:51  lim
  47.  * *** empty log message ***
  48.  * 
  49.  * Revision 0.14  91/08/07  13:04:24  lim
  50.  * 1. Included <sys/time.h>, <sys/wait.h>, <sys/resource.h>, "videoObj.h"
  51.  * and "PlayerStatus.h"
  52.  * 2. PanasonicClient is set to 100.
  53.  * 
  54.  * Revision 0.13  91/08/02  12:53:04  lim
  55.  * Pause() is removed.
  56.  * 
  57.  * Revision 0.12  91/07/29  22:25:17  lim
  58.  * Removed #define's for player status to PlayerStatus.h
  59.  * 
  60.  * Revision 0.11  91/07/27  22:27:13  lim
  61.  * Changed speed from double to int.
  62.  * Took macros for "MyAbs" and "MyRound" to vEdit.h
  63.  * 
  64.  * Revision 0.10  91/07/23  16:14:25  lim
  65.  * Initial revision.
  66.  *  */
  67.  
  68. #include <ctype.h>
  69. #include <fcntl.h>
  70. #include <sys/termio.h>
  71. #include <stdio.h>
  72. #include <sys/time.h>
  73. #include <sys/resource.h>
  74.  
  75. #ifndef _WaitHeader_
  76. #define _WaitHeader_
  77. #include <sys/wait.h>
  78. #endif
  79.  
  80. #include "PlayerStatus.h"
  81. #include "videoObj.h"
  82.  
  83. #define Stx               '\x02'
  84. #define Etx               '\x03'
  85. #define Ack               '\x06'
  86. #define Nak               '\x15'
  87. #define PanasonicClient   100
  88.  
  89. /* Error Codes */
  90.  
  91. #define InvalidInstruction -1
  92. #define DiskCheck          -2
  93. #define NoDisk             -3
  94. #define CantFindAddress    -4
  95. #define OutOfFocus         -6
  96. #define DiscMotorSyncNG    -7
  97. #define OptHeadOffEnd      -8
  98. #define RecordError        -9 
  99. #define ExtVideoError      -10
  100. #define LoadError          -11
  101. #define Moisture           -12
  102. #define RcvBuffOverflow    -20
  103. #define CommError          -21
  104. #define InvalidCmdFormat   -22
  105. #define ConcentricDisc     -24
  106. #define Battery            -30
  107. #define NestingErr         -32
  108. #define NoProgram          -33
  109. #define ProgramExceedMem   -34
  110. #define NoiseInUnit        -35
  111.  
  112.  
  113.  
  114. int PanasonicOptPlay            (VideoObject*);
  115. int PanasonicOptPlayFromTo        (VideoObject*, int, int, int);
  116. int PanasonicOptFastForward        (VideoObject*);
  117. int PanasonicOptReverse            (VideoObject*);
  118. int PanasonicOptCalcSpeed        (VideoObject*, int, int);
  119. int PanasonicOptPlayAtSpeedDir        (VideoObject*, int, enum Direction);
  120. int PanasonicOptStep            (VideoObject*, enum Direction);
  121. int PanasonicOptStill            (VideoObject*);
  122. int PanasonicOptStop            (VideoObject*);
  123. int PanasonicOptSetDefaults        (VideoObject*, int, int, int, int);
  124. int PanasonicOptSetAudio        (VideoObject*, int);
  125. int PanasonicOptSetVideo        (VideoObject*, int);
  126. int PanasonicOptSetAddressDisplay    (VideoObject*, int, int);
  127. int PanasonicOptEject            (VideoObject*);
  128. int PanasonicOptPower            (VideoObject*, int);
  129. int PanasonicOptQueryFrame        (VideoObject*);
  130. int PanasonicOptQueryChapter        (VideoObject*);
  131. int PanasonicOptQueryAudio        (VideoObject*);
  132. int PanasonicOptQueryVideo        (VideoObject*);
  133. int PanasonicOptQueryMedium        (VideoObject*, char*);
  134. int PanasonicOptQueryStatus        (VideoObject*);
  135. int PanasonicOptPing            (VideoObject*);
  136. int PanasonicOptRecord            (VideoObject*);
  137. int PanasonicOptRecordFromTo        (VideoObject*, int, int, int);
  138. void PanasonicOptErrorDecode        (VideoObject*, int, char*);
  139.