xref: /haiku/src/add-ons/media/plugins/ffmpeg/EncoderTable.h (revision 4bd0c1066b227cec4b79883bdef697c7a27f2e90)
1 /*
2  * Copyright 2009-2010 Stephan Aßmus <superstippi@gmx.de>
3  * All rights reserved. Distributed under the terms of the MIT license.
4  */
5 #ifndef ENCODER_TABLE_H
6 #define ENCODER_TABLE_H
7 
8 
9 #include <MediaFormats.h>
10 
11 extern "C" {
12 	#include "avcodec.h"
13 }
14 
15 
16 #if LIBAVCODEC_VERSION_INT > ((54 << 16) | (50 << 8))
17 typedef AVCodecID CodecID;
18 #endif
19 
20 
21 struct EncoderDescription {
22 	media_codec_info		codec_info;
23 	media_format_family		format_family;
24 	media_type				input_type;
25 	media_type				output_type;
26 	int						bit_rate_scale;
27 };
28 
29 
30 extern const EncoderDescription gEncoderTable[];
31 extern const size_t gEncoderCount;
32 
33 CodecID raw_audio_codec_id_for(const media_format& format);
34 
35 
36 #endif // ENCODER_TABLE_H
37