comparison vp56.h @ 12217:f6b229456bdf libavcodec

Much faster VP8 mv and mode prediction
author darkshikari
date Thu, 22 Jul 2010 04:26:41 +0000
parents 160eceee6c3d
children 0d81ba00151a
comparison
equal deleted inserted replaced
12216:160eceee6c3d 12217:f6b229456bdf
30 #include "bytestream.h" 30 #include "bytestream.h"
31 #include "cabac.h" 31 #include "cabac.h"
32 #include "vp56dsp.h" 32 #include "vp56dsp.h"
33 33
34 typedef struct vp56_context VP56Context; 34 typedef struct vp56_context VP56Context;
35 typedef struct vp56_mv VP56mv; 35
36 typedef struct {
37 int16_t x;
38 int16_t y;
39 } DECLARE_ALIGNED(4, , VP56mv);
36 40
37 typedef void (*VP56ParseVectorAdjustment)(VP56Context *s, 41 typedef void (*VP56ParseVectorAdjustment)(VP56Context *s,
38 VP56mv *vect); 42 VP56mv *vect);
39 typedef void (*VP56Filter)(VP56Context *s, uint8_t *dst, uint8_t *src, 43 typedef void (*VP56Filter)(VP56Context *s, uint8_t *dst, uint8_t *src,
40 int offset1, int offset2, int stride, 44 int offset1, int offset2, int stride,
58 typedef struct { 62 typedef struct {
59 uint8_t not_null_dc; 63 uint8_t not_null_dc;
60 VP56Frame ref_frame; 64 VP56Frame ref_frame;
61 DCTELEM dc_coeff; 65 DCTELEM dc_coeff;
62 } VP56RefDc; 66 } VP56RefDc;
63
64 struct vp56_mv {
65 int16_t x;
66 int16_t y;
67 };
68 67
69 typedef struct { 68 typedef struct {
70 uint8_t type; 69 uint8_t type;
71 VP56mv mv; 70 VP56mv mv;
72 } VP56Macroblock; 71 } VP56Macroblock;