mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 21:02:39 +02:00
Added bufferProducerRect for crop. Updated a resolution comment and added a comment for crop.
This commit is contained in:
parent
a814c79827
commit
a730cf977f
@ -7,10 +7,17 @@ typedef struct {
|
|||||||
nvioctl_fence nv_fences[4];
|
nvioctl_fence nv_fences[4];
|
||||||
} PACKED bufferProducerFence;
|
} PACKED bufferProducerFence;
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
s32 left;
|
||||||
|
s32 top;
|
||||||
|
s32 right;
|
||||||
|
s32 bottom;
|
||||||
|
} PACKED bufferProducerRect;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
s64 timestamp;
|
s64 timestamp;
|
||||||
s32 isAutoTimestamp;
|
s32 isAutoTimestamp;
|
||||||
u32 crop[4];//Rect
|
bufferProducerRect crop;
|
||||||
s32 scalingMode;
|
s32 scalingMode;
|
||||||
u32 transform;
|
u32 transform;
|
||||||
u32 stickyTransform;
|
u32 stickyTransform;
|
||||||
|
@ -31,13 +31,13 @@ extern nvioctl_fence g_nvgfx_nvhostgpu_gpfifo_fence;
|
|||||||
|
|
||||||
//static Result _gfxGetDisplayResolution(u64 *width, u64 *height);
|
//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?
|
//TODO: Let the user configure some of this?
|
||||||
static bufferProducerQueueBufferInput g_gfxQueueBufferData = {
|
static bufferProducerQueueBufferInput g_gfxQueueBufferData = {
|
||||||
.timestamp = 0x0,
|
.timestamp = 0x0,
|
||||||
.isAutoTimestamp = 0x1,
|
.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,
|
.scalingMode = 0x0,
|
||||||
.transform = 0x2,
|
.transform = 0x2,
|
||||||
.stickyTransform = 0x0,
|
.stickyTransform = 0x0,
|
||||||
|
Loading…
Reference in New Issue
Block a user