Default values for the CoreImage exposure adjust filter have changed.

Originator:ktam64
Number:rdar://22391060 Date Originated:22-Aug-2015 11:10 AM
Status:Open Resolved:
Product:OS X Product Version:CIExposureAdjust defaults changed in 10.11
Classification:Serious Bug Reproducible:Always
 
Summary:
The default adjust value for the exposure adjust core image filter has been changed in 10.11. This means any application that has depended on the default value will not behave as expected. The documentation has not been updated to reflect this change.

I think it is a bug that the default value has changed, but if that is intended behaviour then the documentation needs to be updated so that this change is made clear to developers.

Playground code

import Cocoa
import QuartzCore
import XCPlayground

let theFilter = CIFilter(name: "CIExposureAdjust")!
theFilter.setDefaults()
let theAttributes = theFilter.attributes

In 10.11 the attributes converted to JSON look like:

{
  "inputEV" : {
    "CIAttributeClass" : "NSNumber",
    "CIAttributeDescription" : "The amount to adjust the exposure of the image by. The larger the value, the brighter the exposure.",
    "CIAttributeSliderMax" : 10,
    "CIAttributeDisplayName" : "EV",
    "CIAttributeDefault" : 0,
    "CIAttributeIdentity" : 0,
    "CIAttributeType" : "CIAttributeTypeScalar",
    "CIAttributeSliderMin" : -10
  },
  "CIAttributeFilterDisplayName" : "Exposure Adjust",
  "CIAttributeFilterAvailable_iOS" : "5",
  "inputImage" : {
    "CIAttributeDisplayName" : "Image",
    "CIAttributeDescription" : "The image to use as an input image. For filters that also use a background image, this is the foreground image.",
    "CIAttributeClass" : "CIImage",
    "CIAttributeType" : "CIAttributeTypeImage"
  },
  "CIAttributeFilterName" : "CIExposureAdjust",
  "CIAttributeFilterCategories" : [
    "CICategoryColorAdjustment",
    "CICategoryVideo",
    "CICategoryStillImage",
    "CICategoryInterlaced",
    "CICategoryNonSquarePixels",
    "CICategoryBuiltIn",
    "CICategoryXMPSerializable"
  ],
  "CIAttributeReferenceDocumentation" : "http:\/\/developer.apple.com\/cgi-bin\/apple_ref.cgi?apple_ref=\/\/apple_ref\/doc\/filter\/ci\/CIExposureAdjust",
  "CIAttributeFilterAvailable_Mac" : "10.4"
}

The CIExposureAdjust attributes converted to JSON in 10.10

{
  "inputEV" : {
    "CIAttributeClass" : "NSNumber",
    "CIAttributeDescription" : "The amount to adjust the exposure of the image by. The larger the value, the brighter the exposure.",
    "CIAttributeSliderMax" : 10,
    "CIAttributeDisplayName" : "EV",
    "CIAttributeDefault" : 0.5,
    "CIUIParameterSet" : "CIUISetBasic",
    "CIAttributeIdentity" : 0,
    "CIAttributeType" : "CIAttributeTypeScalar",
    "CIAttributeSliderMin" : -10
  },
  "CIAttributeFilterDisplayName" : "Exposure Adjust",
  "CIAttributeDescription" : "Adjusts the exposure setting for an image similar to the way you control exposure for a camera when you change the F-stop.",
  "outputImage" : {
    "CIAttributeClass" : "CIImage"
  },
  "inputImage" : {
    "CIAttributeDisplayName" : "Image",
    "CIAttributeDescription" : "The image to use as an input image. For filters that also use a background image, this is the foreground image.",
    "CIUIParameterSet" : "CIUISetBasic",
    "CIAttributeClass" : "CIImage"
  },
  "CIAttributeFilterName" : "CIExposureAdjust",
  "CIAttributeReferenceDocumentation" : "http:\/\/developer.apple.com\/cgi-bin\/apple_ref.cgi?apple_ref=\/\/apple_ref\/doc\/filter\/ci\/CIExposureAdjust",
  "CIAttributeFilterCategories" : [
    "CICategoryColorAdjustment",
    "CICategoryVideo",
    "CICategoryStillImage",
    "CICategoryInterlaced",
    "CICategoryNonSquarePixels",
    "CICategoryBuiltIn"
  ]
}

Steps to Reproduce:
In numbered format, detail the exact steps taken to produce the bug.

Expected Results:
That the default values would not be changed with an update to the operating system.

Actual Results:
Default values have been changed.

Regression:
Problem does not occur in 10.10, broken in 10.11

Notes:
Provide additional information, such as references to related problems, workarounds and relevant attachments.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!