[Q] How to use the camera in burst mode programmatically ?

May 13, 2013
11
1
0
Hello,

I'm a n00b(1st post) so please let me know if this is the right place to ask as I was tempted to post Development.
If this is the wrong place then please let me know where/how should I post this.

I did search the forums and stackoverflow as best as I could and tried on my own but I am not making any progress.

I am trying to trigger the Xperia Z's camera in burst mode from code but I can't get to the functionality.
I've tried using the official Sony Add-on SDK(developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/)but it doesn't provide the burst functionality.

Then I downloaded and tried to compile the AOSP(github.com/sonyxperiadev/device-sony-c6603) project but ran into errors:
Code:
First I ran into this:
build/core/main.mk:100: ************************************************************
build/core/main.mk:101: You are building on a case-insensitive filesystem.
build/core/main.mk:102: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:103: ************************************************************
build/core/main.mk:104: *** Case-insensitive filesystems not supported.  Stop.
then I modified that makefile like so:
Code:
ifneq ($(HOST_OS),windows)
ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
# check for a case sensitive file system
# ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
#                 echo a > $(OUT_DIR)/casecheck.txt; \
#                     echo B > $(OUT_DIR)/CaseCheck.txt; \
#                 cat $(OUT_DIR)/casecheck.txt))
# $(warning ************************************************************)
# $(warning You are building on a case-insensitive filesystem.)
# $(warning Please move your source tree to a case-sensitive filesystem.)
# $(warning ************************************************************)
# $(error Case-insensitive filesystems not supported)
# endif
endif
endif
but then ran into another error:
Code:
host ObjC: emulator-arm <= external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.m
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:24,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:70,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                 from external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.h:11,
                 from external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:73: error: conflicting types for ‘uint16’
external/qemu/fpu/softfloat.h:60: error: previous declaration of ‘uint16’ was here
make: *** [out/host/darwin-x86/obj/EXECUTABLES/emulator-arm_intermediates/distrib/sdl-1.2.15/src/main/macosx/SDLMain.o] Error 1
I'm using osx 10.8 and have both 10.7 and 10.8 sdks downloaded. I'm not sure how to resolve this issue though.

I've never build an os from source, so this is a bit intimidating now. I did snoop through the source code and found something very close what I need in frameworks/av/services/camera/libcameraservice as it contains a BurstCapture c++ class. I'm guessing this will be compiled as a shared library which will probably be accessed via JNI or something from an android .jar. Is my guess correct ? How can I compile the shared library and jar ?

I am interested in only the burst capture functionality. How can I get/use those libraries ? Do I need to compile the whole AOSP ? If so, how do I get past the make error ?
 
  • Like
Reactions: Coirpre

julianalexander

Senior Member
Mar 27, 2013
207
36
0
Hello,

I'm a n00b(1st post) so please let me know if this is the right place to ask as I was tempted to post Development.
If this is the wrong place then please let me know where/how should I post this.

I did search the forums and stackoverflow as best as I could and tried on my own but I am not making any progress.

I am trying to trigger the Xperia Z's camera in burst mode from code but I can't get to the functionality.
I've tried using the official Sony Add-on SDK(developer.sonymobile.com/knowledge-base/sdks/sony-add-on-sdk/install-the-sony-add-on-sdk/)but it doesn't provide the burst functionality.

