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>
|
</ItemDefinitionGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="..\..\src\bitstream.c" />
|
<ClCompile Include="..\..\src\bitstream.c" />
|
||||||
|
<ClCompile Include="..\..\src\cabac.c" />
|
||||||
<ClCompile Include="..\..\src\config.c" />
|
<ClCompile Include="..\..\src\config.c" />
|
||||||
<ClCompile Include="..\..\src\encmain.c" />
|
<ClCompile Include="..\..\src\encmain.c" />
|
||||||
|
<ClCompile Include="..\..\src\encoder.c" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\..\src\bitstream.h" />
|
<ClInclude Include="..\..\src\bitstream.h" />
|
||||||
|
<ClInclude Include="..\..\src\cabac.h" />
|
||||||
<ClInclude Include="..\..\src\config.h" />
|
<ClInclude Include="..\..\src\config.h" />
|
||||||
|
<ClInclude Include="..\..\src\encoder.h" />
|
||||||
<ClInclude Include="..\..\src\global.h" />
|
<ClInclude Include="..\..\src\global.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
|
|
|
@ -24,6 +24,12 @@
|
||||||
<ClCompile Include="..\..\src\bitstream.c">
|
<ClCompile Include="..\..\src\bitstream.c">
|
||||||
<Filter>Source Files</Filter>
|
<Filter>Source Files</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\encoder.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="..\..\src\cabac.c">
|
||||||
|
<Filter>Source Files</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClInclude Include="..\..\src\global.h">
|
<ClInclude Include="..\..\src\global.h">
|
||||||
|
@ -35,5 +41,11 @@
|
||||||
<ClInclude Include="..\..\src\bitstream.h">
|
<ClInclude Include="..\..\src\bitstream.h">
|
||||||
<Filter>Header Files</Filter>
|
<Filter>Header Files</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\src\encoder.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="..\..\src\cabac.h">
|
||||||
|
<Filter>Header Files</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</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,28 +8,31 @@
|
||||||
#ifndef _ENCODER_H
|
#ifndef _ENCODER_H
|
||||||
#define _ENCODER_H
|
#define _ENCODER_H
|
||||||
|
|
||||||
|
//ToDo: add ME data
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
void (*IME)(encoder_control* encoder);
|
void (*IME)(encoder_control* encoder);
|
||||||
|
|
||||||
} encoder_me;
|
} encoder_me;
|
||||||
|
|
||||||
|
|
||||||
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;
|
} encoder_input;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
encoder_input in;
|
encoder_input in;
|
||||||
encoder_me me;
|
encoder_me me;
|
||||||
FILE *output;
|
FILE* output;
|
||||||
} encoder_control;
|
} 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
|
#endif
|
Loading…
Reference in a new issue