Scanner C++ API
ingest.h
1 /* Copyright 2016 Carnegie Mellon University, NVIDIA Corporation
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #pragma once
17 
18 #include "scanner/api/database.h"
19 #include "scanner/util/common.h"
20 
21 #include "storehouse/storage_backend.h"
22 #include "storehouse/storage_config.h"
23 
24 #include <string>
25 
26 namespace scanner {
27 namespace internal {
28 
29 Result ingest_videos(storehouse::StorageConfig* storage_config,
30  const std::string& db_path,
31  const std::vector<std::string>& table_names,
32  const std::vector<std::string>& paths,
33  bool inplace,
34  std::vector<FailedVideo>& failed_videos);
35 
36 // void ingest_images(storehouse::StorageConfig *storage_config,
37 // const std::string &db_path, const std::string &table_name,
38 // const std::vector<std::string> &paths);
39 }
40 }
Definition: database.cpp:36