Lynkeos  1.2
Defines | Typedefs | Functions | Variables
ffmpeg_access.c File Reference
#include "ffmpeg_access.h"
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <stdio.h>
#include <tiffio.h>
#include <errno.h>
Include dependency graph for ffmpeg_access.c:

Defines

#define true   1
#define false   0;

Typedefs

typedef int bool

Functions

int GetNextFrame (AVFormatContext *pFormatCtx, AVCodecContext *pCodecCtx, int videoStream, AVFrame *pFrame)
int ffmpegNextFrame (FfmpegMovie *movie)
int ffmpegConvertCurrentFrame (FfmpegMovie *movie)
void SaveFrame (AVFrame *pFrame, int width, int height, int iFrame)
void ffmpegSetLastErrorOccured (char *msg, int errorCode)
int ffmpegInit ()
int ffmpegErrorOccured ()
char * ffmpegLastErrorOccured ()
void ffmpegMovieBackToStart (FfmpegMovie *movie)
int ffmpegLoadMovie (char *movieName, FfmpegMovie *resultMovie)
int saveTIFFPictureToFile (char *fileName, char *buffer, unsigned int width, unsigned int height)

Variables

static int _ffmpegErrorOccuredFlag
static char * _ffmpegLastErrorString
static struct SwsContext * img_convert_ctx

Define Documentation

#define false   0;
#define true   1

Typedef Documentation

typedef int bool

Function Documentation

int ffmpegInit ( )

References ffmpegSetLastErrorOccured().

Referenced by main().

int ffmpegLoadMovie ( char *  movieName,
FfmpegMovie resultMovie 
)
int ffmpegNextFrame ( FfmpegMovie movie)
void ffmpegSetLastErrorOccured ( char *  msg,
int  errorCode 
)
int GetNextFrame ( AVFormatContext *  pFormatCtx,
AVCodecContext *  pCodecCtx,
int  videoStream,
AVFrame *  pFrame 
)

Referenced by ffmpegNextFrame().

void SaveFrame ( AVFrame *  pFrame,
int  width,
int  height,
int  iFrame 
)
int saveTIFFPictureToFile ( char *  fileName,
char *  buffer,
unsigned int  width,
unsigned int  height 
)

Variable Documentation

char* _ffmpegLastErrorString [static]
struct SwsContext* img_convert_ctx [static]