1.rtos下logo调整

This commit is contained in:
payton 2023-09-26 15:57:39 +08:00
parent 900d307e54
commit 79947014b3
2 changed files with 10 additions and 6 deletions

View File

@ -391,6 +391,9 @@ static THREAD_RETTYPE thread_videoout(void *ptr)
goto exit; goto exit;
} }
videoout_syscaps.output_dim.w = BOOT_LOGO_LCD_HEIGHT;
videoout_syscaps.output_dim.h = BOOT_LOGO_LCD_WIDTH;
LINUX_BOOT_MSG("syscaps : input %lu %lu output %lu %lu\n", videoout_syscaps.input_dim.w, videoout_syscaps.input_dim.h, videoout_syscaps.output_dim.w, videoout_syscaps.output_dim.h); LINUX_BOOT_MSG("syscaps : input %lu %lu output %lu %lu\n", videoout_syscaps.input_dim.w, videoout_syscaps.input_dim.h, videoout_syscaps.output_dim.w, videoout_syscaps.output_dim.h);
if(flow_boot_logo_videoout_set_param_in( if(flow_boot_logo_videoout_set_param_in(
@ -400,8 +403,9 @@ static THREAD_RETTYPE thread_videoout(void *ptr)
pxlfmt) != HD_OK){ pxlfmt) != HD_OK){
goto exit; goto exit;
} }
HD_URECT rect = (HD_URECT){0, 0, 720, 320};
HD_URECT rect = (HD_URECT){0, 0, videoout_syscaps.output_dim.w, videoout_syscaps.output_dim.h}; //HD_URECT rect = (HD_URECT){0, 0, videoout_syscaps.output_dim.w, videoout_syscaps.output_dim.h};
if(flow_boot_logo_videoout_set_param_in_win(path_id, rect) != HD_OK){ if(flow_boot_logo_videoout_set_param_in_win(path_id, rect) != HD_OK){
goto exit; goto exit;
} }
@ -491,11 +495,11 @@ static THREAD_RETTYPE thread_videodec(void *ptr)
} }
#endif #endif
video_frame.dim.w = BOOT_LOGO_LCD_HEIGHT; //video_frame.dim.w = BOOT_LOGO_LCD_HEIGHT;
video_frame.dim.h = BOOT_LOGO_LCD_WIDTH; //video_frame.dim.h = BOOT_LOGO_LCD_WIDTH;
/* wait videoout ready */ /* wait videoout ready */
LINUX_BOOT_MSG("%s wait videoout ready ...\n", __func__); LINUX_BOOT_MSG("%s wait videoout ready ...h:%d w:%d\n", __func__,video_frame.dim.h,video_frame.dim.w);
vos_flag_wait(&flag_ptn, task_param->flag, FLAG_VIDEOOUT_TASK_EXIT, TWF_ORW); vos_flag_wait(&flag_ptn, task_param->flag, FLAG_VIDEOOUT_TASK_EXIT, TWF_ORW);
LINUX_BOOT_MSG("%s push logo frame\n", __func__); LINUX_BOOT_MSG("%s push logo frame\n", __func__);
ret = hd_videoout_push_in_buf(task_param->vout_path_id, &video_frame, NULL, 0); ret = hd_videoout_push_in_buf(task_param->vout_path_id, &video_frame, NULL, 0);

View File

@ -1,8 +1,8 @@
#ifndef _FLOW_BOOT_LOGO_H #ifndef _FLOW_BOOT_LOGO_H
#define _FLOW_BOOT_LOGO_H #define _FLOW_BOOT_LOGO_H
#define BOOT_LOGO_LCD_WIDTH 720 #define BOOT_LOGO_LCD_WIDTH 320
#define BOOT_LOGO_LCD_HEIGHT 320 #define BOOT_LOGO_LCD_HEIGHT 240
typedef void (*flow_boot_logo_mem_init_cb)(void); /* do mem init cb if not null */ typedef void (*flow_boot_logo_mem_init_cb)(void); /* do mem init cb if not null */