⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 h261format.java

📁 FMJ(freedom media for java)是java视频开发的新选择
💻 JAVA
字号:
package javax.media.format;import javax.media.Format;import net.sf.fmj.utility.FormatUtils;/** * Coding complete. * @author Ken Larson * */public class H261Format extends VideoFormat{	protected int stillImageTransmission = NOT_SPECIFIED;		private static String ENCODING = H261;		public H261Format()	{	super(ENCODING);		dataType = Format.byteArray;	}		public H261Format(java.awt.Dimension size,            int maxDataLength,            Class dataType,            float frameRate,            int stillImageTransmission)	{		super(ENCODING, size, maxDataLength, dataType, frameRate);		this.stillImageTransmission = stillImageTransmission;	}		public int getStillImageTransmission()	{	return stillImageTransmission;	}		public Object clone()	{	return new H261Format(FormatUtils.clone(size), maxDataLength, dataType, frameRate, stillImageTransmission);	}		protected void copy(Format f)	{		super.copy(f);		final H261Format oCast = (H261Format) f;	// it has to be a H261Format, or ClassCastException will be thrown.		this.stillImageTransmission = oCast.stillImageTransmission;		}		public String toString()	{	return "H.261 video format";	}	public boolean equals(Object format)	{		if (!super.equals(format))			return false;				if (!(format instanceof H261Format))			{			return false;		}				final H261Format oCast = (H261Format) format;		return this.stillImageTransmission == oCast.stillImageTransmission;	}		public boolean matches(Format format)	{		if (!super.matches(format))		{				FormatUtils.traceMatches(this, format, false);			return false;		}				if (!(format instanceof H261Format))		{				final boolean result = true;			FormatUtils.traceMatches(this, format, result);			return result;		}				final H261Format oCast = (H261Format) format;		final boolean result = 			FormatUtils.matches(this.stillImageTransmission, oCast.stillImageTransmission);				FormatUtils.traceMatches(this, format, result);				return result;			}		public Format intersects(Format other)	{		final Format result = super.intersects(other);		if (other instanceof H261Format)		{			final H261Format resultCast = (H261Format) result;						final H261Format oCast = (H261Format) other;			if (getClass().isAssignableFrom(other.getClass()))			{					// "other" was cloned.								if (FormatUtils.specified(this.stillImageTransmission))					resultCast.stillImageTransmission = this.stillImageTransmission;							}			else if (other.getClass().isAssignableFrom(getClass()))			{	// this was cloned								if (!FormatUtils.specified(resultCast.stillImageTransmission))					resultCast.stillImageTransmission = oCast.stillImageTransmission;						}		}				FormatUtils.traceIntersects(this, other, result);				return result;	}		static	{	// for Serializable compatibility.	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -