Home | History | Annotate | Download | only in exif

Lines Matching defs:tag

62     private static final String TAG = LogUtil.BUGLE_TAG;
157 // until SOF tag.
163 short tag = mBuffer.getShort();
164 if (tag == JpegHeader.EOI) {
215 Log.v(TAG, "Writing exif data...");
289 for (ExifTag tag : tags) {
290 dataOutputStream.writeShort(tag.getTagId());
291 dataOutputStream.writeShort(tag.getDataType());
292 dataOutputStream.writeInt(tag.getComponentCount());
294 Log.v(TAG, "\n" + tag.toString());
296 if (tag.getDataSize() > 4) {
297 dataOutputStream.writeInt(tag.getOffset());
299 ExifOutputStream.writeTagValue(tag, dataOutputStream);
300 for (int i = 0, n = 4 - tag.getDataSize(); i < n; i++) {
306 for (ExifTag tag : tags) {
307 if (tag.getDataSize() > 4) {
308 ExifOutputStream.writeTagValue(tag, dataOutputStream);
316 for (ExifTag tag : tags) {
317 if (tag.getDataSize() > 4) {
318 tag.setOffset(offset);
319 offset += tag.getDataSize();
334 throw new IOException("No definition for crucial exif tag: "
351 throw new IOException("No definition for crucial exif tag: "
363 throw new IOException("No definition for crucial exif tag: "
382 throw new IOException("No definition for crucial exif tag: "
390 throw new IOException("No definition for crucial exif tag: "
408 throw new IOException("No definition for crucial exif tag: "
414 throw new IOException("No definition for crucial exif tag: "
484 static void writeTagValue(ExifTag tag, OrderedDataOutputStream dataOutputStream)
486 switch (tag.getDataType()) {
488 byte buf[] = tag.getStringByte();
489 if (buf.length == tag.getComponentCount()) {
499 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
500 dataOutputStream.writeInt((int) tag.getValueAt(i));
505 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
506 dataOutputStream.writeRational(tag.getRational(i));
511 buf = new byte[tag.getComponentCount()];
512 tag.getBytes(buf);
516 for (int i = 0, n = tag.getComponentCount(); i < n; i++) {
517 dataOutputStream.writeShort((short) tag.getValueAt(i));