HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file media.video.Encoder by barry
expand copy to clipboardexpand
uses media.PixelMapYUV

data EncodedFrame {
	byte content[]
	int timestamp
}

/* {"description" : "API to encode video frames." } */
interface Encoder {
	Encoder(store WH size, int framesPerSecond, int bitsPerSecond)
	EncodedFrame[] encode(PixelMapYUV frame, bool keyFrame)
	EncodedFrame[] finish()
}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n media.video.Encoder -m "reason for update" -u yourUsername
Version 3 by barry
Version 2 by barry
Version 1 (this version) by barry
Notes for this version: Adds video encoder API