1 /*********************************************************************** 2 * AUTHOR: Marcus Overhagen 3 * FILE: MediaFormats.cpp 4 * DESCR: 5 ***********************************************************************/ 6 #include <MediaFormats.h> 7 #include "debug.h" 8 9 10 /************************************************************* 11 * 12 *************************************************************/ 13 14 status_t get_next_encoder(int32 *cookie, 15 const media_file_format *mfi, // this comes from get_next_file_format() 16 const media_format *input_format, // this is the type of data given to the encoder 17 media_format *output_format, // this is the type of data encoder will output 18 media_codec_info *ei) // information about the encoder 19 { 20 UNIMPLEMENTED(); 21 return B_ERROR; 22 } 23 24 25 status_t get_next_encoder(int32 *cookie, 26 const media_file_format *mfi, 27 const media_format *input_format, 28 const media_format *output_format, 29 media_codec_info *ei, 30 media_format *accepted_input_format, 31 media_format *accepted_output_format) 32 { 33 UNIMPLEMENTED(); 34 return B_ERROR; 35 } 36 37 38 status_t get_next_encoder(int32 *cookie, media_codec_info *ei) 39 { 40 UNIMPLEMENTED(); 41 return B_ERROR; 42 } 43 44 45 bool does_file_accept_format(const media_file_format *mfi, 46 media_format *format, uint32 flags) 47 { 48 UNIMPLEMENTED(); 49 return false; 50 } 51 52 /************************************************************* 53 * _media_format_description 54 *************************************************************/ 55 56 _media_format_description::_media_format_description() 57 { 58 UNIMPLEMENTED(); 59 } 60 61 _media_format_description::~_media_format_description() 62 { 63 UNIMPLEMENTED(); 64 } 65 66 _media_format_description::_media_format_description(const _media_format_description & other) 67 { 68 UNIMPLEMENTED(); 69 } 70 71 _media_format_description & 72 _media_format_description::operator=(const _media_format_description & other) 73 { 74 UNIMPLEMENTED(); 75 return *this; 76 } 77 78 /************************************************************* 79 * 80 *************************************************************/ 81 82 83 namespace BPrivate { 84 85 class addon_list 86 { 87 }; 88 89 90 void dec_load_hook(void *arg, image_id imgid) 91 { 92 UNIMPLEMENTED(); 93 }; 94 95 void extractor_load_hook(void *arg, image_id imgid) 96 { 97 UNIMPLEMENTED(); 98 }; 99 100 class Extractor 101 { 102 }; 103 104 } 105 106 /************************************************************* 107 * public BMediaFormats 108 *************************************************************/ 109 110 BMediaFormats::BMediaFormats() 111 { 112 UNIMPLEMENTED(); 113 } 114 115 /* virtual */ 116 BMediaFormats::~BMediaFormats() 117 { 118 UNIMPLEMENTED(); 119 } 120 121 status_t 122 BMediaFormats::InitCheck() 123 { 124 UNIMPLEMENTED(); 125 126 return B_OK; 127 } 128 129 status_t 130 BMediaFormats::MakeFormatFor(const media_format_description * descs, 131 int32 desc_count, 132 media_format * io_format, 133 uint32 flags, 134 void * _reserved) 135 { 136 UNIMPLEMENTED(); 137 return B_ERROR; 138 } 139 140 141 status_t 142 BMediaFormats::GetFormatFor(const media_format_description & desc, 143 media_format * out_format) 144 { 145 UNIMPLEMENTED(); 146 return B_ERROR; 147 } 148 149 150 /* static */ status_t 151 BMediaFormats::GetBeOSFormatFor(uint32 fourcc, 152 media_format * out_format, 153 media_type type) 154 { 155 UNIMPLEMENTED(); 156 return B_ERROR; 157 } 158 159 160 /* static */ status_t 161 BMediaFormats::GetAVIFormatFor(uint32 fourcc, 162 media_format * out_format, 163 media_type type) 164 { 165 UNIMPLEMENTED(); 166 return B_ERROR; 167 } 168 169 170 /* static */ status_t 171 BMediaFormats::GetQuicktimeFormatFor(uint32 vendor, 172 uint32 fourcc, 173 media_format * out_format, 174 media_type type) 175 { 176 UNIMPLEMENTED(); 177 return B_ERROR; 178 } 179 180 181 status_t 182 BMediaFormats::GetCodeFor(const media_format & format, 183 media_format_family family, 184 media_format_description * out_description) 185 { 186 UNIMPLEMENTED(); 187 return B_ERROR; 188 } 189 190 191 status_t 192 BMediaFormats::RewindFormats() 193 { 194 UNIMPLEMENTED(); 195 return B_ERROR; 196 } 197 198 199 status_t 200 BMediaFormats::GetNextFormat(media_format * out_format, 201 media_format_description * out_description) 202 { 203 UNIMPLEMENTED(); 204 return B_ERROR; 205 } 206 207 // You need to lock/unlock (only) when using RewindFormats()/GetNextFormat() 208 bool 209 BMediaFormats::Lock() 210 { 211 UNIMPLEMENTED(); 212 return true; 213 } 214 215 void 216 BMediaFormats::Unlock() 217 { 218 UNIMPLEMENTED(); 219 } 220 221 /* --- begin deprecated API --- */ 222 status_t 223 BMediaFormats::MakeFormatFor(const media_format_description & desc, 224 const media_format & in_format, 225 media_format * out_format) 226 { 227 UNIMPLEMENTED(); 228 return B_ERROR; 229 } 230 231 /************************************************************* 232 * private BMediaFormats 233 *************************************************************/ 234 235 void 236 BMediaFormats::clear_formats() 237 { 238 UNIMPLEMENTED(); 239 } 240 241 /* static */ void 242 BMediaFormats::ex_clear_formats_imp() 243 { 244 UNIMPLEMENTED(); 245 } 246 247 /* static */ void 248 BMediaFormats::clear_formats_imp() 249 { 250 UNIMPLEMENTED(); 251 } 252 253 status_t 254 BMediaFormats::get_formats() 255 { 256 UNIMPLEMENTED(); 257 return B_ERROR; 258 } 259 260 /* static */ status_t 261 BMediaFormats::get_formats_imp() 262 { 263 UNIMPLEMENTED(); 264 return B_ERROR; 265 } 266 267 /* static */ BMessenger & 268 BMediaFormats::get_server() 269 { 270 UNIMPLEMENTED(); 271 static BMessenger dummy; 272 return dummy; 273 } 274 275 /* static */ status_t 276 BMediaFormats::bind_addon( 277 const char * addon, 278 const media_format * formats, 279 int32 count) 280 { 281 UNIMPLEMENTED(); 282 return B_OK; 283 } 284 285 /* static */ bool 286 BMediaFormats::is_bound( 287 const char * addon, 288 const media_format * formats, 289 int32 count) 290 { 291 UNIMPLEMENTED(); 292 return false; 293 } 294 295 296 /* static */ status_t 297 BMediaFormats::find_addons( 298 const media_format * format, 299 BPrivate::addon_list & addons) 300 { 301 UNIMPLEMENTED(); 302 return B_ERROR; 303 } 304 305 /************************************************************* 306 * static BMediaFormats variables 307 *************************************************************/ 308 309 int32 BMediaFormats::s_cleared; 310 BMessenger BMediaFormats::s_server; 311 BList BMediaFormats::s_formats; 312 BLocker BMediaFormats::s_lock("BMediaFormats locker"); 313 314 /************************************************************* 315 * 316 *************************************************************/ 317 318 bool operator==(const media_format_description & a, const media_format_description & b) 319 { 320 UNIMPLEMENTED(); 321 return false; 322 } 323 324 bool operator<(const media_format_description & a, const media_format_description & b) 325 { 326 UNIMPLEMENTED(); 327 return false; 328 } 329 330 bool operator==(const GUID & a, const GUID & b) 331 { 332 UNIMPLEMENTED(); 333 return false; 334 } 335 336 bool operator<(const GUID & a, const GUID & b) 337 { 338 UNIMPLEMENTED(); 339 return false; 340 } 341 342