ImageFileOutImpl

trait ImageFileOutImpl[S <: Shape] extends NodeHasInitImpl with WindowedMultiInOut

Common building block for ImageFileOut and ImageFileSeqOut

trait Node
class Object
trait Matchable
class Any

Value members

Abstract methods

protected def hImg: Array[InDMain]
protected def numChannels: Int

Concrete methods

final protected def closeImage(): Unit
protected def flushOut(): Boolean
final protected def imagesWritten: Int
protected def initSpec(spec: Spec): Unit
protected def isHotIn(inlet: Inlet[_]): Boolean
protected def mainInAvailable: Int
protected def mainInDone: Boolean
final protected def openImage(uri: URI): Unit

Resets framesWritten.

Resets framesWritten.

protected def outAvailable: Int
protected def outDone: Boolean
final protected def readIntoWindow(chunk: Int): Unit
protected def readWinSize: Long
override protected def stopped(): Unit
Definition Classes
protected def writeFromWindow(n: Int): Unit
protected def writeWinSize: Long

Inherited methods

def completeAsync(): Future[Unit]
Inherited from:
Node
def failAsync(ex: Exception): Unit
Inherited from:
Node
protected def init(): Unit
Inherited from:
NodeHasInitImpl
final def initAsync(): Future[Unit]
Inherited from:
NodeHasInitImpl
final protected def isInitialized: Boolean
Inherited from:
NodeHasInitImpl
def launchAsync(): Future[Unit]
Inherited from:
Node
Inherited from:
Node
protected def onDone(outlet: Outlet[_]): Unit
Inherited from:
WindowedMultiInOut
protected def onDone(inlet: Inlet[_]): Unit
Inherited from:
WindowedMultiInOut
final override def postStop(): Unit

Invoked by Akka after processing of external events stopped because the operator is about to stop or fail. Calls stopped and then removes the node from the control.

Invoked by Akka after processing of external events stopped because the operator is about to stop or fail. Calls stopped and then removes the node from the control.

Definition Classes
Inherited from:
Node
final override def preStart(): Unit

Final so we don't accidentally place code here. In order to initialize state, use NodeHasInitImpl and implement init.

Final so we don't accidentally place code here. In order to initialize state, use NodeHasInitImpl and implement init.

Definition Classes
Inherited from:
Node
@tailrec
final protected def process(): Unit
Inherited from:
WindowedMultiInOut
protected def processWindow(): Unit

Called after a window has been fully read in.

Called after a window has been fully read in.

Inherited from:
WindowedMultiInOut
def shape: Shape
Inherited from:
Node
protected def tryObtainWinParams(): Boolean

Tries to prepare the parameters for the next window. If successful, returns true otherwise false. If successful, it must be possible to successively call readWinSize. Most likely, the implementation will allocate an internal window buffer here.

Tries to prepare the parameters for the next window. If successful, returns true otherwise false. If successful, it must be possible to successively call readWinSize. Most likely, the implementation will allocate an internal window buffer here.

Inherited from:
WindowedMultiInOut

Concrete fields

final protected var framesWritten: Int
final protected var gain: Double
final protected var img: BufferedImage
final protected var numFrames: Int

Inherited fields

final protected var readOff: Long
Inherited from:
WindowedMultiInOut
final protected var readRem: Long
Inherited from:
WindowedMultiInOut
final protected var writeOff: Long
Inherited from:
WindowedMultiInOut
final protected var writeRem: Long
Inherited from:
WindowedMultiInOut

Implicits

Inherited implicits

implicit protected def allocator: Allocator
Inherited from:
Node
implicit protected def control: Control
Inherited from:
Node