Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
4792fb94
Commit
4792fb94
authored
May 28, 2015
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/x264: Support bgr0 as input pix_fmt.
parent
57eecd9e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
libx264.c
libavcodec/libx264.c
+4
-0
No files found.
libavcodec/libx264.c
View file @
4792fb94
...
...
@@ -148,6 +148,7 @@ static int avfmt2_num_planes(int avfmt)
case
AV_PIX_FMT_YUV444P
:
return
3
;
case
AV_PIX_FMT_BGR0
:
case
AV_PIX_FMT_BGR24
:
case
AV_PIX_FMT_RGB24
:
return
1
;
...
...
@@ -346,6 +347,8 @@ static int convert_pix_fmt(enum AVPixelFormat pix_fmt)
case
AV_PIX_FMT_YUV444P9
:
case
AV_PIX_FMT_YUV444P10
:
return
X264_CSP_I444
;
#ifdef X264_CSP_BGR
case
AV_PIX_FMT_BGR0
:
return
X264_CSP_BGRA
;
case
AV_PIX_FMT_BGR24
:
return
X264_CSP_BGR
;
...
...
@@ -750,6 +753,7 @@ static const enum AVPixelFormat pix_fmts_10bit[] = {
};
static
const
enum
AVPixelFormat
pix_fmts_8bit_rgb
[]
=
{
#ifdef X264_CSP_BGR
AV_PIX_FMT_BGR0
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGB24
,
#endif
...
...
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