{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"$id": "https://www.arri.com/schema/json/camera/processing/v1-1-3",
	"$comment": "Due to technical reasons this schema is not auto generated but maintained manually",
	"title": "Processing",
	"description": "Information about processing",
	"type": "object",
	"properties": {
		"imageProcessingModel": {
			"title": "Image Processing Model",
			"description": "Identifier of the image processing model to be applied when converting from ARRIRAW or ARRICORE to RGB",
			"type": "string",
			"oneOf": [
				{
					"description": "Image Processing Gen1",
					"type": "string",
					"const": "ImageProcessingGen1"
				},
				{
					"description": "Image Processing Gen2",
					"type": "string",
					"const": "ImageProcessingGen2"
				},
				{
					"description": "Image Processing Gen3",
					"type": "string",
					"const": "ImageProcessingGen3"
				}
			]
		},
		"imageProcessingVersion": {
			"title": "Image Processing Version",
			"description": "Image processing software version used to process recorded picture essence.",
			"type": "string"
		},
		"minimumRequiredImageProcessingVersion": {
			"title": "Minimum Required Image Processing Version",
			"description": "Minimum image processing software version required to correctly process recorded picture essence.",
			"type": "string"
		},
		"imageProcessingModelParameterTables": {
			"title": "Image Processing Model Parameter Tables",
			"description": "Tables of parameters used by image processing model or models.",
			"type": "array",
			"items" : {
				"title": "Image Processing Model Parameter Table",
				"description": "Table of parameters used by image processing model or models.",
				"type": "object",
				"properties": {
					"imageProcessingModelParametersName" : {
						"title": "Image Processing Model Parameters Name",
						"description": "Name of table of parameters",
						"type": "string"
					},
					"imageProcessingModelParametersVersion" : {
						"title": "Image Processing Model Parameters Version",
						"description": "Version of table of parameters",
						"type": "string"
					},
					"imageProcessingModelParametersData" : {
						"title": "Image Processing Model Parameters Data",
						"description": "Data comprising table of parameters",
						"type": "string",
						"contentEncoding": "base64"
					}
				},
				"required": [
					"imageProcessingModelParametersName",
					"imageProcessingModelParametersVersion",
					"imageProcessingModelParametersData"
				]
			},
			"minLength": 0
		},
		"blackLevelOffset": {
			"title": "Black Level Offset",
			"description": "Unsigned sample value representing true sensor black. Values below are to be kept to represent noise properly.",
			"type": "integer",
			"minimum": 0
		},
		"maxSampleValue": {
			"title": "Max Sample Value",
			"description": "Unsigned maximum sample value of uncompressed data. For compressed data like HDE this relates to the maximum value outside of the compressed container. The compressed container might have a reduced size.",
			"type": "integer",
			"minimum": 0
		}
	},
	"required": [
		"imageProcessingModel"
	]
}
