mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-30 23:02:24 +08:00
规范对象命名
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
using namespace std;
|
||||
using namespace ZL::Util;
|
||||
|
||||
class TrackFormat : public FrameRingInterface , public CodecInfo{
|
||||
class Track : public FrameRingInterface , public CodecInfo{
|
||||
public:
|
||||
typedef std::shared_ptr<TrackFormat> Ptr;
|
||||
TrackFormat(){}
|
||||
virtual ~TrackFormat(){}
|
||||
typedef std::shared_ptr<Track> Ptr;
|
||||
Track(){}
|
||||
virtual ~Track(){}
|
||||
};
|
||||
|
||||
class VideoTrackFormat : public TrackFormat {
|
||||
class VideoTrack : public Track {
|
||||
public:
|
||||
TrackType getTrackType() const override { return TrackVideo;};
|
||||
virtual int getVideoHeight() const = 0;
|
||||
@@ -29,7 +29,7 @@ public:
|
||||
virtual float getVideoFps() const = 0;
|
||||
};
|
||||
|
||||
class AudioTrackFormat : public TrackFormat {
|
||||
class AudioTrack : public Track {
|
||||
public:
|
||||
TrackType getTrackType() const override { return TrackAudio;};
|
||||
virtual int getAudioSampleRate() const = 0;
|
||||
@@ -37,9 +37,9 @@ public:
|
||||
virtual int getAudioChannel() const = 0;
|
||||
};
|
||||
|
||||
class H264TrackFormat : public VideoTrackFormat{
|
||||
class H264Track : public VideoTrack{
|
||||
public:
|
||||
H264TrackFormat(const string &sps,const string &pps){
|
||||
H264Track(const string &sps,const string &pps){
|
||||
_sps = sps;
|
||||
_pps = pps;
|
||||
}
|
||||
@@ -57,9 +57,9 @@ private:
|
||||
string _pps;
|
||||
};
|
||||
|
||||
class AACTrackFormat : public AudioTrackFormat{
|
||||
class AACTrack : public AudioTrack{
|
||||
public:
|
||||
AACTrackFormat(const string &aac_cfg){
|
||||
AACTrack(const string &aac_cfg){
|
||||
_cfg = aac_cfg;
|
||||
}
|
||||
const string &getAacCfg() const{
|
||||
|
||||
Reference in New Issue
Block a user