Exemplo n.º 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)
}
Exemplo n.º 2
0
Arquivo: avformat.go Projeto: 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))))
}