From 3b91f49ff5c7b497bb9ec32fb6811d54a5f15d36 Mon Sep 17 00:00:00 2001 From: brianjjones Date: Mon, 3 Dec 2012 17:27:22 -0800 Subject: [PATCH] Adding needed INI files --- CMakeLists.txt | 3 + ini/mmfw_camcorder.ini | 108 +++++++++++ ini/mmfw_camcorder_dev_video_pri.ini | 169 ++++++++++++++++++ ini/mmfw_camcorder_dev_video_sec.ini | 169 ++++++++++++++++++ packaging/org.tizen.camera-app.spec | 2 +- tizen2.0.conf | 337 +++++++++++++++++++++++++++++++++++ 6 files changed, 787 insertions(+), 1 deletion(-) create mode 100644 ini/mmfw_camcorder.ini create mode 100644 ini/mmfw_camcorder_dev_video_pri.ini create mode 100644 ini/mmfw_camcorder_dev_video_sec.ini create mode 100644 tizen2.0.conf diff --git a/CMakeLists.txt b/CMakeLists.txt index d8ba09e..b63cc1a 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,6 +140,9 @@ ENDFOREACH(file_name) # install manifest file & icon INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.camera-app.xml DESTINATION /opt/share/packages/) INSTALL(FILES ${CMAKE_SOURCE_DIR}/org.tizen.camera-app.png DESTINATION /opt/share/icons/default/small/) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/ini/mmfw_camcorder.ini DESTINATION /usr/etc) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/ini/mmfw_camcorder_dev_video_pri.ini DESTINATION /usr/etc) +INSTALL(FILES ${CMAKE_SOURCE_DIR}/ini/mmfw_camcorder_dev_video_sec.ini DESTINATION /usr/etc) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/sounds DESTINATION ${RESDIR}) INSTALL(DIRECTORY ${CMAKE_SOURCE_DIR}/images DESTINATION ${RESDIR}) diff --git a/ini/mmfw_camcorder.ini b/ini/mmfw_camcorder.ini new file mode 100644 index 0000000..9153b29 --- /dev/null +++ b/ini/mmfw_camcorder.ini @@ -0,0 +1,108 @@ +; < Camera/Camcorder Configure Main INI file > +; +; - SDK Camera +; +; - Header List - +; 1. General +; 2. VideoInput +; 3. AudioInput +; 4. VideoOutput +; 5. Capture +; 6. Record +; 7. VideoEncoder +; 8. AudioEncoder +; 9. ImageEncoder +; 10. Mux +; +; - Note - +; If you want to add a new header, +; add a new enum value to "enum ConfigureCategoryMain" +; and new default table for it in mm_camcorder_configure.c/.h +; + +[General] +SyncStateChange = 1 +;GSTInitOption = --gst-enable-tiny-registry --gst-disable-segtrap || NOT-USE-DEFAULT_VALUE +;GSTInitOption = --gst-debug=3,avsysvideosrc:4 || NOT-USE-DEFAULT_VALUE +ModelName = TIZEN_SDK +;DisabledAttributes = camera-optical-zoom camera-af-touch-x camera-af-touch-y camera-exposure-value camera-f-number camera-shutter-speed camera-hold-af-after-capturing filter-flip filter-hue display-src-x display-src-y display-src-width display-src-height tag-image-description strobe-control strobe-capabilities strobe-mode detect-mode detect-number detect-focus-select detect-select-number detect-status || NO_DEFAULT_VALUE + +[VideoInput] +UseConfCtrl = 1 +ConfCtrlFile0 = mmfw_camcorder_dev_video_pri.ini +ConfCtrlFile1 = mmfw_camcorder_dev_video_sec.ini +;VideosrcElement = avsysvideosrc | 3,0 | do-timestamp,1 | use-pad-alloc,1 | num-alloc-buf,5 +VideosrcElement = v4l2src | 1,1 | do-timestamp,1 | device,/dev/video0 +;VideosrcElement = videotestsrc | 0,0 +UseVideoscale = 0 +VideoscaleElement = videoscale | 3,0 | width,640 | height,480 | method,1 +UseZeroCopyFormat = 0 + +[AudioInput] +AudiosrcElement = avsysaudiosrc | 2,0 | do-timestamp,1 | slave-method,3 +AudiomodemsrcElement = audiotestsrc | 2,0 | do-timestamp,1 | is-live,1 + +[VideoOutput] +; DisplayDevice +;;; 0: MAIN LCD, 1: SUB LCD, 2:TV OUT, 3: MAIN LCD and SUB LCD, 4: MAIN LCD and TV OUT +DisplayDevice = 0 || 0 +; Videosink +;;; 0: X surface, 1: Evas surface, 2: GL surface, 3: NULL surface +Videosink = 0,1,3 || 0 +VideosinkElementX = ximagesink | 4,0 | force-aspect-ratio,1 | handle-events,1 | qos,0 | sync,0 +;VideosinkElementX = xvimagesink | 5,0 | draw-borders,0 | force-aspect-ratio,1 | enable-last-buffer,0 | qos,0 | sync,0 +VideosinkElementEvas = evasimagesink | 0,0 +;VideosinkElementGL = glimagesink | 0,0 +VideosinkElementNull = fakesink | 2,0 | qos,0 | sync,0 +UseVideoscale = 0 +VideoscaleElement = videoscale | 1,0 | method,1 + +[VideoEncoder] +H263 = emulenc_h263 | 0,0 +MPEG4 = emulenc_mpeg4 | 0,0 +THEORA = theoraenc | 1,0 | num-bufs,4 + +[AudioEncoder] +AMR = amrnbenc | 0,0 +WAVE = wavenc | 0,0 +VORBIS = vorbisenc | 0,0 + +[ImageEncoder] +JPEG = jpegenc | 0,0 +PNG = pngenc | 0,0 + +[Capture] +UseEncodebin = 1 +UseCaptureMode = 0 +VideoscaleElement = videoscale | 1,0 | method,1 + +[Record] +UseAudioEncoderQueue = 1 +UseVideoEncoderQueue = 1 +VideoProfile = 0 +VideoAutoAudioConvert = 1 +VideoAutoAudioResample = 0 +VideoAutoColorSpace = 0 +AudioProfile = 1 +AudioAutoAudioConvert = 1 +AudioAutoAudioResample = 0 +AudioAutoColorSpace = 0 +ImageProfile = 2 +ImageAutoAudioConvert = 0 +ImageAutoAudioResample = 0 +ImageAutoColorSpace = 0 +RecordsinkElement = filesink | 1,0 | async,0 +UseNoiseSuppressor = 0 +DropVideoFrame = 0 +PassFirstVideoFrame = 0 + +[Mux] +;3GP = ffmux_3gp_ext | 0,0 +3GP = ffmux_3gp | 0,0 +;AMR = ffmux_amr_ext | 0,0 +AMR = ffmux_amr | 0,0 +;MP4 = ffmux_mp4_ext | 0,0 +MP4 = ffmux_mp4 | 0,0 +OGG = oggmux | 0,0 +WAV = wavenc | 0,0 + diff --git a/ini/mmfw_camcorder_dev_video_pri.ini b/ini/mmfw_camcorder_dev_video_pri.ini new file mode 100644 index 0000000..bd5a375 --- /dev/null +++ b/ini/mmfw_camcorder_dev_video_pri.ini @@ -0,0 +1,169 @@ +; < Camera/Camcorder Configure Control INI file > +; +; - SDK Camera. Mega Camera. +; +; - Header List - +; 1. Camera +; 2. Strobe +; 3. Effect +; 4. Photograph +; 5. Capture +; 6. Detect +; +; - Note - +; If you want to add a new header, +; add a new enum value to "enum ConfigureCategoryControl" +; and new default table for it in mm_camcorder_configure.c/.h +; + +[Camera] +; Input index - real setting value +;;; 0:PRIMARY_CAMERA, 1:SECONDARY_CAMERA +; Input index - MSL value(convert array index) +;;; -1:NONE, 0:CAMERA0, 1:CAMERA1 +InputIndex = 0,-255 || 0 +DeviceName = virtual driver +PreviewResolution = 160,120 | 176,144 | 320,240 | 352,288 | 640,480 || 640,480 +CaptureResolution = 160,120 | 176,144 | 320,240 | 352,288 | 640,480 || 640,480 +FPS = 18 || 18 +; PictureForamt - MSL value +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED +PictureFormat = 4,7,8 || 4 +Overlay = 0,1 || 1 +; Recommand preview format for capture +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY +RecommendPreviewFormatCapture = 4 +; Recommand preview format for record +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY +RecommendPreviewFormatRecord = 4 + + +[Strobe] +; Strobe control - real setting value +;;; 1:OFF, 2:ON, 3:AUTO, 4:MOVIE_ON +; Strobe control - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO, 3:MOVIE_ON +;StrobeControl = 1,2,3,4 || 3 +;StrobeCapabilities - Not support +;StrobeMode - Not support +;StrobeStatus - Not support +;StrobeEV - Not support + + +[Effect] +Brightness = 1,20 || 10 +Contrast = 1,20 || 10 +Saturation = 1,20 || 10 +Sharpness = 1,20 || 10 + +; White balance - real setting value +;;; 0:AUTO, 1:INCANDESCENT, 2:FLUORESCENT_HIGH, 3:FLUORESCENT_LOW, 4:DAYLIGHT, 5:CLOUDY, 6:SHADE, 7:HORIZON, 8:CUSTOM , 9:LED_LIGHT +; White balance - MSL value(convert array index) +;;; 0:NONE, 1:AUTO, 2:DAYLIGHT, 3:CLOUDY, 4:FLUOROSCENT, 5:INCANDESCENT, 6:SHADE, 7:HORIZON, 8:FLASH, 9:CUSTOM +;WhiteBalance = -255,1,4,5,3,2,6,7,-255,-255 || 1 +;WhiteBalance = -255,0,4,5,2,1,6,7,9,8 || 0 + +; Color tone - real setting value +;;; 0:NONE, 1:SEPIA, 2:ANTIQUE, 3:NEGATIVE, 4:EMBOSS, 5:GRAY, 6:OUTLINE, 7:SOLARIZATION +; Color tone - MSL value(convert array index) +;;; 0:NONE, 1:MONO, 2:SEPIA, 3:NEGATIVE, 4:BLUE, 5:GREEN, 6:AQUA, 7:VIOLET, 8:ORANGE, 9:GRAY, 10:REC, +;;; 11:ANTIQUE, 12:WARM, 13:PINK, 14:YELLOW, 15:PURPLE, 16:EMBOSS, 17:OUTLINE, 18:SOLARIZATION_1, 19:SOLARIZATION_2, 20:SOLARIZATION_3, +;;; 21:SOLARIZATION_4, 22:SKETCH_1, 23:SKETCH_2, 24:SKETCH_3, 25:SKETCH_4 +;ColorTone = 1,-255,3,2,11,6,5,18,-255,-255,3,4,10,-255,-255,-255,-255,16,17,12,13,14,15,-255,-255,-255,-255 || 0 +;ColorTone = 0,-255,1,3,-255,-255,-255,-255,-255,5,-255,2,-255,-255,-255,-255,4,6,7,-255,-255,-255,-255,-255,-255,-255 || 0 +; Flip - real setting value +;;; 0:NONE, 1:VERTICAL, 2:HORIZONTAL +; Flip - MSL value(convert array index) +;;; 0:HORIZONTAL, 1:VERTICAL, 2:NONE +;Flip = 2,1,0 || 0 + +; Wide Dynamic Range - real setting value +;;; 1:OFF, 2:ON, 3:AUTO +; Wide Dynamic Range - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO +;WDR = 1,2,3 || 3 + +; Part color mode - real setting value +;;; 0:OFF, 1:SWAP, 2:ACCENT +; Part color mode - MSL value(convert array index) +;;; 0:OFF, 1:SWAP, 2:ACCENT +;PartColorMode = 0,1,2 || 0 + +; Part color - real setting value +;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3, +;;; 11:GREEN_4, 12:COBALT, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY +; Part color - MSL value(convert array index) +;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3, +;;; 11:GREEN_4, 12:COBALT_BLUE, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY +;PartColor = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 || 0 + + +[Photograph] +;LensInit = 0,1 || 0 +;DigitalZoom = 10,30 || 10 +;OpticalZoom - Not support + +; Focus mode - real setting value +;;; Not Support, no need to convert +; Focus mode - MSL value(convert array index) +;;; 0:NONE, 1:PAN, 2:AUTO, 3:MANUAL, 4:TOUCH_AUTO, 5:CONTINUOUS +;FocusMode = 0,2,0,1,3,4 || 3 + +; Auto focus type - real setting value +;;; 0:NORMAL, 1:MACRO, 2:FULL +; Auto focus - MSL value(convert array index) +;;; 0:NONE, 1:NORMAL, 2:MACRO, 3:FULL +;AFType = -255,0,1,-255 || 0 + +; Auto exposure type - real setting value +;;; 1,ALL 2,CENTER 3,SPOT +; Auto exposure mode - MSL value(convert array index) +;;; 0,OFF 1,ALL 2,CENTER1 3,CENTER2 4,CENTER3 5,SPOT1 6,SPOT2 7,CUSTOM1 8,CUSTOM2 +;AEType = -255,1,2,-255,-255,3,-255,-255,-255 || 1 + +;ExposureValue = 1,9 || 5 +;FNumber - Not support +;ShutterSpeed - Not support + +; ISO - real setting value +;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600(Not Supported), 7:3200(Not Supported) +; ISO - MSL value(convert array index) +;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600, 7:3200 +;ISO = 0,1,2,3,4,5,-255,-255 || 0 + +; Program mode - real setting value +;;; 0:NONE, 1:FALL_COLOR, 2:DUSK_N_DAWN, 3:CANDLE_LIGHT, 4:BEACH_SNOW, 5:BACKLIGHT, 6:LANDSCAPE, 7:NIGHT_SCENE, 8:PORTRAIT, 9:SPORTS, 10:INDOOR, +;;; 11:FIREWORK, 12:TEXT, 13:SHOW_WINDOW +; Program mode - MSL value(convert array index) +;;; 0:NORMAL, 1:PORTRAIT, 2:LANDSCAPE, 3:SPORTS, 4:PARTY_N_INDOOR, 5:BEACH_N_INDOOR, 6:SUNSET, 7:DUSK_N_DAWN, 8:FALL_COLOR, 9:NIGHT_SCENE, +;;; 10:FIREWORK, 11:TEXT, 12:SHOW_WINDOW, 13:CANDLE_LIGHT, 14:BACKLIGHT +;ProgramMode = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 || 1 +;ProgramMode = 0,8,6,9,10,4,-255,2,1,7,11,12,13,3,5 || 0 + +; Anti-handshake - real setting value +;;; 0:OFF, 1:Capture, 2:Movie +; Anti-handshake - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO, 3:MOVIE_ON +;AntiHandshake = 0,1,-255,2 || 0 + + +[Capture] +; Output mode +;;; No need to convert +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED +OutputMode = 4,7,8,13 || 13 +JpegQuality = 0,100 || 50 +MultishotNumber = 1,255 || 1 +SensorEncodedCapture = 0 + + +[Detect] +; Detect mode +;;; No need to convert +;;; 0:OFF, 1:ON +;DetectMode = 0,1 || 0 +;DetectNumber - Not support +;DetectFocusSelect - Not support +;DetectSelectNumber - Not support +;DetectStatus - Not support + diff --git a/ini/mmfw_camcorder_dev_video_sec.ini b/ini/mmfw_camcorder_dev_video_sec.ini new file mode 100644 index 0000000..712fda9 --- /dev/null +++ b/ini/mmfw_camcorder_dev_video_sec.ini @@ -0,0 +1,169 @@ +; < Camera/Camcorder Configure Control INI file > +; +; - SDK Camera - VGA Camera +; +; - Header List - +; 1. Camera +; 2. Strobe +; 3. Effect +; 4. Photograph +; 5. Capture +; 6. Detect +; +; - Note - +; If you want to add a new header, +; add a new enum value to "enum ConfigureCategoryControl" +; and new default table for it in mm_camcorder_configure.c/.h +; + +[Camera] +; Input index - real setting value +;;; 0:PRIMARY_CAMERA, 1:SECONDARY_CAMERA +; Input index - MSL value(convert array index) +;;; -1:NONE, 0:CAMERA0, 1:CAMERA1 +InputIndex = -255,0 || 0 +DeviceName = virtual driver +PreviewResolution = 160,120 | 176,144 | 320,240 | 352,288 | 640,480 || 640,480 +CaptureResolution = 160,120 | 176,144 | 320,240 | 352,288 | 640,480 || 640,480 +FPS = 30 || 30 +; PictureForamt - MSL value +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED +PictureFormat = 4,7,8 || 4 +Overlay = 0,1 || 1 +; Recommand preview format for capture +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY +RecommendPreviewFormatCapture = 7 +; Recommand preview format for record +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED, 14:INTERLEAVED_JPEG_UYVY +RecommendPreviewFormatRecord = 7 + + +[Strobe] +; Strobe control - real setting value +;;; 1:OFF, 2:ON, 3:AUTO, 4:MOVIE_ON +; Strobe control - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO, 3:MOVIE_ON +;StrobeControl = 1,2,3,4 || 3 +;StrobeCapabilities - Not support +;StrobeMode - Not support +;StrobeStatus - Not support +;StrobeEV - Not support + + +[Effect] +Brightness = 1,20 || 10 +Contrast = 1,20 || 10 +Saturation = 1,20 || 10 +Sharpness = 1,20 || 10 + +; White balance - real setting value +;;; 0:AUTO, 1:INCANDESCENT, 2:FLUORESCENT_HIGH, 3:FLUORESCENT_LOW, 4:DAYLIGHT, 5:CLOUDY, 6:SHADE, 7:HORIZON, 8:CUSTOM , 9:LED_LIGHT +; White balance - MSL value(convert array index) +;;; 0:NONE, 1:AUTO, 2:DAYLIGHT, 3:CLOUDY, 4:FLUOROSCENT, 5:INCANDESCENT, 6:SHADE, 7:HORIZON, 8:FLASH, 9:CUSTOM +;WhiteBalance = -255,1,4,5,3,2,6,7,-255,-255 || 1 +;WhiteBalance = -255,0,4,5,2,1,6,7,9,8 || 0 + +; Color tone - real setting value +;;; 0:NONE, 1:SEPIA, 2:ANTIQUE, 3:NEGATIVE, 4:EMBOSS, 5:GRAY, 6:OUTLINE, 7:SOLARIZATION +; Color tone - MSL value(convert array index) +;;; 0:NONE, 1:MONO, 2:SEPIA, 3:NEGATIVE, 4:BLUE, 5:GREEN, 6:AQUA, 7:VIOLET, 8:ORANGE, 9:GRAY, 10:REC, +;;; 11:ANTIQUE, 12:WARM, 13:PINK, 14:YELLOW, 15:PURPLE, 16:EMBOSS, 17:OUTLINE, 18:SOLARIZATION_1, 19:SOLARIZATION_2, 20:SOLARIZATION_3, +;;; 21:SOLARIZATION_4, 22:SKETCH_1, 23:SKETCH_2, 24:SKETCH_3, 25:SKETCH_4 +;ColorTone = 1,-255,3,2,11,6,5,18,-255,-255,3,4,10,-255,-255,-255,-255,16,17,12,13,14,15,-255,-255,-255,-255 || 0 +;ColorTone = 0,-255,1,3,-255,-255,-255,-255,-255,5,-255,2,-255,-255,-255,-255,4,6,7,-255,-255,-255,-255,-255,-255,-255 || 0 +; Flip - real setting value +;;; 0:NONE, 1:VERTICAL, 2:HORIZONTAL +; Flip - MSL value(convert array index) +;;; 0:HORIZONTAL, 1:VERTICAL, 2:NONE +;Flip = 2,1,0 || 0 + +; Wide Dynamic Range - real setting value +;;; 1:OFF, 2:ON, 3:AUTO +; Wide Dynamic Range - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO +;WDR = 1,2,3 || 3 + +; Part color mode - real setting value +;;; 0:OFF, 1:SWAP, 2:ACCENT +; Part color mode - MSL value(convert array index) +;;; 0:OFF, 1:SWAP, 2:ACCENT +;PartColorMode = 0,1,2 || 0 + +; Part color - real setting value +;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3, +;;; 11:GREEN_4, 12:COBALT, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY +; Part color - MSL value(convert array index) +;;; 0:VIOLET, 1:PURPLE, 2:MAGENTA_1, 3:MAGENTA_2, 4:RED_1, 5:RED_2, 6:BROWN, 7:YELLOW, 8:GREEN_1, 9:GREEN_2, 10:GREEN_3, +;;; 11:GREEN_4, 12:COBALT_BLUE, 13:CYAN, 14:BLUE_1, 15:BLUE_2, 16:GRAY +;PartColor = 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16 || 0 + + +[Photograph] +;LensInit = 0,1 || 0 +;DigitalZoom = 10,30 || 10 +;OpticalZoom - Not support + +; Focus mode - real setting value +;;; Not Support, no need to convert +; Focus mode - MSL value(convert array index) +;;; 0:NONE, 1:PAN, 2:AUTO, 3:MANUAL, 4:TOUCH_AUTO, 5:CONTINUOUS +;FocusMode = 0,2,0,1,3,4 || 3 + +; Auto focus type - real setting value +;;; 0:NORMAL, 1:MACRO, 2:FULL +; Auto focus - MSL value(convert array index) +;;; 0:NONE, 1:NORMAL, 2:MACRO, 3:FULL +;AFType = -255,0,1,-255 || 0 + +; Auto exposure type - real setting value +;;; 1,ALL 2,CENTER 3,SPOT +; Auto exposure mode - MSL value(convert array index) +;;; 0,OFF 1,ALL 2,CENTER1 3,CENTER2 4,CENTER3 5,SPOT1 6,SPOT2 7,CUSTOM1 8,CUSTOM2 +;AEType = -255,1,2,-255,-255,3,-255,-255,-255 || 1 + +;ExposureValue = 1,9 || 5 +;FNumber - Not support +;ShutterSpeed - Not support + +; ISO - real setting value +;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600(Not Supported), 7:3200(Not Supported) +; ISO - MSL value(convert array index) +;;; 0:AUTO, 1:50, 2:100, 3:200, 4:400, 5:800, 6:1600, 7:3200 +;ISO = 0,1,2,3,4,5,-255,-255 || 0 + +; Program mode - real setting value +;;; 0:NONE, 1:FALL_COLOR, 2:DUSK_N_DAWN, 3:CANDLE_LIGHT, 4:BEACH_SNOW, 5:BACKLIGHT, 6:LANDSCAPE, 7:NIGHT_SCENE, 8:PORTRAIT, 9:SPORTS, 10:INDOOR, +;;; 11:FIREWORK, 12:TEXT, 13:SHOW_WINDOW +; Program mode - MSL value(convert array index) +;;; 0:NORMAL, 1:PORTRAIT, 2:LANDSCAPE, 3:SPORTS, 4:PARTY_N_INDOOR, 5:BEACH_N_INDOOR, 6:SUNSET, 7:DUSK_N_DAWN, 8:FALL_COLOR, 9:NIGHT_SCENE, +;;; 10:FIREWORK, 11:TEXT, 12:SHOW_WINDOW, 13:CANDLE_LIGHT, 14:BACKLIGHT +;ProgramMode = 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 || 1 +;ProgramMode = 0,8,6,9,10,4,-255,2,1,7,11,12,13,3,5 || 0 + +; Anti-handshake - real setting value +;;; 0:OFF, 1:Capture, 2:Movie +; Anti-handshake - MSL value(convert array index) +;;; 0:OFF, 1:ON, 2:AUTO, 3:MOVIE_ON +;AntiHandshake = 0,1,-255,2 || 0 + + +[Capture] +; Output mode +;;; No need to convert +;;; 0:NV12, 1:NV12T, 2:NV16, 3:NV21, 4:YUYV, 5:UYVY, 6:422P, 7:I420, 8:YV12, 9:RGB565, 10:RGB888, 11:RGBA, 12:ARGB, 13:ENCODED +OutputMode = 4,7,8,13 || 13 +JpegQuality = 0,100 || 50 +MultishotNumber = 1,255 || 1 +SensorEncodedCapture = 0 + + +[Detect] +; Detect mode +;;; No need to convert +;;; 0:OFF, 1:ON +;DetectMode = 0,1 || 0 +;DetectNumber - Not support +;DetectFocusSelect - Not support +;DetectSelectNumber - Not support +;DetectStatus - Not support + diff --git a/packaging/org.tizen.camera-app.spec b/packaging/org.tizen.camera-app.spec index 3363e35..0285d1c 100644 --- a/packaging/org.tizen.camera-app.spec +++ b/packaging/org.tizen.camera-app.spec @@ -69,4 +69,4 @@ chown 5000:5000 /opt/apps/org.tizen.camera-app/data/.camera.ini %{_appdir}/org.tizen.camera-app/bin/camera %{_optdir}/share/packages/org.tizen.camera-app.xml %{_appdir}/org.tizen.camera-app/data/.camera.ini - +/usr/etc/*.ini diff --git a/tizen2.0.conf b/tizen2.0.conf new file mode 100644 index 0000000..16c8a61 --- /dev/null +++ b/tizen2.0.conf @@ -0,0 +1,337 @@ +Patterntype: rpm-md comps +Release: slp.. +Support: build build-compare +##################################### +Substitute: gettext gettext-tools +Ignore: pkg-config +##################################### + +%ifarch armv7el +Substitute: libncurses ncurses-libs +Substitute: libncurses-devel ncurses-devel +Preinstall: nss +Ignore: bash:libncurses +%endif + +Support: util-linux-ng +VMinstall: util-linux-ng libblkid libuuid + +ExportFilter: \.armv7hl\.rpm$ armv8el +ExportFilter: \.armv7thl*\.rpm$ armv8el +ExportFilter: \.armv7tnh*\.rpm$ armv8el +ExportFilter: \.armv7h*\.rpm$ armv8el +ExportFilter: \.armv7nh*\.rpm$ armv8el +ExportFilter: \.x86_64\.rpm$ x86_64 +ExportFilter: \.i586\.rpm$ i586 +ExportFilter: \.armv5el\.rpm$ armv5el +ExportFilter: \.armv5tel\.rpm$ armv5el +ExportFilter: \.armv6el\.rpm$ armv6el +ExportFilter: \.armv6l\.rpm$ armv6el +ExportFilter: \.armv6vl\.rpm$ armv6el +ExportFilter: \.armv7el\.rpm$ armv7el +ExportFilter: \.armv7l\.rpm$ armv7el +ExportFilter: \.armv7vl\.rpm$ armv7el +# filter out packages of cross setup on ia32 +ExportFilter: .*vanish\.rpm +PublishFilter: .*vanish\.rpm +ExportFilter: .*dontuse\.rpm +PublishFilter: .*dontuse\.rpm + +# +# ARM Start +# +%ifarch %arm +# arm land +Hostarch: x86_64 +%define cross_5 1 +%define cross_7 1 +%define native 1 + +%define cross_7h 1 + +%ifarch armv8el +Changetarget: armv7hl-tizen-linux +%define _gnu gnueabi +%if %{cross_7h} +Prefer: cross-armv7hl-binutils-accel-armv7hl +Prefer: cross-armv7hl-gcc-accel-armv7hl +%define speedcommon 1 +%define speedbash 1 +%define speedbinutils 1 +%define speedgcc 1 +%define native 0 +%define speedtools 1 +Support: cross-armv7tnhl-platformfile +%endif +%endif + + +######################## +# preselect rpm targets +# more ifs for _repository possible as needed +######################### +%ifarch armv5el +Changetarget: armv5tel-tizen-linux +%define _gnu gnueabi +%if %{cross_5} +%define speedcommon 1 +%define speedbash 1 +%define speedbinutils 1 +%define speedgcc 1 +%define native 0 +%endif +%endif + +%ifarch armv6el +Changetarget: armv6l-tizen-linux +%define _gnu gnueabi +%endif + +%ifarch armv7el +Changetarget: armv7l-tizen-linux +%define _gnu gnueabi +%if %{cross_7} +#Support: cross-armv7tnhl-platformfile +#Support: cross-armv7l-platformfile +Prefer: cross-armv7l-binutils-accel-armv7l +Prefer: cross-armv7l-gcc-accel-armv7l +%define speedcommon 1 +%define speedbash 1 +%define speedbinutils 1 +%define speedgcc 1 +%define native 0 +%define speedtools 1 +%endif + +%endif + +%if %speedtools +Support: patch-x86-arm findutils-x86-arm gawk-x86-arm fdupes-x86-arm +Preinstall: libfile-x86-arm +Preinstall: elfutils-libelf-x86-arm +Preinstall: nss-softokn-freebl-x86-arm +Preinstall: nss-x86-arm +Preinstall: nspr-x86-arm +Preinstall: libgcc-x86-arm +Preinstall: libacl-x86-arm +Preinstall: libattr-x86-arm +Preinstall: libcap-x86-arm +Preinstall: liblua-x86-arm +Preinstall: popt-x86-arm +Preinstall: xz-libs-x86-arm +Preinstall: zlib-x86-arm +Preinstall: file +Preinstall: sqlite-x86-arm +Preinstall: mpfr-x86-arm +Preinstall: gmp-x86-arm +Preinstall: mpc-x86-arm +Preinstall: bzip2-libs-x86-arm +Preinstall: rpm-x86-arm +Preinstall: rpm-libs-x86-arm +Preinstall: rpm-build-x86-arm + +Required: tar-x86-arm +Required: sed-x86-arm +Required: elfutils-x86-arm +Required: elfutils-libs-x86-arm +Required: elfutils-libelf-x86-arm +Required: diffutils-x86-arm +Required: gzip-x86-arm +Required: libgcc-x86-arm +Required: libacl-x86-arm +Required: libattr-x86-arm +Required: coreutils +Required: coreutils-x86-arm +Required: libcap-x86-arm +Required: liblua-x86-arm +Required: popt-x86-arm +Required: xz-libs-x86-arm +Required: zlib-x86-arm +Required: file +Required: file-x86-arm +Required: make +Required: make-x86-arm +Required: libfile-x86-arm +Required: sqlite-x86-arm +Required: rpm-x86-arm +Required: rpm-libs-x86-arm +Required: rpm-build-x86-arm + +Runscripts: rpm-x86-arm +Runscripts: rpm-libs-x86-arm +Runscripts: rpm-build-x86-arm + +Support: !rpmlint-mini +Support: !rpmlint-mini-x86-arm +Prefer: python-libs +%endif + + +%if %speedcommon +# cross-compilation/speedup +Preinstall: tizen-accelerator eglibc-x86-arm +Runscripts: tizen-accelerator +Required: tizen-accelerator +%endif + +%if %speedbash +# bash +Preinstall: ncurses-libs-x86-arm +Preinstall: bash-x86-arm +Runscripts: bash-x86-arm +%endif + +%if %speedbinutils +Required: cross-arm-binutils-accel +%endif + +%if %speedgcc +Required: cross-arm-gcc-accel +%endif + +Preinstall: rpm +Preinstall: rpm-libs +Required: rpm +Prefer: rpm-libs +Prefer: rpm + +# now i586 land +%else + + + +Ignore: ncurses-libs-x86 libncurses-x86 +Preinstall: rpm rpm-libs +Required: rpm +Substitute: simulator-opengl mesa-libEGL +Substitute: simulator-opengl-devel mesa-libEGL-devel +Prefer: mesa-libEGL mesa-libEGL-devel + +%endif + +# +# ARM End +# + +Preinstall: setup filesystem + +Preinstall: bash bzip2 coreutils diffutils liblua +Preinstall: eglibc eglibc-common libacl libattr +Preinstall: libgcc libcap +Preinstall: popt readline sed tar zlib sqlite + +Preinstall: ncurses-libs +Preinstall: elfutils-libelf bzip2-libs libstdc++ setup libfile +Preinstall: xz-libs +Preinstall: nss nspr +Preinstall: nss-softokn-freebl + +Runscripts: setup +VMinstall: perl libblkid e2fsprogs-libs libuuid perl-libs grep libpcre +Preinstall: +Required: binutils gcc eglibc rpm-build libtool +Support: cpio gcc-c++ perl-libs perl findutils +Support: file findutils zlib bzip2 +Support: gzip +Support: ncurses-libs +Support: net-tools +Support: make patch sed gawk tar grep coreutils pkgconfig autoconf automake +Support: m4 libfile tzdata tizen-release +Support: kernel-headers eglibc-headers +Support: xz-lzma-compat + +Keep: binutils cpp file findutils gawk gcc gcc-c++ +Keep: gdbm gzip libada libunwind eglibc-devel libpcre xz-lzma-compat +Keep: make gmp libcap groff cpio +Keep: patch rpm-build nss nspr elfutils python grep libgcc gcc-c++ +Keep: eglibc-headers perl-libs +Keep: pkgconfig glib2 tizen-rpm-config +Keep: xz-lzma-compat +Keep: mpc mpfr tar sed +Keep: cloog cloog-ppl ppl +Keep: nss-softokn-freebl +Keep: setup + +# SLP +Ignore: iso-codes:xml-common + +Macros: +%tizen_version 1.0 +%tizen 1.0 +%vendor tizen +%_vendor tizen +%_default_patch_fuzz 2 + + + +# python main version +%py_ver %(echo `python -c "import sys; print sys.version[:3]"`) + +# directories +%py_prefix %(echo `python -c "import sys; print sys.prefix"`) +%py_libdir %{py_prefix}/lib/python%{py_ver} +%py_incdir /usr/include/python%{py_ver} +%py_sitedir %{py_libdir}/site-packages +%py_dyndir %{py_libdir}/lib-dynload + +# pure python modules compilation +%py_comp python -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])" +%py_ocomp python -O -c "import compileall; import sys; compileall.compile_dir(sys.argv[1], ddir=sys.argv[1][len('$RPM_BUILD_ROOT'):])" + +%ext_info .gz +%ext_man .gz + +%info_add(:-:) test -x /sbin/install-info -a -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \ +%{nil} + +%info_del(:-:) test -x /sbin/install-info -a ! -f %{?2}%{?!2:%{_infodir}}/%{1}%ext_info && /sbin/install-info --quiet --delete --info-dir=%{?2}%{?!2:%{_infodir}} %{?2}%{?!2:%{_infodir}}/%{1}%ext_info \ +%{nil} + +%lang_package \ +%package locale \ +Summary: Translations and Locale for package %{name}\ +Group: Translations\ +AutoReqProv: 0\ +%description locale\ +This package provides translations for package %{name}.\ +%files locale -f %{name}.lang\ +%defattr(-,root,root,-)\ +%{nil} + + +%docs_package \ +%package docs \ +Summary: Documentation for package %{name}\ +Group: Documentation\ +AutoReqProv: 0\ +%description docs\ +This package provides documentation for package %{name}.\ +%files docs -f documentation.list\ +%defattr(-,root,root,-)\ +%{nil} + +%devel_package \ +%package devel \ +Summary: Development files for package %{name}\ +Group: Development\ +%description devel\ +This package provides header files and other developer releated files for package %{name}.\ +%files devel \ +%{_includedir}/*\ +%{_libdir}/pkgconfig/*.pc\ +%{_libdir}/*.so\ +%{nil} + + +%_smp_mflags -j4 + + +%remove_docs \ + rm -rf %{?buildroot:%{buildroot}}%{_infodir} \ + rm -rf %{?buildroot:%{buildroot}}%{_defaultdocdir} \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/doc/%{name} \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/gtk-doc \ + rm -rf %{?buildroot:%{buildroot}}%{_datadir}/man \ + find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]" | xargs rm -f -- \ + find %{?buildroot:%{buildroot}} -regex ".*/man/../man./.*\.[0-9]" | xargs rm -f -- \ + find %{?buildroot:%{buildroot}} -regex ".*/man/man./.*\.[0-9]pm" | xargs rm -f -- -- 2.7.4