Remove unused FFmpeg function declarations.
This commit is contained in:
parent
4d4580a042
commit
f36e961bb1
|
@ -861,7 +861,6 @@ bool FFmpegLibs::InitLibs(wxString libpath_format, bool WXUNUSED(showerr))
|
|||
FFMPEG_INITDYN(avformat, avformat_close_input);
|
||||
FFMPEG_INITDYN(avformat, avformat_write_header);
|
||||
FFMPEG_INITDYN(avformat, av_interleaved_write_frame);
|
||||
FFMPEG_INITDYN(avformat, av_iformat_next);
|
||||
FFMPEG_INITDYN(avformat, av_oformat_next);
|
||||
FFMPEG_INITDYN(avformat, avformat_new_stream);
|
||||
FFMPEG_INITDYN(avformat, avformat_alloc_context);
|
||||
|
@ -873,10 +872,7 @@ bool FFmpegLibs::InitLibs(wxString libpath_format, bool WXUNUSED(showerr))
|
|||
FFMPEG_INITDYN(avformat, av_dict_set);
|
||||
FFMPEG_INITDYN(avformat, avio_size);
|
||||
FFMPEG_INITDYN(avformat, avio_alloc_context);
|
||||
FFMPEG_INITALT(avformat, avio_read, get_buffer);
|
||||
FFMPEG_INITALT(avformat, avio_seek, url_fseek);
|
||||
FFMPEG_INITALT(avformat, av_guess_format, guess_format);
|
||||
FFMPEG_INITALT(avformat, av_match_ext, match_ext);
|
||||
|
||||
FFMPEG_INITDYN(avcodec, av_init_packet);
|
||||
FFMPEG_INITDYN(avcodec, av_free_packet);
|
||||
|
@ -885,13 +881,10 @@ bool FFmpegLibs::InitLibs(wxString libpath_format, bool WXUNUSED(showerr))
|
|||
FFMPEG_INITDYN(avcodec, avcodec_find_decoder);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_open2);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_decode_audio4);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_decode_audio3);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_encode_audio);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_encode_audio2);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_close);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_register_all);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_version);
|
||||
FFMPEG_INITDYN(avcodec, av_fast_realloc);
|
||||
FFMPEG_INITDYN(avcodec, av_codec_next);
|
||||
FFMPEG_INITDYN(avcodec, av_codec_is_encoder);
|
||||
FFMPEG_INITDYN(avcodec, avcodec_fill_audio_frame);
|
||||
|
|
48
src/FFmpeg.h
48
src/FFmpeg.h
|
@ -589,18 +589,6 @@ extern "C" {
|
|||
(AVCodecContext *avctx, AVFrame *frame, int *got_output, const AVPacket *avpkt),
|
||||
(avctx, frame, got_output, avpkt)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
avcodec_decode_audio3,
|
||||
(AVCodecContext *avctx, int16_t *samples, int *frame_size_ptr, AVPacket *avpkt),
|
||||
(avctx, samples, frame_size_ptr, avpkt)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
avcodec_encode_audio,
|
||||
(AVCodecContext *avctx, uint8_t *buf, int buf_size, const short *samples),
|
||||
(avctx, buf, buf_size, samples)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
avcodec_encode_audio2,
|
||||
|
@ -640,24 +628,12 @@ extern "C" {
|
|||
(void),
|
||||
()
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
void*,
|
||||
av_fast_realloc,
|
||||
(void *ptr, unsigned int *size, size_t min_size),
|
||||
(ptr, size, min_size)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
avformat_open_input,
|
||||
(AVFormatContext **ic_ptr, const char *filename, AVInputFormat *fmt, AVDictionary **options),
|
||||
(ic_ptr, filename, fmt, options)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
get_buffer,
|
||||
(AVIOContext *s, unsigned char *buf, int size),
|
||||
(s, buf, size)
|
||||
);
|
||||
FFMPEG_FUNCTION_NO_RETURN(
|
||||
av_register_all,
|
||||
(void),
|
||||
|
@ -692,12 +668,6 @@ extern "C" {
|
|||
(AVFormatContext *s, AVDictionary **options),
|
||||
(s, options)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
AVInputFormat*,
|
||||
av_iformat_next,
|
||||
(AVInputFormat *f),
|
||||
(f)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
AVOutputFormat*,
|
||||
av_oformat_next,
|
||||
|
@ -728,12 +698,6 @@ extern "C" {
|
|||
(const char *short_name, const char *filename, const char *mime_type),
|
||||
(short_name, filename, mime_type)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
av_match_ext,
|
||||
(const char *filename, const char *extensions),
|
||||
(filename, extensions)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
av_write_trailer,
|
||||
|
@ -820,18 +784,6 @@ extern "C" {
|
|||
(AVDictionary **pm, const char *key, const char *value, int flags),
|
||||
(pm, key, value, flags)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int,
|
||||
avio_read,
|
||||
(AVIOContext *s, unsigned char *buf, int size),
|
||||
(s, buf, size)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int64_t,
|
||||
avio_seek,
|
||||
(AVIOContext *s, int64_t offset, int whence),
|
||||
(s, offset, whence)
|
||||
);
|
||||
FFMPEG_FUNCTION_WITH_RETURN(
|
||||
int64_t,
|
||||
avio_size,
|
||||
|
|
Loading…
Reference in New Issue
Block a user