📄 buffer.html
字号:
<A HREF="../../javax/media/Buffer.html#FLAG_NO_SYNC"><CODE>FLAG_NO_SYNC</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RELATIVE_TIME"><CODE>FLAG_RELATIVE_TIME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SYSTEM_TIME"><CODE>FLAG_SYSTEM_TIME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_FLUSH"><CODE>FLAG_FLUSH</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SYSTEM_MARKER"><CODE>FLAG_SYSTEM_MARKER</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RTP_MARKER"><CODE>FLAG_RTP_MARKER</CODE></A></DL></DD></DL><HR><A NAME="data"><!-- --></A><H3>data</H3><PRE>protected java.lang.Object <B>data</B></PRE><DL><DD>The object that actually holds the media data chunk for this <CODE>Buffer</CODE>. It can be an array type (such as byte[]) or any other type of object. Use <code>instanceOf</code> to determine what type it is.</DL><HR><A NAME="header"><!-- --></A><H3>header</H3><PRE>protected java.lang.Object <B>header</B></PRE><DL><DD>Header information (such as RTP header) for this data chunk. It can be of any type. Use <code>instanceOf</code> to determine what type it is.</DL><HR><A NAME="length"><!-- --></A><H3>length</H3><PRE>protected int <B>length</B></PRE><DL><DD>For array data type, states how many samples are valid in the array. (The array might be larger than the actual media length).</DL><HR><A NAME="offset"><!-- --></A><H3>offset</H3><PRE>protected int <B>offset</B></PRE><DL><DD>For array data type, points to the starting point (offset) into the array where the valid data begins.</DL><HR><A NAME="sequenceNumber"><!-- --></A><H3>sequenceNumber</H3><PRE>protected long <B>sequenceNumber</B></PRE><DL><DD>The sequence number of this <CODE>Buffer</CODE>. The sequence number of adjacent <CODE>Buffer</CODE> objects in a sequence should differ by 1: positive 1 if the media is playing forward, negative 1 if the media is played in reverse. If the sequence number is not known, SEQUENCE_UNKNOWN is specified.</DL><HR><A NAME="FLAG_EOM"><!-- --></A><H3>FLAG_EOM</H3><PRE>public static final int <B>FLAG_EOM</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> marks the end of media for the data stream. The Buffer might or might not contain valid data to be processed. The length and data attributes need to be examined to determine whether or not this <CODE>Buffer</CODE> contains valid data.</DL><HR><A NAME="FLAG_DISCARD"><!-- --></A><H3>FLAG_DISCARD</H3><PRE>public static final int <B>FLAG_DISCARD</B></PRE><DL><DD>Indicates that the media data in this <CODE>Buffer</CODE> should be ignored.</DL><HR><A NAME="FLAG_SILENCE"><!-- --></A><H3>FLAG_SILENCE</H3><PRE>public static final int <B>FLAG_SILENCE</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> contains only silence frames.</DL><HR><A NAME="FLAG_SID"><!-- --></A><H3>FLAG_SID</H3><PRE>public static final int <B>FLAG_SID</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> contains only SID (silence information description) frames.</DL><HR><A NAME="FLAG_KEY_FRAME"><!-- --></A><H3>FLAG_KEY_FRAME</H3><PRE>public static final int <B>FLAG_KEY_FRAME</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> starts with a key frame.</DL><HR><A NAME="FLAG_NO_DROP"><!-- --></A><H3>FLAG_NO_DROP</H3><PRE>public static final int <B>FLAG_NO_DROP</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> will not be dropped even if the frame is behind the presentation schedule.</DL><HR><A NAME="FLAG_NO_WAIT"><!-- --></A><H3>FLAG_NO_WAIT</H3><PRE>public static final int <B>FLAG_NO_WAIT</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> will not be waited on even if the frame is ahead of the presentation schedule.</DL><HR><A NAME="FLAG_NO_SYNC"><!-- --></A><H3>FLAG_NO_SYNC</H3><PRE>public static final int <B>FLAG_NO_SYNC</B></PRE><DL><DD>Indicates that this <CODE>Buffer</CODE> is not to be presented in sync with the scheduled presentation time. In other words, the <CODE>Buffer</CODE> will not be dropped or waited on if it's behind or ahead of schedule.</DL><HR><A NAME="FLAG_SYSTEM_TIME"><!-- --></A><H3>FLAG_SYSTEM_TIME</H3><PRE>public static final int <B>FLAG_SYSTEM_TIME</B></PRE><DL><DD>Indicates that the <CODE>Buffer</CODE> carries a time stamp that's relative to the SystemTimeBase. This flag is generally set for data transferred from hardware capture DataSources that uses the system clock.</DL><HR><A NAME="FLAG_RELATIVE_TIME"><!-- --></A><H3>FLAG_RELATIVE_TIME</H3><PRE>public static final int <B>FLAG_RELATIVE_TIME</B></PRE><DL><DD>Indicates that the <CODE>Buffer</CODE> carries a time stamp that's in relative time units. This means that individual time stamps are not measured against any indentifiable absolute origin--only the difference between the time stamps of two consecutive buffers carries useful information. (This is the time difference between the two packets.)</DL><HR><A NAME="FLAG_FLUSH"><!-- --></A><H3>FLAG_FLUSH</H3><PRE>public static final int <B>FLAG_FLUSH</B></PRE><DL><DD>This is a marker bit used by the system. When this flag is set, it marks a zero-length <CODE>Buffer</CODE> generated by the system to flush the data path. Do not attempt to use or overwrite this flag.</DL><HR><A NAME="FLAG_SYSTEM_MARKER"><!-- --></A><H3>FLAG_SYSTEM_MARKER</H3><PRE>public static final int <B>FLAG_SYSTEM_MARKER</B></PRE><DL><DD>This is a marker bit used by the system. Do not attempt to use or overwrite this flag.</DL><HR><A NAME="FLAG_RTP_MARKER"><!-- --></A><H3>FLAG_RTP_MARKER</H3><PRE>public static final int <B>FLAG_RTP_MARKER</B></PRE><DL><DD>This is a marker bit for RTP. Indicates that the <CODE>Buffer</CODE> is the last packet of a video frame.</DL><HR><A NAME="TIME_UNKNOWN"><!-- --></A><H3>TIME_UNKNOWN</H3><PRE>public static final long <B>TIME_UNKNOWN</B></PRE><DL><DD>The <code>getTimeStamp</code> method return this value if the time stamp of the media is not known.</DL><HR><A NAME="SEQUENCE_UNKNOWN"><!-- --></A><H3>SEQUENCE_UNKNOWN</H3><PRE>public static final long <B>SEQUENCE_UNKNOWN</B></PRE><DL><DD>The <code>getSequenceNumber</code> method returns this value if the sequence number is not known.</DL><!-- ========= 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="Buffer()"><!-- --></A><H3>Buffer</H3><PRE>public <B>Buffer</B>()</PRE><DL></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="getFormat()"><!-- --></A><H3>getFormat</H3><PRE>public <A HREF="../../javax/media/Format.html">Format</A> <B>getFormat</B>()</PRE><DL><DD>Get the <CODE>Format</CODE> of the data in this <CODE>Buffer</CODE>.</DL><HR><A NAME="setFormat(javax.media.Format)"><!-- --></A><H3>setFormat</H3><PRE>public void <B>setFormat</B>(<A HREF="../../javax/media/Format.html">Format</A> format)</PRE><DL><DD>Sets the <CODE>Format</CODE> of the data in this <CODE>Buffer</CODE>.<DD><DL><DT><B>Parameters:</B><DD><CODE>format</CODE> - The <CODE>Format</CODE> of the data.</DL></DD></DL><HR><A NAME="getFlags()"><!-- --></A><H3>getFlags</H3><PRE>public int <B>getFlags</B>()</PRE><DL><DD>Gets the mask of the flags set for this <CODE>Buffer</CODE>. The integer value of the mask is equal to the logical sum of the flags that are set.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#FLAG_EOM"><CODE>FLAG_EOM</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_DISCARD"><CODE>FLAG_DISCARD</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SILENCE"><CODE>FLAG_SILENCE</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SID"><CODE>FLAG_SID</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_KEY_FRAME"><CODE>FLAG_KEY_FRAME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_DROP"><CODE>FLAG_NO_DROP</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_WAIT"><CODE>FLAG_NO_WAIT</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_SYNC"><CODE>FLAG_NO_SYNC</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RELATIVE_TIME"><CODE>FLAG_RELATIVE_TIME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_FLUSH"><CODE>FLAG_FLUSH</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SYSTEM_MARKER"><CODE>FLAG_SYSTEM_MARKER</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RTP_MARKER"><CODE>FLAG_RTP_MARKER</CODE></A></DL></DD></DL><HR><A NAME="setFlags(int)"><!-- --></A><H3>setFlags</H3><PRE>public void <B>setFlags</B>(int flags)</PRE><DL><DD>Sets the flag mask for this <CODE>Buffer</CODE>. The integer value of the mask is equal to the logical sum of the flags that are set.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../javax/media/Buffer.html#FLAG_EOM"><CODE>FLAG_EOM</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_DISCARD"><CODE>FLAG_DISCARD</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SILENCE"><CODE>FLAG_SILENCE</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SID"><CODE>FLAG_SID</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_KEY_FRAME"><CODE>FLAG_KEY_FRAME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_DROP"><CODE>FLAG_NO_DROP</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_WAIT"><CODE>FLAG_NO_WAIT</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_NO_SYNC"><CODE>FLAG_NO_SYNC</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RELATIVE_TIME"><CODE>FLAG_RELATIVE_TIME</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_FLUSH"><CODE>FLAG_FLUSH</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_SYSTEM_MARKER"><CODE>FLAG_SYSTEM_MARKER</CODE></A>, <A HREF="../../javax/media/Buffer.html#FLAG_RTP_MARKER"><CODE>FLAG_RTP_MARKER</CODE></A></DL></DD></DL><HR><A NAME="isEOM()"><!-- --></A><H3>isEOM</H3><PRE>public boolean <B>isEOM</B>()</PRE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -