Files
haiku-beta6/src/add-ons/media/plugins/avcodec/gfx_util.h
T
beveloper bc3e91dcb6 added video image format conversation stuff, derived from mmu_man's ffmpeg decoder, with heavy modifications
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6589 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-02-14 18:02:22 +00:00

40 lines
1.4 KiB
C

/******************************************************************************
/
/ File: ffutils.h
/
/ Description: utility functions for ffmpeg codec wrappers for BeOs R5.
/
/ Disclaimer: This decoder is based on undocumented APIs.
/ Therefore it is likely, if not certain, to break in future
/ versions of BeOS. This piece of software is in no way
/ connected to or even supported by Be, Inc.
/
/ Copyright (C) 2001 François Revol. All Rights Reserved.
/
******************************************************************************/
#ifndef __FFUTILS_H__
#define __FFUTILS_H__
// BeOS and libavcodec bitmap formats
#include <GraphicsDefs.h>
#include "libavcodec/avcodec.h"
// this function will be used by the wrapper to write into
// the Media Kit provided buffer from the self-allocated ffmpeg codec buffer
// it also will do some colorspace and planar/chunky conversions.
// these functions should be optimized with overlay in mind.
//typedef void (*gfx_convert_func) (AVPicture *in, AVPicture *out, long line_count, long size);
// will become:
typedef void (*gfx_convert_func) (AVFrame *in, AVFrame *out, int width, int height);
// this function will try to find the best colorspaces for both the ff-codec and
// the Media Kit sides.
gfx_convert_func resolve_colorspace(color_space cs, PixelFormat pixelFormat);
const char *pixfmt_to_string(int p);
void dump_ffframe(AVFrame *frame, const char *name);
#endif