xine-lib  1.2.9
ffmpeg_decoder.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2001-2014 the xine project
3  *
4  * This file is part of xine, a free video player.
5  *
6  * xine is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * xine is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19  */
20 
21 #ifndef HAVE_XINE_DECODER_H
22 #define HAVE_XINE_DECODER_H
23 
24 #ifdef HAVE_CONFIG_H
25 #include "config.h"
26 #endif
27 
28 #ifdef HAVE_FFMPEG_AVUTIL_H
29 # include <avcodec.h>
30 #else
31 # include <libavcodec/avcodec.h>
32 # include <libavutil/mem.h>
33 #endif
34 
35 typedef struct ff_codec_s {
36  uint32_t type;
37 #if defined LIBAVCODEC_VERSION_INT && LIBAVCODEC_VERSION_INT >= ((54<<16)|(25<<8))
38  enum AVCodecID id;
39 #else
40  enum CodecID id;
41 #endif
42  const char *name;
43 } ff_codec_t;
44 
45 void *init_audio_plugin (xine_t *xine, void *data);
46 void *init_video_plugin (xine_t *xine, void *data);
47 void *init_avio_input_plugin (xine_t *xine, void *data);
48 void *init_avformat_input_plugin (xine_t *xine, void *data);
49 void *init_avformat_demux_plugin (xine_t *xine, void *data);
50 
57 extern const input_info_t input_info_avio;
58 
59 /* communication between avio/avformat input and avformat demux plugins */
60 #define INPUT_OPTIONAL_DATA_pb 0x1000
61 #define INPUT_OPTIONAL_DATA_fmt_ctx 0x1001
62 
63 /* plugin ids */
64 #define INPUT_AVIO_ID "avio"
65 #define DEMUX_AVFORMAT_ID "avformat"
66 
67 extern pthread_once_t once_control;
68 void init_once_routine(void);
69 
70 extern pthread_mutex_t ffmpeg_lock;
71 
72 #endif
void * init_video_plugin(xine_t *xine, void *data)
Definition: ff_video_decoder.c:2924
const char * name
Definition: ffmpeg_decoder.h:42
enum CodecID id
Definition: ffmpeg_decoder.h:40
const decoder_info_t dec_info_ffmpeg_wmv8
Definition: ff_video_decoder.c:3023
Definition: ffmpeg_decoder.h:35
struct ff_codec_s ff_codec_t
void init_once_routine(void)
Definition: ffmpeg_decoder.c:45
void * init_avformat_input_plugin(xine_t *xine, void *data)
Definition: demux_avformat.c:234
void * init_audio_plugin(xine_t *xine, void *data)
Definition: ff_audio_decoder.c:1317
const decoder_info_t dec_info_ffmpeg_audio
Definition: ff_audio_decoder.c:1347
const decoder_info_t dec_info_ffmpeg_video
Definition: ff_video_decoder.c:3018
const input_info_t input_info_avformat
Definition: demux_avformat.c:256
pthread_once_t once_control
Definition: ffmpeg_decoder.c:42
Definition: xine_plugin.h:74
uint32_t type
Definition: ffmpeg_decoder.h:36
Definition: xine_internal.h:81
const input_info_t input_info_avio
Definition: input_avio.c:370
void * init_avformat_demux_plugin(xine_t *xine, void *data)
Definition: demux_avformat.c:870
Definition: xine_plugin.h:85
const demuxer_info_t demux_info_avformat
Definition: demux_avformat.c:885
void * init_avio_input_plugin(xine_t *xine, void *data)
Definition: input_avio.c:343
pthread_mutex_t ffmpeg_lock
Definition: ffmpeg_decoder.c:43
Definition: xine_plugin.h:90
const decoder_info_t dec_info_ffmpeg_wmv9
Definition: ff_video_decoder.c:3028