Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
dfae18e3
Commit
dfae18e3
authored
May 18, 2011
by
Katsushi Kobayashi
Committed by
Felix Paul Kühne
May 18, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: add qtcapture size option.
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
d882b56e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
9 deletions
+13
-9
modules/access/qtcapture.m
modules/access/qtcapture.m
+13
-9
No files found.
modules/access/qtcapture.m
View file @
dfae18e3
...
@@ -41,8 +41,10 @@
...
@@ -41,8 +41,10 @@
#import <QTKit/QTKit.h>
#import <QTKit/QTKit.h>
#import <CoreAudio/CoreAudio.h>
#import <CoreAudio/CoreAudio.h>
#define QTC_WIDTH 640
#define QTKIT_WIDTH_TEXT N_("Video Capture width")
#define QTC_HEIGHT 480
#define QTKIT_WIDTH_LONGTEXT N_("Video Capture width in pixel")
#define QTKIT_HEIGHT_TEXT N_("Video Capture height")
#define QTKIT_HEIGHT_LONGTEXT N_("Video Capture height in pixel")
/*****************************************************************************
/*****************************************************************************
* Local prototypes
* Local prototypes
...
@@ -63,6 +65,10 @@ vlc_module_begin ()
...
@@ -63,6 +65,10 @@ vlc_module_begin ()
add_shortcut
(
"qtcapture"
)
add_shortcut
(
"qtcapture"
)
set_capability
(
"access_demux"
,
10
)
set_capability
(
"access_demux"
,
10
)
set_callbacks
(
Open
,
Close
)
set_callbacks
(
Open
,
Close
)
add_integer
(
"qtcapture-width"
,
640
,
QTKIT_WIDTH_TEXT
,
QTKIT_WIDTH_LONGTEXT
,
true
)
change_integer_range
(
80
,
1280
)
add_integer
(
"qtcapture-height"
,
480
,
QTKIT_HEIGHT_TEXT
,
QTKIT_HEIGHT_LONGTEXT
,
true
)
change_integer_range
(
60
,
480
)
vlc_module_end
()
vlc_module_end
()
...
@@ -317,12 +323,10 @@ static int Open( vlc_object_t *p_this )
...
@@ -317,12 +323,10 @@ static int Open( vlc_object_t *p_this )
NSSize
display_size
=
[[
camera_format
attributeForKey
:
QTFormatDescriptionVideoCleanApertureDisplaySizeAttribute
]
sizeValue
];
NSSize
display_size
=
[[
camera_format
attributeForKey
:
QTFormatDescriptionVideoCleanApertureDisplaySizeAttribute
]
sizeValue
];
NSSize
par_size
=
[[
camera_format
attributeForKey
:
QTFormatDescriptionVideoProductionApertureDisplaySizeAttribute
]
sizeValue
];
NSSize
par_size
=
[[
camera_format
attributeForKey
:
QTFormatDescriptionVideoProductionApertureDisplaySizeAttribute
]
sizeValue
];
encoded_size
.
width
=
QTC_WIDTH
;
par_size
.
width
=
display_size
.
width
=
encoded_size
.
width
encoded_size
.
height
=
QTC_HEIGHT
;
=
var_CreateGetInteger
(
p_this
,
"qtcapture-width"
);
display_size
.
width
=
QTC_WIDTH
;
par_size
.
height
=
display_size
.
height
=
encoded_size
.
height
display_size
.
height
=
QTC_HEIGHT
;
=
var_CreateGetInteger
(
p_this
,
"qtcapture-height"
);
par_size
.
width
=
QTC_WIDTH
;
par_size
.
height
=
QTC_HEIGHT
;
fmt
.
video
.
i_width
=
p_sys
->
width
=
encoded_size
.
width
;
fmt
.
video
.
i_width
=
p_sys
->
width
=
encoded_size
.
width
;
fmt
.
video
.
i_height
=
p_sys
->
height
=
encoded_size
.
height
;
fmt
.
video
.
i_height
=
p_sys
->
height
=
encoded_size
.
height
;
...
...
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