projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ac469a
)
vl/util: Fix YV12/I420 convert to NV12 U/V reversal
author
Andy Furniss
<adf.lists@gmail.com>
Tue, 13 Sep 2016 17:52:31 +0000
(13:52 -0400)
committer
Leo Liu
<leo.liu@amd.com>
Tue, 13 Sep 2016 17:58:40 +0000
(13:58 -0400)
Fix VAAPI YV12/I420 convert to NV12 U/V reversal.
Input order is YVU when this is called.
Signed-off-by: Andy Furniss <adf.lists@gmail.com>
Reviewed-by: Boyuan Zhang <boyuan.zhang@amd.com>
src/gallium/auxiliary/util/u_video.h
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_video.h
b/src/gallium/auxiliary/util/u_video.h
index 7e743de253ec695d5baddb44e4df2cb3f6f0cac6..2c02156e32d02a02358ce519a6d2f3a1051a0147 100644
(file)
--- a/
src/gallium/auxiliary/util/u_video.h
+++ b/
src/gallium/auxiliary/util/u_video.h
@@
-148,7
+148,7
@@
u_copy_yv12_img_to_nv12_surf(ubyte *const *src,
} else if (field == 1) {
const ubyte *src_1 = src[field];
const ubyte *src_2 = src[field+1];
- bool odd =
fals
e;
+ bool odd =
tru
e;
for (unsigned i = 0; i < height ; i++) {
for (unsigned j = 0; j < width*2 ; j++) {
if (odd == false) {