Mercurial > libavcodec.hg
comparison imgconvert.c @ 7832:573f52f011c0 libavcodec
avcodec_find_best_pix_fmt() needs a 64bit mask as there are more than 32 pix_fmts.
author | michael |
---|---|
date | Mon, 08 Sep 2008 18:29:08 +0000 |
parents | 635ed2559262 |
children | 915bc657348f |
comparison
equal
deleted
inserted
replaced
7831:8195c970d077 | 7832:573f52f011c0 |
---|---|
770 break; | 770 break; |
771 } | 771 } |
772 return bits; | 772 return bits; |
773 } | 773 } |
774 | 774 |
775 static int avcodec_find_best_pix_fmt1(int pix_fmt_mask, | 775 static int avcodec_find_best_pix_fmt1(int64_t pix_fmt_mask, |
776 int src_pix_fmt, | 776 int src_pix_fmt, |
777 int has_alpha, | 777 int has_alpha, |
778 int loss_mask) | 778 int loss_mask) |
779 { | 779 { |
780 int dist, i, loss, min_dist, dst_pix_fmt; | 780 int dist, i, loss, min_dist, dst_pix_fmt; |
795 } | 795 } |
796 } | 796 } |
797 return dst_pix_fmt; | 797 return dst_pix_fmt; |
798 } | 798 } |
799 | 799 |
800 int avcodec_find_best_pix_fmt(int pix_fmt_mask, int src_pix_fmt, | 800 int avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, int src_pix_fmt, |
801 int has_alpha, int *loss_ptr) | 801 int has_alpha, int *loss_ptr) |
802 { | 802 { |
803 int dst_pix_fmt, loss_mask, i; | 803 int dst_pix_fmt, loss_mask, i; |
804 static const int loss_mask_order[] = { | 804 static const int loss_mask_order[] = { |
805 ~0, /* no loss first */ | 805 ~0, /* no loss first */ |