org.hfbk.vid.AVVideoThread Class Reference

Inheritance diagram for org.hfbk.vid.AVVideoThread:

Inheritance graph
[legend]
Collaboration diagram for org.hfbk.vid.AVVideoThread:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AVVideoThread (AVCodecContext ctx, int maxPixels)
void run ()

Protected Member Functions

void close ()

Package Functions

ByteBuffer decodeVideo (AVPacket packet)
int convertToRGB (AVFrame src, AVFrame dst)

Package Attributes

AVFrame frame
AVFrame frameRGB
int width
int height
int frameBytes
final int pix_fmt = AVCodecLibrary.PIX_FMT_RGB24
int time
Pointer swscaler
ByteBuffer out

Static Package Attributes

static final int VIDEO_BUFFER = 0x2FFFF

Detailed Description

a video decoding thread. frames are decoded from the add()'ed AVPackets and rgb data is presented by 'out' in RGB24 pixel format.

the host could poll 'out' at frequent intervalls, and is allowed to reset it to null after receiving one frame to easily detect if another one comes available.

Definition at line 26 of file AVVideoThread.java.


Constructor & Destructor Documentation

org.hfbk.vid.AVVideoThread.AVVideoThread ( AVCodecContext  ctx,
int  maxPixels 
)

Definition at line 43 of file AVVideoThread.java.

References org.hfbk.vid.AVStreamThread.ctx, org.hfbk.vid.AVVideoThread.frame, org.hfbk.vid.AVVideoThread.frameBytes, org.hfbk.vid.AVVideoThread.frameRGB, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.height, org.hfbk.vid.AVVideoThread.height, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.pix_fmt, org.hfbk.vid.AVVideoThread.pix_fmt, org.hfbk.vid.AVVideoThread.swscaler, org.hfbk.vid.AVVideoThread.VIDEO_BUFFER, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.width, and org.hfbk.vid.AVVideoThread.width.


Member Function Documentation

ByteBuffer org.hfbk.vid.AVVideoThread.decodeVideo ( AVPacket  packet  )  [package]

Definition at line 83 of file AVVideoThread.java.

References org.hfbk.vid.AVVideoThread.convertToRGB(), org.hfbk.vid.AVStreamThread.ctx, net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.data, net.sf.ffmpeg_java.AVCodecLibrary.AVFrame.data0, org.hfbk.vid.AVVideoThread.frame, org.hfbk.vid.AVVideoThread.frameBytes, org.hfbk.vid.AVVideoThread.frameRGB, and net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.size.

Referenced by org.hfbk.vid.AVImageLoader.AVImageLoader(), and org.hfbk.vid.AVVideoThread.run().

Here is the call graph for this function:

Here is the caller graph for this function:

void org.hfbk.vid.AVVideoThread.run (  ) 

Definition at line 107 of file AVVideoThread.java.

References org.hfbk.vid.AVVideoThread.close(), org.hfbk.vid.AVVideoThread.decodeVideo(), org.hfbk.vid.AVStreamThread.finished, org.hfbk.vid.AVStreamThread.free, org.hfbk.vid.AVVideoThread.out, org.hfbk.vid.AVStreamThread.playing, org.hfbk.vid.AVStreamThread.poll(), net.sf.ffmpeg_java.AVFormatLibrary.AVPacket.pts, org.hfbk.vid.AVStreamThread.running, org.hfbk.vid.AVStreamThread.tick(), and org.hfbk.vid.AVVideoThread.time.

Here is the call graph for this function:

void org.hfbk.vid.AVVideoThread.close (  )  [protected]

Reimplemented from org.hfbk.vid.AVStreamThread.

Definition at line 133 of file AVVideoThread.java.

References net.sf.ffmpeg_java.AVCodecLibrary.AVFrame.data0, org.hfbk.vid.AVVideoThread.frame, org.hfbk.vid.AVVideoThread.frameRGB, and org.hfbk.vid.AVVideoThread.swscaler.

Referenced by org.hfbk.vid.AVImageLoader.AVImageLoader(), and org.hfbk.vid.AVVideoThread.run().

Here is the caller graph for this function:

int org.hfbk.vid.AVVideoThread.convertToRGB ( AVFrame  src,
AVFrame  dst 
) [package]

Definition at line 149 of file AVVideoThread.java.

References org.hfbk.vid.AVStreamThread.ctx, net.sf.ffmpeg_java.AVCodecLibrary.AVCodecContext.height, and org.hfbk.vid.AVVideoThread.swscaler.

Referenced by org.hfbk.vid.AVVideoThread.decodeVideo().

Here is the caller graph for this function:


Member Data Documentation

final int org.hfbk.vid.AVVideoThread.VIDEO_BUFFER = 0x2FFFF [static, package]

Definition at line 28 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVVideoThread.AVVideoThread().

AVFrame org.hfbk.vid.AVVideoThread.frame [package]

Definition at line 30 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVVideoThread.AVVideoThread(), org.hfbk.vid.AVVideoThread.close(), and org.hfbk.vid.AVVideoThread.decodeVideo().

AVFrame org.hfbk.vid.AVVideoThread.frameRGB [package]

Definition at line 30 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVImageLoader.AVImageLoader(), org.hfbk.vid.AVVideoThread.AVVideoThread(), org.hfbk.vid.AVVideoThread.close(), and org.hfbk.vid.AVVideoThread.decodeVideo().

int org.hfbk.vid.AVVideoThread.width [package]

Definition at line 32 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVImageLoader.AVImageLoader(), org.hfbk.vid.AVVideoThread.AVVideoThread(), and org.hfbk.vid.VideoTexture.VideoTexture().

int org.hfbk.vid.AVVideoThread.height [package]

Definition at line 32 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVImageLoader.AVImageLoader(), org.hfbk.vid.AVVideoThread.AVVideoThread(), and org.hfbk.vid.VideoTexture.VideoTexture().

int org.hfbk.vid.AVVideoThread.frameBytes [package]

Definition at line 32 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVVideoThread.AVVideoThread(), and org.hfbk.vid.AVVideoThread.decodeVideo().

final int org.hfbk.vid.AVVideoThread.pix_fmt = AVCodecLibrary.PIX_FMT_RGB24 [package]

Definition at line 34 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVVideoThread.AVVideoThread().

int org.hfbk.vid.AVVideoThread.time [package]

Definition at line 36 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVStreamingThread.AVStreamingThread(), org.hfbk.vid.AVStreamingThread.getFrame(), org.hfbk.vid.AVStreamingThread.open(), and org.hfbk.vid.AVVideoThread.run().

Pointer org.hfbk.vid.AVVideoThread.swscaler [package]

Definition at line 38 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVVideoThread.AVVideoThread(), org.hfbk.vid.AVVideoThread.close(), and org.hfbk.vid.AVVideoThread.convertToRGB().

ByteBuffer org.hfbk.vid.AVVideoThread.out [package]

present the decoded frames.

Definition at line 41 of file AVVideoThread.java.

Referenced by org.hfbk.vid.AVStreamingThread.getFrame(), and org.hfbk.vid.AVVideoThread.run().


The documentation for this class was generated from the following file:
Generated on Tue Apr 7 17:58:02 2009 for visclient by  doxygen 1.5.1