aboutsummaryrefslogtreecommitdiff
path: root/libavcodec/aacenc.c
diff options
context:
space:
mode:
authorNathan Caldwell2011-05-06 01:19:52 -0600
committerAlex Converse2011-05-08 12:43:04 -0700
commitb58e29857230eb59cfec4642522258a965f2c440 (patch)
tree129db4fc8273c97e93cad39eba0af999f05e2ba8 /libavcodec/aacenc.c
parent5b29af624fe8be5379fd649019a04ff44bfde04f (diff)
psymodel: Remove wrapper functions.
Instead use the function pointers directly.
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r--libavcodec/aacenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 1b77411b22..92ff4b0e62 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -537,8 +537,8 @@ static int aac_encode_frame(AVCodecContext *avctx,
wi[ch].num_windows = 1;
wi[ch].grouping[0] = 1;
} else {
- wi[ch] = ff_psy_suggest_window(&s->psy, samples2, la, cur_channel,
- ics->window_sequence[0]);
+ wi[ch] = s->psy.model->window(&s->psy, samples2, la, cur_channel,
+ ics->window_sequence[0]);
}
ics->window_sequence[1] = ics->window_sequence[0];
ics->window_sequence[0] = wi[ch].window_type[0];
@@ -570,7 +570,7 @@ static int aac_encode_frame(AVCodecContext *avctx,
put_bits(&s->pb, 4, chan_el_counter[tag]++);
for (ch = 0; ch < chans; ch++) {
s->cur_channel = start_ch + ch;
- ff_psy_set_band_info(&s->psy, s->cur_channel, cpe->ch[ch].coeffs, &wi[ch]);
+ s->psy.model->analyze(&s->psy, s->cur_channel, cpe->ch[ch].coeffs, &wi[ch]);
s->coder->search_for_quantizers(avctx, s, &cpe->ch[ch], s->lambda);
}
cpe->common_window = 0;