IT. Expert System.

Android Reference

MiniThumbFile


android.media

Class MiniThumbFile



  • public class MiniThumbFile
    extends Object
    This class handles the mini-thumb file. A mini-thumb file consists of blocks, indexed by id. Each block has BYTES_PER_MINTHUMB bytes in the following format: 1 byte status (0 = empty, 1 = mini-thumb available) 8 bytes magic (a magic number to match what's in the database) 4 bytes data length (LEN) LEN bytes jpeg data (the remaining bytes are unused)
    • Constructor Detail

      • MiniThumbFile

        public MiniThumbFile(Uri uri)
    • Method Detail

      • reset

        public static void reset()
        We store different types of thumbnails in different files. To remain backward compatibility, we should hashcode of content://media/external/images/media remains the same.
      • deactivate

        public void deactivate()
      • getMagic

        public long getMagic(long id)
      • saveMiniThumbToFile

        public void saveMiniThumbToFile(byte[] data,
                               long id,
                               long magic)
                                 throws IOException
        Throws:
        IOException
      • getMiniThumbFromFile

        public byte[] getMiniThumbFromFile(long id,
                                  byte[] data)
        Gallery app can use this method to retrieve mini-thumbnail. Full size images share the same IDs with their corresponding thumbnails.
        Parameters:
        id - the ID of the image (same of full size image).
        data - the buffer to store mini-thumbnail.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 171 / 158695322. Delta: 0.02977 с