~ubuntu-branches/ubuntu/quantal/ffmpeg/quantal

« back to all changes in this revision

Viewing changes to libswscale/rgb2rgb.h

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2010-06-16 12:53:24 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20100616125324-kbhhjn7012ufc79t
Tags: 4:0.6-1ubuntu1
* merge from debian/experimental. remaining changes:
  - don't disable encoders
  - don't build against libfaad, libdirac and libopenjpeg (all in universe)
* new upstream release
  - internal vorbis encoder is disabled. LP: #585330
  - includes native AMR-NB decoder, LP: #93849
  - api-example is fixed: LP: #557319

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 *               Software YUV to YUV converter
5
5
 *               Software YUV to RGB converter
6
6
 *  Written by Nick Kurshev.
7
 
 *  palette & YUV & runtime CPU stuff by Michael (michaelni@gmx.at)
 
7
 *  YUV & runtime CPU stuff by Michael (michaelni@gmx.at)
8
8
 *
9
9
 * This file is part of FFmpeg.
10
10
 *
28
28
 
29
29
#include <inttypes.h>
30
30
 
 
31
#include "libswscale/swscale.h"
 
32
#include "libavutil/avutil.h"
 
33
 
31
34
/* A full collection of RGB to RGB(BGR) converters */
32
35
extern void (*rgb24tobgr32)(const uint8_t *src, uint8_t *dst, long src_size);
33
36
extern void (*rgb24tobgr16)(const uint8_t *src, uint8_t *dst, long src_size);
66
69
void shuffle_bytes_3012(const uint8_t *src, uint8_t *dst, long src_size);
67
70
void shuffle_bytes_3210(const uint8_t *src, uint8_t *dst, long src_size);
68
71
 
69
 
void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
70
 
void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
71
 
void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
72
 
void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
73
 
void palette8torgb15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
74
 
void palette8tobgr15(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
 
72
#if LIBSWSCALE_VERSION_MAJOR < 1
 
73
/* deprecated, use the public versions in swscale.h */
 
74
attribute_deprecated void palette8topacked32(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
 
75
attribute_deprecated void palette8topacked24(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
 
76
 
 
77
/* totally deprecated, please fix code that uses this */
 
78
attribute_deprecated void palette8torgb16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
 
79
attribute_deprecated void palette8tobgr16(const uint8_t *src, uint8_t *dst, long num_pixels, const uint8_t *palette);
 
80
#endif
75
81
 
76
82
/**
77
83
 * Height should be a multiple of 2 and width should be a multiple of 16.