Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
fad6ff80
Commit
fad6ff80
authored
Aug 30, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added blending over J420.
It is not exact with rgb blending.
parent
aceed8b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
modules/video_filter/blend.c
modules/video_filter/blend.c
+11
-7
No files found.
modules/video_filter/blend.c
View file @
fad6ff80
...
...
@@ -107,11 +107,14 @@ static int OpenFilter( vlc_object_t *p_this )
if
(
(
in_chroma
!=
VLC_CODEC_YUVA
&&
in_chroma
!=
VLC_CODEC_I420
&&
in_chroma
!=
VLC_CODEC_YV12
&&
in_chroma
!=
VLC_CODEC_YUVP
&&
in_chroma
!=
VLC_CODEC_RGBA
)
||
(
out_chroma
!=
VLC_CODEC_I420
&&
out_chroma
!=
VLC_CODEC_YUYV
&&
out_chroma
!=
VLC_CODEC_YV12
&&
out_chroma
!=
VLC_CODEC_UYVY
&&
out_chroma
!=
VLC_CODEC_YVYU
&&
out_chroma
!=
VLC_CODEC_RGB15
&&
out_chroma
!=
VLC_CODEC_YVYU
&&
out_chroma
!=
VLC_CODEC_RGB16
&&
out_chroma
!=
VLC_CODEC_RGB24
&&
out_chroma
!=
VLC_CODEC_RGB32
)
)
(
out_chroma
!=
VLC_CODEC_I420
&&
out_chroma
!=
VLC_CODEC_J420
&&
out_chroma
!=
VLC_CODEC_YV12
&&
out_chroma
!=
VLC_CODEC_YUYV
&&
out_chroma
!=
VLC_CODEC_YVYU
&&
out_chroma
!=
VLC_CODEC_UYVY
&&
out_chroma
!=
VLC_CODEC_VYUY
&&
out_chroma
!=
VLC_CODEC_RGB15
&&
out_chroma
!=
VLC_CODEC_RGB16
&&
out_chroma
!=
VLC_CODEC_RGB24
&&
out_chroma
!=
VLC_CODEC_RGB32
)
)
{
return
VLC_EGENERIC
;
}
...
...
@@ -143,8 +146,8 @@ typedef void (*BlendFunction)( filter_t *,
picture_t
*
,
const
picture_t
*
,
int
,
int
,
int
,
int
,
int
);
#define VLC_CODEC_PLANAR_420 { VLC_CODEC_I420, VLC_CODEC_YV12, 0 }
#define VLC_CODEC_PACKED_422 { VLC_CODEC_YUYV, VLC_CODEC_UYVY, VLC_CODEC_YVYU, 0 }
#define VLC_CODEC_PLANAR_420 { VLC_CODEC_I420, VLC_CODEC_
J420, VLC_CODEC_
YV12, 0 }
#define VLC_CODEC_PACKED_422 { VLC_CODEC_YUYV, VLC_CODEC_UYVY, VLC_CODEC_YVYU,
VLC_CODEC_VYUY,
0 }
#define VLC_CODEC_RGB_16 { VLC_CODEC_RGB15, VLC_CODEC_RGB16, 0 }
#define VLC_CODEC_RGB_24 { VLC_CODEC_RGB24, VLC_CODEC_RGB32, 0 }
...
...
@@ -315,6 +318,7 @@ static void vlc_yuv_packed_index( int *pi_y, int *pi_u, int *pi_v, vlc_fourcc_t
{
VLC_CODEC_YUYV
,
0
,
1
,
3
},
{
VLC_CODEC_UYVY
,
1
,
0
,
2
},
{
VLC_CODEC_YVYU
,
0
,
3
,
1
},
{
VLC_CODEC_VYUY
,
1
,
2
,
0
},
{
0
,
0
,
0
,
0
}
};
int
i
;
...
...
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