Krita Source Code Documentation
Loading...
Searching...
No Matches
KisWaylandSurfaceColorimetry.cpp File Reference
#include "KisWaylandSurfaceColorimetry.h"
#include <QDebug>

Go to the source code of this file.

Namespaces

namespace  KisSurfaceColorimetry
 

Functions

QDebug KisSurfaceColorimetry::operator<< (QDebug dbg, const WaylandPrimaries &points)
 
QDebug KisSurfaceColorimetry::operator<< (QDebug dbg, const WaylandSurfaceDescription &data)
 
QDebug operator<< (QDebug debug, QtWayland::wp_color_manager_v1::feature f)
 
QDebug operator<< (QDebug debug, QtWayland::wp_color_manager_v1::primaries p)
 
QDebug operator<< (QDebug debug, QtWayland::wp_color_manager_v1::render_intent ri)
 
QDebug operator<< (QDebug debug, QtWayland::wp_color_manager_v1::transfer_function tf)
 
QtWayland::wp_color_manager_v1::primaries KisSurfaceColorimetry::primariesKritaToWayland (KisSurfaceColorimetry::NamedPrimaries primaries)
 
QtWayland::wp_color_manager_v1::render_intent KisSurfaceColorimetry::renderIntentKritaToWayland (KisSurfaceColorimetry::RenderIntent intent)
 
QtWayland::wp_color_manager_v1::transfer_function KisSurfaceColorimetry::transferFunctionKritaToWayland (KisSurfaceColorimetry::NamedTransferFunction transferFunction)
 

Function Documentation

◆ operator<<() [1/4]

QDebug operator<< ( QDebug debug,
QtWayland::wp_color_manager_v1::feature f )

Definition at line 373 of file KisWaylandSurfaceColorimetry.cpp.

374{
375 QDebugStateSaver saver(debug);
376 switch (f) {
377 case QtWayland::wp_color_manager_v1::feature_icc_v2_v4:
378 debug << "icc_v2_v4";
379 break;
380 case QtWayland::wp_color_manager_v1::feature_parametric:
381 debug << "parametric";
382 break;
383 case QtWayland::wp_color_manager_v1::feature_set_primaries:
384 debug << "set_primaries";
385 break;
386 case QtWayland::wp_color_manager_v1::feature_set_tf_power:
387 debug << "set_tf_power";
388 break;
389 case QtWayland::wp_color_manager_v1::feature_set_luminances:
390 debug << "set_luminances";
391 break;
392 case QtWayland::wp_color_manager_v1::feature_set_mastering_display_primaries:
393 debug << "set_mastering_display_primaries";
394 break;
395 case QtWayland::wp_color_manager_v1::feature_extended_target_volume:
396 debug << "extended_target_volume";
397 break;
398 case QtWayland::wp_color_manager_v1::feature_windows_scrgb:
399 debug << "windows_scrgb";
400 break;
401 default:
402 debug << "Unknown feature:" << static_cast<int>(f);
403 break;
404 }
405 return debug;
406}
PyObject * debug(PyObject *, PyObject *args)

◆ operator<<() [2/4]

QDebug operator<< ( QDebug debug,
QtWayland::wp_color_manager_v1::primaries p )

The operators for the members of QtWayland::wp_color_manager_v1 are placed outside the KisSurfaceColorimetry namespace

Definition at line 332 of file KisWaylandSurfaceColorimetry.cpp.

