home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Multimedia / Resource Library: Multimedia.iso / maestro / source / videbjct / pnr4200d.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-15  |  4.3 KB  |  123 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/Pioneer4200Driver.h,v 0.20 92/09/01 17:09:57 drapeau Exp $ */
  25. /* $Log:    Pioneer4200Driver.h,v $
  26.  * Revision 0.20  92/09/01  17:09:57  drapeau
  27.  * Updated copyright notice.
  28.  * Also, added function prototypes to function definitions for better
  29.  * ANSI compliance.
  30.  * 
  31.  * Revision 0.19  92/01/03  16:56:56  drapeau
  32.  * Removed inclusion of string.h so as not to conflict with other files
  33.  * that use this driver.
  34.  * 
  35.  * Revision 0.18  91/09/30  17:06:41  lim
  36.  * Added Pioneer4200Ping.
  37.  * 
  38.  * Revision 0.17  91/08/24  13:38:08  lim
  39.  * 1. Updated to use status codes in new PlayerStatus.h
  40.  * 2. Clear Marker() removed as part of video object.
  41.  * 
  42.  * Revision 0.16  91/08/09  10:49:23  lim
  43.  * Moved 'FrameAndChapter' to 'PlayerStatus.h'
  44.  * 
  45.  * Revision 0.15  91/08/07  13:46:55  lim
  46.  * *** empty log message ***
  47.  * 
  48.  * Revision 0.14  91/08/07  13:07:09  lim
  49.  * 1. Included "videoObj.h" and "PlayerStatus.h"
  50.  * 
  51.  * Revision 0.13  91/08/02  12:53:11  lim
  52.  * Pause() is removed.
  53.  * 
  54.  * Revision 0.12  91/07/29  22:26:42  lim
  55.  * Removed #define's for player status to PlayerStatus.h
  56.  * 
  57.  * Revision 0.11  91/07/27  22:27:58  lim
  58.  * Changed speed from double to int.
  59.  * 
  60.  * Revision 0.10  91/07/12  16:17:40  lim
  61.  * Initial revision implementing VideoObject.
  62.  * 
  63.  * Revision 0.10  91/07/01  14:51:30  lim
  64.  * Initial revision.
  65.  *  */
  66.  
  67. #include <ctype.h>
  68. #include <fcntl.h>
  69. #include <sys/termio.h>
  70. #include <stdio.h>
  71. #include "videoObj.h"
  72. #include "PlayerStatus.h"
  73.  
  74. /*  Defines that need to be included  */
  75.  
  76. /*
  77.   All positive numbers are player return code (except zero) or player
  78.   commands
  79.  
  80.   Negative numbers are error codes
  81. */
  82.  
  83. #define ScanRate  2
  84. #define StepRate  0
  85.  
  86. #define Pioneer4200CommunicationError     -3
  87. #define Pioneer4200FeatureNotAvailable    -4
  88. #define Pioneer4200MissingArgument        -6
  89. #define Pioneer4200NoDisc                -11
  90. #define Pioneer4200SearchError           -12
  91. #define Pioneer4200DefocussingError      -13
  92. #define Pioneer4200PictureStop           -15
  93. #define Pioneer4200PanicError            -99
  94.  
  95.  
  96. static char vhrcs[] = "$Header: /Source/Media/collab/VideoObject/RCS/Pioneer4200Driver.h,v 0.20 92/09/01 17:09:57 drapeau Exp $";
  97.  
  98.  
  99. int Pioneer4200Play            (VideoObject*);
  100. int Pioneer4200PlayFromTo        (VideoObject*, int, int, int);
  101. int Pioneer4200FastForward        (VideoObject*);
  102. int Pioneer4200Reverse            (VideoObject*);
  103. int Pioneer4200CalcSpeed        (VideoObject*, int, int);
  104. int Pioneer4200PlayAtSpeedDir        (VideoObject*, int, enum Direction);
  105. int Pioneer4200Step            (VideoObject*, enum Direction);
  106. int Pioneer4200Still            (VideoObject*);
  107. int Pioneer4200Stop            (VideoObject*);
  108. int Pioneer4200SetDefaults        (VideoObject*, int, int, int, int);
  109. int Pioneer4200SetAudio            (VideoObject*, int);
  110. int Pioneer4200SetVideo            (VideoObject*, int);
  111. int Pioneer4200SetAddMode        (VideoObject*, int);
  112. int Pioneer4200SetAddressDisplay    (VideoObject*, int, int);
  113. int Pioneer4200Eject            (VideoObject*);
  114. int Pioneer4200Power            (VideoObject*, int);
  115. int Pioneer4200QueryFrame        (VideoObject*);
  116. int Pioneer4200QueryChapter        (VideoObject*);
  117. int Pioneer4200QueryAudio        (VideoObject*);
  118. int Pioneer4200QueryVideo        (VideoObject*);
  119. int Pioneer4200QueryMedium        (VideoObject*, char*);
  120. int Pioneer4200QueryStatus        (VideoObject*);
  121. int Pioneer4200Ping            (VideoObject*);
  122. void Pioneer4200ErrorDecode        (VideoObject*, int, char*);
  123.