summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/pictureflow/pictureflow.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/pictureflow/pictureflow.c b/apps/plugins/pictureflow/pictureflow.c
index a572586886..ee92ab8737 100644
--- a/apps/plugins/pictureflow/pictureflow.c
+++ b/apps/plugins/pictureflow/pictureflow.c
@@ -668,6 +668,8 @@ static void output_row_8_transposed(uint32_t row, void * row_in,
668#endif 668#endif
669} 669}
670 670
671/* read_image_file() is called without FORMAT_TRANSPARENT so
672 * it's safe to ignore alpha channel in the next two functions */
671static void output_row_32_transposed(uint32_t row, void * row_in, 673static void output_row_32_transposed(uint32_t row, void * row_in,
672 struct scaler_context *ctx) 674 struct scaler_context *ctx)
673{ 675{
@@ -678,7 +680,7 @@ static void output_row_32_transposed(uint32_t row, void * row_in,
678 for (; dest < end; dest += ctx->bm->height) 680 for (; dest < end; dest += ctx->bm->height)
679 *dest = SC_OUT(*qp++, ctx); 681 *dest = SC_OUT(*qp++, ctx);
680#else 682#else
681 struct uint32_rgb *qp = (struct uint32_rgb*)row_in; 683 struct uint32_argb *qp = (struct uint32_argb*)row_in;
682 int r, g, b; 684 int r, g, b;
683 for (; dest < end; dest += ctx->bm->height) 685 for (; dest < end; dest += ctx->bm->height)
684 { 686 {
@@ -697,7 +699,7 @@ static void output_row_32_transposed_fromyuv(uint32_t row, void * row_in,
697{ 699{
698 pix_t *dest = (pix_t*)ctx->bm->data + row; 700 pix_t *dest = (pix_t*)ctx->bm->data + row;
699 pix_t *end = dest + ctx->bm->height * ctx->bm->width; 701 pix_t *end = dest + ctx->bm->height * ctx->bm->width;
700 struct uint32_rgb *qp = (struct uint32_rgb*)row_in; 702 struct uint32_argb *qp = (struct uint32_argb*)row_in;
701 for (; dest < end; dest += ctx->bm->height) 703 for (; dest < end; dest += ctx->bm->height)
702 { 704 {
703 unsigned r, g, b, y, u, v; 705 unsigned r, g, b, y, u, v;