home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextLibrary / Frameworks / NEXTIME.framework / Versions / A / Headers / components.h next >
Encoding:
Text File  |  1995-08-30  |  2.0 KB  |  71 lines

  1. /*
  2.  *  components.h
  3.  *
  4.  *    Protocols for use by loadable components are specified here.
  5.  *
  6.  *    12 Sept 1992 mpaque Created.
  7.  */
  8. #import <Foundation/NSBundle.h>
  9. #import "NTValueDictionary.h"
  10. /*
  11.  * Protocols available for use by all component classes, for access to
  12.  * component resources.
  13.  */
  14.  
  15.  
  16. /*
  17.  * Protocol to be implemented by all image decompressors
  18.  */
  19. @protocol NTImageDecompressor <NSObject>
  20. - init;
  21. - (void)dealloc;
  22. - (BOOL)preDecompress    :(id)image;    // Really an NTSample *
  23. - (BOOL)decompress    :(in int *)data
  24.         size    :(inout unsigned *)size
  25.         toImage    :(id)image;    // Really an NTSample *
  26. @end
  27.  
  28. /*
  29.  * Protocol to be implemented by all image compressors.  A compressor
  30.  * is required to support decompression of it's own format.
  31.  */
  32. @protocol NTImageCompressor    <NTImageDecompressor>
  33. - (unsigned)maxCompressionSize:(id)image;
  34. - preCompress:(id)image;
  35. - compress    :(id)image
  36.     toBuffer:(out int *)data
  37.     size    :(unsigned)size;
  38.  
  39. - (oneway void)setCompressionQuality:(double)q;        // Tuning parameters
  40. - (oneway void)setCompressionRatio:(double)ratio;    // Tuning parameters
  41. @end
  42.  
  43.  
  44. /*
  45.  * Protocol to be implemented by video source peripherals such as
  46.  * computer controlled tape deck and laser disc components
  47.  */
  48. @protocol NTVideoSourcePeripheral <NSObject>
  49. - init;
  50. - (void)dealloc;
  51. - (BOOL)isReady;        // Media loaded, ready to play?
  52. - (BOOL)canSeekToFrame;        // Media dependent queries
  53. - (BOOL)canStepByFrame;        // Media dependent
  54. - (BOOL)canSeekToTime;        // Media dependent
  55. - (BOOL)canShowStill;        // Media dependent
  56. - (BOOL)canReportFrame;        // Media dependent
  57.  
  58. - (BOOL)ready;            // Load and prepare to play
  59.  
  60. - (BOOL)seekToFrame:(int)frame;    // Position media and pause/still
  61. - (BOOL)seekToHour:(int)hour minute:(int)minute second:(int)second;
  62.  
  63. - (BOOL)play;            // Play at normal speed
  64. - (BOOL)still;            // Enter still mode
  65. - (BOOL)pause;            // pause performance
  66. - (BOOL)stepForward;        // Step to next frame
  67. - (BOOL)stepReverse;        // Step back by one frame
  68. - (int)reportFrame;        // Return the current frame, or -1 on error
  69.  
  70. @end
  71.