Up: SGI movie Frequently Asked Questions (FAQ)
Next: -31- How do I capture movies from live video within my application?
Previous: -29- When writing frames to a movie with the Movie Library, if we fix the image track parameters, does the byte size of the frame remain constant across frames?
Subject:   -30- How do I write a program to play a movie entirely from
                memory?
Date: Wed Nov 16 13:04:20 PST 1994

  Typically, you open the movie file using the Unix open() system
  call.  You then allocate a memory buffer as large as you need, and
  use the read() system call to read the entire movie into the memory
  buffer.  Then pass the pointer to this memory region to mvOpenMem()
  and you're set.

  If you want to get more fancy, you can use the mpin() system call
  to attempt to lock your memory buffer in physical memory, so
  it does not get swapped out.  Or, you can use the mmap() system
  call to associate your disk file with a memory pointer, and pass
  the memory-mapped region to mvOpenMem().  This has certain advantages
  which are outside the scope of this FAQ; consult the manual pages
  and a good book on Unix system-call level programming for details.

Up: SGI movie Frequently Asked Questions (FAQ)
Next: -31- How do I capture movies from live video within my application?
Previous: -29- When writing frames to a movie with the Movie Library, if we fix the image track parameters, does the byte size of the frame remain constant across frames?