예제 #1
0
func ProbeInputWithScore(pd *ProbeData, isOpened bool, scoreMax int) (*Input, int) {
	cscoreMax := C.int(scoreMax)
	cInput := C.av_probe_input_format2(&pd.CAVProbeData, boolToCInt(isOpened), &cscoreMax)
	if cInput == nil {
		return nil, 0
	}
	return NewInputFromC(unsafe.Pointer(cInput)), int(cscoreMax)
}
예제 #2
0
파일: avformat.go 프로젝트: ovr/goav
//Guess the file format.
func AvProbeInputFormat2(pd *AvProbeData, o int, sm *int) *InputFormat {
	return (*InputFormat)(C.av_probe_input_format2((*C.struct_AVProbeData)(pd), C.int(o), (*C.int)(unsafe.Pointer(sm))))
}