<html><head></head><body>AFAIU, the extra row/column will be populated by the scaler (unless the scaler is buggy), so there won't be bogus pixel values. Instead, the requested scale will not be respected.<br>
<br>
However, it does feel like an arbitrary hack to round to a multiple of two.<br><br><div class="gmail_quote">Le 4 juillet 2018 09:39:06 GMT+03:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">What if the source and destination is in RGB ? There is no reason to <br>align here and will add extra bogus pixels.<br><br><br>On 2018-07-03 17:53, Francois Cartegnie wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;"> vlc | branch: master | Francois Cartegnie <fcvlcdev@free.fr> | Wed Jun 27 23:27:54 2018 +0200| [95e350c597e57c64db915b255ad6cd72ea03a234] | committer: Francois Cartegnie<br><br> transcode: video: align scaled visible<br><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;"> <a href="http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95e350c597e57c64db915b255ad6cd72ea03a234">http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=95e350c597e57c64db915b255ad6cd72ea03a234</a><br></blockquote> ---<br><br>   modules/stream_out/transcode/video.c | 2 ++<br>   1 file changed, 2 insertions(+)<br><br> diff --git a/modules/stream_out/transcode/video.c b/modules/stream_out/transcode/video.c<br> index 784ead3ced..af2c71f1c1 100644<br> --- a/modules/stream_out/transcode/video.c<br> +++ b/modules/stream_out/transcode/video.c<br> @@ -552,6 +552,8 @@ static void transcode_video_size_init( sout_stream_t *p_stream,<br>        int i_dst_width =  lroundf(f_scale_width*p_vid_out->i_width);<br>        int i_dst_height = lroundf(f_scale_height*p_vid_out->i_height);<br>   <br> +     if( i_dst_visible_width & 1 ) ++i_dst_visible_width;<br> +     if( i_dst_visible_height & 1 ) ++i_dst_visible_height;<br>        if( i_dst_width & 1 ) ++i_dst_width;<br>        if( i_dst_height & 1 ) ++i_dst_height;<br>   <br><br><hr><br> vlc-commits mailing list<br> vlc-commits@videolan.org<br> <a href="https://mailman.videolan.org/listinfo/vlc-commits">https://mailman.videolan.org/listinfo/vlc-commits</a><br></blockquote><br><hr><br>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>
-- <br>
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>