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.
1 parent 901de3e commit 1b0a6f7Copy full SHA for 1b0a6f7
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