display-wayland: Replace scaler with viewporter scaler protocol is no more supported with wayland-protocols and has been replaced with viewporter protocols Signed-off-by: Ramprasad N <x0038811@ti.com>
display-wayland: enable cropping support On Wayland, the video was displayed along with the padded region resulting green-strip in edges. This patch will crop the padded region being displayed. Signed-off-by: Subhajit Paul <a0132170@ti.com> Signed-off-by: Amai Prashanth Kumar <x0270680@ti.com>
capturevpedisplay: Use single plane for input format As VIP cannot handle multiplane buffer make sure that the shared buffers are allocated as single plane entities. The VPE output buffers can be set to use muliplane buffers as needed. Signed-off-by: Benoit Parrot <bparrot@ti.com>
vpe: Remove unnecessary G_FMT call Remove superfluous G_FMT call prior to calling S_FMT as it would force to manually zero out returned parameter value we don't need. Using S_FMT and specifying only what we need should yield acceptable default values for the part we don't care about. This is standard v4l2 behavior. Signed-off-by: Benoit Parrot <bparrot@ti.com>
display-kms: Call SetCrtc at init time Some monitors have a preferred mode which can be different than the application selected mode. It might be the case the selected mode is not It is expected that the DRM application should set the right mode before starting to use any of the planes. Make sure that the display-kms backend sets up the right mode by calling setCrtc before using any of the planes. This is done by allocating a buffer and calling post_buffer as part of the init hook. Fixes: LCPD-9401 Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
display-kmscube: Add support for RGB texture For RGB as texture on kmscube, gbm_bo import from a dmabuf-fd is required. This is followed by creating eglImage with EGL_NATIVE_PIXMAP_KHR as target. To demonstrate this feature filevpedisplay can be used filevpesiplay airshow_p352x288.yuv 352 288 nv12 720 480 abgr32 0 0 352 288 0 1 --kmscube --connector 36 --fps 10 vpe output with is added as texture on kmscube. Signed-off-by: Ramprasad N <x0038811@ti.com>
filevpedisplay: Change argument numbers for kmscube support filevpedisplay expects exactly 16 arguments. To test filevpedisplay with kmscube as backend arguments required is more than 16. Added check to return error if arguments are less than 16. Added changes to scale vpe output to display resolution. If the vpe output resolution is greater than display resolution, then it resulted in failure with kernel backtraces. Also added code to SetCrtc first before SetPlane to avoid failure with kernel backtraces. Signed-off-by: Ramprasad N <x0038811@ti.com>
display-wayland:Create a thread to dispatch events Dispatching events to queue happens in a different thread. With earlier approach, dispatch blocks from starting next frame rendering until frame-sync callback for current frame comes. Signed-off-by: Ramprasad N <x0038811@ti.com>
display-wayland: Add frame-listener and dispatch When dmabuftest or viddec3test with wayland-backend is run infinitely, after few minutes application halts and prints "Broken pipe" error. The reason for this issue is when client draws and sends events much faster than server,it results in even queue overflows and when this happens connection between client and server closes. With dispatch and frame_listener makes sure synchronization between client and server. Client can render next frame only after previous frame is displayed and main queue will never overflow. Signed-off-by: Ramprasad N <x0038811@ti.com>
display-kms and display-kmscube: handle usecase where display is disabled In some usecases HDMI is connected but is disabled by default. In such scenario, connector->encoder_id and encoder->crtc_id may be 0. This patch iterates over all possible encoders and CRTCs to find and store the encoder and CRTC accordingly. Signed-off-by: Eric Ruei <e-ruei1@ti.com>