am7xxx-play: add more informations about how the raw format is handled
authorAntonio Ospite <ao2@ao2.it>
Wed, 29 Jun 2016 17:04:28 +0000 (19:04 +0200)
committerAntonio Ospite <ao2@ao2.it>
Wed, 29 Jun 2016 17:04:28 +0000 (19:04 +0200)
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

index 4b9565c..91c7663 100644 (file)
@@ -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,