summaryrefslogtreecommitdiff
path: root/src/ipa/raspberrypi/md_parser.hpp
diff options
context:
space:
mode:
authorNaushir Patuck <naush@raspberrypi.com>2021-06-14 10:53:36 +0100
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-06-15 12:50:05 +0300
commitf1dbf97eed6988461303ce02269dd13c39e77390 (patch)
tree10a40d3b18c67f78e64be97cc2d06390927bebe4 /src/ipa/raspberrypi/md_parser.hpp
parent12fdfee68ff854b2d645ab2fb4a9f928fe9157a8 (diff)
ipa: raspberrypi: Set default values for member variables of MdParser
Set some sensible default values for member variables of the MdParser class. Remove buffer_size_bytes_ along with some related asserts as this class now uses libcamera::Span for buffer handling, and buffer_size_bytes_ is unused. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'src/ipa/raspberrypi/md_parser.hpp')
-rw-r--r--src/ipa/raspberrypi/md_parser.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipa/raspberrypi/md_parser.hpp b/src/ipa/raspberrypi/md_parser.hpp
index ca31faa7..65aab02d 100644
--- a/src/ipa/raspberrypi/md_parser.hpp
+++ b/src/ipa/raspberrypi/md_parser.hpp
@@ -71,7 +71,8 @@ public:
ERROR = 2
};
- MdParser() : reset_(true)
+ MdParser()
+ : reset_(true), bits_per_pixel_(0), num_lines_(0), line_length_bytes_(0)
{
}
@@ -106,7 +107,6 @@ protected:
int bits_per_pixel_;
unsigned int num_lines_;
unsigned int line_length_bytes_;
- unsigned int buffer_size_bytes_;
};
/*