#include "FfmpegWriter.h"
#include "ffmpeg_api.h"
#include <yarp/os/all.h>
#include <yarp/sig/all.h>
#include <yarp/os/Log.h>
#include <yarp/os/LogComponent.h>
#include <cstdlib>
#include <cstring>
#include <cmath>
Go to the source code of this file.
Macros | |
#define | M_PI 3.1415926535897931 |
#define | STREAM_FRAME_RATE 25 /* 25 images/s */ |
#define | STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ |
#define | STREAM_PIX_WORK AV_PIX_FMT_RGB24 |
Functions | |
static AVStream * | add_audio_stream (AVFormatContext *oc, AVCodecID codec_id) |
static void | open_audio (AVFormatContext *oc, AVStream *st) |
static void | get_audio_frame (int16_t *samples, int frame_size, int nb_channels) |
static void | make_audio_frame (AVCodecContext *c, AVFrame *&frame, void *&samples) |
static void | write_audio_frame (AVFormatContext *oc, AVStream *st) |
static void | write_audio_frame (AVFormatContext *oc, AVStream *st, Sound &snd) |
static void | close_audio (AVFormatContext *oc, AVStream *st) |
static AVStream * | add_video_stream (AVFormatContext *oc, AVCodecID codec_id, int w, int h, int framerate) |
static AVFrame * | alloc_picture (int pix_fmt, int width, int height) |
static void | fill_rgb_image (AVFrame *pict, int frame_index, int width, int height, ImageOf< PixelRgb > &img) |
Variables | |
float | t |
float | tincr |
float | tincr2 |
int16_t * | samples |
int | samples_size |
int | samples_at |
int | samples_channels |
uint8_t * | audio_outbuf |
int | audio_outbuf_size |
int | audio_input_frame_size |
#define M_PI 3.1415926535897931 |
Definition at line 51 of file FfmpegWriter.cpp.
Definition at line 54 of file FfmpegWriter.cpp.
#define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ |
Definition at line 55 of file FfmpegWriter.cpp.
#define STREAM_PIX_WORK AV_PIX_FMT_RGB24 |
Definition at line 56 of file FfmpegWriter.cpp.
|
static |
Definition at line 85 of file FfmpegWriter.cpp.
|
static |
Definition at line 337 of file FfmpegWriter.cpp.
Definition at line 384 of file FfmpegWriter.cpp.
|
static |
Definition at line 324 of file FfmpegWriter.cpp.
|
static |
Definition at line 452 of file FfmpegWriter.cpp.
Definition at line 165 of file FfmpegWriter.cpp.
|
static |
Definition at line 181 of file FfmpegWriter.cpp.
|
static |
Definition at line 106 of file FfmpegWriter.cpp.
|
static |
Definition at line 210 of file FfmpegWriter.cpp.
|
static |
Definition at line 252 of file FfmpegWriter.cpp.
int audio_input_frame_size |
Definition at line 80 of file FfmpegWriter.cpp.
uint8_t* audio_outbuf |
Definition at line 78 of file FfmpegWriter.cpp.
int audio_outbuf_size |
Definition at line 79 of file FfmpegWriter.cpp.
int16_t* samples |
Definition at line 73 of file FfmpegWriter.cpp.
int samples_at |
Definition at line 75 of file FfmpegWriter.cpp.
int samples_channels |
Definition at line 76 of file FfmpegWriter.cpp.
int samples_size |
Definition at line 74 of file FfmpegWriter.cpp.
float t |
Definition at line 71 of file FfmpegWriter.cpp.
float tincr |
Definition at line 71 of file FfmpegWriter.cpp.
float tincr2 |
Definition at line 71 of file FfmpegWriter.cpp.