liyujie
2025-08-28 867b8b7b729282c7e14e200ca277435329ebe747
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef __LIBVE_DECORDER2_H__
#define __LIBVE_DECORDER2_H__
 
#include <sys/mman.h>
#include <sys/ioctl.h>
#include <fcntl.h>
 
#include <pthread.h>
#include "vencoder.h"  //* video encode library in "LIBRARY/CODEC/VIDEO/ENCODER"
#include "vdecoder.h"
 
#include <string.h>
#include <dlfcn.h>
#include <dirent.h>
#include <cutils/properties.h>
#define DBG_ENABLE 0
 
#ifdef __cplusplus
extern "C" {
#endif
 
#define ALIGN_4K(x) (((x) + (4095)) & ~(4095))
#define ALIGN_32B(x) (((x) + (31)) & ~(31))
#define ALIGN_16B(x) (((x) + (15)) & ~(15))
#define ALIGN_8B(x) (((x) + (7)) & ~(7))
 
extern void AddVDPlugin(void);
extern void AddVDPluginSingle(char *lib);
 
void Libve_dec2(VideoDecoder** mVideoDecoder,
                const void *in,
                void *outY,
                void *outU,
                void *outV,
                VideoStreamInfo* pVideoInfo,
                VideoStreamDataInfo* dataInfo,
                VConfig* pVconfig);
int  Libve_init2(VideoDecoder** mVideoDecoder,
                 VideoStreamInfo* pVideoInfo,
                 VConfig* pVconfig);
int  Libve_exit2(VideoDecoder** mVideoDecoder);
 
#ifdef __cplusplus
}
#endif
 
 
#endif  /* __LIBVE_DECORDER2_H__ */