Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D4B2D362 for ; Tue, 25 Sep 2012 18:25:22 +0000 (UTC) Received: (qmail 28528 invoked by uid 500); 25 Sep 2012 18:25:21 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 28505 invoked by uid 500); 25 Sep 2012 18:25:21 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 28497 invoked by uid 99); 25 Sep 2012 18:25:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 18:25:20 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of simon.macdonald@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Sep 2012 18:25:15 +0000 Received: by pbbro12 with SMTP id ro12so558607pbb.6 for ; Tue, 25 Sep 2012 11:24:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=eyWU+UHDXqN/UINMRo5HSnSQdmvTbZKEnDvpP3qbwfI=; b=sepl+OT3f55g9Ouzw7z5/L3WcieltOX4sYB8DelgpC3gPtb43SXrtikf7BJqiA01/r sVQ2Od3KCAMxCzuA8gsX014d9yam9b/u8OeO8ThoIL1gBt4WASYBSNaE7+o1MEf/knYe 9NEgnPLxPNmbH9WZJl9b80O40hLH1kdenClR5aY5GnJCZEblSZGO1H9dMKxucc8fItz3 js0AKjjR0WnqKBAppLcfWHS/hw2PnUvcaxRoYHWcVFZFaYJG95z+rIyW25b91tVW5HgK tUbVhkQ9+/e8/TgVMRhH6tNlmlFHCzzhMvumBK5npTDv0qtq5F/+afnV/I/BOXDQwlJN nrJA== Received: by 10.66.74.196 with SMTP id w4mr42856084pav.32.1348597494145; Tue, 25 Sep 2012 11:24:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.223.230 with HTTP; Tue, 25 Sep 2012 11:24:33 -0700 (PDT) In-Reply-To: References: From: Simon MacDonald Date: Tue, 25 Sep 2012 14:24:33 -0400 Message-ID: Subject: Re: Own. The. Camera. To: callback-dev@incubator.apache.org Content-Type: text/plain; charset=ISO-8859-1 Cool Joe. Thanks for the heads up on the UI. I kinda think we will need a preview as that is what folks expect. Simon Mac Donald http://hi.im/simonmacdonald On Tue, Sep 25, 2012 at 2:19 PM, Joe Bowser wrote: > Hey > > I'm currently hacking on the UI. This really reminds me of why this > project exists in the first place. I'm hoping to get a basic layout > working by the end of the day for phones. > > We also need to implement the following: > > * AutoFocus > * Zoom > * Preview > > I'm willing to not have preview, since this could be implemented in > HTML and Javascript by the developer, even though every camera app > that I've seen did have preview built-in so far. > > Joe > > On Tue, Sep 25, 2012 at 11:13 AM, Simon MacDonald > wrote: >> Just an update as I continue to work on this. I have the >> CameraActivity working with the following options: >> >> quality : any quality >> destinationType : DATA_URL or FILE_URI, >> sourceType : CAMERA or PHOTOALBUM >> allowEdit : N/A on Android >> encodingType: JPEG only >> targetWidth: any width >> targetHeight: any height >> mediaType: any media type >> popoverOptions: N/A on Android >> saveToPhotoAlbum: true or false >> correctOrientation: completely broken >> >> Things that need to be done include: >> >> 1) Figure out why the Camera class does not save any of the EXIF data >> with orientation being the most important so we can do >> correctOrientation properly. >> 2) Move a lot of the code in CameraLauncher into CameraActivity. That >> way we won't need to write a File in CameraActivity then read it in >> CameraLauncher. By working with the raw bytes in CameraActivity to do >> rotation/resizing/compression we should be able to save on memory. >> 3) Make the Camera GUI look so much nicer than my current utilitarian mode. >> 4) Move away from a camera layout file to putting the layout in code >> so we don't have to make Cordova a library project. >> >> Simon Mac Donald >> http://hi.im/simonmacdonald >> >> >> On Fri, Sep 21, 2012 at 8:50 PM, Simon MacDonald >> wrote: >>> That should already be fixed by this commit: >>> >>> https://git-wip-us.apache.org/repos/asf?p=incubator-cordova-android.git;a=commit;h=f78af9f27baa82a351fb4b8a317ad50d54d99e56 >>> >>> Simon Mac Donald >>> http://hi.im/simonmacdonald >>> >>> >>> On Fri, Sep 21, 2012 at 7:11 PM, Anis KADRI wrote: >>>> >>>> Indeed. >>>> >>>> I got this with the latest target http://pastebin.com/wj11TGhh >>>> >>>> and the errors above with an old target and I then I recalled >>>> that renderscript.opt.level thingy. Anyway we can fix this for good ? I >>>> know it has nothing to do with the topic! :-) >>>> >>>> On Fri, Sep 21, 2012 at 3:59 PM, Simon MacDonald >>>> wrote: >>>> >>>> > Looks like you are using an older version of Android before those Exif >>>> > properties existed. >>>> > >>>> > Simon Mac Donald >>>> > http://hi.im/simonmacdonald >>>> > >>>> > >>>> > On Fri, Sep 21, 2012 at 6:56 PM, Anis KADRI >>>> > wrote: >>>> > >>>> > > Tried it out. Not compiling. http://pastebin.com/3KK96gCu >>>> > > Didn't spend too much time on it. So solution can be trivial :) >>>> > > >>>> > > On Fri, Sep 21, 2012 at 2:04 PM, Joe Bowser wrote: >>>> > > >>>> > > > That sounds like a good idea. Do we want auto-focus on or off on >>>> > > > the >>>> > > > camera? >>>> > > > >>>> > > > Joe >>>> > > > >>>> > > > On Fri, Sep 21, 2012 at 12:43 PM, Simon MacDonald >>>> > > > wrote: >>>> > > > > Okay, >>>> > > > > >>>> > > > > So I've done a bit of work today on taking the camera code back in >>>> > > house. >>>> > > > > Right now I have the very basic take a picture and return a file >>>> > > > > URI >>>> > > > > working. It does not respect and options or do any image >>>> > manipulation. >>>> > > > I'm >>>> > > > > going to take the time to add that back in slowly. >>>> > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> > https://github.com/macdonst/cordova-android/commit/ac5dbf3f54ac6e43f6c346130ac2ac86aed26eb5 >>>> > > > > >>>> > > > > Also, I'm using a layout file which means you have to import >>>> > > > > Cordova >>>> > > into >>>> > > > > your test app as a library project. I'm just doing that for now as >>>> > > > > eventually that layout will get converted to code so we can go >>>> > > > > back >>>> > to >>>> > > > > making it a jar. I am not a UI designer so Joe volunteered Yohei >>>> > > > > to >>>> > > > design >>>> > > > > the camera interface so it doesn't look like a deranged >>>> > > > > coffee fuelled monster designed it. Thanks Yohei! >>>> > > > > >>>> > > > > Simon Mac Donald >>>> > > > > http://hi.im/simonmacdonald >>>> > > > >>>> > > >>>> > >>> >>>