My Project
 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 {
8 } mvdstdMode;
9 
10 typedef enum {
11  MVDTYPEIN_YUYV422 = 0x00010001,
12  MVDTYPEIN_H264 = 0x00020001
14 
15 typedef enum {
16  MVDTYPEOUT_RGB565 = 0x00040002
18 
19 typedef struct {
23  u32 inwidth, inheight;
25  u32 unk_x18[0x28>>2];
26  u32 flag_x40;//0x0 for colorconv, 0x1 for H.264
29  u32 outheight0, outwidth0;//Only set for H.264.
32  u32 outwidth1, outheight1;
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.
42 
44 Result mvdstdProcessFrame(mvdstdConfig *config, u32 *h264_vaddr_inframe, u32 h264_inframesize, u32 h264_frameid);
45 
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
s32 Result
Definition: types.h:42
u32 unk_x48
Definition: mvd.h:28
u32 physaddr_outdata1_colorconv
Definition: mvd.h:34
mvdstdMode
Definition: mvd.h:5
u32 unk_x04
Definition: mvd.h:21
u32 outwidth0
Definition: mvd.h:29
u32 flag_x40
Definition: mvd.h:26
mvdstdTypeOutput output_type
Definition: mvd.h:31
u32 unk_x08
Definition: mvd.h:22
uint32_t u32
Definition: types.h:23
mvdstdTypeInput input_type
Definition: mvd.h:20
mvdstdTypeInput
Definition: mvd.h:10
u32 inwidth
Definition: mvd.h:23
Result mvdstdSetConfig(mvdstdConfig *config)
Definition: mvd.c:76
u32 outwidth1
Definition: mvd.h:32
mvdstdTypeOutput
Definition: mvd.h:15
Result mvdstdProcessFrame(mvdstdConfig *config, u32 *h264_vaddr_inframe, u32 h264_inframesize, u32 h264_frameid)
Definition: mvd.c:189
u32 physaddr_colorconv_indata
Definition: mvd.h:24
u32 unk_x54
Definition: mvd.h:30
Result mvdstdInit(mvdstdMode mode, mvdstdTypeInput input_type, mvdstdTypeOutput output_type, u32 size)
Definition: mvd.c:130
u32 physaddr_outdata0
Definition: mvd.h:33
Result mvdstdShutdown()
Definition: mvd.c:171
u32 unk_x44
Definition: mvd.h:27