home *** CD-ROM | disk | FTP | other *** search
/ IRIS Development Option 6.2 / IRIS_Development_Option_6.2_814-0478-001.iso / dist / dmedia_dev.idb / usr / include / dmedia / dm_ltc.h.z / dm_ltc.h
C/C++ Source or Header  |  1996-03-14  |  2KB  |  68 lines

  1. #ifndef __DM_LTC_H__
  2. #define __DM_LTC_H__
  3.  
  4. /***************************************************************************
  5.  * SGI Digital Media Library: LTC Utility Routines
  6.  *
  7.  * <dmedia/dm_ltc.h>
  8.  *    header file for use with /usr/lib/libdmedia.so
  9.  ***************************************************************************
  10.  * 
  11.  * Copyright 1995, Silicon Graphics, Inc.
  12.  * ALL RIGHTS RESERVED
  13.  *
  14.  * UNPUBLISHED -- Rights reserved under the copyright laws of the United
  15.  * States.   Use of a copyright notice is precautionary only and does not
  16.  * imply publication or disclosure.
  17.  *
  18.  * U.S. GOVERNMENT RESTRICTED RIGHTS LEGEND:
  19.  * Use, duplication or disclosure by the Government is subject to restrictions
  20.  * as set forth in FAR 52.227.19(c)(2) or subparagraph (c)(1)(ii) of the Rights
  21.  * in Technical Data and Computer Software clause at DFARS 252.227-7013 and/or
  22.  * in similar or successor clauses in the FAR, or the DOD or NASA FAR
  23.  * Supplement.  Contractor/manufacturer is Silicon Graphics, Inc.,
  24.  * 2011 N. Shoreline Blvd. Mountain View, CA 94039-7311.
  25.  *
  26.  * THE CONTENT OF THIS WORK CONTAINS CONFIDENTIAL AND PROPRIETARY
  27.  * INFORMATION OF SILICON GRAPHICS, INC. ANY DUPLICATION, MODIFICATION,
  28.  * DISTRIBUTION, OR DISCLOSURE IN ANY FORM, IN WHOLE, OR IN PART, IS STRICTLY
  29.  * PROHIBITED WITHOUT THE PRIOR EXPRESS WRITTEN PERMISSION OF SILICON
  30.  * GRAPHICS, INC.
  31.  *
  32.  ****************************************************************************/
  33.  
  34. #include <dmedia/dm_timecode.h>
  35.  
  36. #ifdef __cplusplus
  37. extern "C" {
  38. #endif
  39.  
  40. typedef struct _DMLTCcode {
  41.     DMtimecode        tc;        /* Timecode */
  42.     unsigned int    dropFrame :1;    /* NTSC drop frame mode on */
  43.     unsigned int    colorLock :1;    /* Count locked to color framing */
  44.     char        userType;    /* Binary Group flags for user data */
  45.     char        userData[4];    /* User Group bytes */
  46. } DMLTCcode;
  47.  
  48. typedef struct _DMLTCdecoder *DMLTCdecoder;
  49.  
  50. extern DMstatus    dmLTCDecoderCreate(DMLTCdecoder *decoder,
  51.                     int timecodeType);
  52.  
  53. extern DMstatus    dmLTCDecoderDestroy(DMLTCdecoder decoder);
  54.  
  55. extern DMstatus    dmLTCDecode(DMLTCdecoder decoder,
  56.                     void **sampleBuffer,
  57.                     int *sampleCount,
  58.                     DMLTCcode *dmLTCcodeword );
  59.  
  60. extern DMstatus    dmLTCDecoderSetParams(DMLTCdecoder decoder,
  61.                     DMparams *audioParams,
  62.                     int timecodeChannel);
  63. #ifdef __cplusplus 
  64. }
  65. #endif
  66.  
  67. #endif /* __DM_LTC_H__ */
  68.