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
955ab9a4
Commit
955ab9a4
authored
Aug 20, 2006
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
attribute_deprecated
Originally committed as revision 6033 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ed567d9c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
11 deletions
+19
-11
avformat.h
libavformat/avformat.h
+11
-11
common.h
libavutil/common.h
+8
-0
No files found.
libavformat/avformat.h
View file @
955ab9a4
...
...
@@ -79,7 +79,7 @@ static inline void av_free_packet(AVPacket *pkt)
is assumed to be such as 0 <= num < den */
typedef
struct
AVFrac
{
int64_t
val
,
num
,
den
;
}
AVFrac
;
}
AVFrac
attribute_deprecated
;
/*************************************************/
/* input/output formats */
...
...
@@ -351,8 +351,8 @@ extern AVInputFormat *first_iformat;
extern
AVOutputFormat
*
first_oformat
;
/* still image support */
struct
AVInputImageContext
;
typedef
struct
AVInputImageContext
AVInputImageContext
;
struct
AVInputImageContext
attribute_deprecated
;
typedef
struct
AVInputImageContext
AVInputImageContext
attribute_deprecated
;
typedef
struct
AVImageInfo
{
enum
PixelFormat
pix_fmt
;
/* requested pixel format */
...
...
@@ -360,7 +360,7 @@ typedef struct AVImageInfo {
int
height
;
/* requested height */
int
interleaved
;
/* image is interleaved (e.g. interleaved GIF) */
AVPicture
pict
;
/* returned allocated image */
}
AVImageInfo
;
}
AVImageInfo
attribute_deprecated
;
/* AVImageFormat.flags field constants */
#define AVIMAGE_INTERLEAVED 0x0001
/* image format support interleaved output */
...
...
@@ -381,18 +381,18 @@ typedef struct AVImageFormat {
int
(
*
img_write
)(
ByteIOContext
*
,
AVImageInfo
*
);
int
flags
;
struct
AVImageFormat
*
next
;
}
AVImageFormat
;
}
AVImageFormat
attribute_deprecated
;
void
av_register_image_format
(
AVImageFormat
*
img_fmt
);
AVImageFormat
*
av_probe_image_format
(
AVProbeData
*
pd
);
AVImageFormat
*
guess_image_format
(
const
char
*
filename
);
void
av_register_image_format
(
AVImageFormat
*
img_fmt
)
attribute_deprecated
;
AVImageFormat
*
av_probe_image_format
(
AVProbeData
*
pd
)
attribute_deprecated
;
AVImageFormat
*
guess_image_format
(
const
char
*
filename
)
attribute_deprecated
;
enum
CodecID
av_guess_image2_codec
(
const
char
*
filename
);
int
av_read_image
(
ByteIOContext
*
pb
,
const
char
*
filename
,
AVImageFormat
*
fmt
,
int
(
*
alloc_cb
)(
void
*
,
AVImageInfo
*
info
),
void
*
opaque
);
int
av_write_image
(
ByteIOContext
*
pb
,
AVImageFormat
*
fmt
,
AVImageInfo
*
img
);
int
(
*
alloc_cb
)(
void
*
,
AVImageInfo
*
info
),
void
*
opaque
)
attribute_deprecated
;
int
av_write_image
(
ByteIOContext
*
pb
,
AVImageFormat
*
fmt
,
AVImageInfo
*
img
)
attribute_deprecated
;
extern
AVImageFormat
*
first_image_format
;
extern
AVImageFormat
*
first_image_format
attribute_deprecated
;
/* XXX: use automatic init with either ELF sections or C file parser */
/* modules */
...
...
libavutil/common.h
View file @
955ab9a4
...
...
@@ -56,6 +56,14 @@
#endif
#endif
#ifndef attribute_deprecated
#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
# define attribute_deprecated __attribute__((deprecated))
#else
# define attribute_deprecated
#endif
#endif
#ifndef EMULATE_INTTYPES
# include <inttypes.h>
#else
...
...
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