|
5 | 5 | #define GOGGLES_V1_VOFFSET 575
|
6 | 6 | #define GOGGLES_V2_VOFFSET 215
|
7 | 7 |
|
8 |
| -static duss_result_t pop_func(duss_disp_instance_handle_t *disp_handle,duss_disp_plane_id_t plane_id, duss_frame_buffer_t *frame_buffer,void *user_ctx) { |
9 |
| - dji_display_state_t *display_state = (dji_display_state_t *)user_ctx; |
10 |
| - display_state->frame_drawn = 0; |
11 |
| - printf("fbdebug pop_func\n"); |
12 |
| - return 0; |
13 |
| -} |
14 |
| - |
15 | 8 | dji_display_state_t *dji_display_state_alloc(uint8_t is_v2_goggles) {
|
16 | 9 | dji_display_state_t *display_state = calloc(1, sizeof(dji_display_state_t));
|
17 | 10 | display_state->disp_instance_handle = (duss_disp_instance_handle_t *)calloc(1, sizeof(duss_disp_instance_handle_t));
|
@@ -98,11 +91,6 @@ void dji_display_open_framebuffer(dji_display_state_t *display_state, duss_disp_
|
98 | 91 | printf("failed to acquire plane");
|
99 | 92 | exit(0);
|
100 | 93 | }
|
101 |
| - res = duss_hal_display_register_frame_cycle_callback(display_state->disp_instance_handle, plane_id, &pop_func, display_state); |
102 |
| - if (res != 0) { |
103 |
| - printf("failed to register callback"); |
104 |
| - exit(0); |
105 |
| - } |
106 | 94 | res = duss_hal_display_port_enable(display_state->disp_instance_handle, 3, 1);
|
107 | 95 | if (res != 0) {
|
108 | 96 | printf("failed to enable display port");
|
@@ -215,11 +203,6 @@ void dji_display_open_framebuffer_injected(dji_display_state_t *display_state, d
|
215 | 203 | DEBUG_PRINT("failed to acquire plane");
|
216 | 204 | exit(0);
|
217 | 205 | }
|
218 |
| - res = duss_hal_display_register_frame_cycle_callback(display_state->disp_instance_handle, plane_id, &pop_func, 0); |
219 |
| - if (res != 0) { |
220 |
| - DEBUG_PRINT("failed to register callback"); |
221 |
| - exit(0); |
222 |
| - } |
223 | 206 |
|
224 | 207 | res = duss_hal_display_plane_blending_set(display_state->disp_instance_handle, plane_id, display_state->pb_0);
|
225 | 208 |
|
|
0 commit comments