OSDN Git Service

android-x86/system-media.git
11 years agocamera_metadata: Fix inconsistencies in digital zoom reporting
Igor Murashkin [Tue, 7 May 2013 17:00:46 +0000 (10:00 -0700)]
camera_metadata: Fix inconsistencies in digital zoom reporting

Bug: 8840802
Change-Id: I195aa3b3ea8a60a7f737ec9abcae676a2d6c1e4f

11 years agocamera_metadata: add validation function to ensure structural sanity
Igor Murashkin [Wed, 1 May 2013 00:21:54 +0000 (17:21 -0700)]
camera_metadata: add validation function to ensure structural sanity

This is particularly useful when accepting copied metadata from another process,
since it could put whatever it want into the binder parcel.

Bug: 8713951
Change-Id: I72b25b2bf96230eb995bb32e3bbd68de16e122cd

11 years agocamera_metadata: add new android.led.transmit and availableLeds fields
Igor Murashkin [Tue, 23 Apr 2013 21:31:02 +0000 (14:31 -0700)]
camera_metadata: add new android.led.transmit and availableLeds fields

Bug: 8554573
Change-Id: Iaa93deeab5ee228bf7e01c58d80f1cdb5b2bb79c

11 years agoAdd liblog
Ying Wang [Wed, 10 Apr 2013 05:04:38 +0000 (22:04 -0700)]
Add liblog

Bug: 8580410
Change-Id: I135d98df6283f2c8cfc94817b2d09d68cf0063c0

11 years agocamera_metadata: Mark enum snprint with non-hidden visibility
Igor Murashkin [Tue, 2 Apr 2013 22:19:40 +0000 (15:19 -0700)]
camera_metadata: Mark enum snprint with non-hidden visibility

Since by default our build system assumes everything has hidden visibility,
the symbols for the enum snprint function were not being exported.

Change-Id: I6c0b36067052aceca9ccd56a1b073fd96b35f6ef

11 years agoCamera: Metadata: Fix markdown error in Readme.md
Alex Ray [Wed, 27 Mar 2013 23:40:34 +0000 (16:40 -0700)]
Camera: Metadata: Fix markdown error in Readme.md

Protect filename that contains syntax-parsed "_" character.

Change-Id: I7688ba2e2fbf3172be46e7652fc1d228a5f474b4

11 years agoCamera: Metadata: give explicit 3A starting states
Alex Ray [Wed, 27 Mar 2013 23:26:41 +0000 (16:26 -0700)]
Camera: Metadata: give explicit 3A starting states

Change-Id: I9633393484525ee0e233be9a4835aeed4a075429

11 years agoMerge "Camera: Add trigger metadata entries." into jb-mr2-dev
Eino-Ville Talvala [Fri, 22 Mar 2013 00:20:16 +0000 (00:20 +0000)]
Merge "Camera: Add trigger metadata entries." into jb-mr2-dev

11 years agoCamera: Fix metadata generation on OS X.
Eino-Ville Talvala [Mon, 18 Mar 2013 16:43:57 +0000 (09:43 -0700)]
Camera: Fix metadata generation on OS X.

- readlink has no -f option.
- mktemp requires a template

Change-Id: I77e2fd6a664cda5edeeeb4d781ab5439d6c7c507

11 years agoCamera: Add trigger metadata entries.
Eino-Ville Talvala [Mon, 18 Mar 2013 16:42:48 +0000 (09:42 -0700)]
Camera: Add trigger metadata entries.

Camera HAL 3.0 signals triggers through the request settings metadata,
instead of through a separate trigger method.

Change-Id: I9ecfa3b300faed34af18c3e116d659f77a27da81

11 years agoFix make checkbuild on Mac: swab() already declared
Glenn Kasten [Wed, 13 Feb 2013 00:23:42 +0000 (16:23 -0800)]
Fix make checkbuild on Mac: swab() already declared

Change-Id: I76f55c4431c6e1fbca23cbcb43587b68f63ee07c

11 years agoAdd audio_route_reset_path()
Ravi Kumar Alamanda [Fri, 8 Feb 2013 15:41:07 +0000 (07:41 -0800)]
Add audio_route_reset_path()

Change-Id: I24905ef23f74673e1f97b591d7dcb04a54744f05

11 years agoam 721b107e: (-s ours) Camera: Fix ordering of boolean enums, types for curves.:...
Eino-Ville Talvala [Thu, 31 Jan 2013 02:59:41 +0000 (18:59 -0800)]
am 721b107e: (-s ours) Camera: Fix ordering of boolean enums, types for curves.: DO NOT MERGE

# Via Igor Murashkin
* commit '721b107e98cd61046fa137adbd8fe82eb1147e99':
  Camera: Fix ordering of boolean enums, types for curves.: DO NOT MERGE

11 years agoam 095e4663: (-s ours) Camera2: Docs - Add output_file option to metadata_parser_xml...
Igor Murashkin [Thu, 31 Jan 2013 02:59:41 +0000 (18:59 -0800)]
am 095e4663: (-s ours) Camera2: Docs - Add output_file option to metadata_parser_xml.py: DO NOT MERGE

