History

player/screenshot: support more formats for screenshot-raw command

This adds a format parameter to screenshot-raw command which controls the format of the returned image data. In addition to the bgr0 format, this adds support for 3 other formats: bgra, rgba, rgba64. bgra is used by overlay-add command and several window systems. rgba and rgba64 are used by several GPU APIs and are the formats returned by the gpu and gpu-next screenshot code, which avoid the need for further format conversion (see convert_image function). rgba64 also adds the ability to acquire high bit depth screenshots for screenshot-raw command.

nanahi committed 1 year ago

Commit ab47e951 parent c1237c14 files · +42 −12Browse files

Showing the changes to DOCS/interface-changes (1 of 4 files). Show all

Unified · Split

DOCS/interface-changes/screenshot-raw-format.txt+1−0
@@ -0,0 +1 @@
1+add `format` argument to `screenshot-raw` command

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t