Back to Adaptive Vision Library websiteYou are here:
Start »
Function Reference »
Image IO »
OpenInputVideoStream
Opens and creates a video stream from a file.
Syntax
C++
C#
void avl::OpenInputVideoStream
(
const atl::File& inFile,
int inStartFrame,
avl::InputVideoStream& outInputVideoStream,
float& outFPS,
int& outMaxFrame
)
void OpenInputVideoStream
(
System.String inFile,
int inStartFrame,
out InputVideoStream outInputVideoStream,
out float outFPS,
out int outMaxFrame
)
Parameters
|
Name |
Type |
Default |
Description |
|
inFile |
const File& |
|
Video file |
|
inStartFrame |
int |
|
Number of first frame to fetch. |
|
outInputVideoStream |
InputVideoStream& |
|
Initialized input video stream |
|
outFPS |
float& |
|
Frames per second |
|
outMaxFrame |
int& |
|
Last frame number |
Errors
Error type |
Description |
RuntimeError |
Unexpected error in OpenInputVideoStream. |
DomainError |
Negative start frame in OpenInputVideoStream. |
DomainError |
Start frame too high for current video |