HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Type definition file media.video.VideoFile by barry
expand copy to clipboardexpand
/* {"description" : "Header information from a video file." } */
data VideoHeader {
	int width
	int height
	int frames
	char fourcc[4]
	int numerator
	int denominator
	int headerLength
}

/* {"description" : "A frame of encoded video." } */
data VideoFrame {
	byte content[]
	int headerLength
	int timestamp
}

/* {"description" : "API to read a video file." } */
interface VideoFile {
	bool validHeader(byte content[])
	VideoHeader readHeader(byte content[])
	VideoFrame readFrame(byte content[], int offset)
}
Revision history
To propose a new revision to this entity, use dana source put -ut your/new/version.dn -n media.video.VideoFile -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 APIs for video decoding.