* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#ifndef FFMPEG_ROQVIDEO_H
-#define FFMPEG_ROQVIDEO_H
+#ifndef AVCODEC_ROQVIDEO_H
+#define AVCODEC_ROQVIDEO_H
+#include "libavutil/lfg.h"
#include "avcodec.h"
#include "dsputil.h"
-#include "random.h"
typedef struct {
unsigned char y[4];
int d[2];
} motion_vect;
+struct RoqTempData;
+
typedef struct RoqContext {
AVCodecContext *avctx;
roq_cell cb2x2[256];
roq_qcell cb4x4[256];
- unsigned char *buf;
+ const unsigned char *buf;
int size;
int width, height;
/* Encoder only data */
- AVRandomState randctx;
+ AVLFG randctx;
uint64_t lambda;
motion_vect *this_motion4;
AVFrame *frame_to_enc;
uint8_t *out_buf;
+ struct RoqTempData *tmpData;
} RoqContext;
#define RoQ_INFO 0x1001
void ff_apply_motion_8x8(RoqContext *ri, int x, int y, int deltax, int deltay);
-#endif /* FFMPEG_ROQVIDEO_H */
+#endif /* AVCODEC_ROQVIDEO_H */