[asterisk-commits] rizzo: branch rizzo/video_v2 r82372 - /team/rizzo/video_v2/channels/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Sep 14 06:42:25 CDT 2007
Author: rizzo
Date: Fri Sep 14 06:42:25 2007
New Revision: 82372
URL: http://svn.digium.com/view/asterisk?view=rev&rev=82372
Log:
remove diagnostic code
Modified:
team/rizzo/video_v2/channels/console_video.c
Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=82372&r1=82371&r2=82372
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Fri Sep 14 06:42:25 2007
@@ -620,9 +620,11 @@
if (!env->initialized)
return;
-fprintf(stderr, "thd %p env->out %dx%d in.ctx %dx%d default %dx%d\n",
- pthread_self(),
- env->out.w, env->out.h, c->width, c->height, env->w, env->h);
+#if 0
+ fprintf(stderr, "thd %p env->out %dx%d in.ctx %dx%d default %dx%d\n",
+ pthread_self(),
+ env->out.w, env->out.h, c->width, c->height, env->w, env->h);
+#endif
ast_mutex_lock(&env->lock);
if(env->screen == NULL) {
@@ -813,7 +815,7 @@
}
#else
uint8_t *p, *ret = NULL;
- fprintf(stderr, "begin %p end %p\n", begin, end);
+ // fprintf(stderr, "begin %p end %p\n", begin, end);
if(begin == end) return NULL;
for(p = begin; p < end-2; ++p) {
if(p[0] == 0 && p[1] == 0) {
@@ -927,7 +929,7 @@
if (!webcam_read(&env->out))
return NULL;
- fprintf(stderr, "webcam read\n");
+ //fprintf(stderr, "webcam read\n");
// XXX - questa porzione di codice limita la generazione dei
// frame al framerate specificato nel file di configurazione
@@ -943,10 +945,9 @@
env->out.msts.tv_usec = tvnow.tv_usec;
/* get frame and put them in the queue */
show_frame(env, 1);
- fprintf(stderr, "webcam_encode\n");
+ // fprintf(stderr, "webcam_encode\n");
webcam_buflen = avcodec_encode_video(env->out.context,
env->out.decbuf.data, env->out.decbuf.size, env->out.frame);
- fprintf(stderr, "split_frame\n");
return split_frame(&(env->out), webcam_buflen);
}
More information about the asterisk-commits
mailing list