|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.humatic.dsj.src.Source
public class Source
Baseclass for source objects, that work with the CompressedJavaSource filter.
| Field Summary | |
|---|---|
static int |
ASYNC
Data transport mode |
static int |
AUTO_GC
|
static int |
DIRECT
Data transport mode |
static int |
ES
Source types |
static int |
FILTER_SETUP_ERROR
Source errors |
static int |
FLV
Source types |
static int |
HTTP
Source types |
static int |
HTTP_AUDIO
Source types |
static int |
JAS
Source types |
static int |
MJPG
Source types |
static int |
MKV
Source types |
static int |
MP4
Source types |
static int |
PSNET
Source types |
static int |
PULL
Data transport mode |
static int |
PUSH
Data transport mode |
static int |
RAW
Source types |
static int |
RTMP
Source types |
static int |
RTP
Source types |
static int |
RTSP
Source types |
static int |
SHOUTCAST
Source types |
static int |
SS_CLOSED
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_CONNECT
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_CONNECTED
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_DONE
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_EOS
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_FORMAT_READ
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_RUNNING
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_SEEKING
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_SETUP
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_STREAMS_READ
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
SS_TCP_ROLLOVER
Source states as transferred to listeners in SOURCE_STATE_CHANGED events during setup. |
static int |
TIMEOUT
|
static int |
TSFILE
Source types |
static int |
TSNET
Source types |
static int |
UNKNOWN
Source types |
| Constructor Summary | |
|---|---|
Source()
Empty constructor, does nothing. |
|
Source(int numChannels)
|
|
| Method Summary | |
|---|---|
void |
addSourceFilter(CompressedJavaSource cjs)
|
byte[] |
asyncRead(int numBytes)
Called by async sources on a DSFiltergraph internal dispatch thread. |
boolean |
canSeek()
|
void |
closeSource(boolean terminate)
Closes down the source. |
DSGraph |
createGraph(int graphFlags)
Creates a DSGraph object with CompressedJavaSource filters that are fed from this source. |
DSGraph |
createGraph(int graphFlags,
DSFilterInfo videoDecoder,
DSFilterInfo audioDecoder)
Creates a DSGraph object with CompressedJavaSource filters, fed from this source and the given video and audio decoders. |
void |
createSourceFilter_async(int srcFlags,
DSMediaType mediaType)
|
CompressedJavaSource |
createSourceFilter(int srcFlags,
DSMediaType mediaType)
This is called by the various source implementations once they have determined, what kind of media they deal with etc. It basically calls through to DSGraph.insertCompressedSourceFilter(...). |
int |
getAvailable()
Returns the available number of bytes a pull source can access or 0 if unknown. |
boolean |
getBuffered()
|
DSGraph |
getGraph()
|
int |
getID()
|
int |
getMaxTimeLoaded()
|
DSMediaType[] |
getMediaTypes()
Returns the media types created by this source. |
int |
getMinBufferTime()
Returns this Source's minimum buffer requirements in msec worth of data. |
int |
getNumChannels()
Returns the number of media channels this source delivers (and thus the number of CompressedJavaSource filters it will create). |
int |
getOffsetTime(int mediaMajorType)
|
java.lang.String |
getPath()
|
int |
getSourceDuration()
Returns duration of the source's media if known, 0 otherwise |
CompressedJavaSource |
getSourceFilter(int mediaMajorType)
|
CompressedJavaSource[] |
getSourceFilters()
Returns all the CompressedJavaSource filters, that the Source created. |
int |
getSourceFlags()
|
int |
getSourceTime()
|
int |
getTransport()
Depending on implementation, returns either Source.PUSH, PULL or ASYNC. |
int |
getType()
|
boolean |
isLive()
|
void |
notifyChannelFailure(int severity,
int channelNr,
int cause,
java.lang.String desc)
|
int |
queryParameter_int(int parameter)
|
byte[] |
read()
When in PULL mode, the source filter calls this method to pull data from the source. |
void |
sendEvent(int flag)
|
void |
setOffsetTime(DSMediaType forType,
int time)
|
void |
setSourceRate(float rate)
Starts and pauses the source, application code should rather not use this method directly, but stick with DSFiltergraph methods. |
void |
setSourceTime(int time)
Repositions the source, application code should rather not use this method directly, but stick with DSFiltergraph methods. |
boolean |
streamSeek(int toPos)
Instructs the Source implementation to reposition its read pointer in the incoming stream to the requested byte position. |
byte[] |
syncRead(int numBytes)
Called by async sources on a native DirectShow thread during stream investigation (the MPEG splitter continues to use this method also during normal playback). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int PUSH
public static final int PULL
public static final int ASYNC
public static final int DIRECT
public static final int AUTO_GC
public static int TIMEOUT
public static final int SS_EOS
public static final int SS_CONNECT
public static final int SS_CONNECTED
public static final int SS_TCP_ROLLOVER
public static final int SS_SETUP
public static final int SS_STREAMS_READ
public static final int SS_FORMAT_READ
public static final int SS_RUNNING
public static final int SS_SEEKING
public static final int SS_DONE
public static final int SS_CLOSED
public static final int UNKNOWN
public static final int TSNET
public static final int PSNET
public static final int TSFILE
public static final int MJPG
public static final int RTSP
public static final int RTMP
public static final int JAS
public static final int RTP
public static final int MP4
public static final int FLV
public static final int HTTP
public static final int HTTP_AUDIO
public static final int SHOUTCAST
public static final int MKV
public static final int ES
public static final int RAW
public static final int FILTER_SETUP_ERROR
| Constructor Detail |
|---|
public Source()
throws java.lang.Exception
java.lang.Exception
public Source(int numChannels)
throws java.lang.Exception
java.lang.Exception| Method Detail |
|---|
public int getType()
public int getID()
public DSGraph createGraph(int graphFlags)
public DSGraph createGraph(int graphFlags,
DSFilterInfo videoDecoder,
DSFilterInfo audioDecoder)
public int getNumChannels()
public CompressedJavaSource createSourceFilter(int srcFlags,
DSMediaType mediaType)
public void createSourceFilter_async(int srcFlags,
DSMediaType mediaType)
public void addSourceFilter(CompressedJavaSource cjs)
public CompressedJavaSource[] getSourceFilters()
public CompressedJavaSource getSourceFilter(int mediaMajorType)
public int getSourceFlags()
public int getSourceDuration()
public void setSourceTime(int time)
public int getSourceTime()
public boolean canSeek()
public void setSourceRate(float rate)
public int getTransport()
public DSMediaType[] getMediaTypes()
public void closeSource(boolean terminate)
public void sendEvent(int flag)
public java.lang.String getPath()
public void notifyChannelFailure(int severity,
int channelNr,
int cause,
java.lang.String desc)
public boolean isLive()
public int getAvailable()
public byte[] read()
public byte[] syncRead(int numBytes)
public byte[] asyncRead(int numBytes)
public boolean streamSeek(int toPos)
public int getMinBufferTime()
public DSGraph getGraph()
public int getMaxTimeLoaded()
public boolean getBuffered()
public int queryParameter_int(int parameter)
public void setOffsetTime(DSMediaType forType,
int time)
public int getOffsetTime(int mediaMajorType)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||