We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0fbff commit b84b611Copy full SHA for b84b611
platform/m6/lib.c
@@ -119,6 +119,48 @@ long vid_get_viewport_height() {
119
return _GetVRAMVPixelsSize();
120
}
121
122
+/**
123
+ * @header viewport.h
124
+ */
125
+void* vid_get_opacity_active_buffer() {
126
+ return opacity_buffer[active_bitmap_buffer & 1];
127
+}
128
+
129
130
131
132
+int vid_get_viewport_display_xoffset_proper() {
133
+ return vid_get_viewport_display_xoffset();
134
135
136
137
138
139
+int vid_get_viewport_display_yoffset_proper() {
140
+ return vid_get_viewport_display_yoffset();
141
142
143
144
145
146
+int vid_get_viewport_fullscreen_width() {
147
+ return CAM_SCREEN_WIDTH;
148
149
150
151
152
153
+int vid_get_viewport_fullscreen_height() {
154
+ return CAM_SCREEN_HEIGHT;
155
156
157
158
159
160
+int vid_get_viewport_buffer_width_proper() {
161
+ return CAM_BITMAP_WIDTH;
162
163
164
/**
165
* @header viewport.h
166
*/
@@ -129,8 +171,8 @@ int vid_get_viewport_type() {
171
172
173
-void* vid_get_opacity_active_buffer() {
- return opacity_buffer[active_bitmap_buffer & 1];
174
+int vid_get_aspect_ratio() {
175
+ return LV_ASPECT_3_2;
176
177
178
platform/m6/platform_camera.h
@@ -70,8 +70,12 @@
70
#undef CAM_HAS_ERASE_BUTTON
71
#undef CAM_USE_ZOOM_FOR_MF
72
73
+#undef CAM_KEY_PRESS_DELAY
74
+#define CAM_KEY_PRESS_DELAY 60
75
76
#define CAM_3ARG_DebugAssert 1
77
#define CAM_FILE_COUNTER_IS_VAR 1
78
+#define PARAM_CAMERA_NAME 2
79
#define CAM_DATE_FOLDER_NAMING 0x80
80
#define CAM_QUALITY_OVERRIDE 1
81
#define CAM_CALC_BLACK_LEVEL 1
platform/m6/sub/101a/boot.c
@@ -178,7 +178,7 @@ void __attribute__((naked,noinline)) CreateTask_my() {
179
180
void __attribute__((naked,noinline)) init_file_modules_task() {
181
- // tools/capdis -f=chdk -jfw -stubs -s=task_InitFileModules -c=18 PRIMARY.BIN 0xe0000000
+ // capdis -f=chdk -jfw -stubs -s=task_InitFileModules -c=18 PRIMARY.BIN 0xe0000000
182
// task_InitFileModules 0xe00fdd05
183
asm volatile (
184
" push {r4, r5, r6, lr}\n"
platform/m6/sub/101a/stubs_entry.S
@@ -194,6 +194,7 @@ DEF_CONST(fw_yuv_layer_buf ,0x4196a000) // Found @0xe007b710
194
//NHSTUB(RenameFile_Fut ,0x00000000) // 0 *** != 0xe0334f31
195
//NHSTUB(SetFileAttributes ,0x00000000) // 0 *** != 0xe035f66f
196
//NHSTUB(SetFileTimeStamp ,0x00000000) // 0 *** != 0xe035f627
197
+//NHSTUB(WriteSDCard ,0x00000000) // 0 *** != 0xe04faf19
198
//NHSTUB(_sqrt ,0x00000000) // 0 *** != 0xdffd619d
199
//NHSTUB(apex2us ,0x00000000) // 0 *** != 0xe01217c7
200
//NHSTUB(exmem_ualloc ,0x00000000) // 0 *** != 0xe00744f7
@@ -282,7 +283,6 @@ NHSTUB(UnlockAF ,0xe027a2f1) // 0
282
283
NHSTUB(UnlockMainPower ,0xe0088cdb) // 0
284
NHSTUB(VbattGet ,0xe0072c69) // 0
285
NHSTUB(Write ,0xe035f2fd) // 0
-//NHSTUB(WriteSDCard ,0x00000000) // 0 == 0x00000000
286
NHSTUB(_log ,0xdffd52c9) // 0
287
NHSTUB(_log10 ,0xdffd5621) // 0
288
NHSTUB(_pow ,0xdffd5705) // 0
platform/m6/sub/101a/stubs_entry_2.S
@@ -19,6 +19,8 @@ NHSTUB(exmem_ualloc, 0xe00744f7)
19
NHSTUB(exmem_ufree, 0xe0074553)
20
NHSTUB(reboot_fw_update, 0xe039b733)
21
NHSTUB(GetImageFolder, 0xe02e3031)
22
+NHSTUB(WriteSDCard, 0xe04faf19)
23
+NHSTUB(MakeSDCardBootable, 0xe036111b)
24
25
IGNORE(EngDrvRead)
26
NHSTUB(EngDrvRead_FW, 0xe05b1d13) // in wrappers
@@ -28,7 +30,6 @@ NHSTUB(GetLensWideFocalLength, 0xe03f4573)
28
30
29
31
NHSTUB(VTMLock, NULL_SUB)
32
NHSTUB(VTMUnlock, NULL_SUB)
-NHSTUB(MakeSDCardBootable, 0xe036111b)
33
34
// MMU
35
NHSTUB(dcache_clean_by_mva, 0xe036ba79)
@@ -47,4 +48,3 @@ NHSTUB(MoveFocusLensToDistance, NULL_SUB) // TODO: MoveFocusLensWith
47
48
NHSTUB(Restart, NULL_SUB) // TODO
49
NHSTUB(TurnOffBackLight, NULL_SUB) // TODO
50
NHSTUB(TurnOnBackLight, NULL_SUB) // TODO
-NHSTUB(WriteSDCard, NULL_SUB) // TODO
0 commit comments