333{
334 QDebugStateSaver saver(debug);
335 switch (p) {
336 case QtWayland::wp_color_manager_v1::primaries_srgb:
337 debug << "srgb";
338 break;
339 case QtWayland::wp_color_manager_v1::primaries_pal_m:
340 debug << "pal_m";
341 break;
342 case QtWayland::wp_color_manager_v1::primaries_pal:
343 debug << "pal";
344 break;
345 case QtWayland::wp_color_manager_v1::primaries_ntsc:
346 debug << "ntsc";
347 break;
348 case QtWayland::wp_color_manager_v1::primaries_generic_film:
349 debug << "generic_film";
350 break;
351 case QtWayland::wp_color_manager_v1::primaries_bt2020:
352 debug << "bt2020";
353 break;
354 case QtWayland::wp_color_manager_v1::primaries_cie1931_xyz:
355 debug << "cie1931_xyz";
356 break;
357 case QtWayland::wp_color_manager_v1::primaries_dci_p3:
358 debug << "dci_p3";
359 break;
360 case QtWayland::wp_color_manager_v1::primaries_display_p3:
361 debug << "display_p3";
362 break;
363 case QtWayland::wp_color_manager_v1::primaries_adobe_rgb:
364 debug << "adobe_rgb";
365 break;
366 default:
367 debug << "Unknown primaries:" << static_cast<int>(p);
368 break;
369 }
370 return debug;
371}
const Params2D p

References p.

◆ operator<<() [3/4]

QDebug operator<< ( QDebug debug,
QtWayland::wp_color_manager_v1::render_intent ri )

Definition at line 408 of file KisWaylandSurfaceColorimetry.cpp.

409{
410 QDebugStateSaver saver(debug);
411 switch (ri) {
412 case QtWayland::wp_color_manager_v1::render_intent_perceptual:
413 debug << "perceptual";
414 break;
415 case QtWayland::wp_color_manager_v1::render_intent_relative:
416 debug << "relative";
417 break;
418 case QtWayland::wp_color_manager_v1::render_intent_saturation:
419 debug << "saturation";
420 break;
421 case QtWayland::wp_color_manager_v1::render_intent_absolute:
422 debug << "absolute";
423 break;
424 case QtWayland::wp_color_manager_v1::render_intent_relative_bpc:
425 debug << "relative_bpc";
426 break;
427 default:
428 debug << "Unknown render intent:" << static_cast<int>(ri);
429 break;
430 }
431 return debug;
432}

◆ operator<<() [4/4]

QDebug operator<< ( QDebug debug,
QtWayland::wp_color_manager_v1::transfer_function tf )

Definition at line 434 of file KisWaylandSurfaceColorimetry.cpp.

435{
436 QDebugStateSaver saver(debug);
437 switch (tf) {
438 case QtWayland::wp_color_manager_v1::transfer_function_bt1886:
439 debug << "bt1886";
440 break;
441 case QtWayland::wp_color_manager_v1::transfer_function_gamma22:
442 debug << "gamma22";
443 break;
444 case QtWayland::wp_color_manager_v1::transfer_function_gamma28:
445 debug << "gamma28";
446 break;
447 case QtWayland::wp_color_manager_v1::transfer_function_st240:
448 debug << "st240";
449 break;
450 case QtWayland::wp_color_manager_v1::transfer_function_ext_linear:
451 debug << "ext_linear";
452 break;
453 case QtWayland::wp_color_manager_v1::transfer_function_log_100:
454 debug << "log_100";
455 break;
456 case QtWayland::wp_color_manager_v1::transfer_function_log_316:
457 debug << "log_316";
458 break;
459 case QtWayland::wp_color_manager_v1::transfer_function_xvycc:
460 debug << "xvycc";
461 break;
462 case QtWayland::wp_color_manager_v1::transfer_function_srgb:
463 debug << "srgb";
464 break;
465 case QtWayland::wp_color_manager_v1::transfer_function_ext_srgb:
466 debug << "ext_srgb";
467 break;
468 case QtWayland::wp_color_manager_v1::transfer_function_st2084_pq:
469 debug << "st2084_pq";
470 break;
471 case QtWayland::wp_color_manager_v1::transfer_function_st428:
472 debug << "st428";
473 break;
474 case QtWayland::wp_color_manager_v1::transfer_function_hlg:
475 debug << "hlg";
476 break;
477 default:
478 debug << "Unknown transfer function:" << static_cast<int>(tf);
479 break;
480 }
481 return debug;
482}