1. Technical Field
Embodiments of the present disclosure generally relate to data processing technology, and particularly to a computing device and a method for processing pictures.
2. Description of Related Arts
Pictures taken by a mobile phone camera may be not clear because of a small camera lens of the mobile phone camera. If the pictures are stored in jpeg format in a mobile phone of the mobile phone camera and transmitted to a computing device, the pictures may be destroyed, and may not be processed effectively.
The disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language. One or more software instructions in the modules may be embedded in hardware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In one embodiment, the processing unit 10 may include one or more function modules (as shown in
A sensor of a camera (not shown in
In step S12, the reading module 100 reads an original picture file in a BAYER format from the first storage unit 20.
In step S14, the adding module 200 adds a bitmap-file header to the original picture file, to obtain a second picture file. The bitmap-file header includes a file type, and a file size, for example.
In step S16, the adding module 200 adds a bitmap-information header to the second picture file, to obtain a third picture file. The bitmap-information header includes a width and a height of the bitmap, for example.
In step S18, the setting module 300 sets a storage bit number of the third picture file. In the embodiment, the set storage bit number is 24 bits.
In step S20, the creating module 400 creates a bitmap picture corresponding to the third picture file according to the set storage bit number. For example, the bitmap picture may be create by calling an application programming interface (API) provided by WINDOWS.
In step S22, the display module 500 displays the bitmap picture on the display device 60 to a user, and prompts the user that the bitmap picture has been obtained successfully. Then, the user can process the bitmap picture (e.g., adjust hue or saturation of the bitmap picture) with a picture processing software (e.g., PHOTOSHOP), to obtain a higher quality picture.
In step S100, the second processor 50 executes a preliminary treatment function to the picture shot by the camera of the mobile phone 2, to obtain the above-mentioned original picture file. The preliminary treatment function includes adjusting focus, brightness, or contrast of the shot picture, for example.
In step S102, the second processor 50 receives a selected storage mode of the original picture file and determines whether the selected storage mode is the BAYER format. In the embodiment, the storage mode may be the BAYER format or the PUV format. If the selected storage mode is not the BAYER format, step S104 is implemented. If the selected storage mode is the BAYER format, step S106 is implemented.
In step S104, the second processor 50 sends the original picture file to a digital signal processor of the mobile phone 2 to process the original picture file.
In step S106, the second storage unit 40 reads and stores the original picture file, then step S108 is implemented.
In step S108, the second storage unit 40 reads residual capacity information of the memory card of the mobile phone 2. In the embodiment, the second storage unit 40 can read the residual capacity information through corresponding functions.
In step S110, the second storage unit 40 determines whether there is enough residual capacity in the memory card for storing the original picture file in the BAYER format. In the embodiment, if the residual capacity is not less than a resolution of the sensor of the camera multiplied by 12 bits, the residual capacity is enough for storing the original picture file in the BAYER format. If there is not enough residual capacity, step S112 is implemented. If there is enough residual capacity, step S114 is implemented.
In step S112, the second storage unit 40 prompts the user that there is not enough residual capacity in the memory card, and sends the original picture file to the digital signal processor to process the original picture file.
In step S114, the second storage unit 40 stores the original picture file to the memory card in the BAYER format, and prompts the user that the original picture file is stored successfully. In the embodiment, the original picture file in the BAYER format may be named according to a time of shooting the picture. It is understood that in other embodiments, the original picture file may be stored to the second storage unit 40 in the BAYER format, and transmitted to the computing device 1 through the BLUETOOTH unit, the wireless unit or the Internet.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210098883.5 | Apr 2012 | CN | national |