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
c74d5929
Commit
c74d5929
authored
Sep 16, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_stereo3d: BGR24 support for anaglyphs
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
fcea6f71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
vf_stereo3d.c
libavfilter/vf_stereo3d.c
+14
-5
No files found.
libavfilter/vf_stereo3d.c
View file @
c74d5929
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
#include "libavutil/parseutils.h"
#include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h"
#include "libavutil/pixdesc.h"
#include "avfilter.h"
#include "avfilter.h"
#include "drawutils.h"
#include "formats.h"
#include "formats.h"
#include "internal.h"
#include "internal.h"
#include "video.h"
#include "video.h"
...
@@ -192,7 +193,11 @@ static const AVOption stereo3d_options[] = {
...
@@ -192,7 +193,11 @@ static const AVOption stereo3d_options[] = {
AVFILTER_DEFINE_CLASS
(
stereo3d
);
AVFILTER_DEFINE_CLASS
(
stereo3d
);
static
const
enum
AVPixelFormat
anaglyph_pix_fmts
[]
=
{
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
anaglyph_pix_fmts
[]
=
{
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
other_pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
other_pix_fmts
[]
=
{
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_BGR48BE
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_BGR48BE
,
...
@@ -388,11 +393,15 @@ static int config_output(AVFilterLink *outlink)
...
@@ -388,11 +393,15 @@ static int config_output(AVFilterLink *outlink)
case
ANAGLYPH_YB_GRAY
:
case
ANAGLYPH_YB_GRAY
:
case
ANAGLYPH_YB_HALF
:
case
ANAGLYPH_YB_HALF
:
case
ANAGLYPH_YB_COLOR
:
case
ANAGLYPH_YB_COLOR
:
case
ANAGLYPH_YB_DUBOIS
:
case
ANAGLYPH_YB_DUBOIS
:
{
s
->
ana_matrix
[
0
]
=
&
ana_coeff
[
s
->
out
.
format
][
0
][
0
];
uint8_t
rgba_map
[
4
];
s
->
ana_matrix
[
1
]
=
&
ana_coeff
[
s
->
out
.
format
][
1
][
0
];
s
->
ana_matrix
[
2
]
=
&
ana_coeff
[
s
->
out
.
format
][
2
][
0
];
ff_fill_rgba_map
(
rgba_map
,
outlink
->
format
);
s
->
ana_matrix
[
rgba_map
[
0
]]
=
&
ana_coeff
[
s
->
out
.
format
][
0
][
0
];
s
->
ana_matrix
[
rgba_map
[
1
]]
=
&
ana_coeff
[
s
->
out
.
format
][
1
][
0
];
s
->
ana_matrix
[
rgba_map
[
2
]]
=
&
ana_coeff
[
s
->
out
.
format
][
2
][
0
];
break
;
break
;
}
case
SIDE_BY_SIDE_2_LR
:
case
SIDE_BY_SIDE_2_LR
:
aspect
.
den
*=
2
;
aspect
.
den
*=
2
;
case
SIDE_BY_SIDE_LR
:
case
SIDE_BY_SIDE_LR
:
...
...
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