Mercurial > libavcodec.hg
comparison dvdsub.c @ 3075:961af1358c7f libavcodec
add static keyword to some functions
patch by Dieter <freebsd at sopwith solgatos com>
author | mru |
---|---|
date | Mon, 30 Jan 2006 23:33:19 +0000 |
parents | 0b546eab515d |
children | c8c591fe26f8 |
comparison
equal
deleted
inserted
replaced
3074:d89dcf01cae2 | 3075:961af1358c7f |
---|---|
26 static int dvdsub_init_decoder(AVCodecContext *avctx) | 26 static int dvdsub_init_decoder(AVCodecContext *avctx) |
27 { | 27 { |
28 return 0; | 28 return 0; |
29 } | 29 } |
30 | 30 |
31 uint16_t getbe16(const uint8_t *p) | 31 static uint16_t getbe16(const uint8_t *p) |
32 { | 32 { |
33 return (p[0] << 8) | p[1]; | 33 return (p[0] << 8) | p[1]; |
34 } | 34 } |
35 | 35 |
36 int get_nibble(const uint8_t *buf, int nibble_offset) | 36 static int get_nibble(const uint8_t *buf, int nibble_offset) |
37 { | 37 { |
38 return (buf[nibble_offset >> 1] >> ((1 - (nibble_offset & 1)) << 2)) & 0xf; | 38 return (buf[nibble_offset >> 1] >> ((1 - (nibble_offset & 1)) << 2)) & 0xf; |
39 } | 39 } |
40 | 40 |
41 static int decode_rle(uint8_t *bitmap, int linesize, int w, int h, | 41 static int decode_rle(uint8_t *bitmap, int linesize, int w, int h, |