Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace bitfields in caption_frame_cell_t and caption_frame_state_t s… #61

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions caption/caption.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ static inline libcaption_stauts_t libcaption_status_update(libcaption_stauts_t o
#define SCREEN_COLS 32

typedef struct {
unsigned int uln : 1; //< underline
unsigned int sty : 3; //< style
uint8_t uln; //< underline
uint8_t sty; //< style
utf8_char_t data[5]; //< 4 byte utf8 values plus null term
} caption_frame_cell_t;

Expand All @@ -65,9 +65,9 @@ typedef struct {
} caption_frame_buffer_t;

typedef struct {
unsigned int uln : 1; //< underline
unsigned int sty : 3; //< style
unsigned int rup : 2; //< roll-up line count minus 1
uint8_t uln; //< underline
uint8_t sty; //< style
uint8_t rup; //< roll-up line count minus 1
int8_t row, col;
uint16_t cc_data;
} caption_frame_state_t;
Expand Down