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: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? Single Page [ Usenet FAQs | Web FAQs | Documents | RFC Index ] Send corrections/additions to the FAQ Maintainer: sgi-faq@viz.tamu.edu (The SGI FAQ group)
Last Update March 27 2014 @ 02:12 PM
|
Comment about this article, ask questions, or add new information about this topic: