2 * Copyright 2011, Blender Foundation.
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software Foundation,
16 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef _COM_defines_h_
24 #define _COM_defines_h_
27 * @brief possible data types for SocketConnection
30 typedef enum DataType {
31 /** @brief Value data type */
33 /** @brief Vector data type */
35 /** @brief Color data type */
40 * @brief Possible quality settings
41 * @see CompositorContext.quality
44 typedef enum CompositorQuality {
45 /** @brief High quality setting */
47 /** @brief Medium quality setting */
48 COM_QUALITY_MEDIUM = 1,
49 /** @brief Low quality setting */
54 * @brief Possible priority settings
57 typedef enum CompositorPriority {
58 /** @brief High quality setting */
59 COM_PRIORITY_HIGH = 2,
60 /** @brief Medium quality setting */
61 COM_PRIORITY_MEDIUM = 1,
62 /** @brief Low quality setting */
68 // chunk size determination
69 #define COM_PREVIEW_SIZE 140.0f
70 #define COM_OPENCL_ENABLED
73 // workscheduler threading models
75 * COM_TM_QUEUE is a multithreaded model, which uses the BLI_thread_queue pattern. This is the default option.
77 #define COM_TM_QUEUE 1
80 * COM_TM_NOTHREAD is a single threading model, everything is executed in the caller thread. easy for debugging
82 #define COM_TM_NOTHREAD 0
85 * COM_CURRENT_THREADING_MODEL can be one of the above, COM_TM_QUEUE is currently default.
87 #define COM_CURRENT_THREADING_MODEL COM_TM_QUEUE
90 * @brief The order of chunks to be scheduled
93 typedef enum OrderOfChunks {
94 /** @brief order from a distance to centerX/centerY */
95 COM_TO_CENTER_OUT = 0,
96 /** @brief order randomly */
98 /** @brief no ordering */
100 /** @brief experimental ordering with 9 hotspots */
101 COM_TO_RULE_OF_THIRDS = 3
104 #define COM_ORDER_OF_CHUNKS_DEFAULT COM_TO_CENTER_OUT
106 #define COM_RULE_OF_THIRDS_DIVIDER 100.0f
108 #define COM_NUMBER_OF_CHANNELS 4
110 #define COM_BLUR_BOKEH_PIXELS 512