1. An image data processing circuit comprising:
a first circuit for calculating an average picture level value of the image data;
a multiplier for multiplying a coefficient by the image data;
a second circuit for calculating a first coefficient for the multiplier based upon the average picture level value;
a third circuit for calculating a second coefficient for the multiplier, the second coefficient being calculated so that the result of multiplying
(1) image data having a value over an input range of a circuit to which data from the multiplier is inputted, and
(2) the second coefficient falls in the input range; and
a selection circuit for selecting the coefficient to be used in the multiplier from the first coefficient calculated by the second circuit and the second coefficient calculated by the third circuit.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A computing device comprising:
a camera comprising a sensor matrix to sense an image;
an orientation determiner to determine a first orientation of the camera;
a communication interface to receive a second orientation from a second computing device; and
a controller to read values from the sensor matrix in a manner so as to generate image data having the second orientation if the second orientation is different from the first orientation.
2. The computing device of claim 1, wherein reading values from the sensor matrix in the manner so as to generate image data having the second orientation comprises changing an order in which the sensor matrix is scanned.
3. The computing device of claim 1, wherein reading values from the sensor matrix in the manner so as to generate image data having the second orientation comprises changing how a location of each sensor element of the sensor matrix is represented.
4. The computing device of claim 1, wherein reading values from the sensor matrix in the manner so as to generate image data having the second orientation comprises reading values from only a subset of sensor elements of the sensor matrix.
5. The computing device of claim 1, wherein the generated image data has a different aspect ratio than would have been generated by the camera in the first orientation.
6. The computing device of claim 1, wherein the communication interface is configured to transmit the generated image data to the second computing device.
7. A method comprising:
sensing an image using an image sensor of a device;
comparing a first orientation of the image sensor to a second orientation;
if the first orientation is the same as the second orientation, reading values from the image sensor in a first manner so as to generate image data having the first orientation; and
if the first orientation differs from the second orientation, reading values from the image sensor in a second manner different from the first manner so as to generate image data having the second orientation.
8. The method of claim 7, further comprising setting the second orientation at a beginning of a communication session between the device and a second device.
9. The method of claim 8, further comprising:
receiving an indication from the second device that an orientation of a display of the second device corresponds to a third orientation; and
setting the second orientation to be equal to the third orientation.
10. The method of claim 7, wherein reading values from the image sensor in the second manner different from the first manner so as to generate image data having the second orientation comprises changing a scan direction of the image sensor.
11. The method of claim 7, wherein reading values from the image sensor in the second manner different from the first manner so as to generate image data having the second orientation comprises reading fewer values than would be read according to the first manner.
12. A non-transitory machine-readable storage medium encoded with instructions executable by a processor of a first computing device, the machine-readable medium comprising:
instructions to determine a first orientation of the first computing device using an orientation sensor;
instructions to compare the first orientation to a second orientation associated with a second computing device; and
instructions to read values from an image sensor in a manner so as to generate image data having the second orientation if the first orientation differs from the second orientation.
13. The machine-readable medium of claim 12, wherein the first orientation is associated with a first aspect ratio different from a second aspect ratio associated with the second orientation.
14. The machine-readable medium of claim 13,
wherein the image sensor comprises a matrix of sensor elements, the matrix comprising a longer dimension and a shorter dimension, and
wherein values are read from the image sensor in the manner so as to generate image data having the second orientation by reading only sensor elements that are within an area of the matrix defined by the shorter dimension and a portion of the longer dimension.
15. The machine-readable medium of claim 14, wherein the portion of the longer dimension is determined based on the shorter dimension and the second aspect ratio.