diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-08-03 16:57:07 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-08-03 16:57:07 -0400 |
commit | 8875d0226f0d38a1e5ef946e56cd15810627f5ac (patch) | |
tree | ef7a8fa7b19f41faade33bdf5eaa24902c3b9f37 /functions.h | |
parent | b26f27d9e3fd44ec5775accdc3666a339684be4c (diff) |
caching introduced
Diffstat (limited to 'functions.h')
-rw-r--r-- | functions.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/functions.h b/functions.h index af4f109..64c8dc9 100644 --- a/functions.h +++ b/functions.h @@ -1,7 +1,7 @@ // Buffer management -static void * Layer_AllocateBuffer(memory *Memory, uint16 Width, uint16 Height, uint16 BytesPerPixel); // +static void * Layer_AllocateBitmap(memory *Memory, uint16 Width, uint16 Height, uint16 BytesPerPixel); // static project_layer * Layer_Init(project_data *File, memory *Memory); // Initializes a layer's name and properties. Add a source manually. @@ -10,9 +10,11 @@ static uint16 Bitmap_CalcByteOffset(uint16 BytesPerPixel); // Returns the amount static uint64 Bitmap_CalcTotalBytes(uint16 Width, uint16 Height, uint16 BytesPerPixel); // Returns the total amount of bytes a bitmap takes up. static void Bitmap_ConvertPacking(void *Buffer, void *DestBuffer, uint16 Width, uint16 Height, uint16 BytesPerPixel, uint16 Which); +static bool32 Source_Generate(project_data *File, memory *Memory, char *Path); // Fills out source info if the source is a supported file. + // Libav (ffmpeg) backend for decoding video static bool32 AV_IsFileSupported(char *filename); // Tests whether a decoder is available for a given file. -static void AV_CodecInfo_Init(char *filename, source *Source, memory *Memory); // Initializes all internal structs and calculates average PTS. +static void AV_Init(char *filename, source *Source, memory *Memory); // Initializes all internal structs and calculates average PTS. static bool32 AV_LoadVideoFrame(source *Source, memory *Memory, int32 TimelineFrame); // Loads video frame at TimelineFrame. |