Improve error reporting of JPEG image encoder
authorAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 28 Jan 2013 11:49:31 +0000 (15:49 +0400)
committerAndrey Kamaev <andrey.kamaev@itseez.com>
Mon, 28 Jan 2013 12:55:00 +0000 (16:55 +0400)
commit255cd61a8cd6130072a110dd96a40e68ae065fbf
tree9f648abd99816bd8af5669d149b445ba7369418b
parent8521ac5d2158571ef347aac89c533d3737d0e3a9
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)"
modules/highgui/src/grfmt_base.cpp
modules/highgui/src/grfmt_base.hpp
modules/highgui/src/grfmt_jpeg.cpp
modules/highgui/src/loadsave.cpp
modules/highgui/test/test_grfmt.cpp