/*1* AAC encoder main-type prediction2* Copyright (C) 2015 Rostislav Pehlivanov3*4* This file is part of FFmpeg.5*6* FFmpeg is free software; you can redistribute it and/or7* modify it under the terms of the GNU Lesser General Public8* License as published by the Free Software Foundation; either9* version 2.1 of the License, or (at your option) any later version.10*11* FFmpeg is distributed in the hope that it will be useful,12* but WITHOUT ANY WARRANTY; without even the implied warranty of13* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU14* Lesser General Public License for more details.15*16* You should have received a copy of the GNU Lesser General Public17* License along with FFmpeg; if not, write to the Free Software18* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19*/2021/**22* @file23* AAC encoder main-type prediction24* @author Rostislav Pehlivanov ( atomnuker gmail com )25*/2627#ifndef AVCODEC_AACENC_PRED_H28#define AVCODEC_AACENC_PRED_H2930#include "aacenc.h"3132/* Every predictor group needs to get reset at least once in this many frames */33#define PRED_RESET_FRAME_MIN 2403435/* Any frame with less than this amount of frames since last reset is ok */36#define PRED_RESET_MIN 643738/* Raise to filter any low frequency artifacts due to prediction */39#define PRED_SFB_START 104041void ff_aac_apply_main_pred(AACEncContext *s, SingleChannelElement *sce);42void ff_aac_adjust_common_pred(AACEncContext *s, ChannelElement *cpe);43void ff_aac_search_for_pred(AACEncContext *s, SingleChannelElement *sce);44void ff_aac_encode_main_pred(AACEncContext *s, SingleChannelElement *sce);4546#endif /* AVCODEC_AACENC_PRED_H */474849