projects
/
libam7xxx.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
am7xxx-play: add more informations about how the raw format is handled
[libam7xxx.git]
/
examples
/
am7xxx-play.c
diff --git
a/examples/am7xxx-play.c
b/examples/am7xxx-play.c
index
4b9565c
..
91c7663
100644
(file)
--- 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) {
/* 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,
sws_scale(sw_scale_ctx,
(const uint8_t * const *)picture_raw->data,
picture_raw->linesize,