Talk:Qt Resource Container (QRC): Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(background images offsets inside lines.qrc... copyed here for the record)
 
(moved to CXML Containers page)
 
(38 intermediate revisions by 3 users not shown)
Line 1: Line 1:
=VPO FPO Decoding=
If you are interested in decoding the vpo & fpo files, use cgc-disasm.exe (wrote by eustolio at: http://www.ps3hax.net/showthread.php?t=25618&p=229602&viewfull=1#post229602 )
sce-cgcdisasm -o outfile imputfile (shader)


# profile sce_vp_rsx
# parameterCount 20
# instructionCount 4
# registerCount 1
# attributeInputMask Attr0
# attributeOutputMask None
# userClipMask 0: DISABLE, 1: DISABLE, 2: DISABLE, 3: DISABLE, 4: DISABLE, 5: DISABLE
index: type: name: semantic: res or resIndex
#0: float4: oldpos: in.POSITION0: ATTR0
#1: float4: newpos: out.POSITION0: HPOS
#2: float2: oldcrd: in.TEXCOORD0: ATTR8
#3: float4: oldnrm: in.TEXCOORD1: ATTR9
#4: float4: newcol: out.COLOR0: COL0
#5: float: _Fresnel: : UNDEFINED
#6: float: _Falloff: : UNDEFINED
#7: float: _Brightness: : UNDEFINED
#8: float: _MipmapBias: : UNDEFINED
#9: float4: _Eye: : UNDEFINED
#10: float4x4: _MVM: : C[256]
#11: float4: _MVM[0]: : C[256]
#12: float4: _MVM[1]: : C[257]
#13: float4: _MVM[2]: : C[258]
#14: float4: _MVM[3]: : C[259]
#15: float4x4: _MIT: : UNDEFINED
#16: float4: _MIT[0]: : UNDEFINED
#17: float4: _MIT[1]: : UNDEFINED
#18: float4: _MIT[2]: : UNDEFINED
#19: float4: _MIT[3]: : UNDEFINED
DP4 o[0].w, v[0], c[259];
DP4 o[0].z, v[0], c[258];
DP4 o[0].y, v[0], c[257];
DP4 o[0].x, v[0], c[256];
END


*XMB background images offsets inside '''dev_flash/vsh/resource/qgl/lines.qrc''' (zlib decompressed file). In 3.41 firmware
sce-cgcdisasm -h outfile imputfile (for header)


  rgb-01.dds 0x13250 (start) +0x80 (header) = 0x132D0 +0x2AA0 (pixel info length)= 0x15D70
  #ifndef _lib_moyou_lines0_params_H_
rgb-02.dds 0x15d70 (start) +0x80 (header) = 0x15DF0 +0x2AA0 (pixel info length)= 0x18890
#define _lib_moyou_lines0_params_H_
rgb-03.dds 0x18890 (start) +0x80 (header) = 0x18910 +0x2AA0 (pixel info length)= 0x1B3B0
rgb-04.dds 0x1B3B0 (start) +0x80 (header) = 0x1B430 +0x2AA0 (pixel info length)= 0x1DED0
typedef struct {
rgb-05.dds 0x1DED0 (start) +0x80 (header) = 0x1DF50 +0x2AA0 (pixel info length)= 0x209F0
int res;
rgb-06.dds 0x209F0 (start) +0x80 (header) = 0x20A70 +0x2AA0 (pixel info length)= 0x23510
int resindex;
rgb-07.dds 0x23510 (start) +0x80 (header) = 0x23590 +0x2AA0 (pixel info length)= 0x26030
int dvindex;
rgb-08.dds 0x26030 (start) +0x80 (header) = 0x260B0 +0x2AA0 (pixel info length)= 0x28B50
} CellGcm_lib_moyou_lines0_params_Table;
rgb-09.dds 0x28B50 (start) +0x80 (header) = 0x28BD0 +0x2AA0 (pixel info length)= 0x2B670
rgb-10.dds 0x2B670 (start) +0x80 (header) = 0x2B6F0 +0x2AA0 (pixel info length)= 0x2E190
typedef struct {
  rgb-11.dds 0x2E190 (start) +0x80 (header) = 0x2E210 +0x2AA0 (pixel info length)= 0x30CB0
float defaultvalue[4];
rgb-12.dds 0x30CB0 (start) +0x80 (header) = 0x30D30 +0x2AA0 (pixel info length)= 0X337D0
} CellGcm_lib_moyou_lines0_params_DefaultValueTable;
night-01.dds 0x337D0 (start) +0x80 (header) = 0x33850 +0x2AA0 (pixel info length)= 0x362F0
night-02.dds 0x362F0 (start) +0x80 (header) = 0x36370 +0x2AA0 (pixel info length)= 0x38E10
enum CellGcm_lib_moyou_lines0_params_Enum {
night-03.dds 0x38E10 (start) +0x80 (header) = 0x38E90 +0x2AA0 (pixel info length)= 0x3B390
CELL_GCM_lib_moyou_lines0_params_oldpos = 0,
night-04.dds 0x3B390 (start) +0x80 (header) = 0x3B410 +0x2AA0 (pixel info length)= 0x3E450
CELL_GCM_lib_moyou_lines0_params_newpos = 1,
night-05.dds 0x3E450 (start) +0x80 (header) = 0x3E4D0 +0x2AA0 (pixel info length)= 0x40F70
CELL_GCM_lib_moyou_lines0_params_oldcrd = 2,
night-06.dds 0x40F70 (start) +0x80 (header) = 0x40FF0 +0x2AA0 (pixel info length)= 0x43A90
CELL_GCM_lib_moyou_lines0_params_oldnrm = 3,
night-07.dds 0x43A90 (start) +0x80 (header) = 0x43B10 +0x2AA0 (pixel info length)= 0x465B0
CELL_GCM_lib_moyou_lines0_params_newcol = 4,
night-08.dds 0x465B0 (start) +0x80 (header) = 0x46630 +0x2AA0 (pixel info length)= 0x490D0
CELL_GCM_lib_moyou_lines0_params___Fresnel = 5,
night-09.dds 0x490D0 (start) +0x80 (header) = 0x49150 +0x2AA0 (pixel info length)= 0x4BBF0
CELL_GCM_lib_moyou_lines0_params___Falloff = 6,
night-10.dds 0x4BBF0 (start) +0x80 (header) = 0x4BC70 +0x2AA0 (pixel info length)= 0x4E710
CELL_GCM_lib_moyou_lines0_params___Brightness = 7,
night-11.dds 0x4E710 (start) +0x80 (header) = 0x4E790 +0x2AA0 (pixel info length)= 0x51230
CELL_GCM_lib_moyou_lines0_params___MipmapBias = 8,
night-12.dds 0x51230 (start) +0x80 (header) = 0x512B0 +0x2AA0 (pixel info length)= 0x53D50
CELL_GCM_lib_moyou_lines0_params___Eye = 9,
CELL_GCM_lib_moyou_lines0_params___MVM = 10,
CELL_GCM_lib_moyou_lines0_params___MVM_0 = 11,
CELL_GCM_lib_moyou_lines0_params___MVM_1 = 12,
CELL_GCM_lib_moyou_lines0_params___MVM_2 = 13,
CELL_GCM_lib_moyou_lines0_params___MVM_3 = 14,
CELL_GCM_lib_moyou_lines0_params___MIT = 15,
CELL_GCM_lib_moyou_lines0_params___MIT_0 = 16,
CELL_GCM_lib_moyou_lines0_params___MIT_1 = 17,
CELL_GCM_lib_moyou_lines0_params___MIT_2 = 18,
CELL_GCM_lib_moyou_lines0_params___MIT_3 = 19,
  };
CellGcm_lib_moyou_lines0_params_Table lib_moyou_lines0_params[20] = {
{2113, -1, -1}, /* index:0, "oldpos" */
{2243, -1, -1}, /* index:1, "newpos" */
{2121, -1, -1}, /* index:2, "oldcrd" */
{2122, -1, -1}, /* index:3, "oldnrm" */
{2245, -1, -1}, /* index:4, "newcol" */
{3256, -1, -1}, /* index:5, "_Fresnel" */
{3256, -1, -1}, /* index:6, "_Falloff" */
{3256, -1, -1}, /* index:7, "_Brightness" */
{3256, -1, -1}, /* index:8, "_MipmapBias" */
{3256, -1, -1}, /* index:9, "_Eye" */
{2178, 256, -1}, /* index:10, "_MVM" */
{2178, 256, -1}, /* index:11, "_MVM[0]" */
{2178, 257, -1}, /* index:12, "_MVM[1]" */
{2178, 258, -1}, /* index:13, "_MVM[2]" */
{2178, 259, -1}, /* index:14, "_MVM[3]" */
{3256, -1, -1}, /* index:15, "_MIT" */
{3256, -1, -1}, /* index:16, "_MIT[0]" */
{3256, -1, -1}, /* index:17, "_MIT[1]" */
{3256, -1, -1}, /* index:18, "_MIT[2]" */
{3256, -1, -1}, /* index:19, "_MIT[3]" */
};
CellGcm_lib_moyou_lines0_params_DefaultValueTable lib_moyou_lines0_params_default_value[0] = {
};
#endif //_lib_moyou_lines0_params_H_

Latest revision as of 06:43, 14 June 2014

VPO FPO Decoding[edit source]

If you are interested in decoding the vpo & fpo files, use cgc-disasm.exe (wrote by eustolio at: http://www.ps3hax.net/showthread.php?t=25618&p=229602&viewfull=1#post229602 )

sce-cgcdisasm -o outfile imputfile (shader)
# profile sce_vp_rsx
# parameterCount 20
# instructionCount 4
# registerCount 1
# attributeInputMask Attr0
# attributeOutputMask None
# userClipMask 0: DISABLE, 1: DISABLE, 2: DISABLE, 3: DISABLE, 4: DISABLE, 5: DISABLE

index: type: name: semantic: res or resIndex
#0: float4: oldpos: in.POSITION0: ATTR0
#1: float4: newpos: out.POSITION0: HPOS
#2: float2: oldcrd: in.TEXCOORD0: ATTR8
#3: float4: oldnrm: in.TEXCOORD1: ATTR9
#4: float4: newcol: out.COLOR0: COL0
#5: float: _Fresnel: : UNDEFINED
#6: float: _Falloff: : UNDEFINED
#7: float: _Brightness: : UNDEFINED
#8: float: _MipmapBias: : UNDEFINED
#9: float4: _Eye: : UNDEFINED
#10: float4x4: _MVM: : C[256]
#11: float4: _MVM[0]: : C[256]
#12: float4: _MVM[1]: : C[257]
#13: float4: _MVM[2]: : C[258]
#14: float4: _MVM[3]: : C[259]
#15: float4x4: _MIT: : UNDEFINED
#16: float4: _MIT[0]: : UNDEFINED
#17: float4: _MIT[1]: : UNDEFINED
#18: float4: _MIT[2]: : UNDEFINED
#19: float4: _MIT[3]: : UNDEFINED

DP4 o[0].w, v[0], c[259];
DP4 o[0].z, v[0], c[258];
DP4 o[0].y, v[0], c[257];
DP4 o[0].x, v[0], c[256];
END
sce-cgcdisasm -h outfile imputfile (for header)
#ifndef _lib_moyou_lines0_params_H_
#define _lib_moyou_lines0_params_H_

typedef struct {
	int res;
	int resindex;
	int dvindex;
} CellGcm_lib_moyou_lines0_params_Table;

typedef struct {
	float defaultvalue[4];
} CellGcm_lib_moyou_lines0_params_DefaultValueTable;

enum CellGcm_lib_moyou_lines0_params_Enum {
	CELL_GCM_lib_moyou_lines0_params_oldpos = 0,
	CELL_GCM_lib_moyou_lines0_params_newpos = 1,
	CELL_GCM_lib_moyou_lines0_params_oldcrd = 2,
	CELL_GCM_lib_moyou_lines0_params_oldnrm = 3,
	CELL_GCM_lib_moyou_lines0_params_newcol = 4,
	CELL_GCM_lib_moyou_lines0_params___Fresnel = 5,
	CELL_GCM_lib_moyou_lines0_params___Falloff = 6,
	CELL_GCM_lib_moyou_lines0_params___Brightness = 7,
	CELL_GCM_lib_moyou_lines0_params___MipmapBias = 8,
	CELL_GCM_lib_moyou_lines0_params___Eye = 9,
	CELL_GCM_lib_moyou_lines0_params___MVM = 10,
	CELL_GCM_lib_moyou_lines0_params___MVM_0 = 11,
	CELL_GCM_lib_moyou_lines0_params___MVM_1 = 12,
	CELL_GCM_lib_moyou_lines0_params___MVM_2 = 13,
	CELL_GCM_lib_moyou_lines0_params___MVM_3 = 14,
	CELL_GCM_lib_moyou_lines0_params___MIT = 15,
	CELL_GCM_lib_moyou_lines0_params___MIT_0 = 16,
	CELL_GCM_lib_moyou_lines0_params___MIT_1 = 17,
	CELL_GCM_lib_moyou_lines0_params___MIT_2 = 18,
	CELL_GCM_lib_moyou_lines0_params___MIT_3 = 19,
};

CellGcm_lib_moyou_lines0_params_Table lib_moyou_lines0_params[20] = {
	{2113, -1, -1}, /* index:0, "oldpos" */
	{2243, -1, -1}, /* index:1, "newpos" */
	{2121, -1, -1}, /* index:2, "oldcrd" */
	{2122, -1, -1}, /* index:3, "oldnrm" */
	{2245, -1, -1}, /* index:4, "newcol" */
	{3256, -1, -1}, /* index:5, "_Fresnel" */
	{3256, -1, -1}, /* index:6, "_Falloff" */
	{3256, -1, -1}, /* index:7, "_Brightness" */
	{3256, -1, -1}, /* index:8, "_MipmapBias" */
	{3256, -1, -1}, /* index:9, "_Eye" */
	{2178, 256, -1}, /* index:10, "_MVM" */
	{2178, 256, -1}, /* index:11, "_MVM[0]" */
	{2178, 257, -1}, /* index:12, "_MVM[1]" */
	{2178, 258, -1}, /* index:13, "_MVM[2]" */
	{2178, 259, -1}, /* index:14, "_MVM[3]" */
	{3256, -1, -1}, /* index:15, "_MIT" */
	{3256, -1, -1}, /* index:16, "_MIT[0]" */
	{3256, -1, -1}, /* index:17, "_MIT[1]" */
	{3256, -1, -1}, /* index:18, "_MIT[2]" */
	{3256, -1, -1}, /* index:19, "_MIT[3]" */
};

CellGcm_lib_moyou_lines0_params_DefaultValueTable lib_moyou_lines0_params_default_value[0] = {
};

#endif //_lib_moyou_lines0_params_H_