mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
swr: add swr_get_class()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f9a2c5bc07
commit
22057e8ecb
@ -97,6 +97,11 @@ int swr_set_channel_mapping(struct SwrContext *s, const int *channel_map){
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const AVClass *swr_get_class(void)
|
||||||
|
{
|
||||||
|
return &av_class;
|
||||||
|
}
|
||||||
|
|
||||||
struct SwrContext *swr_alloc(void){
|
struct SwrContext *swr_alloc(void){
|
||||||
SwrContext *s= av_mallocz(sizeof(SwrContext));
|
SwrContext *s= av_mallocz(sizeof(SwrContext));
|
||||||
if(s){
|
if(s){
|
||||||
|
@ -54,6 +54,14 @@ enum SwrDitherType {
|
|||||||
|
|
||||||
typedef struct SwrContext SwrContext;
|
typedef struct SwrContext SwrContext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the AVClass for swrContext. It can be used in combination with
|
||||||
|
* AV_OPT_SEARCH_FAKE_OBJ for examining options.
|
||||||
|
*
|
||||||
|
* @see av_opt_find().
|
||||||
|
*/
|
||||||
|
const AVClass *swr_get_class(void);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Allocate SwrContext.
|
* Allocate SwrContext.
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user