Search the FAQ Archives

3 - A - B - C - D - E - F - G - H - I - J - K - L - M
N - O - P - Q - R - S - T - U - V - W - X - Y - Z
faqs.org - Internet FAQ Archives

SGI movie Frequently Asked Questions (FAQ)
Section - -29- How do I write a program to play a movie entirely from memory?

( Single Page )
[ Usenet FAQs | Web FAQs | Documents | RFC Index | Schools ]


Top Document: SGI movie Frequently Asked Questions (FAQ)
Previous Document: -28- When writing frames to a movie with the Movie Library, if we fix the image track parameters, does the byte size
Next Document: -30- How do I capture movies from live video within my application?
See reader questions & answers on this topic! - Help others by sharing your knowledge
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.

User Contributions:

Comment about this article, ask questions, or add new information about this topic:

CAPTCHA