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);
}
}