Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
1c1c3c29
Commit
1c1c3c29
authored
Feb 26, 2013
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing eclipse import errors
parent
2304d536
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
lint.xml
modules/java/android_lib/lint.xml
+7
-0
android+JavaCameraView.java
modules/java/generator/src/java/android+JavaCameraView.java
+0
-5
No files found.
modules/java/android_lib/lint.xml
0 → 100644
View file @
1c1c3c29
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<issue
id=
"NewApi"
>
<ignore
path=
"src\org\opencv\android\JavaCameraView.java"
/>
</issue>
</lint>
\ No newline at end of file
modules/java/generator/src/java/android+JavaCameraView.java
View file @
1c1c3c29
...
...
@@ -2,7 +2,6 @@ package org.opencv.android;
import
java.util.List
;
import
android.annotation.TargetApi
;
import
android.content.Context
;
import
android.graphics.ImageFormat
;
import
android.graphics.SurfaceTexture
;
...
...
@@ -11,7 +10,6 @@ import android.hardware.Camera.PreviewCallback;
import
android.os.Build
;
import
android.util.AttributeSet
;
import
android.util.Log
;
import
android.view.SurfaceHolder
;
import
org.opencv.core.CvType
;
import
org.opencv.core.Mat
;
...
...
@@ -64,7 +62,6 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
Log
.
d
(
TAG
,
"Java camera view ctor"
);
}
@TargetApi
(
11
)
protected
boolean
initializeCamera
(
int
width
,
int
height
)
{
Log
.
d
(
TAG
,
"Initialize java camera"
);
boolean
result
=
true
;
...
...
@@ -154,7 +151,6 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
if
(
Build
.
VERSION
.
SDK_INT
>=
Build
.
VERSION_CODES
.
HONEYCOMB
)
{
mSurfaceTexture
=
new
SurfaceTexture
(
MAGIC_TEXTURE_ID
);
getHolder
().
setType
(
SurfaceHolder
.
SURFACE_TYPE_PUSH_BUFFERS
);
mCamera
.
setPreviewTexture
(
mSurfaceTexture
);
}
else
mCamera
.
setPreviewDisplay
(
null
);
...
...
@@ -234,7 +230,6 @@ public class JavaCameraView extends CameraBridgeViewBase implements PreviewCallb
releaseCamera
();
}
@TargetApi
(
Build
.
VERSION_CODES
.
FROYO
)
public
void
onPreviewFrame
(
byte
[]
frame
,
Camera
arg1
)
{
Log
.
i
(
TAG
,
"Preview Frame received. Need to create MAT and deliver it to clients"
);
Log
.
i
(
TAG
,
"Frame size is "
+
frame
.
length
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment