getid3_ogg::TheoraPixelFormat

Advertisement

Syntax Syntax

getid3_ogg::TheoraPixelFormat( int $pixelformat_id )

Parameters Parameters

$pixelformat_id

(Required)

Return Return

(string|null)

Source Source

File: wp-includes/ID3/module.audio.ogg.php

	 * @return string|null
	 */
	public static function TheoraPixelFormat($pixelformat_id) {
		// http://www.theora.org/doc/Theora.pdf (table 6.4)
		static $TheoraPixelFormatLookup = array();
		if (empty($TheoraPixelFormatLookup)) {
			$TheoraPixelFormatLookup[0] = '4:2:0';
			$TheoraPixelFormatLookup[1] = 'Reserved';
			$TheoraPixelFormatLookup[2] = '4:2:2';
			$TheoraPixelFormatLookup[3] = '4:4:4';
		}

Advertisement

Advertisement

Leave a Reply