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