added stereo capture option to the tools screen.
This commit is contained in:
@@ -395,6 +395,20 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 class="section-title">Stereo Capture</h5>
|
||||||
|
<div class="divider header-divider-margin margin-bottom"></div>
|
||||||
|
<h4 class="description-section">
|
||||||
|
This will enable/disable the stereo video capture for videos recorded i.e. side-by-side view.
|
||||||
|
</h4>
|
||||||
|
<div class="switch">
|
||||||
|
<label>
|
||||||
|
Off
|
||||||
|
<input type="checkbox" class="disable-reviews" [checked]="sbsEnabled == '2'" (click)="sbsEnabled == '2' ? setSBS(GU.OFF) : setSBS(GU.ON)">
|
||||||
|
<span class="lever disable-reviews-switch"></span>
|
||||||
|
On
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<h5 class="section-title">Paste Text to your device</h5>
|
<h5 class="section-title">Paste Text to your device</h5>
|
||||||
<div class="divider header-divider-margin margin-bottom"></div>
|
<div class="divider header-divider-margin margin-bottom"></div>
|
||||||
|
|||||||
@@ -84,6 +84,7 @@ export class HeadsetSettingsComponent implements OnInit {
|
|||||||
chromaticAberration: string;
|
chromaticAberration: string;
|
||||||
guardianEnabled: boolean;
|
guardianEnabled: boolean;
|
||||||
fullRateCaptureEnabled: boolean;
|
fullRateCaptureEnabled: boolean;
|
||||||
|
sbsEnabled: string;
|
||||||
fixedFoveatedRendering: string;
|
fixedFoveatedRendering: string;
|
||||||
videoCaptureSize: string;
|
videoCaptureSize: string;
|
||||||
cpuGpuLevel: string;
|
cpuGpuLevel: string;
|
||||||
@@ -126,6 +127,9 @@ export class HeadsetSettingsComponent implements OnInit {
|
|||||||
await this.getBool('experimentalEnabled', 'debug.oculus.experimentalEnabled');
|
await this.getBool('experimentalEnabled', 'debug.oculus.experimentalEnabled');
|
||||||
await this.getBool('guardianEnabled', 'debug.oculus.guardian_pause');
|
await this.getBool('guardianEnabled', 'debug.oculus.guardian_pause');
|
||||||
await this.getBool('fullRateCaptureEnabled', 'debug.oculus.fullRateCapture');
|
await this.getBool('fullRateCaptureEnabled', 'debug.oculus.fullRateCapture');
|
||||||
|
await this.getString('debug.oculus.screenCaptureEye', '1', 'sbsEnabled');
|
||||||
|
|
||||||
|
//setSBS
|
||||||
await this.getString('debug.oculus.refreshRate', '72', 'refreshRate');
|
await this.getString('debug.oculus.refreshRate', '72', 'refreshRate');
|
||||||
await this.getString('debug.oculus.forceChroma', '1', 'chromaticAberration');
|
await this.getString('debug.oculus.forceChroma', '1', 'chromaticAberration');
|
||||||
await this.getString('debug.oculus.foveation.level', '2', 'fixedFoveatedRendering');
|
await this.getString('debug.oculus.foveation.level', '2', 'fixedFoveatedRendering');
|
||||||
@@ -285,6 +289,15 @@ export class HeadsetSettingsComponent implements OnInit {
|
|||||||
this.statusService.showStatus(e, true);
|
this.statusService.showStatus(e, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
setSBS(sbs: GU) {
|
||||||
|
console.log('setprop debug.oculus.screenCaptureEye ' + (sbs === GU.ON ? 2 : 1));
|
||||||
|
this.runAdbCommand('setprop debug.oculus.screenCaptureEye ' + (sbs === GU.ON ? 2 : 1))
|
||||||
|
.then(() => {
|
||||||
|
this.statusService.showStatus('SBS Capture set OK!!');
|
||||||
|
return this.getString('debug.oculus.screenCaptureEye', '1', 'sbsEnabled');
|
||||||
|
})
|
||||||
|
.catch(e => this.statusService.showStatus(e, true));
|
||||||
|
}
|
||||||
setFullRate(fullRate: GU) {
|
setFullRate(fullRate: GU) {
|
||||||
console.log('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0));
|
console.log('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0));
|
||||||
this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0))
|
this.runAdbCommand('setprop debug.oculus.fullRateCapture ' + (fullRate === GU.ON ? 1 : 0))
|
||||||
|
|||||||
Reference in New Issue
Block a user