File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 47
47
//|
48
48
//| decoder = JpegDecoder()
49
49
//| width, height = decoder.open("/sd/example.jpg")
50
- //| bitmap = Bitmap(width, height)
50
+ //| bitmap = Bitmap(width, height, 65535 )
51
51
//| decoder.decode(bitmap)
52
52
//| # .. do something with bitmap
53
53
//| """
Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ static mp_obj_t common_hal_jpegio_jpegdecoder_decode_common(jpegio_jpegdecoder_o
88
88
}
89
89
check_jresult (result );
90
90
mp_obj_t elems [] = {
91
- MP_OBJ_NEW_SMALL_INT (self -> decoder .height ),
92
- MP_OBJ_NEW_SMALL_INT (self -> decoder .width )
91
+ MP_OBJ_NEW_SMALL_INT (self -> decoder .width ),
92
+ MP_OBJ_NEW_SMALL_INT (self -> decoder .height )
93
93
};
94
94
return mp_obj_new_tuple (MP_ARRAY_SIZE (elems ), elems );
95
95
}
You can’t perform that action at this time.
0 commit comments