Thumbdata3 data format in Android

Source: Internet
Author: User

/Mnt/sdcard/dcim/. thumbnails/. thumbdata3 -- 1967290299 the details of this file are described as follows:
Access this file through the interface provided by the minithumbfile. Java file.
The saveminithumbtofile stores the thumbnail in this file.
Getminithumbfromfile extracts the thumbnail from this file.
This file name comes from the directory name + "/. thumbdata" + version + "-" + muri. hashcode () of the SD card. The version is usually mini_thumb_data_file_version.
This file stores a series of small graph data volumes, each of which contains a small JPEG and header information, plus the filled 0. Each volume is 10000 bytes (bytes_per_minthumb = 1000 ).
If the size of the JPEG to be stored exceeds 10000 bytes, give up. The header information contains 13 Bytes: the first byte is 0x01, 2nd to 9 bytes is a random number known as magic, and 10th to 13 bytes are followed by the number of JPEG bytes.
| 01 | magic | fig | JPEG bytes | Padding Bytes 0... |
. Thumbdata3 -- 1967290299 stores micro kind (Android. provider. mediastore. images. thumbnails. micro_kind) the size of a small image is 96X96 (target_size_micro_thumbnail). All images generate such a small image. Each small image occupies a volume of 10000 bytes in this file.
There is also a small 512*384 image, for Android. provider. mediastore. images. thumbnails. the mini_kind type is directly stored as a jpeg in/mnt/sdcard/dcim /. A series of JPEG values in thumbnails/are them.

/Mnt/sdcard/dcim /. thumbnails /. thumbdata3 -- 1967290299 is directly accessed by three processes, namely camera, gallery, and mediaprovider. Therefore, processkiller kill the SD card when they are unplugged.

The above analysis is based on the source code of android2.3.4.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.