Пример #1
0
 public static function fourccLookup($fourcc)
 {
     $begin = __LINE__;
     /** This is not a comment!
     
     			swot	http://developer.apple.com/qa/snd/snd07.html
     			____	No Codec (____)
     			_BIT	BI_BITFIELDS (Raw RGB)
     			_JPG	JPEG compressed
     			_PNG	PNG compressed W3C/ISO/IEC (RFC-2083)
     			_RAW	Full Frames (Uncompressed)
     			_RGB	Raw RGB Bitmap
     			_RL4	RLE 4bpp RGB
     			_RL8	RLE 8bpp RGB
     			3IV1	3ivx MPEG-4 v1
     			3IV2	3ivx MPEG-4 v2
     			3IVX	3ivx MPEG-4
     			AASC	Autodesk Animator
     			ABYR	Kensington ?ABYR?
     			AEMI	Array Microsystems VideoONE MPEG1-I Capture
     			AFLC	Autodesk Animator FLC
     			AFLI	Autodesk Animator FLI
     			AMPG	Array Microsystems VideoONE MPEG
     			ANIM	Intel RDX (ANIM)
     			AP41	AngelPotion Definitive
     			ASV1	Asus Video v1
     			ASV2	Asus Video v2
     			ASVX	Asus Video 2.0 (audio)
     			AUR2	AuraVision Aura 2 Codec - YUV 4:2:2
     			AURA	AuraVision Aura 1 Codec - YUV 4:1:1
     			AVDJ	Independent JPEG Group\'s codec (AVDJ)
     			AVRN	Independent JPEG Group\'s codec (AVRN)
     			AYUV	4:4:4 YUV (AYUV)
     			AZPR	Quicktime Apple Video (AZPR)
     			BGR 	Raw RGB32
     			BLZ0	Blizzard DivX MPEG-4
     			BTVC	Conexant Composite Video
     			BINK	RAD Game Tools Bink Video
     			BT20	Conexant Prosumer Video
     			BTCV	Conexant Composite Video Codec
     			BW10	Data Translation Broadway MPEG Capture
     			CC12	Intel YUV12
     			CDVC	Canopus DV
     			CFCC	Digital Processing Systems DPS Perception
     			CGDI	Microsoft Office 97 Camcorder Video
     			CHAM	Winnov Caviara Champagne
     			CJPG	Creative WebCam JPEG
     			CLJR	Cirrus Logic YUV 4:1:1
     			CMYK	Common Data Format in Printing (Colorgraph)
     			CPLA	Weitek 4:2:0 YUV Planar
     			CRAM	Microsoft Video 1 (CRAM)
     			cvid	Radius Cinepak
     			CVID	Radius Cinepak
     			CWLT	Microsoft Color WLT DIB
     			CYUV	Creative Labs YUV
     			CYUY	ATI YUV
     			D261	H.261
     			D263	H.263
     			DIB 	Device Independent Bitmap
     			DIV1	FFmpeg OpenDivX
     			DIV2	Microsoft MPEG-4 v1/v2
     			DIV3	DivX ;-) MPEG-4 v3.x Low-Motion
     			DIV4	DivX ;-) MPEG-4 v3.x Fast-Motion
     			DIV5	DivX MPEG-4 v5.x
     			DIV6	DivX ;-) (MS MPEG-4 v3.x)
     			DIVX	DivX MPEG-4 v4 (OpenDivX / Project Mayo)
     			divx	DivX MPEG-4
     			DMB1	Matrox Rainbow Runner hardware MJPEG
     			DMB2	Paradigm MJPEG
     			DSVD	?DSVD?
     			DUCK	Duck TrueMotion 1.0
     			DPS0	DPS/Leitch Reality Motion JPEG
     			DPSC	DPS/Leitch PAR Motion JPEG
     			DV25	Matrox DVCPRO codec
     			DV50	Matrox DVCPRO50 codec
     			DVC 	IEC 61834 and SMPTE 314M (DVC/DV Video)
     			DVCP	IEC 61834 and SMPTE 314M (DVC/DV Video)
     			DVHD	IEC Standard DV 1125 lines @ 30fps / 1250 lines @ 25fps
     			DVMA	Darim Vision DVMPEG (dummy for MPEG compressor) (www.darvision.com)
     			DVSL	IEC Standard DV compressed in SD (SDL)
     			DVAN	?DVAN?
     			DVE2	InSoft DVE-2 Videoconferencing
     			dvsd	IEC 61834 and SMPTE 314M DVC/DV Video
     			DVSD	IEC 61834 and SMPTE 314M DVC/DV Video
     			DVX1	Lucent DVX1000SP Video Decoder
     			DVX2	Lucent DVX2000S Video Decoder
     			DVX3	Lucent DVX3000S Video Decoder
     			DX50	DivX v5
     			DXT1	Microsoft DirectX Compressed Texture (DXT1)
     			DXT2	Microsoft DirectX Compressed Texture (DXT2)
     			DXT3	Microsoft DirectX Compressed Texture (DXT3)
     			DXT4	Microsoft DirectX Compressed Texture (DXT4)
     			DXT5	Microsoft DirectX Compressed Texture (DXT5)
     			DXTC	Microsoft DirectX Compressed Texture (DXTC)
     			DXTn	Microsoft DirectX Compressed Texture (DXTn)
     			EM2V	Etymonix MPEG-2 I-frame (www.etymonix.com)
     			EKQ0	Elsa ?EKQ0?
     			ELK0	Elsa ?ELK0?
     			ESCP	Eidos Escape
     			ETV1	eTreppid Video ETV1
     			ETV2	eTreppid Video ETV2
     			ETVC	eTreppid Video ETVC
     			FLIC	Autodesk FLI/FLC Animation
     			FLV1	Sorenson Spark
     			FLV4	On2 TrueMotion VP6
     			FRWT	Darim Vision Forward Motion JPEG (www.darvision.com)
     			FRWU	Darim Vision Forward Uncompressed (www.darvision.com)
     			FLJP	D-Vision Field Encoded Motion JPEG
     			FPS1	FRAPS v1
     			FRWA	SoftLab-Nsk Forward Motion JPEG w/ alpha channel
     			FRWD	SoftLab-Nsk Forward Motion JPEG
     			FVF1	Iterated Systems Fractal Video Frame
     			GLZW	Motion LZW (gabest@freemail.hu)
     			GPEG	Motion JPEG (gabest@freemail.hu)
     			GWLT	Microsoft Greyscale WLT DIB
     			H260	Intel ITU H.260 Videoconferencing
     			H261	Intel ITU H.261 Videoconferencing
     			H262	Intel ITU H.262 Videoconferencing
     			H263	Intel ITU H.263 Videoconferencing
     			H264	Intel ITU H.264 Videoconferencing
     			H265	Intel ITU H.265 Videoconferencing
     			H266	Intel ITU H.266 Videoconferencing
     			H267	Intel ITU H.267 Videoconferencing
     			H268	Intel ITU H.268 Videoconferencing
     			H269	Intel ITU H.269 Videoconferencing
     			HFYU	Huffman Lossless Codec
     			HMCR	Rendition Motion Compensation Format (HMCR)
     			HMRR	Rendition Motion Compensation Format (HMRR)
     			I263	FFmpeg I263 decoder
     			IF09	Indeo YVU9 ("YVU9 with additional delta-frame info after the U plane")
     			IUYV	Interlaced version of UYVY (www.leadtools.com)
     			IY41	Interlaced version of Y41P (www.leadtools.com)
     			IYU1	12 bit format used in mode 2 of the IEEE 1394 Digital Camera 1.04 spec    IEEE standard
     			IYU2	24 bit format used in mode 2 of the IEEE 1394 Digital Camera 1.04 spec    IEEE standard
     			IYUV	Planar YUV format (8-bpp Y plane, followed by 8-bpp 2×2 U and V planes)
     			i263	Intel ITU H.263 Videoconferencing (i263)
     			I420	Intel Indeo 4
     			IAN 	Intel Indeo 4 (RDX)
     			ICLB	InSoft CellB Videoconferencing
     			IGOR	Power DVD
     			IJPG	Intergraph JPEG
     			ILVC	Intel Layered Video
     			ILVR	ITU-T H.263+
     			IPDV	I-O Data Device Giga AVI DV Codec
     			IR21	Intel Indeo 2.1
     			IRAW	Intel YUV Uncompressed
     			IV30	Intel Indeo 3.0
     			IV31	Intel Indeo 3.1
     			IV32	Ligos Indeo 3.2
     			IV33	Ligos Indeo 3.3
     			IV34	Ligos Indeo 3.4
     			IV35	Ligos Indeo 3.5
     			IV36	Ligos Indeo 3.6
     			IV37	Ligos Indeo 3.7
     			IV38	Ligos Indeo 3.8
     			IV39	Ligos Indeo 3.9
     			IV40	Ligos Indeo Interactive 4.0
     			IV41	Ligos Indeo Interactive 4.1
     			IV42	Ligos Indeo Interactive 4.2
     			IV43	Ligos Indeo Interactive 4.3
     			IV44	Ligos Indeo Interactive 4.4
     			IV45	Ligos Indeo Interactive 4.5
     			IV46	Ligos Indeo Interactive 4.6
     			IV47	Ligos Indeo Interactive 4.7
     			IV48	Ligos Indeo Interactive 4.8
     			IV49	Ligos Indeo Interactive 4.9
     			IV50	Ligos Indeo Interactive 5.0
     			JBYR	Kensington ?JBYR?
     			JPEG	Still Image JPEG DIB
     			JPGL	Pegasus Lossless Motion JPEG
     			KMVC	Team17 Software Karl Morton\'s Video Codec
     			LSVM	Vianet Lighting Strike Vmail (Streaming) (www.vianet.com)
     			LEAD	LEAD Video Codec
     			Ljpg	LEAD MJPEG Codec
     			MDVD	Alex MicroDVD Video (hacked MS MPEG-4) (www.tiasoft.de)
     			MJPA	Morgan Motion JPEG (MJPA) (www.morgan-multimedia.com)
     			MJPB	Morgan Motion JPEG (MJPB) (www.morgan-multimedia.com)
     			MMES	Matrox MPEG-2 I-frame
     			MP2v	Microsoft S-Mpeg 4 version 1 (MP2v)
     			MP42	Microsoft S-Mpeg 4 version 2 (MP42)
     			MP43	Microsoft S-Mpeg 4 version 3 (MP43)
     			MP4S	Microsoft S-Mpeg 4 version 3 (MP4S)
     			MP4V	FFmpeg MPEG-4
     			MPG1	FFmpeg MPEG 1/2
     			MPG2	FFmpeg MPEG 1/2
     			MPG3	FFmpeg DivX ;-) (MS MPEG-4 v3)
     			MPG4	Microsoft MPEG-4
     			MPGI	Sigma Designs MPEG
     			MPNG	PNG images decoder
     			MSS1	Microsoft Windows Screen Video
     			MSZH	LCL (Lossless Codec Library) (www.geocities.co.jp/Playtown-Denei/2837/LRC.htm)
     			M261	Microsoft H.261
     			M263	Microsoft H.263
     			M4S2	Microsoft Fully Compliant MPEG-4 v2 simple profile (M4S2)
     			m4s2	Microsoft Fully Compliant MPEG-4 v2 simple profile (m4s2)
     			MC12	ATI Motion Compensation Format (MC12)
     			MCAM	ATI Motion Compensation Format (MCAM)
     			MJ2C	Morgan Multimedia Motion JPEG2000
     			mJPG	IBM Motion JPEG w/ Huffman Tables
     			MJPG	Microsoft Motion JPEG DIB
     			MP42	Microsoft MPEG-4 (low-motion)
     			MP43	Microsoft MPEG-4 (fast-motion)
     			MP4S	Microsoft MPEG-4 (MP4S)
     			mp4s	Microsoft MPEG-4 (mp4s)
     			MPEG	Chromatic Research MPEG-1 Video I-Frame
     			MPG4	Microsoft MPEG-4 Video High Speed Compressor
     			MPGI	Sigma Designs MPEG
     			MRCA	FAST Multimedia Martin Regen Codec
     			MRLE	Microsoft Run Length Encoding
     			MSVC	Microsoft Video 1
     			MTX1	Matrox ?MTX1?
     			MTX2	Matrox ?MTX2?
     			MTX3	Matrox ?MTX3?
     			MTX4	Matrox ?MTX4?
     			MTX5	Matrox ?MTX5?
     			MTX6	Matrox ?MTX6?
     			MTX7	Matrox ?MTX7?
     			MTX8	Matrox ?MTX8?
     			MTX9	Matrox ?MTX9?
     			MV12	Motion Pixels Codec (old)
     			MWV1	Aware Motion Wavelets
     			nAVI	SMR Codec (hack of Microsoft MPEG-4) (IRC #shadowrealm)
     			NT00	NewTek LightWave HDTV YUV w/ Alpha (www.newtek.com)
     			NUV1	NuppelVideo
     			NTN1	Nogatech Video Compression 1
     			NVS0	nVidia GeForce Texture (NVS0)
     			NVS1	nVidia GeForce Texture (NVS1)
     			NVS2	nVidia GeForce Texture (NVS2)
     			NVS3	nVidia GeForce Texture (NVS3)
     			NVS4	nVidia GeForce Texture (NVS4)
     			NVS5	nVidia GeForce Texture (NVS5)
     			NVT0	nVidia GeForce Texture (NVT0)
     			NVT1	nVidia GeForce Texture (NVT1)
     			NVT2	nVidia GeForce Texture (NVT2)
     			NVT3	nVidia GeForce Texture (NVT3)
     			NVT4	nVidia GeForce Texture (NVT4)
     			NVT5	nVidia GeForce Texture (NVT5)
     			PIXL	MiroXL, Pinnacle PCTV
     			PDVC	I-O Data Device Digital Video Capture DV codec
     			PGVV	Radius Video Vision
     			PHMO	IBM Photomotion
     			PIM1	MPEG Realtime (Pinnacle Cards)
     			PIM2	Pegasus Imaging ?PIM2?
     			PIMJ	Pegasus Imaging Lossless JPEG
     			PVEZ	Horizons Technology PowerEZ
     			PVMM	PacketVideo Corporation MPEG-4
     			PVW2	Pegasus Imaging Wavelet Compression
     			Q1.0	Q-Team\'s QPEG 1.0 (www.q-team.de)
     			Q1.1	Q-Team\'s QPEG 1.1 (www.q-team.de)
     			QPEG	Q-Team QPEG 1.0
     			qpeq	Q-Team QPEG 1.1
     			RGB 	Raw BGR32
     			RGBA	Raw RGB w/ Alpha
     			RMP4	REALmagic MPEG-4 (unauthorized XVID copy) (www.sigmadesigns.com)
     			ROQV	Id RoQ File Video Decoder
     			RPZA	Quicktime Apple Video (RPZA)
     			RUD0	Rududu video codec (http://rududu.ifrance.com/rududu/)
     			RV10	RealVideo 1.0 (aka RealVideo 5.0)
     			RV13	RealVideo 1.0 (RV13)
     			RV20	RealVideo G2
     			RV30	RealVideo 8
     			RV40	RealVideo 9
     			RGBT	Raw RGB w/ Transparency
     			RLE 	Microsoft Run Length Encoder
     			RLE4	Run Length Encoded (4bpp, 16-color)
     			RLE8	Run Length Encoded (8bpp, 256-color)
     			RT21	Intel Indeo RealTime Video 2.1
     			rv20	RealVideo G2
     			rv30	RealVideo 8
     			RVX 	Intel RDX (RVX )
     			SMC 	Apple Graphics (SMC )
     			SP54	Logitech Sunplus Sp54 Codec for Mustek GSmart Mini 2
     			SPIG	Radius Spigot
     			SVQ3	Sorenson Video 3 (Apple Quicktime 5)
     			s422	Tekram VideoCap C210 YUV 4:2:2
     			SDCC	Sun Communication Digital Camera Codec
     			SFMC	CrystalNet Surface Fitting Method
     			SMSC	Radius SMSC
     			SMSD	Radius SMSD
     			smsv	WorldConnect Wavelet Video
     			SPIG	Radius Spigot
     			SPLC	Splash Studios ACM Audio Codec (www.splashstudios.net)
     			SQZ2	Microsoft VXTreme Video Codec V2
     			STVA	ST Microelectronics CMOS Imager Data (Bayer)
     			STVB	ST Microelectronics CMOS Imager Data (Nudged Bayer)
     			STVC	ST Microelectronics CMOS Imager Data (Bunched)
     			STVX	ST Microelectronics CMOS Imager Data (Extended CODEC Data Format)
     			STVY	ST Microelectronics CMOS Imager Data (Extended CODEC Data Format with Correction Data)
     			SV10	Sorenson Video R1
     			SVQ1	Sorenson Video
     			T420	Toshiba YUV 4:2:0
     			TM2A	Duck TrueMotion Archiver 2.0 (www.duck.com)
     			TVJP	Pinnacle/Truevision Targa 2000 board (TVJP)
     			TVMJ	Pinnacle/Truevision Targa 2000 board (TVMJ)
     			TY0N	Tecomac Low-Bit Rate Codec (www.tecomac.com)
     			TY2C	Trident Decompression Driver
     			TLMS	TeraLogic Motion Intraframe Codec (TLMS)
     			TLST	TeraLogic Motion Intraframe Codec (TLST)
     			TM20	Duck TrueMotion 2.0
     			TM2X	Duck TrueMotion 2X
     			TMIC	TeraLogic Motion Intraframe Codec (TMIC)
     			TMOT	Horizons Technology TrueMotion S
     			tmot	Horizons TrueMotion Video Compression
     			TR20	Duck TrueMotion RealTime 2.0
     			TSCC	TechSmith Screen Capture Codec
     			TV10	Tecomac Low-Bit Rate Codec
     			TY2N	Trident ?TY2N?
     			U263	UB Video H.263/H.263+/H.263++ Decoder
     			UMP4	UB Video MPEG 4 (www.ubvideo.com)
     			UYNV	Nvidia UYVY packed 4:2:2
     			UYVP	Evans & Sutherland YCbCr 4:2:2 extended precision
     			UCOD	eMajix.com ClearVideo
     			ULTI	IBM Ultimotion
     			UYVY	UYVY packed 4:2:2
     			V261	Lucent VX2000S
     			VIFP	VFAPI Reader Codec (www.yks.ne.jp/~hori/)
     			VIV1	FFmpeg H263+ decoder
     			VIV2	Vivo H.263
     			VQC2	Vector-quantised codec 2 (research) http://eprints.ecs.soton.ac.uk/archive/00001310/01/VTC97-js.pdf)
     			VTLP	Alaris VideoGramPiX
     			VYU9	ATI YUV (VYU9)
     			VYUY	ATI YUV (VYUY)
     			V261	Lucent VX2000S
     			V422	Vitec Multimedia 24-bit YUV 4:2:2 Format
     			V655	Vitec Multimedia 16-bit YUV 4:2:2 Format
     			VCR1	ATI Video Codec 1
     			VCR2	ATI Video Codec 2
     			VCR3	ATI VCR 3.0
     			VCR4	ATI VCR 4.0
     			VCR5	ATI VCR 5.0
     			VCR6	ATI VCR 6.0
     			VCR7	ATI VCR 7.0
     			VCR8	ATI VCR 8.0
     			VCR9	ATI VCR 9.0
     			VDCT	Vitec Multimedia Video Maker Pro DIB
     			VDOM	VDOnet VDOWave
     			VDOW	VDOnet VDOLive (H.263)
     			VDTZ	Darim Vison VideoTizer YUV
     			VGPX	Alaris VideoGramPiX
     			VIDS	Vitec Multimedia YUV 4:2:2 CCIR 601 for V422
     			VIVO	Vivo H.263 v2.00
     			vivo	Vivo H.263
     			VIXL	Miro/Pinnacle Video XL
     			VLV1	VideoLogic/PURE Digital Videologic Capture
     			VP30	On2 VP3.0
     			VP31	On2 VP3.1
     			VP6F	On2 TrueMotion VP6
     			VX1K	Lucent VX1000S Video Codec
     			VX2K	Lucent VX2000S Video Codec
     			VXSP	Lucent VX1000SP Video Codec
     			WBVC	Winbond W9960
     			WHAM	Microsoft Video 1 (WHAM)
     			WINX	Winnov Software Compression
     			WJPG	AverMedia Winbond JPEG
     			WMV1	Windows Media Video V7
     			WMV2	Windows Media Video V8
     			WMV3	Windows Media Video V9
     			WNV1	Winnov Hardware Compression
     			XYZP	Extended PAL format XYZ palette (www.riff.org)
     			x263	Xirlink H.263
     			XLV0	NetXL Video Decoder
     			XMPG	Xing MPEG (I-Frame only)
     			XVID	XviD MPEG-4 (www.xvid.org)
     			XXAN	?XXAN?
     			YU92	Intel YUV (YU92)
     			YUNV	Nvidia Uncompressed YUV 4:2:2
     			YUVP	Extended PAL format YUV palette (www.riff.org)
     			Y211	YUV 2:1:1 Packed
     			Y411	YUV 4:1:1 Packed
     			Y41B	Weitek YUV 4:1:1 Planar
     			Y41P	Brooktree PC1 YUV 4:1:1 Packed
     			Y41T	Brooktree PC1 YUV 4:1:1 with transparency
     			Y42B	Weitek YUV 4:2:2 Planar
     			Y42T	Brooktree UYUV 4:2:2 with transparency
     			Y422	ADS Technologies Copy of UYVY used in Pyro WebCam firewire camera
     			Y800	Simple, single Y plane for monochrome images
     			Y8  	Grayscale video
     			YC12	Intel YUV 12 codec
     			YUV8	Winnov Caviar YUV8
     			YUV9	Intel YUV9
     			YUY2	Uncompressed YUV 4:2:2
     			YUYV	Canopus YUV
     			YV12	YVU12 Planar
     			YVU9	Intel YVU9 Planar (8-bpp Y plane, followed by 8-bpp 4x4 U and V planes)
     			YVYU	YVYU 4:2:2 Packed
     			ZLIB	Lossless Codec Library zlib compression (www.geocities.co.jp/Playtown-Denei/2837/LRC.htm)
     			ZPEG	Metheus Video Zipper
     
     		*/
     return Utils::EmbeddedLookup($fourcc, $begin, __LINE__, __FILE__, 'riff-fourcc');
 }
