comparison fifo.h @ 567:bd4052d9050c libavutil

Globally rename the header inclusion guard names. Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_".
author stefano
date Sun, 31 Aug 2008 07:39:47 +0000
parents a0dab9157d6a
children 0b84593767d8
comparison
equal deleted inserted replaced
566:34198f8250cf 567:bd4052d9050c
19 /** 19 /**
20 * @file fifo.h 20 * @file fifo.h
21 * A very simple circular buffer FIFO implementation. 21 * A very simple circular buffer FIFO implementation.
22 */ 22 */
23 23
24 #ifndef FFMPEG_FIFO_H 24 #ifndef AVUTIL_FIFO_H
25 #define FFMPEG_FIFO_H 25 #define AVUTIL_FIFO_H
26 26
27 #include <stdint.h> 27 #include <stdint.h>
28 #include "common.h" 28 #include "common.h"
29 29
30 typedef struct AVFifoBuffer { 30 typedef struct AVFifoBuffer {
123 uint8_t *ptr = f->rptr + offs; 123 uint8_t *ptr = f->rptr + offs;
124 if (ptr >= f->end) 124 if (ptr >= f->end)
125 ptr -= f->end - f->buffer; 125 ptr -= f->end - f->buffer;
126 return *ptr; 126 return *ptr;
127 } 127 }
128 #endif /* FFMPEG_FIFO_H */ 128 #endif /* AVUTIL_FIFO_H */