Mercurial > mplayer.hg
comparison libmpcodecs/vd_ffmpeg.c @ 6875:255b150a75a5
- some reorder/cleanup of mp_image flags
- support for _ACCEPT_ALIGNED_STRIDE && _PREFER_ALIGNED_STRIDE
author | arpi |
---|---|
date | Fri, 02 Aug 2002 22:55:54 +0000 |
parents | 1206fa765697 |
children | cd630017eb83 |
comparison
equal
deleted
inserted
replaced
6874:58e730c20213 | 6875:255b150a75a5 |
---|---|
300 #if LIBAVCODEC_BUILD > 4615 | 300 #if LIBAVCODEC_BUILD > 4615 |
301 static void get_buffer(struct AVCodecContext *avctx, int width, int height, int pict_type){ | 301 static void get_buffer(struct AVCodecContext *avctx, int width, int height, int pict_type){ |
302 sh_video_t * sh = avctx->opaque; | 302 sh_video_t * sh = avctx->opaque; |
303 vd_ffmpeg_ctx *ctx = sh->context; | 303 vd_ffmpeg_ctx *ctx = sh->context; |
304 mp_image_t* mpi=NULL; | 304 mp_image_t* mpi=NULL; |
305 // int flags= MP_IMGFLAG_ALIGNED_STRIDE; | 305 int flags= MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_PREFER_ALIGNED_STRIDE; |
306 int flags= MP_IMGFLAG_ACCEPT_STRIDE; | |
307 int type= MP_IMGTYPE_IPB; | 306 int type= MP_IMGTYPE_IPB; |
308 int align=15; | 307 int align=15; |
309 | 308 |
310 if(avctx->pix_fmt == PIX_FMT_YUV410P) | 309 if(avctx->pix_fmt == PIX_FMT_YUV410P) |
311 align=63; //yes seriously, its really needed (16x16 chroma blocks in SVQ1 -> 64x64) | 310 align=63; //yes seriously, its really needed (16x16 chroma blocks in SVQ1 -> 64x64) |