Changeset 5028 for pjproject/trunk
- Timestamp:
- Mar 26, 2015 5:40:51 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjmedia/src/pjmedia-videodev/android_opengl.c
r5016 r5028 39 39 * To disable this feature, put 0. 40 40 */ 41 #define STOP_IF_ERROR_RENDERING 5 42 43 extern JavaVM *pj_jni_jvm; 41 #define STOP_IF_ERROR_RENDERING 8 44 42 45 43 typedef struct andgl_fmt_info … … 139 137 int pjmedia_vid_dev_opengl_imp_get_cap(void) 140 138 { 141 return PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW | 142 PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE; 139 return PJMEDIA_VID_DEV_CAP_OUTPUT_WINDOW; 143 140 } 144 141 … … 299 296 strm->ts_inc = PJMEDIA_SPF2(param->clock_rate, &vfd->fps, 1); 300 297 301 /* If OUTPUT_RESIZE flag is not used, set display size to default */302 if (!(param->flags & PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE)) {303 pj_bzero(&strm->param.disp_size, sizeof(strm->param.disp_size));304 }305 306 298 /* Set video format */ 307 299 status = andgl_stream_set_cap(&strm->base, PJMEDIA_VID_DEV_CAP_FORMAT, … … 326 318 } 327 319 328 /* Apply the remaining settings */329 /* if (param->flags & PJMEDIA_VID_DEV_CAP_ORIENTATION) {330 andgl_stream_set_cap(&strm->base, PJMEDIA_VID_DEV_CAP_ORIENTATION,331 ¶m->orient);332 }333 */334 320 PJ_LOG(4, (THIS_FILE, "Android OpenGL ES renderer successfully created")); 335 321 … … 444 430 } 445 431 446 PJ_LOG(4, (THIS_FILE, "Re-initializing OpenGL with window %p: %s",447 strm->window,432 PJ_LOG(4, (THIS_FILE, "Re-initializing OpenGL with native window" 433 " %p: %s", strm->window, 448 434 (status == PJ_SUCCESS? "success": "failed"))); 449 435 450 436 return status; 451 } else if (cap == PJMEDIA_VID_DEV_CAP_OUTPUT_RESIZE) {452 pj_memcpy(&strm->param.disp_size, pval, sizeof(strm->param.disp_size));453 return PJ_SUCCESS;454 } else if (cap == PJMEDIA_VID_DEV_CAP_ORIENTATION) {455 pj_memcpy(&strm->param.orient, pval, sizeof(strm->param.orient));456 if (strm->param.orient == PJMEDIA_ORIENT_UNKNOWN)457 return PJ_SUCCESS;458 return PJ_SUCCESS;459 437 } 460 438
Note: See TracChangeset
for help on using the changeset viewer.