testdmabuf: Use the actual pixel

The previous code would subsample the luma channel, too. Don't do that.
This commit is contained in:
Benjamin Otte 2023-10-21 16:37:33 +02:00
parent cbfd8542c6
commit 2d9fbb16bc

View File

@ -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