File: summary.c

package info (click to toggle)
ucbmpeg 1r2-6
  • links: PTS
  • area: non-free
  • in suites: hamm, potato, slink
  • size: 9,504 kB
  • ctags: 7,643
  • sloc: ansic: 79,920; tcl: 2,985; perl: 313; asm: 284; makefile: 269; csh: 13
file content (41 lines) | stat: -rw-r--r-- 698 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* read an MPEG file, decode the first frame, place it on the screen, and
 * parse the file to get:
 *      - number of frames
 *      - frames per second
 *      - other data
 */

#include <stdio.h>

typedef struct MpegDataStruct
{
    int numFrames;
    int fps;
} MpegData;


#ifdef BLEAH
MpegData *ScanMPEG(char *fileName)
{
    FILE *fpointer;

    if ( (fpointer = fopen(fileName, "r")) == NULL )
    {
	fprintf(stderr, "Error:  could not open MPEG file %s\n",
		fileName);
	return NULL;
    }

    /* read header information */

    /* now read first frame */
#ifdef BLEAH
    DecodeFrame(frame);
#endif

    /* now read rest of file for more information */


    fclose(fpointer);
}
#endif