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
9d30690f
Commit
9d30690f
authored
Jun 10, 2016
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swscale: add input support for gbrap10 pixel format
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
8100426f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
input.c
libswscale/input.c
+6
-0
utils.c
libswscale/utils.c
+6
-0
No files found.
libswscale/input.c
View file @
9d30690f
...
...
@@ -978,6 +978,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_GBRP9LE
:
c
->
readChrPlanar
=
planar_rgb9le_to_uv
;
break
;
case
AV_PIX_FMT_GBRAP10LE
:
case
AV_PIX_FMT_GBRP10LE
:
c
->
readChrPlanar
=
planar_rgb10le_to_uv
;
break
;
...
...
@@ -995,6 +996,7 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_GBRP9BE
:
c
->
readChrPlanar
=
planar_rgb9be_to_uv
;
break
;
case
AV_PIX_FMT_GBRAP10BE
:
case
AV_PIX_FMT_GBRP10BE
:
c
->
readChrPlanar
=
planar_rgb10be_to_uv
;
break
;
...
...
@@ -1258,6 +1260,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_GBRP9LE
:
c
->
readLumPlanar
=
planar_rgb9le_to_y
;
break
;
case
AV_PIX_FMT_GBRAP10LE
:
c
->
readAlpPlanar
=
planar_rgb10le_to_a
;
case
AV_PIX_FMT_GBRP10LE
:
c
->
readLumPlanar
=
planar_rgb10le_to_y
;
break
;
...
...
@@ -1277,6 +1281,8 @@ av_cold void ff_sws_init_input_funcs(SwsContext *c)
case
AV_PIX_FMT_GBRP9BE
:
c
->
readLumPlanar
=
planar_rgb9be_to_y
;
break
;
case
AV_PIX_FMT_GBRAP10BE
:
c
->
readAlpPlanar
=
planar_rgb10be_to_a
;
case
AV_PIX_FMT_GBRP10BE
:
c
->
readLumPlanar
=
planar_rgb10be_to_y
;
break
;
...
...
libswscale/utils.c
View file @
9d30690f
...
...
@@ -218,6 +218,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = {
[
AV_PIX_FMT_GBRP9BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GBRP10LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GBRP10BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GBRAP10LE
]
=
{
1
,
0
},
[
AV_PIX_FMT_GBRAP10BE
]
=
{
1
,
0
},
[
AV_PIX_FMT_GBRP12LE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GBRP12BE
]
=
{
1
,
1
},
[
AV_PIX_FMT_GBRAP12LE
]
=
{
1
,
0
},
...
...
@@ -1099,6 +1101,9 @@ static enum AVPixelFormat alphaless_fmt(enum AVPixelFormat fmt)
case
AV_PIX_FMT_GBRAP
:
return
AV_PIX_FMT_GBRP
;
case
AV_PIX_FMT_GBRAP10LE
:
return
AV_PIX_FMT_GBRP10
;
case
AV_PIX_FMT_GBRAP10BE
:
return
AV_PIX_FMT_GBRP10
;
case
AV_PIX_FMT_GBRAP12LE
:
return
AV_PIX_FMT_GBRP12
;
case
AV_PIX_FMT_GBRAP12BE
:
return
AV_PIX_FMT_GBRP12
;
...
...
@@ -1370,6 +1375,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
srcFormat
!=
AV_PIX_FMT_RGB4_BYTE
&&
srcFormat
!=
AV_PIX_FMT_BGR4_BYTE
&&
srcFormat
!=
AV_PIX_FMT_GBRP9BE
&&
srcFormat
!=
AV_PIX_FMT_GBRP9LE
&&
srcFormat
!=
AV_PIX_FMT_GBRP10BE
&&
srcFormat
!=
AV_PIX_FMT_GBRP10LE
&&
srcFormat
!=
AV_PIX_FMT_GBRAP10BE
&&
srcFormat
!=
AV_PIX_FMT_GBRAP10LE
&&
srcFormat
!=
AV_PIX_FMT_GBRP12BE
&&
srcFormat
!=
AV_PIX_FMT_GBRP12LE
&&
srcFormat
!=
AV_PIX_FMT_GBRAP12BE
&&
srcFormat
!=
AV_PIX_FMT_GBRAP12LE
&&
srcFormat
!=
AV_PIX_FMT_GBRP14BE
&&
srcFormat
!=
AV_PIX_FMT_GBRP14LE
&&
...
...
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