#include "avcodec.h"#include "bitstream.h"#include "dsputil.h"#include "lpc.h"Go to the source code of this file.
| #define ALAC_CHMODE_LEFT_RIGHT 0 | 
| #define ALAC_CHMODE_LEFT_SIDE 1 | 
| #define ALAC_CHMODE_RIGHT_SIDE 2 | 
| #define ALAC_ESCAPE_CODE 0x1FF | 
| #define ALAC_FRAME_FOOTER_SIZE 3 | 
| #define ALAC_FRAME_HEADER_SIZE 55 | 
| #define ALAC_MAX_LPC_ORDER 30 | 
| #define ALAC_MAX_LPC_PRECISION 9 | 
| #define ALAC_MAX_LPC_SHIFT 9 | 
| #define DEFAULT_FRAME_SIZE 4096 | 
ALAC audio encoder Copyright (c) 2008 Jaikrishnan Menon <realityman@gmx.net>.
This file is part of FFmpeg.
FFmpeg is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
FFmpeg is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with FFmpeg; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Definition at line 27 of file alacenc.c.
Referenced by alac_encode_frame(), and alac_encode_init().
| #define DEFAULT_MAX_PRED_ORDER 6 | 
| #define DEFAULT_MIN_PRED_ORDER 4 | 
| #define DEFAULT_SAMPLE_SIZE 16 | 
| static av_cold int alac_encode_close | ( | AVCodecContext * | avctx | ) |  [static] | 
        
| static int alac_encode_frame | ( | AVCodecContext * | avctx, | |
| uint8_t * | frame, | |||
| int | buf_size, | |||
| void * | data | |||
| ) |  [static] | 
        
| static av_cold int alac_encode_init | ( | AVCodecContext * | avctx | ) |  [static] | 
        
| static void alac_entropy_coder | ( | AlacEncodeContext * | s | ) |  [static] | 
        
| static void alac_linear_predictor | ( | AlacEncodeContext * | s, | |
| int | ch | |||
| ) |  [static] | 
        
| static void alac_stereo_decorrelation | ( | AlacEncodeContext * | s | ) |  [static] | 
        
| static void calc_predictor_params | ( | AlacEncodeContext * | s, | |
| int | ch | |||
| ) |  [static] | 
        
| static void encode_scalar | ( | AlacEncodeContext * | s, | |
| int | x, | |||
| int | k, | |||
| int | write_sample_size | |||
| ) |  [static] | 
        
| static int estimate_stereo_mode | ( | int32_t * | left_ch, | |
| int32_t * | right_ch, | |||
| int | n | |||
| ) |  [static] | 
        
Definition at line 141 of file alacenc.c.
Referenced by alac_stereo_decorrelation(), and channel_decorrelation().
| static void init_sample_buffers | ( | AlacEncodeContext * | s, | |
| int16_t * | input_samples | |||
| ) |  [static] | 
        
| static void write_compressed_frame | ( | AlacEncodeContext * | s | ) |  [static] | 
        
| static void write_frame_header | ( | AlacEncodeContext * | s, | |
| int | is_verbatim | |||
| ) |  [static] | 
        
Initial value:
 {
    "alac",
    CODEC_TYPE_AUDIO,
    CODEC_ID_ALAC,
    sizeof(AlacEncodeContext),
    alac_encode_init,
    alac_encode_frame,
    alac_encode_close,
    .capabilities = CODEC_CAP_SMALL_LAST_FRAME,
    .long_name = NULL_IF_CONFIG_SMALL("ALAC (Apple Lossless Audio Codec)"),
}
 1.5.8