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
492aab85
Commit
492aab85
authored
Nov 28, 2011
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1enc: PIX_FMT_0RGB32 support
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f7b160e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ffv1.c
libavcodec/ffv1.c
+5
-2
No files found.
libavcodec/ffv1.c
View file @
492aab85
...
...
@@ -593,7 +593,7 @@ static void encode_rgb_frame(FFV1Context *s, uint32_t *src, int w, int h, int st
sample
[
2
][
0
][
x
]
=
r
;
sample
[
3
][
0
][
x
]
=
a
;
}
for
(
p
=
0
;
p
<
4
;
p
++
){
for
(
p
=
0
;
p
<
3
+
s
->
transparency
;
p
++
){
sample
[
p
][
0
][
-
1
]
=
sample
[
p
][
1
][
0
];
sample
[
p
][
1
][
w
]
=
sample
[
p
][
1
][
w
-
1
];
encode_line
(
s
,
w
,
sample
[
p
],
(
p
+
1
)
/
2
,
9
);
...
...
@@ -939,6 +939,9 @@ static av_cold int encode_init(AVCodecContext *avctx)
s
->
colorspace
=
1
;
s
->
transparency
=
1
;
break
;
case
PIX_FMT_0RGB32
:
s
->
colorspace
=
1
;
break
;
default
:
av_log
(
avctx
,
AV_LOG_ERROR
,
"format not supported
\n
"
);
return
-
1
;
...
...
@@ -1793,7 +1796,7 @@ AVCodec ff_ffv1_encoder = {
.
encode
=
encode_frame
,
.
close
=
common_end
,
.
capabilities
=
CODEC_CAP_SLICE_THREADS
,
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_YUV420P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUV422P
,
PIX_FMT_YUV411P
,
PIX_FMT_YUV410P
,
PIX_FMT_RGB32
,
PIX_FMT_YUV420P16
,
PIX_FMT_YUV422P16
,
PIX_FMT_YUV444P16
,
PIX_FMT_YUV420P9
,
PIX_FMT_YUV420P10
,
PIX_FMT_YUV422P10
,
PIX_FMT_NONE
},
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_YUV420P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUV422P
,
PIX_FMT_YUV411P
,
PIX_FMT_YUV410P
,
PIX_FMT_
0RGB32
,
PIX_FMT_
RGB32
,
PIX_FMT_YUV420P16
,
PIX_FMT_YUV422P16
,
PIX_FMT_YUV444P16
,
PIX_FMT_YUV420P9
,
PIX_FMT_YUV420P10
,
PIX_FMT_YUV422P10
,
PIX_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"FFmpeg video codec #1"
),
};
#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