void mmi_video_call_jrtc_config_init_01(char * t_tokens)
{
#ifndef __VIDEO_CALL_TEST__
- char appkey[24+1] = "21b649200a62dd8cde334097";
- char key[16+1] = "41042Jxz17m69E16";
+ //char appkey[24+1] = "21b649200a62dd8cde334097";
+ //char key[16+1] = "41042Jxz17m69E16";
+ char appkey[24+1] = "30caab608238fd8ce3334095";
+ char key[16+1] = "172q76141506bnb9";
char uid[64+1] = {0};
char tokens[128+1] = {0};
if (MODEM_VIDEO_CALL_TYPE_VIDEO == calltype)
{
- s_video_call_jrtc.rxframe.width = s_video_call_jrtc.txframe.width = 176;
- s_video_call_jrtc.rxframe.height = s_video_call_jrtc.txframe.height = 144;
+ s_video_call_jrtc.rxframe.width = s_video_call_jrtc.txframe.width = canvas_width; // 176;
+ s_video_call_jrtc.rxframe.height = s_video_call_jrtc.txframe.height = canvas_heigh; // 144;
s_video_call_jrtc.rxframe.fps = s_video_call_jrtc.txframe.fps = 8; // 10;
s_video_call_jrtc.rxframe.kbps = s_video_call_jrtc.txframe.kbps = 120; // 240;
frame = &s_video_call_jrtc.txframe;
if (frame->put != frame->get) {
-#if (ENABLE_VIDEO_SCALE == 0)
- yuv420_2_rgb565(frame->width, frame->height, frame->data, preview_buf, frame->format);
-#else
- Hal_Yuv420_Render(frame->width, frame->height, canvas_width, canvas_heigh, frame->data, preview_buf, frame->format);
-#endif
+//#if (ENABLE_VIDEO_SCALE == 0)
+// yuv420_2_rgb565(frame->width, frame->height, frame->data, preview_buf, frame->format);
+//#else
+// Hal_Yuv420_Render(frame->width, frame->height, canvas_width, canvas_heigh, frame->data, preview_buf, frame->format);
+//#endif
+ rgb565_scale(frame->width, frame->height, canvas_width, canvas_heigh, frame->data, preview_buf);
frame->get = frame->put;
ret = 1;