Andrey Pavlenko
15db8243ef
refactored; added Camera2, notify callbacks, front/back maxCamera sizes; disable new stuff if target API < 21
2015-10-07 15:01:32 +03:00
Andrey Pavlenko
8e088d38a5
draft implementation of alternative CameraBridge via GLES
...
a simple sample will look like:
```java
public class MainActivity extends Activity implements CameraGLSurfaceView.CameraTextureListener {
CameraGLSurfaceView mView;
ByteBuffer buf;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,
WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE);
mView = new CameraGLSurfaceView(this, null);
mView.setCameraTextureListener(this);
setContentView(mView);
buf = ByteBuffer.allocateDirect(1920*1080*4);
}
@Override
protected void onPause() {
mView.onPause();
super.onPause();
}
@Override
protected void onResume() {
super.onResume();
mView.onResume();
}
@Override
public void onCameraViewStarted(int width, int height) {
// TODO Auto-generated method stub
}
@Override
public void onCameraViewStopped() {
// TODO Auto-generated method stub
}
@Override
public boolean onCameraFrame(int texIn, int texOut, int width, int height) {
Log.i("MAIN", "onCameraFrame");
int w=width, h=height;
/*
// option 1:
// just return 'false' to display texIn on screen
retutn false;
*/
/*
// option 2:
// fast copy texIn to texOut
GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
GLES20.glCopyTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, 0, 0, w, h, 0);
return true;
*/
// option 3:
// read, modify and write back pixels
GLES20.glReadPixels(0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
buf.rewind();
// red line
for(int i=0; i<h; i++) {
buf.position(w*4*i+i*4);
buf.put((byte) -1);
buf.position(w*4*i+i*4+4);
buf.put((byte) -1);
}
buf.rewind();
GLES20.glActiveTexture(GLES20.GL_TEXTURE0);
GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texOut);
GLES20.glTexSubImage2D(GLES20.GL_TEXTURE_2D, 0, 0, 0, w, h, GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, buf);
return true;
}
}
```
2015-09-19 16:18:02 +03:00
Vadim Pisarevsky
9533982729
Merge pull request #5272 from avershov:opencl-vaapi-fallback
2015-09-14 11:54:20 +00:00
Vadim Pisarevsky
21d06f5ab2
Merge pull request #5333 from UnaNancyOwen:fix3_LineAA
2015-09-14 11:49:14 +00:00
Vadim Pisarevsky
07a4f571d9
Merge pull request #5337 from Dikay900:tbb_cmake_visibility
2015-09-14 11:47:04 +00:00
Vadim Pisarevsky
5e2c578b50
Merge pull request #5339 from blebo:patch-1
2015-09-14 11:46:35 +00:00
Adam
37d300f250
Correction of minor typo.
2015-09-14 00:12:06 +08:00
Dikay900
274b361ca3
proposed change by psyill
2015-09-12 12:19:44 +02:00
Tsukasa Sugiura
cd13b30fde
Fix LineAA in case of 4 channel
...
Fix bug when enter 4 channel image to LineAA function.
2015-09-12 01:42:25 +09:00
Alexander Alekhin
190d00ea3e
Merge pull request #5317 from alalek:workaround
2015-09-11 11:42:33 +00:00
Maksim Shabunin
31fbe8caeb
Merge pull request #5255 from berak:java_videowriter
2015-09-11 11:09:16 +00:00
Vadim Pisarevsky
1862c5fbb2
Merge pull request #5327 from mshabunin:mingw-fix
2015-09-11 10:19:46 +00:00
Alexey Ershov
22bb5d1fcc
implemented sample build in fallback mode without interop
2015-09-10 19:30:19 +03:00
Maksim Shabunin
10d8e956f4
Enabled pthreads backend for mingw
2015-09-10 17:12:22 +03:00
Alexey Ershov
f533c05644
sample changed to execute only one mode (interop on/off) per run
2015-09-10 15:41:04 +03:00
Alexey Ershov
933ad0e710
changed call to getDefault: false to true in fallback initialization
2015-09-10 14:36:40 +03:00
Maksim Shabunin
d2add41b6b
Merge pull request #5321 from alalek:copy_if_different
2015-09-10 09:41:49 +00:00
Maksim Shabunin
0a6e93dd3a
Merge pull request #5258 from sturkmen72:patch-6
2015-09-10 09:22:07 +00:00
Alexander Alekhin
ad70ab404c
ocl: workaround for getUMat()
2015-09-09 18:56:14 +03:00
Andrey Pavlenko
cea2dafa0f
man/unmap, preventing getMat/getUMat from temp object, fix thread-unsafe code in UMat::getMat()
2015-09-09 18:05:29 +03:00
Alexander Alekhin
536634b1fe
Merge pull request #5293 from alalek:tapi_custom_ptr_perf
2015-09-09 14:59:17 +00:00
Alexander Alekhin
cdfdf29eca
Merge pull request #5292 from alalek:tapi_custom_ptr
2015-09-09 14:58:28 +00:00
Vadim Pisarevsky
32c386786e
Merge pull request #5294 from LorenaGdL:master
2015-09-09 13:41:39 +00:00
Vadim Pisarevsky
6208ab4e49
Merge pull request #5304 from paroj:calib_feye
2015-09-09 11:00:40 +00:00
Vadim Pisarevsky
79100efec6
Merge pull request #5301 from vtsatskin:patch-1
2015-09-09 10:39:53 +00:00
Vadim Pisarevsky
8660d550d3
Merge pull request #5302 from berak:patch-2
2015-09-09 10:34:29 +00:00
Vadim Pisarevsky
666de1b087
Merge pull request #5312 from sturkmen72:patch-2
2015-09-09 10:30:22 +00:00
Alexander Alekhin
b15a9d675e
cmake: use copy_if_different
2015-09-08 22:42:05 +03:00
Alexey Ershov
e0b3751c17
added run iteration without timing to complete internal initializations
2015-09-08 21:01:57 +03:00
Alexander Alekhin
894f922cfb
Merge pull request #5316 from mshabunin:fix-contrib-tests
2015-09-08 16:52:43 +00:00
Alexey Ershov
5937e58a11
fixed argument in call to {Input|Output}Array.getMat()
2015-09-08 19:29:19 +03:00
Alexey Ershov
949410b347
separated UMat & Mat usage in interop/copy paths
2015-09-07 21:11:05 +03:00
Maksim Shabunin
5618f4a0ac
Fixed: Concurrency static scheduler release failed
2015-09-07 18:59:07 +03:00
Suleyman TURKMEN
c63f443bba
Update drawing.cpp
...
https://github.com/Itseez/opencv/issues/4791
2015-09-07 11:30:14 +03:00
Suleyman TURKMEN
e15dabf1db
documentation patch
2015-09-05 10:41:01 +03:00
Alexander Alekhin
abf30e44cd
Merge pull request #5303 from berak:patch-3
2015-09-04 16:49:41 +00:00
berak
602bd60c3a
Update cloning_gui.cpp
2015-09-04 17:13:58 +02:00
Pavel Rojtberg
d0e16b21d4
add support for fisheye camera model
2015-09-04 15:54:34 +02:00
berak
dc265071d0
Update PnPProblem.cpp
2015-09-04 10:57:33 +02:00
Alexey Ershov
68a0347ff9
fallback path & sample timing implemented
...
fixed trailing whitespaces
renamed files *vaapi* to *va_intel*
changed names vaapi* to va_intel*
2015-09-04 02:42:49 +03:00
Valentin Tsatskin
a28a556f60
Fix variable names in python color spaces tutorial
2015-09-03 15:45:36 -04:00
Alexander Alekhin
4ecc023219
UMat: add perf test for custom ptr
2015-09-03 10:48:07 +03:00
Alexander Alekhin
8694ba0978
update custom_ptr test
2015-09-03 10:46:38 +03:00
Lorena García
4e7bd86fad
TrainData doc update
...
Update docs according to PR #5127
2015-09-03 05:52:04 +02:00
Alexander Alekhin
9c3f95782d
Merge pull request #5282 from mshabunin:mingw-51
2015-09-02 13:19:52 +00:00
Maksim Shabunin
8c65f8a0d1
fixup! Some changes to support mingw-w64
2015-09-01 13:49:23 +03:00
Maksim Shabunin
e009d79cc8
fixup! Some changes to support mingw-w64
2015-09-01 12:14:40 +03:00
Maksim Shabunin
771af4f32d
Some changes to support mingw-w64
...
- IPP is disabled by default when compiler is mingw (couldn't make it
work)
- fixed some warnings
- fixed some `__GNUC__` version checks (for correctness and convenience)
- removed UTF-8 BOM from hough.cpp (fixes #5253 )
2015-09-01 00:59:08 +03:00
Vadim Pisarevsky
c223c05b82
Merge pull request #5261 from apavlenko:android_ocl_sample_improvements
2015-08-31 11:09:41 +00:00
Vadim Pisarevsky
84850ae714
Merge pull request #5269 from eladj:patch-1
2015-08-31 11:09:09 +00:00