Changeset 3976

Show
Ignore:
Timestamp:
03/27/07 11:08:46 (7 years ago)
Author:
piers
Message:

Converted fprintf(stderr,...) calls to debug_msg()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/mpeg4/codec/encoder-h264.cpp

    r3974 r3976  
    134134    int RTP_HDR_LEN = sizeof(rtphdr); 
    135135    int NAL_FRAG_THRESH = tx->mtu() - RTP_HDR_LEN; /* payload max in one packet */ 
    136     //fprintf(stderr, "MTU=%d, RTP_HDR_LEN=%d\n", NAL_FRAG_THRESH, RTP_HDR_LEN); 
     136    //debug_msg( "MTU=%d, RTP_HDR_LEN=%d\n", NAL_FRAG_THRESH, RTP_HDR_LEN); 
    137137 
    138138 
     
    167167        uint8_t NALhdr = data1[4]; //SV-XXX why does our x.264 provide 4-byte StartSync in the NALU? 
    168168        uint8_t NALtype = NALhdr & 0x1f; 
    169         //fprintf(stderr, "Got NALhdr=0x%02x, NALtype=0x%02x from encoded frame.\n", NALhdr, NALtype); 
     169        //debug_msg( "Got NALhdr=0x%02x, NALtype=0x%02x from encoded frame.\n", NALhdr, NALtype); 
    170170        memcpy(data, &data1[5], nalSize); 
    171171 
     
    185185                pb->len = nalSize + RTP_HDR_LEN + FU_HDR_LEN; 
    186186 
    187                 fprintf(stderr, "NAL : "); 
     187                debug_msg( "NAL : "); 
    188188 
    189189                if (FU_HDR_LEN==2) { 
     
    194194                        pb->data[13] = 0x40  | NALtype;                 //FU header 
    195195                         
    196                         fprintf(stderr, "FU_Indicator=0x%02x, FU_Header=0x%02x, ", pb->data[12], pb->data[13]); 
     196                        debug_msg( "FU_Indicator=0x%02x, FU_Header=0x%02x, ", pb->data[12], pb->data[13]); 
    197197                }  
    198198                else { 
    199199                        pb->data[12] = NALhdr;                          //NAL Header 
    200                         fprintf(stderr, "-----------------, --------------, "); 
     200                        debug_msg( "-----------------, --------------, "); 
    201201                } 
    202202 
    203203                memcpy(&pb->data[RTP_HDR_LEN + FU_HDR_LEN], data + offset, nalSize); 
    204204 
    205                 fprintf(stderr, "i=%d/%d, nalSize=%4d len=%4d firstFrag=%d offset=%4d\n", i, numNAL, nalSize, pb->len, firstFragment, offset); 
     205                debug_msg( "i=%d/%d, nalSize=%4d len=%4d firstFrag=%d offset=%4d\n", i, numNAL, nalSize, pb->len, firstFragment, offset); 
    206206 
    207207                nalSize = 0; 
     
    221221                memcpy(&pb->data[RTP_HDR_LEN + FU_HDR_LEN], data + offset, NAL_FRAG_THRESH - FU_HDR_LEN); 
    222222 
    223                 fprintf(stderr, "FU-A: FU_Indicator=0x%02x, FU_Header=0x%02x, i=%d/%d, nalSize=%4d len=%4d firstFrag=%d offset=%4d\n",  pb->data[12], pb->data[13], i, numNAL, nalSize, pb->len, firstFragment, offset); 
     223                debug_msg( "FU-A: FU_Indicator=0x%02x, FU_Header=0x%02x, i=%d/%d, nalSize=%4d len=%4d firstFrag=%d offset=%4d\n",  pb->data[12], pb->data[13], i, numNAL, nalSize, pb->len, firstFragment, offset); 
    224224 
    225225                nalSize -= (NAL_FRAG_THRESH-FU_HDR_LEN);