summaryrefslogtreecommitdiff
path: root/libavcodec/cavs.h
diff options
context:
space:
mode:
authorStefan Gehrer <stefan.gehrer@gmx.de>2007-07-07 06:27:44 +0000
committerStefan Gehrer <stefan.gehrer@gmx.de>2007-07-07 06:27:44 +0000
commit8a35c8e71aa285c9ad19837307e5f93c97306885 (patch)
tree0001ca127ed7df6527705a3b22b7cf9378c6deae /libavcodec/cavs.h
parent25c899471decb181b03eaf45ba4b4a1c634c4248 (diff)
setting intra prediction modes to default values
in inter macroblocks is now in its own inline function Originally committed as revision 9515 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/cavs.h')
-rw-r--r--libavcodec/cavs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/cavs.h b/libavcodec/cavs.h
index 2d56d4bb1a..b30f0aca61 100644
--- a/libavcodec/cavs.h
+++ b/libavcodec/cavs.h
@@ -325,6 +325,11 @@ static inline void modify_mb_i(AVSContext *h, int *pred_mode_uv) {
}
}
+static inline void set_intra_mode_default(AVSContext *h) {
+ h->pred_mode_Y[3] = h->pred_mode_Y[6] = INTRA_L_LP;
+ h->top_pred_Y[h->mbx*2+0] = h->top_pred_Y[h->mbx*2+1] = INTRA_L_LP;
+}
+
static inline void set_mvs(vector_t *mv, enum block_t size) {
switch(size) {
case BLK_16X16: