Merge pull request #1045 from openmv/sensor_updates

Move pixel format to imlib.
This commit is contained in:
Ibrahim Abd Elkader 2020-12-19 21:53:42 +02:00 committed by GitHub
commit 03ce421507
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 11 additions and 13 deletions

View File

@ -375,6 +375,16 @@ extern const uint16_t ironbow_table[256];
// Image Stuff //
/////////////////
typedef enum {
PIXFORMAT_INVALID = 0,
PIXFORMAT_BINARY, // 1BPP/BINARY
PIXFORMAT_GRAYSCALE, // 1BPP/GRAYSCALE
PIXFORMAT_RGB565, // 2BPP/RGB565
PIXFORMAT_YUV422, // 2BPP/YUV422
PIXFORMAT_BAYER, // 1BPP/RAW
PIXFORMAT_JPEG, // JPEG/COMPRESSED
} pixformat_t;
typedef enum image_bpp
{
IMAGE_BPP_BINARY, // BPP = 0

View File

@ -13,7 +13,7 @@
#include "ff_wrapper.h"
#include "framebuffer.h"
#include "sensor.h"
#include "imlib.h"
#include "py_assert.h"
#include "py_helper.h"
#include "py_image.h"

View File

@ -23,7 +23,6 @@
#include "imlib.h"
#include "array.h"
#include "sensor.h"
#include "ff_wrapper.h"
#include "xalloc.h"
#include "fb_alloc.h"

View File

@ -12,7 +12,6 @@
#include "py/nlr.h"
#include "ff_wrapper.h"
#include "framebuffer.h"
#include "sensor.h"
#include "py_assert.h"
#include "py_helper.h"
#include "py_image.h"

View File

@ -36,16 +36,6 @@
#define LEPTON_ID (0x54)
#define HM01B0_ID (0xB0)
typedef enum {
PIXFORMAT_INVALID = 0,
PIXFORMAT_BINARY, // 1BPP/BINARY
PIXFORMAT_GRAYSCALE, // 1BPP/GRAYSCALE
PIXFORMAT_RGB565, // 2BPP/RGB565
PIXFORMAT_YUV422, // 2BPP/YUV422
PIXFORMAT_BAYER, // 1BPP/RAW
PIXFORMAT_JPEG, // JPEG/COMPRESSED
} pixformat_t;
typedef enum {
FRAMESIZE_INVALID = 0,
// C/SIF Resolutions