33 lines
782 B
C
33 lines
782 B
C
// This file is part of the CircuitPython project: https://circuitpython.org
|
|
//
|
|
// SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
|
|
#include "py/obj.h"
|
|
|
|
#include "extmod/vfs_fat.h"
|
|
|
|
typedef struct {
|
|
mp_obj_base_t base;
|
|
uint16_t width;
|
|
uint16_t height;
|
|
uint16_t data_offset;
|
|
uint16_t stride;
|
|
uint32_t r_bitmask;
|
|
uint32_t g_bitmask;
|
|
uint32_t b_bitmask;
|
|
pyb_file_obj_t *file;
|
|
union {
|
|
mp_obj_base_t *pixel_shader_base;
|
|
struct displayio_palette *palette;
|
|
struct displayio_colorconverter *colorconverter;
|
|
};
|
|
bool bitfield_compressed;
|
|
uint8_t bits_per_pixel;
|
|
} displayio_ondiskbitmap_t;
|