comparison imgconvert.c @ 10572:a21b640dba50 libavcodec

Use av_pix_fmt_descriptors in ff_is_hwaccel_pix_fmt() rather than access the PixFmtInfo.is_hwaccel field which is going to be removed.
author stefano
date Wed, 25 Nov 2009 23:52:20 +0000
parents 7a8b35405591
children ac49ab818d4d
comparison
equal deleted inserted replaced
10571:c408fca01d49 10572:a21b640dba50
31 */ 31 */
32 32
33 #include "avcodec.h" 33 #include "avcodec.h"
34 #include "dsputil.h" 34 #include "dsputil.h"
35 #include "colorspace.h" 35 #include "colorspace.h"
36 #include "libavutil/pixdesc.h"
36 37
37 #if HAVE_MMX 38 #if HAVE_MMX
38 #include "x86/mmx.h" 39 #include "x86/mmx.h"
39 #include "x86/dsputil_mmx.h" 40 #include "x86/dsputil_mmx.h"
40 #endif 41 #endif
599 } 600 }
600 } 601 }
601 602
602 int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt) 603 int ff_is_hwaccel_pix_fmt(enum PixelFormat pix_fmt)
603 { 604 {
604 return pix_fmt_info[pix_fmt].is_hwaccel; 605 return av_pix_fmt_descriptors[pix_fmt].flags & PIX_FMT_HWACCEL;
605 } 606 }
606 607
607 int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){ 608 int ff_set_systematic_pal(uint32_t pal[256], enum PixelFormat pix_fmt){
608 int i; 609 int i;
609 610