Browse Source

Move pixdesc.{h,c} from libavcodec to libavutil.

This way pixdescs can be used without requiring a dependency on
libavcodec.

Originally committed as revision 20389 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Stefano Sabatini 16 years ago
parent
commit
51135d1d8e
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      libavutil/pixdesc.c
  2. +4
    -4
      libavutil/pixdesc.h

libavcodec/pixdesc.c → libavutil/pixdesc.c View File

@@ -19,7 +19,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#include "libavutil/pixfmt.h"
#include "pixfmt.h"
#include "pixdesc.h"

const AVPixFmtDescriptor av_pix_fmt_descriptors[PIX_FMT_NB] = {

libavcodec/pixdesc.h → libavutil/pixdesc.h View File

@@ -19,12 +19,12 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

#ifndef AVCODEC_PIXDESC_H
#define AVCODEC_PIXDESC_H
#ifndef AVUTIL_PIXDESC_H
#define AVUTIL_PIXDESC_H

#include <inttypes.h>

#include "libavutil/intreadwrite.h"
#include "intreadwrite.h"

typedef struct AVComponentDescriptor{
uint16_t plane :2; ///< which of the 4 planes contains the component
@@ -204,4 +204,4 @@ static inline void write_line(const uint16_t *src, uint8_t *data[4], const int l
*/
int av_get_bits_per_pixel(const AVPixFmtDescriptor *pixdesc);

#endif /* AVCODEC_PIXDESC_H */
#endif /* AVUTIL_PIXDESC_H */

Loading…
Cancel
Save