If the preview image when correctly photograph into a [thumbnail image flipped horizontally flipped] also, how is it?
ps: the code is qualcomm platform 2.3, rear camera, no problem, before the camera image flipped horizontally.
I read this article
http://blog.csdn.net/daisyhd/article/details/6000962 feel there should be a place to set jpeg encoding from right to left or from left to right, but did not find a specific location. Watched for several days did not get,
always see a oriention setting, but regardless of the setting into 090,180,270, there will not be flipped horizontally happen ah
------ Solution --- -----------------------------------------
was writing camera hal layer? Should be driven not supported or did not write
------ Solution ------------------------------ --------------
jpeg coding problem is not, nor is it oriention setting problem.
In fact, you said that the front camera take pictures, because the mirror effect, so the preview is correct but the photos are mirror lights, according to the text of this most obvious.
If I describe this situation, then you need to be provided by hardware manufacturer datasheet, to modify the viewfinder / camera mirror set or options. General hardware will provide such register settings.
------ Solution ---------------------------------------- ----
I do is flat, only the front camera, as it happens I am also responsible for this camera. Just can not understand what you say "stop setting mirroring register."
taking photographs Echo has about 1s preview is inverted? Your situation is very strange that I have not encountered before. If you have modified the register set, then the thumbnails of the photos should be the opposite and viewfinder, and photos as well preserved.
I can confirm that s_mount_angle not achieve the purpose of what you expect, it can only modify oriention folding dump the whole picture, which can not be obtained by the center axis mirrored screen.
For you mentioned "jpeg encoding from right to left," I really have not seen so to set the front camera, it sounds more like image processing tools will go thinking I may be out the ^ _ ^
------ Solution ------------------------------------ --------
exif information problems, exif There is a rotation field.
------ Solution ---------------------------------------- ----
absolutely impossible.
Front camera requirements: thumbnails and photos consistent, and with the viewfinder opposite. That is the moment to re-photograph will be folded once. I'm pretty sure.
just get iphone test it, as well.
------ reference --------------------------------------- < br>
Thank you moderator.
camera does have a register set up a mirror, and I was changed before the preview displays the normal, if sanpshot register again when the modification times, photographing the end of the write back to the initial value, you can also take pictures normally, but back significant is backwards. Why they suspect jpeg encoding issues.
question, camera driver probe set attributes:
s-> s_camera_type = FRONT_CAMERA_2D ;/ / BACK_CAMERA_2D
/ / s-> s_mount_angle = 90; / / 0x13
s-> s_mount_angle = 270; / / 0x10
If it is before the camera, this should be the number s_mount_angle, this value is determined by how?
------ reference --------------------------------------- < br> in the camera driver in SENSOR_PREVIEW_MODE, SENSOR_SNAPSHOT_MODE respectively set to mirror the corresponding value register
have the following two questions:
1. taking photographs Echo has about 1s preview is inverted
2. vertical screen only echo wrong, horizontal screen photo shoot is inverted. But here is the same as the setting drive.
depressed ~
When I want to keep running with this setting in the drive mirroring register, not only in the initialization settings such as mirroring register a value, first ensure that anyway preview are normal, but in the jpeg encoding settings when taking pictures from right to left, the image can not it just 'jpeg encoding from right to left' This place is not found, this idea is not it?
tone through the front of the camera's heroes take a bubble ah ~
------ reference ------------------------ ---------------
'If you have modified the register set, then the thumbnails of the photos should be the opposite and viewfinder, and photos as well preserved. '
This is wrong, right, thumbnails and viewfinder should not do the same, preview image is photographed image is the way I see are like front camera
------ reference --- ------------------------------------
At first I also suspect that this value, But jpeg photos shot using a mobile phone to read metadata via IrfanView is no such flag of
------ reference ---------------------- -----------------
Oh, thank withheld enthusiastic reply.
today camera.java indeed see explanatory notes before the camera will flip around the central axis, that is a separate app to do so.
'thumbnails and photos unanimously' front camera should be so, but before the camera viewfinder contrary requirements, so flip?
some faint, engage in a few days it is not a problem? I am now either vertical or horizontal position, and imaging are the preview thumbnails
about folding up. Compare to find the machine to see tomorrow go wrong?
------ reference --------------------------------------- < br> on the front camera and preview imaging should flip, looking for a different platform reference machines from different manufacturers, some will and some will not flip, the conclusion:
bug or feature is determined by demand!
eventually have to be changed.
------ reference --------------------------------------- < br>
Ha ha ha ...... ask customer needs it ~ ~ ~
------ reference - --------------------------------------
Oh, this should be changed according to customer requirements , not their own is how to go nuts, Oh, I also do double camera, and more exchanges
------ reference ----------------- ----------------------
"not go nuts on how", and now I can not put it how.
before the camera will shoot out horizontally flipped, luckyboy brother, do not let it know how to flip ah?
say that you want to modify the mirror register, snapshot to modify, and preview image can indeed be the same, but the echo has flipped, evil camera ah ~
------ reference ------ ---------------------------------
V4l2CsiDevice.cpp V4l2SetRot () There is a ioctl (mCameraDevice, VIDIOC_S_CTRL, & ctrl)
preview and takepicture that will call it, this ioctl in the driver to adjust the direction of turn if the screen can not turn this V4l2SetRot () function is a point up and down and then look
- ----- reference ---------------------------------------
Thank lbmygf whether the platform is different in my code did not find you say V4l2CsiDevice.cpp and V4l2SetRot (),
VIDIOC_S_CTRL does have, but did not flip-related code,
from platform providers, the answer is, if the sensor type is set on the software front camera, imaging is the flip, not yet
solution speechless ing. . .
------ reference --------------------------------------- < br> The final solution is: driver set after the camera, with the image registers can be achieved consistent imaging and preview.
Will withheld is done on the platform on which tablet, software android3.0? Hardware platform?
------ reference --------------------------------------- < br>
Oh ...
I have multiple versions of android, hardware tegra2, How about you
------ reference -------------------------- -------------
admire moderators response rate, which is single-threaded do? !
We are mobile: Qualcomm 7x27, software 2.3 2.2, targeting low-end ^ _ ^ ~
------ reference ------------ ---------------------------
Qualcomm Oh we have to do, go home early today, did not work hehe ~ ~ ~
------ reference ----------------- ----------------------
:-), there are rare when the rest
------ reference ----- ----------------------------------
Will, in the code before the camera is how to achieve preview and photos Flip it around 180 degrees, look advice. Thank
------ reference ---------------------------------------
I also encountered this problem. . Hum ~ ~ survey no prospect for a whole day,
ask an expert, said that is normal rollover effects,
compared with a front camera htc phones, shoot out is flipped around. .
This should be the time of the data in the isp has flipped.
------ reference ------------------------------------ ---
In this case there is a problem, that is the side to take the phone to take pictures, thumbnails of people upside down. Edit thumbnails, so consistent with the preview, and photos On the contrary, the problem is solved.
There are four practical questions like this: real image, preview, thumbnails, photos; preview is a camera on the device when the photographer saw dynamic images, thumbnails are pressing the shutter after freeze picture, photo is the ultimate stored.
now mainstream devices such as yiyaaixuexi said, to preview with real image contrast, and thumbnails, photos, and real image the same. This design addresses the following two questions: the preview mirror effect, positive image after storage, the text properly. But the fact that I mentioned earlier question: the preview screen and press the shutter after the "preview" (thumbnail) reverse, the side machine is particularly evident. The solution is simple, the thumbnails into the real image opposite.
------ reference --------------------------------------- < br> add this method allows the lens to normal, but a different program to save the image is not the same, it may be reversed picture
protected void setDisplayOrientation (Camera camera, int angle) {
Method downPolymorphic;
try {
downPolymorphic = camera.getClass (). getMethod (
"setDisplayOrientation", new Class [] {int.class});
if (downPolymorphic! = null)
downPolymorphic.invoke (camera, new Object [] {angle});
} catch (Exception e1) {
}
}
------ reference ----------------------------------- ----
CAMERA there is a problem when the horizontal. Whether IPHONE, Samsung's mobile phone, or something else, there will be a direction 180 degrees upside down? Online brothers said to be G-SENSOR is not sensitive to the issue, there is this BUG decoding?
没有评论:
发表评论