WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

getID3::CalculateCompressionRatioVideo() public WP 1.0

Это метод класса: getID3{}

Хуков нет.

Возвращает

true/false.

Использование

$getID3 = new getID3();
$getID3->CalculateCompressionRatioVideo();

Код getID3::CalculateCompressionRatioVideo() WP 5.5.1

wp-includes/ID3/getid3.php
<?php
public function CalculateCompressionRatioVideo() {
	if (empty($this->info['video'])) {
		return false;
	}
	if (empty($this->info['video']['resolution_x']) || empty($this->info['video']['resolution_y'])) {
		return false;
	}
	if (empty($this->info['video']['bits_per_sample'])) {
		return false;
	}

	switch ($this->info['video']['dataformat']) {
		case 'bmp':
		case 'gif':
		case 'jpeg':
		case 'jpg':
		case 'png':
		case 'tiff':
			$FrameRate = 1;
			$PlaytimeSeconds = 1;
			$BitrateCompressed = $this->info['filesize'] * 8;
			break;

		default:
			if (!empty($this->info['video']['frame_rate'])) {
				$FrameRate = $this->info['video']['frame_rate'];
			} else {
				return false;
			}
			if (!empty($this->info['playtime_seconds'])) {
				$PlaytimeSeconds = $this->info['playtime_seconds'];
			} else {
				return false;
			}
			if (!empty($this->info['video']['bitrate'])) {
				$BitrateCompressed = $this->info['video']['bitrate'];
			} else {
				return false;
			}
			break;
	}
	$BitrateUncompressed = $this->info['video']['resolution_x'] * $this->info['video']['resolution_y'] * $this->info['video']['bits_per_sample'] * $FrameRate;

	$this->info['video']['compression_ratio'] = $BitrateCompressed / $BitrateUncompressed;
	return true;
}