Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-1.1
Commits
9d7109ce
Commit
9d7109ce
authored
Jan 02, 2008
by
Pierre d'Herbemont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX/Framework: Implement VLCVideoLayer.
parent
ca2f881b
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
132 additions
and
2 deletions
+132
-2
extras/MacOSX/Framework/Headers/Public/VLCMedia.h
extras/MacOSX/Framework/Headers/Public/VLCMedia.h
+1
-1
extras/MacOSX/Framework/Headers/Public/VLCVideoLayer.h
extras/MacOSX/Framework/Headers/Public/VLCVideoLayer.h
+28
-0
extras/MacOSX/Framework/Sources/VLCVideoLayer.m
extras/MacOSX/Framework/Sources/VLCVideoLayer.m
+94
-0
extras/MacOSX/Framework/VLC.xcodeproj/project.pbxproj
extras/MacOSX/Framework/VLC.xcodeproj/project.pbxproj
+9
-1
No files found.
extras/MacOSX/Framework/Headers/Public/VLCMedia.h
View file @
9d7109ce
extras/MacOSX/Framework/Headers/Public/VLCVideoLayer.h
0 → 100644
View file @
9d7109ce
/*****************************************************************************
* VLCVideoLayer.h: VLC.framework VLCVideoLayer header
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2007 the VideoLAN team
* $Id: VLCVideoView.h 23915 2007-12-28 22:20:19Z pdherbemont $
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import <QuartzCore/QuartzCore.h>
@interface
VLCVideoLayer
:
CALayer
@end
extras/MacOSX/Framework/Sources/VLCVideoLayer.m
0 → 100644
View file @
9d7109ce
/*****************************************************************************
* VLCVideoLayer.m: VLC.framework VLCVideoLayer implementation
*****************************************************************************
* Copyright (C) 2007 Pierre d'Herbemont
* Copyright (C) 2007 the VideoLAN team
* $Id: VLCVideoView.m 24023 2008-01-02 02:52:35Z pdherbemont $
*
* Authors: Pierre d'Herbemont <pdherbemont # videolan.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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#import "VLCVideoLayer.h"
#import "VLCLibrary.h"
#import "VLCEventManager.h"
/* Libvlc */
#include <vlc/vlc.h>
#include <vlc/libvlc.h>
#import <QuartzCore/QuartzCore.h>
/******************************************************************************
* VLCVideoView (Private)
*/
@interface
VLCVideoLayer
(
Private
)
/* Method */
-
(
void
)
addVoutLayer
:(
CALayer
*
)
aLayer
;
@end
/******************************************************************************
* Implementation VLCVideoLayer
*/
@implementation
VLCVideoLayer
+
(
id
)
layer
{
return
[[
CALayer
alloc
]
init
];
}
@end
/******************************************************************************
* Implementation VLCVideoLayer (Private)
*/
@implementation
VLCVideoLayer
(
Private
)
/* This is called by the libvlc module 'opengllayer' as soon as there is one
* vout available
*/
-
(
void
)
addVoutLayer
:(
CALayer
*
)
aLayer
{
[
CATransaction
begin
];
aLayer
.
name
=
@"vlcopengllayer"
;
[
self
setLayoutManager
:[
CAConstraintLayoutManager
layoutManager
]];
[
aLayer
addConstraint
:[
CAConstraint
constraintWithAttribute
:
kCAConstraintMaxY
relativeTo:
@"superlayer"
attribute
:
kCAConstraintMaxY
]];
[
aLayer
addConstraint
:[
CAConstraint
constraintWithAttribute
:
kCAConstraintMaxX
relativeTo:
@"superlayer"
attribute
:
kCAConstraintMaxX
]];
[
aLayer
addConstraint
:[
CAConstraint
constraintWithAttribute
:
kCAConstraintMinX
relativeTo:
@"superlayer"
attribute
:
kCAConstraintMinX
]];
[
aLayer
addConstraint
:[
CAConstraint
constraintWithAttribute
:
kCAConstraintMinY
relativeTo:
@"superlayer"
attribute
:
kCAConstraintMinY
]];
[
self
insertSublayer
:
aLayer
atIndex
:
0
];
[
aLayer
setNeedsLayout
];
[
aLayer
setNeedsDisplay
];
[
self
setNeedsDisplay
];
[
self
layoutIfNeeded
];
[
CATransaction
commit
];
}
@end
\ No newline at end of file
extras/MacOSX/Framework/VLC.xcodeproj/project.pbxproj
View file @
9d7109ce
...
@@ -49,6 +49,8 @@
...
@@ -49,6 +49,8 @@
/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
6303C43A0CF45CAE0000ECC8
/* VLCMediaListAspect.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
;
};
6303C43A0CF45CAE0000ECC8
/* VLCMediaListAspect.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
;
};
6303C43C0CF45CC30000ECC8
/* VLCMediaListAspect.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
6303C43C0CF45CC30000ECC8
/* VLCMediaListAspect.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
6341FCAF0D2C0929002A97B7
/* VLCVideoLayer.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6341FCAE0D2C0929002A97B7
/* VLCVideoLayer.h */
;
};
6341FCB10D2C0936002A97B7
/* VLCVideoLayer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6341FCB00D2C0936002A97B7
/* VLCVideoLayer.m */
;
};
637D5ABD0CF6F2650073EA45
/* VLCMediaDiscoverer.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
637D5ABC0CF6F2650073EA45
/* VLCMediaDiscoverer.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
637D5ABD0CF6F2650073EA45
/* VLCMediaDiscoverer.h in Headers */
=
{
isa
=
PBXBuildFile
;
fileRef
=
637D5ABC0CF6F2650073EA45
/* VLCMediaDiscoverer.h */
;
settings
=
{
ATTRIBUTES
=
(
Public
,
);
};
};
637D5ADC0CF6F2720073EA45
/* VLCMediaDiscoverer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
637D5ADB0CF6F2720073EA45
/* VLCMediaDiscoverer.m */
;
};
637D5ADC0CF6F2720073EA45
/* VLCMediaDiscoverer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
637D5ADB0CF6F2720073EA45
/* VLCMediaDiscoverer.m */
;
};
6384FD080D0DBA20005EB1F7
/* QuartzCore.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6384FD070D0DBA20005EB1F7
/* QuartzCore.framework */
;
};
6384FD080D0DBA20005EB1F7
/* QuartzCore.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
6384FD070D0DBA20005EB1F7
/* QuartzCore.framework */
;
};
...
@@ -114,6 +116,8 @@
...
@@ -114,6 +116,8 @@
63030CC70CCA652C0088ECD1
/* Info.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
text.xml
;
name
=
Info.plist
;
path
=
Resources/Info.plist
;
sourceTree
=
"<group>"
;
};
63030CC70CCA652C0088ECD1
/* Info.plist */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
text.xml
;
name
=
Info.plist
;
path
=
Resources/Info.plist
;
sourceTree
=
"<group>"
;
};
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
VLCMediaListAspect.m
;
sourceTree
=
"<group>"
;
};
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
VLCMediaListAspect.m
;
sourceTree
=
"<group>"
;
};
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
VLCMediaListAspect.h
;
path
=
Public/VLCMediaListAspect.h
;
sourceTree
=
"<group>"
;
};
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
VLCMediaListAspect.h
;
path
=
Public/VLCMediaListAspect.h
;
sourceTree
=
"<group>"
;
};
6341FCAE0D2C0929002A97B7
/* VLCVideoLayer.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
VLCVideoLayer.h
;
path
=
Public/VLCVideoLayer.h
;
sourceTree
=
"<group>"
;
};
6341FCB00D2C0936002A97B7
/* VLCVideoLayer.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
VLCVideoLayer.m
;
sourceTree
=
"<group>"
;
};
637D5ABC0CF6F2650073EA45
/* VLCMediaDiscoverer.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
VLCMediaDiscoverer.h
;
path
=
Public/VLCMediaDiscoverer.h
;
sourceTree
=
"<group>"
;
};
637D5ABC0CF6F2650073EA45
/* VLCMediaDiscoverer.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
sourcecode.c.h
;
name
=
VLCMediaDiscoverer.h
;
path
=
Public/VLCMediaDiscoverer.h
;
sourceTree
=
"<group>"
;
};
637D5ADB0CF6F2720073EA45
/* VLCMediaDiscoverer.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
VLCMediaDiscoverer.m
;
sourceTree
=
"<group>"
;
};
637D5ADB0CF6F2720073EA45
/* VLCMediaDiscoverer.m */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
30
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
VLCMediaDiscoverer.m
;
sourceTree
=
"<group>"
;
};
6384FD070D0DBA20005EB1F7
/* QuartzCore.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
QuartzCore.framework
;
path
=
/System/Library/Frameworks/QuartzCore.framework
;
sourceTree
=
"<absolute>"
;
};
6384FD070D0DBA20005EB1F7
/* QuartzCore.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
name
=
QuartzCore.framework
;
path
=
/System/Library/Frameworks/QuartzCore.framework
;
sourceTree
=
"<absolute>"
;
};
...
@@ -208,6 +212,7 @@
...
@@ -208,6 +212,7 @@
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
,
6303C4390CF45CAE0000ECC8
/* VLCMediaListAspect.m */
,
EF8BB8CF0CAFA8D80038A613
/* VLCMediaPlayer.m */
,
EF8BB8CF0CAFA8D80038A613
/* VLCMediaPlayer.m */
,
EF78BD400CAEEFF600354E6E
/* VLCMediaLibrary.m */
,
EF78BD400CAEEFF600354E6E
/* VLCMediaLibrary.m */
,
6341FCB00D2C0936002A97B7
/* VLCVideoLayer.m */
,
EF78BD450CAEEFF600354E6E
/* VLCVideoView.m */
,
EF78BD450CAEEFF600354E6E
/* VLCVideoView.m */
,
EF78BD440CAEEFF600354E6E
/* VLCTime.m */
,
EF78BD440CAEEFF600354E6E
/* VLCTime.m */
,
EF73118F0CB5797B009473B4
/* VLCAudio.m */
,
EF73118F0CB5797B009473B4
/* VLCAudio.m */
,
...
@@ -262,6 +267,7 @@
...
@@ -262,6 +267,7 @@
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
,
6303C43B0CF45CC30000ECC8
/* VLCMediaListAspect.h */
,
EF8BB8CE0CAFA8D80038A613
/* VLCMediaPlayer.h */
,
EF8BB8CE0CAFA8D80038A613
/* VLCMediaPlayer.h */
,
EF78BD150CAEEEE700354E6E
/* VLCMediaLibrary.h */
,
EF78BD150CAEEEE700354E6E
/* VLCMediaLibrary.h */
,
6341FCAE0D2C0929002A97B7
/* VLCVideoLayer.h */
,
EF78BD1A0CAEEEE700354E6E
/* VLCVideoView.h */
,
EF78BD1A0CAEEEE700354E6E
/* VLCVideoView.h */
,
EF78BD190CAEEEE700354E6E
/* VLCTime.h */
,
EF78BD190CAEEEE700354E6E
/* VLCTime.h */
,
EF73118E0CB5797B009473B4
/* VLCAudio.h */
,
EF73118E0CB5797B009473B4
/* VLCAudio.h */
,
...
@@ -289,6 +295,7 @@
...
@@ -289,6 +295,7 @@
EF7311900CB5797B009473B4
/* VLCAudio.h in Headers */
,
EF7311900CB5797B009473B4
/* VLCAudio.h in Headers */
,
EFD551DD0CC6DD720074CEE1
/* VLCLibVLCBridging.h in Headers */
,
EFD551DD0CC6DD720074CEE1
/* VLCLibVLCBridging.h in Headers */
,
637D5ABD0CF6F2650073EA45
/* VLCMediaDiscoverer.h in Headers */
,
637D5ABD0CF6F2650073EA45
/* VLCMediaDiscoverer.h in Headers */
,
6341FCAF0D2C0929002A97B7
/* VLCVideoLayer.h in Headers */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
@@ -306,7 +313,7 @@
...
@@ -306,7 +313,7 @@
dependencies
=
(
dependencies
=
(
);
);
name
=
"vlc-core"
;
name
=
"vlc-core"
;
passBuildSettingsInEnvironment
=
1
;
passBuildSettingsInEnvironment
=
0
;
productName
=
"vlc-core"
;
productName
=
"vlc-core"
;
};
};
/* End PBXLegacyTarget section */
/* End PBXLegacyTarget section */
...
@@ -445,6 +452,7 @@
...
@@ -445,6 +452,7 @@
EF7311910CB5797B009473B4
/* VLCAudio.m in Sources */
,
EF7311910CB5797B009473B4
/* VLCAudio.m in Sources */
,
6303C43A0CF45CAE0000ECC8
/* VLCMediaListAspect.m in Sources */
,
6303C43A0CF45CAE0000ECC8
/* VLCMediaListAspect.m in Sources */
,
637D5ADC0CF6F2720073EA45
/* VLCMediaDiscoverer.m in Sources */
,
637D5ADC0CF6F2720073EA45
/* VLCMediaDiscoverer.m in Sources */
,
6341FCB10D2C0936002A97B7
/* VLCVideoLayer.m in Sources */
,
);
);
runOnlyForDeploymentPostprocessing
=
0
;
runOnlyForDeploymentPostprocessing
=
0
;
};
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment