示例#1
0
文件: player.go 项目: jteeuwen/go-vlc
// Scale returns the video scaling factor. That is the ratio of the number of
// pixels on screen to the number of pixels in the original decoded video in each
// dimension.
//
// Note: Not all video outputs support scaling.
func (this *Player) Scale() (float32, error) {
	if this.ptr == nil {
		return 0, syscall.EINVAL
	}
	return float32(C.libvlc_video_get_scale(this.ptr)), checkError()
}
示例#2
0
文件: player.go 项目: henrym/go-vlc
// Scale returns the video scaling factor. That is the ratio of the number of
// pixels on screen to the number of pixels in the original decoded video in each
// dimension.
//
// Note: Not all video outputs support scaling.
func (this *Player) Scale() (float32, error) {
	if this.ptr == nil {
		return 0, &VLCError{"Player is nil"}
	}
	return float32(C.libvlc_video_get_scale(this.ptr)), checkError()
}