Jpegdec services: Difference between revisions

From Nintendo Switch Brew
Jump to navigation Jump to search
No edit summary
No edit summary
Line 8: Line 8:
! Cmd || Name
! Cmd || Name
|-
|-
| 3001 || [[#Decode]]
| 3001 || [[#DecodeJpeg]]
|-
| 4001 || ShrinkJpeg
|}
|}


== Decode ==
== DecodeJpeg ==
Unofficial name.
 
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.
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.



Revision as of 21:57, 12 October 2023

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

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.