home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / basics / draganddrop shell / testfunction.c < prev    next >
Encoding:
Text File  |  2000-06-23  |  1.6 KB  |  53 lines

  1. /*
  2.     File:        TestFunction.c
  3.  
  4.     Contains:    Functions for recompression of QuickTime movies.
  5.  
  6.     Written by:     
  7.  
  8.     Copyright:    Copyright © 1995-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 7/28/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24.  
  25. // INCLUDES
  26. #include "Movies.h"
  27. #include "MoviesFormat.h"
  28.  
  29. #include "TestFunction.h"
  30. #include "DTSQTUtilities.h"
  31.     
  32.  
  33.  
  34. // ______________________________________________________________________
  35. // FUNCTIONS
  36.  
  37.  
  38. // ______________________________________________________________________
  39. pascal OSErr TestFunction(FSSpec* theMovieFile)
  40. {
  41.     OSErr     anErr = noErr;
  42.     short    aMovieRefNum;
  43.     Movie    aSourceMovie;
  44.     
  45.     anErr = OpenMovieFile(theMovieFile, &aMovieRefNum, 0); ReturnIfError(anErr);
  46.     anErr = NewMovieFromFile(&aSourceMovie, aMovieRefNum, NULL, NULL, newMovieActive, NULL);  ReturnIfError(anErr);
  47.     CloseMovieFile(aMovieRefNum);
  48.  
  49.     // @@@ PROCESS THE MOVIE HERE 
  50.     DebugStr("\pOK, we are inside the test function for processing of the movie");   // temp test
  51.  
  52.     return anErr;
  53. }