imgcodecs: fix test build with disabled JPEG and PNG libs
imgcodecs: fix test build with disabled JPEG and PNG libs

opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv,opencv/opencv