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 / sir_disk.h.z / sir_disk.h
C/C++ Source or Header  |  1996-03-14  |  3KB  |  75 lines

  1. /*
  2.  * sir_disk.h - Contains disk header structure for reading/writing
  3.  *              raw video files.  Used by sir_vidtodisk, sir_disktovid,
  4.  *              and orion.
  5.  *
  6.  * Copyright 1994, Silicon Graphics, Inc.
  7.  * All Rights Reserved.
  8.  *
  9.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  10.  * the contents of this file may not be disclosed to third parties, copied or
  11.  * duplicated in any form, in whole or in part, without the prior written
  12.  * permission of Silicon Graphics, Inc.
  13.  *
  14.  * RESTRICTED RIGHTS LEGEND:
  15.  * Use, duplication or disclosure by the Government is subject to restrictions
  16.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  17.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  18.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  19.  * rights reserved under the Copyright Laws of the United States.
  20.  */
  21.  
  22. #ifndef _SIR_DISK_H
  23. #define _SIR_DISK_H
  24.  
  25. #define    SUCCESS    0
  26. #define    FAILURE    1
  27.  
  28. #define SIR_DISK_VERSION      4
  29. #define SIR_DISK_MAGIC        (('V'<<24)|('I'<<16)|('D'<<8)|'1')
  30.  
  31.  
  32. /*
  33.  * Disk Header Structure
  34.  */
  35. struct disk_hdr {
  36.     int magic;
  37.     int version;
  38.  
  39.     /* video section */
  40.  
  41.     int video_width;           /* image width in pixels; typically 720 */
  42.     int video_height;           /* image height in pixels; typically 243 */
  43.     int video_packing;           /* VL packing type; e.g. VL_PACKING_RGBA_8 */
  44.     int video_format;           /* VL format type; e.g. VL_FORMAT_RGB */
  45.     int video_timing;           /* VL timing; e.g. VL_TIMING_525_CCIR601 */
  46.     int video_capture_type;    /* VL capture; e.g. VL_CAPTURE_NONINTERLEAVED */
  47.     int video_field_dominance; /* field 1 or field 2 dominant (0 if frames) */
  48.     int video_origin;            /* this allows us to determine how to draw to 
  49.                 * the graphics screen */
  50.  
  51.     int block_size;           /* size of disk block */
  52.     int blocks_per_image;      /* disk blocks per field/frame */
  53.     int video_start_block;     /* where the real video data starts */
  54.     int video_n_blocks;        /* total number of video data blocks */
  55.  
  56.     /* audio section */
  57.  
  58.     int audio_sample_rate;     /* AL sample rate; e.g. AL_RATE_48000 */
  59.     int audio_sample_format;   /* AL numeric format; e.g. AL_SAMPFMT_FLOAT */
  60.     int audio_sample_resolution; /* AL sample resolution; e.g. AL_SAMPLE_16 */
  61.     int audio_n_channels;      /* AL number of channels; e.g. AL_STEREO */
  62.  
  63.     int audio_start_block;
  64.     int audio_n_blocks;
  65.  
  66.     /* misc. other info */
  67.  
  68.     /* the block size is now a configurable parameter, so we can't pad */
  69.     /* desc out to the end of a block here.  This can be done externally */
  70.     /* anyway */
  71.     char desc[64];
  72. };
  73.  
  74. #endif /* _SIR_DISK_H */
  75.