SceJpegEncArm: Difference between revisions

From Vita Development Wiki
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Library ==
== Module ==


=== Known NIDs ===
{| class="wikitable"
{| class="wikitable"
|-
|-
! Version !! Name !! World !! Privilege !! NID
! Version !! World !! Privilege
|-
|-
| 1.69 || SceJpegEncArm || Non-secure || User || 0x2DD999CF
| 0.990-3.740.011 || Non-secure || User
|}
|}


== Modules ==
== Libraries ==


=== Known NIDs ===
=== Known NIDs ===
Line 16: Line 15:
|-
|-
! Version !! Name !! World !! Visibility !! NID
! Version !! Name !! World !! Visibility !! NID
|-
| 0.990-3.740.011 || [[#SceJpegEncArm|SceJpegEncArm]] || Non-secure || User || 0xCF9C23A2
|}
== SceJpegEncArm ==
=== sceJpegEncoderArmSetCompressionRatio ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x32B8E159
|}
<source lang="C">int sceJpegEncoderArmSetCompressionRatio(void *pCtx, int compRatio);</source>
=== sceJpegEncoderArmEncode ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x4EE1BAED
|}
=== SceJpegEncArm_648FFAA3 ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x648FFAA3
|}
<source lang="C">int SceJpegEncArm_648FFAA3(void *pCtx, uint a2);</source>
=== SceJpegEncArm_6D24A669 ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x6D24A669
|}
Sets a boolean inside context buffer.
<source lang="C">
// unk_bool: a boolean with value 0 or 1
int SceJpegEncArm_6D24A669(void *pCtx, SceUInt8 unk_bool);
</source>
=== sceJpegEncoderArmEnd ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x8A42D6EC
|}
On FW 0.990, does nothing and returns 0.
<source lang="C">int sceJpegEncoderArmEnd(void);</source>
=== sceJpegEncoderArmInit ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x8C23875A
|}
<source lang="C">int sceJpegEncoderArmInit(void *pCtx, int width, int height, int a4, int a5, int a6);</source>
=== sceJpegEncoderArmGetContextSize ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0x8D15B36D
|}
This is a guessed name.
Returns the context buffer size: 0x180 bytes on FW 0.990.
<source lang="C">SceSize sceJpegEncoderArmGetContextSize(void);</source>
=== sceJpegEncoderArmSetValidRegion ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0xD561E2E5
|}
|}


[[Category:Libraries]]
<source lang="C">int sceJpegEncoderArmSetValidRegion(void *pCtx, int region_width, int region_height);</source>
[[Category:Userland]]
 
=== SceJpegEncArm_DA0D0868 ===
{| class="wikitable"
|-
! Version !! NID
|-
| 0.990 || 0xDA0D0868
|}
 
<source lang="C">
// size: if 0, sort_of_margin_size is not used but instead hardcoded value 0x262 is used for margin size
// sort_of_margin_size: must be >= 4 because actual margin size is (sort_of_margin_size - 4)
int SceJpegEncArm_DA0D0868(void *pCtx, SceUInt32 size, SceUInt32 sort_of_margin_size);
</source>
 
[[Category:ARM]]
[[Category:Usermode]]
[[Category:Modules]]
[[Category:Library]]

Latest revision as of 00:09, 1 April 2024

Module

Version World Privilege
0.990-3.740.011 Non-secure User

Libraries

Known NIDs

Version Name World Visibility NID
0.990-3.740.011 SceJpegEncArm Non-secure User 0xCF9C23A2

SceJpegEncArm

sceJpegEncoderArmSetCompressionRatio

Version NID
0.990 0x32B8E159
int sceJpegEncoderArmSetCompressionRatio(void *pCtx, int compRatio);

sceJpegEncoderArmEncode

Version NID
0.990 0x4EE1BAED

SceJpegEncArm_648FFAA3

Version NID
0.990 0x648FFAA3
int SceJpegEncArm_648FFAA3(void *pCtx, uint a2);

SceJpegEncArm_6D24A669

Version NID
0.990 0x6D24A669

Sets a boolean inside context buffer.

// unk_bool: a boolean with value 0 or 1
int SceJpegEncArm_6D24A669(void *pCtx, SceUInt8 unk_bool);

sceJpegEncoderArmEnd

Version NID
0.990 0x8A42D6EC

On FW 0.990, does nothing and returns 0.

int sceJpegEncoderArmEnd(void);

sceJpegEncoderArmInit

Version NID
0.990 0x8C23875A
int sceJpegEncoderArmInit(void *pCtx, int width, int height, int a4, int a5, int a6);

sceJpegEncoderArmGetContextSize

Version NID
0.990 0x8D15B36D

This is a guessed name.

Returns the context buffer size: 0x180 bytes on FW 0.990.

SceSize sceJpegEncoderArmGetContextSize(void);

sceJpegEncoderArmSetValidRegion

Version NID
0.990 0xD561E2E5
int sceJpegEncoderArmSetValidRegion(void *pCtx, int region_width, int region_height);

SceJpegEncArm_DA0D0868

Version NID
0.990 0xDA0D0868
// size: if 0, sort_of_margin_size is not used but instead hardcoded value 0x262 is used for margin size
// sort_of_margin_size: must be >= 4 because actual margin size is (sort_of_margin_size - 4)
int SceJpegEncArm_DA0D0868(void *pCtx, SceUInt32 size, SceUInt32 sort_of_margin_size);