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
123dd934
Commit
123dd934
authored
Apr 30, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffv1: add slicecrc option
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
24e3f44a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
ffv1.c
libavcodec/ffv1.c
+21
-1
No files found.
libavcodec/ffv1.c
View file @
123dd934
...
...
@@ -36,6 +36,7 @@
#include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
#include "libavutil/crc.h"
#include "libavutil/opt.h"
#ifdef __INTEL_COMPILER
#undef av_flatten
...
...
@@ -903,7 +904,10 @@ static av_cold int encode_init(AVCodecContext *avctx)
if
(
avctx
->
level
==
3
){
s
->
version
=
3
;
s
->
ec
=
1
;
}
if
(
s
->
ec
<
0
){
s
->
ec
=
(
s
->
version
>=
3
);
}
if
(
s
->
version
>=
2
&&
avctx
->
strict_std_compliance
>
FF_COMPLIANCE_EXPERIMENTAL
)
{
...
...
@@ -2028,6 +2032,21 @@ AVCodec ff_ffv1_decoder = {
};
#if CONFIG_FFV1_ENCODER
#define OFFSET(x) offsetof(FFV1Context, x)
#define VE AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_ENCODING_PARAM
static
const
AVOption
options
[]
=
{
{
"slicecrc"
,
"Protect slices with CRCs"
,
OFFSET
(
ec
),
AV_OPT_TYPE_INT
,
{
-
1
},
-
1
,
1
,
VE
},
{
NULL
}
};
static
const
AVClass
class
=
{
.
class_name
=
"ffv1 encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
AVCodec
ff_ffv1_encoder
=
{
.
name
=
"ffv1"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
...
...
@@ -2039,5 +2058,6 @@ AVCodec ff_ffv1_encoder = {
.
capabilities
=
CODEC_CAP_SLICE_THREADS
,
.
pix_fmts
=
(
const
enum
PixelFormat
[]){
PIX_FMT_YUV420P
,
PIX_FMT_YUVA420P
,
PIX_FMT_YUV444P
,
PIX_FMT_YUVA444P
,
PIX_FMT_YUV440P
,
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_YUV444P9
,
PIX_FMT_YUV422P9
,
PIX_FMT_YUV420P9
,
PIX_FMT_YUV420P10
,
PIX_FMT_YUV422P10
,
PIX_FMT_YUV444P10
,
PIX_FMT_GRAY16
,
PIX_FMT_GRAY8
,
PIX_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"FFmpeg video codec #1"
),
.
priv_class
=
&
class
,
};
#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