comparison pcm_tablegen.c @ 11979:59f399926c12 libavcodec

tableprint: use the type name as-is for the functions' names. This drops one parameter from the functions' macros, and require structures to be typedeffed, but ensures that it is possible to map 1-to-1 the type to the function name.
author flameeyes
date Sun, 27 Jun 2010 12:20:39 +0000
parents 7d324b40c3d6
children 263b4ef7ad87
comparison
equal deleted inserted replaced
11978:db5c3a602ddd 11979:59f399926c12
31 pcm_ulaw_tableinit(); 31 pcm_ulaw_tableinit();
32 32
33 write_fileheader(); 33 write_fileheader();
34 34
35 printf("static const uint8_t linear_to_alaw[1 << 14] = {\n"); 35 printf("static const uint8_t linear_to_alaw[1 << 14] = {\n");
36 write_uint8_array(linear_to_alaw, 1 << 14); 36 write_uint8_t_array(linear_to_alaw, 1 << 14);
37 printf("};\n"); 37 printf("};\n");
38 38
39 printf("static const uint8_t linear_to_ulaw[1 << 14] = {\n"); 39 printf("static const uint8_t linear_to_ulaw[1 << 14] = {\n");
40 write_uint8_array(linear_to_ulaw, 1 << 14); 40 write_uint8_t_array(linear_to_ulaw, 1 << 14);
41 printf("};\n"); 41 printf("};\n");
42 42
43 return 0; 43 return 0;
44 } 44 }
45 45