1 /*********************************************************************** 2 * AUTHOR: Marcus Overhagen 3 * FILE: MediaFile.cpp 4 * DESCR: 5 ***********************************************************************/ 6 #include <MediaFile.h> 7 #include <MediaTrack.h> 8 #include "debug.h" 9 10 11 /************************************************************* 12 * public BMediaFile 13 *************************************************************/ 14 15 BMediaFile::BMediaFile(const entry_ref *ref) 16 { 17 UNIMPLEMENTED(); 18 } 19 20 BMediaFile::BMediaFile(BDataIO * source) 21 { 22 UNIMPLEMENTED(); 23 } 24 25 BMediaFile::BMediaFile(const entry_ref * ref, 26 int32 flags) 27 { 28 UNIMPLEMENTED(); 29 } 30 31 BMediaFile::BMediaFile(BDataIO * source, 32 int32 flags) 33 { 34 UNIMPLEMENTED(); 35 } 36 37 BMediaFile::BMediaFile(const entry_ref *ref, 38 const media_file_format * mfi, 39 int32 flags) 40 { 41 UNIMPLEMENTED(); 42 } 43 44 BMediaFile::BMediaFile(BDataIO *destination, 45 const media_file_format * mfi, 46 int32 flags) 47 { 48 UNIMPLEMENTED(); 49 } 50 51 52 BMediaFile::BMediaFile(const media_file_format * mfi, 53 int32 flags) 54 { 55 UNIMPLEMENTED(); 56 } 57 58 /* virtual */ 59 BMediaFile::~BMediaFile() 60 { 61 UNIMPLEMENTED(); 62 } 63 64 status_t 65 BMediaFile::InitCheck() const 66 { 67 UNIMPLEMENTED(); 68 69 return B_OK; 70 } 71 72 // Get info about the underlying file format. 73 status_t 74 BMediaFile::GetFileFormatInfo(media_file_format *mfi) const 75 { 76 UNIMPLEMENTED(); 77 return B_OK; 78 } 79 80 const char * 81 BMediaFile::Copyright(void) const 82 { 83 UNIMPLEMENTED(); 84 return ""; 85 } 86 87 int32 88 BMediaFile::CountTracks() const 89 { 90 UNIMPLEMENTED(); 91 return 1; 92 } 93 94 95 // Can be called multiple times with the same index. You must call 96 // ReleaseTrack() when you're done with a track. 97 BMediaTrack * 98 BMediaFile::TrackAt(int32 index) 99 { 100 UNIMPLEMENTED(); 101 return new BMediaTrack(0, 0); 102 } 103 104 105 // Release the resource used by a given BMediaTrack object, to reduce 106 // the memory usage of your application. The specific 'track' object 107 // can no longer be used, but you can create another one by calling 108 // TrackAt() with the same track index. 109 status_t 110 BMediaFile::ReleaseTrack(BMediaTrack *track) 111 { 112 UNIMPLEMENTED(); 113 return B_OK; 114 } 115 116 status_t 117 BMediaFile::ReleaseAllTracks(void) 118 { 119 UNIMPLEMENTED(); 120 return B_OK; 121 } 122 123 // Create and add a track to the media file 124 BMediaTrack * 125 BMediaFile::CreateTrack(media_format *mf, 126 const media_codec_info *mci) 127 { 128 UNIMPLEMENTED(); 129 return 0; 130 } 131 132 // Create and add a raw track to the media file (it has no encoder) 133 BMediaTrack * 134 BMediaFile::CreateTrack(media_format *mf) 135 { 136 UNIMPLEMENTED(); 137 return 0; 138 } 139 140 141 // Lets you set the copyright info for the entire file 142 status_t 143 BMediaFile::AddCopyright(const char *data) 144 { 145 UNIMPLEMENTED(); 146 return B_OK; 147 } 148 149 150 // Call this to add user-defined chunks to a file (if they're supported) 151 status_t 152 BMediaFile::AddChunk(int32 type, const void *data, size_t size) 153 { 154 UNIMPLEMENTED(); 155 return B_OK; 156 } 157 158 159 // After you have added all the tracks you want, call this 160 status_t 161 BMediaFile::CommitHeader(void) 162 { 163 UNIMPLEMENTED(); 164 return B_OK; 165 } 166 167 168 // After you have written all the data to the track objects, call this 169 status_t 170 BMediaFile::CloseFile(void) 171 { 172 UNIMPLEMENTED(); 173 return B_OK; 174 } 175 176 177 // This is for controlling file format parameters 178 BParameterWeb * 179 BMediaFile::Web() 180 { 181 UNIMPLEMENTED(); 182 return 0; 183 } 184 185 status_t 186 BMediaFile::GetParameterValue(int32 id, void *valu, size_t *size) 187 { 188 UNIMPLEMENTED(); 189 return B_OK; 190 } 191 192 status_t 193 BMediaFile::SetParameterValue(int32 id, const void *valu, size_t size) 194 { 195 UNIMPLEMENTED(); 196 return B_OK; 197 } 198 199 200 BView * 201 BMediaFile::GetParameterView() 202 { 203 UNIMPLEMENTED(); 204 return 0; 205 } 206 207 /* virtual */ status_t 208 BMediaFile::Perform(int32 selector, void * data) 209 { 210 UNIMPLEMENTED(); 211 return B_OK; 212 } 213 214 215 /************************************************************* 216 * private BMediaFile 217 *************************************************************/ 218 219 void 220 BMediaFile::Init() 221 { 222 UNIMPLEMENTED(); 223 } 224 225 void 226 BMediaFile::InitReader(BDataIO *source, int32 flags /* = 0 */) 227 { 228 UNIMPLEMENTED(); 229 } 230 231 void 232 BMediaFile::InitWriter(BDataIO *source, const media_file_format * mfi, int32 flags) 233 { 234 UNIMPLEMENTED(); 235 } 236 237 238 /* 239 //unimplemented 240 BMediaFile::BMediaFile(); 241 BMediaFile::BMediaFile(const BMediaFile&); 242 BMediaFile::BMediaFile& operator=(const BMediaFile&); 243 */ 244 245 status_t BMediaFile::_Reserved_BMediaFile_0(int32 arg, ...) { return B_ERROR; } 246 status_t BMediaFile::_Reserved_BMediaFile_1(int32 arg, ...) { return B_ERROR; } 247 status_t BMediaFile::_Reserved_BMediaFile_2(int32 arg, ...) { return B_ERROR; } 248 status_t BMediaFile::_Reserved_BMediaFile_3(int32 arg, ...) { return B_ERROR; } 249 status_t BMediaFile::_Reserved_BMediaFile_4(int32 arg, ...) { return B_ERROR; } 250 status_t BMediaFile::_Reserved_BMediaFile_5(int32 arg, ...) { return B_ERROR; } 251 status_t BMediaFile::_Reserved_BMediaFile_6(int32 arg, ...) { return B_ERROR; } 252 status_t BMediaFile::_Reserved_BMediaFile_7(int32 arg, ...) { return B_ERROR; } 253 status_t BMediaFile::_Reserved_BMediaFile_8(int32 arg, ...) { return B_ERROR; } 254 status_t BMediaFile::_Reserved_BMediaFile_9(int32 arg, ...) { return B_ERROR; } 255 status_t BMediaFile::_Reserved_BMediaFile_10(int32 arg, ...) { return B_ERROR; } 256 status_t BMediaFile::_Reserved_BMediaFile_11(int32 arg, ...) { return B_ERROR; } 257 status_t BMediaFile::_Reserved_BMediaFile_12(int32 arg, ...) { return B_ERROR; } 258 status_t BMediaFile::_Reserved_BMediaFile_13(int32 arg, ...) { return B_ERROR; } 259 status_t BMediaFile::_Reserved_BMediaFile_14(int32 arg, ...) { return B_ERROR; } 260 status_t BMediaFile::_Reserved_BMediaFile_15(int32 arg, ...) { return B_ERROR; } 261 status_t BMediaFile::_Reserved_BMediaFile_16(int32 arg, ...) { return B_ERROR; } 262 status_t BMediaFile::_Reserved_BMediaFile_17(int32 arg, ...) { return B_ERROR; } 263 status_t BMediaFile::_Reserved_BMediaFile_18(int32 arg, ...) { return B_ERROR; } 264 status_t BMediaFile::_Reserved_BMediaFile_19(int32 arg, ...) { return B_ERROR; } 265 status_t BMediaFile::_Reserved_BMediaFile_20(int32 arg, ...) { return B_ERROR; } 266 status_t BMediaFile::_Reserved_BMediaFile_21(int32 arg, ...) { return B_ERROR; } 267 status_t BMediaFile::_Reserved_BMediaFile_22(int32 arg, ...) { return B_ERROR; } 268 status_t BMediaFile::_Reserved_BMediaFile_23(int32 arg, ...) { return B_ERROR; } 269 status_t BMediaFile::_Reserved_BMediaFile_24(int32 arg, ...) { return B_ERROR; } 270 status_t BMediaFile::_Reserved_BMediaFile_25(int32 arg, ...) { return B_ERROR; } 271 status_t BMediaFile::_Reserved_BMediaFile_26(int32 arg, ...) { return B_ERROR; } 272 status_t BMediaFile::_Reserved_BMediaFile_27(int32 arg, ...) { return B_ERROR; } 273 status_t BMediaFile::_Reserved_BMediaFile_28(int32 arg, ...) { return B_ERROR; } 274 status_t BMediaFile::_Reserved_BMediaFile_29(int32 arg, ...) { return B_ERROR; } 275 status_t BMediaFile::_Reserved_BMediaFile_30(int32 arg, ...) { return B_ERROR; } 276 status_t BMediaFile::_Reserved_BMediaFile_31(int32 arg, ...) { return B_ERROR; } 277 status_t BMediaFile::_Reserved_BMediaFile_32(int32 arg, ...) { return B_ERROR; } 278 status_t BMediaFile::_Reserved_BMediaFile_33(int32 arg, ...) { return B_ERROR; } 279 status_t BMediaFile::_Reserved_BMediaFile_34(int32 arg, ...) { return B_ERROR; } 280 status_t BMediaFile::_Reserved_BMediaFile_35(int32 arg, ...) { return B_ERROR; } 281 status_t BMediaFile::_Reserved_BMediaFile_36(int32 arg, ...) { return B_ERROR; } 282 status_t BMediaFile::_Reserved_BMediaFile_37(int32 arg, ...) { return B_ERROR; } 283 status_t BMediaFile::_Reserved_BMediaFile_38(int32 arg, ...) { return B_ERROR; } 284 status_t BMediaFile::_Reserved_BMediaFile_39(int32 arg, ...) { return B_ERROR; } 285 status_t BMediaFile::_Reserved_BMediaFile_40(int32 arg, ...) { return B_ERROR; } 286 status_t BMediaFile::_Reserved_BMediaFile_41(int32 arg, ...) { return B_ERROR; } 287 status_t BMediaFile::_Reserved_BMediaFile_42(int32 arg, ...) { return B_ERROR; } 288 status_t BMediaFile::_Reserved_BMediaFile_43(int32 arg, ...) { return B_ERROR; } 289 status_t BMediaFile::_Reserved_BMediaFile_44(int32 arg, ...) { return B_ERROR; } 290 status_t BMediaFile::_Reserved_BMediaFile_45(int32 arg, ...) { return B_ERROR; } 291 status_t BMediaFile::_Reserved_BMediaFile_46(int32 arg, ...) { return B_ERROR; } 292 status_t BMediaFile::_Reserved_BMediaFile_47(int32 arg, ...) { return B_ERROR; } 293 294