My Project
Main Page
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
mvd.h
Go to the documentation of this file.
1
#pragma once
2
3
//New3DS-only, see also: http://3dbrew.org/wiki/MVD_Services
4
5
typedef
enum
{
6
MVDMODE_COLORFORMATCONV
,
7
MVDMODE_VIDEOPROCESSING
8
}
mvdstdMode
;
9
10
typedef
enum
{
11
MVDTYPEIN_YUYV422
= 0x00010001,
12
MVDTYPEIN_H264
= 0x00020001
13
}
mvdstdTypeInput
;
14
15
typedef
enum
{
16
MVDTYPEOUT_RGB565
= 0x00040002
17
}
mvdstdTypeOutput
;
18
19
typedef
struct
{
20
mvdstdTypeInput
input_type
;
21
u32
unk_x04
;
22
u32
unk_x08
;
23
u32
inwidth
, inheight;
24
u32
physaddr_colorconv_indata
;
25
u32
unk_x18[0x28>>2];
26
u32
flag_x40
;
//0x0 for colorconv, 0x1 for H.264
27
u32
unk_x44
;
28
u32
unk_x48
;
29
u32
outheight0,
outwidth0
;
//Only set for H.264.
30
u32
unk_x54
;
31
mvdstdTypeOutput
output_type
;
32
u32
outwidth1
, outheight1;
33
u32
physaddr_outdata0
;
34
u32
physaddr_outdata1_colorconv
;
35
u32
unk_x6c[0xb0>>2];
36
}
mvdstdConfig
;
37
38
void
mvdstdGenerateDefaultConfig
(
mvdstdConfig
*config,
u32
input_width,
u32
input_height,
u32
output_width,
u32
output_height,
u32
*vaddr_colorconv_indata,
u32
*vaddr_outdata0,
u32
*vaddr_outdata1_colorconv);
39
40
Result
mvdstdInit
(
mvdstdMode
mode,
mvdstdTypeInput
input_type,
mvdstdTypeOutput
output_type,
u32
size);
//The input size isn't used when type==MVDTYPE_COLORFORMATCONV. Video processing / H.264 isn't supported currently.
41
Result
mvdstdShutdown
();
42
43
Result
mvdstdSetConfig
(
mvdstdConfig
*config);
44
Result
mvdstdProcessFrame
(
mvdstdConfig
*config,
u32
*h264_vaddr_inframe,
u32
h264_inframesize,
u32
h264_frameid);
45
mvdstdGenerateDefaultConfig
void mvdstdGenerateDefaultConfig(mvdstdConfig *config, u32 input_width, u32 input_height, u32 output_width, u32 output_height, u32 *vaddr_colorconv_indata, u32 *vaddr_outdata0, u32 *vaddr_outdata1_colorconv)
Definition:
mvd.c:92
Result
s32 Result
Definition:
types.h:42
mvdstdConfig::unk_x48
u32 unk_x48
Definition:
mvd.h:28
MVDTYPEIN_H264
Definition:
mvd.h:12
mvdstdConfig::physaddr_outdata1_colorconv
u32 physaddr_outdata1_colorconv
Definition:
mvd.h:34
mvdstdMode
mvdstdMode
Definition:
mvd.h:5
mvdstdConfig::unk_x04
u32 unk_x04
Definition:
mvd.h:21
mvdstdConfig::outwidth0
u32 outwidth0
Definition:
mvd.h:29
mvdstdConfig::flag_x40
u32 flag_x40
Definition:
mvd.h:26
mvdstdConfig::output_type
mvdstdTypeOutput output_type
Definition:
mvd.h:31
mvdstdConfig::unk_x08
u32 unk_x08
Definition:
mvd.h:22
u32
uint32_t u32
Definition:
types.h:23
mvdstdConfig::input_type
mvdstdTypeInput input_type
Definition:
mvd.h:20
mvdstdTypeInput
mvdstdTypeInput
Definition:
mvd.h:10
mvdstdConfig::inwidth
u32 inwidth
Definition:
mvd.h:23
mvdstdSetConfig
Result mvdstdSetConfig(mvdstdConfig *config)
Definition:
mvd.c:76
mvdstdConfig::outwidth1
u32 outwidth1
Definition:
mvd.h:32
mvdstdTypeOutput
mvdstdTypeOutput
Definition:
mvd.h:15
MVDMODE_VIDEOPROCESSING
Definition:
mvd.h:7
mvdstdProcessFrame
Result mvdstdProcessFrame(mvdstdConfig *config, u32 *h264_vaddr_inframe, u32 h264_inframesize, u32 h264_frameid)
Definition:
mvd.c:189
mvdstdConfig::physaddr_colorconv_indata
u32 physaddr_colorconv_indata
Definition:
mvd.h:24
mvdstdConfig::unk_x54
u32 unk_x54
Definition:
mvd.h:30
MVDMODE_COLORFORMATCONV
Definition:
mvd.h:6
mvdstdInit
Result mvdstdInit(mvdstdMode mode, mvdstdTypeInput input_type, mvdstdTypeOutput output_type, u32 size)
Definition:
mvd.c:130
mvdstdConfig::physaddr_outdata0
u32 physaddr_outdata0
Definition:
mvd.h:33
mvdstdShutdown
Result mvdstdShutdown()
Definition:
mvd.c:171
mvdstdConfig
Definition:
mvd.h:19
MVDTYPEIN_YUYV422
Definition:
mvd.h:11
MVDTYPEOUT_RGB565
Definition:
mvd.h:16
mvdstdConfig::unk_x44
u32 unk_x44
Definition:
mvd.h:27
include
3ds
services
mvd.h
Generated on Mon Nov 24 2014 23:37:58 for My Project by
1.8.8