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-2012 HUBzero Foundation, LLC |
---|
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 |
---|
19 | extern "C" { |
---|
20 | #endif |
---|
21 | |
---|
22 | |
---|
23 | typedef struct VideoObjRec VideoObj; |
---|
24 | |
---|
25 | VideoObj *VideoInit (); |
---|
26 | int VideoCleanup (VideoObj *vidPtr); |
---|
27 | int VideoOpenFile (VideoObj *vidPtr, |
---|
28 | const char *fileName, const char *mode); |
---|
29 | int VideoGetImage (VideoObj *vidPtr, |
---|
30 | int width, int height, void **img, int *bufSize); |
---|
31 | int VideoGetPositionCur (VideoObj *vidPtr, int *pos); |
---|
32 | int VideoGetPositionEnd (VideoObj *vidPtr, int *pos); |
---|
33 | int VideoFrameRate (VideoObj *vidPtr, double *fr); |
---|
34 | int VideoFileName (VideoObj *vidPtr, const char **fname); |
---|
35 | int VideoPixelAspectRatio (VideoObj *vidPtr, int *num, int *den); |
---|
36 | int VideoDisplayAspectRatio (VideoObj *vidPtr, int *num, int *den); |
---|
37 | // static int VideoPut (ClientData clientData, |
---|
38 | // Tcl_Interp *interp, int argc, CONST84 char *argv[]); |
---|
39 | int VideoGoNext (VideoObj *vidPtr); |
---|
40 | int VideoGoPlusMinusN (VideoObj *vidPtr, int n); |
---|
41 | int VideoGoToN (VideoObj *vidPtr, int n); |
---|
42 | int VideoSize (VideoObj *vidPtr, int *width, int *height); |
---|
43 | int VideoClose (VideoObj *vidPtr); |
---|
44 | |
---|
45 | #ifdef __cplusplus |
---|
46 | } |
---|
47 | #endif |
---|
48 | |
---|