1 /* 2 * Copyright 2009 Stephan Aßmus <superstippi@gmx.de> 3 * All rights reserved. Distributed under the terms of the MIT license. 4 */ 5 6 7 #include "EncoderTable.h" 8 9 extern "C" { 10 #include "avcodec.h" 11 } 12 13 14 const EncoderDescription gEncoderTable[] = { 15 { 16 { 17 "MPEG4 Video", 18 "mpeg4", 19 0, 20 CODEC_ID_MPEG4, 21 { 0 } 22 }, 23 B_ANY_FORMAT_FAMILY, // TODO: Hm, actually not really /any/ family... 24 B_MEDIA_RAW_VIDEO, 25 B_MEDIA_ENCODED_VIDEO, 26 23 27 }, 28 { 29 { 30 "MPEG1 Video", 31 "mpeg1video", 32 0, 33 CODEC_ID_MPEG1VIDEO, 34 { 0 } 35 }, 36 B_MPEG_FORMAT_FAMILY, 37 B_MEDIA_RAW_VIDEO, 38 B_MEDIA_ENCODED_VIDEO, 39 10 40 }, 41 { 42 { 43 "MPEG2 Video", 44 "mpeg2video", 45 0, 46 CODEC_ID_MPEG2VIDEO, 47 { 0 } 48 }, 49 B_MPEG_FORMAT_FAMILY, 50 B_MEDIA_RAW_VIDEO, 51 B_MEDIA_ENCODED_VIDEO, 52 15 53 }, 54 { 55 { 56 "Raw Audio", 57 "pcm", 58 0, 59 CODEC_ID_PCM_S16LE, 60 { 0 } 61 }, 62 B_ANY_FORMAT_FAMILY, 63 B_MEDIA_RAW_AUDIO, 64 B_MEDIA_ENCODED_AUDIO, 65 1 66 }, 67 { 68 { 69 "Dolby Digital (AC-3)", 70 "ac3", 71 0, 72 CODEC_ID_AC3, 73 { 0 } 74 }, 75 B_ANY_FORMAT_FAMILY, 76 B_MEDIA_RAW_AUDIO, 77 B_MEDIA_ENCODED_AUDIO, 78 10 79 } 80 }; 81 82 const size_t gEncoderCount = sizeof(gEncoderTable) / sizeof(EncoderDescription); 83 84