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