Decklink*: std:: prefixes

This commit is contained in:
FeRD (Frank Dana)
2019-08-04 23:14:38 -04:00
parent f88fd7a47a
commit 1334450eec
5 changed files with 10 additions and 14 deletions

View File

@@ -79,7 +79,7 @@ public:
unsigned long final_frameCount;
// Queue of raw video frames
deque<IDeckLinkMutableVideoFrame*> raw_video_frames;
std::deque<IDeckLinkMutableVideoFrame*> raw_video_frames;
openshot::CacheMemory final_frames;
// Convert between YUV and RGB

View File

@@ -93,14 +93,14 @@ protected:
unsigned long frameCount;
//map<int, IDeckLinkMutableVideoFrame* > temp_cache;
map<int, uint8_t * > temp_cache;
std::map<int, uint8_t * > temp_cache;
BMDTimeValue frameRateDuration, frameRateScale;
// Queue of raw video frames
//deque<IDeckLinkMutableVideoFrame*> final_frames;
deque<uint8_t * > final_frames;
deque<std::shared_ptr<openshot::Frame> > raw_video_frames;
std::deque<uint8_t * > final_frames;
std::deque<std::shared_ptr<openshot::Frame> > raw_video_frames;
// Convert between YUV and RGB
IDeckLinkOutput *deckLinkOutput;

View File

@@ -50,8 +50,6 @@
#include "Frame.h"
#include "DecklinkInput.h"
using namespace std;
namespace openshot
{
@@ -117,11 +115,11 @@ namespace openshot
bool IsOpen() { return is_open; };
/// Return the type name of the class
string Name() { return "DecklinkReader"; };
std::string Name() { return "DecklinkReader"; };
/// Get and Set JSON methods
string Json(); ///< Generate JSON string of this object
void SetJson(string value); ///< Load JSON string into this object
std::string Json(); ///< Generate JSON string of this object
void SetJson(std::string value); ///< Load JSON string into this object
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object

View File

@@ -50,8 +50,6 @@
#include "Frame.h"
#include "DecklinkOutput.h"
using namespace std;
namespace openshot
{

View File

@@ -246,7 +246,7 @@ std::shared_ptr<Frame> DecklinkReader::GetFrame(int64_t requested_frame)
// Generate JSON string of this object
string DecklinkReader::Json() {
std::string DecklinkReader::Json() {
// Return formatted string
return JsonValue().toStyledString();
@@ -264,14 +264,14 @@ Json::Value DecklinkReader::JsonValue() {
}
// Load JSON string into this object
void DecklinkReader::SetJson(string value) {
void DecklinkReader::SetJson(std::string value) {
// Parse JSON string into JSON objects
Json::Value root;
Json::CharReaderBuilder rbuilder;
Json::CharReader* reader(rbuilder.newCharReader());
string errors;
std::string errors;
bool success = reader->parse( value.c_str(),
value.c_str() + value.size(), &root, &errors );
delete reader;