| 357 | } |
| 358 | |
| 359 | void mvdstdGenerateDefaultConfig(MVDSTD_Config*config, u32 input_width, u32 input_height, u32 output_width, u32 output_height, u32 *vaddr_colorconv_indata, u32 *vaddr_outdata0, u32 *vaddr_outdata1) |
| 360 | { |
| 361 | memset(config, 0, sizeof(MVDSTD_Config)); |
| 362 | |
| 363 | config->input_type = mvdstd_input_type; |
| 364 | |
| 365 | config->inwidth = input_width; |
| 366 | config->inheight = input_height; |
| 367 | |
| 368 | if(mvdstd_mode==MVDMODE_COLORFORMATCONV)config->physaddr_colorconv_indata = osConvertVirtToPhys(vaddr_colorconv_indata); |
| 369 | |
| 370 | config->output_type = mvdstd_output_type; |
| 371 | |
| 372 | config->outwidth = output_width; |
| 373 | config->outheight = output_height; |
| 374 | |
| 375 | config->physaddr_outdata0 = osConvertVirtToPhys(vaddr_outdata0); |
| 376 | if(config->output_type==0x00020001)config->physaddr_outdata1 = osConvertVirtToPhys(vaddr_outdata1); |
| 377 | |
| 378 | config->unk_x6c[0] = 0x1; |
| 379 | config->unk_x6c[(0x84-0x6c)>>2] = 0x12a; |
| 380 | config->unk_x6c[(0x88-0x6c)>>2] = 0x199; |
| 381 | config->unk_x6c[(0x8c-0x6c)>>2] = 0xd0; |
| 382 | config->unk_x6c[(0x90-0x6c)>>2] = 0x64; |
| 383 | config->unk_x6c[(0x94-0x6c)>>2] = 0x204; |
| 384 | config->unk_x6c[(0xa8-0x6c)>>2] = 0x1; |
| 385 | } |
| 386 | |
| 387 | Result mvdstdConvertImage(MVDSTD_Config* config) |
| 388 | { |
nothing calls this directly
no test coverage detected