You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
ImageReader/ImageWriter: std:: prefixes
This commit is contained in:
@@ -35,14 +35,14 @@
|
||||
|
||||
using namespace openshot;
|
||||
|
||||
ImageReader::ImageReader(string path) : path(path), is_open(false)
|
||||
ImageReader::ImageReader(std::string path) : path(path), is_open(false)
|
||||
{
|
||||
// Open and Close the reader, to populate its attributes (such as height, width, etc...)
|
||||
Open();
|
||||
Close();
|
||||
}
|
||||
|
||||
ImageReader::ImageReader(string path, bool inspect_reader) : path(path), is_open(false)
|
||||
ImageReader::ImageReader(std::string path, bool inspect_reader) : path(path), is_open(false)
|
||||
{
|
||||
// Open and Close the reader, to populate its attributes (such as height, width, etc...)
|
||||
if (inspect_reader) {
|
||||
@@ -136,7 +136,7 @@ std::shared_ptr<Frame> ImageReader::GetFrame(int64_t requested_frame)
|
||||
}
|
||||
|
||||
// Generate JSON string of this object
|
||||
string ImageReader::Json() {
|
||||
std::string ImageReader::Json() {
|
||||
|
||||
// Return formatted string
|
||||
return JsonValue().toStyledString();
|
||||
@@ -155,14 +155,14 @@ Json::Value ImageReader::JsonValue() {
|
||||
}
|
||||
|
||||
// Load JSON string into this object
|
||||
void ImageReader::SetJson(string value) {
|
||||
void ImageReader::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;
|
||||
|
||||
Reference in New Issue
Block a user