staticSDL_VoutOverlay *func_create_overlay_l(intwidth,intheight,intframe_format, SDL_Vout *vout) {switch(frame_format) {caseIJK_AV_PIX_FMT__ANDROID_MEDIACODEC:returnSDL_VoutAMediaCodec_CreateOverlay(width, height, vout);default:returnSDL_VoutFFmpeg_CreateOverlay(width, height, frame_format, vout...
#define TEST_FILE_AAC "/home/ffmpeg/work/aaclc.mp4" #define TEST_FILE_JPG "/home/ffmpeg/work/11.jpg" #define TEST_FILE_MP3 "/home/ffmpeg/work/lkdd.mp3" #define TEST_FILE_MLH_MP3 "/home/ffmpeg/work/mlh.mp3" #define TEST_FILE_WAV "/home/ffmpeg/work/xpstart.wav" #define TEST_FI...
SDL_Vout_Opaque*opaque; SDL_VoutOverlay*(*create_overlay)(intwidth,intheight,intframe_format, SDL_Vout *vout);void(*free_l)(SDL_Vout *vout);int(*display_overlay)(SDL_Vout *vout, SDL_VoutOverlay *overlay); Uint32 overlay_format; };voidSDL_VoutFree(SDL_Vout *vout);voidSDL_VoutFreeP(S...
MMAL_STATUS_T status;if((status=mmal_sdl_create_surface(module)) != MMAL_SUCCESS)returnstatus;/* We only support I420 */if(port->format->encoding != MMAL_ENCODING_I420)returnMMAL_ENOSYS;/* Check if we need to re-create an overlay */if(module->sdl_overlay &&module->width == port-...
plat_sdl_overlay_clear(); }else{fprintf(stderr,"warning: could not create overlay.\n"); plat_target.vout_method =0; } }elseif(plat_target.vout_method == vout_mode_gl) { plat_sdl_gl_active = (gl_init(display, window, &gl_quirks) ==0);if(!plat_sdl_gl_active) {fprintf(stderr...