Lines Matching refs:args
34 …imageproc_obj_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) in imageproc_obj_make_new() argument
50 STATIC mp_obj_t obj_open(size_t n_args, const mp_obj_t *args) in obj_open() argument
60 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_open()
74 driver_obj->mType = (ImageProcType_t)mp_obj_get_int(args[1]); in obj_open()
91 STATIC mp_obj_t obj_close(size_t n_args, const mp_obj_t *args) in obj_close() argument
101 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_close()
125 STATIC mp_obj_t obj_cvtColor(size_t n_args, const mp_obj_t *args) in obj_cvtColor() argument
135 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_cvtColor()
149 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_cvtColor()
150 PixelFmt_t dst_format = (PixelFmt_t)mp_obj_get_int(args[2]); in obj_cvtColor()
151 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[3]); in obj_cvtColor()
160 STATIC mp_obj_t obj_resize(size_t n_args, const mp_obj_t *args) in obj_resize() argument
170 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_resize()
184 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_resize()
185 uint32_t width = (uint32_t)mp_obj_get_int(args[2]); in obj_resize()
186 uint32_t height = (uint32_t)mp_obj_get_int(args[3]); in obj_resize()
187 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[4]); in obj_resize()
200 STATIC mp_obj_t obj_imgCopy(size_t n_args, const mp_obj_t *args) in obj_imgCopy() argument
210 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_imgCopy()
224 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_imgCopy()
225 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_imgCopy()
235 STATIC mp_obj_t obj_rectangle(size_t n_args, const mp_obj_t *args) in obj_rectangle() argument
245 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_rectangle()
259 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_rectangle()
260 int32_t left = (int32_t)mp_obj_get_int(args[2]); in obj_rectangle()
261 int32_t top = (int32_t)mp_obj_get_int(args[3]); in obj_rectangle()
262 int32_t right = (int32_t)mp_obj_get_int(args[4]); in obj_rectangle()
263 int32_t bottom = (int32_t)mp_obj_get_int(args[5]); in obj_rectangle()
273 STATIC mp_obj_t obj_circle(size_t n_args, const mp_obj_t *args) in obj_circle() argument
283 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_circle()
297 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_circle()
298 int32_t center_x = (int32_t)mp_obj_get_int(args[2]); in obj_circle()
299 int32_t center_y = (int32_t)mp_obj_get_int(args[3]); in obj_circle()
300 int32_t radius = (int32_t)mp_obj_get_int(args[4]); in obj_circle()
310 STATIC mp_obj_t obj_drawMarker(size_t n_args, const mp_obj_t *args) in obj_drawMarker() argument
320 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_drawMarker()
334 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_drawMarker()
335 uint32_t x = (uint32_t)mp_obj_get_int(args[2]); in obj_drawMarker()
336 uint32_t y = (uint32_t)mp_obj_get_int(args[3]); in obj_drawMarker()
337 int32_t type = (int32_t)mp_obj_get_int(args[4]); in obj_drawMarker()
350 STATIC mp_obj_t obj_fillPoly(size_t n_args, const mp_obj_t *args) in obj_fillPoly() argument
360 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_fillPoly()
374 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_fillPoly()
375 uint32_t x = (uint32_t)mp_obj_get_int(args[2]); in obj_fillPoly()
376 uint32_t y = (uint32_t)mp_obj_get_int(args[3]); in obj_fillPoly()
377 int32_t color = (int32_t)mp_obj_get_int(args[4]); in obj_fillPoly()
391 STATIC mp_obj_t obj_putText(size_t n_args, const mp_obj_t *args) in obj_putText() argument
401 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_putText()
415 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_putText()
416 char* text = (char*)mp_obj_str_get_str(args[2]); in obj_putText()
417 int32_t left = (int32_t)mp_obj_get_int(args[3]); in obj_putText()
418 int32_t top = (int32_t)mp_obj_get_int(args[4]); in obj_putText()
428 STATIC mp_obj_t obj_dilateErode(size_t n_args, const mp_obj_t *args) in obj_dilateErode() argument
438 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_dilateErode()
452 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_dilateErode()
453 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_dilateErode()
454 int32_t iMode = (int32_t)mp_obj_get_int(args[3]); in obj_dilateErode()
455 int32_t iThresh = (int32_t)mp_obj_get_int(args[4]); in obj_dilateErode()
465 STATIC mp_obj_t obj_imageAdd(size_t n_args, const mp_obj_t *args) in obj_imageAdd() argument
475 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_imageAdd()
489 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_imageAdd()
490 ImageBuffer_t* added = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_imageAdd()
491 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[3]); in obj_imageAdd()
501 STATIC mp_obj_t obj_imageMinus(size_t n_args, const mp_obj_t *args) in obj_imageMinus() argument
511 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_imageMinus()
525 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_imageMinus()
526 ImageBuffer_t* minused = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_imageMinus()
527 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[3]); in obj_imageMinus()
537 STATIC mp_obj_t obj_imageElementMultiply(size_t n_args, const mp_obj_t *args) in obj_imageElementMultiply() argument
547 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_imageElementMultiply()
561 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_imageElementMultiply()
562 ImageBuffer_t* multiplied = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_imageElementMultiply()
563 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[3]); in obj_imageElementMultiply()
573 STATIC mp_obj_t obj_imageElementDivide(size_t n_args, const mp_obj_t *args) in obj_imageElementDivide() argument
583 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_imageElementDivide()
597 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_imageElementDivide()
598 ImageBuffer_t* divied = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[2]); in obj_imageElementDivide()
599 ImageBuffer_t* dst = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[3]); in obj_imageElementDivide()
609 STATIC mp_obj_t obj_writeImageToFile(size_t n_args, const mp_obj_t *args) in obj_writeImageToFile() argument
619 mp_obj_base_t *self = (mp_obj_base_t*)MP_OBJ_TO_PTR(args[0]); in obj_writeImageToFile()
633 ImageBuffer_t* src = (ImageBuffer_t*)MP_OBJ_TO_PTR(args[1]); in obj_writeImageToFile()
634 char* file_name = (char*)mp_obj_str_get_str(args[2]); in obj_writeImageToFile()