Using C to implement arithmetic coding on Linux (ii)--specific code

Source: Internet
Author: User
Tags arithmetic

Reprint Annotated Source: Http://blog.csdn.net/wang_zheng_kai

Let students use development tools, practice learning data compression coding

This article consists of two parts:

Using C to implement arithmetic coding on Linux (a)--concrete operation

Using C to implement arithmetic coding on Linux (ii)--specific code


/************************************arithmetic Coding Fixed mode********writed by Wang zhengkai***************** 2014.11.24***********************************************/#include <stdio.h> #include <math.h># Include<string.h>char c[20],s[100];float P[20],f[20],len;int cord[100];/*********************************** * **************encord**************** * ***********************************/void encord (int a,int h) {float Fr; float ps=1;float fs=0;float cp[100];int i,j;for (i=0;i

Using C to implement arithmetic coding on Linux (ii)--specific code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.