head 1.9; access; symbols pkgsrc-2013Q2:1.9.0.52 pkgsrc-2013Q2-base:1.9 pkgsrc-2012Q4:1.9.0.50 pkgsrc-2012Q4-base:1.9 pkgsrc-2011Q4:1.9.0.48 pkgsrc-2011Q4-base:1.9 pkgsrc-2011Q2:1.9.0.46 pkgsrc-2011Q2-base:1.9 pkgsrc-2009Q4:1.9.0.44 pkgsrc-2009Q4-base:1.9 pkgsrc-2008Q4:1.9.0.42 pkgsrc-2008Q4-base:1.9 pkgsrc-2008Q3:1.9.0.40 pkgsrc-2008Q3-base:1.9 cube-native-xorg:1.9.0.38 cube-native-xorg-base:1.9 pkgsrc-2008Q2:1.9.0.36 pkgsrc-2008Q2-base:1.9 pkgsrc-2008Q1:1.9.0.34 pkgsrc-2008Q1-base:1.9 pkgsrc-2007Q4:1.9.0.32 pkgsrc-2007Q4-base:1.9 pkgsrc-2007Q3:1.9.0.30 pkgsrc-2007Q3-base:1.9 pkgsrc-2007Q2:1.9.0.28 pkgsrc-2007Q2-base:1.9 pkgsrc-2007Q1:1.9.0.26 pkgsrc-2007Q1-base:1.9 pkgsrc-2006Q4:1.9.0.24 pkgsrc-2006Q4-base:1.9 pkgsrc-2006Q3:1.9.0.22 pkgsrc-2006Q3-base:1.9 pkgsrc-2006Q2:1.9.0.20 pkgsrc-2006Q2-base:1.9 pkgsrc-2006Q1:1.9.0.18 pkgsrc-2006Q1-base:1.9 pkgsrc-2005Q4:1.9.0.16 pkgsrc-2005Q4-base:1.9 pkgsrc-2005Q3:1.9.0.14 pkgsrc-2005Q3-base:1.9 pkgsrc-2005Q2:1.9.0.12 pkgsrc-2005Q2-base:1.9 pkgsrc-2005Q1:1.9.0.10 pkgsrc-2005Q1-base:1.9 pkgsrc-2004Q4:1.9.0.8 pkgsrc-2004Q4-base:1.9 pkgsrc-2004Q3:1.9.0.6 pkgsrc-2004Q3-base:1.9 pkgsrc-2004Q2:1.9.0.4 pkgsrc-2004Q2-base:1.9 pkgsrc-2004Q1:1.9.0.2 pkgsrc-2004Q1-base:1.9 pkgsrc-2003Q4:1.6.0.2 pkgsrc-2003Q4-base:1.6; locks; strict; comment @# @; 1.9 date 2004.01.26.12.26.40; author jmmv; state dead; branches; next 1.8; 1.8 date 2003.12.12.22.09.02; author wiz; state Exp; branches; next 1.7; 1.7 date 2003.12.08.19.20.49; author wiz; state Exp; branches; next 1.6; 1.6 date 2003.08.31.00.25.21; author xtraeme; state Exp; branches; next 1.5; 1.5 date 2003.04.09.17.19.14; author drochner; state Exp; branches; next 1.4; 1.4 date 2002.12.21.19.49.53; author wiz; state dead; branches; next 1.3; 1.3 date 2002.11.13.15.25.35; author wiz; state Exp; branches; next 1.2; 1.2 date 2002.10.18.06.44.34; author skrll; state Exp; branches; next 1.1; 1.1 date 2002.10.07.11.36.18; author skrll; state Exp; branches; next ; desc @@ 1.9 log @Moved to the multimedia category. @ text @$NetBSD: patch-ad,v 1.8 2003/12/12 22:09:02 wiz Exp $ --- mp_msg.c.orig 2003-09-12 17:46:16.000000000 +0200 +++ mp_msg.c @@@@ -34,6 +34,7 @@@@ void mp_msg_init(){ #ifdef MP_DEBUG fprintf(stdout, "Using GNU internationalization\n"); fprintf(stdout, "Original domain: %s\n", textdomain(NULL)); +#if 0 fprintf(stdout, "Original dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); #endif setlocale(LC_ALL, ""); /* set from the environment variables */ @@@@ -41,9 +42,12 @@@@ void mp_msg_init(){ textdomain("mplayer"); #ifdef MP_DEBUG fprintf(stdout, "Current domain: %s\n", textdomain(NULL)); +#if 0 fprintf(stdout, "Current dirname: %s\n\n", bindtextdomain(textdomain(NULL),NULL)); #endif #endif +#endif +#endif mp_msg_set_level(MSGL_STATUS); } @ 1.8 log @Update to 1.0rc3. Package fixes: mencoder now installs a correct man page link on MANZ=1 systems. Added a patch so this might compile on amd64 systems, addresses PR 23727. Changes: MPlayer 1.0pre3: "The Real Counter" DOCS: * all MPlayer and MEncoder options documented * all FFmpeg/libavcodec options documented * Support for building incomplete XML documentation * Support for building all-in-one HTML docs * HTML documentation obsoleted * English, Polish and French HTML documentation removed * Spanish documentation translation finished * Macedonian runtime output translation added * small improvements and bug fixes all over the place Ports: * fixed compilation of Matroska on MinGW32/Cygwin * support for detecting non-Intel CPUs under Cygwin * sub autoloading under Windows * removed pthread dependency (compiles out of the box on a default NetBSD install) * more 64 bit fixes * a lot of Mac OS X fixes * prefer TOOLS/cpuinfo over linuxemu's /proc/cpuinfo under FreeBSD/x86 * Darwin XMMS libs supported * support newer Darwin versions in Altivec detection code * support for newer Apple GCCs Codecs and demuxers: * better support for (buggy) MEncoder created streams in libmpeg2 * MPEG-TS demuxer updates * fixed the MPEG muxer * fixed tons of bugs in MMS streaming * user settable http user-agent field * improved (now working) seeking with support for growing files in Realmedia format * saveable and loadable index files (workaround for formats not supporting files over 2GB) * Ultimotion VfW decoder * support for MMS streams with UTF urls * big DVB demuxer update * fixed MOV demuxer to always read ImageDesc (fixes ffsvq3 bugs) * fixed an old bug in AVI/Waveformatex size calculation * XviD API-4 (1.0 beta2) support * improved FLAC-in-Ogg support * Matroska: better AC3 detection * Matroska: VobSubs, MP2, FLAC, AAC and HE-AAC support * improved detection of Real RTSP through URL analysis * fixed stereo 16 bit TWOS * fixed MPNG when using BGR24 images * control functions in OGG demuxer * http cookies support * LML-M4 MPEG4 capture card raw stream format support Filters: * some fixes in the delogo filter * optimized eq2 filter * weighted gamma support in the eq2 filter * new filters: hue, spp, fil, yuvcsp * alternative postprocessing filter (spp) * big scale filter updates * zrmjpeg filter, a kick-ass mjpeg encoder using FFmpeg/libavcodec * filmdint: new inverse telecine filter, heavily mmx and 3dnow optimized FFmpeg/libavcodec: * Lagrange multipliers instead of qscale, encoding quality much improved * fixed an old bug in MPlayer's support code * support wider range of VOLs in H263 * direct rendering support in MJPEG * massive MLib optimizations * more VQA files supported * Theora support * Sunplus JPEG (SP5X) support * H.263 GOB fixes * massive cleanups * reduced memory footprint (!) * fixed decoding if aspect ratio changes * MMX2 optimizations in HuffYUV * lots of bugs squashed in HuffYUV * long standing decoding errors after 'first frame is not keyframe' fixed * CRI ADX support * XA ADPCM support * fixed files with odd dimensions on PPC * optimized MPEG2 bitstream parsing * better interlacing framework * support for IBM's XLC compiler * support for SAR (sample aspect ratio) * floating point AAN DCT * dynamically alloc big data fields (lower memory usage in most cases!) * fixed stereo IMA-ADPCM encoding * inline vs always_inline - some speedups * MMX2 optimized FDCT * accurate 2-4-8 DCT * much faster DV encoding (it beats libdv) * support Cinepak files with funky (not divisible by 4) resolutions * Altivec optimized FDCT * XvMC speedups * initial ZyGoVideo decoding * RGB support in FFV1 * new Palette API, all codecs updated * Noise reduction of DCT coefficients * "av_log" logging API * support for buffer hints from codecs * BGR24, RGB555 and PAL8 image formats * 8BPS, MS RLE, MS Video1, QT RPZA, QT SMC, FLIC and TrueMotion1 decoders * 16x8 MV visualisation support * H.263 overlapped block motion compensation (OBMC), 4MV support * H.263 alternative inter vlc support * H.263 deblocking filter (MMX optimized) * H.263 modified quantization support * H.263 slice structured mode support * Real RV20 decoder (with B-frame support) Drivers: * VIDIX equalizer support in fbdev, svga and vesa * VIDIX colorkeying support in fbdev, svga and vesa * obsoleted option: -fb * new SiS 650/651/740/etc VIDIX driver * safer vo_directx direct rendering * massive nvidia_vid updates * gl2 updates * ggi now supports non-directbuffer rendering and slices * tdfxfb fixed on gcc 3.x * dfbmga updated, G200 support * colorkeying can be disabled * Radeon 9800 (R350) support in VIDIX * proper fix for buffer size workarounds in vo_zr * new vo_zr2 driver, which uses the advantages of the filter layer * fixed vesa when used together with pthread * runtime stay-on-top functionality (in almost all output drivers) * ALSA 1.x support SWScaler: * updated MLib (Sun VIS) support * more accurate filters (rounding fixes) * MMX optimized UYVY output * eliminated chroma scaling bugs Others: * fixed aspect and geometry * fixed compilation when libavcodec is missing (although it's a bad idea) * MTRR detection added to TOOLS/cpuinfo * FAAD detection in configure fixed/improved * improved FLAC configure detection * GUI file selector updated for newer formats * Fontconfig support * proper VobSub seeking support * removed oldskool libcss support (nobody uses it and has drawbacks) MEncoder: * FFmpeg/libavcodec audio encoding support * exit if there's no video stream (avoids unexpected segfaults) * huge bug fixed (missing InitTimer call), screwed up timers in some cases * rawyuv (i420) 'encoder' @ text @d1 1 a1 1 $NetBSD$ @ 1.7 log @Update to 1.0pre2 (rc2). Changes: DOCS: * Spanish and Russian translations almost finished * French, Hungarian, Polish translations updated * New Romanian translation started * numerous sections updated Ports: * initial Amiga/MorphOS (through GeekGadgets) support * FreeBSD 5.x (libkse/libthr) support in win32 DLL loader * finally fixed the compilation on non-mvi capable alpha CPUs * OSD menu now works on MinGW * slave mode, vobsub and MEncoder support on Windows * MinGW 3.1.0 supports MPlayer out of the box! Codecs and demuxers: * support for QuickTime version 6.3 DLLs * fixed some bugs in imported FAAD * disabled internal FAAD when using buggy GCC * --enable-externalfaad option to force using external FAAD library * imaadpcm bug fixed * ViVD v2 codec support (DLL only) * QuickTime codecs support inside Matroska * improved seeking inside Matroska * some bugs with DMO codecs have been fixed * fix for MOV files with bogus user data length * fixed some demuxers which read after the EOF * better RTP synchronisation * FLAC support through imported libmpflac Filters: * new delogo filter (for removing TV channel logos) * presets support in swscaler filter * new audio filter export, for supporting visual effect applications * correct select handling in bmovl filter FFmpeg/libavcodec: * better divx/xvid bug detection code * Id RoQ decoder * Interplay MVE decoder * WC3/Xan video decoder * Xan DPCM, DK3 & DK4 ADPCM audio decoders * detect old xvid with fourcc=DIVX * vp3 decoder fixes * improved the Alpha optimizations * x86 optimizations are threadsafe now * settable scene change threshold * better MPEG1/MPEG2 conformance encoder * quality improvement for high bitrate videos with trellis quantization * indeo3 decoder fixed * new options: mv0, cbp * DV video encoder * MPEG1 now works with Trellis quantization Faad2: * synced to latest CVS * HE_AAC profile added * SBR QMF improvements * DRM updates * Covariance speedup * reduced memory usage * overall cleanups and fixes Drivers: * VIDIX driver for nVidia cards * VIDIX and libdha ported to Windows * SDL on IRIX support * directfb2 fixed for latest directfb * opengl video output for Windows * smoother audio playback with alsa9 * fullscreen and geometry support in directx * fullscreen support with opengl drivers * OSD fixed with svga * new cvidix and winvidix drivers * user settable colorkey Others: * several leak fixes * selecting optimizations for PPC 7455 CPU * CPU detection code now measures speed on x86 * unrarlib cleaned up a bit * updated the list of known x86 CPUs (including Opteron!) * alignment and smart line splitting option on subtitles @ text @d3 1 a3 1 --- mp_msg.c.orig Fri Sep 12 17:46:16 2003 d13 1 a13 1 @@@@ -41,7 +42,10 @@@@ void mp_msg_init(){ d19 2 a22 2 #endif #endif d24 2 @ 1.6 log @MPlayer updated to 0.91, patch provided by Soren Jacobsen in PR pkg/22540. Changes: DOCS: * French, Hungarian, Chinese translation updated * console output translations updated * numerous fixes in HTML documentation * fixes, clarifications in the man page * wishlist updated :) * Polish documentation removed (outdated) * Norwegian, Romanian, and Turkish help files removed (outdated) Fixes: * small fix for sp5x video codec * menu pause bug fixed * detc video filter improved * fixes in video output driver zr * fixes in video output driver directx * fixes in video output driver sdl * fixes in video output driver vesa (multiple init support) * midentify works again * TOOLS/matroxtv enhanced and fixed * now every binary codec is searched in $PREFIX/codecs directory (--with-codecsdir) * K6/2+ and K6/3+ detection support * Mono PCM streamcopy fixed in MEncoder * bigendian OSD fix * SIGBUS error fixed on HPUX 11.00 * default fps fixed in NTSC v4l * definition fix ported from libdvdread main branch * configure option --enable-qtx-codecs renamed to --enable-qtx * a crash fixed in command line parser * fix in MMS streaming * crash with invalid config file fixed * metacity support Porting: * QT audio decoder now compiles on MacOSX * compile and crash fixes in MOV demuxer, for Cygwin * some Cygwin compilation fixes * OpenBSD support in RealVideo and RealAudio @ text @d3 3 a5 3 --- mp_msg.c.orig 2003-08-31 01:59:09.000000000 +0200 +++ mp_msg.c 2003-08-31 02:01:03.000000000 +0200 @@@@ -34,6 +34,7 @@@@ d13 1 a13 1 @@@@ -41,9 +42,12 @@@@ d19 2 a22 2 +#endif +#endif a23 2 } @ 1.5 log @comment out some dispensable code which triggers a fatal bug in not-absolutely-current NetBSD libintl @ text @d3 4 a6 4 --- mp_msg.c.orig 2002-12-27 17:17:57.000000000 +0100 +++ mp_msg.c 2003-04-09 19:12:49.000000000 +0200 @@@@ -33,13 +33,17 @@@@ #ifdef USE_I18N d11 1 a11 1 +#endif d13 1 a13 1 bindtextdomain("mplayer", PREFIX"/share/locale"); d15 1 d18 1 a18 1 fprintf(stdout, "Current dirname: %s\n", bindtextdomain(textdomain(NULL),NULL)); d20 2 @ 1.4 log @Update to 0.90rc1: Docs: * new French translation * Irix section * various updates (both English & Hungarian) Codecs: * New codec pack download page (there are several packs for various IFs) * Win32/Quicktime codec plugin DLL support -> SVQ3 + QDMC/QDM2/Qclp !!! * Win32/DMO codec DLL interface support -> Windows Media Audio/Video 9!!! * MJPEG 2000 support (using Morgan & Imagepower VfW DLLs) * libavcodec: optimized HuffYUV en/decoder, with experimental YV12 support * libavcodec: mjpeg-b support (need more samples) * more xvidencopts * VorbisGain tag support, tremor (fast vorbis decoder lib) support * BIG libavcodec messups & codmetics & cleanups & API changes & fixes * dynamic plugin support for libmpcodecs (for future binary codec releases) GUI: * general code cleanup, more robust gtk code * preferences: Screensaver, Autosync settings * cache=4 fixed (caused jerky/lagging/slow playback with gmplayer) Others: * new config/cmdline parser code (optional) * OSD menu system (preferences, shell, file selector etc) * libaf: runtime cpudetection, volume, equalizer, better format conversion * subtitle overlapping can be disabled, added subtitle sorting * subtitle dump to JACOsub and SAMI formats * displays URLs from 'Reference Media' type .mov files, dump generic data * get position/length function in demuxers - for slavemode & -indentify * -ao alsa9 surround fixes, 8-bit PCM fixed * -vo dfbmga: -dr support, fixed OSD flickering * -stop-xscreensaver fixed, support for KDE screensaver too * More compiler warning fixes * Altivec (G4) support @ text @d1 1 a1 1 $NetBSD: patch-ad,v 1.3 2002/11/13 15:25:35 wiz Exp $ d3 8 a10 9 --- cpudetect.c.orig Thu Nov 7 00:54:21 2002 +++ cpudetect.c @@@@ -14,6 +14,11 @@@@ CpuCaps gCpuCaps; #include #include +#ifdef __NetBSD__ +#include +#include d12 6 a17 5 + #ifdef __FreeBSD__ #include #include @@@@ -147,7 +152,7 @@@@ void GetCpuCaps( CpuCaps *caps) a18 18 /* FIXME: Does SSE2 need more OS support, too? */ -#if defined(__linux__) || defined(__FreeBSD__) +#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) if (caps->hasSSE) check_os_katmai_support(); if (!caps->hasSSE) @@@@ -237,6 +242,15 @@@@ char *GetCpuFriendlyName(unsigned int re #undef CPUID_STEPPING +#ifdef __NetBSD__ +jmp_buf sseCheckEnv; + +void sseCheckHandler(int i) +{ + longjmp(sseCheckEnv, 1); +} d20 2 a21 7 + #if defined(__linux__) && defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC) static void sigill_handler_sse( int signal, struct sigcontext sc ) { @@@@ -293,6 +307,36 @@@@ static void check_os_katmai_support( voi if (ret || !has_sse) gCpuCaps.hasSSE=0; a22 33 +#elif defined(__NetBSD__) +#if __NetBSD_Version__ >= 105260000 + if ( gCpuCaps.hasSSE ) { + void (*oldHandler)(int); + + mp_msg(MSGT_CPUDETECT,MSGL_V, "Testing OS support for SSE... " ); + + oldHandler = signal(SIGILL, sseCheckHandler); + if (setjmp(sseCheckEnv)) { + gCpuCaps.hasSSE = 0; + } else { + __asm__ __volatile__ ( + "subl $0x10, %esp \n" + "movups %xmm0, (%esp) \n" + "emms \n" + "addl $0x10, %esp \n" + ); + } + signal(SIGILL, oldHandler); + + if ( gCpuCaps.hasSSE ) { + mp_msg(MSGT_CPUDETECT,MSGL_V, "no!\n" ); + } else { + mp_msg(MSGT_CPUDETECT,MSGL_V, "yes!\n" ); + } + } +#else + gCpuCaps.hasSSE = 0; + mp_msg(MSGT_CPUDETECT,MSGL_WARN, "No OS support for SSE, disabling to be safe.\n" ); +#endif #elif defined(__linux__) #if defined(_POSIX_SOURCE) && defined(X86_FXSR_MAGIC) struct sigaction saved_sigill; @ 1.3 log @Update to 0.90pre10: Docs: * dvd auth, vcd sections extended (DOCS/cd-dvd.html) * unified *BSD sections, extended cygwin Fixes: * LIRC error message (Error while reading cmd fd X : Success) fixed * playback of some (streamed?) divx files fixed, starting with non-I frames. * -vo png fixed (removed builtin YV12 support, removed OSD) * some .mp3 playback/seek segfaults fixed * vidix mach64 colorkey on PPC fixed * -ao sdl now handles "featureless" soundcards * -vo zr fixes * fixed sig11 if vo init failed * various dxr2 and dxr3 fixes * v4l buffering fixed * fixed multiple reads caused by byteswapping macro (mjpeg.c, mach64_vid.c) * cleanup of postprocessing code - now it's threadsafe and can be shared * ported to GNU/Hurd * cleanup of AVI pts (timestamp) handling - no more BPS hack in mplayer.c * small cleanup of A-V sync code - using relative timers instead of absolute * GUI code cleanup, obsolete files/dirs removed * various small bugfixes, endianess fixes * mencoder: -pass option removed, use -divx4opts pass=N / -lavcopts vpass=N * mencoder: "ff_rate_estimate_qscale: Assertion `q>0.0' failed" fixed! * mencoder: -ovc xvid fixes, cleanup, enhancements * screensaver/dpms re-enabling fixed * realvideo demuxer fixes - asf-style stream detection method Features: * -ao win32 (for windows port) * libavcodec: native WMA v1/v2 (aka. DivX audio) decoder * hw-accelerated video eq for -vo x11 and gl2, using DirectColor colormap * overlapping subtitles support, jacosub (*.js) format support * -vo dxr3 got a new syncengine, ':sync', also added native overlay support, activate with ':overlay', read the manual for more info on how to set up * QDMC/QDM2/MACE audio codec support, using quicktime 5 win32 DLLs (libwine!) * libavcodec: various MJPEG decoding fixes - now it decodes all sample files! * mencvcd updates, sox/toolame support etc * -vo dfbmga - play video on Matrox G400's second head using directfb 0.9.14 * RealAudio ATRC (sony atrac3) audio support (using binary plugin) Filters: * -af/-af-adv options cleanup * now auto-inserting -vop lavc for mpeg-only vo's * video filter API documented :) * better deblocking filter (-vop pp), pp/npp syntax changed! * -vop 2xsai - 2x scaler for drawn images (low color cartoon anims) * -vop unsharp - an sharp/blur filter, nice, but very slow * -vop il - (de)interleave fields * -vop swapuv - guess what :) * -vop boxblur - box blur... * -vop perspective * -vop sab * -vop smartblur Package changes: * dependencies on libiconv and libvorbis @ text @d1 1 a1 1 $NetBSD$ @ 1.2 log @Add a missing ';'. This fixes builds on 1.5.x machines. Pointed out by Wojciech Puchar (wojtec at tensor dot 3miasto dot net) in PR#18682. @ text @d3 1 a3 1 --- cpudetect.c.orig Mon May 20 02:00:51 2002 d5 1 a5 2 @@@@ -13,6 +13,11 @@@@ CpuCaps gCpuCaps; d7 1 d17 1 a17 1 @@@@ -146,7 +151,7 @@@@ void GetCpuCaps( CpuCaps *caps) d26 1 a26 1 @@@@ -236,6 +241,15 @@@@ char *GetCpuFriendlyName(unsigned int re d42 1 a42 1 @@@@ -292,6 +306,36 @@@@ static void check_os_katmai_support( voi @ 1.1 log @Enable the SSE detection and checking stuff for NetBSD Bump PKGREVISION. @ text @d73 1 a73 1 + gCpuCaps.hasSSE = 0 @