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
13404416
Commit
13404416
authored
Feb 03, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
video chroma: add a Nv12 copy function which outputs I420
parent
c3056361
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
modules/video_chroma/copy.c
modules/video_chroma/copy.c
+12
-0
modules/video_chroma/copy.h
modules/video_chroma/copy.h
+3
-0
No files found.
modules/video_chroma/copy.c
View file @
13404416
...
...
@@ -438,6 +438,18 @@ void CopyFromNv12ToNv12(picture_t *dst, uint8_t *src[2], size_t src_pitch[2],
width
,
height
/
2
);
}
void
CopyFromNv12ToI420
(
picture_t
*
dst
,
uint8_t
*
src
[
2
],
size_t
src_pitch
[
2
],
unsigned
width
,
unsigned
height
)
{
CopyPlane
(
dst
->
p
[
0
].
p_pixels
,
dst
->
p
[
0
].
i_pitch
,
src
[
0
],
src_pitch
[
0
],
width
,
height
);
SplitPlanes
(
dst
->
p
[
1
].
p_pixels
,
dst
->
p
[
1
].
i_pitch
,
dst
->
p
[
2
].
p_pixels
,
dst
->
p
[
2
].
i_pitch
,
src
[
1
],
src_pitch
[
1
],
width
/
2
,
height
/
2
);
}
void
CopyFromYv12
(
picture_t
*
dst
,
uint8_t
*
src
[
3
],
size_t
src_pitch
[
3
],
unsigned
width
,
unsigned
height
,
copy_cache_t
*
cache
)
...
...
modules/video_chroma/copy.h
View file @
13404416
...
...
@@ -47,4 +47,7 @@ void CopyFromNv12ToNv12(picture_t *dst, uint8_t *src[2], size_t src_pitch[2],
unsigned
width
,
unsigned
height
,
copy_cache_t
*
cache
);
void
CopyFromNv12ToI420
(
picture_t
*
dst
,
uint8_t
*
src
[
2
],
size_t
src_pitch
[
2
],
unsigned
width
,
unsigned
height
);
#endif
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