| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
package com.drew.metadata.heif.boxes; |
| 22 |
|
| 23 |
import com.drew.lang.SequentialReader; |
| 24 |
import com.drew.metadata.heif.HeifDirectory; |
| 25 |
|
| 26 |
import java.io.IOException; |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
public class ImageSpatialExtentsProperty extends FullBox |
| 32 |
{ |
| 33 |
long width; |
| 34 |
long height; |
| 35 |
|
| 36 |
public ImageSpatialExtentsProperty(SequentialReader reader, Box box) throws IOException |
| 37 |
{ |
| 38 |
super(reader, box); |
| 39 |
|
| 40 |
width = reader.getUInt32(); |
| 41 |
height = reader.getUInt32(); |
| 42 |
} |
| 43 |
|
| 44 |
public void addMetadata(HeifDirectory directory) |
| 45 |
{ |
| 46 |
if (!directory.containsTag(HeifDirectory.TAG_IMAGE_WIDTH) && !directory.containsTag(HeifDirectory.TAG_IMAGE_HEIGHT)) { |
| 47 |
directory.setLong(HeifDirectory.TAG_IMAGE_WIDTH, width); |
| 48 |
directory.setLong(HeifDirectory.TAG_IMAGE_HEIGHT, height); |
| 49 |
} |
| 50 |
} |
| 51 |
} |