I tried crtc (0, 0, 3200, 1800) src (0, 0, 3200<<16, 1800<<16) but get a crash,
How can I enable scaling on overlay for video frame?
William From: Xie, William Sent: Wednesday, April 15, 2015 4:49 PM To: DRI Development; DRI Development Subject: RE: Help on drmModeSetPlane
To make it more specific,
For example: 1: video frame size is 1280x720, 2: screen resolution is 3200x1800,
How can I set crtc and src parameters?
1: crtc (0, 0, 3200, 1800) src (0, 0, 3200<<16, 1800<<16) 2: crtc (0, 0, 3200, 1800) src (0, 0, 1280<<16, 720<<16)
Which one is correct?
William
From: Xie, William Sent: Wednesday, April 15, 2015 3:55 PM To: DRI Development; DRI Development Subject: Help on drmModeSetPlane
Question please, could someone share the meaning of the parameters for drmModeSetPlane in libdrm?
int drmModeSetPlane(int fd, uint32_t plane_id, uint32_t crtc_id, uint32_t fb_id, uint32_t flags, int32_t crtc_x, int32_t crtc_y, uint32_t crtc_w, uint32_t crtc_h, uint32_t src_x, uint32_t src_y, uint32_t src_w, uint32_t src_h)
My problem is, whatever value I set, the video is not full screen mode, Anything I missed?
Thanks William
Hi Does anyone know what the result value of "-34" means returned by drmModeSetPlane?
William
On Thu, Jun 04, 2015 at 04:59:41AM +0000, Xie, William wrote:
Hi Does anyone know what the result value of "-34" means returned by drmModeSetPlane?
William
-34 is -ERANGE which generally gets raised if you request scaling that your hardware (or driver) can't support. Not all platforms are capable of performing scaling and those that do support it generally have limits.
You can also get an -ERANGE return if your coordinates could cause an integer overflow (e.g., coordinates with values near INT_MAX).
Matt
dri-devel@lists.freedesktop.org