Then I downloaded and tried to compile the AOSP(github.com/sonyxperiadev/device-sony-c6603) project but ran into errors:
Code:
First I ran into this:
build/core/main.mk:100: ************************************************************
build/core/main.mk:101: You are building on a case-insensitive filesystem.
build/core/main.mk:102: Please move your source tree to a case-sensitive filesystem.
build/core/main.mk:103: ************************************************************
build/core/main.mk:104: *** Case-insensitive filesystems not supported.  Stop.
then I modified that makefile like so:
Code:
ifneq ($(HOST_OS),windows)
ifneq ($(HOST_OS)-$(HOST_ARCH),darwin-ppc)
# check for a case sensitive file system
# ifneq (a,$(shell mkdir -p $(OUT_DIR) ; \
#                 echo a > $(OUT_DIR)/casecheck.txt; \
#                     echo B > $(OUT_DIR)/CaseCheck.txt; \
#                 cat $(OUT_DIR)/casecheck.txt))
# $(warning ************************************************************)
# $(warning You are building on a case-insensitive filesystem.)
# $(warning Please move your source tree to a case-sensitive filesystem.)
# $(warning ************************************************************)
# $(error Case-insensitive filesystems not supported)
# endif
endif
endif
but then ran into another error:
Code:
host ObjC: emulator-arm <= external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.m
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h:24,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h:9,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:70,
                 from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
                 from external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.h:11,
                 from external/qemu/distrib/sdl-1.2.15/src/main/macosx/SDLMain.m:9:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:73: error: conflicting types for ‘uint16’
external/qemu/fpu/softfloat.h:60: error: previous declaration of ‘uint16’ was here
make: *** [out/host/darwin-x86/obj/EXECUTABLES/emulator-arm_intermediates/distrib/sdl-1.2.15/src/main/macosx/SDLMain.o] Error 1
I'm using osx 10.8 and have both 10.7 and 10.8 sdks downloaded. I'm not sure how to resolve this issue though.

I've never build an os from source, so this is a bit intimidating now. I did snoop through the source code and found something very close what I need in frameworks/av/services/camera/libcameraservice as it contains a BurstCapture c++ class. I'm guessing this will be compiled as a shared library which will probably be accessed via JNI or something from an android .jar. Is my guess correct ? How can I compile the shared library and jar ?

I am interested in only the burst capture functionality. How can I get/use those libraries ? Do I need to compile the whole AOSP ? If so, how do I get past the make error ?

theres a Q&A forum... this should be on that section not in general section..
 
  • Like
Reactions: george.profenza
May 13, 2013
11
1
0
repost it on Q&A.. delete this thread.. just copy and paste on what you typed.. like edit ur post and copy/paste..;)



sent from my C6603 using xda app-developers app hit THANKS if Helped you
Thanks again! Shamefully n00b question: how do I delete this thread ?
(Edit/Delete seems to only do Edit, unless I'm missing something).
 

Coirpre

Senior Member
Dec 8, 2011
313
149
0
only mods can delete threads, and a mod could also just have migrated the whole thread. To me, it seems this could as well have been posted in development, as you seem to know what you are doing and are, in fact, developing. however Q&A is not wrong. I hope you find someone able to help.
 
  • Like
Reactions: george.profenza

julianalexander

Senior Member
Mar 27, 2013
207
36
0
only mods can delete threads, and a mod could also just have migrated the whole thread. To me, it seems this could as well have been posted in development, as you seem to know what you are doing and are, in fact, developing. however Q&A is not wrong. I hope you find someone able to help.
yes i agree, thats why im encouraging him to post this on Q&A since he started his thread with [Q]?.. and he knows what hes doing.. this would be a nice MOD if he posts this in right sections..

:good:
 
  • Like
Reactions: george.profenza

auni

Senior Member
Nov 26, 2011
956
1,879
0
Dhaka
Thanks again! Shamefully n00b question: how do I delete this thread ?
(Edit/Delete seems to only do Edit, unless I'm missing something).
repost it on Q&A.. delete this thread.. just copy and paste on what you typed.. like edit ur post and copy/paste..;)



sent from my C6603 using xda app-developers app hit THANKS if Helped you
only mods can delete threads, and a mod could also just have migrated the whole thread. To me, it seems this could as well have been posted in development, as you seem to know what you are doing and are, in fact, developing. however Q&A is not wrong. I hope you find someone able to help.

There's no need to re post the same topic again in the Q/A section. OP can move this thread easily. Just hit Triangle icon at the top right and report.

Type Q/A and select "Thread Move or Maintenance".


@OP: Do not want to be Rude, but being a noob should not be an excuse. Everybody was noob once. Just read the rules once and you are good to go for the rest of the time u r going to spend in this forum. :good:
 
  • Like
Reactions: george.profenza