Skip to content

game support

UMU618 edited this page Dec 23, 2020 · 2 revisions

Game Support

简体中文 | English

Questions

Are all games supported?

Why is a certain game not supported?

How to support a game?

Principle

The captureyuv project is based on 3D API Hook, it has two steps need to be implemented:

  • Hook 3D API

  • Convert source pixel format to YUV

Solution

3D API

Currently captureyuv only deals with D3D API. If your game is based on OpenGL or Vulkan, then you need to implement your own hooks for them, or wait for this to be implemented by us.

Pixel Format

Since the conversion of the game screen to YUV format is based on the original format, different source pixel formats need to be converted with different functions. Currently only the most common ones are implemented. See https://github.com/ksyun-kenc/liuguang/blob/master/src/deps/yuv/yuv.h. You'll also need to implement your own conversion functions if your game uses other formats.

Clone this wiki locally