IT Community - Software Programming, Web Development and Technical Support

AVIFile Functions

This is a discussion on AVIFile Functions within the C and C++ Programming forums, part of the Software Development category; AVIFile Functions The best way to obtain information about AVI format and learn more about the internal behavior of the ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 04-13-2007, 05:16 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Thumbs up AVIFile Functions

AVIFile Functions

The best way to obtain information about AVI format and learn more about the internal behavior of the file, is going directly to MSDN as I did. The AVI related functions are inside vfw.h header file. This means you must include this header and add vfw32.lib library file to your project.

Here is the list of functions that I used in the project and a brief information about them (taken from MSDN):

void AVIFileInit(void); The AVIFileInit function initializes the AVIFile library.
void AVIFileOpen(PAVIFILE* ppfile, LPCTSTR szFile, UINT mode, CLSID pclsidHandler); The AVIFileOpen function opens an AVI file and returns the address of a file interface used to access it.
void AVIFileInfo(PAVIFILE pfile, AVIFILEINFO* pfi, LONG lSize); The AVIFileInfo function obtains information about an AVI file.
void AVIFileGetStream(PAVIFILE pfile, PAVISTREAM* ppavi, DWORD fccType, LONG lParam); The AVIFileGetStream function returns the address of a stream interface that is associated with a specified AVI file.
LONG AVIStreamStart(PAVISTREAM pavi); The AVIStreamStart function returns the starting sample number for the stream.
LONG AVIStreamLength(PAVISTREAM pavi); The AVIStreamLength function returns the length of the stream.
PGETFRAME AVIStreamGetFrameOpen(PAVISTREAM pavi, LPBITMAPINFOHEADER lpbiWanted); The AVIStreamGetFrameOpen function prepares to decompress video frames from the specified video stream.
LPVOID AVIStreamGetFrame(PGETFRAME pgf, LONG lPos); The AVIStreamGetFrame function returns the address of a decompressed video frame.
void AVIStreamGetFrameClose(PGETFRAME pget); The AVIStreamGetFrameClose function releases resources used to decompress video frames.
LONG AVIStreamRelease(PAVISTREAM pavi); The AVIStreamRelease function decrements the reference count of an AVI stream interface handle, and closes the stream if the count reaches zero.
void AVIFileExit(void); The AVIFileExit function exits the AVIFile library and decrements the reference count for the library.

thanks
__________________
Karpagarajan. R
Necessity is the mother of invention
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.discussweb.com/c-c-programming/1095-avifile-functions.html
Posted By For Type Date
Digg / Programming / Upcoming This thread Refback 07-20-2007 05:24 AM

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP FTP Functions Kamalakannan PHP Programming 54 04-14-2008 05:42 AM
Sql functions itbarota Database Support 11 02-29-2008 02:08 AM
What are encryption functions in PHP? Sabari PHP Programming 2 09-17-2007 09:53 AM
What are Virtual Functions? How to implement virtual functions in "C"? Sabari C and C++ Programming 4 09-10-2007 11:35 PM
Imagemagick functions Sivamurugan PHP Programming 4 09-09-2007 11:51 PM


All times are GMT -7. The time now is 06:06 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0