Coverage for models/rgb/datasets/__init__.py: 0%

1 from __future__ import annotations

2

3 from colour.utilities import LazyCanonicalMapping

4

5# isort: split

6

7 from .aces import (

8 RGB_COLOURSPACE_ACES2065_1,

9 RGB_COLOURSPACE_ACESCC,

10 RGB_COLOURSPACE_ACESCCT,

11 RGB_COLOURSPACE_ACESCG,

12 RGB_COLOURSPACE_ACESPROXY,

13)

14 from .adobe_rgb_1998 import RGB_COLOURSPACE_ADOBE_RGB1998

15 from .adobe_wide_gamut_rgb import RGB_COLOURSPACE_ADOBE_WIDE_GAMUT_RGB

16 from .apple_rgb import RGB_COLOURSPACE_APPLE_RGB

17 from .arri import (

18 RGB_COLOURSPACE_ARRI_WIDE_GAMUT_3,

19 RGB_COLOURSPACE_ARRI_WIDE_GAMUT_4,

20)

21 from .best_rgb import RGB_COLOURSPACE_BEST_RGB

22 from .beta_rgb import RGB_COLOURSPACE_BETA_RGB

23 from .blackmagic_design import RGB_COLOURSPACE_BLACKMAGIC_WIDE_GAMUT

24 from .canon_cinema_gamut import RGB_COLOURSPACE_CINEMA_GAMUT

25 from .cie_rgb import RGB_COLOURSPACE_CIE_RGB

26 from .color_match_rgb import RGB_COLOURSPACE_COLOR_MATCH_RGB

27 from .davinci_wide_gamut import RGB_COLOURSPACE_DAVINCI_WIDE_GAMUT

28 from .dcdm_xyz import RGB_COLOURSPACE_DCDM_XYZ

29 from .dci_p3 import RGB_COLOURSPACE_DCI_P3, RGB_COLOURSPACE_DCI_P3_P

30 from .display_p3 import RGB_COLOURSPACE_DISPLAY_P3

31 from .dji_d_gamut import RGB_COLOURSPACE_DJI_D_GAMUT

32 from .don_rgb_4 import RGB_COLOURSPACE_DON_RGB_4

33 from .ebu_3213_e import RGB_COLOURSPACE_EBU_3213_E

34 from .eci_rgb_v2 import RGB_COLOURSPACE_ECI_RGB_V2

35 from .ekta_space_ps5 import RGB_COLOURSPACE_EKTA_SPACE_PS_5

36 from .filmlight import (

37 RGB_COLOURSPACE_FILMLIGHT_E_GAMUT,

38 RGB_COLOURSPACE_FILMLIGHT_E_GAMUT_2,

39)

40 from .fujifilm import RGB_COLOURSPACE_F_GAMUT, RGB_COLOURSPACE_F_GAMUT_C

41 from .gopro import RGB_COLOURSPACE_PROTUNE_NATIVE

42 from .itur_bt_470 import RGB_COLOURSPACE_BT470_525, RGB_COLOURSPACE_BT470_625

43 from .itur_bt_709 import RGB_COLOURSPACE_BT709

44 from .itur_bt_2020 import RGB_COLOURSPACE_BT2020

45 from .itut_h_273 import (

46 RGB_COLOURSPACE_H273_22_UNSPECIFIED,

47 RGB_COLOURSPACE_H273_GENERIC_FILM,

48)

49 from .max_rgb import RGB_COLOURSPACE_MAX_RGB

50 from .nikon_n_gamut import RGB_COLOURSPACE_N_GAMUT

51 from .p3_d65 import RGB_COLOURSPACE_P3_D65

52 from .pal_secam import RGB_COLOURSPACE_PAL_SECAM

53 from .panasonic_v_gamut import RGB_COLOURSPACE_V_GAMUT

54 from .red import (

55 RGB_COLOURSPACE_DRAGON_COLOR,

56 RGB_COLOURSPACE_DRAGON_COLOR_2,

57 RGB_COLOURSPACE_RED_COLOR,

58 RGB_COLOURSPACE_RED_COLOR_2,

59 RGB_COLOURSPACE_RED_COLOR_3,

60 RGB_COLOURSPACE_RED_COLOR_4,

61 RGB_COLOURSPACE_RED_WIDE_GAMUT_RGB,

62)

63 from .rimm_romm_rgb import (

64 RGB_COLOURSPACE_ERIMM_RGB,

65 RGB_COLOURSPACE_PROPHOTO_RGB,

66 RGB_COLOURSPACE_RIMM_RGB,

67 RGB_COLOURSPACE_ROMM_RGB,

68)

69

70# isort: split

71

72 from .plasa_ansi_e154 import RGB_COLOURSPACE_PLASA_ANSI_E154

73 from .russell_rgb import RGB_COLOURSPACE_RUSSELL_RGB

74 from .sharp import RGB_COLOURSPACE_SHARP_RGB

75 from .smpte_240m import RGB_COLOURSPACE_SMPTE_240M

76 from .smpte_c import RGB_COLOURSPACE_SMPTE_C

77

78# isort: split

79