# Via Igor Murashkin
* commit '095e4663d6062c7005a1aa49e652529c6c5db97e':
  Camera2: Docs - Add output_file option to metadata_parser_xml.py: DO NOT MERGE

11 years agoam 1653ad0e: (-s ours) Camera2: Docs - Fix tags to be displayed in the docs HTML...
Igor Murashkin [Thu, 31 Jan 2013 02:59:40 +0000 (18:59 -0800)]
am 1653ad0e: (-s ours) Camera2: Docs - Fix tags to be displayed in the docs HTML: DO NOT MERGE

# Via Igor Murashkin
* commit '1653ad0ee7565cc1bf0e67b5f0ca5fd51eab3edc':
  Camera2: Docs - Fix tags to be displayed in the docs HTML: DO NOT MERGE

11 years agoam 7d4f08e0: (-s ours) Camera: Docs XML - allow multiple kinds per section: DO NOT...
Igor Murashkin [Thu, 31 Jan 2013 02:59:40 +0000 (18:59 -0800)]
am 7d4f08e0: (-s ours) Camera: Docs XML - allow multiple kinds per section: DO NOT MERGE

# Via Igor Murashkin
* commit '7d4f08e081e18ef2f478fa94c54923d74a5d6ffd':
  Camera: Docs XML - allow multiple kinds per section: DO NOT MERGE

11 years agoam f15f1ec0: (-s ours) Update camera metadata tests to new enums: DO NOT MERGE
Eino-Ville Talvala [Thu, 31 Jan 2013 02:59:39 +0000 (18:59 -0800)]
am f15f1ec0: (-s ours) Update camera metadata tests to new enums: DO NOT MERGE

# Via Igor Murashkin
* commit 'f15f1ec0f4204d172b38ae57548df1a2a31d423c':
  Update camera metadata tests to new enums: DO NOT MERGE

11 years agoam ea88f67e: (-s ours) Camera2: Doc entries no longer have type=\'enum\', instead...
Igor Murashkin [Thu, 31 Jan 2013 02:59:38 +0000 (18:59 -0800)]
am ea88f67e: (-s ours) Camera2: Doc entries no longer have type=\'enum\', instead they use enum=\'true\': DO NOT MERGE

# Via Igor Murashkin
* commit 'ea88f67efcf79f613a1183c0ff2bdf3e1068c6f3':
  Camera2: Doc entries no longer have type='enum', instead they use enum='true': DO NOT MERGE

11 years agoam f559bd26: (-s ours) Camera2: Update generate scripts check for dependencies and...
Igor Murashkin [Thu, 31 Jan 2013 02:59:38 +0000 (18:59 -0800)]
am f559bd26: (-s ours) Camera2: Update generate scripts check for dependencies and to support MacPorts: DO NOT MERGE

# Via Igor Murashkin
* commit 'f559bd265b60f743029086ceab7bbd0384d85e44':
  Camera2: Update generate scripts check for dependencies and to support MacPorts: DO NOT MERGE

11 years agoam 5b6e79aa: (-s ours) Camera2: Dump enum data types as strings, not integers: DO...
Igor Murashkin [Thu, 31 Jan 2013 02:59:37 +0000 (18:59 -0800)]
am 5b6e79aa: (-s ours) Camera2: Dump enum data types as strings, not integers: DO NOT MERGE

# Via Igor Murashkin
* commit '5b6e79aad5371d5651268c65f9fef9c07c9d1a89':
  Camera2: Dump enum data types as strings, not integers: DO NOT MERGE

11 years agoam d728474a: (-s ours) Camera: Generate camera_metadata_tags and HTML docs from XML...
Igor Murashkin [Thu, 31 Jan 2013 02:59:36 +0000 (18:59 -0800)]
am d728474a: (-s ours) Camera: Generate camera_metadata_tags and HTML docs from XML: DO NOT MERGE

# Via Igor Murashkin
* commit 'd728474a27777e3a153088a01099109f16c6a0de':
  Camera: Generate camera_metadata_tags and HTML docs from XML: DO NOT MERGE

11 years agoam 84a79d8c: (-s ours) Camera2: Fix metadata XML to maintain ordering: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:35 +0000 (18:59 -0800)]
am 84a79d8c: (-s ours) Camera2: Fix metadata XML to maintain ordering: DO NOT MERGE

# Via Igor Murashkin
* commit '84a79d8ce866c823914eaf29b828fae8ee325d6b':
  Camera2: Fix metadata XML to maintain ordering: DO NOT MERGE

11 years agoam ca9e6549: (-s ours) Camera2: Prepare to generate tags from script: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:34 +0000 (18:59 -0800)]
am ca9e6549: (-s ours) Camera2: Prepare to generate tags from script: DO NOT MERGE

# Via Igor Murashkin
* commit 'ca9e65498b00c26575209012b7da0b50a170f47e':
  Camera2: Prepare to generate tags from script: DO NOT MERGE

