Commit d79bf1ff authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Baptiste Kempf
Browse files

omxil: Adjust the slice height according to the crop rect for the TI color format

This interpretation of nTop isn't too intuitive to me, but this is what
does for this pixel format.
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent 10936895
......@@ -453,6 +453,8 @@ static OMX_ERRORTYPE GetPortDefinition(decoder_t *p_dec, OmxPort *p_port,
p_fmt->video.i_visible_width = crop_rect.nWidth;
p_fmt->video.i_height = crop_rect.nHeight;
p_fmt->video.i_visible_height = crop_rect.nHeight;
if (def-> == OMX_TI_COLOR_FormatYUV420PackedSemiPlanar)
def-> -= crop_rect.nTop/2;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment