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
03039f4c
Commit
03039f4c
authored
May 04, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
miscellaneous typo fixes
parent
93a51984
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
31 additions
and
30 deletions
+31
-30
Changelog
Changelog
+1
-1
avplay.c
avplay.c
+2
-1
configure
configure
+1
-1
faq.texi
doc/faq.texi
+2
-2
aac.h
libavcodec/aac.h
+1
-1
twinvq.c
libavcodec/twinvq.c
+4
-4
wma.c
libavcodec/wma.c
+1
-1
wmaprodec.c
libavcodec/wmaprodec.c
+2
-2
wmavoice.c
libavcodec/wmavoice.c
+1
-1
avisynth.c
libavformat/avisynth.c
+13
-13
avresample-test.c
libavresample/avresample-test.c
+1
-1
audiogen.c
tests/audiogen.c
+2
-2
No files found.
Changelog
View file @
03039f4c
...
...
@@ -479,7 +479,7 @@ version 0.5:
- MXF demuxer
- VC-1/WMV3/WMV9 video decoder
- MacIntel support
- A
VI
Synth support
- A
vi
Synth support
- VMware video decoder
- VP5 video decoder
- VP6 video decoder
...
...
avplay.c
View file @
03039f4c
...
...
@@ -847,7 +847,8 @@ static void video_audio_display(VideoState *s)
}
av_rdft_calc
(
s
->
rdft
,
data
[
ch
]);
}
// least efficient way to do this, we should of course directly access it but its more than fast enough
/* Least efficient way to do this, we should of course
* directly access it but it is more than fast enough. */
for
(
y
=
0
;
y
<
s
->
height
;
y
++
)
{
double
w
=
1
/
sqrt
(
nb_freq
);
int
a
=
sqrt
(
w
*
sqrt
(
data
[
0
][
2
*
y
+
0
]
*
data
[
0
][
2
*
y
+
0
]
+
data
[
0
][
2
*
y
+
1
]
*
data
[
0
][
2
*
y
+
1
]));
...
...
configure
View file @
03039f4c
...
...
@@ -173,7 +173,7 @@ Individual component options:
--disable-filters disable all filters
External library support:
--enable-avisynth enable reading of A
VI
Synth script files [no]
--enable-avisynth enable reading of A
vi
Synth script files [no]
--enable-bzlib enable bzlib [autodetect]
--enable-frei0r enable frei0r video filtering
--enable-gnutls enable gnutls [no]
...
...
doc/faq.texi
View file @
03039f4c
...
...
@@ -202,8 +202,8 @@ Just create an "input.avs" text file with this single line ...
avconv -i input.avs
@end example
For ANY other help on Avi
s
ynth, please visit the
@uref
{
http://www.avisynth.org/, Avi
s
ynth homepage
}
.
For ANY other help on Avi
S
ynth, please visit the
@uref
{
http://www.avisynth.org/, Avi
S
ynth homepage
}
.
@section How can I join video files?
...
...
libavcodec/aac.h
View file @
03039f4c
...
...
@@ -157,7 +157,7 @@ typedef struct LongTermPrediction {
typedef
struct
IndividualChannelStream
{
uint8_t
max_sfb
;
///< number of scalefactor bands per group
enum
WindowSequence
window_sequence
[
2
];
uint8_t
use_kb_window
[
2
];
///< If set, use Kaiser-Bessel window, otherwise use a sin
us
window.
uint8_t
use_kb_window
[
2
];
///< If set, use Kaiser-Bessel window, otherwise use a sin
e
window.
int
num_window_groups
;
uint8_t
group_len
[
8
];
LongTermPrediction
ltp
;
...
...
libavcodec/twinvq.c
View file @
03039f4c
...
...
@@ -230,7 +230,7 @@ static void memset_float(float *buf, float val, int size)
* Evaluate a single LPC amplitude spectrum envelope coefficient from the line
* spectrum pairs.
*
* @param lsp a vector of the cosin
us
of the LSP values
* @param lsp a vector of the cosin
e
of the LSP values
* @param cos_val cos(PI*i/N) where i is the index of the LPC amplitude
* @param order the order of the LSP (and the size of the *lsp buffer). Must
* be a multiple of four.
...
...
@@ -302,9 +302,9 @@ static inline float get_cos(int idx, int part, const float *cos_tab, int size)
* unexplained condition.
*
* @param step the size of a block "siiiibiiii"
* @param in the cosin
us
of the LSP data
* @param part is 0 for 0...PI (positive cos
sinus
values) and 1 for PI...2PI
* (negative cos
sinus
values)
* @param in the cosin
e
of the LSP data
* @param part is 0 for 0...PI (positive cos
ine
values) and 1 for PI...2PI
* (negative cos
ine
values)
* @param size the size of the whole output
*/
static
inline
void
eval_lpcenv_or_interp
(
TwinContext
*
tctx
,
...
...
libavcodec/wma.c
View file @
03039f4c
...
...
@@ -304,7 +304,7 @@ av_cold int ff_wma_init(AVCodecContext *avctx, int flags2)
}
#endif
/* init MDCT windows : simple sin
us
window */
/* init MDCT windows : simple sin
e
window */
for
(
i
=
0
;
i
<
s
->
nb_block_sizes
;
i
++
)
{
ff_init_ff_sine_windows
(
s
->
frame_len_bits
-
i
);
s
->
windows
[
i
]
=
ff_sine_windows
[
s
->
frame_len_bits
-
i
];
...
...
libavcodec/wmaprodec.c
View file @
03039f4c
...
...
@@ -125,7 +125,7 @@ static VLC vec4_vlc; ///< 4 coefficients per symbol
static
VLC
vec2_vlc
;
///< 2 coefficients per symbol
static
VLC
vec1_vlc
;
///< 1 coefficient per symbol
static
VLC
coef_vlc
[
2
];
///< coefficient run length vlc codes
static
float
sin64
[
33
];
///< sin
us
table for decorrelation
static
float
sin64
[
33
];
///< sin
e
table for decorrelation
/**
* @brief frame specific decoder context for a single channel
...
...
@@ -449,7 +449,7 @@ static av_cold int decode_init(AVCodecContext *avctx)
1
.
0
/
(
1
<<
(
WMAPRO_BLOCK_MIN_BITS
+
i
-
1
))
/
(
1
<<
(
s
->
bits_per_sample
-
1
)));
/** init MDCT windows: simple sin
us
window */
/** init MDCT windows: simple sin
e
window */
for
(
i
=
0
;
i
<
WMAPRO_BLOCK_SIZES
;
i
++
)
{
const
int
win_idx
=
WMAPRO_BLOCK_MAX_BITS
-
i
;
ff_init_ff_sine_windows
(
win_idx
);
...
...
libavcodec/wmavoice.c
View file @
03039f4c
...
...
@@ -620,7 +620,7 @@ static void calc_input_response(WMAVoiceContext *s, float *lpcs,
}
/* calculate the Hilbert transform of the gains, which we do (since this
* is a sin
us
input) by doing a phase shift (in theory, H(sin())=cos()).
* is a sin
e
input) by doing a phase shift (in theory, H(sin())=cos()).
* Hilbert_Transform(RDFT(x)) = Laplace_Transform(x), which calculates the
* "moment" of the LPCs in this filter. */
s
->
dct
.
dct_calc
(
&
s
->
dct
,
lpcs
);
...
...
libavformat/avisynth.c
View file @
03039f4c
/*
* A
VI
Synth support
* A
vi
Synth support
* Copyright (c) 2006 DivX, Inc.
*
* This file is part of Libav.
...
...
@@ -32,29 +32,29 @@ typedef struct {
DWORD
read
;
LONG
chunck_size
;
LONG
chunck_samples
;
}
A
VI
SynthStream
;
}
A
vi
SynthStream
;
typedef
struct
{
PAVIFILE
file
;
AVISynthStream
*
streams
;
int
nb_streams
;
int
next_stream
;
}
A
VI
SynthContext
;
}
A
vi
SynthContext
;
static
int
avisynth_read_header
(
AVFormatContext
*
s
)
{
A
VI
SynthContext
*
avs
=
s
->
priv_data
;
A
vi
SynthContext
*
avs
=
s
->
priv_data
;
HRESULT
res
;
AVIFILEINFO
info
;
DWORD
id
;
AVStream
*
st
;
A
VI
SynthStream
*
stream
;
A
vi
SynthStream
*
stream
;
wchar_t
filename_wchar
[
1024
]
=
{
0
};
char
filename_char
[
1024
]
=
{
0
};
AVIFileInit
();
/*
avisynth can't accept UTF-8 filename
*/
/*
AviSynth cannot accept UTF-8 file names.
*/
MultiByteToWideChar
(
CP_UTF8
,
0
,
s
->
filename
,
-
1
,
filename_wchar
,
1024
);
WideCharToMultiByte
(
CP_THREAD_ACP
,
0
,
filename_wchar
,
-
1
,
filename_char
,
1024
,
NULL
,
NULL
);
res
=
AVIFileOpen
(
&
avs
->
file
,
filename_char
,
OF_READ
|
OF_SHARE_DENY_WRITE
,
NULL
);
...
...
@@ -73,7 +73,7 @@ static int avisynth_read_header(AVFormatContext *s)
return
-
1
;
}
avs
->
streams
=
av_mallocz
(
info
.
dwStreams
*
sizeof
(
A
VI
SynthStream
));
avs
->
streams
=
av_mallocz
(
info
.
dwStreams
*
sizeof
(
A
vi
SynthStream
));
for
(
id
=
0
;
id
<
info
.
dwStreams
;
id
++
)
{
...
...
@@ -154,9 +154,9 @@ static int avisynth_read_header(AVFormatContext *s)
static
int
avisynth_read_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
A
VI
SynthContext
*
avs
=
s
->
priv_data
;
A
vi
SynthContext
*
avs
=
s
->
priv_data
;
HRESULT
res
;
A
VI
SynthStream
*
stream
;
A
vi
SynthStream
*
stream
;
int
stream_id
=
avs
->
next_stream
;
LONG
read_size
;
...
...
@@ -188,7 +188,7 @@ static int avisynth_read_packet(AVFormatContext *s, AVPacket *pkt)
static
int
avisynth_read_close
(
AVFormatContext
*
s
)
{
A
VI
SynthContext
*
avs
=
s
->
priv_data
;
A
vi
SynthContext
*
avs
=
s
->
priv_data
;
int
i
;
for
(
i
=
0
;
i
<
avs
->
nb_streams
;
i
++
)
...
...
@@ -204,7 +204,7 @@ static int avisynth_read_close(AVFormatContext *s)
static
int
avisynth_read_seek
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
pts
,
int
flags
)
{
A
VI
SynthContext
*
avs
=
s
->
priv_data
;
A
vi
SynthContext
*
avs
=
s
->
priv_data
;
int
stream_id
;
for
(
stream_id
=
0
;
stream_id
<
avs
->
nb_streams
;
stream_id
++
)
...
...
@@ -217,8 +217,8 @@ static int avisynth_read_seek(AVFormatContext *s, int stream_index, int64_t pts,
AVInputFormat
ff_avisynth_demuxer
=
{
.
name
=
"avisynth"
,
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"A
VI
Synth"
),
.
priv_data_size
=
sizeof
(
A
VI
SynthContext
),
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"A
vi
Synth"
),
.
priv_data_size
=
sizeof
(
A
vi
SynthContext
),
.
read_header
=
avisynth_read_header
,
.
read_packet
=
avisynth_read_packet
,
.
read_close
=
avisynth_read_close
,
...
...
libavresample/avresample-test.c
View file @
03039f4c
...
...
@@ -91,7 +91,7 @@ static void audiogen(AVLFG *rnd, void **data, enum AVSampleFormat sample_fmt,
k
=
0
;
/* 1 second of single freq sin
us
at 1000 Hz */
/* 1 second of single freq sin
e
at 1000 Hz */
a
=
0
;
for
(
i
=
0
;
i
<
1
*
sample_rate
&&
k
<
nb_samples
;
i
++
,
k
++
)
{
v
=
sin
(
a
)
*
0
.
30
;
...
...
tests/audiogen.c
View file @
03039f4c
...
...
@@ -48,7 +48,7 @@ static unsigned int myrnd(unsigned int *seed_ptr, int n)
#define COS_TABLE_BITS 7
/* integer cosin
us
*/
/* integer cosin
e
*/
static
const
unsigned
short
cos_table
[(
1
<<
COS_TABLE_BITS
)
+
2
]
=
{
0x8000
,
0x7ffe
,
0x7ff6
,
0x7fea
,
0x7fd9
,
0x7fc2
,
0x7fa7
,
0x7f87
,
0x7f62
,
0x7f38
,
0x7f0a
,
0x7ed6
,
0x7e9d
,
0x7e60
,
0x7e1e
,
0x7dd6
,
...
...
@@ -180,7 +180,7 @@ int main(int argc, char **argv)
if
((
ext
=
strrchr
(
argv
[
1
],
'.'
))
!=
NULL
&&
!
strcmp
(
ext
,
".wav"
))
put_wav_header
(
sample_rate
,
nb_channels
,
6
*
sample_rate
);
/* 1 second of single freq sin
us
at 1000 Hz */
/* 1 second of single freq sin
e
at 1000 Hz */
a
=
0
;
for
(
i
=
0
;
i
<
1
*
sample_rate
;
i
++
)
{
v
=
(
int_cos
(
a
)
*
10000
)
>>
FRAC_BITS
;
...
...
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