11 years agoam 2fcc8c97: (-s ours) Camera: Add a script to generate files from XML: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:33 +0000 (18:59 -0800)]
am 2fcc8c97: (-s ours) Camera: Add a script to generate files from XML: DO NOT MERGE

# Via Igor Murashkin
* commit '2fcc8c977913ff766919ea9a0694279072121e38':
  Camera: Add a script to generate files from XML: DO NOT MERGE

11 years agoam f0356df1: (-s ours) Camera: Generate tag string info from XML: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:32 +0000 (18:59 -0800)]
am f0356df1: (-s ours) Camera: Generate tag string info from XML: DO NOT MERGE

# Via Igor Murashkin
* commit 'f0356df1c0ef2e6c59f0bd890bb79a5c318e1713':
  Camera: Generate tag string info from XML: DO NOT MERGE

11 years agoam b03a004f: (-s ours) Camera: Generate camera_metadata_tags.h from XML: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:31 +0000 (18:59 -0800)]
am b03a004f: (-s ours) Camera: Generate camera_metadata_tags.h from XML: DO NOT MERGE

# Via Igor Murashkin
* commit 'b03a004fd5a7ad9436da45ac33246a4d07e75a7f':
  Camera: Generate camera_metadata_tags.h from XML: DO NOT MERGE

11 years agoam 78d9b354: (-s ours) Camera: Metadata XML cleanup, add README: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:31 +0000 (18:59 -0800)]
am 78d9b354: (-s ours) Camera: Metadata XML cleanup, add README: DO NOT MERGE

# Via Igor Murashkin
* commit '78d9b3543439115fe723770f1facee21a3e1793a':
  Camera: Metadata XML cleanup, add README: DO NOT MERGE

11 years agoam 344fd20d: (-s ours) Camera: Metadata docs HTML generated from XML: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:30 +0000 (18:59 -0800)]
am 344fd20d: (-s ours) Camera: Metadata docs HTML generated from XML: DO NOT MERGE

# Via Igor Murashkin
* commit '344fd20d2cd4902fe4dbdf5c3192ed8ab162eca2':
  Camera: Metadata docs HTML generated from XML: DO NOT MERGE

11 years agoam ddfc7fc4: (-s ours) Camera: Add an XML parser for the XML metadata: DO NOT MERGE
Igor Murashkin [Thu, 31 Jan 2013 02:59:29 +0000 (18:59 -0800)]
am ddfc7fc4: (-s ours) Camera: Add an XML parser for the XML metadata: DO NOT MERGE

# Via Igor Murashkin
* commit 'ddfc7fc4157c2389ed60cc20a3c1384e89d8d8bb':
  Camera: Add an XML parser for the XML metadata: DO NOT MERGE

11 years agoam cd6ebaa8: (-s ours) Camera: Define all Properties via an XML data file: DO NOT...
Igor Murashkin [Thu, 31 Jan 2013 02:59:29 +0000 (18:59 -0800)]
am cd6ebaa8: (-s ours) Camera: Define all Properties via an XML data file: DO NOT MERGE

# Via Igor Murashkin
* commit 'cd6ebaa8e4567f3b425393a1badeef4f7c9496ae':
  Camera: Define all Properties via an XML data file: DO NOT MERGE

11 years agoCamera: Fix ordering of boolean enums, types for curves.: DO NOT MERGE
Eino-Ville Talvala [Fri, 11 Jan 2013 21:57:19 +0000 (13:57 -0800)]
Camera: Fix ordering of boolean enums, types for curves.: DO NOT MERGE

- Flipping boolean enumeration definition confused some HAL
implementations.

- Tonemap curves should all be type float.

Bug: 7974125

Change-Id: I533888af5fc7f1fa709d758f1f9de1c2c3b475a3

11 years agoCamera2: Docs - Add output_file option to metadata_parser_xml.py: DO NOT MERGE
Igor Murashkin [Wed, 5 Dec 2012 22:51:57 +0000 (14:51 -0800)]
Camera2: Docs - Add output_file option to metadata_parser_xml.py: DO NOT MERGE

Change-Id: I5b7d991bc569c36e23a9567289e9c4dbd9759378

11 years agoCamera2: Docs - Fix tags to be displayed in the docs HTML: DO NOT MERGE
Igor Murashkin [Wed, 5 Dec 2012 22:49:11 +0000 (14:49 -0800)]
Camera2: Docs - Fix tags to be displayed in the docs HTML: DO NOT MERGE

Change-Id: Id23043f7bb714e4b5c06f46889e1531175ed045f

11 years agoCamera: Docs XML - allow multiple kinds per section: DO NOT MERGE
Igor Murashkin [Wed, 5 Dec 2012 21:06:59 +0000 (13:06 -0800)]
Camera: Docs XML - allow multiple kinds per section: DO NOT MERGE

- When adding a new entry and maintaining ABI, make a new kind if can't be
  semantically part of the last kind. Don't add to the end of an existing
  non-last kind.

