2
This file is part of darktable,
3
copyright (c) 2010 Henrik Andersson.
5
darktable is free software: you can redistribute it and/or modify
6
it under the terms of the GNU General Public License as published by
7
the Free Software Foundation, either version 3 of the License, or
8
(at your option) any later version.
10
darktable is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
15
You should have received a copy of the GNU General Public License
16
along with darktable. If not, see <http://www.gnu.org/licenses/>.
19
#include "common/film.h"
20
#include "control/jobs/film_jobs.h"
22
void dt_film_import1_init(dt_job_t *job, dt_film_t *film)
24
dt_control_job_init(job, "cache load raw images for preview");
25
job->execute = &dt_film_import1_run;
26
dt_film_import1_t *t = (dt_film_import1_t *)job->param;
28
dt_pthread_mutex_lock(&film->images_mutex);
30
dt_pthread_mutex_unlock(&film->images_mutex);
33
int32_t dt_film_import1_run(dt_job_t *job)
35
dt_film_import1_t *t = (dt_film_import1_t *)job->param;
36
dt_film_import1(t->film);
37
dt_pthread_mutex_lock(&t->film->images_mutex);
39
dt_pthread_mutex_unlock(&t->film->images_mutex);
42
dt_film_cleanup(t->film);