mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-02 08:17:33 +08:00
规范对象命名
This commit is contained in:
@@ -109,7 +109,7 @@ public:
|
||||
virtual bool containVideo() const { return false; };
|
||||
|
||||
virtual int getTrackCount() const { return 0;};
|
||||
virtual TrackFormat::Ptr getTrack(int index) const {return nullptr;};
|
||||
virtual Track::Ptr getTrack(int index) const {return nullptr;};
|
||||
protected:
|
||||
virtual void onShutdown(const SockException &ex) {};
|
||||
virtual void onPlayResult(const SockException &ex) {};
|
||||
|
||||
@@ -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