Example #1
0
// 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()
}
Example #2
0
// 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()
}