[ Index ] |
|
Code source de LifeType 1.2.4 |
1 <?php 2 3 lt_include( PLOG_CLASS_PATH."class/gallery/data/galleryresourcebasemetadatareader.class.php" ); 4 5 /** 6 * methods for fetching metadata from video resources 7 * 8 * \ingroup Gallery 9 */ 10 class GalleryResourceVideoMetadataReader extends GalleryResourceBaseMetadataReader 11 { 12 function GalleryResourceVideoMetadataReader( $resource ) 13 { 14 $this->GalleryResourceBaseMetadataReader( $resource ); 15 } 16 17 /** 18 * @return the height in pixels of the video 19 */ 20 function getHeight() 21 { 22 return $this->_metadata["video"]["resolution_y"]; 23 } 24 25 /** 26 * @return the width in pixels of the video 27 */ 28 function getWidth() 29 { 30 return $this->_metadata["video"]["resolution_x"]; 31 } 32 33 /** 34 * @return the format of the video 35 */ 36 function getFormat() 37 { 38 return $this->_metadata["video"]["dataformat"]; 39 } 40 41 /** 42 * @return the bits per sample of the video 43 */ 44 function getBitsPerSample() 45 { 46 return $this->_metadata["video"]["bits_per_sample"]; 47 } 48 49 /** 50 * @return returns the codec that was used to generate the video 51 */ 52 function getVideoCodec() 53 { 54 return $this->_metadata["video"]["codec"]; 55 } 56 57 /** 58 * @return returns the name of the codec in which the audio was saved in the video 59 */ 60 function getAudioCodec() 61 { 62 return $this->_metadata["audio"]["codec"]; 63 } 64 65 /** 66 * @return returnsd the length in seconds of the video 67 */ 68 function getLength() 69 { 70 return $this->_metadata["playtime_seconds"]; 71 } 72 73 /** 74 * @return a nicely formatted string with the length of the video 75 */ 76 function getLengthString() 77 { 78 return $this->_metadata["playtime_string"]; 79 } 80 81 82 } 83 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 21:04:15 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |