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
28efeeec
Commit
28efeeec
authored
Oct 31, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/codec/ffmpeg/demux.c: do not re-invent the wheel.
parent
570f1d43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
40 deletions
+1
-40
modules/codec/ffmpeg/demux.c
modules/codec/ffmpeg/demux.c
+1
-40
No files found.
modules/codec/ffmpeg/demux.c
View file @
28efeeec
...
...
@@ -198,46 +198,7 @@ int E_(OpenDemux)( vlc_object_t *p_this )
if
(
cc
->
codec_id
==
CODEC_ID_RAWVIDEO
)
{
msg_Dbg
(
p_demux
,
"raw video, pixel format: %i"
,
cc
->
pix_fmt
);
switch
(
cc
->
pix_fmt
)
{
case
PIX_FMT_YUV444P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'4'
,
'4'
);
break
;
case
PIX_FMT_YUV422P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'2'
);
break
;
case
PIX_FMT_YUV420P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'2'
,
'0'
);
break
;
case
PIX_FMT_YUV411P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'1'
,
'1'
);
break
;
case
PIX_FMT_YUV410P
:
fcc
=
VLC_FOURCC
(
'I'
,
'4'
,
'1'
,
'0'
);
break
;
case
PIX_FMT_YUV422
:
fcc
=
VLC_FOURCC
(
'Y'
,
'U'
,
'Y'
,
'2'
);
break
;
case
PIX_FMT_RGB555
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'5'
);
break
;
case
PIX_FMT_RGB565
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'1'
,
'6'
);
break
;
case
PIX_FMT_RGB24
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'2'
,
'4'
);
break
;
case
PIX_FMT_RGBA32
:
fcc
=
VLC_FOURCC
(
'R'
,
'V'
,
'3'
,
'2'
);
break
;
case
PIX_FMT_GRAY8
:
fcc
=
VLC_FOURCC
(
'G'
,
'R'
,
'E'
,
'Y'
);
break
;
default:
break
;
}
fcc
=
E_
(
GetVlcChroma
)(
cc
->
pix_fmt
);
}
}
...
...
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