Changeset 364 in SHVCSoftware for branches/SHM-3.1-dev/source/App/TAppDownConvert/TAppDownConvert.cpp
- Timestamp:
- 26 Aug 2013, 17:45:03 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-3.1-dev/source/App/TAppDownConvert/TAppDownConvert.cpp
r340 r364 270 270 FILE * outfile; 271 271 272 int M ,N;273 int ratio ;272 int M = -1 ,N = -1; 273 int ratio = -1; 274 274 int Frames=0; 275 275 int totalFrames=0; … … 326 326 return -1; 327 327 } 328 if ( ratio > 1 || ratio < 0) 329 { 328 329 switch( ratio ) 330 { 331 default: 330 332 printf("\ndown sampling parameter %d is not supported (0: 2x downsampling, 1: 1.5x downsampling)\n", ratio); 331 333 return -1; 332 } 333 334 if (ratio==0) 335 { 334 case 0: 336 335 M=4; 337 336 N=8; 338 } 339 else if (ratio==1) 340 { 337 break; 338 case 1: 341 339 M=8; 342 340 N=12; 341 break; 343 342 } 344 343
Note: See TracChangeset for help on using the changeset viewer.