diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-09-05 16:25:36 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2013-09-05 16:26:33 +0200 |
commit | ce2b40670a9c90e311b1431375541029e6b94557 (patch) | |
tree | bf0ad66471fa6bbfa1a7c8144fab14371ab93171 /gst/videoconvert | |
parent | bbeac11e74f4495fd829cc8d00d96aa4161f58d8 (diff) | |
download | gstreamer-plugins-base-ce2b40670a9c90e311b1431375541029e6b94557.tar.gz |
videoconvert: don't convert too much with odd width
Diffstat (limited to 'gst/videoconvert')
-rw-r--r-- | gst/videoconvert/videoconvert.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/videoconvert/videoconvert.c b/gst/videoconvert/videoconvert.c index 8816a6f5a..7aded5dc4 100644 --- a/gst/videoconvert/videoconvert.c +++ b/gst/videoconvert/videoconvert.c @@ -987,11 +987,12 @@ convert_AYUV_Y42B (VideoConvert * convert, GstVideoFrame * dest, gint width = convert->width; gint height = convert->height; + /* FIXME, only works for even width */ video_convert_orc_convert_AYUV_Y42B (FRAME_GET_Y_LINE (dest, 0), FRAME_GET_Y_STRIDE (dest), FRAME_GET_U_LINE (dest, 0), FRAME_GET_U_STRIDE (dest), FRAME_GET_V_LINE (dest, 0), FRAME_GET_V_STRIDE (dest), FRAME_GET_LINE (src, 0), - FRAME_GET_STRIDE (src), (width + 1) / 2, height); + FRAME_GET_STRIDE (src), width / 2, height); } static void @@ -1091,11 +1092,12 @@ convert_Y42B_AYUV (VideoConvert * convert, GstVideoFrame * dest, gint width = convert->width; gint height = convert->height; + /* FIXME, only for even width */ video_convert_orc_convert_Y42B_AYUV (FRAME_GET_LINE (dest, 0), FRAME_GET_STRIDE (dest), FRAME_GET_Y_LINE (src, 0), FRAME_GET_Y_STRIDE (src), FRAME_GET_U_LINE (src, 0), FRAME_GET_U_STRIDE (src), FRAME_GET_V_LINE (src, 0), - FRAME_GET_V_STRIDE (src), (width) / 2, height); + FRAME_GET_V_STRIDE (src), width / 2, height); } static void |