Пример #2
0
 public function GeneralMIDIpercussionLookup($instrumentid)
 {
     $begin = __LINE__;
     /** This is not a comment!
     
     			35	Acoustic Bass Drum
     			36	Bass Drum 1
     			37	Side Stick
     			38	Acoustic Snare
     			39	Hand Clap
     			40	Electric Snare
     			41	Low Floor Tom
     			42	Closed Hi-Hat
     			43	High Floor Tom
     			44	Pedal Hi-Hat
     			45	Low Tom
     			46	Open Hi-Hat
     			47	Low-Mid Tom
     			48	Hi-Mid Tom
     			49	Crash Cymbal 1
     			50	High Tom
     			51	Ride Cymbal 1
     			52	Chinese Cymbal
     			53	Ride Bell
     			54	Tambourine
     			55	Splash Cymbal
     			56	Cowbell
     			57	Crash Cymbal 2
     			59	Ride Cymbal 2
     			60	Hi Bongo
     			61	Low Bongo
     			62	Mute Hi Conga
     			63	Open Hi Conga
     			64	Low Conga
     			65	High Timbale
     			66	Low Timbale
     			67	High Agogo
     			68	Low Agogo
     			69	Cabasa
     			70	Maracas
     			71	Short Whistle
     			72	Long Whistle
     			73	Short Guiro
     			74	Long Guiro
     			75	Claves
     			76	Hi Wood Block
     			77	Low Wood Block
     			78	Mute Cuica
     			79	Open Cuica
     			80	Mute Triangle
     			81	Open Triangle
     
     		*/
     return Utils::EmbeddedLookup($instrumentid, $begin, __LINE__, __FILE__, 'GeneralMIDIpercussion');
 }