80 from .ntsc import RGB_COLOURSPACE_NTSC1953, RGB_COLOURSPACE_NTSC1987

81

82# isort: split

83

84 from .sony import (

85 RGB_COLOURSPACE_S_GAMUT,

86 RGB_COLOURSPACE_S_GAMUT3,

87 RGB_COLOURSPACE_S_GAMUT3_CINE,

88 RGB_COLOURSPACE_VENICE_S_GAMUT3,

89 RGB_COLOURSPACE_VENICE_S_GAMUT3_CINE,

90)

91 from .srgb import RGB_COLOURSPACE_sRGB

92 from .xtreme_rgb import RGB_COLOURSPACE_XTREME_RGB

93

94# isort: split

95

96 from colour.models.rgb import RGB_Colourspace

97

98 from .color_interop_forum import (

99 RGB_COLOURSPACE_G18_REC709_SCENE,

100 RGB_COLOURSPACE_G22_ADOBERGB_SCENE,

101 RGB_COLOURSPACE_G22_AP1_SCENE,

102 RGB_COLOURSPACE_G22_REC709_SCENE,

103 RGB_COLOURSPACE_LIN_ADOBERGB_SCENE,

104 RGB_COLOURSPACE_LIN_CIEXYZD65_SCENE,

105 RGB_COLOURSPACE_LIN_P3D65_SCENE,

106 RGB_COLOURSPACE_LIN_REC709_SCENE,

107 RGB_COLOURSPACE_LIN_REC2020_SCENE,

108 RGB_COLOURSPACE_SRGB_AP1_SCENE,

109 RGB_COLOURSPACE_SRGB_P3D65_SCENE,

110 RGB_COLOURSPACE_SRGB_REC709_SCENE,

111 RGB_COLOURSPACES_TEXTURE_ASSETS_AND_CG_RENDERING_CIF,

112)

113

114 RGB_COLOURSPACES: LazyCanonicalMapping = LazyCanonicalMapping(

115 dict(

116 sorted(

117 (colourspace.name, colourspace)

118 for colourspace in locals().values()

119 if isinstance(colourspace, RGB_Colourspace)

120 )

121 )

122)

123 RGB_COLOURSPACES.__doc__ = """

124 Aggregated *RGB* colourspaces.

125

126 Aliases:

127

128- 'aces': RGB_COLOURSPACE_ACES2065_1.name

129- 'adobe1998': RGB_COLOURSPACE_ADOBE_RGB1998.name

130- 'prophoto': RGB_COLOURSPACE_PROPHOTO_RGB.name

131"""

132

133 RGB_COLOURSPACES["aces"] = RGB_COLOURSPACES[RGB_COLOURSPACE_ACES2065_1.name]

134 RGB_COLOURSPACES["adobe1998"] = RGB_COLOURSPACES[RGB_COLOURSPACE_ADOBE_RGB1998.name]

135 RGB_COLOURSPACES["prophoto"] = RGB_COLOURSPACES[RGB_COLOURSPACE_PROPHOTO_RGB.name]

136

137 RGB_COLOURSPACES.update(RGB_COLOURSPACES_TEXTURE_ASSETS_AND_CG_RENDERING_CIF)

138

139 __all__ = [

140 "RGB_COLOURSPACE_ACES2065_1",

141 "RGB_COLOURSPACE_ACESCC",

142 "RGB_COLOURSPACE_ACESCCT",

143 "RGB_COLOURSPACE_ACESCG",

144 "RGB_COLOURSPACE_ACESPROXY",

145]

146 __all__ += [

147 "RGB_COLOURSPACE_ADOBE_RGB1998",

148]

149 __all__ += [

150 "RGB_COLOURSPACE_ADOBE_WIDE_GAMUT_RGB",

151]

152 __all__ += [

153 "RGB_COLOURSPACE_APPLE_RGB",

154]

155 __all__ += [

156 "RGB_COLOURSPACE_ARRI_WIDE_GAMUT_3",

157 "RGB_COLOURSPACE_ARRI_WIDE_GAMUT_4",

158]

159 __all__ += [

160 "RGB_COLOURSPACE_BEST_RGB",

161]

162 __all__ += [

163 "RGB_COLOURSPACE_BETA_RGB",

164]

165 __all__ += [

166 "RGB_COLOURSPACE_BLACKMAGIC_WIDE_GAMUT",

167]

168 __all__ += [

169 "RGB_COLOURSPACE_CINEMA_GAMUT",

170]

171 __all__ += [

172 "RGB_COLOURSPACE_CIE_RGB",

173]

174 __all__ += [

175 "RGB_COLOURSPACE_COLOR_MATCH_RGB",

176]

177 __all__ += [

178 "RGB_COLOURSPACE_DAVINCI_WIDE_GAMUT",

179]

180 __all__ += [

181 "RGB_COLOURSPACE_DCDM_XYZ",

182]

183 __all__ += [

184 "RGB_COLOURSPACE_DCI_P3",

185 "RGB_COLOURSPACE_DCI_P3_P",

186]

187 __all__ += [

188 "RGB_COLOURSPACE_DISPLAY_P3",

189]

