sram + cam adjust

This commit is contained in:
NonPIayerCharacter
2025-08-29 11:40:30 +03:00
parent 5f7110258f
commit 3764154c3e
10 changed files with 24 additions and 44 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ void prc_finish(void *d)
{
struct prc_pixel *pixel_prc = (struct prc_pixel*)d;
pixel_prc->hardward_ready = 1;
_os_printf("$");
//_os_printf("$");
}
+4 -4
View File
@@ -263,7 +263,7 @@ void spook_send_thread_stream(struct rtsp_priv *r)
audio_f = GET_FRAME(audio_s);
if(audio_f)
{
_os_printf("A");
//_os_printf("A");
audio = audio_ex->jf;//ex->slave_cur->f;
audio->get_f = audio_f;
audio->length = GET_DATA_LEN(audio_f);
@@ -299,7 +299,7 @@ void spook_send_thread_stream(struct rtsp_priv *r)
if((os_jiffies() - time_for_count) > 1000){
time_for_count = os_jiffies();
_os_printf("cnt_num:%d\r\n",cnt_num);
//_os_printf("cnt_num:%d\r\n",cnt_num);
cnt_num = 0;
}
jpeg->length = GET_DATA_LEN(get_f);;
@@ -314,7 +314,7 @@ void spook_send_thread_stream(struct rtsp_priv *r)
* callback: get_back_frame( struct frame *f, void *d )
* d: (jpeg_encoder *)en
*/
_os_printf("#");
//_os_printf("#");
//_os_printf("ex:%X\tf:%X\n",ex,ex->f);
ex->f( jpeg, ex->d );
}
@@ -325,7 +325,7 @@ void spook_send_thread_stream(struct rtsp_priv *r)
count_times++;
if(count_times>25)
{
_os_printf("time:%lld\n",csi_kernel_get_ticks()-time);
//_os_printf("time:%lld\n",csi_kernel_get_ticks()-time);
count_times = 0;
time = csi_kernel_get_ticks();
}
+1 -1
View File
@@ -857,7 +857,7 @@ int fd_send_data(int fd,unsigned char *sendbuf,int sendLen,int times)
}
if(size<0)
{
_os_printf("%s err size:%d\n",__FUNCTION__,size);
//_os_printf("%s err size:%d\n",__FUNCTION__,size);
return -1;
}
+1 -1
View File
@@ -522,7 +522,7 @@ static int opcode_func(stream *s,void *priv,int opcode)
if(data->data)
{
//因为是转发,所以这里移除的话是交给原来的方法移除
_os_printf("$");
//_os_printf("$");
free_data(data->data);
data->data = NULL;
}
+1 -1
View File
@@ -499,7 +499,7 @@ static int opcode_func(stream *s,void *priv,int opcode)
if(data->data)
{
//因为是转发,所以这里移除的话是交给原来的方法移除
_os_printf("$");
//_os_printf("$");
free_data(data->data);
data->data = NULL;
}
+1 -1
View File
@@ -655,7 +655,7 @@ static void jpeg_in_sram(struct os_work *work,struct list_head *get_f)
j->malloc_mem = dest_list;
del_jpeg_frame(get_f);
//统一发送数据,这个时候,其他流才有可能获取到数据
_os_printf("$");
//_os_printf("$");
send_data_to_stream(data_s);
}
}
+1 -1
View File
@@ -675,7 +675,7 @@ void jpeg_in_sram(struct list_head *get_f)
j->malloc_mem = dest_list;
del_jpeg_frame(get_f);
//统一发送数据,这个时候,其他流才有可能获取到数据
_os_printf("$");
//_os_printf("$");
send_data_to_stream(data_s);
}
}
-2
View File
@@ -1889,8 +1889,6 @@ tcp_alloc(u8_t prio)
/* adjust err stats: memp_malloc failed above */
MEMP_STATS_DEC(err, MEMP_TCP_PCB);
}
}else{
printf("NO FREE TCP_PCB! total:%d\r\n", MEMP_NUM_TCP_PCB);
}
if (pcb != NULL) {
+6 -6
View File
@@ -1,7 +1,7 @@
#include "sys_config.h"
#include "typesdef.h"
#include "lib/video/dvp/cmos_sensor/csi.h"
#include "lib/video/dvp/cmos_sensor/csi_V2.h"
#include "lib/video/dvp/cmos_sensor/csi_v2.h"
#include "devid.h"
#include "hal/gpio.h"
#include "osal/irq.h"
@@ -1118,7 +1118,7 @@ void vpp_hsie_isr(uint32 irq,uint32 image_h,uint32 param){
void vpp_vsie_isr(uint32 irq,uint32 dev,uint32 param){
vs_isr++;
set_time_watermark(2022,9,1,20,1,(os_jiffies()/1000)%60);
//set_time_watermark(2022,9,1,20,1,(os_jiffies()/1000)%60);
}
void vpp_data_done(uint32 irq,uint32 dev,uint32 param){
@@ -1817,11 +1817,11 @@ bool csi_yuv_mode(){
vpp_set_water0_color(vpp_test,0xff,0x80,0x80);
vpp_set_water0_bitmap(vpp_test,(uint32)ele_lib);
vpp_set_water0_locate(vpp_test,50,36);
vpp_set_water0_locate(vpp_test,0,0);
vpp_set_water0_contrast(vpp_test,0);
vpp_set_watermark0_charsize_and_num(vpp_test,12,32,19);
vpp_set_watermark0_mode(vpp_test,1);
set_time_watermark(2222,22,22,22,22,22);
set_time_watermark(0000,00,00,00,00,00);
vpp_set_water0_rc(vpp_test,0);
@@ -1861,8 +1861,8 @@ bool csi_yuv_mode(){
#endif
vpp_set_mode(vpp_test,IMAGE_FORMAT);
vpp_set_watermark0_enable(vpp_test,1);
vpp_set_watermark1_enable(vpp_test,1);
vpp_set_watermark0_enable(vpp_test,0);
vpp_set_watermark1_enable(vpp_test,0);
#if IPF_EN
// vpp_set_ifp_en(vpp_test,1);