[x265] [PATCH] param: added x265_atof as internal encoder function, moved to namespace "X265_NS"
praveen at multicorewareinc.com
praveen at multicorewareinc.com
Fri Jun 19 15:28:47 CEST 2015
# HG changeset patch
# User Praveen Tiwari <praveen at multicorewareinc.com>
# Date 1434720481 -19800
# Fri Jun 19 18:58:01 2015 +0530
# Node ID f53934a895e1ffc04edeae11183ad3556c09467b
# Parent 44b6b2df7016f0129e66d91e9aab03261d02758a
param: added x265_atof as internal encoder function, moved to namespace "X265_NS"
diff -r 44b6b2df7016 -r f53934a895e1 source/common/param.cpp
--- a/source/common/param.cpp Fri Jun 19 16:43:29 2015 +0530
+++ b/source/common/param.cpp Fri Jun 19 18:58:01 2015 +0530
@@ -471,16 +471,6 @@
return 0;
}
-static double x265_atof(const char* str, bool& bError)
-{
- char *end;
- double v = strtod(str, &end);
-
- if (end == str || *end != '\0')
- bError = true;
- return v;
-}
-
static int parseName(const char* arg, const char* const* names, bool& bError)
{
for (int i = 0; names[i]; i++)
@@ -890,6 +880,16 @@
return v;
}
+double x265_atof(const char* str, bool& bError)
+{
+ char *end;
+ double v = strtod(str, &end);
+
+ if (end == str || *end != '\0')
+ bError = true;
+ return v;
+}
+
/* cpu name can be:
* auto || true - x265::cpu_detect()
* false || no - disabled
diff -r 44b6b2df7016 -r f53934a895e1 source/common/param.h
--- a/source/common/param.h Fri Jun 19 16:43:29 2015 +0530
+++ b/source/common/param.h Fri Jun 19 18:58:01 2015 +0530
@@ -2,6 +2,7 @@
* Copyright (C) 2013 x265 project
*
* Authors: Deepthi Nandakumar <deepthi at multicorewareinc.com>
+ * Praveen Kumar Tiwari <praveen at multicorewareinc.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -33,6 +34,7 @@
void x265_param_apply_fastfirstpass(x265_param *p);
char* x265_param2string(x265_param *param);
int x265_atoi(const char *str, bool& bError);
+double x265_atof(const char *str, bool& bError);
int parseCpuName(const char *value, bool& bError);
void setParamAspectRatio(x265_param *p, int width, int height);
void getParamAspectRatio(x265_param *p, int& width, int& height);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x265.patch
Type: text/x-patch
Size: 2090 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20150619/6a023cba/attachment.bin>
More information about the x265-devel
mailing list