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

getid3_asf::ASF_WMpicture() public WP 1.0

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

Хуков нет.

Возвращает

Массив.

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

$getid3_asf = new getid3_asf();
$getid3_asf->ASF_WMpicture( $data );
$data(строка) (обязательный) (передается по ссылке — &)

Код getid3 asf::ASF WMpicture: wp-includes/ID3/module.audio-video.asf.php WP 5.5.1

<?php
public function ASF_WMpicture(&$data) {
	//typedef struct _WMPicture{
	//  LPWSTR  pwszMIMEType;
	//  BYTE  bPictureType;
	//  LPWSTR  pwszDescription;
	//  DWORD  dwDataLen;
	//  BYTE*  pbData;
	//} WM_PICTURE;

	$WMpicture = array();

	$offset = 0;
	$WMpicture['image_type_id'] = getid3_lib::LittleEndian2Int(substr($data, $offset, 1));
	$offset += 1;
	$WMpicture['image_type']    = self::WMpictureTypeLookup($WMpicture['image_type_id']);
	$WMpicture['image_size']    = getid3_lib::LittleEndian2Int(substr($data, $offset, 4));
	$offset += 4;

	$WMpicture['image_mime'] = '';
	do {
		$next_byte_pair = substr($data, $offset, 2);
		$offset += 2;
		$WMpicture['image_mime'] .= $next_byte_pair;
	} while ($next_byte_pair !== "\x00\x00");

	$WMpicture['image_description'] = '';
	do {
		$next_byte_pair = substr($data, $offset, 2);
		$offset += 2;
		$WMpicture['image_description'] .= $next_byte_pair;
	} while ($next_byte_pair !== "\x00\x00");

	$WMpicture['dataoffset'] = $offset;
	$WMpicture['data'] = substr($data, $offset);

	$imageinfo = array();
	$WMpicture['image_mime'] = '';
	$imagechunkcheck = getid3_lib::GetDataImageSize($WMpicture['data'], $imageinfo);
	unset($imageinfo);
	if (!empty($imagechunkcheck)) {
		$WMpicture['image_mime'] = image_type_to_mime_type($imagechunkcheck[2]);
	}
	if (!isset($this->getid3->info['asf']['comments']['picture'])) {
		$this->getid3->info['asf']['comments']['picture'] = array();
	}
	$this->getid3->info['asf']['comments']['picture'][] = array('data'=>$WMpicture['data'], 'image_mime'=>$WMpicture['image_mime']);

	return $WMpicture;
}