Nugget
Bare-metal libraries and examples for the original PlayStation
Loading...
Searching...
No Matches
Classes | Macros | Functions
mdec-roundtrip.c File Reference
#include <stdint.h>
#include <string.h>
#include "common/hardware/dma.h"
#include "common/hardware/hwregs.h"
#include "common/hardware/pcsxhw.h"
#include "common/kernel/pcdrv.h"
#include "common/syscalls/syscalls.h"
Include dependency graph for mdec-roundtrip.c:

Classes

struct  MdrtCapture
 

Macros

#define MDEC0   HW_U32(0x1f801820)
 
#define MDEC1   HW_U32(0x1f801824)
 
#define MDEC_CMD_DECODE   0x30000000
 
#define MDEC_CMD_QUANT   0x40000000
 
#define MDEC_CMD_SCALE   0x60000000
 
#define JOB_HEADER   0x20
 
#define ARM_FIELD   12
 
#define MAX_RL_WORDS   4096
 
#define BIOS_ROM   ((const volatile uint8_t *)0xbfc00000)
 
#define BIOS_ID_OFF   0x7ff32
 
#define BIOS_ID_LEN   32
 
#define BIOS_ROM_LEN   0x80000
 

Functions

int main ()
 

Macro Definition Documentation

◆ ARM_FIELD

#define ARM_FIELD   12

◆ BIOS_ID_LEN

#define BIOS_ID_LEN   32

◆ BIOS_ID_OFF

#define BIOS_ID_OFF   0x7ff32

◆ BIOS_ROM

#define BIOS_ROM   ((const volatile uint8_t *)0xbfc00000)

◆ BIOS_ROM_LEN

#define BIOS_ROM_LEN   0x80000

◆ JOB_HEADER

#define JOB_HEADER   0x20

◆ MAX_RL_WORDS

#define MAX_RL_WORDS   4096

◆ MDEC0

#define MDEC0   HW_U32(0x1f801820)

◆ MDEC1

#define MDEC1   HW_U32(0x1f801824)

◆ MDEC_CMD_DECODE

#define MDEC_CMD_DECODE   0x30000000

◆ MDEC_CMD_QUANT

#define MDEC_CMD_QUANT   0x40000000

◆ MDEC_CMD_SCALE

#define MDEC_CMD_SCALE   0x60000000

Function Documentation

◆ main()

int main ( void  )