{
  "cases": {
    "black_white": {
      "source_size": [
        2,
        1
      ],
      "source_rgb": [
        [
          0,
          0,
          0
        ],
        [
          255,
          255,
          255
        ]
      ],
      "encoded_box": [
        128,
        128,
        128
      ],
      "linear_box_encoded_as_srgb": [
        188,
        188,
        188
      ],
      "linear_box_channels_before_encoding": [
        0.5,
        0.5,
        0.5
      ]
    },
    "checkerboard": {
      "source_size": [
        2,
        2
      ],
      "source_rgb": [
        [
          0,
          0,
          0
        ],
        [
          255,
          255,
          255
        ],
        [
          255,
          255,
          255
        ],
        [
          0,
          0,
          0
        ]
      ],
      "encoded_box": [
        128,
        128,
        128
      ],
      "linear_box_encoded_as_srgb": [
        188,
        188,
        188
      ],
      "linear_box_channels_before_encoding": [
        0.5,
        0.5,
        0.5
      ]
    },
    "one_white_pixel": {
      "source_size": [
        2,
        2
      ],
      "source_rgb": [
        [
          0,
          0,
          0
        ],
        [
          0,
          0,
          0
        ],
        [
          0,
          0,
          0
        ],
        [
          255,
          255,
          255
        ]
      ],
      "encoded_box": [
        64,
        64,
        64
      ],
      "linear_box_encoded_as_srgb": [
        137,
        137,
        137
      ],
      "linear_box_channels_before_encoding": [
        0.25,
        0.25,
        0.25
      ]
    },
    "two_grays": {
      "source_size": [
        2,
        1
      ],
      "source_rgb": [
        [
          64,
          64,
          64
        ],
        [
          192,
          192,
          192
        ]
      ],
      "encoded_box": [
        128,
        128,
        128
      ],
      "linear_box_encoded_as_srgb": [
        146,
        146,
        146
      ],
      "linear_box_channels_before_encoding": [
        0.28919229,
        0.28919229,
        0.28919229
      ]
    },
    "equal_gray": {
      "source_size": [
        2,
        1
      ],
      "source_rgb": [
        [
          128,
          128,
          128
        ],
        [
          128,
          128,
          128
        ]
      ],
      "encoded_box": [
        128,
        128,
        128
      ],
      "linear_box_encoded_as_srgb": [
        128,
        128,
        128
      ],
      "linear_box_channels_before_encoding": [
        0.2158605,
        0.2158605,
        0.2158605
      ]
    },
    "near_black": {
      "source_size": [
        2,
        1
      ],
      "source_rgb": [
        [
          0,
          0,
          0
        ],
        [
          10,
          10,
          10
        ]
      ],
      "encoded_box": [
        5,
        5,
        5
      ],
      "linear_box_encoded_as_srgb": [
        5,
        5,
        5
      ],
      "linear_box_channels_before_encoding": [
        0.00151763,
        0.00151763,
        0.00151763
      ]
    },
    "red_green": {
      "source_size": [
        2,
        1
      ],
      "source_rgb": [
        [
          255,
          0,
          0
        ],
        [
          0,
          255,
          0
        ]
      ],
      "encoded_box": [
        128,
        128,
        0
      ],
      "linear_box_encoded_as_srgb": [
        188,
        188,
        0
      ],
      "linear_box_channels_before_encoding": [
        0.5,
        0.5,
        0.0
      ]
    }
  },
  "128_reencoded_as_if_linear": 188,
  "decoded_128_linear": 0.2158605,
  "decoded_188_linear": 0.50288646,
  "ideal_half_light_srgb_before_quantizing": 187.51603068,
  "alpha_case": {
    "alpha_after_averaging": 0.5,
    "linear_straight_channel_after_unweighting": 1.0,
    "linear_straight_channel_if_alpha_ignored": 0.5,
    "over_black_premultiplied_srgb": 188,
    "over_black_if_alpha_ignored_srgb": 137
  },
  "filter_checks": {
    "nearest_for_black_white_and_white_black": [
      255,
      0
    ],
    "direct_box_for_0_0_0_1": 0,
    "intermediate_box_for_0_0_0_1": [
      0,
      1
    ],
    "second_box_after_intermediate_rounding": 1
  }
}
