global.h

来自「DawnLightPlayer,一个新的基于ffmpeg的全功能播放器」· C头文件 代码 · 共 60 行

H
60
字号
/********************************************** * Dawn Light Player * *   global.h * * Created by kf701 * 13:16:39 02/26/08 CST * * $Id: global.h 171 2008-03-21 08:00:10Z kf701 $ **********************************************/#ifndef  GLOBAL_INC#define  GLOBAL_INC#include <stdio.h>#include <stdlib.h>#include <stdint.h>#include <stdbool.h>#include <string.h>#include <signal.h>#include <unistd.h>#include "avcodec.h"typedef struct{	char *filename;	char *avin, *vo, *ao;	int fs; /* full screen */	/* video param */	int width, height;	int pwidth, pheight;	int pixfmt;	double fps;	/* audio param */	int channels;	int sample_rate;	int bit_rate;	int sample_fmt;	/* run time param */	int64_t last_audio_pts;	int paused;	int exiting;	int screenshot;} DLPContext;void dlp_exit(int s);extern DLPContext dlpctx, *dlpctxp;typedef void(*loop_func)(void);extern loop_func dlp_main_loop;#endif   /* ----- #ifndef GLOBAL_INC  ----- */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?