xref: /haiku/src/add-ons/media/plugins/ffmpeg/EncoderTable.h (revision c90684742e7361651849be4116d0e5de3a817194)
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 struct EncoderDescription {
17 	media_codec_info		codec_info;
18 	media_format_family		format_family;
19 	media_type				input_type;
20 	media_type				output_type;
21 	int						bit_rate_scale;
22 };
23 
24 
25 extern const EncoderDescription gEncoderTable[];
26 extern const size_t gEncoderCount;
27 
28 CodecID raw_audio_codec_id_for(const media_format& format);
29 
30 
31 #endif // ENCODER_TABLE_H
32