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
8b7412fe
Commit
8b7412fe
authored
Nov 24, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tiffenc: deprecate using compression_level
parent
f7f18352
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
tiffenc.c
libavcodec/tiffenc.c
+6
-0
version.h
libavcodec/version.h
+4
-0
No files found.
libavcodec/tiffenc.c
View file @
8b7412fe
...
@@ -231,6 +231,11 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
...
@@ -231,6 +231,11 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
p
->
key_frame
=
1
;
p
->
key_frame
=
1
;
avctx
->
coded_frame
=
&
s
->
picture
;
avctx
->
coded_frame
=
&
s
->
picture
;
#if FF_API_TIFFENC_COMPLEVEL
if
(
avctx
->
compression_level
!=
FF_COMPRESSION_DEFAULT
)
av_log
(
avctx
,
AV_LOG_WARNING
,
"Using compression_level to set compression "
"algorithm is deprecated. Please use the compression_algo private "
"option instead.
\n
"
);
if
(
avctx
->
compression_level
==
0
)
{
if
(
avctx
->
compression_level
==
0
)
{
s
->
compr
=
TIFF_RAW
;
s
->
compr
=
TIFF_RAW
;
}
else
if
(
avctx
->
compression_level
==
2
)
{
}
else
if
(
avctx
->
compression_level
==
2
)
{
...
@@ -240,6 +245,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
...
@@ -240,6 +245,7 @@ static int encode_frame(AVCodecContext * avctx, unsigned char *buf,
s
->
compr
=
TIFF_DEFLATE
;
s
->
compr
=
TIFF_DEFLATE
;
#endif
#endif
}
}
#endif
s
->
width
=
avctx
->
width
;
s
->
width
=
avctx
->
width
;
s
->
height
=
avctx
->
height
;
s
->
height
=
avctx
->
height
;
...
...
libavcodec/version.h
View file @
8b7412fe
...
@@ -107,5 +107,9 @@
...
@@ -107,5 +107,9 @@
#ifndef FF_API_INTERNAL_CONTEXT
#ifndef FF_API_INTERNAL_CONTEXT
#define FF_API_INTERNAL_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 54)
#define FF_API_INTERNAL_CONTEXT (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#endif
#ifndef FF_API_TIFFENC_COMPLEVEL
#define FF_API_TIFFENC_COMPLEVEL (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#endif
/* AVCODEC_VERSION_H */
#endif
/* AVCODEC_VERSION_H */
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