mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2025-07-03 08:15:34 +00:00
forced omx rotation to 90 degrees
This commit is contained in:
parent
7f856d3284
commit
a205edc1c7
@ -142,6 +142,17 @@ static int decoder_renderer_setup(int videoFormat, int width, int height, int re
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
OMX_CONFIG_ROTATIONTYPE rotationType;
|
||||
rotationType.nSize = sizeof(OMX_CONFIG_ROTATIONTYPE);
|
||||
rotationType.nVersion.nVersion = OMX_VERSION;
|
||||
rotationType.nPortIndex = 90;
|
||||
rotationType.nRotation = 90;
|
||||
|
||||
if(OMX_SetParameter(ILC_GET_HANDLE(video_render), OMX_IndexConfigCommonRotate, &rotationType) != OMX_ErrorNone) {
|
||||
fprintf(stderr, "Failed to set video rotation\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
OMX_PARAM_PORTDEFINITIONTYPE port;
|
||||
|
||||
memset(&port, 0, sizeof(OMX_PARAM_PORTDEFINITIONTYPE));
|
||||
|
Loading…
x
Reference in New Issue
Block a user