YARP  2.3.70.1
Yet Another Robot Platform
ffmpeg_api.h File Reference
#include <avcodec.h>
#include <avformat.h>
#include <avdevice.h>
#include <swscale.h>
#include <mathematics.h>
+ Include dependency graph for ffmpeg_api.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define __STDC_CONSTANT_MACROS
 
#define USE_AVFORMAT_OPEN_INPUT
 
#define USE_AV_FRAME_ALLOC
 
#define USE_AUDIO4
 
#define CodecType   AVMediaType
 
#define CODEC_TYPE_UNKNOWN   AVMEDIA_TYPE_UNKNOWN
 
#define CODEC_TYPE_VIDEO   AVMEDIA_TYPE_VIDEO
 
#define CODEC_TYPE_AUDIO   AVMEDIA_TYPE_AUDIO
 
#define CODEC_TYPE_DATA   AVMEDIA_TYPE_DATA
 
#define CODEC_TYPE_SUBTITLE   AVMEDIA_TYPE_SUBTITLE
 
#define CODEC_TYPE_ATTACHMENT   AVMEDIA_TYPE_ATTACHMENT
 
#define CODEC_TYPE_NB   AVMEDIA_TYPE_NB
 
#define PKT_FLAG_KEY   AV_PKT_FLAG_KEY
 
#define guess_format   av_guess_format
 
#define av_alloc_format_context   avformat_alloc_context
 
#define FFEPOCH3
 
#define YARP_avcodec_alloc_frame   av_frame_alloc
 
#define YARP_av_find_stream_info(a)   avformat_find_stream_info(a,NULL)
 
#define YARP_dump_format   av_dump_format
 
#define YARP_av_close_input_file(x)   avformat_close_input(&(x))
 
#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000
 
#define CodecID   AVCodecID
 
#define CODEC_ID_NONE   AV_CODEC_ID_NONE
 
#define CODEC_ID_PCM_S16LE   AV_CODEC_ID_PCM_S16LE
 
#define CODEC_ID_PCM_S16BE   AV_CODEC_ID_PCM_S16BE
 
#define CODEC_ID_PCM_U16LE   AV_CODEC_ID_PCM_U16LE
 
#define CODEC_ID_PCM_U16BE   AV_CODEC_ID_PCM_U16BE
 
#define CODEC_ID_MPEG1VIDEO   AV_CODEC_ID_MPEG1VIDEO
 
#define CODEC_ID_MPEG2VIDEO   AV_CODEC_ID_MPEG2VIDEO
 
#define url_fopen   avio_open
 
#define url_fclose   avio_close
 
#define URL_WRONLY   AVIO_FLAG_WRITE
 
#define AV_NO_SET_PARAMETERS
 
#define av_write_header(x)   avformat_write_header(x,NULL)
 
#define av_new_stream(x, v)   avformat_new_stream(x,NULL)
 

Functions

int stable_img_convert (AVPicture *dst, int dst_pix_fmt, const AVPicture *src, int src_pix_fmt, int src_width, int src_height)
 

Macro Definition Documentation

◆ __STDC_CONSTANT_MACROS

#define __STDC_CONSTANT_MACROS

Definition at line 15 of file ffmpeg_api.h.

◆ av_alloc_format_context

#define av_alloc_format_context   avformat_alloc_context

Definition at line 68 of file ffmpeg_api.h.

◆ av_new_stream

#define av_new_stream (   x,
  v 
)    avformat_new_stream(x,NULL)

Definition at line 98 of file ffmpeg_api.h.

◆ AV_NO_SET_PARAMETERS

#define AV_NO_SET_PARAMETERS

Definition at line 96 of file ffmpeg_api.h.

◆ av_write_header

#define av_write_header (   x)    avformat_write_header(x,NULL)

Definition at line 97 of file ffmpeg_api.h.

◆ AVCODEC_MAX_AUDIO_FRAME_SIZE

#define AVCODEC_MAX_AUDIO_FRAME_SIZE   192000

Definition at line 84 of file ffmpeg_api.h.

◆ CODEC_ID_MPEG1VIDEO

#define CODEC_ID_MPEG1VIDEO   AV_CODEC_ID_MPEG1VIDEO

Definition at line 91 of file ffmpeg_api.h.

◆ CODEC_ID_MPEG2VIDEO

#define CODEC_ID_MPEG2VIDEO   AV_CODEC_ID_MPEG2VIDEO

Definition at line 92 of file ffmpeg_api.h.

◆ CODEC_ID_NONE

#define CODEC_ID_NONE   AV_CODEC_ID_NONE

Definition at line 86 of file ffmpeg_api.h.

