This file is indexed.

/usr/share/psychtoolbox-3/PsychCal/PrimaryToSettings.m is in psychtoolbox-3-common 3.0.9+svn2579.dfsg1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
function [settings, badIndex] = PrimaryToSettings(cal, primary)
% [settings, badIndex] = PrimaryToSettings(cal, primary)
%
% Convert from primary color space coordinates to device
% setting coordinates.
%
% This depends on the standard calibration globals.

% 9/26/93    dhb   Added calData argument, badIndex return.
% 4/5/02     dhb, ly  New calling interface.

[gamut, badIndex] = PrimaryToGamut(cal, primary);
settings = GamutToSettings(cal, gamut);