4 * Copyright 2012 Samsung Electronics Co., Ltd
6 * Licensed under the Flora License, Version 1.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * http://floralicense.org/license/
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
20 #ifndef _PREVIEW_TASK_MODEL_H_INCLUDED_
21 #define _PREVIEW_TASK_MODEL_H_INCLUDED_
23 //#define MAX_PREVIEW_TASK_COUNT 3 /* TODO: autodetection */
25 struct preview_task_model;
30 struct preview_task_model {
34 int is_stop_processing;
36 struct preview_engine *engine;
39 #include "preview_model.h"
41 int init_preview_task_model(struct preview_task_model *model,
42 struct preview_engine *engine);
43 int preview_task_stop_processing(struct preview_task_model *task_model);
44 int add_preview_task_initial(struct preview_task_model *model,
45 const struct preview_conf *conf);
46 int add_preview_task(struct preview_task_model *model, int page,
47 struct preview_model *pmodel);
50 #endif /* _PREVIEW_TASK_MODEL_H_INCLUDED_ */