From d57e41130a416372145184a8a495ba225a2825d8 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Wed, 29 Jun 2016 19:04:28 +0200 Subject: [PATCH 1/1] 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 --- examples/am7xxx-play.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, -- 2.1.4