forked from purdeaandrei/image_meta_tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mp_entry.h
30 lines (22 loc) · 822 Bytes
/
mp_entry.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* Copyright (c) 2012, Movidius Ltd.
Released under the BSD 3-clause license.
Author: Purdea Andrei <andrei -at- purdea.ro>
<andrei.purdea -at- movidius.com> */
#ifndef __MPOTOOLS_MP_ENTRY_H
#define __MPOTOOLS_MP_ENTRY_H
#include "common.h"
#include "referenced_images.h"
typedef struct mp_entry_s {
uint32_t offset; // sort by this
pointer_t *offset_pointer;
pointer_t *size_pointer;
uint32_t end_pos; // endian position.
int le; // little endian??
} mp_entry_t;
typedef struct mp_entry_db_s {
int count;
mp_entry_t arr[MAX_IMAGES]; // contains absolute positions!!!
} mp_entry_db_t;
void add_mp_entry(mp_entry_db_t *db, uint32_t old_offset, pointer_t *offset, pointer_t *size, uint32_t end_pos, int le);
void sort_mp_entry_db(mp_entry_db_t *db);
#endif