◆ CODEC_ID_PCM_S16BE

#define CODEC_ID_PCM_S16BE   AV_CODEC_ID_PCM_S16BE

Definition at line 88 of file ffmpeg_api.h.

◆ CODEC_ID_PCM_S16LE

#define CODEC_ID_PCM_S16LE   AV_CODEC_ID_PCM_S16LE

Definition at line 87 of file ffmpeg_api.h.

◆ CODEC_ID_PCM_U16BE

#define CODEC_ID_PCM_U16BE   AV_CODEC_ID_PCM_U16BE

Definition at line 90 of file ffmpeg_api.h.

◆ CODEC_ID_PCM_U16LE

#define CODEC_ID_PCM_U16LE   AV_CODEC_ID_PCM_U16LE

Definition at line 89 of file ffmpeg_api.h.

◆ CODEC_TYPE_ATTACHMENT

#define CODEC_TYPE_ATTACHMENT   AVMEDIA_TYPE_ATTACHMENT

Definition at line 64 of file ffmpeg_api.h.

◆ CODEC_TYPE_AUDIO

#define CODEC_TYPE_AUDIO   AVMEDIA_TYPE_AUDIO

Definition at line 61 of file ffmpeg_api.h.

◆ CODEC_TYPE_DATA

#define CODEC_TYPE_DATA   AVMEDIA_TYPE_DATA

Definition at line 62 of file ffmpeg_api.h.

◆ CODEC_TYPE_NB

#define CODEC_TYPE_NB   AVMEDIA_TYPE_NB

Definition at line 65 of file ffmpeg_api.h.

◆ CODEC_TYPE_SUBTITLE

#define CODEC_TYPE_SUBTITLE   AVMEDIA_TYPE_SUBTITLE

Definition at line 63 of file ffmpeg_api.h.

◆ CODEC_TYPE_UNKNOWN

#define CODEC_TYPE_UNKNOWN   AVMEDIA_TYPE_UNKNOWN

Definition at line 59 of file ffmpeg_api.h.

◆ CODEC_TYPE_VIDEO

#define CODEC_TYPE_VIDEO   AVMEDIA_TYPE_VIDEO

Definition at line 60 of file ffmpeg_api.h.

◆ CodecID

#define CodecID   AVCodecID

Definition at line 85 of file ffmpeg_api.h.

◆ CodecType

#define CodecType   AVMediaType

Definition at line 58 of file ffmpeg_api.h.

◆ FFEPOCH3

#define FFEPOCH3

Definition at line 69 of file ffmpeg_api.h.

◆ guess_format

#define guess_format   av_guess_format

Definition at line 67 of file ffmpeg_api.h.

◆ PKT_FLAG_KEY

#define PKT_FLAG_KEY   AV_PKT_FLAG_KEY

Definition at line 66 of file ffmpeg_api.h.

◆ url_fclose

#define url_fclose   avio_close

Definition at line 94 of file ffmpeg_api.h.

◆ url_fopen

#define url_fopen   avio_open

Definition at line 93 of file ffmpeg_api.h.

◆ URL_WRONLY

#define URL_WRONLY   AVIO_FLAG_WRITE

Definition at line 95 of file ffmpeg_api.h.

◆ USE_AUDIO4

#define USE_AUDIO4

Definition at line 37 of file ffmpeg_api.h.

◆ USE_AV_FRAME_ALLOC

#define USE_AV_FRAME_ALLOC

Definition at line 36 of file ffmpeg_api.h.

◆ USE_AVFORMAT_OPEN_INPUT

#define USE_AVFORMAT_OPEN_INPUT

Definition at line 32 of file ffmpeg_api.h.

◆ YARP_av_close_input_file

#define YARP_av_close_input_file (   x)    avformat_close_input(&(x))

Definition at line 83 of file ffmpeg_api.h.

◆ YARP_av_find_stream_info

#define YARP_av_find_stream_info (   a)    avformat_find_stream_info(a,NULL)

Definition at line 81 of file ffmpeg_api.h.

◆ YARP_avcodec_alloc_frame

#define YARP_avcodec_alloc_frame   av_frame_alloc

Definition at line 75 of file ffmpeg_api.h.

◆ YARP_dump_format

#define YARP_dump_format   av_dump_format

Definition at line 82 of file ffmpeg_api.h.

Function Documentation

◆ stable_img_convert()

int stable_img_convert ( AVPicture *  dst,
int  dst_pix_fmt,
const AVPicture *  src,
int  src_pix_fmt,
int  src_width,
int  src_height 
)

Definition at line 11 of file ffmpeg_api.cpp.