diff roqvideodec.c @ 5099:133329117637 libavcodec

Convert RoQ decoder to use YUV 4:4:4 unpacked macroblocks instead of packed 4:2:0 clusters patch by Eric Lasota: \ riot icculus org / original threads: [FFmpeg-devel] [PATCH] RoQ decoder 4:4:4 update date: 06/04/2007 03:52 AM and 06/05/2007 01:10 AM
author benoit
date Tue, 05 Jun 2007 08:05:16 +0000
parents 20914da7d71b
children b8e8aa53f613
line wrap: on
line diff
--- a/roqvideodec.c	Tue Jun 05 07:18:29 2007 +0000
+++ b/roqvideodec.c	Tue Jun 05 08:05:16 2007 +0000
@@ -36,9 +36,6 @@
 #include "dsputil.h"
 #include "roqvideo.h"
 
-#define avg2(a,b) av_clip_uint8(((int)(a)+(int)(b)+1)>>1)
-#define avg4(a,b,c,d) av_clip_uint8(((int)(a)+(int)(b)+(int)(c)+(int)(d)+2)>>2)
-
 static void roqvideo_decode_frame(RoqContext *ri)
 {
     unsigned int chunk_id = 0, chunk_arg = 0;
@@ -165,7 +162,7 @@
     s->avctx = avctx;
     s->last_frame    = &s->frames[0];
     s->current_frame = &s->frames[1];
-    avctx->pix_fmt = PIX_FMT_YUV420P;
+    avctx->pix_fmt = PIX_FMT_YUV444P;
     dsputil_init(&s->dsp, avctx);
 
     return 0;