Commit | Line | Data |
---|---|---|
5763fb39 T |
1 | #include "ExynosMPPModule.h" |
2 | #include "ExynosExternalDisplay.h" | |
3 | ||
4 | ExynosExternalDisplay::ExynosExternalDisplay(struct exynos5_hwc_composer_device_1_t *pdev) : | |
5 | ExynosDisplay(1), | |
6 | mFlagIONBufferAllocated(false) | |
7 | { | |
8 | this->mHwc = pdev; | |
9 | mMPPs[0] = NULL; | |
10 | mEnabled = false; | |
11 | mBlanked = false; | |
12 | mUseSubtitles = false; | |
13 | ||
14 | } | |
15 | ||
16 | ExynosExternalDisplay::~ExynosExternalDisplay() | |
17 | { | |
18 | } | |
19 | ||
20 | int ExynosExternalDisplay::prepare(__unused hwc_display_contents_1_t *contents) | |
21 | { | |
22 | return 0; | |
23 | } | |
24 | ||
25 | int ExynosExternalDisplay::clearDisplay() | |
26 | { | |
27 | return -1; | |
28 | } | |
29 | ||
30 | int ExynosExternalDisplay::set(__unused hwc_display_contents_1_t *contents) | |
31 | { | |
32 | return 0; | |
33 | } | |
34 | ||
35 | int ExynosExternalDisplay::openHdmi() | |
36 | { | |
37 | return 0; | |
38 | } | |
39 | ||
40 | void ExynosExternalDisplay::setHdmiStatus(__unused bool status) | |
41 | { | |
42 | } | |
43 | ||
44 | bool ExynosExternalDisplay::isPresetSupported(__unused unsigned int preset) | |
45 | { | |
46 | return false; | |
47 | } | |
48 | ||
49 | int ExynosExternalDisplay::getConfig() | |
50 | { | |
51 | return 0; | |
52 | } | |
53 | ||
54 | int ExynosExternalDisplay::getDisplayConfigs(__unused uint32_t *configs, size_t *numConfigs) | |
55 | { | |
56 | *numConfigs = 0; | |
57 | return -1; | |
58 | } | |
59 | ||
60 | int ExynosExternalDisplay::enableLayer(__unused hdmi_layer_t &hl) | |
61 | { | |
62 | return 0; | |
63 | } | |
64 | ||
65 | void ExynosExternalDisplay::disableLayer(__unused hdmi_layer_t &hl) | |
66 | { | |
67 | } | |
68 | ||
69 | int ExynosExternalDisplay::enable() | |
70 | { | |
71 | return 0; | |
72 | } | |
73 | ||
74 | void ExynosExternalDisplay::disable() | |
75 | { | |
76 | } | |
77 | ||
78 | int ExynosExternalDisplay::output(__unused hdmi_layer_t &hl, __unused hwc_layer_1_t &layer, __unused private_handle_t *h, __unused int acquireFenceFd, __unused int *releaseFenceFd) | |
79 | { | |
80 | return 0; | |
81 | } | |
82 | ||
83 | void ExynosExternalDisplay::skipStaticLayers(__unused hwc_display_contents_1_t *contents, __unused int ovly_idx) | |
84 | { | |
85 | } | |
86 | ||
87 | void ExynosExternalDisplay::setPreset(__unused int preset) | |
88 | { | |
89 | } | |
90 | ||
91 | int ExynosExternalDisplay::convert3DTo2D(__unused int preset) | |
92 | { | |
93 | return 0; | |
94 | } | |
95 | ||
96 | void ExynosExternalDisplay::calculateDstRect(__unused int src_w, __unused int src_h, __unused int dst_w, __unused int dst_h, __unused struct v4l2_rect *dst_rect) | |
97 | { | |
98 | } | |
99 | ||
100 | void ExynosExternalDisplay::setHdcpStatus(__unused int status) | |
101 | { | |
102 | } | |
103 | ||
104 | void ExynosExternalDisplay::setAudioChannel(__unused uint32_t channels) | |
105 | { | |
106 | } | |
107 | ||
108 | uint32_t ExynosExternalDisplay::getAudioChannel() | |
109 | { | |
110 | return 0; | |
111 | } | |
112 | ||
113 | int ExynosExternalDisplay::blank() | |
114 | { | |
115 | return 0; | |
116 | } | |
117 | ||
118 | int ExynosExternalDisplay::waitForRenderFinish(__unused private_module_t *grallocModule, __unused buffer_handle_t *handle, __unused int buffers) | |
119 | { | |
120 | return 0; | |
121 | } |