- Print generated file names in metadata-generate

(Aside) New sections should also be ended at the end of the root namespace to
  maintain ABI compatibility.

Change-Id: I5df0a701763af3cc91ee6eead4fe9fd423c9aa86

11 years agoUpdate camera metadata tests to new enums: DO NOT MERGE
Eino-Ville Talvala [Wed, 5 Dec 2012 18:12:13 +0000 (10:12 -0800)]
Update camera metadata tests to new enums: DO NOT MERGE

Change-Id: I9474f34de3c8d780f8bdbc388ddd883c123b41b9

11 years agoCamera2: Doc entries no longer have type='enum', instead they use enum='true': DO...
Igor Murashkin [Wed, 5 Dec 2012 00:07:21 +0000 (16:07 -0800)]
Camera2: Doc entries no longer have type='enum', instead they use enum='true': DO NOT MERGE

* This allows all entries to have any backing type
        (usually a byte, but for availableFormats it's int32)
* No longer need special casing for availableFormats
* No longer need to coerce an enum type into a byte

Change-Id: Ib1d4b93521e90f243b54f66c3d4c4b35032bc06a

11 years agoCamera2: Update generate scripts check for dependencies and to support MacPorts:...
Igor Murashkin [Tue, 4 Dec 2012 22:59:53 +0000 (14:59 -0800)]
Camera2: Update generate scripts check for dependencies and to support MacPorts: DO NOT MERGE

Change-Id: Ice9b658f8e6f87a1a490c367bff2f9a685ddee44

11 years agoCamera2: Dump enum data types as strings, not integers: DO NOT MERGE
Igor Murashkin [Mon, 3 Dec 2012 21:55:33 +0000 (13:55 -0800)]
Camera2: Dump enum data types as strings, not integers: DO NOT MERGE

Change-Id: Ia225662d4ee0aad81b22b96355d7f39c4aa70d42

11 years agoCamera: Generate camera_metadata_tags and HTML docs from XML: DO NOT MERGE
Igor Murashkin [Thu, 29 Nov 2012 23:23:03 +0000 (15:23 -0800)]
Camera: Generate camera_metadata_tags and HTML docs from XML: DO NOT MERGE

Change-Id: Ib7e9bf4855adff91a317c910aaec960f1422302a

11 years agoCamera2: Fix metadata XML to maintain ordering: DO NOT MERGE
Igor Murashkin [Fri, 30 Nov 2012 01:08:36 +0000 (17:08 -0800)]
Camera2: Fix metadata XML to maintain ordering: DO NOT MERGE

Change-Id: I69adfbb1010b5f624d3ee618a1a45e0be510ca31

11 years agoCamera2: Prepare to generate tags from script: DO NOT MERGE
Igor Murashkin [Mon, 26 Nov 2012 23:26:38 +0000 (15:26 -0800)]
Camera2: Prepare to generate tags from script: DO NOT MERGE

Change-Id: Ic5195830cd6ff296de793eb4fbe418dd4e3136ca

11 years agoCamera: Add a script to generate files from XML: DO NOT MERGE
Igor Murashkin [Mon, 26 Nov 2012 20:01:11 +0000 (12:01 -0800)]
Camera: Add a script to generate files from XML: DO NOT MERGE

Change-Id: I638017934ddfcfe8ab8f9f56bebb587dae35f17f

11 years agoCamera: Generate tag string info from XML: DO NOT MERGE
Igor Murashkin [Thu, 22 Nov 2012 01:11:37 +0000 (17:11 -0800)]
Camera: Generate tag string info from XML: DO NOT MERGE

Change-Id: I5109a3c46a065fb2dce31482d4377c33aeb84176

11 years agoCamera: Generate camera_metadata_tags.h from XML: DO NOT MERGE
Igor Murashkin [Wed, 21 Nov 2012 22:23:24 +0000 (14:23 -0800)]
Camera: Generate camera_metadata_tags.h from XML: DO NOT MERGE

Change-Id: Ie98f9dca854841ff1430c1314fbc570e26e5398b

11 years agoCamera: Metadata XML cleanup, add README: DO NOT MERGE
Igor Murashkin [Wed, 21 Nov 2012 17:44:05 +0000 (09:44 -0800)]
Camera: Metadata XML cleanup, add README: DO NOT MERGE

Change-Id: Ib53757029becbd4148867a144ba3725c4f9e5d82

11 years agoCamera: Metadata docs HTML generated from XML: DO NOT MERGE
Igor Murashkin [Thu, 29 Nov 2012 21:35:15 +0000 (13:35 -0800)]
Camera: Metadata docs HTML generated from XML: DO NOT MERGE

Change-Id: Ic39249d7019dab0a6c5f5daf5d54074f6cc9c0d4

11 years agoCamera: Add an XML parser for the XML metadata: DO NOT MERGE
Igor Murashkin [Tue, 20 Nov 2012 00:49:37 +0000 (16:49 -0800)]
Camera: Add an XML parser for the XML metadata: DO NOT MERGE

Change-Id: Ie97893e82d6cae2cb7fa3853b326df1cf0f3ff18

11 years agoCamera: Define all Properties via an XML data file: DO NOT MERGE
Igor Murashkin [Sat, 10 Nov 2012 00:15:02 +0000 (16:15 -0800)]
Camera: Define all Properties via an XML data file: DO NOT MERGE

Change-Id: I82aad9e1e8c8064373a9881f255ec2eb9d2f023e

11 years agoPut audio_route into its own library
Simon Wilson [Wed, 16 Jan 2013 00:35:46 +0000 (16:35 -0800)]
Put audio_route into its own library

The audio_route library allows mixer paths to be
loaded from an XML file and can control a mixer
via tinyalsa. It contains useful functions that
can be factored out of the audio HAL.

Change-Id: Iebcb2b492c5936dbf0e0b976aeaa4ffbab136588

11 years agoCamera: Fix ordering of boolean enums, types for curves.
Eino-Ville Talvala [Fri, 11 Jan 2013 21:57:19 +0000 (13:57 -0800)]
Camera: Fix ordering of boolean enums, types for curves.

- Flipping boolean enumeration definition confused some HAL
implementations.

- Tonemap curves should all be type float.

Bug: 7974125

Change-Id: I533888af5fc7f1fa709d758f1f9de1c2c3b475a3

11 years agoFix build warnings
Glenn Kasten [Wed, 9 Jan 2013 00:37:06 +0000 (16:37 -0800)]
Fix build warnings

Tested by comparing assembly output of "arm-eabi-objdump -d";
the old and new .s were identical.

Change-Id: If056afb731cb6ea67563cffe51fe8f93001301e7

11 years agoMerge "Implement sf_open(SFM_WRITE) and sf_writef_short"
Glenn Kasten [Tue, 8 Jan 2013 19:31:58 +0000 (11:31 -0800)]
Merge "Implement sf_open(SFM_WRITE) and sf_writef_short"

11 years agoImplement sf_open(SFM_WRITE) and sf_writef_short
Glenn Kasten [Fri, 4 Jan 2013 19:24:55 +0000 (11:24 -0800)]
Implement sf_open(SFM_WRITE) and sf_writef_short

Also fix handle leak in sf_close(), and bad riffSize check in sf_open(SFM_READ).

Change-Id: Idec38b244cb1d076db1505e29df347ce85e4e30a

11 years agoPort libsndfile to host
Glenn Kasten [Mon, 17 Dec 2012 20:09:21 +0000 (12:09 -0800)]
Port libsndfile to host

Change-Id: I24a5696f313312bb5ff2b73fd58632ebbde74a9b

11 years agoMerge "Camera2: Docs - Add output_file option to metadata_parser_xml.py"
Igor Murashkin [Wed, 12 Dec 2012 20:47:09 +0000 (12:47 -0800)]
Merge "Camera2: Docs - Add output_file option to metadata_parser_xml.py"

11 years agoMerge "Camera2: Docs - Fix tags to be displayed in the docs HTML"
Igor Murashkin [Wed, 12 Dec 2012 20:46:58 +0000 (12:46 -0800)]
Merge "Camera2: Docs - Fix tags to be displayed in the docs HTML"

11 years agoMerge "Camera: Docs XML - allow multiple kinds per section"
Igor Murashkin [Wed, 12 Dec 2012 20:46:43 +0000 (12:46 -0800)]
Merge "Camera: Docs XML - allow multiple kinds per section"

11 years agoCamera2: Docs - Add output_file option to metadata_parser_xml.py
Igor Murashkin [Wed, 5 Dec 2012 22:51:57 +0000 (14:51 -0800)]
Camera2: Docs - Add output_file option to metadata_parser_xml.py

Change-Id: I5b7d991bc569c36e23a9567289e9c4dbd9759378

11 years agoCamera2: Docs - Fix tags to be displayed in the docs HTML
Igor Murashkin [Wed, 5 Dec 2012 22:49:11 +0000 (14:49 -0800)]
Camera2: Docs - Fix tags to be displayed in the docs HTML

Change-Id: Id23043f7bb714e4b5c06f46889e1531175ed045f

11 years agoCamera: Docs XML - allow multiple kinds per section
Igor Murashkin [Wed, 5 Dec 2012 21:06:59 +0000 (13:06 -0800)]
Camera: Docs XML - allow multiple kinds per section

- When adding a new entry and maintaining ABI, make a new kind if can't be
  semantically part of the last kind. Don't add to the end of an existing
  non-last kind.

- Print generated file names in metadata-generate

(Aside) New sections should also be ended at the end of the root namespace to
  maintain ABI compatibility.

Change-Id: I5df0a701763af3cc91ee6eead4fe9fd423c9aa86

11 years agoUpdate camera metadata tests to new enums
Eino-Ville Talvala [Wed, 5 Dec 2012 18:12:13 +0000 (10:12 -0800)]
Update camera metadata tests to new enums

Change-Id: I9474f34de3c8d780f8bdbc388ddd883c123b41b9

11 years agoCamera2: Doc entries no longer have type='enum', instead they use enum='true'
Igor Murashkin [Wed, 5 Dec 2012 00:07:21 +0000 (16:07 -0800)]
Camera2: Doc entries no longer have type='enum', instead they use enum='true'

* This allows all entries to have any backing type
        (usually a byte, but for availableFormats it's int32)
* No longer need special casing for availableFormats
* No longer need to coerce an enum type into a byte

Change-Id: Ib1d4b93521e90f243b54f66c3d4c4b35032bc06a

11 years agoCamera2: Update generate scripts check for dependencies and to support MacPorts
Igor Murashkin [Tue, 4 Dec 2012 22:59:53 +0000 (14:59 -0800)]
Camera2: Update generate scripts check for dependencies and to support MacPorts

Change-Id: Ice9b658f8e6f87a1a490c367bff2f9a685ddee44

11 years agoCamera2: Dump enum data types as strings, not integers
Igor Murashkin [Mon, 3 Dec 2012 21:55:33 +0000 (13:55 -0800)]
Camera2: Dump enum data types as strings, not integers

Change-Id: Ia225662d4ee0aad81b22b96355d7f39c4aa70d42

11 years agoCamera: Generate camera_metadata_tags and HTML docs from XML
Igor Murashkin [Thu, 29 Nov 2012 23:23:03 +0000 (15:23 -0800)]
Camera: Generate camera_metadata_tags and HTML docs from XML

Change-Id: Ib7e9bf4855adff91a317c910aaec960f1422302a

11 years agoCamera2: Fix metadata XML to maintain ordering
Igor Murashkin [Fri, 30 Nov 2012 01:08:36 +0000 (17:08 -0800)]
Camera2: Fix metadata XML to maintain ordering

Change-Id: I69adfbb1010b5f624d3ee618a1a45e0be510ca31

11 years agoCamera2: Prepare to generate tags from script
Igor Murashkin [Mon, 26 Nov 2012 23:26:38 +0000 (15:26 -0800)]
Camera2: Prepare to generate tags from script

Change-Id: Ic5195830cd6ff296de793eb4fbe418dd4e3136ca

11 years agoCamera: Add a script to generate files from XML
Igor Murashkin [Mon, 26 Nov 2012 20:01:11 +0000 (12:01 -0800)]
Camera: Add a script to generate files from XML

Change-Id: I638017934ddfcfe8ab8f9f56bebb587dae35f17f

11 years agoCamera: Generate tag string info from XML
Igor Murashkin [Thu, 22 Nov 2012 01:11:37 +0000 (17:11 -0800)]
Camera: Generate tag string info from XML

Change-Id: I5109a3c46a065fb2dce31482d4377c33aeb84176

11 years agoCamera: Generate camera_metadata_tags.h from XML
Igor Murashkin [Wed, 21 Nov 2012 22:23:24 +0000 (14:23 -0800)]
Camera: Generate camera_metadata_tags.h from XML

Change-Id: Ie98f9dca854841ff1430c1314fbc570e26e5398b

11 years agoCamera: Metadata XML cleanup, add README
Igor Murashkin [Wed, 21 Nov 2012 17:44:05 +0000 (09:44 -0800)]
Camera: Metadata XML cleanup, add README

Change-Id: Ib53757029becbd4148867a144ba3725c4f9e5d82

11 years agoCamera: Metadata docs HTML generated from XML
Igor Murashkin [Thu, 29 Nov 2012 21:35:15 +0000 (13:35 -0800)]
Camera: Metadata docs HTML generated from XML

Change-Id: Ic39249d7019dab0a6c5f5daf5d54074f6cc9c0d4

11 years agoCamera: Add an XML parser for the XML metadata
Igor Murashkin [Tue, 20 Nov 2012 00:49:37 +0000 (16:49 -0800)]
Camera: Add an XML parser for the XML metadata

Change-Id: Ie97893e82d6cae2cb7fa3853b326df1cf0f3ff18

11 years agoCamera: Define all Properties via an XML data file
Igor Murashkin [Sat, 10 Nov 2012 00:15:02 +0000 (16:15 -0800)]
Camera: Define all Properties via an XML data file

Change-Id: I82aad9e1e8c8064373a9881f255ec2eb9d2f023e

11 years agoam 555aac88: Camera2: Fix metadata alignment for double and int64 types
Igor Murashkin [Tue, 27 Nov 2012 19:36:46 +0000 (11:36 -0800)]
am 555aac88: Camera2: Fix metadata alignment for double and int64 types

* commit '555aac882ed63e70019c78ccc58032a5be0f58ec':
  Camera2: Fix metadata alignment for double and int64 types

11 years agoCamera2: Fix metadata alignment for double and int64 types
Igor Murashkin [Thu, 15 Nov 2012 18:54:57 +0000 (10:54 -0800)]
Camera2: Fix metadata alignment for double and int64 types

* camera_metadata_rational_t was only aligning to 4 bytes, we need to align to 8
* add an automated unit test to verify alignment for each type of data

Bug: 7498597
Change-Id: Ib5554d412e09b95d21933b6015db68d01a072f90

11 years agoam b10d56ad: Camera: Actually make camera_metadata memcopyable
Eino-Ville Talvala [Fri, 16 Nov 2012 23:42:50 +0000 (15:42 -0800)]
am b10d56ad: Camera: Actually make camera_metadata memcopyable

* commit 'b10d56ad43a91924d3666127963e5fdce725389c':
  Camera: Actually make camera_metadata memcopyable

11 years agoCamera: Actually make camera_metadata memcopyable
Eino-Ville Talvala [Tue, 13 Nov 2012 19:45:12 +0000 (11:45 -0800)]
Camera: Actually make camera_metadata memcopyable

- Use internal offsets instead of pointers for the entry and data
  arrays.
- Add test to verify memcpy works and doesn't alias data.
- Remove support for forward-compatible reserved space handling, given
  that it's unlikely to be useful

Bug: 7546079
Change-Id: I439aa27fed8d243b7a04155daf5e58fa1c4c730e

11 years agoam 3154036a: Camera: Fix metadata data alignment, other minor bugs.
Eino-Ville Talvala [Tue, 13 Nov 2012 22:25:39 +0000 (14:25 -0800)]
am 3154036a: Camera: Fix metadata data alignment, other minor bugs.

* commit '3154036acd2cc809388d08ff856198a8512f05f0':
  Camera: Fix metadata data alignment, other minor bugs.

11 years agoCamera: Fix metadata data alignment, other minor bugs.
Eino-Ville Talvala [Thu, 8 Nov 2012 00:36:50 +0000 (16:36 -0800)]
Camera: Fix metadata data alignment, other minor bugs.

- When a metadata entry needs to overflow into the data buffer, make
 sure the starting offset is aligned to the maximum needed by all the
 metadata types.
- Bounds check the data buffer size when adding a new entry
- Add new test for the bounds check
- Print out doubles correctly.

Bug: 7498597

Change-Id: Ic8645a998c096f5b803839ee8076b97862127021

11 years agoMerge "Add support for reading 8-bit PCM"
Glenn Kasten [Tue, 13 Nov 2012 15:49:55 +0000 (07:49 -0800)]
Merge "Add support for reading 8-bit PCM"

11 years agoAdd support for reading 8-bit PCM
Glenn Kasten [Mon, 12 Nov 2012 22:42:31 +0000 (14:42 -0800)]
Add support for reading 8-bit PCM

Also:
Includable by C++
More compatibility with libsndfile external
 Add frames field to SFINFO
 sf_readf_short uses sf_count_t which is signed

Change-Id: Ice538d5f4ba3556b67c57bca856b605358d53c05

11 years agoAdd memcpy_to_u8_from_i16 to libaudioutils
Glenn Kasten [Mon, 12 Nov 2012 22:39:36 +0000 (14:39 -0800)]
Add memcpy_to_u8_from_i16 to libaudioutils

Change-Id: I20066dbfaf8828d9d32266c589beaf3860677bc8

11 years agoLine length 100
Glenn Kasten [Fri, 2 Nov 2012 14:59:08 +0000 (07:59 -0700)]
Line length 100

Change-Id: Ieecda2651cab0f4cfaef3a23454d3d852091be84

11 years agoAdd tinysndfile
Glenn Kasten [Tue, 30 Oct 2012 23:09:18 +0000 (16:09 -0700)]
Add tinysndfile

Change-Id: Idc97a54f1e170fc06cc341fd1234c0635ada9757

11 years agoCamera: Add quirk for metering regions to ignore crop region
Igor Murashkin [Wed, 3 Oct 2012 21:23:03 +0000 (14:23 -0700)]
Camera: Add quirk for metering regions to ignore crop region

If the HAL already takes into account the crop region when
consuming a{ewf}Region or producing face detection rectangles,
then it should set this quirk to 1.

Bug: 7246065
Change-Id: Ib77788b2fced1509d60a7fd1e2a4411e9c8f19dc

11 years agoCamera: Add scene mode override and quirks fields.
Eino-Ville Talvala [Mon, 1 Oct 2012 23:33:03 +0000 (16:33 -0700)]
Camera: Add scene mode override and quirks fields.

To provide scene mode override information while preview is disabled,
need more static metadata from the HAL.

In addition, add a quirks section to allow for temporary workarounds
for incomplete HAL behavior. Any quirks added will be deprecated as
soon as possible.

Bug: 7159577
Bug: 7172543
Change-Id: Icadb6baa4132bf20ad82b2c549ac2b9a0c6618de

11 years agoCamera: Add android.jpeg.size field.
Eino-Ville Talvala [Fri, 7 Sep 2012 16:36:23 +0000 (09:36 -0700)]
Camera: Add android.jpeg.size field.

When the camera is producing JPEG buffers, need a field to provide the
final buffer size.

Bug: 7108816
Change-Id: I67f27a3c1d69f32541402e516de9fb4b61ffd352

11 years agoCamera2: Separate AE/AWB locks from AE/AWB modes.
Eino-Ville Talvala [Mon, 3 Sep 2012 17:06:40 +0000 (10:06 -0700)]
Camera2: Separate AE/AWB locks from AE/AWB modes.

With AE/AWB modes including the LOCKED state, it was not possible for
the HAL to determine the current flash state, or to report fixed AWB
modes properly. Break out the locks into separate controls.

Bug: 6243944
Change-Id: I1b2d844420b8c4e06be32ea644e052f222ed825b

11 years agoCamera: Add request type and input streams metadata tags.
Eino-Ville Talvala [Fri, 31 Aug 2012 16:06:18 +0000 (09:06 -0700)]
Camera: Add request type and input streams metadata tags.

Bug: 6243944

Change-Id: I6fbf445ac8a6bb9dff916a17c051e7e911dd4a3f

11 years agoCamera: Add methods for read-only access to metadata.
Eino-Ville Talvala [Fri, 24 Aug 2012 18:42:06 +0000 (11:42 -0700)]
Camera: Add methods for read-only access to metadata.

- Define a read-only version of camera_metadata_entry_t
- Support finding with read-only output
- Add const to clone method input camera_metadata_t.

Bug: 6243944
Change-Id: I1bf37a4c8c8935711e803d7477393fe2c01f8216

11 years agoRevert "Camera: Add methods for read-only access to metadata."
Eino-Ville Talvala [Sun, 26 Aug 2012 21:43:50 +0000 (14:43 -0700)]
Revert "Camera: Add methods for read-only access to metadata."

Needs a third change that's not yet done with review.

This reverts commit ad0c0c836d0276079bf8fe1bfb0bef25d4bce601

Change-Id: Id4325fe93b43a447eded5ae50e8f7faa70fd9140

11 years agoCamera: Add methods for read-only access to metadata.
Eino-Ville Talvala [Fri, 24 Aug 2012 18:42:06 +0000 (11:42 -0700)]
Camera: Add methods for read-only access to metadata.

- Define a read-only version of camera_metadata_entry_t
- Support finding with read-only output
- Add const to clone method input camera_metadata_t.

Bug: 6243944
Change-Id: Icd581e48f5fafaa6da22ca25e872bf3ede192222

11 years agoCamera: Update autofocus- and triggering-related metadata fields
Eino-Ville Talvala [Fri, 3 Aug 2012 20:56:01 +0000 (13:56 -0700)]
Camera: Update autofocus- and triggering-related metadata fields

- Add trigger IDs for precapture and autofocus to dynamic control
  metadata
- Add enums for AE, AWB, AF algorithm state

Bug: 6243944
Change-Id: I04ce7709a4f1bdbfa39540059dbaf11fadc68f9c

11 years agoCamera: Add indented metadata dump
Eino-Ville Talvala [Mon, 30 Jul 2012 17:46:22 +0000 (10:46 -0700)]
Camera: Add indented metadata dump

Bug: 6243944
Change-Id: Ib769ae2d40b9c4bfa456c812fd7ee2e426fd86df

11 years agocomments on FX tags
Glenn Kasten [Mon, 9 Jan 2012 18:43:12 +0000 (10:43 -0800)]
comments on FX tags

Change-Id: Ic22c12c34303988c4a1616e49822859b975fe6c4

11 years agoAdd mono <-> stereo upmix and downmix routines
Glenn Kasten [Thu, 19 Jul 2012 20:59:50 +0000 (13:59 -0700)]
Add mono <-> stereo upmix and downmix routines

Change-Id: I3d960fb27fd3440f903333903c0dbf2ab59d3b56

12 years agoCamera: Add LOCKED values for AE/AWB modes.
Eino-Ville Talvala [Mon, 18 Jun 2012 15:50:23 +0000 (08:50 -0700)]
Camera: Add LOCKED values for AE/AWB modes.

Bug: 6243944
Change-Id: I52e842d568790e8ac0d9c231507e865aad58601b

12 years agoMerge "Camera: Add metadata field ANDROID_JPEG_MAX_SIZE"
Eino-Ville Talvala [Wed, 13 Jun 2012 01:39:46 +0000 (18:39 -0700)]
Merge "Camera: Add metadata field ANDROID_JPEG_MAX_SIZE"

12 years agoCamera: Add metadata field ANDROID_JPEG_MAX_SIZE
Eino-Ville Talvala [Wed, 13 Jun 2012 00:56:30 +0000 (17:56 -0700)]
Camera: Add metadata field ANDROID_JPEG_MAX_SIZE

This is used for communicating how large JPEG buffers must be to the
framework.

Bug: 6243944
Change-Id: Ib296961c4033535cdcd9baf297d440a31cf94d84