|
Lynkeos
1.2
|
#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>
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 |
| #define _GNU_SOURCE |
| #define false 0; |
| #define true 1 |
| typedef int bool |
| int ffmpegConvertCurrentFrame | ( | FfmpegMovie * | movie | ) |
References img_convert_ctx, FfmpegMovie::pCodecCtx, FfmpegMovie::pConvertedFrame, and FfmpegMovie::pCurrentFrame.
Referenced by LynkeosFfmpegMovie::loadImageDataIn:.

| int ffmpegErrorOccured | ( | ) |
References _ffmpegErrorOccuredFlag.
| int ffmpegInit | ( | ) |
References ffmpegSetLastErrorOccured().
Referenced by main().

| char* ffmpegLastErrorOccured | ( | ) |
References _ffmpegLastErrorString.
| int ffmpegLoadMovie | ( | const char * | movieName, |
| FfmpegMovie * | resultMovie | ||
| ) |
References _ffmpegErrorOccuredFlag, ffmpegSetLastErrorOccured(), FfmpegMovie::pCodecCtx, FfmpegMovie::pConvertedFrame, FfmpegMovie::pCurrentFrame, FfmpegMovie::pFormatCtx, FfmpegMovie::ppmData, and FfmpegMovie::videoStream.
Referenced by ffmpegMovieBackToStart(), and LynkeosFfmpegMovie::initWithURL:byReference:.

| void ffmpegMovieBackToStart | ( | FfmpegMovie * | movie | ) |
References ffmpegLoadMovie(), FfmpegMovie::pCodecCtx, FfmpegMovie::pConvertedFrame, FfmpegMovie::pCurrentFrame, FfmpegMovie::pFormatCtx, FfmpegMovie::ppmData, and FfmpegMovie::videoStream.
Referenced by LynkeosFfmpegMovie::resetMovie.

| int ffmpegNextFrame | ( | FfmpegMovie * | movie | ) |
References GetNextFrame(), FfmpegMovie::pCodecCtx, FfmpegMovie::pCurrentFrame, FfmpegMovie::pFormatCtx, and FfmpegMovie::videoStream.
Referenced by LynkeosFfmpegMovie::getNextFrameTime.

| void ffmpegSetLastErrorOccured | ( | char * | msg, |
| int | errorCode | ||
| ) |
References _ffmpegErrorOccuredFlag, and _ffmpegLastErrorString.
Referenced by ffmpegInit(), and ffmpegLoadMovie().
| 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 | ( | const char * | fileName, |
| char * | buffer, | ||
| unsigned int | width, | ||
| unsigned int | height | ||
| ) |
|
static |
Referenced by ffmpegErrorOccured(), ffmpegLoadMovie(), and ffmpegSetLastErrorOccured().
|
static |
Referenced by ffmpegLastErrorOccured(), and ffmpegSetLastErrorOccured().
|
static |
Referenced by ffmpegConvertCurrentFrame().
1.8.15