#include <assert.h>
#include <stdlib.h>
#include "vpx_config.h"
#include "lookahead.h"
#include "vp8/common/extend.h"
#define MAX_LAG_BUFFERS …
struct lookahead_ctx { … };
static struct lookahead_entry *pop(struct lookahead_ctx *ctx,
unsigned int *idx) { … }
void vp8_lookahead_destroy(struct lookahead_ctx *ctx) { … }
struct lookahead_ctx *vp8_lookahead_init(unsigned int width,
unsigned int height,
unsigned int depth) { … }
int vp8_lookahead_push(struct lookahead_ctx *ctx, YV12_BUFFER_CONFIG *src,
int64_t ts_start, int64_t ts_end, unsigned int flags,
unsigned char *active_map) { … }
struct lookahead_entry *vp8_lookahead_pop(struct lookahead_ctx *ctx,
int drain) { … }
struct lookahead_entry *vp8_lookahead_peek(struct lookahead_ctx *ctx,
unsigned int index, int direction) { … }
unsigned int vp8_lookahead_depth(struct lookahead_ctx *ctx) { … }