Initial commit
Start a new clean history from here.
This commit is contained in:
24
app/src/frames.h
Normal file
24
app/src/frames.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef FRAMES_H
|
||||
#define FRAMES_H
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
|
||||
// forward declarations
|
||||
typedef struct AVFrame AVFrame;
|
||||
typedef struct SDL_mutex SDL_mutex;
|
||||
typedef struct SDL_cond SDL_cond;
|
||||
|
||||
struct frames {
|
||||
AVFrame *decoding_frame;
|
||||
AVFrame *rendering_frame;
|
||||
SDL_mutex *mutex;
|
||||
SDL_cond *rendering_frame_consumed_cond;
|
||||
SDL_bool rendering_frame_consumed;
|
||||
};
|
||||
|
||||
int frames_init(struct frames *frames);
|
||||
void frames_destroy(struct frames *frames);
|
||||
|
||||
void frames_swap(struct frames *frames);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user