2
* ffmpeglib.c - Interface to access the ffmpeg libs.
5
* Andreas Matthies <andreas.matthies@gmx.net>
6
* Andreas Boose <viceteam@t-online.de>
8
* This file is part of VICE, the Versatile Commodore Emulator.
9
* See README for copyright notice.
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; if not, write to the Free Software
23
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
32
#include "gfxoutputdrv/ffmpeglib.h"
35
#define GET_PROC_ADDRESS_AND_TEST_AVCODEC(_name_) \
36
lib->p_##_name_ = _name_;
38
#define GET_PROC_ADDRESS_AND_TEST_AVFORMAT(_name_) \
39
lib->p_##_name_ = _name_;
42
int ffmpeglib_open(ffmpeglib_t *lib)
44
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avcodec_open);
45
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avcodec_close);
46
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avcodec_find_encoder);
47
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avcodec_encode_audio);
48
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avcodec_encode_video);
49
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avpicture_fill);
50
GET_PROC_ADDRESS_AND_TEST_AVCODEC(avpicture_get_size);
51
GET_PROC_ADDRESS_AND_TEST_AVCODEC(img_convert);
52
GET_PROC_ADDRESS_AND_TEST_AVCODEC(av_free);
54
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_register_all);
55
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_new_stream);
56
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_set_parameters);
57
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_write_header);
58
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_write_frame);
59
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(av_write_trailer);
60
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(url_fopen);
61
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(url_fclose);
62
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(dump_format);
63
GET_PROC_ADDRESS_AND_TEST_AVFORMAT(guess_format);
68
void ffmpeglib_close(ffmpeglib_t *lib)