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
226b2238
Commit
226b2238
authored
Mar 17, 2012
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
transform: correct chroma check
This should enable a few more chromas, at least GREY.
parent
f963a923
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/video_filter/transform.c
modules/video_filter/transform.c
+17
-1
No files found.
modules/video_filter/transform.c
View file @
226b2238
...
@@ -179,6 +179,22 @@ static int Mouse(filter_t *filter, vlc_mouse_t *mouse,
...
@@ -179,6 +179,22 @@ static int Mouse(filter_t *filter, vlc_mouse_t *mouse,
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
static
bool
SupportedChroma
(
const
vlc_chroma_description_t
*
chroma
)
{
if
(
chroma
==
NULL
)
return
false
;
if
(
chroma
->
pixel_size
!=
1
)
return
false
;
for
(
unsigned
i
=
0
;
i
<
chroma
->
plane_count
;
i
++
)
if
(
chroma
->
p
[
i
].
w
.
num
*
chroma
->
p
[
i
].
h
.
den
!=
chroma
->
p
[
i
].
h
.
num
*
chroma
->
p
[
i
].
w
.
den
)
return
false
;
return
true
;
}
static
int
Open
(
vlc_object_t
*
object
)
static
int
Open
(
vlc_object_t
*
object
)
{
{
filter_t
*
filter
=
(
filter_t
*
)
object
;
filter_t
*
filter
=
(
filter_t
*
)
object
;
...
@@ -187,7 +203,7 @@ static int Open(vlc_object_t *object)
...
@@ -187,7 +203,7 @@ static int Open(vlc_object_t *object)
const
vlc_chroma_description_t
*
chroma
=
const
vlc_chroma_description_t
*
chroma
=
vlc_fourcc_GetChromaDescription
(
src
->
i_chroma
);
vlc_fourcc_GetChromaDescription
(
src
->
i_chroma
);
if
(
!
chroma
||
chroma
->
plane_count
<
3
||
chroma
->
pixel_size
!=
1
)
{
if
(
!
SupportedChroma
(
chroma
)
)
{
msg_Err
(
filter
,
"Unsupported chroma (%4.4s)"
,
(
char
*
)
&
src
->
i_chroma
);
msg_Err
(
filter
,
"Unsupported chroma (%4.4s)"
,
(
char
*
)
&
src
->
i_chroma
);
/* TODO support packed and rgb */
/* TODO support packed and rgb */
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
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