aboutsummaryrefslogtreecommitdiff
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h25
1 files changed, 2 insertions, 23 deletions
diff --git a/common.h b/common.h
index 9265035..870058c 100644
--- a/common.h
+++ b/common.h
@@ -27,10 +27,6 @@
#include <stdio.h>
#include <semaphore.h>
-#include "parser.h"
-#include "queue.h"
-#include "drm-funcs.h"
-
/* When ADD_DETAILS is defined every debug and error message contains
* information about the file, function and line of code where it has
* been called */
@@ -128,20 +124,6 @@ struct video {
unsigned long total_captured;
};
-/* Parser related parameters */
-struct parser {
- struct mfc_parser_context ctx;
- unsigned long codec;
- /* Callback function to the real parsing function.
- * Dependent on the codec used. */
- int (*func)(struct mfc_parser_context *ctx,
- char* in, int in_size, char* out, int out_size,
- int *consumed, int *frame_size, char get_head);
- /* Set when the parser has finished and end of file has
- * been reached */
- int finished;
-};
-
struct instance {
int width;
int height;
@@ -156,18 +138,15 @@ struct instance {
/* video decoder related parameters */
struct video video;
- /* Parser related parameters */
- struct parser parser;
+ /* Codec to be used for encoding */
+ unsigned long codec;
pthread_mutex_t lock;
- struct queue queue;
/* Control */
int error; /* The error flag */
int finish; /* Flag set when decoding has been completed and all
threads finish */
-
- struct drm_buffer disp_buf[MAX_CAP_BUF];
};
#endif /* INCLUDE_COMMON_H */