(Threaded Video/video_thread_wrapper.c) Cleaning and optimization

This commit is contained in:
Cthulhu-throwaway 2022-05-16 19:52:36 -03:00
parent 1c1d37e959
commit 9e39abcd00
2 changed files with 414 additions and 362 deletions

File diff suppressed because it is too large Load Diff

View File

@ -73,9 +73,7 @@ typedef bool (*custom_font_command_method_t)(const void **font_driver,
float font_size, enum font_driver_render_api api,
bool is_threaded);
typedef struct thread_packet thread_packet_t;
struct thread_packet
typedef struct thread_packet
{
union
{
@ -166,7 +164,7 @@ struct thread_packet
} hdr;
} data;
enum thread_cmd type;
};
} thread_packet_t;
typedef struct thread_video
{
@ -191,7 +189,6 @@ typedef struct thread_video
float *alpha_mod;
slock_t *alpha_lock;
void (*send_and_wait)(struct thread_video *, thread_packet_t*);
struct
{
@ -216,7 +213,6 @@ typedef struct thread_video
thread_packet_t cmd_data;
video_driver_t video_thread;
enum thread_cmd send_cmd;
enum thread_cmd reply_cmd;
@ -235,7 +231,6 @@ typedef struct thread_video
bool within_thread;
} frame;
bool apply_state_changes;
bool alive;