mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
testdmabuf: Use the actual pixel
The previous code would subsample the luma channel, too. Don't do that.
This commit is contained in:
parent
cbfd8542c6
commit
2d9fbb16bc
@ -145,7 +145,7 @@ y_u_v_create_buffer (uint32_t drm_format,
|
||||
* sub-sampling does not require proper
|
||||
* filtering/averaging/siting.
|
||||
*/
|
||||
argb = *(rgb_row + x / 2 * 2);
|
||||
argb = rgb_row[x];
|
||||
|
||||
/*
|
||||
* A stupid way of "sub-sampling" chroma. This does not
|
||||
@ -213,7 +213,7 @@ nv12_create_buffer (uint32_t drm_format,
|
||||
* sub-sampling does not require proper
|
||||
* filtering/averaging/siting.
|
||||
*/
|
||||
argb = *(rgb_row + x / 2 * 2);
|
||||
argb = rgb_row[x];
|
||||
|
||||
/*
|
||||
* A stupid way of "sub-sampling" chroma. This does not
|
||||
|
Loading…
Reference in New Issue
Block a user