mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-09 18:50:56 +08:00
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. Originally committed as revision 23820 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -24,16 +24,16 @@
|
||||
#include <inttypes.h>
|
||||
#include "tableprint.h"
|
||||
|
||||
WRITE_1D_FUNC(int8, int8_t, "%3"PRIi8, 15)
|
||||
WRITE_1D_FUNC(uint8, uint8_t, "0x%02"PRIx8, 15)
|
||||
WRITE_1D_FUNC(uint16, uint16_t, "0x%08"PRIx16, 7)
|
||||
WRITE_1D_FUNC(uint32, uint32_t, "0x%08"PRIx32, 7)
|
||||
WRITE_1D_FUNC(float, float, "%.18e", 3)
|
||||
WRITE_1D_FUNC(int8_t, "%3"PRIi8, 15)
|
||||
WRITE_1D_FUNC(uint8_t, "0x%02"PRIx8, 15)
|
||||
WRITE_1D_FUNC(uint16_t, "0x%08"PRIx16, 7)
|
||||
WRITE_1D_FUNC(uint32_t, "0x%08"PRIx32, 7)
|
||||
WRITE_1D_FUNC(float, "%.18e", 3)
|
||||
|
||||
WRITE_2D_FUNC(int8, int8_t)
|
||||
WRITE_2D_FUNC(uint8, uint8_t)
|
||||
WRITE_2D_FUNC(uint32, uint32_t)
|
||||
WRITE_2D_FUNC(float, float)
|
||||
WRITE_2D_FUNC(int8_t)
|
||||
WRITE_2D_FUNC(uint8_t)
|
||||
WRITE_2D_FUNC(uint32_t)
|
||||
WRITE_2D_FUNC(float)
|
||||
|
||||
void write_fileheader(void) {
|
||||
printf("/* This file was generated by libavcodec/tableprint */\n");
|
||||
|
Reference in New Issue
Block a user