|
||
#921
|
||||
|
||||
Te debe mostrar un menú, ahí si puedes hacer una impresión de pantalla y subirla para ver que ocurre. ![]() |
|
#922
|
||||
|
||||
![]() ![]() Uploaded with ImageShack.us |
#923
|
||||
|
||||
Bien, he estado probando con el script con mi PhotoShop y ahora me pasa lo mismo, no muestra las acciones aunque si las cumple si arrastras un archivo al script, pero no es así como debería funcionar.
Estoy intentando averiguar que pasa, en cuanto lo averigue lo aviso, lo siento |
Gracias de parte de: | ||
#924
|
||||
|
||||
Sorry for writing in english, but did you notice this topic http://forum.xda-developers.com/showthread.php?t=883966, they got the camera (mt9t013) working on android port for windows mobile phones(qualcomm msm)..
his git :http://gitorious.org/~jbruneaux ![]() |
#925
|
||||
|
||||
Bien, he estado probando con el script con mi PhotoShop y ahora me pasa lo mismo, no muestra las acciones aunque si las cumple si arrastras un archivo al script, pero no es así como debería funcionar.
Estoy intentando averiguar que pasa, en cuanto lo averigue lo aviso, lo siento ![]() ![]() ![]() |
#926
|
||||
|
||||
actionbeta2a.zip P.D: Apostaría porque no pero si te funciona... perfecto; he tenido que reescribir el proceso entero en mi photoshop para que me lo leyera otra vez. ¿alguién de los que ha probado el script y le ha funcionado a la primera le sigue funcionando? Gracias P.D2: Me voy a dormir, si no lo pudiste hacer mañana busco otra solución, he estado mirando y creo que ya se que pasa Última edición por Agedjus Día 01/02/11 a las 01:08:42. |
Gracias de parte de: | ||
#927
|
||||
|
||||
I make an simple app to convert the image from Raw to Jpeg.
I tested in my Tattoo with Kalin 10.7 and works. For who wanna test the image needs to be changed to imagem.raw and the app will generate the imagem.jpg. Works only for 3MB quality images. (it's easy to adapt to other resolutions for Kalin). http://www.megaupload.com/?d=2D2FRUWA Link for download of apk to install on phone. Thanks for kalin for the great work done with de cam. Now seens to be very easy to fix the problens and maybe the video recording. |
Los siguientes 3 usuarios han agradecido a filipeferraz su comentario: | ||
#929
|
||||
|
||||
|
#931
|
||||
|
||||
I make an simple app to convert the image from Raw to Jpeg.
I tested in my Tattoo with Kalin 10.7 and works. For who wanna test the image needs to be changed to imagem.raw and the app will generate the imagem.jpg. Works only for 3MB quality images. (it's easy to adapt to other resolutions for Kalin). http://www.megaupload.com/?d=2D2FRUWA Link for download of apk to install on phone. Thanks for kalin for the great work done with de cam. Now seens to be very easy to fix the problens and maybe the video recording. ![]() |
#932
|
||||
|
||||
Existe posibilidad de adaptar su aplicación a la cámara directamente?
|
#933
|
||||
|
||||
Acredito que sim. Mas quem pode responder é só o Kalim mesmo. O código foi baseado na análise de um código postado com com bibliotecas de teste para camera.
Desculpe pelo Portugues, sou brasileiro. Seens to be easy than English to understand (more similar). |
#936
|
||||
|
||||
Pues por lo que parece, estais ya apuntito de tener una cámara 100% con la conversión a jpg incluida. La verdad es que yo alucino con lo cracks que soys.
Un par de dudas que todavía me quedan son si ahora mismo la cámara se puede usar con el barcode scaner. Y si se pueden grabar videos, además de hacer fotos. |
#937
|
||||
|
||||
Pues ya es raro que no os funcione y a arek90 le funcione sin problemas.
Hiciste wipes arek?de que rom venías? Sent from my Tattoo using Tapatalk |
#938
|
||||
|
||||
Si gracias, pero no me sirve. Estoy en hacerlo todo en la librería. El kernel me funciona correctamente incluido el driver.
I make an simple app to convert the image from Raw to Jpeg.
I tested in my Tattoo with Kalin 10.7 and works. For who wanna test the image needs to be changed to imagem.raw and the app will generate the imagem.jpg. Works only for 3MB quality images. (it's easy to adapt to other resolutions for Kalin). http://www.megaupload.com/?d=2D2FRUWA Link for download of apk to install on phone. Thanks for kalin for the great work done with de cam. Now seens to be very easy to fix the problens and maybe the video recording. ![]() Acredito que sim. Mas quem pode responder é só o Kalim mesmo. O código foi baseado na análise de um código postado com com bibliotecas de teste para camera.
Desculpe pelo Portugues, sou brasileiro. Seens to be easy than English to understand (more similar). ![]() In fact I want to make all the changes in libcamera because if I put there in memory, I will be fast and more important at will allow all the camera apps to work.
__________________
__________________________________________________ __
CyanogenMod Nexus Devices |
#939
|
||||
|
||||
Si gracias, pero no me sirve. Estoy en hacerlo todo en la librería. El kernel me funciona correctamente incluido el driver.
Thanks. Can you publish the code so I study to add it to the camera app in order to make it in automatic? Thanks I need to see. It's not going to be enought, but at least it will make camera app work. In fact I want to make all the changes in libcamera because if I put there in memory, I will be fast and more important at will allow all the camera apps to work. ![]() The code is very simple. I manage to make the code work with date from one code that I see in other post. Having the image in byte[] data, the resolution of image taken save the jpg file. Here is the code: Código:
package com.image.rawtojpeg; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import android.app.Activity; import android.graphics.ImageFormat; import android.graphics.Rect; import android.graphics.YuvImage; import android.os.Bundle; import android.widget.TextView; public class RawToJpeg extends Activity { /** Called when the activity is first created. */ @override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); TextView tv = new TextView(this); try { FileOutputStream arqSaida = new FileOutputStream("/sdcard/DCIM/Camera/Imagem.jpg"); File f=new File("/sdcard/DCIM/Camera/Imagem.raw"); byte[] data = getBytesFromFile(f); YuvImage imagemYuv = new YuvImage(data, ImageFormat.NV21, 2048, 1536, null); Rect rect = new Rect(0,0,2048,1536); imagemYuv.compressToJpeg(rect, 100, arqSaida); arqSaida.close(); tv.setText("Sucesso."); } catch (FileNotFoundException e) { // TODO Auto-generated catch block tv.setText("Erro."); e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block tv.setText("Erro2."); e.printStackTrace(); } setContentView(tv); } public byte[] getBytesFromFile(File file) throws IOException { InputStream is = new FileInputStream(file); byte[] bytes; try { // Get the size of the file long length = file.length(); // You cannot create an array using a long type. // It needs to be an int type. // Before converting to an int type, check // to ensure that file is not larger than Integer.MAX_VALUE. if (length > Integer.MAX_VALUE) { // File is too large (>2GB) } // Create the byte array to hold the data bytes = new byte[(int)length]; // Read in the bytes int offset = 0; int numRead = 0; while (offset < bytes.length && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) { offset += numRead; } // Ensure all the bytes have been read in if (offset < bytes.length) { throw new IOException("Could not completely read file " + file.getName()); } } finally { // Close the input stream and return bytes is.close(); } return bytes; } } |
|
#940
|
||||
|
||||
@KalimochoAz
Changing the ImageFormat.NV21 for ImageFormat.NV16 change to video format for the data. Need all the files of project or just the code helps? |