aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMatthew Einhorn <moiein2000@gmail.com>2011-08-26 21:49:29 -0400
committerMichael Niedermayer <michaelni@gmx.at>2011-08-27 05:09:48 +0200
commit1d6eca2d27a7e106a3acd01c89e7de58400c4c61 (patch)
tree10aca85268342d6935849d1c8cb8fa3d62d0a7a5 /libavcodec
parentc8868f28e357e7e6ffe3254d0056b3e8033fe8e5 (diff)
downloadffmpeg-1d6eca2d27a7e106a3acd01c89e7de58400c4c61.tar.gz
Removes the internal avcodec_find_best_pix_fmt1()function previously used by avcodec_find_best_pix_fmt() and not used anymore.
Signed-off-by: Matthew Einhorn <moiein2000@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/imgconvert.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/libavcodec/imgconvert.c b/libavcodec/imgconvert.c
index c0ad9ea742..66ce9de339 100644
--- a/libavcodec/imgconvert.c
+++ b/libavcodec/imgconvert.c
@@ -431,32 +431,6 @@ static int avg_bits_per_pixel(enum PixelFormat pix_fmt)
info->padded_size : av_get_bits_per_pixel(desc);
}
-static enum PixelFormat avcodec_find_best_pix_fmt1(int64_t pix_fmt_mask,
- enum PixelFormat src_pix_fmt,
- int has_alpha,
- int loss_mask)
-{
- int dist, i, loss, min_dist;
- enum PixelFormat dst_pix_fmt;
-
- /* find exact color match with smallest size */
- dst_pix_fmt = PIX_FMT_NONE;
- min_dist = 0x7fffffff;
- for (i = 0; i < FFMIN(PIX_FMT_NB, 64); i++) {
- if (pix_fmt_mask & (1ULL << i)) {
- loss = avcodec_get_pix_fmt_loss(i, src_pix_fmt, has_alpha) & loss_mask;
- if (loss == 0) {
- dist = avg_bits_per_pixel(i);
- if (dist < min_dist) {
- min_dist = dist;
- dst_pix_fmt = i;
- }
- }
- }
- }
- return dst_pix_fmt;
-}
-
enum PixelFormat avcodec_find_best_pix_fmt(int64_t pix_fmt_mask, enum PixelFormat src_pix_fmt,
int has_alpha, int *loss_ptr)
{