Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
platform_frameworks_base-old
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Farzin Kazemzadeh
platform_frameworks_base-old
Commits
7f84edad
Commit
7f84edad
authored
2 years ago
by
Treehugger Robot
Committed by
Gerrit Code Review
2 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Camera: Bump up the extension jpeg processor blob size"
parents
ae418191
a69bf3c9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/java/android/hardware/camera2/impl/CameraExtensionJpegProcessor.java
+4
-2
4 additions, 2 deletions
...d/hardware/camera2/impl/CameraExtensionJpegProcessor.java
with
4 additions
and
2 deletions
core/java/android/hardware/camera2/impl/CameraExtensionJpegProcessor.java
+
4
−
2
View file @
7f84edad
...
...
@@ -46,6 +46,7 @@ import java.util.concurrent.ConcurrentLinkedQueue;
public
class
CameraExtensionJpegProcessor
implements
ICaptureProcessorImpl
{
public
final
static
String
TAG
=
"CameraExtensionJpeg"
;
private
final
static
int
JPEG_QUEUE_SIZE
=
1
;
private
final
static
int
JPEG_APP_SEGMENT_SIZE
=
64
*
1024
;
private
final
Handler
mHandler
;
private
final
HandlerThread
mHandlerThread
;
...
...
@@ -225,9 +226,10 @@ public class CameraExtensionJpegProcessor implements ICaptureProcessorImpl {
private
void
initializePipeline
()
throws
RemoteException
{
if
((
mFormat
!=
-
1
)
&&
(
mOutputSurface
!=
null
)
&&
(
mResolution
!=
null
)
&&
(
mYuvReader
==
null
))
{
// Jpeg/blobs are expected to be configured with (w*h)x1
// Jpeg/blobs are expected to be configured with (w*h)x1
.5 + 64k Jpeg APP1 segment
mOutputWriter
=
ImageWriter
.
newInstance
(
mOutputSurface
,
1
/*maxImages*/
,
ImageFormat
.
JPEG
,
mResolution
.
width
*
mResolution
.
height
,
1
);
ImageFormat
.
JPEG
,
(
mResolution
.
width
*
mResolution
.
height
*
3
)/
2
+
JPEG_APP_SEGMENT_SIZE
,
1
);
mYuvReader
=
ImageReader
.
newInstance
(
mResolution
.
width
,
mResolution
.
height
,
mFormat
,
JPEG_QUEUE_SIZE
);
mYuvReader
.
setOnImageAvailableListener
(
new
YuvCallback
(),
mHandler
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment