Skip to content

Commit 1334450

Browse files
committed
Decklink*: std:: prefixes
1 parent f88fd7a commit 1334450

File tree

5 files changed

+10
-14
lines changed

5 files changed

+10
-14
lines changed

include/DecklinkInput.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class DeckLinkInputDelegate : public IDeckLinkInputCallback
7979
unsigned long final_frameCount;
8080

8181
// Queue of raw video frames
82-
deque<IDeckLinkMutableVideoFrame*> raw_video_frames;
82+
std::deque<IDeckLinkMutableVideoFrame*> raw_video_frames;
8383
openshot::CacheMemory final_frames;
8484

8585
// Convert between YUV and RGB

include/DecklinkOutput.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,14 +93,14 @@ class DeckLinkOutputDelegate : public IDeckLinkVideoOutputCallback, public IDeck
9393

9494
unsigned long frameCount;
9595
//map<int, IDeckLinkMutableVideoFrame* > temp_cache;
96-
map<int, uint8_t * > temp_cache;
96+
std::map<int, uint8_t * > temp_cache;
9797

9898
BMDTimeValue frameRateDuration, frameRateScale;
9999

100100
// Queue of raw video frames
101101
//deque<IDeckLinkMutableVideoFrame*> final_frames;
102-
deque<uint8_t * > final_frames;
103-
deque<std::shared_ptr<openshot::Frame> > raw_video_frames;
102+
std::deque<uint8_t * > final_frames;
103+
std::deque<std::shared_ptr<openshot::Frame> > raw_video_frames;
104104

105105
// Convert between YUV and RGB
106106
IDeckLinkOutput *deckLinkOutput;

include/DecklinkReader.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
#include "Frame.h"
5151
#include "DecklinkInput.h"
5252

53-
using namespace std;
54-
5553
namespace openshot
5654
{
5755

@@ -117,11 +115,11 @@ namespace openshot
117115
bool IsOpen() { return is_open; };
118116

119117
/// Return the type name of the class
120-
string Name() { return "DecklinkReader"; };
118+
std::string Name() { return "DecklinkReader"; };
121119

122120
/// Get and Set JSON methods
123-
string Json(); ///< Generate JSON string of this object
124-
void SetJson(string value); ///< Load JSON string into this object
121+
std::string Json(); ///< Generate JSON string of this object
122+
void SetJson(std::string value); ///< Load JSON string into this object
125123
Json::Value JsonValue(); ///< Generate Json::JsonValue for this object
126124
void SetJsonValue(Json::Value root); ///< Load Json::JsonValue into this object
127125

include/DecklinkWriter.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@
5050
#include "Frame.h"
5151
#include "DecklinkOutput.h"
5252

53-
using namespace std;
54-
5553
namespace openshot
5654
{
5755

src/DecklinkReader.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ std::shared_ptr<Frame> DecklinkReader::GetFrame(int64_t requested_frame)
246246

247247

248248
// Generate JSON string of this object
249-
string DecklinkReader::Json() {
249+
std::string DecklinkReader::Json() {
250250

251251
// Return formatted string
252252
return JsonValue().toStyledString();
@@ -264,14 +264,14 @@ Json::Value DecklinkReader::JsonValue() {
264264
}
265265

266266
// Load JSON string into this object
267-
void DecklinkReader::SetJson(string value) {
267+
void DecklinkReader::SetJson(std::string value) {
268268

269269
// Parse JSON string into JSON objects
270270
Json::Value root;
271271
Json::CharReaderBuilder rbuilder;
272272
Json::CharReader* reader(rbuilder.newCharReader());
273273

274-
string errors;
274+
std::string errors;
275275
bool success = reader->parse( value.c_str(),
276276
value.c_str() + value.size(), &root, &errors );
277277
delete reader;

0 commit comments

Comments
 (0)