2 * Copyright (C) 2004 Zaheer Abbas Merali <zaheerabbas at merali dot org>
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
20 /* inspiration gained from looking at source of osx video out of xine and vlc
21 * and is reflected in the code
24 #import <Cocoa/Cocoa.h>
25 #import <QuickTime/QuickTime.h>
30 @interface GstGLView : NSOpenGLView
33 unsigned long pi_texture;
40 NSOpenGLContext* fullScreenContext;
43 - (void) drawRect: (NSRect) rect;
44 - (id) initWithFrame: (NSRect) frame;
45 - (void) initTextures;
46 - (void) reloadTexture;
48 - (void) displayTexture;
49 - (char*) getTextureBuffer;
50 - (void) setFullScreen: (BOOL) flag;
52 - (void) setVideoSize: (int) w: (int) h;
56 @interface GstOSXVideoSinkWindow: NSWindow {
61 - (void) setContentSize: (NSSize) size;
62 - (GstGLView *) gstView;
63 - (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)aScreen;