ffmpegCommon.h

Go to the documentation of this file.
00001 #ifndef ffmpegCommon_H
00002 #define ffmpegCommon_H
00003 
00004 #ifndef __STDC_CONSTANT_MACROS
00005 #define __STDC_CONSTANT_MACROS
00006 #endif
00007 
00008 /* ffmpeg includes */
00009 extern "C" {
00010 #include "libavcodec/avcodec.h"
00011 #include "libswscale/swscale.h"
00012 #include "libavformat/avformat.h"
00013 }
00014 
00015 /* areaDetector includes */
00016 #include "NDArray.h"
00017 
00018 /* asyn includes */
00019 #include "asynDriver.h"
00020 
00021 /* This wraps the initialisation of the ffmpeg library */
00022 void ffmpegInitialise();
00023 
00024 /* This is needed to give a neutral colour to Mono8 jpegs. Needs to be at
00025    least maxw * maxh / 2 in size */
00026 #define NEUTRAL_FRAME_SIZE 4000 * 3000 / 2
00027 
00028 /* This formats an NDArray so that it matches the input for a particular
00029    codec context */
00030 int formatArray(NDArray *pArray, asynUser *pasynUser, AVFrame *inPicture,
00031                 struct SwsContext **pCtx, AVCodecContext *c, AVFrame *scPicture);
00032 
00033 #endif
00034 
 All Classes Files Functions Variables Defines