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
14cc9765
Commit
14cc9765
authored
Jul 10, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Let swscale handle video conversion when available (close #1695)
parent
f698b433
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
modules/codec/avcodec/chroma.h
modules/codec/avcodec/chroma.h
+3
-3
modules/codec/avcodec/video.c
modules/codec/avcodec/video.c
+5
-2
No files found.
modules/codec/avcodec/chroma.h
View file @
14cc9765
...
...
@@ -25,7 +25,7 @@
/*****************************************************************************
* Chroma fourcc -> ffmpeg_id mapping
*****************************************************************************/
static
struct
static
const
struct
{
vlc_fourcc_t
i_chroma
;
int
i_chroma_id
;
...
...
@@ -74,7 +74,7 @@ static struct
{
0
,
0
}
};
static
int
GetFfmpegChroma
(
vlc_fourcc_t
i_chroma
)
static
in
line
in
t
GetFfmpegChroma
(
vlc_fourcc_t
i_chroma
)
{
int
i
;
...
...
@@ -86,7 +86,7 @@ static int GetFfmpegChroma( vlc_fourcc_t i_chroma )
return
-
1
;
}
static
vlc_fourcc_t
GetVlcChroma
(
int
i_ffmpeg_chroma
)
static
inline
vlc_fourcc_t
GetVlcChroma
(
int
i_ffmpeg_chroma
)
{
int
i
;
...
...
modules/codec/avcodec/video.c
View file @
14cc9765
...
...
@@ -45,6 +45,7 @@
#endif
#include "avcodec.h"
#include "chroma.h"
/*****************************************************************************
* decoder_sys_t : decoder descriptor
...
...
@@ -150,9 +151,11 @@ static uint32_t ffmpeg_PixFmtToChroma( int i_ff_chroma )
case
PIX_FMT_GRAY8
:
return
VLC_FOURCC
(
'G'
,
'R'
,
'E'
,
'Y'
);
case
PIX_FMT_YUV410P
:
case
PIX_FMT_YUV411P
:
default:
#if defined(HAVE_LIBSWSCALE_SWSCALE_H) || defined(HAVE_FFMPEG_SWSCALE_H)
if
(
GetVlcChroma
(
i_ff_chroma
)
)
return
GetVlcChroma
(
i_ff_chroma
);
#endif
return
0
;
}
}
...
...
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