lfplayer.h
来自「很不错的播放代玛」· C头文件 代码 · 共 858 行 · 第 1/2 页
H
858 行
#ifndef __LFPLAYER_H__
#define __LFPLAYER_H__
typedef int LF_DWORD
typedef char LF_BYTE
typedef long LF_DDWORD
typedef unsigned int LF_UDWORD
typedef unsigned char LF_UBYTE
typedef unsigned long LF_UDDWORD
typedef void LF_VOID
typedef void* LF_PVOID
typedef char* LF_PBYTE
typedef int* LF_PDWORD
////////////////////////////////////////
// LFPlayer configuration.
#define MSG_CHARSET "UTF-8"
/* Runtime CPU detection */
#undef RUNTIME_CPUDETECT
/* Dynamic a/v plugins */
#undef DYNAMIC_PLUGINS
/* "restrict" keyword */
#define restrict __restrict
/* __builtin_expect branch prediction hint */
#define HAVE_BUILTIN_EXPECT 1
#ifdef HAVE_BUILTIN_EXPECT
#define likely(x) __builtin_expect ((x) != 0, 1)
#define unlikely(x) __builtin_expect ((x) != 0, 0)
#else
#define likely(x) (x)
#define unlikely(x) (x)
#endif
/* attribute(used) as needed by some compilers */
#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 300)
# define attribute_used __attribute__((used))
#else
# define attribute_used
#endif
#define PREFIX "/opt/MPlayer-AV"
#define USE_OSD 1
#define USE_SUB 1
/* enable/disable SIGHANDLER */
#define ENABLE_SIGHANDLER 1
/* enable/disable automatic gdb attach on crash, requires SIGHANDLER */
#undef CRASH_DEBUG
/* Toggles debugging informations */
#undef MP_DEBUG
/* Toggles colorized output */
//#define MSG_USE_COLORS 1
/* Indicates that libcdio is available for VCD and CD-DA playback */
#undef HAVE_LIBCDIO
/* Indicates that Ogle's libdvdread is available for DVD playback */
#define USE_DVDREAD 1
/* Indicates that dvdread is from libmpdvdkit */
#define USE_MPDVDKIT 2
/* Additional options for libmpdvdkit*/
#undef DVD_STRUCT_IN_DVD_H
#define DVD_STRUCT_IN_LINUX_CDROM_H 1
#undef DVD_STRUCT_IN_SYS_CDIO_H
#undef DVD_STRUCT_IN_SYS_DVDIO_H
#undef DVD_STRUCT_IN_BSDI_DVDIOCTL_DVD_H
#undef HAVE_BSD_DVD_STRUCT
#define HAVE_LINUX_DVD_STRUCT 1
#undef HAVE_OPENBSD_DVD_STRUCT
#undef DARWIN_DVD_IOCTL
#undef SOLARIS_USCSI
#undef HPUX_SCTL_IO
#define HAVE_STDDEF_H 1
#define HAVE_DVD 1
/* Common data directory (for fonts, etc) */
#define MPLAYER_DATADIR "/opt/MPlayer-AV/share/mplayer"
#define MPLAYER_CONFDIR "/opt/MPlayer-AV/etc/mplayer"
#define MPLAYER_LIBDIR "/opt/MPlayer-AV/lib"
/* Define this to compile stream-caching support, it can be enabled via
-cache <kilobytes> */
#define USE_STREAM_CACHE 1
/* Define to include support for XviD/Divx4Linux/OpenDivx */
#undef USE_DIVX
/* Define to use the new XviD/DivX4Linux library instead of open source OpenDivX */
/* You have to change DECORE_LIBS in config.mak, too! */
#undef NEW_DECORE
/* Define if you are using DivX5Linux Decore library */
#undef DECORE_DIVX5
/* Define if you are using XviD library */
#undef HAVE_XVID3
#undef HAVE_XVID4
#undef DECORE_XVID
#undef ENCORE_XVID
/* Define if you are using the X.264 library */
#undef HAVE_X264
/* Define to include support for libdv-0.9.5 */
#undef HAVE_LIBDV095
/* If build mencoder */
#undef HAVE_MENCODER
/* Indicates if XviD/Divx4linux encore is available
Note: for mencoder */
/* Indicates if libmp3lame is available
Note: for mencoder */
/* Define libmp1e for realtime mpeg encoding (for DXR3 and DVB cards) */
#undef USE_MP1E
/* Define this to enable avg. byte/sec-based AVI sync method by default:
(use -bps or -nobps commandline option for run-time method selection)
-bps gives better sync for vbr mp3 audio, it is now default */
#define AVI_SYNC_BPS 1
/* Undefine this if you do not want to select mono audio (left or right)
with a stereo MPEG layer 2/3 audio stream. The command line option
-stereo has three possible values (0 for stereo, 1 for left-only, 2 for
right-only), with 0 being the default.
*/
#define USE_FAKE_MONO 1
/* Undefine this if your sound card driver has no working select().
If you have kernel Oops, player hangups, or just no audio, you should
try to recompile MPlayer with this option disabled! */
#define HAVE_AUDIO_SELECT 1
/* define this to use iconv(3) function to codepage conversions */
#define USE_ICONV 1
/* define this to use nl_langinfo function */
#define USE_LANGINFO 1
/* define this to use RTC (/dev/rtc) for video timers */
#define HAVE_RTC 1
/* set up max. outburst. use 65536 for ALSA 0.5, for others 16384 is enough */
#define MAX_OUTBURST 65536
/* set up audio OUTBURST. Do not change this! */
#define OUTBURST 512
/* Define this if your system has the header file for the OSS sound interface */
#define HAVE_SYS_SOUNDCARD_H 1
/* Define this if your system has the header file for the OSS sound interface
* in /usr/include */
#undef HAVE_SOUNDCARD_H
/* Define this if your system has the sysinfo header */
#define HAVE_SYS_SYSINFO_H 1
/* Define this if your system has ftello() */
#define HAVE_FTELLO 1
#ifndef HAVE_FTELLO
/* Need these for FILE and off_t an config.h is usually before other includes*/
#include <stdio.h>
#include <sys/types.h>
off_t ftello(FILE *);
#endif
/* Define this if your system has the "malloc.h" header file */
#define HAVE_MALLOC_H 1
/* memalign is mapped to malloc if unsupported */
#define HAVE_MEMALIGN 1
#ifndef HAVE_MEMALIGN
# define memalign(a,b) malloc(b)
#define MEMALIGN_HACK 1
#endif
/* Define this if your system has the "alloca.h" header file */
#define HAVE_ALLOCA_H 1
/* Define this if your system has the "sys/mman.h" header file */
#define HAVE_SYS_MMAN_H 1
/* Define this if you have the elf dynamic linker -ldl library */
#define HAVE_LIBDL 1
/* Define this if you have the kstat kernel statistics library */
#undef HAVE_LIBKSTAT
/* Define this if you have zlib */
#define HAVE_ZLIB 1
#ifdef HAVE_ZLIB
#define CONFIG_ZLIB 1
#endif
/* Define this if you have shm support */
#define HAVE_SHM 1
/* Define this if your system has scandir & alphasort */
#define HAVE_SCANDIR 1
/* Define this if your system has strsep */
#define HAVE_STRSEP 1
/* Define this if your system has strlcpy */
#undef HAVE_STRLCPY
#ifndef HAVE_STRLCPY
unsigned int strlcpy (char *dest, const char *src, unsigned int size);
#endif
/* Define this if your system has strlcat */
#undef HAVE_STRLCAT
#ifndef HAVE_STRLCAT
unsigned int strlcat (char *dest, const char *src, unsigned int size);
#endif
/* Define this if your system has fseeko */
#define HAVE_FSEEKO 1
#ifndef HAVE_FSEEKO
/* Need these for FILE and off_t an config.h is usually before other includes*/
#include <stdio.h>
#include <sys/types.h>
int fseeko(FILE *, off_t, int);
#endif
#define HAVE_LOCALTIME_R 1
/* Define this if your system has vsscanf */
#define HAVE_VSSCANF 1
/* Define this if your system has swab */
#define HAVE_SWAB 1
/* Define this if your system has no posix select */
#undef HAVE_NO_POSIX_SELECT
/* Define this if your system has gettimeofday */
#define HAVE_GETTIMEOFDAY 1
/* Define this if your system has glob */
#define HAVE_GLOB 1
/* Define this if your system has setenv */
#define HAVE_SETENV 1
#ifndef HAVE_SETENV
int setenv(const char *name, const char *val, int overwrite);
#endif
/* Define this if your system has sysi86 */
/* Define this if your system has pthreads */
#define HAVE_PTHREADS 1
/* Define this if you enabled thread support for libavcodec */
#define HAVE_THREADS 1
/* LIRC (remote control, see www.lirc.org) support: */
#undef HAVE_LIRC
/*
* LIRCCD (LIRC client daemon)
* See http://www.dolda2000.cjb.net/~fredrik/lirccd/
*/
#undef HAVE_LIRCC
/* DVD navigation support using libdvdnav */
/* Define this to enable MPEG 1/2 image postprocessing (requires a FAST CPU!) */
#define MPEG12_POSTPROC 1
/* Define this to enable image postprocessing in libavcodec (requires a FAST CPU!) */
#define USE_LIBPOSTPROC 1
#undef USE_LIBPOSTPROC_SO
/* Define to include support for OpenDivx postprocessing */
#undef HAVE_ODIVX_POSTPROCESS
/* Win32 DLL support */
#undef USE_WIN32DLL
#define WIN32_PATH ""
/* DirectShow support */
#undef USE_DIRECTSHOW
/* Mac OS X specific features */
#undef MACOSX_FINDER_SUPPORT
#undef MACOSX_BUNDLE
/* Build our Win32-loader */
/* ffmpeg's libavcodec support (requires libavcodec source) */
#define USE_LIBAVCODEC 1
#undef USE_LIBAVCODEC_SO
#define USE_LIBAVCODEC_DSPUTIL
/* ffmpeg's libavformat support (requires libavformat source) */
#define USE_LIBAVFORMAT 1
#undef USE_LIBAVFORMAT_SO
#undef CONFIG_WIN32
/* Use libavcodec's decoders */
#define CONFIG_DECODERS 1
/* Use libavcodec's encoders */
#define CONFIG_ENCODERS 1
/* Use libavformat's demuxers */
#define CONFIG_DEMUXERS 1
/* Use libavformat's muxers */
#define CONFIG_MUXERS 1
#define CONFIG_MPEGAUDIO_HP 1
#define CONFIG_GPL 1
/* Use amr codecs from libavcodec (requires amr sources) */
#undef AMR_NB
#undef AMR_NB_FIXED
#undef AMR_WB
/* Use specific codecs from libavcodec */
#define CONFIG_AC3_ENCODER 1
#define CONFIG_MP2_ENCODER 1
#define CONFIG_MP3LAME_ENCODER 1
#define CONFIG_OGGVORBIS_ENCODER 1
#define CONFIG_OGGVORBIS_DECODER 1
#define CONFIG_OGGTHEORA_ENCODER 1
#define CONFIG_OGGTHEORA_DECODER 1
#define CONFIG_FAAC_ENCODER 1
#define CONFIG_XVID_ENCODER 1
#define CONFIG_MPEG1VIDEO_ENCODER 1
#define CONFIG_H264_ENCODER 1
#define CONFIG_MPEG2VIDEO_ENCODER 1
#define CONFIG_H261_ENCODER 1
#define CONFIG_H263_ENCODER 1
#define CONFIG_H263P_ENCODER 1
#define CONFIG_FLV_ENCODER 1
#define CONFIG_RV10_ENCODER 1
#define CONFIG_RV20_ENCODER 1
#define CONFIG_MPEG4_ENCODER 1
#define CONFIG_MSMPEG4V1_ENCODER 1
#define CONFIG_MSMPEG4V2_ENCODER 1
#define CONFIG_MSMPEG4V3_ENCODER 1
#define CONFIG_WMV1_ENCODER 1
#define CONFIG_WMV2_ENCODER 1
#define CONFIG_SVQ1_ENCODER 1
#define CONFIG_MJPEG_ENCODER 1
#define CONFIG_LJPEG_ENCODER 1
#define CONFIG_JPEGLS_ENCODER 1
#define CONFIG_PNG_ENCODER 1
#define CONFIG_PPM_ENCODER 1
#define CONFIG_PGM_ENCODER 1
#define CONFIG_PGMYUV_ENCODER 1
#define CONFIG_PBM_ENCODER 1
#define CONFIG_PAM_ENCODER 1
#define CONFIG_HUFFYUV_ENCODER 1
#define CONFIG_FFVHUFF_ENCODER 1
#define CONFIG_ASV1_ENCODER 1
#define CONFIG_ASV2_ENCODER 1
#define CONFIG_FFV1_ENCODER 1
#define CONFIG_SNOW_ENCODER 1
#define CONFIG_ZLIB_ENCODER 1
#define CONFIG_DVVIDEO_ENCODER 1
#define CONFIG_SONIC_ENCODER 1
#define CONFIG_SONIC_LS_ENCODER 1
#define CONFIG_X264_ENCODER 1
#define CONFIG_LIBGSM_ENCODER 1
#define CONFIG_RAWVIDEO_ENCODER 1
#define CONFIG_H263_DECODER 1
#define CONFIG_H261_DECODER 1
#define CONFIG_MPEG4_DECODER 1
#define CONFIG_MSMPEG4V1_DECODER 1
#define CONFIG_MSMPEG4V2_DECODER 1
#define CONFIG_MSMPEG4V3_DECODER 1
#define CONFIG_WMV1_DECODER 1
#define CONFIG_WMV2_DECODER 1
#define CONFIG_VC9_DECODER 1
#define CONFIG_WMV3_DECODER 1
#define CONFIG_H263I_DECODER 1
#define CONFIG_FLV_DECODER 1
#define CONFIG_RV10_DECODER 1
#define CONFIG_RV20_DECODER 1
#define CONFIG_SVQ1_DECODER 1
#define CONFIG_SVQ3_DECODER 1
#define CONFIG_WMAV1_DECODER 1
#define CONFIG_WMAV2_DECODER 1
#define CONFIG_INDEO2_DECODER 1
#define CONFIG_INDEO3_DECODER 1
#define CONFIG_TSCC_DECODER 1
#define CONFIG_CSCD_DECODER 1
#define CONFIG_NUV_DECODER 1
#define CONFIG_ULTI_DECODER 1
#define CONFIG_QDRAW_DECODER 1
#define CONFIG_XL_DECODER 1
#define CONFIG_QPEG_DECODER 1
#define CONFIG_LOCO_DECODER 1
#define CONFIG_KMVC_DECODER 1
#define CONFIG_WNV1_DECODER 1
#define CONFIG_AASC_DECODER 1
#define CONFIG_FRAPS_DECODER 1
#define CONFIG_AAC_DECODER 1
#define CONFIG_MPEG4AAC_DECODER 1
#define CONFIG_MPEG1VIDEO_DECODER 1
#define CONFIG_MPEG2VIDEO_DECODER 1
#define CONFIG_MPEGVIDEO_DECODER 1
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?