Lines Matching refs:resolution
55 cJSON *resolution = NULL; in create_monitor() local
84 resolution = cJSON_CreateObject(); in create_monitor()
85 if (resolution == NULL) in create_monitor()
89 cJSON_AddItemToArray(resolutions, resolution); in create_monitor()
96 cJSON_AddItemToObject(resolution, "width", width); in create_monitor()
103 cJSON_AddItemToObject(resolution, "height", height); in create_monitor()
143 cJSON *resolution = cJSON_CreateObject(); in create_monitor_with_helpers() local
145 if (cJSON_AddNumberToObject(resolution, "width", resolution_numbers[index][0]) == NULL) in create_monitor_with_helpers()
150 if(cJSON_AddNumberToObject(resolution, "height", resolution_numbers[index][1]) == NULL) in create_monitor_with_helpers()
155 cJSON_AddItemToArray(resolutions, resolution); in create_monitor_with_helpers()
171 const cJSON *resolution = NULL; in supports_full_hd() local
194 cJSON_ArrayForEach(resolution, resolutions) in supports_full_hd()
196 cJSON *width = cJSON_GetObjectItemCaseSensitive(resolution, "width"); in supports_full_hd()
197 cJSON *height = cJSON_GetObjectItemCaseSensitive(resolution, "height"); in supports_full_hd()