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
bc143ce1
Commit
bc143ce1
authored
Dec 05, 2016
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Drop deprecated chroma subsample function
Deprecated in 11/2012.
parent
63fe79a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
18 deletions
+0
-18
avcodec.h
libavcodec/avcodec.h
+0
-6
imgconvert.c
libavcodec/imgconvert.c
+0
-9
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
bc143ce1
...
...
@@ -4899,12 +4899,6 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width,
* @{
*/
/**
* @deprecated Use av_pix_fmt_get_chroma_sub_sample
*/
void
attribute_deprecated
avcodec_get_chroma_sub_sample
(
enum
AVPixelFormat
pix_fmt
,
int
*
h_shift
,
int
*
v_shift
);
/**
* Return a value representing the fourCC code associated to the
* pixel format pix_fmt, or 0 if no associated fourCC code can be
...
...
libavcodec/imgconvert.c
View file @
bc143ce1
...
...
@@ -33,15 +33,6 @@
#include "libavutil/internal.h"
#include "libavutil/imgutils.h"
#if FF_API_GETCHROMA
void
avcodec_get_chroma_sub_sample
(
enum
AVPixelFormat
pix_fmt
,
int
*
h_shift
,
int
*
v_shift
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
pix_fmt
);
*
h_shift
=
desc
->
log2_chroma_w
;
*
v_shift
=
desc
->
log2_chroma_h
;
}
#endif
static
int
is_gray
(
const
AVPixFmtDescriptor
*
desc
)
{
return
desc
->
nb_components
-
(
desc
->
flags
&
AV_PIX_FMT_FLAG_ALPHA
)
==
1
;
...
...
libavcodec/version.h
View file @
bc143ce1
...
...
@@ -47,9 +47,6 @@
* the public API and may change, break or disappear at any time.
*/
#ifndef FF_API_GETCHROMA
#define FF_API_GETCHROMA (LIBAVCODEC_VERSION_MAJOR < 58)
#endif
#ifndef FF_API_MISSING_SAMPLE
#define FF_API_MISSING_SAMPLE (LIBAVCODEC_VERSION_MAJOR < 58)
#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