Пример #1
0
// SetScale sets 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. Zero is a special value; it will adjust the video to the output
// window/drawable (in windowed mode) or the entire screen.
//
// Note: Not all video outputs support scaling.
func (this *Player) SetScale(v float32) error {
	if this.ptr == nil {
		return syscall.EINVAL
	}
	C.libvlc_video_set_scale(this.ptr, C.float(v))
	return checkError()
}
Пример #2
0
// SetScale sets 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. Zero is a special value; it will adjust the video to the output
// window/drawable (in windowed mode) or the entire screen.
//
// Note: Not all video outputs support scaling.
func (this *Player) SetScale(v float32) error {
	if this.ptr == nil {
		return &VLCError{"Player is nil"}
	}
	C.libvlc_video_set_scale(this.ptr, C.float(v))
	return checkError()
}