47 lines
1004 B
Java

package net.knarcraft.ffmpegconverter.streams;
/**
* An object representation of a stream in a media file
*/
public abstract class StreamObject {
int absoluteIndex;
int relativeIndex;
String codecName;
String codecType;
/**
* Gets the type of the stream codec (video/audio/subtitle)
*
* @return <p>Codec type.</p>
*/
public String getCodecType() {
return this.codecType;
}
/**
* Gets the name of the stream codec
*
* @return <p>Codec name.</p>
*/
String getCodecName() {
return this.codecName;
}
/**
* Gets the absolute index of a stream object
*
* @return <p>Absolute index.</p>
*/
public int getAbsoluteIndex() {
return this.absoluteIndex;
}
/**
* Gets the relative index of a stream object (kth element of codec type)
*
* @return <p>Relative index.</p>
*/
public int getRelativeIndex() {
return this.relativeIndex;
}
}