Show
Ignore:
Timestamp:
02/21/10 23:22:58 (2 years ago)
Author:
Robin Gareus <rgareus@…>
Parents:
9759199714df0cd85f695766c4c5c5d712570365
Children:
6e49c3474539a6c60ade3911897032696b324db7
git-committer:
Robin Gareus <rgareus@priroda.local> / 2010-02-22T00:22:58Z+0100
Message:

sending to TAC! works again...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • oggzcap/src/MyController.mm

    r9fd2977 r66e0a72  
    200200         
    201201        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         
    214203        videOpened = FALSE ; 
    215204         
     
    300289        const char* curl   = [tmpStrAuthorURL UTF8String]; 
    301290 
    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) ; 
    303292         
    304293        if(iceConnect==1) { 
     
    311300                int vidH = (int)captureRect.size.height ; 
    312301                 
    313         //      encoder_example_init(vidW, vidH, outFramerate, outBitrate, outQuality) ; 
     302                encoder_example_init(vidW, vidH, outFramerate, outBitrate, outQuality) ; 
    314303                 
    315304                //////////////////////////////////////////////////////////// 
     
    389378                 
    390379        ////////////////// Stop and clean encoder & oggfwd 
    391         //myOggfwd_close() ; 
    392         //encoder_example_end() ; 
     380        myOggfwd_close() ; 
     381        encoder_example_end() ; 
    393382        totalFrames = 0 ; 
    394383         
     
    475464        if (filledReaderObj) 
    476465        { 
    477                 [self pLog:[NSString stringWithFormat:@"Processing: %d\n",totalFrames]] ; 
     466                //[self pLog:[NSString stringWithFormat:@"Processing: %d\n",totalFrames]] ; 
    478467 
    479468                // get the frame and process it (processImage) 
    480469                theNewImageBuffer = [filledReaderObj readScreenAsyncFinish] ; 
    481          
     470#if 0    
    482471                if (theNewImageBuffer != NULL) { 
    483472                        [self pLog:[NSString stringWithFormat:@"frame %d\n", CVPixelBufferGetWidth(theNewImageBuffer) ]] ; 
    484473                } 
     474#endif 
    485475                //////////////////////////////////////////////////////////////////// 
    486476                // Update Image Preview 
     
    499489                // Encode Frame (result is forwarded to myOggfwd) 
    500490                //////////////////////////////////////////////////////////////////// 
    501                 int res = 1; // encoder_example_loop( theNewImageBuffer ) ; 
     491                int res = encoder_example_loop( theNewImageBuffer ) ; 
    502492                //[NSThread detachNewThreadSelector:@selector(encodeFrame:) toTarget:self withObject:localBuff]; // OLD [to file] part 
    503493         
     
    514504{ 
    515505        CVPixelBufferRef givenBuff = (CVPixelBufferRef)myBuff ; 
    516         int res = 1; // encoder_example_loop( givenBuff ) ;      
     506        int res = encoder_example_loop( givenBuff ) ;    
    517507} 
    518508