--- common/video/iso-mpeg4/src/vtc_main_vtcenc.cpp.orig 2005-05-04 13:56:00.000000000 -0600 +++ common/video/iso-mpeg4/src/vtc_main_vtcenc.cpp 2009-11-19 02:54:25.000000000 -0700 @@ -379,7 +379,7 @@ emit_bits((UShort)MARKER_BIT, 1); /* marker_bit */ emit_bits((UShort)mzte_codec.m_iHeight, 15); /* object_height */ emit_bits((UShort)MARKER_BIT, 1); /* marker_bit */ - noteProgress("Merge Shape Bitstream ...."); + noteProgress((char*)"Merge Shape Bitstream ...."); // MergeShapeBitstream(); } } @@ -582,7 +582,7 @@ if ( mzte_codec.m_tiling_disable == 1 && SkipShape == 0 ){ // @@@@@@@ // FPDAM end: added by Sharp //begin: added by SL@Sarnoff (03/03/99) - noteProgress("Encoding Shape Bitstream ...."); + noteProgress((char*)"Encoding Shape Bitstream ...."); ShapeEnCoding(mzte_codec.m_Image[0].mask, mzte_codec.m_iWidth, mzte_codec.m_iHeight, mzte_codec.m_iWvtDecmpLev, mzte_codec.m_iSTOConstAlpha, @@ -664,7 +664,7 @@ { Int col, err; - noteProgress("Encoding DC coefficients...."); + noteProgress((char*)"Encoding DC coefficients...."); for (col=0; col>16,16); emit_bits((UShort)texture_snr_layer_start_code,16); emit_bits((UShort)texture_snr_layer_id++,5); } else - noteProgress("Encoding Multi-Quant Mode Layer without SNR start code...."); + noteProgress((char*)"Encoding Multi-Quant Mode Layer without SNR start code...."); - noteProgress("Multi-Quant Mode - Spatial %d, SNR %d", spa_lev,snr_lev); + noteProgress((char*)"Multi-Quant Mode - Spatial %d, SNR %d", spa_lev,snr_lev); for(col=0; col < NCOL; col++) { - noteDetail("width=%d height=%d",mzte_codec.m_SPlayer[col].width, + noteDetail((char*)"width=%d height=%d",mzte_codec.m_SPlayer[col].width, mzte_codec.m_SPlayer[col].height); /* Set global color variable */ @@ -869,7 +869,7 @@ /* Set quant value */ snr_image=&(mzte_codec.m_SPlayer[col].SNRlayer.snr_image); snr_image->quant = mzte_codec.m_Qinfo[col][spa_lev].Quant[snr_lev]; - noteDebug("AC quant=%d", + noteDebug((char*)"AC quant=%d", mzte_codec.m_Qinfo[col][spa_lev].Quant[snr_lev]); /* initialization of spatial dimensions for each color component */ @@ -879,11 +879,11 @@ /* get maximum residual value - this one is derived from user Q inputs not actual values. Also assign skip modes. */ updateResidMaxAndAssignSkips(col); - noteDebug("resid_max=%d\n",snr_image->residual_max); + noteDebug((char*)"resid_max=%d\n",snr_image->residual_max); /* quantize and mark zerotree structure for AC coefficients */ if (encQuantizeAndMarkAC(col)) - errorHandler("encQuantizeAndMarkAC"); + errorHandler((char*)"encQuantizeAndMarkAC"); // Put_Quant_and_Max(snr_image); // hjlee 0901 Put_Quant_and_Max(snr_image,spa_lev,col); // hjlee 0901 @@ -900,7 +900,7 @@ /* Update states of AC coefficients */ if (encUpdateStateAC(mzte_codec.m_iCurColor)) - errorHandler("encUpdateStateAC"); + errorHandler((char*)"encUpdateStateAC"); } } @@ -914,12 +914,12 @@ // hjlee 0901 /*------- AC: Initialize QList Structure -------*/ if ((err=ztqQListInit())) - errorHandler("Allocating memory for QList information."); + errorHandler((char*)"Allocating memory for QList information."); /* Initialize coeffs */ setSpatialLevelAndDimensions(0,0); if ((err=ztqInitAC(0,0))) - errorHandler("ztqInitAC"); + errorHandler((char*)"ztqInitAC"); if (mzte_codec.m_iColors > 1) { @@ -928,7 +928,7 @@ else setSpatialLevelAndDimensions(0,1); if ((err=ztqInitAC(0,1))) - errorHandler("ztqInitAC"); + errorHandler((char*)"ztqInitAC"); } if (mzte_codec.m_iColors > 2) { @@ -937,7 +937,7 @@ else setSpatialLevelAndDimensions(0,2); if ((err=ztqInitAC(0,2))) - errorHandler("ztqInitAC"); + errorHandler((char*)"ztqInitAC"); } @@ -993,7 +993,7 @@ #endif abort(); if ((bitfile=fopen(fname,"wb"))==NULL) - errorHandler("Can't open file '%s' for writing.",fname); + errorHandler((char*)"Can't open file '%s' for writing.",fname); } /* initialize the buffer */ @@ -1129,7 +1129,7 @@ /*------- DC: Open and initialize bitstream file -------*/ if ((bitfile=fopen(mzte_codec.m_cBitFile,"wb"))==NULL) - errorHandler("Can't open file '%s' for writing.", + errorHandler((char*)"Can't open file '%s' for writing.", mzte_codec.m_cBitFile); /* for PEZW, always enabled */ @@ -1213,7 +1213,7 @@ anafilter = (FILTER **) malloc(sizeof(FILTER *)*mzte_codec.m_iWvtDecmpLev); synfilter = (FILTER **) malloc(sizeof(FILTER *)*mzte_codec.m_iWvtDecmpLev); if(anafilter == NULL || synfilter == NULL) - errorHandler("Error allocating memory for filters\n"); + errorHandler((char*)"Error allocating memory for filters\n"); for(i=0;i