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
dc7a997b
Commit
dc7a997b
authored
Jan 07, 2013
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Introduce YUVA 4:2:0 and 4:2:2 planar
Ref #7994
parent
b7c3e67d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
include/vlc_fourcc.h
include/vlc_fourcc.h
+4
-0
src/misc/es_format.c
src/misc/es_format.c
+6
-0
src/misc/fourcc.c
src/misc/fourcc.c
+6
-0
No files found.
include/vlc_fourcc.h
View file @
dc7a997b
...
...
@@ -178,6 +178,10 @@
#define VLC_CODEC_YUVP VLC_FOURCC('Y','U','V','P')
/* Planar YUV 4:4:4 Y:U:V:A */
#define VLC_CODEC_YUVA VLC_FOURCC('Y','U','V','A')
/* Planar YUV 4:2:2 Y:U:V:A */
#define VLC_CODEC_YUV422A VLC_FOURCC('I','4','2','A')
/* Planar YUV 4:2:0 Y:U:V:A */
#define VLC_CODEC_YUV420A VLC_FOURCC('I','4','0','A')
/* Palettized RGB with palette element R:G:B */
#define VLC_CODEC_RGBP VLC_FOURCC('R','G','B','P')
/* 8 bits RGB */
...
...
src/misc/es_format.c
View file @
dc7a997b
...
...
@@ -147,6 +147,12 @@ void video_format_Setup( video_format_t *p_fmt, vlc_fourcc_t i_chroma,
case
VLC_CODEC_YUVA
:
p_fmt
->
i_bits_per_pixel
=
32
;
break
;
case
VLC_CODEC_YUV420A
:
p_fmt
->
i_bits_per_pixel
=
20
;
break
;
case
VLC_CODEC_YUV422A
:
p_fmt
->
i_bits_per_pixel
=
24
;
break
;
case
VLC_CODEC_I444
:
case
VLC_CODEC_J444
:
p_fmt
->
i_bits_per_pixel
=
24
;
...
...
src/misc/fourcc.c
View file @
dc7a997b
...
...
@@ -734,6 +734,10 @@ static const staticentry_t p_list_video[] = {
B
(
VLC_CODEC_YUVA
,
"Planar YUV 4:4:4 Y:U:V:A"
),
A
(
"YUVA"
),
B
(
VLC_CODEC_YUV420A
,
"Planar YUV 4:2:0 Y:U:V:A"
),
A
(
"I40A"
),
B
(
VLC_CODEC_YUV422A
,
"Planar YUV 4:2:2 Y:U:V:A"
),
A
(
"I42A"
),
B
(
VLC_CODEC_RGBP
,
"Palettized RGB with palette element R:G:B"
),
A
(
"RGBP"
),
...
...
@@ -1910,6 +1914,8 @@ static const struct
{
{
VLC_CODEC_YUV_PLANAR_440
,
0
},
PLANAR_8
(
3
,
1
,
2
)
},
{
{
VLC_CODEC_YUV_PLANAR_444
,
0
},
PLANAR_8
(
3
,
1
,
1
)
},
{
{
VLC_CODEC_YUVA
,
0
},
PLANAR_8
(
4
,
1
,
1
)
},
{
{
VLC_CODEC_YUV420A
,
0
},
PLANAR_8
(
4
,
2
,
2
)
},
{
{
VLC_CODEC_YUV422A
,
0
},
PLANAR_8
(
4
,
2
,
1
)
},
{
{
VLC_CODEC_I420_10L
,
VLC_CODEC_I420_10B
,
0
},
PLANAR_16
(
3
,
2
,
2
,
10
)
},
...
...
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