Helper methods for working with ffmpeg.
|
static double | AvTimeToSecond (AVStream *stream, int64_t pts) |
| Converts AVStream presentation timestamp to fractional seconds.
|
|
static int64_t | AvTimeToMicrosecond (AVStream *stream, int64_t pts) |
| Converts AVStream presentation timestamp to integer microseconds.
|
|
static int64_t | SecondToAvTime (AVStream *stream, double second) |
| Converts seconds to microseconds.
|
|
static int | FirstStreamIndexWithMediaType (AVFormatContext *context, AVMediaType type) |
| Return the index of the first stream matching the media type.
|
|
static void | FlipImageBytesVertical (uint8_t *buffer, uint width, uint height) |
| Flip an image vertically.
|
|
static bool | ConvertAVPictureToRGB (AVPicture *dst, PixelFormat dst_pix_fmt, AVPicture *src, PixelFormat pix_fmt, int width, int height) |
| Convert an AVPicture from whatever format it was originally in to RGB.
|
|
static VuoImage | VuoImageWithAVFrame (AVCodecContext *videoCodecCtx, AVFrame *frame) |
| Convert an AVFrame to a VuoImage.
|
|
static char * | AVCodecIDToString (AVCodecID id) |
| Return a human-readable string for a codec.
|
|