コード例 #1
0
ファイル: swscale.go プロジェクト: hyhy01/goav
//void sws_scaleVec (SwsVector *a, double scalar)
//Scale all the coefficients of a by the scalar value.
func Sws_scaleVec(a *SwsVector, s float64) {
	ca := (*C.struct_SwsVector)(unsafe.Pointer(a))
	C.sws_scaleVec(ca, C.double(s))
}
コード例 #2
0
ファイル: vector.go プロジェクト: gale320/goav
//Scale all the coefficients of a by the scalar value.
func (a *Vector) SwsScalevec(s float64) {
	C.sws_scaleVec((*C.struct_SwsVector)(unsafe.Pointer(a)), C.double(s))
}