Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
454654e2
Commit
454654e2
authored
Nov 26, 2013
by
Felix Abecassis
Committed by
Jean-Baptiste Kempf
Dec 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: use function video_format_IsSimilar.
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
160f187d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
modules/video_chroma/swscale.c
modules/video_chroma/swscale.c
+2
-8
No files found.
modules/video_chroma/swscale.c
View file @
454654e2
...
...
@@ -247,12 +247,6 @@ static int GetSwsCpuMask(void)
return
i_sws_cpu
;
}
static
bool
IsFmtSimilar
(
const
video_format_t
*
p_fmt1
,
const
video_format_t
*
p_fmt2
)
{
return
p_fmt1
->
i_chroma
==
p_fmt2
->
i_chroma
&&
p_fmt1
->
i_width
==
p_fmt2
->
i_width
&&
p_fmt1
->
i_height
==
p_fmt2
->
i_height
;
}
static
void
FixParameters
(
int
*
pi_fmt
,
bool
*
pb_has_a
,
bool
*
pb_swap_uv
,
vlc_fourcc_t
fmt
)
{
...
...
@@ -351,8 +345,8 @@ static int Init( filter_t *p_filter )
const
video_format_t
*
p_fmti
=
&
p_filter
->
fmt_in
.
video
;
video_format_t
*
p_fmto
=
&
p_filter
->
fmt_out
.
video
;
if
(
IsFmt
Similar
(
p_fmti
,
&
p_sys
->
fmt_in
)
&&
IsFmt
Similar
(
p_fmto
,
&
p_sys
->
fmt_out
)
&&
if
(
video_format_Is
Similar
(
p_fmti
,
&
p_sys
->
fmt_in
)
&&
video_format_Is
Similar
(
p_fmto
,
&
p_sys
->
fmt_out
)
&&
p_sys
->
ctx
)
{
return
VLC_SUCCESS
;
...
...
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