Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
eb7856b7
Commit
eb7856b7
authored
May 31, 2008
by
dionoea
Browse files
Add "Y800" and "Y8 " as aliases for the "GREY" fourcc in the core.
parent
39eef2d3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/video_output/vout_pictures.c
View file @
eb7856b7
...
...
@@ -607,6 +607,8 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
break
;
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
p_format
->
i_bits_per_pixel
=
8
;
break
;
...
...
@@ -836,6 +838,8 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
break
;
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
p_pic
->
p
->
i_lines
=
i_height_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
...
...
@@ -911,6 +915,20 @@ int vout_ChromaCmp( vlc_fourcc_t i_chroma, vlc_fourcc_t i_amorhc )
return
0
;
}
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
switch
(
i_amorhc
)
{
case
FOURCC_GREY
:
case
FOURCC_Y800
:
case
FOURCC_Y8
:
return
1
;
default:
return
0
;
}
default:
return
0
;
}
...
...
src/video_output/vout_pictures.h
View file @
eb7856b7
...
...
@@ -102,6 +102,8 @@
/* Planar 8-bit grayscale */
#define FOURCC_GREY VLC_FOURCC('G','R','E','Y')
#define FOURCC_Y800 VLC_FOURCC('Y','8','0','0')
#define FOURCC_Y8 VLC_FOURCC('Y','8',' ',' ')
/* Alignment of critical dynamic data structure
*
...
...
Write
Preview
Supports
Markdown
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