- Timestamp:
- Apr 5, 2012 8:38:49 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/pjsua/pjsua_app.c
r4025 r4027 3595 3595 puts("| vid codec fps ID NUM DEN Set codec ID framerate to (NUM/DEN) fps |"); 3596 3596 puts("| vid codec bw ID AVG MAX Set codec ID bitrate to AVG & MAX kbps |"); 3597 puts("| vid codec size ID W H Set codec ID size/resolution to W x H |"); 3597 3598 puts("| vid win list List all active video windows |"); 3598 3599 puts("| vid win arrange Auto arrange windows |"); … … 4262 4263 unsigned i; 4263 4264 PJ_LOG(3,(THIS_FILE, "Found %d video codecs:", count)); 4264 PJ_LOG(3,(THIS_FILE, "codec id prio fps br(kbps)"));4265 PJ_LOG(3,(THIS_FILE, "---------------------------------- "));4265 PJ_LOG(3,(THIS_FILE, "codec id prio fps bw(kbps) size")); 4266 PJ_LOG(3,(THIS_FILE, "------------------------------------------")); 4266 4267 for (i=0; i<count; ++i) { 4267 4268 pjmedia_vid_codec_param cp; … … 4274 4275 vfd = pjmedia_format_get_video_format_detail(&cp.enc_fmt, 4275 4276 PJ_TRUE); 4276 PJ_LOG(3,(THIS_FILE, "%.*s%.*s %3d %7.2f %d/%d",4277 PJ_LOG(3,(THIS_FILE, "%.*s%.*s %3d %7.2f %4d/%4d %dx%d", 4277 4278 (int)ci[i].codec_id.slen, ci[i].codec_id.ptr, 4278 4279 13-(int)ci[i].codec_id.slen, " ", 4279 4280 ci[i].priority, 4280 4281 (vfd->fps.num*1.0/vfd->fps.denum), 4281 vfd->avg_bps/1000, vfd->max_bps/1000)); 4282 vfd->avg_bps/1000, vfd->max_bps/1000, 4283 vfd->size.w, vfd->size.h)); 4282 4284 } 4283 4285 } … … 4316 4318 cp.enc_fmt.det.vid.avg_bps = M * 1000; 4317 4319 cp.enc_fmt.det.vid.max_bps = N * 1000; 4320 status = pjsua_vid_codec_set_param(&cid, &cp); 4321 } 4322 if (status != PJ_SUCCESS) 4323 PJ_PERROR(1,(THIS_FILE, status, "Set codec bitrate error")); 4324 } else if (argc==6 && strcmp(argv[2], "size")==0) { 4325 pjmedia_vid_codec_param cp; 4326 pj_str_t cid; 4327 int M, N; 4328 cid = pj_str(argv[3]); 4329 M = atoi(argv[4]); 4330 N = atoi(argv[5]); 4331 status = pjsua_vid_codec_get_param(&cid, &cp); 4332 if (status == PJ_SUCCESS) { 4333 cp.enc_fmt.det.vid.size.w = M; 4334 cp.enc_fmt.det.vid.size.h = N; 4318 4335 status = pjsua_vid_codec_set_param(&cid, &cp); 4319 4336 }
Note: See TracChangeset
for help on using the changeset viewer.