mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-15 16:35:06 +03:00
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>
This commit is contained in:
parent
12fdfee68f
commit
f1dbf97eed
3 changed files with 2 additions and 4 deletions
|
@ -128,7 +128,6 @@ MdParser::Status MdParserImx219::Parse(libcamera::Span<const uint8_t> buffer)
|
|||
* registers.
|
||||
*/
|
||||
assert(bits_per_pixel_);
|
||||
assert(num_lines_ || buffer_size_bytes_);
|
||||
/* Need to be ordered */
|
||||
uint32_t regs[3] = { GAIN_REG, EXPHI_REG, EXPLO_REG };
|
||||
reg_offsets_[0] = reg_offsets_[1] = reg_offsets_[2] = -1;
|
||||
|
|
|
@ -117,7 +117,6 @@ MdParser::Status MdParserImx477::Parse(libcamera::Span<const uint8_t> buffer)
|
|||
* registers.
|
||||
*/
|
||||
assert(bits_per_pixel_);
|
||||
assert(num_lines_ || buffer_size_bytes_);
|
||||
/* Need to be ordered */
|
||||
uint32_t regs[4] = {
|
||||
EXPHI_REG,
|
||||
|
|
|
@ -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_;
|
||||
};
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue