Mercurial > libavcodec.hg
comparison roqvideo.h @ 9154:aa459306ee59 libavcodec
Use FLG pseudo-random number generator in RoQ and ELBG
author | vitor |
---|---|
date | Sun, 08 Mar 2009 17:43:12 +0000 |
parents | 1fa3e8a72ca5 |
children |
comparison
equal
deleted
inserted
replaced
9153:4e91d96dd045 | 9154:aa459306ee59 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #ifndef AVCODEC_ROQVIDEO_H | 22 #ifndef AVCODEC_ROQVIDEO_H |
23 #define AVCODEC_ROQVIDEO_H | 23 #define AVCODEC_ROQVIDEO_H |
24 | 24 |
25 #include "libavutil/random.h" | 25 #include "libavutil/lfg.h" |
26 #include "avcodec.h" | 26 #include "avcodec.h" |
27 #include "dsputil.h" | 27 #include "dsputil.h" |
28 | 28 |
29 typedef struct { | 29 typedef struct { |
30 unsigned char y[4]; | 30 unsigned char y[4]; |
56 const unsigned char *buf; | 56 const unsigned char *buf; |
57 int size; | 57 int size; |
58 int width, height; | 58 int width, height; |
59 | 59 |
60 /* Encoder only data */ | 60 /* Encoder only data */ |
61 AVRandomState randctx; | 61 AVLFG randctx; |
62 uint64_t lambda; | 62 uint64_t lambda; |
63 | 63 |
64 motion_vect *this_motion4; | 64 motion_vect *this_motion4; |
65 motion_vect *last_motion4; | 65 motion_vect *last_motion4; |
66 | 66 |