From a435de089da4dd37c3c183f633a49107c720dd95 Mon Sep 17 00:00:00 2001 From: Dalyn Cessac Date: Wed, 16 Mar 2011 11:06:40 -0500 Subject: Added phpvideotoolkit transcoder and updates to the preset ui --- .../php-reader/src/ASF/Object/DigitalSignature.php | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 libraries/phpvideotoolkit/adapters/ffmpeg-php/php-reader/src/ASF/Object/DigitalSignature.php (limited to 'libraries/phpvideotoolkit/adapters/ffmpeg-php/php-reader/src/ASF/Object/DigitalSignature.php') diff --git a/libraries/phpvideotoolkit/adapters/ffmpeg-php/php-reader/src/ASF/Object/DigitalSignature.php b/libraries/phpvideotoolkit/adapters/ffmpeg-php/php-reader/src/ASF/Object/DigitalSignature.php new file mode 100644 index 0000000..64a7690 --- /dev/null +++ b/libraries/phpvideotoolkit/adapters/ffmpeg-php/php-reader/src/ASF/Object/DigitalSignature.php @@ -0,0 +1,91 @@ +Digital Signature Object lets authors sign the portion of their + * header that lies between the end of the File Properties Object and the + * beginning of the Digital Signature Object. + * + * @package php-reader + * @subpackage ASF + * @author Sven Vollbehr + * @copyright Copyright (c) 2008 The PHP Reader Project Workgroup + * @license http://code.google.com/p/php-reader/wiki/License New BSD License + * @version $Rev: 108 $ + */ +final class ASF_Object_DigitalSignature extends ASF_Object +{ + /** @var integer */ + private $_signatureType; + + /** @var string */ + private $_signatureData; + + /** + * Constructs the class with given parameters and reads object related data + * from the ASF file. + * + * @param Reader $reader The reader object. + * @param Array $options The options array. + */ + public function __construct($reader, &$options = array()) + { + parent::__construct($reader, $options); + + $this->_signatureType = $this->_reader->readUInt32LE(); + $signatureDataLength = $this->_reader->readUInt32LE(); + $this->_signatureData = $this->_reader->read($signatureDataLength); + } + + /** + * Returns the type of digital signature used. This field is set to 2. + * + * @return integer + */ + public function getSignatureType() { return $this->_signatureType; } + + /** + * Returns the digital signature data. + * + * @return string + */ + public function getSignatureData() { return $this->_signatureData; } +} -- cgit v1.2.3