summaryrefslogtreecommitdiff
path: root/libgscaler/include/hardware/exynos/LibMpp.h
blob: a33831c70c1c97a0c2cd665b33efe276075ee726 (plain)
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
#ifndef LIBMPP_H_
#define LIBMPP_H_

#include <log/log.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <system/graphics.h>

#include <exynos_format.h>
#ifdef USES_GSCALER
#include <exynos_gscaler.h>
#endif
#ifdef USES_FIMC
#include "exynos_fimc.h"
#endif

class LibMpp {
public:
    LibMpp() {
        ALOGD("%s\n", __func__);
    }
    virtual ~LibMpp() {
        ALOGD("%s\n", __func__);
    }
    virtual int ConfigMpp(void *handle, exynos_mpp_img *src,
				   exynos_mpp_img *dst) = 0;
    virtual int RunMpp(void *handle, exynos_mpp_img *src,
				   exynos_mpp_img *dst) = 0;
    virtual int StopMpp(void *handle) = 0;
    virtual void DestroyMpp(void *handle) = 0;
    virtual int SetCSCProperty(void *handle, unsigned int eqAuto,
		   unsigned int fullRange, unsigned int colorspace) = 0;
    virtual int FreeMpp(void *handle) = 0;
    virtual int SetInputCrop(void *handle, exynos_mpp_img *src, exynos_mpp_img *dst) = 0;
    virtual int ConfigBlendMpp(void __unused *handle, exynos_mpp_img __unused *src,
                    exynos_mpp_img __unused *dst,
                    struct SrcBlendInfo __unused *srcblendinfo) {return 0;};
};

#endif