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
8b9b6041
Commit
8b9b6041
authored
Jan 22, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: remove disabled FF_API_GET_ALPHA_INFO cruft.
parent
99ace37e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
65 deletions
+0
-65
avcodec.h
libavcodec/avcodec.h
+0
-13
imgconvert.c
libavcodec/imgconvert.c
+0
-49
version.h
libavcodec/version.h
+0
-3
No files found.
libavcodec/avcodec.h
View file @
8b9b6041
...
...
@@ -3370,19 +3370,6 @@ int avcodec_get_pix_fmt_loss(enum PixelFormat dst_pix_fmt, enum PixelFormat src_
enum
PixelFormat
avcodec_find_best_pix_fmt
(
int64_t
pix_fmt_mask
,
enum
PixelFormat
src_pix_fmt
,
int
has_alpha
,
int
*
loss_ptr
);
#if FF_API_GET_ALPHA_INFO
#define FF_ALPHA_TRANSP 0x0001
/* image has some totally transparent pixels */
#define FF_ALPHA_SEMI_TRANSP 0x0002
/* image has some transparent pixels */
/**
* Tell if an image really has transparent alpha values.
* @return ored mask of FF_ALPHA_xxx constants
*/
attribute_deprecated
int
img_get_alpha_info
(
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
);
#endif
/* deinterlace a picture */
/* deinterlace - if not supported return -1 */
int
avpicture_deinterlace
(
AVPicture
*
dst
,
const
AVPicture
*
src
,
...
...
libavcodec/imgconvert.c
View file @
8b9b6041
...
...
@@ -855,55 +855,6 @@ int av_picture_pad(AVPicture *dst, const AVPicture *src, int height, int width,
return
0
;
}
#if FF_API_GET_ALPHA_INFO
/* NOTE: we scan all the pixels to have an exact information */
static
int
get_alpha_info_pal8
(
const
AVPicture
*
src
,
int
width
,
int
height
)
{
const
unsigned
char
*
p
;
int
src_wrap
,
ret
,
x
,
y
;
unsigned
int
a
;
uint32_t
*
palette
=
(
uint32_t
*
)
src
->
data
[
1
];
p
=
src
->
data
[
0
];
src_wrap
=
src
->
linesize
[
0
]
-
width
;
ret
=
0
;
for
(
y
=
0
;
y
<
height
;
y
++
)
{
for
(
x
=
0
;
x
<
width
;
x
++
)
{
a
=
palette
[
p
[
0
]]
>>
24
;
if
(
a
==
0x00
)
{
ret
|=
FF_ALPHA_TRANSP
;
}
else
if
(
a
!=
0xff
)
{
ret
|=
FF_ALPHA_SEMI_TRANSP
;
}
p
++
;
}
p
+=
src_wrap
;
}
return
ret
;
}
int
img_get_alpha_info
(
const
AVPicture
*
src
,
enum
PixelFormat
pix_fmt
,
int
width
,
int
height
)
{
const
PixFmtInfo
*
pf
=
&
pix_fmt_info
[
pix_fmt
];
int
ret
;
/* no alpha can be represented in format */
if
(
!
pf
->
is_alpha
)
return
0
;
switch
(
pix_fmt
)
{
case
PIX_FMT_PAL8
:
ret
=
get_alpha_info_pal8
(
src
,
width
,
height
);
break
;
default:
/* we do not know, so everything is indicated */
ret
=
FF_ALPHA_TRANSP
|
FF_ALPHA_SEMI_TRANSP
;
break
;
}
return
ret
;
}
#endif
#if !(HAVE_MMX && HAVE_YASM)
/* filter parameters: [-1 4 2 4 -1] // 8 */
static
void
deinterlace_line_c
(
uint8_t
*
dst
,
...
...
libavcodec/version.h
View file @
8b9b6041
...
...
@@ -41,9 +41,6 @@
#ifndef FF_API_REQUEST_CHANNELS
#define FF_API_REQUEST_CHANNELS (LIBAVCODEC_VERSION_MAJOR < 55)
#endif
#ifndef FF_API_GET_ALPHA_INFO
#define FF_API_GET_ALPHA_INFO (LIBAVCODEC_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_PARSE_FRAME
#define FF_API_PARSE_FRAME (LIBAVCODEC_VERSION_MAJOR < 54)
#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