android/ringlibsdl/project/jni/smpeg2-2.0.0/video/video.cpp
void
InitCrop()
{
#ifdef USE_CROP_TABLE
  int i;

  /* Initialize crop table. */
  for (i = (-MAX_NEG_CROP); i < NUM_CROP_ENTRIES - MAX_NEG_CROP; i++) {
    if (i <= 0) {
      cropTbl[i + MAX_NEG_CROP] = 0;
#ifdef TWELVE_BITS
        } else if (i >= 2047) {
      cropTbl[i + MAX_NEG_CROP] = 2047;
#endif
    } else if (i >= 255) {
      cropTbl[i + MAX_NEG_CROP] = 255;
    } else {
      cropTbl[i + MAX_NEG_CROP] = i;
    }
  }
#endif /* USE_CROP_TABLE */
}
/*
 *--------------------------------------------------------------
 *
 * InitCrop --
 *
 *  Initializes cropTbl - this was taken from newVidStream so
 *  that it wasn't done for each new video stream
 *
 * Results:
 *    None
 *
 * Side effects:
 *    cropTbl will be initialized
 *
 *--------------------------------------------------------------
 */
InitCrop
Initializes cropTbl - this was taken from newVidStream so
that it wasn't done for each new video stream

None

Side effects:
cropTbl will be initialized
InitCrop Initializes cropTbl - this was taken from newVidStream so that it wasn ' t done for each new video stream None Side effects : cropTbl will be initialized
void
InitCrop()
{
#ifdef USE_CROP_TABLE
  int i;
  for (i = (-MAX_NEG_CROP); i < NUM_CROP_ENTRIES - MAX_NEG_CROP; i++) {
    if (i <= 0) {
      cropTbl[i + MAX_NEG_CROP] = 0;
#ifdef TWELVE_BITS
        } else if (i >= 2047) {
      cropTbl[i + MAX_NEG_CROP] = 2047;
#endif
    } else if (i >= 255) {
      cropTbl[i + MAX_NEG_CROP] = 255;
    } else {
      cropTbl[i + MAX_NEG_CROP] = i;
    }
  }
#endif 
}
void InitCrop ( ) { #ifdef USE_CROP_TABLE int i ; for ( i = ( - MAX_NEG_CROP ) ; i < NUM_CROP_ENTRIES - MAX_NEG_CROP ; i ++ ) { if ( i <= 0 ) { cropTbl [ i + MAX_NEG_CROP ] = 0 ; #ifdef TWELVE_BITS } else if ( i >= 2047 ) { cropTbl [ i + MAX_NEG_CROP ] = 2047 ; #endif 
    } else if (i >= 255) { cropTbl [ i + MAX_NEG_CROP ] = 255 ; } else { cropTbl [ i + MAX_NEG_CROP ] = i ; } } #endif }
InitCrop
  Initializes cropTbl - this was taken from newVidStream so
  that it wasn't done for each new video stream
InitCrop Initializes cropTbl - this was taken from newVidStream so that it wasn ' t done for each new video stream
/* Initialize crop table. */ /* USE_CROP_TABLE */