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
3536a3ef
Commit
3536a3ef
authored
Oct 25, 2017
by
Mark Thompson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: Deprecate av_hwaccel_next() and av_register_hwaccel()
parent
67e81d79
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
13 deletions
+26
-13
APIchanges
doc/APIchanges
+4
-0
avcodec.h
libavcodec/avcodec.h
+13
-1
utils.c
libavcodec/utils.c
+5
-11
version.h
libavcodec/version.h
+4
-1
No files found.
doc/APIchanges
View file @
3536a3ef
...
@@ -15,6 +15,10 @@ libavutil: 2017-10-21
...
@@ -15,6 +15,10 @@ libavutil: 2017-10-21
API changes, most recent first:
API changes, most recent first:
2017-11-xx - xxxxxxx - lavc 58.5.100 - avcodec.h
Deprecate user visibility of the AVHWAccel structure and the functions
av_register_hwaccel() and av_hwaccel_next().
2017-11-xx - xxxxxxx - lavc 58.4.100 - avcodec.h
2017-11-xx - xxxxxxx - lavc 58.4.100 - avcodec.h
Add AVCodecHWConfig and avcodec_get_hw_config().
Add AVCodecHWConfig and avcodec_get_hw_config().
...
...
libavcodec/avcodec.h
View file @
3536a3ef
...
@@ -3489,6 +3489,10 @@ const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *codec, int index);
...
@@ -3489,6 +3489,10 @@ const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *codec, int index);
/**
/**
* @defgroup lavc_hwaccel AVHWAccel
* @defgroup lavc_hwaccel AVHWAccel
*
* @note Nothing in this structure should be accessed by the user. At some
* point in future it will not be externally visible at all.
*
* @{
* @{
*/
*/
typedef
struct
AVHWAccel
{
typedef
struct
AVHWAccel
{
...
@@ -3533,7 +3537,6 @@ typedef struct AVHWAccel {
...
@@ -3533,7 +3537,6 @@ typedef struct AVHWAccel {
* New public fields should be added right above.
* New public fields should be added right above.
*****************************************************************
*****************************************************************
*/
*/
struct
AVHWAccel
*
next
;
/**
/**
* Allocate a custom buffer
* Allocate a custom buffer
...
@@ -5874,17 +5877,26 @@ void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size);
...
@@ -5874,17 +5877,26 @@ void av_fast_padded_mallocz(void *ptr, unsigned int *size, size_t min_size);
*/
*/
unsigned
int
av_xiphlacing
(
unsigned
char
*
s
,
unsigned
int
v
);
unsigned
int
av_xiphlacing
(
unsigned
char
*
s
,
unsigned
int
v
);
#if FF_API_USER_VISIBLE_AVHWACCEL
/**
/**
* Register the hardware accelerator hwaccel.
* Register the hardware accelerator hwaccel.
*
* @deprecated This function doesn't do anything.
*/
*/
attribute_deprecated
void
av_register_hwaccel
(
AVHWAccel
*
hwaccel
);
void
av_register_hwaccel
(
AVHWAccel
*
hwaccel
);
/**
/**
* If hwaccel is NULL, returns the first registered hardware accelerator,
* If hwaccel is NULL, returns the first registered hardware accelerator,
* if hwaccel is non-NULL, returns the next registered hardware accelerator
* if hwaccel is non-NULL, returns the next registered hardware accelerator
* after hwaccel, or NULL if hwaccel is the last one.
* after hwaccel, or NULL if hwaccel is the last one.
*
* @deprecated AVHWaccel structures contain no user-serviceable parts, so
* this function should not be used.
*/
*/
attribute_deprecated
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
);
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
);
#endif
/**
/**
...
...
libavcodec/utils.c
View file @
3536a3ef
...
@@ -1898,22 +1898,16 @@ const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *codec, int index)
...
@@ -1898,22 +1898,16 @@ const AVCodecHWConfig *avcodec_get_hw_config(const AVCodec *codec, int index)
return
&
codec
->
hw_configs
[
index
]
->
public
;
return
&
codec
->
hw_configs
[
index
]
->
public
;
}
}
static
AVHWAccel
*
first_hwaccel
=
NULL
;
#if FF_API_USER_VISIBLE_AVHWACCEL
static
AVHWAccel
**
last_hwaccel
=
&
first_hwaccel
;
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
)
void
av_register_hwaccel
(
AVHWAccel
*
hwaccel
)
{
{
AVHWAccel
**
p
=
last_hwaccel
;
return
NULL
;
hwaccel
->
next
=
NULL
;
while
(
*
p
||
avpriv_atomic_ptr_cas
((
void
*
volatile
*
)
p
,
NULL
,
hwaccel
))
p
=
&
(
*
p
)
->
next
;
last_hwaccel
=
&
hwaccel
->
next
;
}
}
AVHWAccel
*
av_hwaccel_next
(
const
AVHWAccel
*
hwaccel
)
void
av_register_hwaccel
(
AVHWAccel
*
hwaccel
)
{
{
return
hwaccel
?
hwaccel
->
next
:
first_hwaccel
;
}
}
#endif
int
av_lockmgr_register
(
int
(
*
cb
)(
void
**
mutex
,
enum
AVLockOp
op
))
int
av_lockmgr_register
(
int
(
*
cb
)(
void
**
mutex
,
enum
AVLockOp
op
))
{
{
...
...
libavcodec/version.h
View file @
3536a3ef
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR
4
#define LIBAVCODEC_VERSION_MINOR
5
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_MICRO 100
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...
@@ -123,6 +123,9 @@
...
@@ -123,6 +123,9 @@
#ifndef FF_API_CODEC_GET_SET
#ifndef FF_API_CODEC_GET_SET
#define FF_API_CODEC_GET_SET (LIBAVCODEC_VERSION_MAJOR < 59)
#define FF_API_CODEC_GET_SET (LIBAVCODEC_VERSION_MAJOR < 59)
#endif
#endif
#ifndef FF_API_USER_VISIBLE_AVHWACCEL
#define FF_API_USER_VISIBLE_AVHWACCEL (LIBAVCODEC_VERSION_MAJOR < 59)
#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