MCPcopy Create free account
hub / github.com/InoriRus/Kyty / VideoOutOpen

Function VideoOutOpen

source/emulator/src/Graphics/VideoOut.cpp:583–602  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583KYTY_SYSV_ABI int VideoOutOpen(int user_id, int bus_type, int index, const void* param)
584{
585 PRINT_NAME();
586
587 EXIT_IF(g_video_out_context == nullptr);
588
589 EXIT_NOT_IMPLEMENTED(user_id != 255 && user_id != 0);
590 EXIT_NOT_IMPLEMENTED(bus_type != 0);
591 EXIT_NOT_IMPLEMENTED(index != 0);
592 EXIT_NOT_IMPLEMENTED(param != nullptr);
593
594 int handle = g_video_out_context->Open();
595
596 if (handle < 0)
597 {
598 return VIDEO_OUT_ERROR_RESOURCE_BUSY;
599 }
600
601 return handle;
602}
603
604KYTY_SYSV_ABI int VideoOutClose(int handle)
605{

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected