persona-3-dual
A DS demake of Persona 3
Loading...
Searching...
No Matches
VideoController.hpp File Reference
#include "types/StateTypes.hpp"
#include <aegis/ndsTypes.hpp>
#include <aegis/types.hpp>
#include <nds.h>
#include <stdio.h>
#include <string>
Include dependency graph for VideoController.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  VideoController
 Streams video frames and multiplexed QOA audio from a single .vid file. More...

Variables

constexpr uint8_t FRAMES_TO_BUFFER = 15
 Number of decoded video frames held in the RAM ring buffer.
constexpr uint8_t READS_PER_UPDATE = 3
 Maximum frame reads per update(). Reads stop early if a frame is already due.
constexpr uint16_t AUDIO_CHUNK_MAX = 16384
 Maximum audio payload (bytes) in one per-frame chunk. Must match MAX_AUDIO_CHUNK in video2vid.py.
constexpr uint16_t VIDEO_READ_SLICE = 16384
 Size (bytes) of each SD card read slice when loading a video frame.
constexpr uint8_t VIDEO_AUDIO_STREAM_MS = 100
 Length of the maxmod audio stream buffer in ms. Larger tolerates slower SD reads.
constexpr int8_t VIDEO_SYNC_OFFSET_MS = 0
 Fine A/V sync offset in ms.

Variable Documentation

◆ AUDIO_CHUNK_MAX

uint16_t AUDIO_CHUNK_MAX = 16384
constexpr

Maximum audio payload (bytes) in one per-frame chunk. Must match MAX_AUDIO_CHUNK in video2vid.py.

Definition at line 18 of file VideoController.hpp.

◆ FRAMES_TO_BUFFER

uint8_t FRAMES_TO_BUFFER = 15
constexpr

Number of decoded video frames held in the RAM ring buffer.

Definition at line 12 of file VideoController.hpp.

◆ READS_PER_UPDATE

uint8_t READS_PER_UPDATE = 3
constexpr

Maximum frame reads per update(). Reads stop early if a frame is already due.

Definition at line 15 of file VideoController.hpp.

◆ VIDEO_AUDIO_STREAM_MS

uint8_t VIDEO_AUDIO_STREAM_MS = 100
constexpr

Length of the maxmod audio stream buffer in ms. Larger tolerates slower SD reads.

Definition at line 28 of file VideoController.hpp.

◆ VIDEO_READ_SLICE

uint16_t VIDEO_READ_SLICE = 16384
constexpr

Size (bytes) of each SD card read slice when loading a video frame.

The audio stream is fed between slices so a long read cannot underrun it.

Definition at line 25 of file VideoController.hpp.

◆ VIDEO_SYNC_OFFSET_MS

int8_t VIDEO_SYNC_OFFSET_MS = 0
constexpr

Fine A/V sync offset in ms.

Positive delays the picture (use if the picture leads the sound), negative advances it (use if the picture lags the sound).

Definition at line 36 of file VideoController.hpp.