Lynkeos  1.2
Macros | 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:

Macros

#define _GNU_SOURCE
 
#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 (const char *movieName, FfmpegMovie *resultMovie)
 
int saveTIFFPictureToFile (const char *fileName, char *buffer, unsigned int width, unsigned int height)
 

Variables

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

Macro Definition Documentation

◆ _GNU_SOURCE

#define _GNU_SOURCE

◆ false

#define false   0;

◆ true

#define true   1

Typedef Documentation

◆ bool

typedef int bool

Function Documentation

◆ ffmpegConvertCurrentFrame()

int ffmpegConvertCurrentFrame ( FfmpegMovie movie)

◆ ffmpegErrorOccured()

int ffmpegErrorOccured ( )

◆ ffmpegInit()

int ffmpegInit ( )

References ffmpegSetLastErrorOccured().

Referenced by main().

Here is the caller graph for this function:

◆ ffmpegLastErrorOccured()

char* ffmpegLastErrorOccured ( )

◆ ffmpegLoadMovie()

int ffmpegLoadMovie ( const char *  movieName,
FfmpegMovie resultMovie 
)

◆ ffmpegMovieBackToStart()

void ffmpegMovieBackToStart ( FfmpegMovie movie)

◆ ffmpegNextFrame()

int ffmpegNextFrame ( FfmpegMovie movie)

◆ ffmpegSetLastErrorOccured()

void ffmpegSetLastErrorOccured ( char *  msg,
int  errorCode 
)

◆ GetNextFrame()

int GetNextFrame ( AVFormatContext *  pFormatCtx,
AVCodecContext *  pCodecCtx,
int  videoStream,
AVFrame *  pFrame 
)

Referenced by ffmpegNextFrame().

◆ SaveFrame()

void SaveFrame ( AVFrame *  pFrame,
int  width,
int  height,
int  iFrame 
)

◆ saveTIFFPictureToFile()

int saveTIFFPictureToFile ( const char *  fileName,
char *  buffer,
unsigned int  width,
unsigned int  height 
)

Referenced by MyDocument::saveStackedImage:.

Here is the caller graph for this function:

Variable Documentation

◆ _ffmpegErrorOccuredFlag

int _ffmpegErrorOccuredFlag
static

◆ _ffmpegLastErrorString

char* _ffmpegLastErrorString
static

◆ img_convert_ctx

struct SwsContext* img_convert_ctx
static