areaDetector 3-14
EPICS areaDetector framework
ffmpegCommon.h
Go to the documentation of this file.
1#ifndef ffmpegCommon_H
2#define ffmpegCommon_H
3
4#ifndef __STDC_CONSTANT_MACROS
5#define __STDC_CONSTANT_MACROS
6#endif
7
8/* ffmpeg includes */
9extern "C" {
10#include "libavcodec/avcodec.h"
11#include "libswscale/swscale.h"
12#include "libavformat/avformat.h"
13#include "libavutil/imgutils.h"
14}
15
16/* areaDetector includes */
17#include "NDArray.h"
18
19/* asyn includes */
20#include "asynDriver.h"
21
22/* This wraps the initialisation of the ffmpeg library */
23void ffmpegInitialise();
24
25/* This is needed to give a neutral colour to Mono8 jpegs. Needs to be at
26 least maxw * maxh / 2 in size */
27#define NEUTRAL_FRAME_SIZE 4000 * 3000 / 2
28
29/* This formats an NDArray so that it matches the input for a particular
30 codec context */
31int formatArray(NDArray *pArray, asynUser *pasynUser, AVFrame *inPicture,
32 struct SwsContext **pCtx, AVCodecContext *c, AVFrame *scPicture);
33
34#endif
N-dimensional array class; each array has a set of dimensions, a data type, pointer to data,...
Definition NDArray.h:99
int formatArray(NDArray *pArray, asynUser *pasynUser, AVFrame *inPicture, struct SwsContext **pCtx, AVCodecContext *c, AVFrame *scPicture)
Format an NDArray as an AVFrame using the codec context c.
Definition ffmpegCommon.cpp:24
void ffmpegInitialise()
Initialise the ffmpeg library.
Definition ffmpegCommon.cpp:7