Improve error reporting of JPEG image encoder
OpenCV issue #2604 After this patch applied an attempt to encode empty images produces exception saying "Raw image encoder error: Empty JPEG image (DNL not supported)"
This commit is contained in:
@@ -100,12 +100,16 @@ public:
|
||||
virtual string getDescription() const;
|
||||
virtual ImageEncoder newEncoder() const;
|
||||
|
||||
virtual void throwOnEror() const;
|
||||
|
||||
protected:
|
||||
string m_description;
|
||||
|
||||
string m_filename;
|
||||
vector<uchar>* m_buf;
|
||||
bool m_buf_supported;
|
||||
|
||||
string m_last_error;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user