source: trunk/src/objects/RpVideo.h @ 2028

Last change on this file since 2028 was 2028, checked in by dkearney, 10 years ago

video widget updates
various bug fixes

File size: 1.6 KB
Line 
1/*
2 * ----------------------------------------------------------------------
3 *  TkFFMPEG:  video
4 *
5 *  These routines support the methods in the "video" class, which is
6 *  a video stream that can be read from or written to.  The class
7 *  itself is defined in itcl, but when methods are called, execution
8 *  jumps down to this level.
9 * ======================================================================
10 *  AUTHOR:  Michael McLennan, Purdue University
11 *  Copyright (c) 2004-2008  Purdue Research Foundation
12 *
13 *  See the file "license.terms" for information on usage and
14 *  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15 * ======================================================================
16 */
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22
23typedef struct VideoObjRec VideoObj;
24
25VideoObj *VideoInitCmd ();
26int VideoCleanupCmd (VideoObj *vidPtr);
27int VideoOpenFile (VideoObj *vidPtr,
28    const char *fileName, const char *mode);
29int VideoGetImage (VideoObj *vidPtr,
30    int width, int height, void **img, int *bufSize);
31int VideoGetPositionCur (VideoObj *vidPtr, int *pos);
32int VideoGetPositionEnd (VideoObj *vidPtr, int *pos);
33int VideoGetFrameRate (VideoObj *vidPtr, double *fr);
34int VideoGetFileName (VideoObj *vidPtr, const char **fname);
35// static int VideoPutCmd (ClientData clientData,
36//     Tcl_Interp  *interp, int argc, CONST84 char *argv[]);
37int VideoGoNext (VideoObj *vidPtr);
38int VideoGoPlusMinusN (VideoObj *vidPtr, int n);
39int VideoGoToN (VideoObj *vidPtr, int n);
40int VideoSizeCmd (VideoObj *vidPtr, int *width, int *height);
41int VideoClose (VideoObj *vidPtr);
42
43#ifdef __cplusplus
44}
45#endif
Note: See TracBrowser for help on using the repository browser.