From 8ccca90dca48d10f43dc18ff07dfaaca3190da94 Mon Sep 17 00:00:00 2001 From: Alexander Shishkov Date: Thu, 18 Jul 2013 00:28:40 +0400 Subject: [PATCH] small changes added including for precomp --- modules/highgui/src/grfmt_hdr.cpp | 2 ++ modules/highgui/src/rgbe.cpp | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/highgui/src/grfmt_hdr.cpp b/modules/highgui/src/grfmt_hdr.cpp index 288f73d1cd..3f273043b6 100644 --- a/modules/highgui/src/grfmt_hdr.cpp +++ b/modules/highgui/src/grfmt_hdr.cpp @@ -40,11 +40,13 @@ // //M*/ +#include "precomp.hpp" #include "grfmt_hdr.hpp" #include "rgbe.hpp" namespace cv { + HdrDecoder::HdrDecoder() { m_signature = "#?RGBE"; diff --git a/modules/highgui/src/rgbe.cpp b/modules/highgui/src/rgbe.cpp index 645f681aa0..6567d81eec 100644 --- a/modules/highgui/src/rgbe.cpp +++ b/modules/highgui/src/rgbe.cpp @@ -40,9 +40,12 @@ // //M*/ +#include "precomp.hpp" #include "rgbe.hpp" #include +#if !defined(__APPLE__) #include +#endif #include #include @@ -189,7 +192,7 @@ int RGBE_ReadHeader(FILE *fp, int *width, int *height, rgbe_header_info *info) } else if (info) { info->valid |= RGBE_VALID_PROGRAMTYPE; - for(i=0;iprogramtype)-1;i++) { + for(i=0;i(sizeof(info->programtype)-1);i++) { if ((buf[i+2] == 0) || isspace(buf[i+2])) break; info->programtype[i] = buf[i+2];