field.kit.gl.util

Compressor

object Compressor extends Actor with Logger

an actor based image compressor uses an actor per cpu core to parallize compression of BufferedImages via ImageIO

Inherits

  1. Logger
  2. Actor
  3. ReplyableActor
  4. ReplyReactor
  5. ReplyableReactor
  6. Reactor
  7. AbstractActor
  8. Replyable
  9. OutputChannel
  10. AbstractReactor
  11. AnyRef
  12. Any

Type Members

  1. class Compress(image: BufferedImage, format: String, file: File) extends Product

    tells an image processor to get going

  2. class Done(image: BufferedImage) extends Product

  3. class StateRecord extends AnyRef

    holds the availability state for the given element

Value Members

  1. def !(msg: Any): Unit

  2. def !!(msg: Any): Future[Any]

  3. def !![A](msg: Any, f: PartialFunction[Any, A]): Future[A]

  4. def !?(msec: Long, msg: Any): Option[Any]

  5. def !?(msg: Any): Any

  6. def ?: Any

  7. def act(): Unit

  8. def apply(image: BufferedImage, format: String, file: File): Unit

    queues another image for compression

    queues another image for compression

  9. def equals(arg0: Any): Boolean

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence

    This method is used to compare the receiver object (this) with the argument object (arg0) for equivalence.

    The default implementations of this method is an equivalence relation:

    • It is reflexive: for any instance x of type Any, x.equals(x) should return true.
    • It is symmetric: for any instances x and y of type Any, x.equals(y) should return true if and only if y.equals(x) returns true.
    • It is transitive: for any instances x, y, and z of type AnyRef if x.equals(y) returns true and y.equals(z) returns true, then x.equals(z) should return true.

    If you override this method, you should verify that your implementation remains an equivalence relation. Additionally, when overriding this method it is often necessary to override hashCode to ensure that objects that are "equal" (o1.equals(o2) returns true) hash to the same Int (o1.hashCode.equals(o2.hashCode)).

    arg0

    the object to compare against this object for equality.

    returns

    true if the receiver object is equivalent to the argument; false otherwise.

    definition classes: AnyRef ⇐ Any
  10. def error(m: Any*): Unit

  11. def fatal(code: Int, m: Any*): Unit

  12. def fatal(m: Any*): Unit

  13. def fine(m: Any*): Unit

  14. def forward(msg: Any): Unit

  15. def hashCode(): Int

    Returns a hash code value for the object

    Returns a hash code value for the object.

    The default hashing algorithm is platform dependent.

    Note that it is allowed for two objects to have identical hash codes (o1.hashCode.equals(o2.hashCode)) yet not be equal (o1.equals(o2) returns false). A degenerate implementation could always return 0. However, it is required that if two objects are equal (o1.equals(o2) returns true) that they have identical hash codes (o1.hashCode.equals(o2.hashCode)). Therefore, when overriding this method, be sure to verify that the behavior is consistent with the equals method.

    definition classes: AnyRef ⇐ Any
  16. val images: ArrayBuffer[ImageState]

  17. def info(m: Any*): Unit

  18. def init(width: Int, height: Int, alpha: Boolean): (BufferedImage, ByteBuffer)

    requests an image and buffer with the given dimensions

    requests an image and buffer with the given dimensions

  19. def link(body: ⇒ Unit): Actor

  20. def link(to: AbstractActor): AbstractActor

  21. def logName: String

  22. def logName_=(name: String): Unit

  23. val master: Compressor

  24. val processors: Array[ProcessorState]

  25. def protected$sender(arg0: field.kit.gl.util.Compressor.type): OutputChannel[Any]

  26. def react(f: PartialFunction[Any, Unit]): Nothing

  27. def reactWithin(msec: Long)(f: PartialFunction[Any, Unit]): Nothing

  28. def receive[R](f: PartialFunction[Any, R]): R

  29. def receiveWithin[R](msec: Long)(f: PartialFunction[Any, R]): R

  30. def receiver: Actor

  31. def send(msg: Any, replyTo: OutputChannel[Any]): Unit

  32. def start(): Actor

  33. val threads: Int

  34. def toString(): String

    Returns a string representation of the object

    Returns a string representation of the object.

    The default representation is platform dependent.

    definition classes: AnyRef ⇐ Any
  35. var trapExit: Boolean

  36. def unlink(from: AbstractActor): Unit

  37. def warn(m: Any*): Unit