forked from adafruit/circuitpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImageFormat.h
More file actions
26 lines (20 loc) · 734 Bytes
/
Copy pathImageFormat.h
File metadata and controls
26 lines (20 loc) · 734 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This file is part of the CircuitPython project: https://circuitpython.org
//
// SPDX-FileCopyrightText: Copyright 2020 Sony Semiconductor Solutions Corporation
//
// SPDX-License-Identifier: MIT
#pragma once
#include "py/obj.h"
typedef enum {
IMAGEFORMAT_NONE,
IMAGEFORMAT_JPG,
IMAGEFORMAT_RGB565,
} camera_imageformat_t;
extern const mp_obj_type_t camera_imageformat_type;
camera_imageformat_t camera_imageformat_obj_to_type(mp_obj_t obj);
mp_obj_t camera_imageformat_type_to_obj(camera_imageformat_t mode);
typedef struct {
mp_obj_base_t base;
} camera_imageformat_obj_t;
extern const camera_imageformat_obj_t camera_imageformat_jpg_obj;
extern const camera_imageformat_obj_t camera_imageformat_rgb565_obj;