va
Class ThreadCompression

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--va.ThreadCompression
All Implemented Interfaces:
java.lang.Runnable

class ThreadCompression
extends java.lang.Thread

A thread that compresses frame on the fly.


Field Summary
protected  byte[][] compressed
           
protected  short[][] frames
           
protected  int[] framesTimestamps
           
protected  int height
           
protected  VAInterface vaInterface
           
protected  VideoWatch watch
           
protected  int width
           
 
Fields inherited from class java.lang.Thread
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals
 
Constructor Summary
ThreadCompression(VAInterface vaInterface, VideoWatch watch, double initialFrameRate, int initialN, double sustainedFrameRate, int sustainedN, int width, int height)
           
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

width

protected int width

height

protected int height

frames

protected short[][] frames

compressed

protected byte[][] compressed

framesTimestamps

protected int[] framesTimestamps

watch

protected VideoWatch watch

vaInterface

protected VAInterface vaInterface
Constructor Detail

ThreadCompression

public ThreadCompression(VAInterface vaInterface,
                         VideoWatch watch,
                         double initialFrameRate,
                         int initialN,
                         double sustainedFrameRate,
                         int sustainedN,
                         int width,
                         int height)