perform_arithmetic_coding.m
来自「This document is intended to serve as an」· M 代码 · 共 25 行
M
25 行
function [y,nbr_bits] = perform_arithmetic_coding(x,dir,options)
% perform_arithmetic_coding - perform adaptive arithmetic coding
%
% [y,nbr_bits] = perform_arithmetic_coding(x, dir, options);
%
% options.coder_type tells the type of arithmetic coder used :
% coder_type=1: LetItWave Mex arithmetic coder.
% coder_type=2: Escape-code based Mex arithmetic coder.
% coder_type=3: Matlab slow arithmetic coder,
% Based on the code of (c) Karl Skretting.
% coder_type=4: Another slow arithmetic coder.
% coder_type=5: *Not a real coder*, just using shannon bound to estimate.
% coder_type=6: Matlab built-in fixed coder arithenco. You must provide the
% probability distribution in options.histo.
% coder_type=7: arithmetic coder using generalized laplacian
% paremterized density estimation.
% coder_type=8: Fast mex version of a fixed arithmetic coder (adapted
% from Numerical Recipes). You must provide the
% probability distribution in options.histo.
%
% Set options.known_size=n if you know at decode time the length of the
% signal.
%
% Copyright (c) 2006 Gabriel Peyr
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?