From 5dcbe3e8df4dbd8e8dc7b7ffb9687f4527e5bbbb Mon Sep 17 00:00:00 2001 From: Marko Viitanen Date: Mon, 4 Jun 2012 11:53:48 +0300 Subject: [PATCH] Data structure initialization functions --- build/VS2010/HEVC_encoder.vcxproj | 4 ++++ build/VS2010/HEVC_encoder.vcxproj.filters | 12 ++++++++++++ src/cabac.c | 0 src/cabac.h | 0 src/encoder.h | 17 ++++++++++------- 5 files changed, 26 insertions(+), 7 deletions(-) create mode 100644 src/cabac.c create mode 100644 src/cabac.h diff --git a/build/VS2010/HEVC_encoder.vcxproj b/build/VS2010/HEVC_encoder.vcxproj index 6b6ede4e..cbbd3e8f 100644 --- a/build/VS2010/HEVC_encoder.vcxproj +++ b/build/VS2010/HEVC_encoder.vcxproj @@ -79,12 +79,16 @@ + + + + diff --git a/build/VS2010/HEVC_encoder.vcxproj.filters b/build/VS2010/HEVC_encoder.vcxproj.filters index d59e7d17..fc706a68 100644 --- a/build/VS2010/HEVC_encoder.vcxproj.filters +++ b/build/VS2010/HEVC_encoder.vcxproj.filters @@ -24,6 +24,12 @@ Source Files + + Source Files + + + Source Files + @@ -35,5 +41,11 @@ Header Files + + Header Files + + + Header Files + \ No newline at end of file diff --git a/src/cabac.c b/src/cabac.c new file mode 100644 index 00000000..e69de29b diff --git a/src/cabac.h b/src/cabac.h new file mode 100644 index 00000000..e69de29b diff --git a/src/encoder.h b/src/encoder.h index a50d1182..c6f50e70 100644 --- a/src/encoder.h +++ b/src/encoder.h @@ -8,28 +8,31 @@ #ifndef _ENCODER_H #define _ENCODER_H - +//ToDo: add ME data typedef struct { - void (*IME)(encoder_control* encoder); + void (*IME)(encoder_control* encoder); } encoder_me; 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 \ No newline at end of file