001package net.bramp.ffmpeg.probe;
002
003import net.bramp.ffmpeg.shared.CodecType;
004
005/** Represents a decoded frame from an FFprobe result. */
006public class FFmpegFrame implements FFmpegFrameOrPacket {
007  public CodecType media_type;
008  public int stream_index;
009  public int key_frame;
010  public long pkt_pts;
011  public double pkt_pts_time;
012  public long pkt_dts;
013  public double pkt_dts_time;
014  public long best_effort_timestamp;
015  public float best_effort_timestamp_time;
016  public long pkt_duration;
017  public float pkt_duration_time;
018  public long pkt_pos;
019  public long pkt_size;
020  public String sample_fmt;
021  public int nb_samples;
022  public int channels;
023  public String channel_layout;
024
025  public CodecType getMediaType() {
026    return media_type;
027  }
028
029  public int getStreamIndex() {
030    return stream_index;
031  }
032
033  public int getKeyFrame() {
034    return key_frame;
035  }
036
037  public long getPktPts() {
038    return pkt_pts;
039  }
040
041  public double getPktPtsTime() {
042    return pkt_pts_time;
043  }
044
045  public long getPktDts() {
046    return pkt_dts;
047  }
048
049  public double getPktDtsTime() {
050    return pkt_dts_time;
051  }
052
053  public long getBestEffortTimestamp() {
054    return best_effort_timestamp;
055  }
056
057  public float getBestEffortTimestampTime() {
058    return best_effort_timestamp_time;
059  }
060
061  public long getPktDuration() {
062    return pkt_duration;
063  }
064
065  public float getPktDurationTime() {
066    return pkt_duration_time;
067  }
068
069  public long getPktPos() {
070    return pkt_pos;
071  }
072
073  public long getPktSize() {
074    return pkt_size;
075  }
076
077  public String getSampleFmt() {
078    return sample_fmt;
079  }
080
081  public int getNbSamples() {
082    return nb_samples;
083  }
084
085  public int getChannels() {
086    return channels;
087  }
088
089  public String getChannelLayout() {
090    return channel_layout;
091  }
092}