vout.h

来自「VLC媒体播放程序」· C头文件 代码 · 共 120 行

H
120
字号
/***************************************************************************** * vout.h: MacOS X interface module ***************************************************************************** * Copyright (C) 2001-2003 VideoLAN * $Id: vout.h,v 1.25 2004/02/28 13:53:35 titer Exp $ * * Authors: Colin Delacroix <colin@zoy.org> *          Florian G. Pflug <fgp@phlo.org> *          Jon Lech Johansen <jon-vl@nanocrew.net> *          Eric Petit <titer@m0k.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. *  * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA. *****************************************************************************//***************************************************************************** * VLCWindow interface *****************************************************************************/@interface VLCWindow : NSWindow{    vout_thread_t * p_vout;}- (void)setVout:(vout_thread_t *)_p_vout;- (vout_thread_t *)getVout;- (void)scaleWindowWithFactor: (float)factor;- (void)toggleFloatOnTop;- (void)toggleFullscreen;- (BOOL)isFullscreen;- (void)updateTitle;- (BOOL)windowShouldClose:(id)sender;@end/***************************************************************************** * VLCView interface *****************************************************************************/@interface VLCQTView : NSQuickDrawView{}@end/***************************************************************************** * VLCView interface *****************************************************************************/@interface VLCGLView : NSOpenGLView{    vout_thread_t   * p_vout;    int               i_effect;    unsigned long     i_texture;    float             f_x;    float             f_y;    int               initDone;    int               isFullScreen;    NSOpenGLContext * fullScreenContext;    NSOpenGLContext * currentContext;}- (id) initWithFrame: (NSRect) frame vout: (vout_thread_t*) p_vout;- (void) initTextures;- (void) reloadTexture;- (void) goFullScreen;- (void) exitFullScreen;- (void) cleanUp;@end/***************************************************************************** * VLCVout interface *****************************************************************************/@interface VLCVout : NSObject{}- (void)createWindow:(NSValue *)o_value;- (void)destroyWindow:(NSValue *)o_value;@end/***************************************************************************** * vout_sys_t: MacOS X video output method descriptor *****************************************************************************/struct vout_sys_t{    int i_opengl;        NSRect s_rect;    int b_pos_saved;    VLCWindow * o_window;    vlc_bool_t b_mouse_moved;    mtime_t i_time_mouse_last_moved;#ifdef __QUICKTIME__    CodecType i_codec;    CGrafPtr p_qdport;    ImageSequence i_seq;    MatrixRecordPtr p_matrix;    DecompressorComponent img_dc;    ImageDescriptionHandle h_img_descr;    Ptr p_fullscreen_state;#endif    VLCGLView * o_glview;};

⌨️ 快捷键说明

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