diff options
author | Steve Markgraf <steve@steve-m.de> | 2020-06-02 00:50:53 +0200 |
---|---|---|
committer | Steve Markgraf <steve@steve-m.de> | 2020-06-02 00:50:53 +0200 |
commit | 197f421c98f929d4266a09bc9d667b7869e09c27 (patch) | |
tree | 6ced6cd9d631d10ea6ba6ca220bc5eece15b21c7 /include | |
parent | b11fc430f3d033f345f22340e62857cb544e1a2a (diff) | |
download | osmo-fl2k-197f421c98f929d4266a09bc9d667b7869e09c27.tar.gz osmo-fl2k-197f421c98f929d4266a09bc9d667b7869e09c27.tar.bz2 osmo-fl2k-197f421c98f929d4266a09bc9d667b7869e09c27.zip |
lib: revert implementing RGB233 mode
We will soon have support for a palette mode,
which can replicate the RGB233 mode if required,
or any custom arrangement of bits per color.
Furthermore, the RGB233 mode did not work correctly
in this state, as we did not implement swapping of
the 32 bit words.
This reverts the following commits:
58de0a5bccb6648ee3372643517ea51b3ab5b523
3f44f8fc224c6b0b45a824109619f993e0b87552
b82303f44fc8388817306235a673e0bfa671dd3f
Diffstat (limited to 'include')
-rw-r--r-- | include/osmo-fl2k.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/include/osmo-fl2k.h b/include/osmo-fl2k.h index 17c7e1f..02ad4ad 100644 --- a/include/osmo-fl2k.h +++ b/include/osmo-fl2k.h @@ -54,7 +54,6 @@ typedef struct fl2k_data_info { char *r_buf; /* pointer to red buffer */ char *g_buf; /* pointer to green buffer */ char *b_buf; /* pointer to blue buffer */ - char *raw_buf; /* pointer to pre-arranged buffer */ } fl2k_data_info_t; typedef struct fl2k_dev fl2k_dev_t; @@ -70,13 +69,6 @@ typedef struct fl2k_dev fl2k_dev_t; #define FL2K_BUF_LEN (1280 * 1024) #define FL2K_XFER_LEN (FL2K_BUF_LEN * 3) -/** Utility macros for 8 bit per sample mode */ -#define RGB332_TO_R(x) (((x) & 3) << 6) -#define RGB332_TO_G(x) (((x) & 7) << 3) -#define RGB332_TO_B(x) (((x) & 7) << 0) -#define RGB332_TO_RGB(r, g, b) (RGB332_TO_R(r) | RGB332_TO_G(g) | RGB332_TO_B(b)) - - FL2K_API uint32_t fl2k_get_device_count(void); FL2K_API const char* fl2k_get_device_name(uint32_t index); @@ -98,14 +90,6 @@ FL2K_API int fl2k_close(fl2k_dev_t *dev); FL2K_API int fl2k_set_sample_rate(fl2k_dev_t *dev, uint32_t target_freq); /*! - * Set RGB332 sample format - * - * \param dev the device handle given by fl2k_open() - * \return 0 on success - */ -FL2K_API int fl2k_set_rgb332(fl2k_dev_t *dev); - -/*! * Get actual sample rate the device is configured to. * * \param dev the device handle given by fl2k_open() |