📄 csequence.html
字号:
This method allows the application to set data rate parameters, which communicate information to compressors that can constrain compressed data in a particular sequence to a specific data rate.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/CSequence.html#setFrameNumber(int)">setFrameNumber</A></B>(int frameNumber)</CODE><BR> This method informs the compressor in use for this sequence that frames are being compressed out of order.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/CSequence.html#setKeyFrameRate(int)">setKeyFrameRate</A></B>(int keyFrameRate)</CODE><BR> This method allows you to adjust the key frame rate for the current sequence.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/CSequence.html#setPreferredPacketSize(int)">setPreferredPacketSize</A></B>(int preferredPacketSize)</CODE><BR> Sets the preferred packet size for a sequence.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/CSequence.html#setPrev(quicktime.qd.QDGraphics, quicktime.qd.QDRect)">setPrev</A></B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> prev, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> prevRect)</CODE><BR> This method allows the application to set the pixel map and boundary rectangle used by the previous frame in temporal compression.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/image/CSequence.html#setQuality(int, int)">setQuality</A></B>(int spatialQuality, int temporalQuality)</CODE><BR> This method allows you to adjust the spatial or temporal quality for the current sequence.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.std.image.CDSequence"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.std.image.<A HREF="../../../quicktime/std/image/CDSequence.html">CDSequence</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/std/image/CDSequence.html#busy()">busy</A>, <A HREF="../../../quicktime/std/image/CDSequence.html#equivalentImageDescription(quicktime.std.image.ImageDescription)">equivalentImageDescription</A>, <A HREF="../../../quicktime/std/image/CDSequence.html#getDescription()">getDescription</A>, <A HREF="../../../quicktime/std/image/CDSequence.html#setTimeBase(quicktime.std.clocks.TimeBase)">setTimeBase</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A>, <A HREF="../../../quicktime/QTObject.html#toString()">toString</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="CSequence(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, quicktime.std.image.CodecComponent, int, int, int, int)"><!-- --></A><H3>CSequence</H3><PRE>public <B>CSequence</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int cType, <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A> codec, int spatialQuality, int temporalQuality, int keyFrameRate, int flags) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creating an instance of this class signals the beginning of the process of compressing a sequence of frames. The ICM will choose the color depth and will allocate a previous image buffer. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag118">QuickTime::CompressSequenceBegin</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics object containing the PixMap which is the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>cType</CODE> - the compressor type<DD><CODE>codec</CODE> - the compressor identifier<DD><CODE>spatialQuality</CODE> - the desired compressed image quality<DD><CODE>temporalQuality</CODE> - the desired sequence temporal quality<DD><CODE>keyFrameRate</CODE> - the maximum number of frames allowed between key frames<DD><CODE>flags</CODE> - flags providing further control information</DL></DD></DL><HR><A NAME="CSequence(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, int, quicktime.std.image.CodecComponent, int, int, int, quicktime.qd.ColorTable, int)"><!-- --></A><H3>CSequence</H3><PRE>public <B>CSequence</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int colorDepth, int cType, <A HREF="../../../quicktime/std/image/CodecComponent.html">CodecComponent</A> codec, int spatialQuality, int temporalQuality, int keyFrameRate, <A HREF="../../../quicktime/qd/ColorTable.html">ColorTable</A> clut, int flags) throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Creating an instance of this class signals the beginning of the process of compressing a sequence of frames. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag118">QuickTime::CompressSequenceBegin</a> </b><BR><BR><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics object containing the PixMap which is the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>colorDepth</CODE> - the depth at which the sequence is likely to be viewed<DD><CODE>cType</CODE> - the compressor type<DD><CODE>codec</CODE> - the compressor identifier<DD><CODE>spatialQuality</CODE> - the desired compressed image quality<DD><CODE>temporalQuality</CODE> - the desired sequence temporal quality<DD><CODE>keyFrameRate</CODE> - the maximum number of frames allowed between key frames<DD><CODE>clut</CODE> - a custum color lookup table<DD><CODE>flags</CODE> - flags providing further control information</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="compressFrame(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, quicktime.util.EncodedImage)"><!-- --></A><H3>compressFrame</H3><PRE>public <A HREF="../../../quicktime/std/image/CompressedFrameInfo.html">CompressedFrameInfo</A> <B>compressFrame</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int flags, <A HREF="../../../quicktime/util/EncodedImage.html">EncodedImage</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A>, <A HREF="../../../quicktime/qd/QDException.html">QDException</A></PRE><DL><DD>Your application calls this method to compress one of a sequence of frames. The size of the compressed data and the similarity value are returned in the CompressedFrameInfo object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag120">QuickTime::CompressSequenceFrame</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>flags</CODE> - flags providing further control information<DD><CODE>data</CODE> - an EncodedImage object to hold the compressed image data. It is your program's responsibility to make sure that this object can receive at least as much data as indicated by the getMaxCompressionSize method.<DT><B>Returns:</B><DD>the size of the compressed data and the similarity value</DL></DD></DL><HR><A NAME="compressFrame(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, quicktime.util.IntEncodedImage)"><!-- --></A><H3>compressFrame</H3><PRE>public <A HREF="../../../quicktime/std/image/CompressedFrameInfo.html">CompressedFrameInfo</A> <B>compressFrame</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int flags, <A HREF="../../../quicktime/util/IntEncodedImage.html">IntEncodedImage</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Your application calls this method to compress one of a sequence of frames. The size of the compressed data and the similarity value are returned in the CompressedFrameInfo object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag120">QuickTime::CompressSequenceFrame</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>flags</CODE> - flags providing further control information<DD><CODE>data</CODE> - an EncodedImage object to hold the compressed image data. It is your program's responsibility to make sure that this object can receive at least as much data as indicated by the getMaxCompressionSize method.<DT><B>Returns:</B><DD>the size of the compressed data and the similarity value</DL></DD></DL><HR><A NAME="compressFrame(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, quicktime.util.ByteEncodedImage)"><!-- --></A><H3>compressFrame</H3><PRE>public <A HREF="../../../quicktime/std/image/CompressedFrameInfo.html">CompressedFrameInfo</A> <B>compressFrame</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int flags, <A HREF="../../../quicktime/util/ByteEncodedImage.html">ByteEncodedImage</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Your application calls this method to compress one of a sequence of frames. The size of the compressed data and the similarity value are returned in the CompressedFrameInfo object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag120">QuickTime::CompressSequenceFrame</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>flags</CODE> - flags providing further control information<DD><CODE>data</CODE> - an EncodedImage object to hold the compressed image data. It is your program's responsibility to make sure that this object can receive at least as much data as indicated by the getMaxCompressionSize method.<DT><B>Returns:</B><DD>the size of the compressed data and the similarity value</DL></DD></DL><HR><A NAME="compressFrame(quicktime.qd.QDGraphics, quicktime.qd.QDRect, int, quicktime.util.RawEncodedImage)"><!-- --></A><H3>compressFrame</H3><PRE>public <A HREF="../../../quicktime/std/image/CompressedFrameInfo.html">CompressedFrameInfo</A> <B>compressFrame</B>(<A HREF="../../../quicktime/qd/QDGraphics.html">QDGraphics</A> src, <A HREF="../../../quicktime/qd/QDRect.html">QDRect</A> srcRect, int flags, <A HREF="../../../quicktime/util/RawEncodedImage.html">RawEncodedImage</A> data) throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>Your application calls this method to compress one of a sequence of frames. The size of the compressed data and the similarity value are returned in the CompressedFrameInfo object. <BR><BR><b> <a href="http://developer.apple.com/techpubs/quicktime/qtdevdocs/INMAC/QT/iqImageCompMgr.23.htm#iqImag120">QuickTime::CompressSequenceFrame</a> </b><BR><BR></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>src</CODE> - a QDGraphics that contains the PixMap object containing the source data to be compressed. This may NOT be null.<DD><CODE>srcRect</CODE> - a QDRect defining the portion of the image to compress<DD><CODE>flags</CODE> - flags providing further control information<DD><CODE>data</CODE> - an EncodedImage object to hold the compressed image data. It is your program's responsibility to make sure that this object can receive at least as much data as indicated by the getMaxCompressionSize method.<DT><B>Returns:</B><DD>the size of the compressed data and the similarity value</DL></DD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -