Commit 8ccca90d authored by Alexander Shishkov's avatar Alexander Shishkov

small changes

added including for precomp
parent 091b48de
...@@ -40,11 +40,13 @@ ...@@ -40,11 +40,13 @@
// //
//M*/ //M*/
#include "precomp.hpp"
#include "grfmt_hdr.hpp" #include "grfmt_hdr.hpp"
#include "rgbe.hpp" #include "rgbe.hpp"
namespace cv namespace cv
{ {
HdrDecoder::HdrDecoder() HdrDecoder::HdrDecoder()
{ {
m_signature = "#?RGBE"; m_signature = "#?RGBE";
......
...@@ -40,9 +40,12 @@ ...@@ -40,9 +40,12 @@
// //
//M*/ //M*/
#include "precomp.hpp"
#include "rgbe.hpp" #include "rgbe.hpp"
#include <math.h> #include <math.h>
#if !defined(__APPLE__)
#include <malloc.h> #include <malloc.h>
#endif
#include <string.h> #include <string.h>
#include <ctype.h> #include <ctype.h>
...@@ -189,7 +192,7 @@ int RGBE_ReadHeader(FILE *fp, int *width, int *height, rgbe_header_info *info) ...@@ -189,7 +192,7 @@ int RGBE_ReadHeader(FILE *fp, int *width, int *height, rgbe_header_info *info)
} }
else if (info) { else if (info) {
info->valid |= RGBE_VALID_PROGRAMTYPE; info->valid |= RGBE_VALID_PROGRAMTYPE;
for(i=0;i<sizeof(info->programtype)-1;i++) { for(i=0;i<static_cast<int>(sizeof(info->programtype)-1);i++) {
if ((buf[i+2] == 0) || isspace(buf[i+2])) if ((buf[i+2] == 0) || isspace(buf[i+2]))
break; break;
info->programtype[i] = buf[i+2]; info->programtype[i] = buf[i+2];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment