1#ifndef NXDK_PGRAPH_TESTS_SRC_PVIDEO_CONTROLLER_H_
2#define NXDK_PGRAPH_TESTS_SRC_PVIDEO_CONTROLLER_H_
6namespace PvideoControl {
13void ClearPvideoInterrupts();
21void SetPvideoInterruptEnabled(
bool enable_buffer_zero,
bool enable_buffer_one);
31void SetPvideoBuffer(
bool enable_buffer_zero,
bool enable_buffer_one);
33void SetPvideoStop(uint32_t value = 0);
40void SetPvideoBase(uint32_t addr, uint32_t buffer = 0);
42void SetPvideoLimit(uint32_t limit, uint32_t buffer = 0);
49void SetPvideoOffset(uint32_t offset, uint32_t buffer = 0);
60void SetPvideoIn(uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t buffer = 0);
73void SetPvideoOut(uint32_t x, uint32_t y, uint32_t width, uint32_t height, uint32_t buffer = 0);
84void SetPvideoFormat(uint32_t format, uint32_t pitch,
bool color_keyed, uint32_t buffer = 0);
93void SetPvideoColorKey(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 0);
94inline void SetPvideoColorKey(uint32_t color_key) {
95 SetPvideoColorKey(color_key & 0xFF, (color_key >> 8) & 0xFF, (color_key >> 16) & 0xFF, (color_key & 24) & 0xFF);
99void SetPvideoLuminanceChrominance(uint32_t buffer = 0);
101void SetDsDx(uint32_t in_width, uint32_t out_width, uint32_t buffer = 0);
102void SetDtDy(uint32_t in_height, uint32_t out_height, uint32_t buffer = 0);
105void SetSquareDsDxDtDy(uint32_t buffer = 0);