Changeset 748 for soft/giet_vm/applications
- Timestamp:
- Dec 16, 2015, 1:03:16 PM (9 years ago)
- Location:
- soft/giet_vm/applications/mjpeg
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/mjpeg/demux.c
r741 r748 36 36 37 37 // macro to use a shared TTY 38 #define PRINTF(...) 39 giet_tty_printf(__VA_ARGS__); \40 lock_release( &tty_lock);38 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 39 giet_tty_printf(__VA_ARGS__); \ 40 lock_release( &tty_lock ); } while(0); 41 41 42 42 /////////////////////////////////////////////////////////// … … 87 87 88 88 PRINTF("\n[MJPEG] thread DEMUX[%d] starts on P[%d,%d,%d] / trdid = %x\n", 89 index , x , y , p, (uint32_t)trdid_demux[index] ) 89 index , x , y , p, (uint32_t)trdid_demux[index] ); 90 90 91 91 // initialise BUFIO for MWMR channel <in> … … 97 97 #if (DEBUG_DEMUX > 1) 98 98 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 99 {PRINTF("\nDEMUX[%d] <in> : &mwmr = %x / &bufio = %x\n",100 index , mwmr_in , &bufio_in ) }99 PRINTF("\nDEMUX[%d] <in> : &mwmr = %x / &bufio = %x\n", 100 index , mwmr_in , &bufio_in ); 101 101 #endif 102 102 … … 109 109 #if (DEBUG_DEMUX > 1) 110 110 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 111 {PRINTF("\nDEMUX[%d] : <out_quanti> : mwmr = %x / &bufio = %x\n",112 index , mwmr_out_quanti , &bufio_out_quanti ) }111 PRINTF("\nDEMUX[%d] : <out_quanti> : mwmr = %x / &bufio = %x\n", 112 index , mwmr_out_quanti , &bufio_out_quanti ); 113 113 #endif 114 114 … … 121 121 #if (DEBUG_DEMUX > 1) 122 122 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 123 {PRINTF("\nDEMUX[%d] : <out_huff> : mwmr = %x / &bufio = %x\n",124 index , mwmr_out_huff , &bufio_out_huff ) }123 PRINTF("\nDEMUX[%d] : <out_huff> : mwmr = %x / &bufio = %x\n", 124 index , mwmr_out_huff , &bufio_out_huff ); 125 125 #endif 126 126 … … 133 133 #if (DEBUG_DEMUX > 1) 134 134 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 135 {PRINTF("\nDEMUX[%d] : <out_data> : mwmr = %x / &bufio = %x\n",136 index , mwmr_out_data , &bufio_out_data ) }135 PRINTF("\nDEMUX[%d] : <out_data> : mwmr = %x / &bufio = %x\n", 136 index , mwmr_out_data , &bufio_out_data ); 137 137 #endif 138 138 … … 160 160 #if (DEBUG_DEMUX > 1) 161 161 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 162 { PRINTF("\nDEMUX[%x] found Start of Image marker\n", index ) } 162 PRINTF("\nDEMUX[%x] found Start of Image marker\n", index ); 163 163 #endif 164 164 … … 181 181 #if (DEBUG_DEMUX > 1) 182 182 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 183 { PRINTF("\nDEMUX[%x] found Start of Frame marker\n", index ) } 183 PRINTF("\nDEMUX[%x] found Start of Frame marker\n", index ); 184 184 #endif 185 185 // Only one component per image is supported … … 217 217 #if (DEBUG_DEMUX > 1) 218 218 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 219 { PRINTF("\nDEMUX[%x] found Quantization Table marker\n", index ) } 219 PRINTF("\nDEMUX[%x] found Quantization Table marker\n", index ); 220 220 #endif 221 221 // The quantisation table segment being fixed length, … … 245 245 #if (DEBUG_DEMUX > 1) 246 246 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 247 { PRINTF("\nDEMUX[%x] found Huffman Table marker\n", index ) } 247 PRINTF("\nDEMUX[%x] found Huffman Table marker\n", index ); 248 248 #endif 249 249 // The Huffman Table segment being variable length, … … 290 290 #if (DEBUG_DEMUX > 1) 291 291 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 292 { PRINTF("\nDEMUX[%x] found Start of Scan marker\n", index ) } 292 PRINTF("\nDEMUX[%x] found Start of Scan marker\n", index ); 293 293 #endif 294 294 // The scan segment has a variable length: … … 342 342 #if (DEBUG_DEMUX > 1) 343 343 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 344 { PRINTF("\nDEMUX[%x] found End of Image marker\n", index ) } 344 PRINTF("\nDEMUX[%x] found End of Image marker\n", index ); 345 345 #endif 346 346 mwmr_bufio_flush( &bufio_out_data ); … … 354 354 #if (DEBUG_DEMUX > 1) 355 355 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 356 { PRINTF("\nDEMUX[%x] found Comment or Application marker\n", index ) } 356 PRINTF("\nDEMUX[%x] found Comment or Application marker\n", index ); 357 357 #endif 358 358 // read segment length from bufio_in … … 381 381 #if DEBUG_DEMUX 382 382 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 383 { PRINTF("\nDEMUX[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) } 383 PRINTF("\nDEMUX[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ); 384 384 #endif 385 385 image = image + x_size * y_size; -
soft/giet_vm/applications/mjpeg/idct.c
r736 r748 19 19 20 20 // macro to use a shared TTY 21 #define PRINTF(...) 22 giet_tty_printf(__VA_ARGS__); \23 lock_release( &tty_lock);21 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 22 giet_tty_printf(__VA_ARGS__); \ 23 lock_release( &tty_lock ); } while(0); 24 24 25 25 // Useful constants … … 214 214 #if (DEBUG_IDCT > 1) 215 215 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 216 216 PRINTF("\nIDCT[%d] completes block %d/%d in image %d\n" 217 217 " %x %x %x %x %x %x %x %x\n" 218 218 " %x %x %x %x %x %x %x %x\n" … … 231 231 bout[40], bout[41], bout[42], bout[43], bout[44], bout[45], bout[46], bout[47], 232 232 bout[48], bout[49], bout[50], bout[51], bout[52], bout[53], bout[54], bout[55], 233 bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]) }233 bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]); 234 234 } 235 235 #endif … … 238 238 #if DEBUG_IDCT 239 239 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 240 { PRINTF("\nIDCT[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) } 240 PRINTF("\nIDCT[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ); 241 241 #endif 242 242 -
soft/giet_vm/applications/mjpeg/iqzz.c
r736 r748 13 13 14 14 // macro to use a shared TTY 15 #define PRINTF(...) 16 giet_tty_printf(__VA_ARGS__); \17 lock_release( &tty_lock);15 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 16 giet_tty_printf(__VA_ARGS__); \ 17 lock_release( &tty_lock ); } while(0); 18 18 19 19 ////////////////////////////////////////////////////////////// … … 56 56 57 57 PRINTF("\n[MJPEG] thread IQZZ[%d] starts on P[%d,%d,%d] / trdid = %x\n", 58 index , x , y , p, (uint32_t)trdid_iqzz[index] ) 58 index , x , y , p, (uint32_t)trdid_iqzz[index] ); 59 59 60 60 … … 68 68 #if (DEBUG_IQZZ > 1) 69 69 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 70 {PRINTF("\nIQZZ[%d] get quantisation coefs for image %d\n"70 PRINTF("\nIQZZ[%d] get quantisation coefs for image %d\n" 71 71 "%d %d %d %d %d %d %d %d\n" 72 72 "%d %d %d %d %d %d %d %d\n" … … 85 85 QT[40],QT[41],QT[42],QT[43],QT[44],QT[45],QT[46],QT[47], 86 86 QT[48],QT[49],QT[50],QT[51],QT[52],QT[53],QT[54],QT[55], 87 QT[56],QT[57],QT[58],QT[59],QT[60],QT[61],QT[62],QT[63] ) }87 QT[56],QT[57],QT[58],QT[59],QT[60],QT[61],QT[62],QT[63] ); 88 88 #endif 89 89 … … 104 104 #if (DEBUG_IQZZ > 1) 105 105 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 106 {PRINTF("\nIQZZ[%d] completes block %d/%d in image %d\n"106 PRINTF("\nIQZZ[%d] completes block %d/%d in image %d\n" 107 107 " %d %d %d %d %d %d %d %d\n" 108 108 " %d %d %d %d %d %d %d %d\n" … … 121 121 bout[40], bout[41], bout[42], bout[43], bout[44], bout[45], bout[46], bout[47], 122 122 bout[48], bout[49], bout[50], bout[51], bout[52], bout[53], bout[54], bout[55], 123 bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]) }123 bout[56], bout[57], bout[58], bout[59], bout[60], bout[61], bout[62], bout[63]); 124 124 #endif 125 125 } // end for blocks … … 127 127 #if DEBUG_IQZZ 128 128 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 129 { PRINTF("\nIQZZ[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) } 129 PRINTF("\nIQZZ[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ); 130 130 #endif 131 131 -
soft/giet_vm/applications/mjpeg/libu.c
r736 r748 23 23 24 24 // macro to use a shared TTY 25 #define PRINTF(...) 26 giet_tty_printf(__VA_ARGS__); \27 lock_release( &tty_lock);25 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 26 giet_tty_printf(__VA_ARGS__); \ 27 lock_release( &tty_lock ); } while(0); 28 28 29 29 ////////////////////////////////////////////////////////////// … … 53 53 54 54 PRINTF("\n[MJPEG] thread LIBU[%d] starts on P[%d,%d,%d] / trdid = %x\n", 55 index , x , y , p, (uint32_t)trdid_libu[index] ) 55 index , x , y , p, (uint32_t)trdid_libu[index] ); 56 56 57 57 uint32_t image = index; … … 85 85 #if (DEBUG_LIBU > 1) 86 86 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 87 {PRINTF("\nLIBU[%d] copy block[%d] for image %d\n",88 index, line * nblocks_w + column , image ) }87 PRINTF("\nLIBU[%d] copy block[%d] for image %d\n", 88 index, line * nblocks_w + column , image ); 89 89 #endif 90 90 } … … 100 100 #if DEBUG_LIBU 101 101 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 102 { PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time ) } 102 PRINTF("\nLIBU[%d] completes image %d at cycle %d\n", index , image , time ); 103 103 #endif 104 104 // register date of display for instrumentation -
soft/giet_vm/applications/mjpeg/mjpeg.c
r741 r748 31 31 32 32 // macro to use a shared TTY 33 #define PRINTF(...) lock_acquire( &tty_lock ); \34 giet_tty_printf(__VA_ARGS__); \35 lock_release( &tty_lock);33 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 34 giet_tty_printf(__VA_ARGS__); \ 35 lock_release( &tty_lock ); } while(0); 36 36 37 37 /////////////////////////////////////////////// … … 125 125 if ( INTERACTIVE_MODE ) 126 126 { 127 PRINTF("\n[MJPEG] enter path for JPEG stream file (default is plan_48.mjpg)\n> ") 127 PRINTF("\n[MJPEG] enter path for JPEG stream file (default is plan_48.mjpg)\n> "); 128 128 giet_tty_gets( file_pathname , 256 ); 129 129 … … 136 136 else 137 137 { 138 PRINTF("\n[MJPEG] enter image width\n> ") 138 PRINTF("\n[MJPEG] enter image width\n> "); 139 139 giet_tty_getw( &image_width ); 140 PRINTF("\n[MJPEG] enter image height\n> ") 140 PRINTF("\n[MJPEG] enter image height\n> "); 141 141 giet_tty_getw( &image_height ); 142 PRINTF("\n") 142 PRINTF("\n"); 143 143 } 144 144 } … … 154 154 155 155 if ( USE_DCT_COPROC ) 156 { PRINTF("\n\n[MJPEG] stream %s / %d clusters / %d cores / DCT COPROC\n\n", 157 file_pathname , x_size*y_size , nprocs ) } 156 { 157 PRINTF("\n\n[MJPEG] stream %s / %d clusters / %d cores / DCT COPROC\n\n", 158 file_pathname , x_size*y_size , nprocs ); 159 } 158 160 else 159 { PRINTF("\n\n[MJPEG] stream %s / %d clusters / %d cores / NO DCT COPROC\n\n", 160 file_pathname , x_size*y_size , nprocs ) } 161 { 162 PRINTF("\n\n[MJPEG] stream %s / %d clusters / %d cores / NO DCT COPROC\n\n", 163 file_pathname , x_size*y_size , nprocs ); 164 } 161 165 162 166 // compute nblocks_h & nblocks_w … … 234 238 pc = main_2_demux[n]; 235 239 PRINTF(" - main_2_demux[%d] = %x / &lock = %x / &buf = %x / size = %d\n", 236 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ) 240 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ); 237 241 238 242 pc = demux_2_vld_data[n]; 239 243 PRINTF(" - demux_2_vld[%d] = %x / &lock = %x / &buf = %x / size = %d\n", 240 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ) 244 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ); 241 245 242 246 pc = vld_2_iqzz[n]; 243 247 PRINTF(" - vld_2_iqzz[%d] = %x / &lock = %x / &buf = %x / size = %d\n", 244 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ) 248 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ); 245 249 246 250 pc = iqzz_2_idct[n]; 247 251 PRINTF(" - iqzz_2_idct[%d] = %x / &lock = %x / &buf = %x / size = %d\n", 248 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ) 252 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ); 249 253 250 254 pc = idct_2_libu[n]; 251 255 PRINTF(" - idct_2_libu[%d] = %x / &lock = %x / &buf = %x / size = %d\n", 252 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ) 256 n, pc, (uint32_t)&pc->lock, (uint32_t)pc->data, pc->depth<<2 ); 253 257 } 254 258 … … 407 411 #if DEBUG_MAIN 408 412 PRINTF("\nMAIN send image %d to cluster %d at cycle %d : %d bytes\n", 409 image , cluster , giet_proctime() , bytes_count ) 413 image , cluster , giet_proctime() , bytes_count ); 410 414 #endif 411 415 // increment image index … … 429 433 430 434 if ( giet_pthread_join( trdid_demux[index] , NULL ) ) 431 { PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for demux[%d]\n", index ) }435 PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for demux[%d]\n", index ); 432 436 433 437 if ( giet_pthread_join( trdid_vld[index] , NULL ) ) 434 { PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for vld[%d]\n", index ) }438 PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for vld[%d]\n", index ); 435 439 436 440 if ( giet_pthread_join( trdid_iqzz[index] , NULL ) ) 437 { PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for iqzz[%d]\n", index ) }441 PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for iqzz[%d]\n", index ); 438 442 439 443 if ( USE_DCT_COPROC == 0 ) 440 444 { 441 445 if ( giet_pthread_join( trdid_idct[index] , NULL ) ) 442 { PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for idct[%d]\n", index ) }446 PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for idct[%d]\n", index ); 443 447 } 444 448 445 449 if ( giet_pthread_join( trdid_libu[index] , NULL ) ) 446 { PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for libu[%d]\n", index ) }450 PRINTF("\n[MJPEG ERROR] calling giet_pthread_join() for libu[%d]\n", index ); 447 451 448 452 if ( USE_DCT_COPROC ) … … 459 463 ///////////////////////////////////////////////////////////////////////////////////// 460 464 461 PRINTF("\n[MJPEG] Instumentation Results\n" ) 465 // display on TTY 466 PRINTF("\n[MJPEG] Instumentation Results\n" ); 462 467 for ( image = 0 ; image < MAX_IMAGES ; image++ ) 463 { PRINTF(" - Image %d : completed at cycle %d\n", image , date[image]) } 464 468 PRINTF(" - Image %d : completed at cycle %d\n", image , date[image]); 469 470 // save on disk 471 unsigned int fdout = giet_fat_open( "/home/mjpeg_instrumentation" , O_CREATE ); 472 if ( fdout < 0 ) 473 PRINTF("\n[MJPEG ERROR] cannot open file /home/mjpeg_instrumentation\n"); 474 475 int ret = giet_fat_lseek( fdout, 0 , SEEK_END ); 476 if( ret < 0 ) 477 PRINTF("\n[MJPEG ERROR] cannot seek file /home/mjpeg_instrumentation\n"); 478 479 if( USE_DCT_COPROC ) 480 { 481 giet_fat_fprintf( fdout, "\n*** stream %s / %d clusters / %d cores / DCT COPROC\n", 482 file_pathname , x_size*y_size , nprocs ); 483 } 484 else 485 { 486 giet_fat_fprintf( fdout, "stream %s / %d clusters / %d cores / NO DCT COPROC\n\n", 487 file_pathname , x_size*y_size , nprocs ); 488 } 489 for ( image = 0 ; image < MAX_IMAGES ; image++ ) 490 { 491 giet_fat_fprintf( fdout, " - Image %d : completed at cycle %d\n", 492 image , date[image]); 493 } 494 495 // completed 465 496 giet_pthread_exit( "main completed" ); 466 497 -
soft/giet_vm/applications/mjpeg/mjpeg.h
r741 r748 20 20 //////////////////////////////////////////////////////////////////////////////////////// 21 21 22 #define MAX_IMAGES 1622 #define MAX_IMAGES 2 23 23 24 24 #define USE_DCT_COPROC 1 -
soft/giet_vm/applications/mjpeg/vld.c
r736 r748 23 23 24 24 // macro to use a shared TTY 25 #define PRINTF(...) 26 giet_tty_printf(__VA_ARGS__); \27 lock_release( &tty_lock);25 #define PRINTF(...) do { lock_acquire( &tty_lock ); \ 26 giet_tty_printf(__VA_ARGS__); \ 27 lock_release( &tty_lock ); } while(0); 28 28 29 29 //////////////////////////////////////////////////////////////////////////////////////// … … 166 166 uint32_t type = ( is_ac ) ? 1 : 0; 167 167 168 if ( is_ac ) { PRINTF("\n AC Huffman Table\n\n") } 169 else { PRINTF("\n DC Huffman Table\n\n") } 168 if ( is_ac ) 169 { 170 PRINTF("\n AC Huffman Table\n\n"); 171 } 172 else 173 { 174 PRINTF("\n DC Huffman Table\n\n"); 175 } 170 176 171 177 for ( j = 0; j < 16; j++ ) // j = code_length - 1 172 178 { 173 179 PRINTF(" length = %d / mincode = %x / maxcode = %x / valptr = %d\n", 174 j+1 , huff->MinCode[type][j] , huff->MaxCode[type][j] , huff->ValPtr[type][j] )175 } 176 177 PRINTF("\n") 180 j+1 , huff->MinCode[type][j] , huff->MaxCode[type][j] , huff->ValPtr[type][j]); 181 } 182 183 PRINTF("\n"); 178 184 179 185 for ( j = 0 ; j < 16 ; j++ ) // j == code_length - 1 … … 186 192 187 193 PRINTF(" Symbol[%d] = %x / code[%d] = %x\n", 188 index , huff->HT[type][index] , index , code ) 194 index , huff->HT[type][index] , index , code ); 189 195 } 190 196 } 191 197 192 PRINTF("\n") 198 PRINTF("\n"); 193 199 } 194 200 … … 342 348 #if (DEBUG_VLD > 2) 343 349 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 344 {PRINTF("\nVLD[%d] : DC[0] = %d / reformat( %x , %d ) = %d\n",345 index , buf[0], temp , symbol , value ) }350 PRINTF("\nVLD[%d] : DC[0] = %d / reformat( %x , %d ) = %d\n", 351 index , buf[0], temp , symbol , value ); 346 352 #endif 347 353 … … 357 363 #if (DEBUG_VLD > 2) 358 364 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 359 { PRINTF("\nVLD[%d] : EOB found at i = %d\n", index , i ) } 365 PRINTF("\nVLD[%d] : EOB found at i = %d\n", index , i ); 360 366 #endif 361 367 break; … … 379 385 #if (DEBUG_VLD > 2) 380 386 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 381 {PRINTF("\nVLD[%d] : AC[%d] = %d / reformat( %x , %d ) = %d\n",382 index , i , buf[i] , temp , cat , value ) }387 PRINTF("\nVLD[%d] : AC[%d] = %d / reformat( %x , %d ) = %d\n", 388 index , i , buf[i] , temp , cat , value ); 383 389 #endif 384 390 … … 390 396 #if (DEBUG_VLD > 1 ) 391 397 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 392 {PRINTF("\nVLD[%d] completes block %d/%d in image %d\n"398 PRINTF("\nVLD[%d] completes block %d/%d in image %d\n" 393 399 " %d %d %d %d %d %d %d %d\n" 394 400 " %d %d %d %d %d %d %d %d\n" … … 407 413 buf[40], buf[41], buf[42], buf[43], buf[44], buf[45], buf[46], buf[47], 408 414 buf[48], buf[49], buf[50], buf[51], buf[52], buf[53], buf[54], buf[55], 409 buf[56], buf[57], buf[58], buf[59], buf[60], buf[61], buf[62], buf[63]) }415 buf[56], buf[57], buf[58], buf[59], buf[60], buf[61], buf[62], buf[63]); 410 416 #endif 411 417 … … 442 448 443 449 PRINTF("\n[MJPEG] thread VLD[%d] starts on P[%d,%d,%d] / trdid = %x\n", 444 index , x , y , p, (uint32_t)trdid_vld[index] ) 450 index , x , y , p, (uint32_t)trdid_vld[index] ); 445 451 446 452 … … 452 458 #if (DEBUG_VLD > 1) 453 459 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 454 {PRINTF("\nVLD[%d] <in_data> : &mwmr = %x / &bufio = %x\n",455 index , mwmr_in_data , &bufio_in_data ) }460 PRINTF("\nVLD[%d] <in_data> : &mwmr = %x / &bufio = %x\n", 461 index , mwmr_in_data , &bufio_in_data ); 456 462 #endif 457 463 … … 463 469 #if (DEBUG_VLD > 1) 464 470 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 465 {PRINTF("\nVLD[%d] <in_huff> : &mwmr = %x / &bufio = %x\n",471 PRINTF("\nVLD[%d] <in_huff> : &mwmr = %x / &bufio = %x\n", 466 472 index , mwmr_in_huff , &bufio_in_huff ) } 467 473 #endif … … 483 489 #if (DEBUG_VLD > 1) 484 490 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 485 { PRINTF("\nVLD[%d] load Huffman tables for image %d\n", index , image ) } 491 PRINTF("\nVLD[%d] load Huffman tables for image %d\n", index , image ); 486 492 #endif 487 493 … … 501 507 #if (DEBUG_VLD > 1) 502 508 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 503 { PRINTF("\nVLD[%d] uncompress block %d/%d in image %d\n", index, block, nblocks, image ) } 509 PRINTF("\nVLD[%d] uncompress block %d/%d in image %d\n", index, block, nblocks, image ); 504 510 #endif 505 511 prev_dc = vld_unpack_block( index, … … 514 520 #if DEBUG_VLD 515 521 if ( (index == DEBUG_CLUSTER_INDEX) || (DEBUG_CLUSTER_INDEX == 0XFFFFFFFF) ) 516 { PRINTF("\nVLD[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ) } 522 PRINTF("\nVLD[%d] completes image %d at cycle %d\n", index , image , giet_proctime() ); 517 523 #endif 518 524 image = image + x_size*y_size;
Note: See TracChangeset
for help on using the changeset viewer.