Frame rendering optimizations
This commit is contained in:
parent
126469df76
commit
f64429b7b4
11 changed files with 268 additions and 44 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#ifndef PLAYER_H
|
||||
#define PLAYER_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <SDL2/SDL.h>
|
||||
#include <time.h>
|
||||
|
||||
|
|
@ -9,6 +10,7 @@
|
|||
|
||||
typedef struct Player {
|
||||
FrameQueue frame_queue;
|
||||
VideoBufferPool video_buffer_pool;
|
||||
SDL_Thread *thread;
|
||||
SDL_atomic_t stop_requested;
|
||||
const ChannelList *channels;
|
||||
|
|
@ -27,6 +29,9 @@ typedef struct Player {
|
|||
char audio_driver[32];
|
||||
SDL_mutex *error_mutex;
|
||||
char last_error[256];
|
||||
uint8_t *audio_convert_buffer;
|
||||
int audio_convert_buffer_size;
|
||||
int audio_convert_buffer_samples;
|
||||
} Player;
|
||||
|
||||
int player_init(Player *player, const ChannelList *channels, Uint64 app_start_ticks);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue