modules/video_coding/qm_select.cc
bool VCMQmResolution::EvenFrameSize() {
  if (action_.spatial == kOneHalfSpatialUniform) {
    if ((width_ * 3 / 4) % 2 != 0 || (height_ * 3 / 4) % 2 != 0) {
      return false;
    }
  } else if (action_.spatial == kOneQuarterSpatialUniform) {
    if ((width_ * 1 / 2) % 2 != 0 || (height_ * 1 / 2) % 2 != 0) {
      return false;
    }
  }
  return true;
}
// Returns false if the new frame sizes, under the current spatial action,
// are not multiples of two.
Returns false if the new frame sizes, under the current spatial action,
are not multiples of two.
Returns false if the new frame sizes under the current spatial action are not multiples of two .
bool VCMQmResolution::EvenFrameSize() {
  if (action_.spatial == kOneHalfSpatialUniform) {
    if ((width_ * 3 / 4) % 2 != 0 || (height_ * 3 / 4) % 2 != 0) {
      return false;
    }
  } else if (action_.spatial == kOneQuarterSpatialUniform) {
    if ((width_ * 1 / 2) % 2 != 0 || (height_ * 1 / 2) % 2 != 0) {
      return false;
    }
  }
  return true;
}
bool VCMQmResolution :: EvenFrameSize ( ) { if ( action_ . spatial == kOneHalfSpatialUniform ) { if ( ( width_ * 3 / 4 ) % 2 != 0 || ( height_ * 3 / 4 ) % 2 != 0 ) { return false ; } } else if ( action_ . spatial == kOneQuarterSpatialUniform ) { if ( ( width_ * 1 / 2 ) % 2 != 0 || ( height_ * 1 / 2 ) % 2 != 0 ) { return false ; } } return true ; }
Returns false if the new frame sizes, under the current spatial action,
are not multiples of two.
Returns false if the new frame sizes under the current spatial action are not multiples of two .