-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor encoding/decoding pipeline.
* Add sample format and channels to MediaInfo struct. * Move MediaInfo, RTPInfo, ProcessorType structs into a single file. * Abstract audio/video enc/dec from Input/OutputProcessor. * Abstract basic enc/dec FFmpeg API into Coder class. * Rename variables to follow cpp code guideline.
- Loading branch information
Showing
12 changed files
with
442 additions
and
598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#ifndef ERIZO_SRC_ERIZO_MEDIA_MEDIAINFO_H_ | ||
#define ERIZO_SRC_ERIZO_MEDIA_MEDIAINFO_H_ | ||
|
||
extern "C" { | ||
#include <libavcodec/avcodec.h> | ||
} | ||
|
||
#include <string> | ||
#include "codecs/Codecs.h" | ||
|
||
namespace erizo { | ||
|
||
struct RTPInfo { | ||
enum AVCodecID codec; | ||
unsigned int ssrc; | ||
unsigned int PT; | ||
}; | ||
|
||
enum ProcessorType { | ||
RTP_ONLY, AVF, PACKAGE_ONLY | ||
}; | ||
|
||
struct MediaInfo { | ||
std::string url; | ||
bool hasVideo; | ||
bool hasAudio; | ||
ProcessorType processorType; | ||
RTPInfo rtpVideoInfo; | ||
RTPInfo rtpAudioInfo; | ||
VideoCodecInfo videoCodec; | ||
AudioCodecInfo audioCodec; | ||
}; | ||
|
||
} // namespace erizo | ||
|
||
#endif // ERIZO_SRC_ERIZO_MEDIA_MEDIAINFO_H_ |
Oops, something went wrong.