Mercurial > mplayer.hg
view libao2/audio_out.c @ 4516:d604c3db9a76
Direct rendering expansion:
test with -vc divx4vfw:
-vaa_dr:
BENCHMARKs: V: 7.043s VO: 0.005s A: 0.528s Sys: 22.331s = 29.907s
BENCHMARK%: V: 23.5498% VO: 0.0156% A: 1.7670% Sys: 74.6676% = 100.0000%
-vaa_nodr:
BENCHMARKs: V: 5.454s VO: 2.433s A: 0.519s Sys: 21.513s = 29.920s
BENCHMARK%: V: 18.2296% VO: 8.1321% A: 1.7351% Sys: 71.9032% = 100.0000%
speed up on 7.043 vs 7.687 = 10% on K7
author | nick |
---|---|
date | Sun, 03 Feb 2002 16:13:05 +0000 |
parents | 492df9b2b1cf |
children | d678ce495a75 |
line wrap: on
line source
#include <stdio.h> #include <stdlib.h> #include "../config.h" #include "audio_out.h" #include "afmt.h" // there are some globals: ao_data_t ao_data={0,0,0,0,OUTBURST,-1,0}; char *ao_subdevice = NULL; #ifdef USE_OSS_AUDIO extern ao_functions_t audio_out_oss; #endif extern ao_functions_t audio_out_null; #ifdef HAVE_ALSA5 extern ao_functions_t audio_out_alsa5; #endif #ifdef HAVE_ALSA9 extern ao_functions_t audio_out_alsa9; #endif #ifdef HAVE_ESD extern ao_functions_t audio_out_esd; #endif #ifdef HAVE_NAS extern ao_functions_t audio_out_nas; #endif #ifdef HAVE_SDL extern ao_functions_t audio_out_sdl; #endif #ifdef USE_SUN_AUDIO extern ao_functions_t audio_out_sun; #endif #ifdef USE_SGI_AUDIO extern ao_functions_t audio_out_sgi; #endif extern ao_functions_t audio_out_pcm; extern ao_functions_t audio_out_mpegpes; extern ao_functions_t audio_out_pss; extern ao_functions_t audio_out_plugin; ao_functions_t* audio_out_drivers[] = { #ifdef USE_OSS_AUDIO &audio_out_oss, #endif #ifdef USE_SUN_AUDIO &audio_out_sun, #endif #ifdef USE_SGI_AUDIO &audio_out_sgi, #endif &audio_out_null, #ifdef HAVE_ALSA5 &audio_out_alsa5, #endif #ifdef HAVE_ALSA9 &audio_out_alsa9, #endif #ifdef HAVE_ESD &audio_out_esd, #endif #ifdef HAVE_NAS &audio_out_nas, #endif #ifdef HAVE_SDL &audio_out_sdl, #endif &audio_out_pcm, &audio_out_mpegpes, &audio_out_plugin, // &audio_out_pss, NULL };