Skip to content

Commit

Permalink
not sure if this useful, but here's an idea
Browse files Browse the repository at this point in the history
  • Loading branch information
sz3 committed Mar 7, 2024
1 parent f21b1a5 commit d5478a0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/cimb_translator/Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace cimbar
class Config
{
protected:
using GridConf = Conf8x8;
using GridConf = Conf8x8_B;

public:
static constexpr bool dark()
Expand Down
31 changes: 30 additions & 1 deletion src/lib/cimb_translator/GridConf.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,35 @@ namespace cimbar
static constexpr unsigned cell_size = 5;
static constexpr unsigned cell_offset = 9;
static constexpr unsigned cells_per_col = 162;

// unsigned interleave_partitions = 2;
// int fountain_chunks_per_frame = -3;
};

struct Conf8x8_B
{
// unsigned id = 11; // 0xB

static constexpr unsigned color_bits = 2;
static constexpr unsigned symbol_bits = 4;
static constexpr unsigned ecc_bytes = 30;
static constexpr unsigned ecc_block_size = 155;
static constexpr int image_size = 1024;

static constexpr unsigned cell_size = 8;
static constexpr unsigned cell_offset = 8;
static constexpr unsigned cells_per_col = 112;

// unsigned color_mode = 1;
// unsigned interleave_partitions = 2;
// int fountain_chunks_per_frame = -2;
};

struct Conf8x8

struct Conf8x8_4C
{
// unsigned id = 4;

static constexpr unsigned color_bits = 2;
static constexpr unsigned symbol_bits = 4;
static constexpr unsigned ecc_bytes = 30;
Expand All @@ -27,5 +52,9 @@ namespace cimbar
static constexpr unsigned cell_size = 8;
static constexpr unsigned cell_offset = 8;
static constexpr unsigned cells_per_col = 112;

// unsigned color_mode = 0;
// unsigned interleave_partitions = 2;
// int fountain_chunks_per_frame = 10;
};
}

0 comments on commit d5478a0

Please sign in to comment.