aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authornvjingham <[email protected]>2018-11-07 18:37:49 -0800
committernvjingham <[email protected]>2018-11-07 18:37:49 -0800
commitea1d75a6f310c90c571c758683daf4187fe654a9 (patch)
tree8c59f01736e80ebb470e4dc3bf667ffb3b9c73f6 /include
parentUpdating Ansel SDK (diff)
downloadanselsdk-ea1d75a6f310c90c571c758683daf4187fe654a9.tar.xz
anselsdk-ea1d75a6f310c90c571c758683daf4187fe654a9.zip
Updating Ansel SDK to v1.6
Diffstat (limited to 'include')
-rw-r--r--include/ansel/Configuration.h9
-rw-r--r--include/ansel/Session.h1
-rw-r--r--include/ansel/Version.h8
3 files changed, 14 insertions, 4 deletions
diff --git a/include/ansel/Configuration.h b/include/ansel/Configuration.h
index 96169e4..1db804f 100644
--- a/include/ansel/Configuration.h
+++ b/include/ansel/Configuration.h
@@ -136,6 +136,14 @@ namespace ansel
// Holds the sdk version, doesn't require modifications
uint64_t sdkVersion;
+ // Called when Ansel wants to give the application an opportunity to change image quality.
+ // For example, keeping normal quality in-game for setting up a shot, but boosting quality
+ // when actually taking the shot, then dropping quality back down to normal afterwards
+ // we provide a binary normal/high quality switch using the bool argument (normal=false,high=true)
+ // if the application wants to provide finer controls for quality, it can do so through
+ // general Ansel SDK user controls
+ ChangeQualityCallback changeQualityCallback;
+
Configuration()
{
right.x = 0.0f;
@@ -166,6 +174,7 @@ namespace ansel
stopCaptureCallback = nullptr;
unused2 = true;
unused1 = false;
+ changeQualityCallback = nullptr;
sdkVersion = ANSEL_SDK_VERSION;
}
};
diff --git a/include/ansel/Session.h b/include/ansel/Session.h
index 60647b7..8672a23 100644
--- a/include/ansel/Session.h
+++ b/include/ansel/Session.h
@@ -93,6 +93,7 @@ namespace ansel
typedef void(__cdecl *StopSessionCallback)(void* userPointer);
typedef void(__cdecl *StartCaptureCallback)(const CaptureConfiguration&, void* userPointer);
typedef void(__cdecl *StopCaptureCallback)(void* userPointer);
+ typedef void(__cdecl *ChangeQualityCallback)(bool isHighQuality, void* userPointer);
// Starts a session if there is not one already active. This function can be used to trigger
// Ansel via any method that the game chooses (key combination, controller input, etc)
diff --git a/include/ansel/Version.h b/include/ansel/Version.h
index 3adb627..a4116e1 100644
--- a/include/ansel/Version.h
+++ b/include/ansel/Version.h
@@ -38,15 +38,15 @@
// MINIMUM_DRIVER_VERSION as well. While a public driver hasn't been finalized use our internal
// release tags to identify it (like 378.GA2).
#define ANSEL_SDK_PRODUCT_VERSION_MAJOR 1
-#define ANSEL_SDK_PRODUCT_VERSION_MINOR 5
-#define ANSEL_SDK_MINIMUM_DRIVER_VERSION "388.13"
+#define ANSEL_SDK_PRODUCT_VERSION_MINOR 6
+#define ANSEL_SDK_MINIMUM_DRIVER_VERSION "396.GA6"
// The lines below are automatically updated by build agents. Please don't touch.
// The BUILD_NUMBER and COMMIT_HASH are useful in uniquely identifying a build of the Ansel SDK.
// Changes to the customer facing API can be tracked with these since they are automatically
// updated every time a change is made.
-#define ANSEL_SDK_BUILD_NUMBER 427
-#define ANSEL_SDK_COMMIT_HASH 0x6e7c9960
+#define ANSEL_SDK_BUILD_NUMBER 485
+#define ANSEL_SDK_COMMIT_HASH 0x9c71c4dc
#define ANSEL_SDK_VERSION ( uint64_t(ANSEL_SDK_PRODUCT_VERSION_MAJOR) << 48 | uint64_t(ANSEL_SDK_PRODUCT_VERSION_MINOR) << 32 \
| ANSEL_SDK_COMMIT_HASH )