@@ -394,8 +394,8 @@ void DebayerEGL::setShaderVariableValues(eGLImage &eglImageIn, const DebayerPara
GLfloat firstRed[] = { firstRed_x_, firstRed_y_ };
GLfloat imgSize[] = { (GLfloat)width_,
(GLfloat)height_ };
- GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / (inputConfig_.stride - 1),
- 1.0f / (height_ - 1) };
+ GLfloat Step[] = { static_cast<float>(bytesPerPixel_) / inputConfig_.stride,
+ 1.0f / height_ };
GLfloat Stride = (GLfloat)width_ / (shaderStridePixels_ / bytesPerPixel_);
/*
* Scale the output size from the native size the algorithm produces for