nxdk_pgraph_tests
A collection of tests for the Xbox nv2a graphics processor
 
Loading...
Searching...
No Matches
pvideo_tests.h
1#pragma once
2
3#include <memory>
4#include <string>
5
6#include "test_host.h"
7#include "test_suite.h"
8
9class PvideoTests : public TestSuite {
10 public:
11 PvideoTests(TestHost &host, std::string output_dir, const Config &config);
12 void Initialize() override;
13 void Deinitialize() override;
14
15 private:
16 void TestStopBehavior();
17 void TestAlternateStopBehavior();
18
19 void TestSizeInMaxUnityDeltas();
20 void TestSizeInMaxLargeDelta();
21 void TestSizeInMaxSmallDelta();
22 void TestSizeMaxOutSmallUnityDeltas();
23 void TestSizeMaxOutSmallCorrectDeltas();
24
25 void TestPALIntoNTSC();
26 void TestSizeInLargerThanSizeOutUnityDeltas();
27 void TestSizeInLargerThanSizeOutCorrectDeltas();
28
29 void TestSizeInSmallerThanSizeOutUnityDeltas();
30 void TestSizeInSmallerThanSizeOutCorrectDeltas();
31
32 void TestPitchLessThanCompact();
33 void TestPitchLargerThanCompact();
34
35 void SetCheckerboardVideoFrameCR8YB8CB8YA8(uint32_t first_color, uint32_t second_color, uint32_t checker_size,
36 uint32_t x_offset = 0, uint32_t y_offset = 0, uint32_t width = 0,
37 uint32_t height = 0);
38 void SetTestPatternVideoFrameCR8YB8CB8YA8(uint32_t width = 0, uint32_t height = 0);
39 void SetVideoFrameCR8YB8CB8YA8(const void *pixels, uint32_t width, uint32_t height);
40 void DrawFullscreenOverlay();
41
42 private:
43 uint8_t *video_{nullptr};
44};
Definition pvideo_tests.h:9
void Initialize() override
Called to initialize the test suite.
Definition pvideo_tests.cpp:55
void Deinitialize() override
Called to tear down the test suite.
Definition pvideo_tests.cpp:68
Definition test_host.h:47
Definition test_suite.h:20
Runtime configuration for TestSuites.
Definition test_suite.h:23