~ubuntu-branches/ubuntu/natty/vice/natty

« back to all changes in this revision

Viewing changes to src/arch/unix/ffmpeglib.c

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-11 18:30:16 UTC
  • mfrom: (1.1.8 upstream) (9.2.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100211183016-f6n8usn3tzp0u6dp
Tags: 2.2.dfsg-1
* New upstream release, C64 DTV is included so update package description
  and add it to the menu.
* Drop patch fixing build failure with gcc-4.4 , applied upstream.
* Fix some lintian problems and clean up debian/rules .

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * ffmpeglib.c - Interface to access the ffmpeg libs.
3
 
 *
4
 
 * Written by
5
 
 *  Andreas Matthies <andreas.matthies@gmx.net>
6
 
 *  Andreas Boose <viceteam@t-online.de>
7
 
 * 
8
 
 * This file is part of VICE, the Versatile Commodore Emulator.
9
 
 * See README for copyright notice.
10
 
 *
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.
15
 
 *
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.
20
 
 *
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
24
 
 *  02111-1307  USA.
25
 
 *
26
 
 */
27
 
 
28
 
#include "vice.h"
29
 
 
30
 
#ifdef HAVE_FFMPEG 
31
 
 
32
 
#include "gfxoutputdrv/ffmpeglib.h"
33
 
 
34
 
 
35
 
#define GET_PROC_ADDRESS_AND_TEST_AVCODEC(_name_) \
36
 
    lib->p_##_name_ = _name_;
37
 
 
38
 
#define GET_PROC_ADDRESS_AND_TEST_AVFORMAT(_name_) \
39
 
    lib->p_##_name_ = _name_;
40
 
 
41
 
 
42
 
int ffmpeglib_open(ffmpeglib_t *lib)
43
 
{
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);
53
 
 
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);
64
 
 
65
 
    return 0;
66
 
}
67
 
 
68
 
void ffmpeglib_close(ffmpeglib_t *lib)
69
 
{
70
 
}
71
 
 
72
 
#endif
73