- Timestamp:
- 02/21/10 23:22:58 (2 years ago)
- Parents:
- 9759199714df0cd85f695766c4c5c5d712570365
- Children:
- 6e49c3474539a6c60ade3911897032696b324db7
- git-committer:
- Robin Gareus <rgareus@priroda.local> / 2010-02-22T00:22:58Z+0100
- Files:
-
- 1 modified
-
oggzcap/src/MyController.mm (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
oggzcap/src/MyController.mm
r9fd2977 r66e0a72 200 200 201 201 lockF = [NSRecursiveLock new] ; 202 #if 0 203 // SOFTVDIGX Things... 204 // In Video Sequence Grabber INIT 205 mGrabber = [[SeqGrab alloc] init]; 206 [mGrabber setIdleFrequency:50]; 207 [[NSNotificationCenter defaultCenter] 208 addObserver:self selector:@selector(seqGrabChannelAdded:) 209 name:SeqGrabChannelAddedNotification object:mGrabber]; 210 [[NSNotificationCenter defaultCenter] 211 addObserver:self selector:@selector(seqGrabChannelRemoved:) 212 name:SeqGrabChannelRemovedNotification object:mGrabber]; 213 #endif 202 214 203 videOpened = FALSE ; 215 204 … … 300 289 const char* curl = [tmpStrAuthorURL UTF8String]; 301 290 302 int iceConnect = 1; //myOggfwd_init(cip, tmpIcecastPort, (const char*) cmount, cdesc, ctags, cname, curl) ;291 int iceConnect = myOggfwd_init(cip, tmpIcecastPort, (const char*) cmount, cdesc, ctags, cname, curl) ; 303 292 304 293 if(iceConnect==1) { … … 311 300 int vidH = (int)captureRect.size.height ; 312 301 313 //encoder_example_init(vidW, vidH, outFramerate, outBitrate, outQuality) ;302 encoder_example_init(vidW, vidH, outFramerate, outBitrate, outQuality) ; 314 303 315 304 //////////////////////////////////////////////////////////// … … 389 378 390 379 ////////////////// Stop and clean encoder & oggfwd 391 //myOggfwd_close() ;392 //encoder_example_end() ;380 myOggfwd_close() ; 381 encoder_example_end() ; 393 382 totalFrames = 0 ; 394 383 … … 475 464 if (filledReaderObj) 476 465 { 477 [self pLog:[NSString stringWithFormat:@"Processing: %d\n",totalFrames]] ;466 //[self pLog:[NSString stringWithFormat:@"Processing: %d\n",totalFrames]] ; 478 467 479 468 // get the frame and process it (processImage) 480 469 theNewImageBuffer = [filledReaderObj readScreenAsyncFinish] ; 481 470 #if 0 482 471 if (theNewImageBuffer != NULL) { 483 472 [self pLog:[NSString stringWithFormat:@"frame %d\n", CVPixelBufferGetWidth(theNewImageBuffer) ]] ; 484 473 } 474 #endif 485 475 //////////////////////////////////////////////////////////////////// 486 476 // Update Image Preview … … 499 489 // Encode Frame (result is forwarded to myOggfwd) 500 490 //////////////////////////////////////////////////////////////////// 501 int res = 1; //encoder_example_loop( theNewImageBuffer ) ;491 int res = encoder_example_loop( theNewImageBuffer ) ; 502 492 //[NSThread detachNewThreadSelector:@selector(encodeFrame:) toTarget:self withObject:localBuff]; // OLD [to file] part 503 493 … … 514 504 { 515 505 CVPixelBufferRef givenBuff = (CVPixelBufferRef)myBuff ; 516 int res = 1; //encoder_example_loop( givenBuff ) ;506 int res = encoder_example_loop( givenBuff ) ; 517 507 } 518 508