190 __all__ += [

191 "RGB_COLOURSPACE_DJI_D_GAMUT",

192]

193 __all__ += [

194 "RGB_COLOURSPACE_DON_RGB_4",

195]

196 __all__ += [

197 "RGB_COLOURSPACE_EBU_3213_E",

198]

199 __all__ += [

200 "RGB_COLOURSPACE_ECI_RGB_V2",

201]

202 __all__ += [

203 "RGB_COLOURSPACE_EKTA_SPACE_PS_5",

204]

205 __all__ += [

206 "RGB_COLOURSPACE_FILMLIGHT_E_GAMUT",

207 "RGB_COLOURSPACE_FILMLIGHT_E_GAMUT_2",

208]

209 __all__ += [

210 "RGB_COLOURSPACE_F_GAMUT",

211 "RGB_COLOURSPACE_F_GAMUT_C",

212]

213 __all__ += [

214 "RGB_COLOURSPACE_PROTUNE_NATIVE",

215]

216 __all__ += [

217 "RGB_COLOURSPACE_BT470_525",

218 "RGB_COLOURSPACE_BT470_625",

219]

220 __all__ += [

221 "RGB_COLOURSPACE_BT709",

222]

223 __all__ += [

224 "RGB_COLOURSPACE_BT2020",

225]

226 __all__ += [

227 "RGB_COLOURSPACE_H273_22_UNSPECIFIED",

228 "RGB_COLOURSPACE_H273_GENERIC_FILM",

229]

230 __all__ += [

231 "RGB_COLOURSPACE_MAX_RGB",

232]

233 __all__ += [

234 "RGB_COLOURSPACE_N_GAMUT",

235]

236 __all__ += [

237 "RGB_COLOURSPACE_P3_D65",

238]

239 __all__ += [

240 "RGB_COLOURSPACE_PAL_SECAM",

241]

242 __all__ += [

243 "RGB_COLOURSPACE_V_GAMUT",

244]

245 __all__ += [

246 "RGB_COLOURSPACE_DRAGON_COLOR",

247 "RGB_COLOURSPACE_DRAGON_COLOR_2",

248 "RGB_COLOURSPACE_RED_COLOR",

249 "RGB_COLOURSPACE_RED_COLOR_2",

250 "RGB_COLOURSPACE_RED_COLOR_3",

251 "RGB_COLOURSPACE_RED_COLOR_4",

252 "RGB_COLOURSPACE_RED_WIDE_GAMUT_RGB",

253]

254 __all__ += [

255 "RGB_COLOURSPACE_ERIMM_RGB",

256 "RGB_COLOURSPACE_PROPHOTO_RGB",

257 "RGB_COLOURSPACE_RIMM_RGB",

258 "RGB_COLOURSPACE_ROMM_RGB",

259]

260 __all__ += [

261 "RGB_COLOURSPACE_PLASA_ANSI_E154",

262]

263 __all__ += [

264 "RGB_COLOURSPACE_RUSSELL_RGB",

265]

266 __all__ += [

267 "RGB_COLOURSPACE_SHARP_RGB",

268]

269 __all__ += [

270 "RGB_COLOURSPACE_SMPTE_240M",

271]

272 __all__ += [

273 "RGB_COLOURSPACE_SMPTE_C",

274]

275 __all__ += [

276 "RGB_COLOURSPACE_NTSC1953",

277 "RGB_COLOURSPACE_NTSC1987",

278]

279 __all__ += [

280 "RGB_COLOURSPACE_S_GAMUT",

281 "RGB_COLOURSPACE_S_GAMUT3",

282 "RGB_COLOURSPACE_S_GAMUT3_CINE",

283 "RGB_COLOURSPACE_VENICE_S_GAMUT3",

284 "RGB_COLOURSPACE_VENICE_S_GAMUT3_CINE",

285]

286 __all__ += [

287 "RGB_COLOURSPACE_sRGB",

288]

289 __all__ += [

290 "RGB_COLOURSPACE_XTREME_RGB",

291]

292 __all__ += [

293 "RGB_COLOURSPACE_G18_REC709_SCENE",

294 "RGB_COLOURSPACE_G22_ADOBERGB_SCENE",

295 "RGB_COLOURSPACE_G22_AP1_SCENE",

296 "RGB_COLOURSPACE_G22_REC709_SCENE",

297 "RGB_COLOURSPACE_LIN_ADOBERGB_SCENE",

298 "RGB_COLOURSPACE_LIN_CIEXYZD65_SCENE",

299 "RGB_COLOURSPACE_LIN_P3D65_SCENE",

300 "RGB_COLOURSPACE_LIN_REC709_SCENE",

301 "RGB_COLOURSPACE_LIN_REC2020_SCENE",

302 "RGB_COLOURSPACE_SRGB_AP1_SCENE",

303 "RGB_COLOURSPACE_SRGB_P3D65_SCENE",

304 "RGB_COLOURSPACE_SRGB_REC709_SCENE",

305 "RGB_COLOURSPACES_TEXTURE_ASSETS_AND_CG_RENDERING_CIF",

306]