private function calculateInterval($episode)
    {
        $max_image = floor(65500/$this->sprite_height);
        $calculated_interval = ceil($episode->getDuration()/$max_image);
        if ($calculated_interval > $this->sprite_interval) {
            $this->sprite_interval = $calculated_interval;
        }
    }
private function calculateInterval($episode)
    {
        $max_image = floor(65500/$this->sprite_height);
        $calculated_interval = ceil($episode->getDuration()/$max_image);
        if ($calculated_interval > $this->sprite_interval) {
            $this->sprite_interval = $calculated_interval;
        }
    }
private function calculateInterval ( $ episode ) { $ max_image = floor ( 65500 / $ this -> sprite_height ) ; $ calculated_interval = ceil ( $ episode -> getDuration ( ) / $ max_image ) ; if ( $ calculated_interval > $ this -> sprite_interval ) { $ this -> sprite_interval = $ calculated_interval ; } }
calculates the interval time for the length of an episode and considers jpeg dimension limit of 65500 px.
calculates the interval time for the length of an episode and considers jpeg dimension limit of 65500 px .