mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-03 09:05:30 +00:00
trunk contents moved to root
This commit is contained in:
61
libsrc/avi/src/org/monte/media/FormatKeys.java
Normal file
61
libsrc/avi/src/org/monte/media/FormatKeys.java
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
* @(#)FormatKeys.java
|
||||
*
|
||||
* Copyright (c) 2011 Werner Randelshofer, Goldau, Switzerland.
|
||||
* All rights reserved.
|
||||
*
|
||||
* You may not use, copy or modify this file, except in compliance with the
|
||||
* license agreement you entered into with Werner Randelshofer.
|
||||
* For details see accompanying license terms.
|
||||
*/
|
||||
package org.monte.media;
|
||||
|
||||
import org.monte.media.math.Rational;
|
||||
|
||||
/**
|
||||
* Defines common {@code FormatKey}'s.
|
||||
*
|
||||
* @author Werner Randelshofer
|
||||
* @version $Id: FormatKeys.java 299 2013-01-03 07:40:18Z werner $
|
||||
*/
|
||||
public class FormatKeys {
|
||||
public static enum MediaType {
|
||||
AUDIO,
|
||||
VIDEO,
|
||||
MIDI,
|
||||
TEXT,
|
||||
META,
|
||||
FILE
|
||||
}
|
||||
/**
|
||||
* The media MediaTypeKey.
|
||||
*/
|
||||
public final static FormatKey<MediaType> MediaTypeKey = new FormatKey<MediaType>("mediaType", MediaType.class);
|
||||
/**
|
||||
* The EncodingKey.
|
||||
*/
|
||||
public final static FormatKey<String> EncodingKey = new FormatKey<String>("encoding", String.class);
|
||||
|
||||
//
|
||||
public final static String MIME_AVI = "video/avi";
|
||||
public final static String MIME_QUICKTIME = "video/quicktime";
|
||||
public final static String MIME_MP4 = "video/mp4";
|
||||
public final static String MIME_JAVA = "Java";
|
||||
public final static String MIME_ANIM = "x-iff/anim";
|
||||
public final static String MIME_IMAGE_SEQUENCE = "ImageSequence";
|
||||
/**
|
||||
* The mime type.
|
||||
*/
|
||||
public final static FormatKey<String> MimeTypeKey = new FormatKey<String>("mimeType", String.class);
|
||||
/**
|
||||
* The number of frames per second.
|
||||
*/
|
||||
public final static FormatKey<Rational> FrameRateKey = new FormatKey<Rational>("frameRate", Rational.class);
|
||||
|
||||
/**
|
||||
* The interval between key frames.
|
||||
* If this value is not specified, most codecs will use {@code FrameRateKey}
|
||||
* as a hint and try to produce one key frame per second.
|
||||
*/
|
||||
public final static FormatKey<Integer> KeyFrameIntervalKey = new FormatKey<Integer>("keyFrameInterval", Integer.class);
|
||||
}
|
||||
Reference in New Issue
Block a user