Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLMC
Manage
Activity
Members
Labels
Plan
Issues
26
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLMC
Commits
68eb2c0f
Commit
68eb2c0f
authored
8 years ago
by
luyikei
Browse files
Options
Downloads
Patches
Plain Diff
IInput: Add aspectRatio()
parent
325b8050
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Backend/IInput.h
+1
-0
1 addition, 0 deletions
src/Backend/IInput.h
src/Backend/MLT/MLTInput.cpp
+6
-0
6 additions, 0 deletions
src/Backend/MLT/MLTInput.cpp
src/Backend/MLT/MLTInput.h
+1
-0
1 addition, 0 deletions
src/Backend/MLT/MLTInput.h
with
8 additions
and
0 deletions
src/Backend/IInput.h
+
1
−
0
View file @
68eb2c0f
...
...
@@ -88,6 +88,7 @@ namespace Backend
virtual
uint8_t
*
image
(
uint32_t
width
,
uint32_t
height
)
const
=
0
;
virtual
double
fps
()
const
=
0
;
virtual
double
aspectRatio
()
const
=
0
;
virtual
int
width
()
const
=
0
;
virtual
int
height
()
const
=
0
;
virtual
bool
hasVideo
()
const
=
0
;
...
...
This diff is collapsed.
Click to expand it.
src/Backend/MLT/MLTInput.cpp
+
6
−
0
View file @
68eb2c0f
...
...
@@ -272,6 +272,12 @@ MLTInput::fps() const
return
producer
()
->
get_fps
();
}
double
MLTInput
::
aspectRatio
()
const
{
return
producer
()
->
get_double
(
"aspect_ratio"
);
}
int
MLTInput
::
width
()
const
{
...
...
This diff is collapsed.
Click to expand it.
src/Backend/MLT/MLTInput.h
+
1
−
0
View file @
68eb2c0f
...
...
@@ -90,6 +90,7 @@ class MLTInput : virtual public IInput, public MLTService
virtual
uint8_t
*
image
(
uint32_t
width
,
uint32_t
height
)
const
override
;
virtual
double
fps
()
const
override
;
virtual
double
aspectRatio
()
const
override
;
virtual
int
width
()
const
override
;
virtual
int
height
()
const
override
;
virtual
bool
hasVideo
()
const
override
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment