Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

RK3288 + ov13850 camera module => RAW

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142

RK3288 + ov13850 camera module => RAW

Posted at 12/13/2015 23:51:49      View:7387 | Replies:12        Print      Only Author   [Copy Link] 1#
Last edited by macdam In 12/13/2015 23:53 Editor

Hi,

Is there a way to retrieve RAW images from the camera module using android 5.1?

many thanks,
Reply

Use props Report

2442

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
2442
Posted at 12/18/2015 09:10:02        Only Author  2#
have a look at  : hardware/rockchip/camera/CameraHal/
Reply

Use props Report

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142
Posted at 12/18/2015 19:07:10        Only Author  3#
Is this the path to the driver sources or a location on where I can find a temporary raw file?
Reply

Use props Report

2442

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
2442
Posted at 12/19/2015 11:26:15        Only Author  4#
grep the “raw” keyword, you can find out and analys it by youself
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 9/26/2017 00:24:25        Only Author  5#
Hi.
Like Macdam, I'm also looking for RAW format.
As a java/android developer, i'm not satisfied by Zhansb reply.

calling camera1 api  :
  1. camera.getParameters().getSupportedPictureFormats()
Copy the code

returns only one value ==> 256 which is the JPEG format as documented in android SDK (https://developer.android.com/re ... cs/ImageFormat.html)

Is there any plan to support RAW/YUV format ?
Is there any workaround to get this format?
Reply

Use props Report

22

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
22
Posted at 10/27/2017 06:21:16        Only Author  6#
Last edited by Pup-Xav In 10/27/2017 15:09 Editor

I was able to get a "raw" (YUV422)  picture with android 5.1 running on a rk3288.
The Camera.takePicture() method takes a callback for raw as second parameter.
  1. camera.takePicture ( shutterCallback, rawCallback, jpegCallback );
Copy the code
This callback will return a null byteArray, unless you explicitly add a buffer for raw image .
  1. addRawImageCallbackBuffer.invoke(camera, bytes);
Copy the code
Surprisingly,  the method is public but not exported, so you cannot call it directly.
The pseudo-code below demonstrate how to call it by reflection.
  1. ...
  2. byte[] bytes = new byte[100000000]);
  3. android.hardware.Camera  camera = Camera.Open();
  4. ...
  5.    try {
  6.         final Method addRawImageCallbackBuffer =
  7.                 camera.getClass()
  8.                        .getDeclaredMethod("addRawImageCallbackBuffer",
  9.                                           byte[].class);
  10.         addRawImageCallbackBuffer.invoke(camera0, bytes);
  11.     } catch (Exception e) {
  12.         Log.e("RNG", "Error", e);
  13.     }
  14. ...
  15. camera.takePicture ( shutterCallback, rawCallback, jpegCallback );
  16. ...
Copy the code
For reference : https://stackoverflow.com/questi ... and-raw-takepicture

Reply

Use props Report

11

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
11
Posted at 11/3/2017 00:17:23        Only Author  7#
I have similar need for raw preview format. Currently preview only support NV21 and Yv12.
Reply

Use props Report

134

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
134
Posted at 1/10/2026 00:48:50        Only Author  8#
VMware 3V0-21.23 是一個專業知識和技能的認證考試。在IT行業中找工作,很多人力資源經理在面試時會參考你有哪些VMware相關的I認證證書。如果你擁有VMware 3V0-21.23認證證書,顯然可以提高你的競爭力。
Reply

Use props Report

133

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
133
Posted at 1/15/2026 13:27:56        Only Author  9#
Absolutely worthy of a like, no hesitation. The 220-1101 valid study guide files exam questions are the foundation for your career growth—get them for free!
Reply

Use props Report

132

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
132
Posted at 1/16/2026 01:43:33        Only Author  10#
ZertSoft ist eine Website, die Prüfungsressourcen den IT-leuten , die sich an der Salesforce Salesforce-Media-Cloud Zertifizierungsprüfung (Salesforce Media Cloud Accredited Professional (AP) Exam) beteiligen, bieten. Es gibt verschiedene Schulungsmethoden und Kurse für verschiedene Studenten. Mit der Ausbildungmethode von ZertSoft können die Studenten die Prüfung ganz leicht bestehen. Viele Kandidaten, die sich an der IT-Zertifizierungsprüfung beteiligt haben, haben die Salesforce Salesforce-Media-Cloud Zertifizierungsprüfung (Salesforce Media Cloud Accredited Professional (AP) Exam) mit Hilfe der Prüfungsfragen und Antworten von ZertSoft sehr erfolglich abgelegt. So genießt ZertSoft einen guten Ruf in der IT-Branche.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list