VuoFfmpegUtility interface.
Definition in file VuoFfmpegUtility.h.
Go to the source code of this file.
Namespaces | |
VuoFfmpegUtility | |
Helper methods for working with ffmpeg. | |
Functions | |
static double | VuoFfmpegUtility::AvTimeToSecond (AVStream *stream, int64_t pts) |
Converts AVStream presentation timestamp to fractional seconds. More... | |
static int64_t | VuoFfmpegUtility::AvTimeToMicrosecond (AVStream *stream, int64_t pts) |
Converts AVStream presentation timestamp to integer microseconds. More... | |
static int64_t | VuoFfmpegUtility::SecondToAvTime (AVStream *stream, double second) |
Converts seconds to microseconds. More... | |
static int | VuoFfmpegUtility::FirstStreamIndexWithMediaType (AVFormatContext *context, AVMediaType type) |
Return the index of the first stream matching the media type. More... | |
static void | VuoFfmpegUtility::FlipImageBytesVertical (uint8_t *buffer, uint width, uint height) |
Flip an image vertically. More... | |
static bool | VuoFfmpegUtility::ConvertAVFrameToRGB (AVFrame *dst, AVPixelFormat dst_pix_fmt, AVFrame *src, AVPixelFormat pix_fmt, int width, int height) |
Convert an AVFrame from whatever format it was originally in to RGB. More... | |
static VuoImage | VuoFfmpegUtility::VuoImageWithAVFrame (AVCodecContext *videoCodecCtx, AVFrame *frame) |
Convert an AVFrame to a VuoImage. More... | |
Variables | |
const double | VuoFfmpegUtility::USEC_TO_SECOND = .000001 |
Multiply by this to convert microsecond to seconds. More... | |
const double | VuoFfmpegUtility::SEC_TO_USEC = 1000000 |
Multiply a second by this value to convert to microsecond. More... | |
bool | VuoFfmpegUtility::warnedAboutSlowFlip = false |
Whether we've already shown a warning about using the slow flipper code path. More... | |