Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(214)

Side by Side Diff: source/patched-ffmpeg-mt/libavcodec/psymodel.c

Issue 3384002: ffmpeg source update for sep 09 (Closed) Base URL: svn://chrome-svn/chrome/trunk/deps/third_party/ffmpeg/
Patch Set: Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * audio encoder psychoacoustic model 2 * audio encoder psychoacoustic model
3 * Copyright (C) 2008 Konstantin Shishkov 3 * Copyright (C) 2008 Konstantin Shishkov
4 * 4 *
5 * This file is part of FFmpeg. 5 * This file is part of FFmpeg.
6 * 6 *
7 * FFmpeg is free software; you can redistribute it and/or 7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public 8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version. 10 * version 2.1 of the License, or (at your option) any later version.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } 46 }
47 47
48 FFPsyWindowInfo ff_psy_suggest_window(FFPsyContext *ctx, 48 FFPsyWindowInfo ff_psy_suggest_window(FFPsyContext *ctx,
49 const int16_t *audio, const int16_t *la, 49 const int16_t *audio, const int16_t *la,
50 int channel, int prev_type) 50 int channel, int prev_type)
51 { 51 {
52 return ctx->model->window(ctx, audio, la, channel, prev_type); 52 return ctx->model->window(ctx, audio, la, channel, prev_type);
53 } 53 }
54 54
55 void ff_psy_set_band_info(FFPsyContext *ctx, int channel, 55 void ff_psy_set_band_info(FFPsyContext *ctx, int channel,
56 const float *coeffs, FFPsyWindowInfo *wi) 56 const float *coeffs, const FFPsyWindowInfo *wi)
57 { 57 {
58 ctx->model->analyze(ctx, channel, coeffs, wi); 58 ctx->model->analyze(ctx, channel, coeffs, wi);
59 } 59 }
60 60
61 av_cold void ff_psy_end(FFPsyContext *ctx) 61 av_cold void ff_psy_end(FFPsyContext *ctx)
62 { 62 {
63 if (ctx->model->end) 63 if (ctx->model->end)
64 ctx->model->end(ctx); 64 ctx->model->end(ctx);
65 av_freep(&ctx->bands); 65 av_freep(&ctx->bands);
66 av_freep(&ctx->num_bands); 66 av_freep(&ctx->num_bands);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 { 119 {
120 int i; 120 int i;
121 ff_iir_filter_free_coeffs(ctx->fcoeffs); 121 ff_iir_filter_free_coeffs(ctx->fcoeffs);
122 if (ctx->fstate) 122 if (ctx->fstate)
123 for (i = 0; i < ctx->avctx->channels; i++) 123 for (i = 0; i < ctx->avctx->channels; i++)
124 ff_iir_filter_free_state(ctx->fstate[i]); 124 ff_iir_filter_free_state(ctx->fstate[i]);
125 av_freep(&ctx->fstate); 125 av_freep(&ctx->fstate);
126 av_free(ctx); 126 av_free(ctx);
127 } 127 }
128 128
OLDNEW
« no previous file with comments | « source/patched-ffmpeg-mt/libavcodec/psymodel.h ('k') | source/patched-ffmpeg-mt/libavcodec/ptx.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698