i.MX8Plus yocto build gst-launch: waylandsink rendering scaled down

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX8Plus yocto build gst-launch: waylandsink rendering scaled down

555 次查看
jim777
Contributor II

Got an i.MX8Plus with scarthgap yocto build, linked to camera and LCD display (resolution 1280x720), running:

gst-launch-1.0 -e -v v4l2src device=/dev/video0 ! video/x-raw, width=1920, height=1080 ! glimagesink render-rectangle='<0, 0, 1920, 1080>'


video/image shown on the LCD seems in scale (seems cropped from 1920x1080 to 1280x720), although the 'origin'<0,0> seems changing or floating to different places when re-run each time. Picture shown below:

glimagesink_1920x1080_overDispkay1280x720.MP.jpg

  
But if just replace the glimagesink with waylandsink:

gst-launch-1.0 -e -v v4l2src device=/dev/video0 ! video/x-raw, width=1920, height=1080 ! waylandsink render-rectangle='<0, 0, 1920, 1080>'


the video/image clearly shown on the LCD as scaled-down (around maybe 1/3):

waylandsink_1920x1080_overDisplay1280x720.MP.jpg

Some online discussions suggested to check the weston.ini file: initially the file has no [output] section related to the LCD display; and even after I added the section with:

[output]
name=card0-DSI-1
mode=1280x720@60


waylandsink test always have image scaled down shown on the LCD (i.e. the weston.ini has no effect), where does wayland gets the scale-down setting?

Anyone has such experience, any insight, please?

BR
Jim

0 项奖励
回复
1 回复

534 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Yes, I think this is a problem with waylandsink. in this case should be passing that scaling information from the compositor to the yocto application, and falling back to internal scaling if that's not possible, but it appears that isn't what's happening here. So far there is no solution for that.

Regards

0 项奖励
回复