Home | History | Annotate | Download | only in exif

Lines Matching defs:tag

61     private static final Log.Tag TAG = new Log.Tag("ExifOutputStream");
156 // until SOF tag.
162 short tag = mBuffer.getShort();
163 if (tag == JpegHeader.EOI) {
214 Log.v(TAG, "Writing exif data...");
285 for (ExifTag tag : tags) {
286 dataOutputStream.writeShort(tag.getTagId());
287 dataOutputStream.writeShort(tag.getDataType());
288 dataOutputStream.writeInt(tag.getComponentCount());
290 Log.v(TAG, "\n" + tag.toString());
292 if (tag.getDataSize() > 4) {
293 dataOutputStream.writeInt(tag.getOffset());
295 ExifOutputStream.writeTagValue(tag, dataOutputStream);
296 for (int i = 0, n = 4 - tag.getDataSize(); i < n; i++) {
302 for (ExifTag tag : tags) {
303 if (tag.getDataSize() > 4) {
304 ExifOutputStream.writeTagValue(tag, dataOutputStream);
312 for (ExifTag tag : tags) {
313 if (tag.getDataSize() > 4) {
314 tag.setOffset(offset);
315 offset += tag.getDataSize();
330 throw new IOException("No definition for crucial exif tag: "
347 throw new IOException("No definition for crucial exif tag: "
359 throw new IOException("No definition for crucial exif tag: "
378 throw new IOException("No definition for crucial exif tag: "
386 throw new IOException("No definition for crucial exif tag: "
404 throw new IOException("No definition for crucial exif tag: "
410 throw new IOException("No definition for crucial exif tag: "
480 static void writeTagValue(ExifTag tag, OrderedDataOutputStream dataOutputStream)
482 switch (tag.getDataType()) {
484 byte buf[] = tag.getStringByte();
485 if (buf.length == tag.getComponentCount()) {
495 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
496 dataOutputStream.writeInt((int) tag.getValueAt(i));
501 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
502 dataOutputStream.writeRational(tag.getRational(i));
507 buf = new byte[tag.getComponentCount()];
508 tag.getBytes(buf);
512 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
513 dataOutputStream.writeShort((short) tag.getValueAt(i));