From 60233b8fa77da9dceceeb46ed732707818a7c3c4 Mon Sep 17 00:00:00 2001 From: Ahmet Inan Date: Thu, 8 Sep 2011 14:18:50 +0200 Subject: [PATCH] cleaned up --- decode.c | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) diff --git a/decode.c b/decode.c index e9f8795..d841b7a 100644 --- a/decode.c +++ b/decode.c @@ -32,21 +32,13 @@ float limit(float min, float max, float x) return tmp > max ? max : tmp; } -typedef struct { - uint32_t ChunkID; - uint32_t ChunkSize; - uint32_t Format; - uint32_t Subchunk1ID; - uint32_t Subchunk1Size; - uint16_t AudioFormat; - uint16_t NumChannels; - uint32_t SampleRate; - uint32_t ByteRate; - uint16_t BlockAlign; - uint16_t BitsPerSample; - uint32_t Subchunk2ID; - uint32_t Subchunk2Size; -} wav_t; +char *string_time(char *fmt) +{ + static char s[64]; + time_t now = time(0); + strftime(s, sizeof(s), fmt, localtime(&now)); + return s; +} uint8_t R_YUV(uint8_t Y, uint8_t U, uint8_t V) { @@ -80,14 +72,6 @@ void process_line(uint8_t *pixel, uint8_t *y_pixel, uint8_t *uv_pixel, int y_wid } } -char *string_time(char *fmt) -{ - static char s[64]; - time_t now = time(0); - strftime(s, sizeof(s), fmt, localtime(&now)); - return s; -} - int main(int argc, char **argv) { pcm_t *pcm;