    def _get_output_dim(self, height, width):
        """
        keep the shorter side be `self.size`, strech the other.
        """
        if height >= width:
            return int(height * self.size / width), self.size
        else:
            return self.size, int(width * self.size / height)
keep the shorter side be `self.size`, strech the other.
examples/MMPT/scripts/video_feature_extractor/videoreader.py