We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 901de3e + 1b0a6f7 commit b377819Copy full SHA for b377819
src/OV767X_TinyMLx.cpp
@@ -198,12 +198,20 @@ int OV767X::height() const
198
199
int OV767X::bitsPerPixel() const
200
{
201
- return _bytesPerPixel * 8;
+ if (_grayscale) {
202
+ return 8;
203
+ } else {
204
+ return _bytesPerPixel * 8;
205
+ }
206
}
207
208
int OV767X::bytesPerPixel() const
209
- return _bytesPerPixel;
210
211
+ return 1;
212
213
+ return _bytesPerPixel;
214
215
216
217
//
0 commit comments