From: Antonio Ospite Date: Wed, 29 Jun 2016 17:04:28 +0000 (+0200) Subject: am7xxx-play: add more informations about how the raw format is handled X-Git-Tag: v0.1.7~40 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/d57e41130a416372145184a8a495ba225a2825d8?ds=inline am7xxx-play: add more informations about how the raw format is handled This new comment should make it easier to understand why there is no need to encode the frame when outputting data in the raw format supported by the device --- diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index 4b9565c..91c7663 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -388,7 +388,11 @@ static int am7xxx_play(const char *input_format_string, /* if we got the complete frame */ if (got_picture) { - /* convert it to YUV */ + /* + * Rescaling the picture also changes its pixel format + * to the raw format supported by the projector if + * this was set in video_output_init() + */ sws_scale(sw_scale_ctx, (const uint8_t * const *)picture_raw->data, picture_raw->linesize,