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
f30260d3
Commit
f30260d3
authored
Jul 02, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imgconvert: deprecate avcodec_find_best_pix_fmt()
parent
ac29054f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
avcodec.h
libavcodec/avcodec.h
+5
-0
imgconvert.c
libavcodec/imgconvert.c
+2
-0
version.h
libavcodec/version.h
+3
-0
No files found.
libavcodec/avcodec.h
View file @
f30260d3
...
...
@@ -4202,7 +4202,10 @@ unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat pix_fmt);
int
avcodec_get_pix_fmt_loss
(
enum
PixelFormat
dst_pix_fmt
,
enum
PixelFormat
src_pix_fmt
,
int
has_alpha
);
#if FF_API_FIND_BEST_PIX_FMT
/**
* @deprecated use avcodec_find_best_pix_fmt2() instead.
*
* Find the best pixel format to convert to given a certain source pixel
* format. When converting from one pixel format to another, information loss
* may occur. For example, when converting from RGB24 to GRAY, the color
...
...
@@ -4224,8 +4227,10 @@ int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_
* @param[out] loss_ptr Combination of flags informing you what kind of losses will occur.
* @return The best pixel format to convert to or -1 if none was found.
*/
attribute_deprecated
enum
PixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
PixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
);
#endif
/* FF_API_FIND_BEST_PIX_FMT */
/**
* Find the best pixel format to convert to given a certain source pixel
...
...
libavcodec/imgconvert.c
View file @
f30260d3
...
...
@@ -622,6 +622,7 @@ static enum PixelFormat avcodec_find_best_pix_fmt1(enum PixelFormat *pix_fmt_lis
return
dst_pix_fmt
;
}
#if FF_API_FIND_BEST_PIX_FMT
enum
PixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
PixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
)
{
...
...
@@ -637,6 +638,7 @@ enum PixelFormat avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, enum PixelForma
return
avcodec_find_best_pix_fmt2
(
list
,
src_pix_fmt
,
has_alpha
,
loss_ptr
);
}
#endif
/* FF_API_FIND_BEST_PIX_FMT */
enum
PixelFormat
avcodec_find_best_pix_fmt2
(
enum
PixelFormat
*
pix_fmt_list
,
enum
PixelFormat
src_pix_fmt
,
...
...
libavcodec/version.h
View file @
f30260d3
...
...
@@ -73,5 +73,8 @@
#ifndef FF_API_DSP_MASK
#define FF_API_DSP_MASK (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_FIND_BEST_PIX_FMT
#define FF_API_FIND_BEST_PIX_FMT (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#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