mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Add print statement for bayer.
This commit is contained in:
parent
b9c6993bc8
commit
6e789b1406
@ -275,6 +275,12 @@ static void py_image_print(const mp_print_t *print, mp_obj_t self_in, mp_print_k
|
||||
(self->_cobj.w * self->_cobj.h) * sizeof(uint16_t));
|
||||
break;
|
||||
}
|
||||
case IMAGE_BPP_BAYER: {
|
||||
mp_printf(print, "{\"w\":%d, \"h\":%d, \"type\"=\"bayer\", \"size\":%d}",
|
||||
self->_cobj.w, self->_cobj.h,
|
||||
(self->_cobj.w * self->_cobj.h) * sizeof(uint8_t));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if((self->_cobj.data[0] == 0xFE) && (self->_cobj.data[self->_cobj.bpp-1] == 0xFE)) { // for ide
|
||||
print->print_strn(print->data, (const char *) self->_cobj.data, self->_cobj.bpp);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user