mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 18:20:44 +00:00
1f0a03d320
Original commit message from CVS: 2007-11-20 Julien MOUTTE <julien@moutte.net> * ext/taglib/gsttaglibmux.c: (gst_tag_lib_mux_render_tag), (gst_tag_lib_mux_adjust_event_offsets): * gst/qtdemux/qtdemux.c: (qtdemux_parse_theora_extension): * sys/osxaudio/Makefile.am: * sys/osxvideo/cocoawindow.h: * sys/osxvideo/cocoawindow.m: Fix build on Mac OS X 10.5
70 lines
2.1 KiB
Objective-C
70 lines
2.1 KiB
Objective-C
/* GStreamer
|
|
* Copyright (C) 2004 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
|
* Copyright (C) 2007 Pioneers of the Inevitable <songbird@songbirdnest.com>
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Library General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 2 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Library General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Library General Public
|
|
* License along with this library; if not, write to the
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
* Boston, MA 02111-1307, USA.
|
|
*
|
|
* The development of this code was made possible due to the involvement of Pioneers
|
|
* of the Inevitable, the creators of the Songbird Music player
|
|
*
|
|
*/
|
|
|
|
/* inspiration gained from looking at source of osx video out of xine and vlc
|
|
* and is reflected in the code
|
|
*/
|
|
|
|
#import <Cocoa/Cocoa.h>
|
|
#import <QuickTime/QuickTime.h>
|
|
#import <glib.h>
|
|
|
|
struct _GstOSXImage;
|
|
|
|
@interface GstGLView : NSOpenGLView
|
|
{
|
|
int i_effect;
|
|
unsigned int pi_texture;
|
|
float f_x;
|
|
float f_y;
|
|
int initDone;
|
|
char* data;
|
|
int width, height;
|
|
BOOL fullscreen;
|
|
NSOpenGLContext* fullScreenContext;
|
|
NSOpenGLContext* actualContext;
|
|
}
|
|
- (void) drawQuad;
|
|
- (void) drawRect: (NSRect) rect;
|
|
- (id) initWithFrame: (NSRect) frame;
|
|
- (void) initTextures;
|
|
- (void) reloadTexture;
|
|
- (void) cleanUp;
|
|
- (void) displayTexture;
|
|
- (char*) getTextureBuffer;
|
|
- (void) setFullScreen: (BOOL) flag;
|
|
- (void) reshape;
|
|
- (void) setVideoSize: (int) w: (int) h;
|
|
|
|
@end
|
|
|
|
@interface GstOSXVideoSinkWindow: NSWindow {
|
|
int width, height;
|
|
GstGLView *gstview;
|
|
}
|
|
|
|
- (void) setContentSize: (NSSize) size;
|
|
- (GstGLView *) gstView;
|
|
- (id)initWithContentRect:(NSRect)contentRect styleMask:(unsigned int)styleMask backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag screen:(NSScreen *)aScreen;
|
|
@end
|