 | XVideoIOOpenFile Method (String, String, Boolean, Boolean, XThread, String) |
파일 경로로 지정한 동영상을 전체 영상 프레임을 조사하고 연다.
Namespace:
Pixoneer.NXDL.NXVideo
Assembly:
NXVideo (in NXVideo.dll) Version: 1.2.817.72
Syntaxpublic XVideo OpenFile(
string strFilePath,
string strDriverName,
bool scanWholeFile,
bool decodeFrames,
XThread thread,
out string strError
)
Parameters
- strFilePath
- Type: SystemString
동영상 파일 경로. - strDriverName
- Type: SystemString
동영상을 여는데 사용할 비디오 드라이버 이름. (예, XFFMPDriver.dll에서 지원하는 XFFMPDRIVER) - scanWholeFile
- Type: SystemBoolean
동영상 파일 전체를 조사하여 프레임을 확인한다. - decodeFrames
- Type: SystemBoolean
프레임을 조사할 때 실제 디코딩을 수행하여 획득 가능한 프레임을 정밀 조사한다. 디코딩을 하지 않는 경우 실제 패킷 데이터 확인 없이 패킷 단위로 조사한다. - thread
- Type: Pixoneer.NXDLXThread
진행상황 보고 쓰레드. 시간이 오래 걸릴 수 있으므로 쓰레드를 통해 진행 정도를 알아볼 수 있다. - strError
- Type: SystemString
[OUT] 오류 보고 메시지.
Return Value
Type:
XVideo 주어진 파일 경로에서 재생 가능 상태로 연 동영상 객체. 열기에 실패한 경우 null 값을 반환한다.
Remarks 동영상에 따라 분석 시간이 오래 걸릴 수 있으므로 일반 재생이 아닌 프레임 단위 분석과 임의 지점 탐색을 위해 정확한 프레임 정보가 필요한 경우 사용한다.
See Also