Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
3a9ae14c
Commit
3a9ae14c
authored
Jul 31, 2007
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/video_output/vout_pictures.c: support the GREY fourcc.
parent
b6a01980
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
1 deletion
+17
-1
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+14
-1
src/video_output/vout_pictures.h
src/video_output/vout_pictures.h
+3
-0
No files found.
src/video_output/vout_pictures.c
View file @
3a9ae14c
...
...
@@ -572,7 +572,6 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
case
FOURCC_YUY2
:
case
FOURCC_UYVY
:
case
FOURCC_J422
:
p_format
->
i_bits_per_pixel
=
16
;
p_format
->
i_bits_per_pixel
=
16
;
break
;
case
FOURCC_I411
:
...
...
@@ -607,6 +606,11 @@ void vout_InitFormat( video_frame_format_t *p_format, vlc_fourcc_t i_chroma,
case
FOURCC_RGB2
:
p_format
->
i_bits_per_pixel
=
8
;
break
;
case
FOURCC_GREY
:
p_format
->
i_bits_per_pixel
=
8
;
break
;
default:
p_format
->
i_bits_per_pixel
=
0
;
break
;
...
...
@@ -832,6 +836,15 @@ int __vout_InitPicture( vlc_object_t *p_this, picture_t *p_pic,
p_pic
->
i_planes
=
1
;
break
;
case
FOURCC_GREY
:
p_pic
->
p
->
i_lines
=
i_height_aligned
;
p_pic
->
p
->
i_visible_lines
=
i_height
;
p_pic
->
p
->
i_pitch
=
i_width_aligned
;
p_pic
->
p
->
i_visible_pitch
=
i_width
;
p_pic
->
p
->
i_pixel_pitch
=
1
;
p_pic
->
i_planes
=
1
;
break
;
default:
msg_Err
(
p_this
,
"unknown chroma type 0x%.8x (%4.4s)"
,
i_chroma
,
(
char
*
)
&
i_chroma
);
...
...
src/video_output/vout_pictures.h
View file @
3a9ae14c
...
...
@@ -99,3 +99,6 @@
/* Palettized YUV with palette element Y:U:V:A */
#define FOURCC_YUVP VLC_FOURCC('Y','U','V','P')
/* Planar 8-bit grayscale */
#define FOURCC_GREY VLC_FOURCC('G','R','E','Y')
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