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