All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.googlecode.mp4parser.boxes.apple.TrackProductionApertureDimensionsAtom Maven / Gradle / Ivy

Go to download

A generic parser and writer for all ISO 14496 based files (MP4, Quicktime, DCF, PDCF, ...)

There is a newer version: 1.1.22
Show newest version
package com.googlecode.mp4parser.boxes.apple;

import com.coremedia.iso.IsoTypeReader;
import com.coremedia.iso.IsoTypeWriter;
import com.googlecode.mp4parser.AbstractFullBox;

import java.nio.ByteBuffer;

/**
 * 

4cc = "{@value #TYPE}"

* This atom carries the pixel dimensions of the track’s production aperture. The type of * the track production aperture dimensions atom is 'prof'. */ public class TrackProductionApertureDimensionsAtom extends AbstractFullBox { public static final String TYPE = "prof"; double width; double height; public TrackProductionApertureDimensionsAtom() { super(TYPE); } @Override protected long getContentSize() { return 12; } @Override protected void getContent(ByteBuffer byteBuffer) { writeVersionAndFlags(byteBuffer); IsoTypeWriter.writeFixedPoint1616(byteBuffer, width); IsoTypeWriter.writeFixedPoint1616(byteBuffer, height); } @Override protected void _parseDetails(ByteBuffer content) { parseVersionAndFlags(content); width = IsoTypeReader.readFixedPoint1616(content); height = IsoTypeReader.readFixedPoint1616(content); } public double getWidth() { return width; } public void setWidth(double width) { this.width = width; } public double getHeight() { return height; } public void setHeight(double height) { this.height = height; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy