Added bufferProducerRect for crop. Updated a resolution comment and added a comment for crop.

This commit is contained in:
yellows8 2017-12-20 01:49:53 -05:00
parent a814c79827
commit a730cf977f
2 changed files with 10 additions and 3 deletions

View File

@ -7,10 +7,17 @@ typedef struct {
nvioctl_fence nv_fences[4];
} PACKED bufferProducerFence;
typedef struct {
s32 left;
s32 top;
s32 right;
s32 bottom;
} PACKED bufferProducerRect;
typedef struct {
s64 timestamp;
s32 isAutoTimestamp;
u32 crop[4];//Rect
bufferProducerRect crop;
s32 scalingMode;
u32 transform;
u32 stickyTransform;

View File

@ -31,13 +31,13 @@ extern nvioctl_fence g_nvgfx_nvhostgpu_gpfifo_fence;
//static Result _gfxGetDisplayResolution(u64 *width, u64 *height);
//TODO: Figure out what all is required to use non-720p width/height.
//TODO: Implement support for non-720p width/height.
//TODO: Let the user configure some of this?
static bufferProducerQueueBufferInput g_gfxQueueBufferData = {
.timestamp = 0x0,
.isAutoTimestamp = 0x1,
.crop = {0x0, 0x0, 0x0, 0x0},
.crop = {0x0, 0x0, 0x0, 0x0}, //Official apps which use multiple resolutions configure this for the currently used resolution, depending on the current appletOperationMode.
.scalingMode = 0x0,
.transform = 0x2,
.stickyTransform = 0x0,