[FFmpeg-devel] [PATCH][GSoC] Implement floating point decoding in ALS

Carl Eugen Hoyos cehoyos at ag.or.at
Thu Apr 21 15:08:57 CEST 2016


Umair Khan <omerjerk <at> gmail.com> writes:

> Currently, it decodes the floating point data perfectly, 
> and prints the output to the console.

> +typedef union {
> +  float f;
> +  struct {
> +    unsigned int mantissa : 23;
> +    unsigned int exponent : 8;
> +    unsigned int sign : 1;
> +  } parts;
> +} CFloat;

Will this work on all systems where FFmpeg can currently be 
compiled? Or do you have to use the softfloat api from 
libavutil or reuse lagarith code?

> +int              dic_code_bit;
> +int              current_dic_index_max;
> +unsigned int     bump_code;
> +unsigned int     flush_code;
> +int              next_code;
> +int              freeze_flag;

These look like global variables that you cannot use in 
library code.

Carl Eugen



More information about the ffmpeg-devel mailing list