diff options
author | TreeHugger Robot | 2018-07-17 10:41:44 -0500 |
---|---|---|
committer | Android (Google) Code Review | 2018-07-17 10:41:44 -0500 |
commit | 98563bff3eead3f5a1a15e91db17d318c3d8dd96 (patch) | |
tree | 979fc713128ae77e95fadb2119e059239a6c71ba | |
parent | 8ee9436e5478a237bd75a74071dd96914b71f6a2 (diff) | |
parent | 788109fc6cc647c60d77cf4bcaa4dba32dc06e22 (diff) | |
download | platform-packages-services-car-98563bff3eead3f5a1a15e91db17d318c3d8dd96.tar.gz platform-packages-services-car-98563bff3eead3f5a1a15e91db17d318c3d8dd96.tar.xz platform-packages-services-car-98563bff3eead3f5a1a15e91db17d318c3d8dd96.zip |
Merge "EVS patches from AOSP" into pi-dev
-rw-r--r-- | evs/app/RenderDirectView.cpp | 3 | ||||
-rw-r--r-- | evs/app/RenderTopView.cpp | 3 | ||||
-rw-r--r-- | evs/sampleDriver/GlWrapper.cpp | 5 | ||||
-rw-r--r-- | evs/sampleDriver/ServiceNames.h | 4 | ||||
-rw-r--r-- | evs/sampleDriver/VideoCapture.h | 4 |
5 files changed, 19 insertions, 0 deletions
diff --git a/evs/app/RenderDirectView.cpp b/evs/app/RenderDirectView.cpp index 24eb4854..f0d26e40 100644 --- a/evs/app/RenderDirectView.cpp +++ b/evs/app/RenderDirectView.cpp | |||
@@ -133,6 +133,9 @@ bool RenderDirectView::drawFrame(const BufferDesc& tgtBuffer) { | |||
133 | glDisableVertexAttribArray(1); | 133 | glDisableVertexAttribArray(1); |
134 | 134 | ||
135 | 135 | ||
136 | // Now that everything is submitted, release our hold on the texture resource | ||
137 | detachRenderTarget(); | ||
138 | |||
136 | // Wait for the rendering to finish | 139 | // Wait for the rendering to finish |
137 | glFinish(); | 140 | glFinish(); |
138 | 141 | ||
diff --git a/evs/app/RenderTopView.cpp b/evs/app/RenderTopView.cpp index bff2b3c0..80ccb116 100644 --- a/evs/app/RenderTopView.cpp +++ b/evs/app/RenderTopView.cpp | |||
@@ -212,6 +212,9 @@ bool RenderTopView::drawFrame(const BufferDesc& tgtBuffer) { | |||
212 | // Draw the car image | 212 | // Draw the car image |
213 | renderCarTopView(); | 213 | renderCarTopView(); |
214 | 214 | ||
215 | // Now that everythign is submitted, release our hold on the texture resource | ||
216 | detachRenderTarget(); | ||
217 | |||
215 | // Wait for the rendering to finish | 218 | // Wait for the rendering to finish |
216 | glFinish(); | 219 | glFinish(); |
217 | 220 | ||
diff --git a/evs/sampleDriver/GlWrapper.cpp b/evs/sampleDriver/GlWrapper.cpp index 3055ba0f..fbd36a24 100644 --- a/evs/sampleDriver/GlWrapper.cpp +++ b/evs/sampleDriver/GlWrapper.cpp | |||
@@ -308,6 +308,11 @@ bool GlWrapper::initialize() { | |||
308 | return false; | 308 | return false; |
309 | } | 309 | } |
310 | 310 | ||
311 | // Turn off mip-mapping for the created texture surface | ||
312 | // (the inbound camera imagery doesn't have MIPs) | ||
313 | glBindTexture(GL_TEXTURE_2D, mTextureMap); | ||
314 | glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | ||
315 | glBindTexture(GL_TEXTURE_2D, 0); | ||
311 | 316 | ||
312 | return true; | 317 | return true; |
313 | } | 318 | } |
diff --git a/evs/sampleDriver/ServiceNames.h b/evs/sampleDriver/ServiceNames.h index 1178da5a..6458b1b7 100644 --- a/evs/sampleDriver/ServiceNames.h +++ b/evs/sampleDriver/ServiceNames.h | |||
@@ -13,5 +13,9 @@ | |||
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | #ifndef ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_SERVICENAMES_H | ||
17 | #define ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_SERVICENAMES_H | ||
16 | 18 | ||
17 | const static char kEnumeratorServiceName[] = "EvsEnumeratorHw"; | 19 | const static char kEnumeratorServiceName[] = "EvsEnumeratorHw"; |
20 | |||
21 | #endif // ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_SERVICENAMES_H | ||
diff --git a/evs/sampleDriver/VideoCapture.h b/evs/sampleDriver/VideoCapture.h index f2d11752..63305b91 100644 --- a/evs/sampleDriver/VideoCapture.h +++ b/evs/sampleDriver/VideoCapture.h | |||
@@ -13,6 +13,9 @@ | |||
13 | * See the License for the specific language governing permissions and | 13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. | 14 | * limitations under the License. |
15 | */ | 15 | */ |
16 | #ifndef ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_VIDEOCAPTURE_H | ||
17 | #define ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_VIDEOCAPTURE_H | ||
18 | |||
16 | #include <atomic> | 19 | #include <atomic> |
17 | #include <thread> | 20 | #include <thread> |
18 | #include <functional> | 21 | #include <functional> |
@@ -73,3 +76,4 @@ private: | |||
73 | }; | 76 | }; |
74 | }; | 77 | }; |
75 | 78 | ||
79 | #endif // ANDROID_HARDWARE_AUTOMOTIVE_EVS_V1_0_VIDEOCAPTURE_ | ||