Skip to content

Clipping incorrect when rotating an omx render component while having its dest outside of the visible screen #844

Description

@dividuum

Let me try to describe what happens. I took a FullHD video and am rendering it to a FullHD output. I manually place the render component of the omx pipeline to be outside of the visible screen. This can be done with omxplayer like this:

omxplayer test.mp4 --win '500 0 2420 1080' --orientation 0

The result is the following and looks correct:

Rotation 0

But if I rotate the render component by 90, 180 or 270 degree the following happens. The example image is create when running omxplayer like this:

omxplayer test.mp4 --win '500 0 2420 1080' --orientation 180

Rotation 180

It seems that when using any rotation other than 0, the video is somehow clipped into the visible area. In the above image I would expect the output to look like the red area in this manually put together screenshot:

Rotation 180

The same thing happens then the video is vertically outside of the screen. In that case 0 and 90 degree rotation works while 180 and 270 don't. Each screenshot is generated while running

omxplayer test.mp4 --win '0 500 1920 1580' --orientation $ORIENTATION

Expected result when rotated by 0 degree:
Rotation 0

Expected result when rotated by 90 degree:
Rotation 90

Weird result when rotated by 180 degree:
Rotation 180

Weird result when rotated by 270 degree:
Rotation 270

I'm running

Jul  2 2017 13:02:31 
Copyright (c) 2012 Broadcom
version 2b697c01b84a5ca2f33e4a1be47650cc59faa076 (tainted) (release)

Linux raspberrypi 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux

Can this be fixed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions