mirror of
https://github.com/ultravideo/uvg266.git
synced 2024-11-27 11:24:05 +00:00
Data structure initialization functions
This commit is contained in:
parent
8507aa0c9a
commit
5dcbe3e8df
|
@ -79,12 +79,16 @@
|
|||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="..\..\src\bitstream.c" />
|
||||
<ClCompile Include="..\..\src\cabac.c" />
|
||||
<ClCompile Include="..\..\src\config.c" />
|
||||
<ClCompile Include="..\..\src\encmain.c" />
|
||||
<ClCompile Include="..\..\src\encoder.c" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\bitstream.h" />
|
||||
<ClInclude Include="..\..\src\cabac.h" />
|
||||
<ClInclude Include="..\..\src\config.h" />
|
||||
<ClInclude Include="..\..\src\encoder.h" />
|
||||
<ClInclude Include="..\..\src\global.h" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
|
|
|
@ -24,6 +24,12 @@
|
|||
<ClCompile Include="..\..\src\bitstream.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\encoder.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="..\..\src\cabac.c">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="..\..\src\global.h">
|
||||
|
@ -35,5 +41,11 @@
|
|||
<ClInclude Include="..\..\src\bitstream.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\encoder.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="..\..\src\cabac.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
</Project>
|
0
src/cabac.c
Normal file
0
src/cabac.c
Normal file
0
src/cabac.h
Normal file
0
src/cabac.h
Normal file
|
@ -8,7 +8,7 @@
|
|||
#ifndef _ENCODER_H
|
||||
#define _ENCODER_H
|
||||
|
||||
|
||||
//ToDo: add ME data
|
||||
typedef struct
|
||||
{
|
||||
void (*IME)(encoder_control* encoder);
|
||||
|
@ -18,18 +18,21 @@ typedef struct
|
|||
|
||||
typedef struct
|
||||
{
|
||||
FILE *file;
|
||||
|
||||
|
||||
FILE* file;
|
||||
uint32_t width;
|
||||
uint32_t height;
|
||||
uint32_t height_in_LCU;
|
||||
uint32_t width_in_LCU;
|
||||
} encoder_input;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
encoder_input in;
|
||||
encoder_me me;
|
||||
FILE *output;
|
||||
FILE* output;
|
||||
} encoder_control;
|
||||
|
||||
|
||||
init_encoder_control(encoder_control* control,FILE* output) {control->output = output;};
|
||||
init_encoder_input(encoder_input* input,FILE* inputfile, uint32_t width, uint32_t height) {input->file = inputfile; input->width = width; input->height = height;};
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue