8 #include "../kernel/mutex.h"
9 #include "../kernel/event.h"
10 #include "../services/vi.h"
11 #include "../nvidia/graphic_buffer.h"
14 #include "buffer_producer.h"
37 bool producer_controlled_by_app;
38 bool consumer_running_behind;
137 return nw->consumer_running_behind;
_LOCK_T Mutex
Mutex datatype, defined in newlib.
Definition: mutex.h:12
Result nwindowSetTransform(NWindow *nw, u32 transform)
Configures the transformation applied to images presented through a NWindow.
Result nwindowCreateFromLayer(NWindow *nw, const ViLayer *layer)
Creates a NWindow operating on a ViLayer.
static bool nwindowIsConsumerRunningBehind(NWindow *nw)
Checks whether the consumer of a NWindow is running behind.
Definition: native_window.h:135
Result nwindowQueueBuffer(NWindow *nw, s32 slot, const NvMultiFence *fence)
Queues a buffer previously dequeued with nwindowDequeueBuffer, making it ready for presentation.
void nwindowClose(NWindow *nw)
Closes a NWindow, freeing all resources associated with it.
Result nwindowCancelBuffer(NWindow *nw, s32 slot, const NvMultiFence *fence)
Cancels a buffer previously dequeued with nwindowDequeueBuffer.
Result nwindowConfigureBuffer(NWindow *nw, s32 slot, NvGraphicBuffer *buf)
Registers a NvGraphicBuffer with a NWindow.
NWindow * nwindowGetDefault(void)
Retrieves the default NWindow object.
Result nwindowSetSwapInterval(NWindow *nw, u32 swap_interval)
Configures the swap interval of a NWindow.
Result nwindowCreate(NWindow *nw, Service *binder_session, s32 binder_id, bool producer_controlled_by_app)
Creates a NWindow.
Result nwindowGetDimensions(NWindow *nw, u32 *out_width, u32 *out_height)
Retrieves the dimensions of a NWindow.
Result nwindowSetCrop(NWindow *nw, s32 left, s32 top, s32 right, s32 bottom)
Configures the crop applied to images presented through a NWindow.
Result nwindowReleaseBuffers(NWindow *nw)
Releases all buffers registered with a NWindow.
Result nwindowDequeueBuffer(NWindow *nw, s32 *out_slot, NvMultiFence *out_fence)
Dequeues a buffer from a NWindow.
Result nwindowSetDimensions(NWindow *nw, u32 width, u32 height)
Sets the dimensions of a NWindow.
bool nwindowIsValid(NWindow *nw)
Checks whether a pointer refers to a valid NWindow object.
Definition: buffer_producer.h:6
Kernel-mode event structure.
Definition: event.h:13
Native window structure.
Definition: native_window.h:17
Definition: graphic_buffer.h:22
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
u32 Result
Function error code result type.
Definition: types.h:44
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21