Difference between revisions of "Jpegdec services"

From Nintendo Switch Brew
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Jpegdec is a refactored sysmodule for handling all JPEG decoding associated with [[Capture_services|capture services]].
+
Jpegdec is a refactored sysmodule added with [4.0.0+] for handling all JPEG decoding associated with [[Capture_services|capture services]].
  
 
= caps:dc =
 
= caps:dc =
 +
This is "nn::capsrv::sf::IDecoderControlService".
 +
 +
{| class="wikitable" border="1"
 +
|-
 +
! Cmd || Name
 +
|-
 +
| 3001 || [[#DecodeJpeg]]
 +
|-
 +
| 4001 || ShrinkJpeg
 +
|-
 +
| 4002 || [18.0.0+]
 +
|}
 +
 +
== DecodeJpeg ==
 +
Takes an input u32 '''width''', an input u32 '''height''', an input [[Capture_services#ScreenShotDecodeOption|ScreenShotDecodeOption]], a type-0x46 output buffer, a type-0x5 input buffer, and no output.
 +
 +
The type-0x46 buffer contains the RGBA8 image data. The type-0x5 buffer contains the input JPEG data.
  
 
[[Category:Services]]
 
[[Category:Services]]

Latest revision as of 20:17, 26 March 2024

Jpegdec is a refactored sysmodule added with [4.0.0+] for handling all JPEG decoding associated with capture services.

caps:dc

This is "nn::capsrv::sf::IDecoderControlService".

Cmd Name
3001 #DecodeJpeg
4001 ShrinkJpeg
4002 [18.0.0+]

DecodeJpeg

Takes an input u32 width, an input u32 height, an input ScreenShotDecodeOption, a type-0x46 output buffer, a type-0x5 input buffer, and no output.

The type-0x46 buffer contains the RGBA8 image data. The type-0x5 buffer contains the input JPEG data.