1 /*********************************************************************** 2 * AUTHOR: Marcus Overhagen 3 * FILE: MediaTrack.cpp 4 * DESCR: 5 ***********************************************************************/ 6 #include <MediaTrack.h> 7 #include "debug.h" 8 9 /************************************************************* 10 * protected BMediaTrack 11 *************************************************************/ 12 13 BMediaTrack::~BMediaTrack() 14 { 15 UNIMPLEMENTED(); 16 } 17 18 /************************************************************* 19 * public BMediaTrack 20 *************************************************************/ 21 22 status_t 23 BMediaTrack::InitCheck() const 24 { 25 UNIMPLEMENTED(); 26 27 return B_OK; 28 } 29 30 31 status_t 32 BMediaTrack::GetCodecInfo(media_codec_info *mci) const 33 { 34 UNIMPLEMENTED(); 35 36 return B_ERROR; 37 } 38 39 40 status_t 41 BMediaTrack::EncodedFormat(media_format *out_format) const 42 { 43 UNIMPLEMENTED(); 44 45 return B_OK; 46 } 47 48 49 status_t 50 BMediaTrack::DecodedFormat(media_format *inout_format) 51 { 52 UNIMPLEMENTED(); 53 54 return B_OK; 55 } 56 57 58 int64 59 BMediaTrack::CountFrames() const 60 { 61 UNIMPLEMENTED(); 62 63 return 100000; 64 } 65 66 67 bigtime_t 68 BMediaTrack::Duration() const 69 { 70 UNIMPLEMENTED(); 71 72 return 1000000; 73 } 74 75 76 int64 77 BMediaTrack::CurrentFrame() const 78 { 79 UNIMPLEMENTED(); 80 81 return 0; 82 } 83 84 85 bigtime_t 86 BMediaTrack::CurrentTime() const 87 { 88 UNIMPLEMENTED(); 89 90 return 0; 91 } 92 93 94 status_t 95 BMediaTrack::ReadFrames(void *out_buffer, 96 int64 *out_frameCount, 97 media_header *mh) 98 { 99 UNIMPLEMENTED(); 100 101 return B_OK; 102 } 103 104 105 status_t 106 BMediaTrack::ReadFrames(void *out_buffer, 107 int64 *out_frameCount, 108 media_header *mh, 109 media_decode_info *info) 110 { 111 UNIMPLEMENTED(); 112 113 return B_OK; 114 } 115 116 117 status_t 118 BMediaTrack::ReplaceFrames(const void *in_buffer, 119 int64 *io_frameCount, 120 const media_header *mh) 121 { 122 UNIMPLEMENTED(); 123 124 return B_OK; 125 } 126 127 128 status_t 129 BMediaTrack::SeekToTime(bigtime_t *inout_time, 130 int32 flags) 131 { 132 UNIMPLEMENTED(); 133 134 return B_OK; 135 } 136 137 138 status_t 139 BMediaTrack::SeekToFrame(int64 *inout_frame, 140 int32 flags) 141 { 142 UNIMPLEMENTED(); 143 144 return B_OK; 145 } 146 147 148 status_t 149 BMediaTrack::FindKeyFrameForTime(bigtime_t *inout_time, 150 int32 flags) const 151 { 152 UNIMPLEMENTED(); 153 154 return B_OK; 155 } 156 157 158 status_t 159 BMediaTrack::FindKeyFrameForFrame(int64 *inout_frame, 160 int32 flags) const 161 { 162 UNIMPLEMENTED(); 163 164 return B_OK; 165 } 166 167 168 status_t 169 BMediaTrack::ReadChunk(char **out_buffer, 170 int32 *out_size, 171 media_header *mh) 172 { 173 UNIMPLEMENTED(); 174 175 return B_OK; 176 } 177 178 179 status_t 180 BMediaTrack::AddCopyright(const char *data) 181 { 182 UNIMPLEMENTED(); 183 184 return B_OK; 185 } 186 187 188 status_t 189 BMediaTrack::AddTrackInfo(uint32 code, 190 const void *data, 191 size_t size, 192 uint32 flags) 193 { 194 UNIMPLEMENTED(); 195 196 return B_OK; 197 } 198 199 200 status_t 201 BMediaTrack::WriteFrames(const void *data, 202 int32 num_frames, 203 int32 flags) 204 { 205 UNIMPLEMENTED(); 206 207 return B_OK; 208 } 209 210 211 status_t 212 BMediaTrack::WriteFrames(const void *data, 213 int64 num_frames, 214 media_encode_info *info) 215 { 216 UNIMPLEMENTED(); 217 218 return B_OK; 219 } 220 221 222 status_t 223 BMediaTrack::WriteChunk(const void *data, 224 size_t size, 225 uint32 flags) 226 { 227 UNIMPLEMENTED(); 228 229 return B_OK; 230 } 231 232 233 status_t 234 BMediaTrack::WriteChunk(const void *data, 235 size_t size, 236 media_encode_info *info) 237 { 238 UNIMPLEMENTED(); 239 240 return B_OK; 241 } 242 243 244 status_t 245 BMediaTrack::Flush() 246 { 247 UNIMPLEMENTED(); 248 249 return B_OK; 250 } 251 252 253 BParameterWeb * 254 BMediaTrack::Web() 255 { 256 UNIMPLEMENTED(); 257 return NULL; 258 } 259 260 261 status_t 262 BMediaTrack::GetParameterValue(int32 id, 263 void *valu, 264 size_t *size) 265 { 266 UNIMPLEMENTED(); 267 268 return B_ERROR; 269 } 270 271 272 status_t 273 BMediaTrack::SetParameterValue(int32 id, 274 const void *valu, 275 size_t size) 276 { 277 UNIMPLEMENTED(); 278 279 return B_ERROR; 280 } 281 282 283 BView * 284 BMediaTrack::GetParameterView() 285 { 286 UNIMPLEMENTED(); 287 return NULL; 288 } 289 290 291 status_t 292 BMediaTrack::GetQuality(float *quality) 293 { 294 UNIMPLEMENTED(); 295 296 return B_ERROR; 297 } 298 299 300 status_t 301 BMediaTrack::SetQuality(float quality) 302 { 303 UNIMPLEMENTED(); 304 305 return B_ERROR; 306 } 307 308 309 status_t 310 BMediaTrack::GetEncodeParameters(encode_parameters *parameters) const 311 { 312 UNIMPLEMENTED(); 313 314 return B_ERROR; 315 } 316 317 318 status_t 319 BMediaTrack::SetEncodeParameters(encode_parameters *parameters) 320 { 321 UNIMPLEMENTED(); 322 323 return B_ERROR; 324 } 325 326 327 status_t 328 BMediaTrack::Perform(int32 selector, 329 void *data) 330 { 331 UNIMPLEMENTED(); 332 333 return B_ERROR; 334 } 335 336 /************************************************************* 337 * private BMediaTrack 338 *************************************************************/ 339 340 BMediaTrack::BMediaTrack(BPrivate::MediaExtractor *extractor, 341 int32 stream) 342 { 343 UNIMPLEMENTED(); 344 } 345 346 347 BMediaTrack::BMediaTrack(BPrivate::MediaWriter *writer, 348 int32 stream_num, 349 media_format *in_format, 350 BPrivate::Encoder *encoder, 351 media_codec_info *mci) 352 { 353 UNIMPLEMENTED(); 354 } 355 356 357 status_t 358 BMediaTrack::TrackInfo(media_format *out_format, 359 void **out_info, 360 int32 *out_infoSize) 361 { 362 UNIMPLEMENTED(); 363 364 return B_ERROR; 365 } 366 367 /* 368 // unimplemented 369 BMediaTrack::BMediaTrack() 370 BMediaTrack::BMediaTrack(const BMediaTrack &) 371 BMediaTrack &BMediaTrack::operator=(const BMediaTrack &) 372 */ 373 374 BPrivate::Decoder * 375 BMediaTrack::find_decoder(BMediaTrack *track, 376 int32 *id) 377 { 378 UNIMPLEMENTED(); 379 return NULL; 380 } 381 382 383 status_t BMediaTrack::_Reserved_BMediaTrack_0(int32 arg, ...) { return B_ERROR; } 384 status_t BMediaTrack::_Reserved_BMediaTrack_1(int32 arg, ...) { return B_ERROR; } 385 status_t BMediaTrack::_Reserved_BMediaTrack_2(int32 arg, ...) { return B_ERROR; } 386 status_t BMediaTrack::_Reserved_BMediaTrack_3(int32 arg, ...) { return B_ERROR; } 387 status_t BMediaTrack::_Reserved_BMediaTrack_4(int32 arg, ...) { return B_ERROR; } 388 status_t BMediaTrack::_Reserved_BMediaTrack_5(int32 arg, ...) { return B_ERROR; } 389 status_t BMediaTrack::_Reserved_BMediaTrack_6(int32 arg, ...) { return B_ERROR; } 390 status_t BMediaTrack::_Reserved_BMediaTrack_7(int32 arg, ...) { return B_ERROR; } 391 status_t BMediaTrack::_Reserved_BMediaTrack_8(int32 arg, ...) { return B_ERROR; } 392 status_t BMediaTrack::_Reserved_BMediaTrack_9(int32 arg, ...) { return B_ERROR; } 393 status_t BMediaTrack::_Reserved_BMediaTrack_10(int32 arg, ...) { return B_ERROR; } 394 status_t BMediaTrack::_Reserved_BMediaTrack_11(int32 arg, ...) { return B_ERROR; } 395 status_t BMediaTrack::_Reserved_BMediaTrack_12(int32 arg, ...) { return B_ERROR; } 396 status_t BMediaTrack::_Reserved_BMediaTrack_13(int32 arg, ...) { return B_ERROR; } 397 status_t BMediaTrack::_Reserved_BMediaTrack_14(int32 arg, ...) { return B_ERROR; } 398 status_t BMediaTrack::_Reserved_BMediaTrack_15(int32 arg, ...) { return B_ERROR; } 399 status_t BMediaTrack::_Reserved_BMediaTrack_16(int32 arg, ...) { return B_ERROR; } 400 status_t BMediaTrack::_Reserved_BMediaTrack_17(int32 arg, ...) { return B_ERROR; } 401 status_t BMediaTrack::_Reserved_BMediaTrack_18(int32 arg, ...) { return B_ERROR; } 402 status_t BMediaTrack::_Reserved_BMediaTrack_19(int32 arg, ...) { return B_ERROR; } 403 status_t BMediaTrack::_Reserved_BMediaTrack_20(int32 arg, ...) { return B_ERROR; } 404 status_t BMediaTrack::_Reserved_BMediaTrack_21(int32 arg, ...) { return B_ERROR; } 405 status_t BMediaTrack::_Reserved_BMediaTrack_22(int32 arg, ...) { return B_ERROR; } 406 status_t BMediaTrack::_Reserved_BMediaTrack_23(int32 arg, ...) { return B_ERROR; } 407 status_t BMediaTrack::_Reserved_BMediaTrack_24(int32 arg, ...) { return B_ERROR; } 408 status_t BMediaTrack::_Reserved_BMediaTrack_25(int32 arg, ...) { return B_ERROR; } 409 status_t BMediaTrack::_Reserved_BMediaTrack_26(int32 arg, ...) { return B_ERROR; } 410 status_t BMediaTrack::_Reserved_BMediaTrack_27(int32 arg, ...) { return B_ERROR; } 411 status_t BMediaTrack::_Reserved_BMediaTrack_28(int32 arg, ...) { return B_ERROR; } 412 status_t BMediaTrack::_Reserved_BMediaTrack_29(int32 arg, ...) { return B_ERROR; } 413 status_t BMediaTrack::_Reserved_BMediaTrack_30(int32 arg, ...) { return B_ERROR; } 414 status_t BMediaTrack::_Reserved_BMediaTrack_31(int32 arg, ...) { return B_ERROR; } 415 status_t BMediaTrack::_Reserved_BMediaTrack_32(int32 arg, ...) { return B_ERROR; } 416 status_t BMediaTrack::_Reserved_BMediaTrack_33(int32 arg, ...) { return B_ERROR; } 417 status_t BMediaTrack::_Reserved_BMediaTrack_34(int32 arg, ...) { return B_ERROR; } 418 status_t BMediaTrack::_Reserved_BMediaTrack_35(int32 arg, ...) { return B_ERROR; } 419 status_t BMediaTrack::_Reserved_BMediaTrack_36(int32 arg, ...) { return B_ERROR; } 420 status_t BMediaTrack::_Reserved_BMediaTrack_37(int32 arg, ...) { return B_ERROR; } 421 status_t BMediaTrack::_Reserved_BMediaTrack_38(int32 arg, ...) { return B_ERROR; } 422 status_t BMediaTrack::_Reserved_BMediaTrack_39(int32 arg, ...) { return B_ERROR; } 423 status_t BMediaTrack::_Reserved_BMediaTrack_40(int32 arg, ...) { return B_ERROR; } 424 status_t BMediaTrack::_Reserved_BMediaTrack_41(int32 arg, ...) { return B_ERROR; } 425 status_t BMediaTrack::_Reserved_BMediaTrack_42(int32 arg, ...) { return B_ERROR; } 426 status_t BMediaTrack::_Reserved_BMediaTrack_43(int32 arg, ...) { return B_ERROR; } 427 status_t BMediaTrack::_Reserved_BMediaTrack_44(int32 arg, ...) { return B_ERROR; } 428 status_t BMediaTrack::_Reserved_BMediaTrack_45(int32 arg, ...) { return B_ERROR; } 429 status_t BMediaTrack::_Reserved_BMediaTrack_46(int32 arg, ...) { return B_ERROR; } 430 status_t BMediaTrack::_Reserved_BMediaTrack_47(int32 arg, ...) { return B_ERROR; } 431 432