diff options
author | jsorg71 <jay.sorg@gmail.com> | 2019-04-24 09:50:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-24 09:50:58 +0300 |
commit | c06a2d14a63299898896d258e8cd5f2043e8407a (patch) | |
tree | 3399e982d607fd5d58be918643cf20e83c0b33fd | |
parent | ef68593b7d19c89cff2a2d27c6ab3cc5f33611da (diff) | |
parent | c9315f4157a9c1e0100c8ecd34e297374e05fe09 (diff) |
Merge pull request #44 from jsorg71/yuv1
fix yuv typo
-rw-r--r-- | src/rfxencode_rgb_to_yuv.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/rfxencode_rgb_to_yuv.c b/src/rfxencode_rgb_to_yuv.c index 76b5c14..40f785d 100644 --- a/src/rfxencode_rgb_to_yuv.c +++ b/src/rfxencode_rgb_to_yuv.c @@ -84,9 +84,9 @@ rfx_encode_format_rgb(const char *rgb_data, int width, int height, } while (x < 64) { - *lr_buf++ = r; + *lb_buf++ = b; *lg_buf++ = g; - *lb_buf++ = r; + *lr_buf++ = r; x++; } } @@ -155,9 +155,9 @@ rfx_encode_format_rgb(const char *rgb_data, int width, int height, } while (x < 64) { - *lr_buf++ = r; - *lg_buf++ = g; *lb_buf++ = b; + *lg_buf++ = g; + *lr_buf++ = r; x++; } } @@ -257,10 +257,10 @@ rfx_encode_format_argb(const char *argb_data, int width, int height, } while (x < 64) { - *la_buf++ = a; - *lr_buf++ = r; + *lb_buf++ = b; *lg_buf++ = g; - *lb_buf++ = r; + *lr_buf++ = r; + *la_buf++ = a; x++; } } @@ -298,10 +298,10 @@ rfx_encode_format_argb(const char *argb_data, int width, int height, } while (x < 64) { - *la_buf++ = a; *lr_buf++ = r; *lg_buf++ = g; *lb_buf++ = b; + *la_buf++ = a; x++; } } @@ -336,9 +336,9 @@ rfx_encode_format_argb(const char *argb_data, int width, int height, } while (x < 64) { - *lr_buf++ = r; - *lg_buf++ = g; *lb_buf++ = b; + *lg_buf++ = g; + *lr_buf++ = r; x++; } } |