Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cae8df78
Commit
cae8df78
authored
Apr 21, 2014
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavr: define ResampleContext in resample.h
Required for arch optimized resampling.
parent
a88e1d1c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
resample.c
libavresample/resample.c
+0
-29
resample.h
libavresample/resample.h
+29
-0
No files found.
libavresample/resample.c
View file @
cae8df78
...
@@ -26,35 +26,6 @@
...
@@ -26,35 +26,6 @@
#include "resample.h"
#include "resample.h"
#include "audio_data.h"
#include "audio_data.h"
struct
ResampleContext
{
AVAudioResampleContext
*
avr
;
AudioData
*
buffer
;
uint8_t
*
filter_bank
;
int
filter_length
;
int
ideal_dst_incr
;
int
dst_incr
;
unsigned
int
index
;
int
frac
;
int
src_incr
;
int
compensation_distance
;
int
phase_shift
;
int
phase_mask
;
int
linear
;
enum
AVResampleFilterType
filter_type
;
int
kaiser_beta
;
void
(
*
set_filter
)(
void
*
filter
,
double
*
tab
,
int
phase
,
int
tap_count
);
void
(
*
resample_one
)(
struct
ResampleContext
*
c
,
void
*
dst0
,
int
dst_index
,
const
void
*
src0
,
unsigned
int
index
,
int
frac
);
void
(
*
resample_nearest
)(
void
*
dst0
,
int
dst_index
,
const
void
*
src0
,
unsigned
int
index
);
int
padding_size
;
int
initial_padding_filled
;
int
initial_padding_samples
;
int
final_padding_filled
;
int
final_padding_samples
;
};
/* double template */
/* double template */
#define CONFIG_RESAMPLE_DBL
#define CONFIG_RESAMPLE_DBL
...
...
libavresample/resample.h
View file @
cae8df78
...
@@ -25,6 +25,35 @@
...
@@ -25,6 +25,35 @@
#include "internal.h"
#include "internal.h"
#include "audio_data.h"
#include "audio_data.h"
struct
ResampleContext
{
AVAudioResampleContext
*
avr
;
AudioData
*
buffer
;
uint8_t
*
filter_bank
;
int
filter_length
;
int
ideal_dst_incr
;
int
dst_incr
;
unsigned
int
index
;
int
frac
;
int
src_incr
;
int
compensation_distance
;
int
phase_shift
;
int
phase_mask
;
int
linear
;
enum
AVResampleFilterType
filter_type
;
int
kaiser_beta
;
void
(
*
set_filter
)(
void
*
filter
,
double
*
tab
,
int
phase
,
int
tap_count
);
void
(
*
resample_one
)(
struct
ResampleContext
*
c
,
void
*
dst0
,
int
dst_index
,
const
void
*
src0
,
unsigned
int
index
,
int
frac
);
void
(
*
resample_nearest
)(
void
*
dst0
,
int
dst_index
,
const
void
*
src0
,
unsigned
int
index
);
int
padding_size
;
int
initial_padding_filled
;
int
initial_padding_samples
;
int
final_padding_filled
;
int
final_padding_samples
;
};
/**
/**
* Allocate and initialize a ResampleContext.
* Allocate and initialize a ResampleContext.
*
*
...
...
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