forked from mia/Aegisub
Add files to media namespace.
Originally committed to SVN as r5305.
This commit is contained in:
parent
37bcd0cc12
commit
0c15005cc2
6 changed files with 29 additions and 0 deletions
|
@ -52,6 +52,8 @@
|
|||
#include "video_context.h"
|
||||
#include "video_provider_avs.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
/// @brief Constructor
|
||||
/// @param _filename
|
||||
///
|
||||
|
@ -289,3 +291,5 @@ wxString AvisynthVideoProvider::GetWarning() const {
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
} // namespace media
|
||||
|
|
|
@ -38,6 +38,8 @@
|
|||
#include "avisynth_wrap.h"
|
||||
#include "include/aegisub/video_provider.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
/// DOCME
|
||||
/// @class AvisynthVideoProvider
|
||||
/// @brief DOCME
|
||||
|
@ -97,3 +99,6 @@ public:
|
|||
wxString GetDecoderName() const { return wxString(L"Avisynth/") + decoderName; }
|
||||
};
|
||||
#endif
|
||||
|
||||
} // namespace media
|
||||
|
||||
|
|
|
@ -43,6 +43,8 @@
|
|||
#include "colorspace.h"
|
||||
#include "video_provider_dummy.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
/// @brief Constructor
|
||||
/// @param _fps
|
||||
/// @param frames
|
||||
|
@ -216,3 +218,6 @@ const AegiVideoFrame DummyVideoProvider::GetFrame(int n) {
|
|||
lastFrame = n;
|
||||
return frame;
|
||||
}
|
||||
|
||||
} // namespace media
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
|
||||
#include "include/aegisub/video_provider.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
/// DOCME
|
||||
/// @class DummyVideoProvider
|
||||
/// @brief DOCME
|
||||
|
@ -84,3 +86,6 @@ public:
|
|||
std::vector<int> GetKeyFrames() const { return std::vector<int>(); };
|
||||
wxString GetDecoderName() const { return L"Dummy Video Provider"; }
|
||||
};
|
||||
|
||||
} // namespace media
|
||||
|
||||
|
|
|
@ -42,6 +42,8 @@
|
|||
#include "utils.h"
|
||||
#include "video_provider_yuv4mpeg.h"
|
||||
|
||||
namespace media {
|
||||
|
||||
// All of this cstdio bogus is because of one reason and one reason only:
|
||||
// MICROSOFT'S IMPLEMENTATION OF STD::FSTREAM DOES NOT SUPPORT FILES LARGER THAN 2 GB.
|
||||
// (yes, really)
|
||||
|
@ -419,3 +421,6 @@ const AegiVideoFrame YUV4MPEGVideoProvider::GetFrame(int n) {
|
|||
|
||||
return dst_frame;
|
||||
}
|
||||
|
||||
} // namespace media
|
||||
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
#include <wx/log.h>
|
||||
#endif
|
||||
|
||||
namespace media {
|
||||
|
||||
/// the maximum allowed header length, in bytes
|
||||
#define YUV4MPEG_HEADER_MAXLEN 128
|
||||
|
||||
|
@ -152,3 +154,6 @@ public:
|
|||
wxString GetDecoderName() const { return L"YU4MPEG"; };
|
||||
bool WantsCaching() const { return true; };
|
||||
};
|
||||
|
||||
} // namespace media
|
||||
|
||||
|
|
Loading…
Reference in a new issue