Commit 030df2b0 authored by michaelni's avatar michaelni

sun solaris compilation bugfix, patch by (Martin Olschewski <olschewski at zpr...

sun solaris compilation bugfix, patch by (Martin Olschewski <olschewski at zpr dot uni-koeln dot de>)


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@882 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent e8aff57c
...@@ -314,6 +314,7 @@ typedef struct AVCodecContext { ...@@ -314,6 +314,7 @@ typedef struct AVCodecContext {
#define FF_DCT_FASTINT 1 #define FF_DCT_FASTINT 1
#define FF_DCT_INT 2 #define FF_DCT_INT 2
#define FF_DCT_MMX 3 #define FF_DCT_MMX 3
#define FF_DCT_MLIB 4
//FIXME this should be reordered after kabis API is finished ... //FIXME this should be reordered after kabis API is finished ...
//TODO kill kabi //TODO kill kabi
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
*/ */
#include "../dsputil.h" #include "../dsputil.h"
#include "../mpegvideo.h"
#include <mlib_types.h> #include <mlib_types.h>
#include <mlib_status.h> #include <mlib_status.h>
...@@ -125,7 +126,6 @@ void ff_fdct_mlib(DCTELEM *data) ...@@ -125,7 +126,6 @@ void ff_fdct_mlib(DCTELEM *data)
void dsputil_init_mlib(void) void dsputil_init_mlib(void)
{ {
av_fdct = ff_fdct_mlib;
ff_idct = ff_idct_mlib; ff_idct = ff_idct_mlib;
put_pixels_tab[0] = put_pixels_mlib; put_pixels_tab[0] = put_pixels_mlib;
...@@ -142,3 +142,10 @@ void dsputil_init_mlib(void) ...@@ -142,3 +142,10 @@ void dsputil_init_mlib(void)
add_pixels_clamped = add_pixels_clamped_mlib; add_pixels_clamped = add_pixels_clamped_mlib;
} }
void MPV_common_init_mlib(MpegEncContext *s)
{
if(s->avctx->dct_algo==FF_DCT_AUTO || s->avctx->dct_algo==FF_DCT_MLIB){
s->fdct = ff_fdct_mlib;
}
}
...@@ -153,6 +153,9 @@ int MPV_common_init(MpegEncContext *s) ...@@ -153,6 +153,9 @@ int MPV_common_init(MpegEncContext *s)
#ifdef ARCH_ALPHA #ifdef ARCH_ALPHA
MPV_common_init_axp(s); MPV_common_init_axp(s);
#endif #endif
#ifdef HAVE_MLIB
MPV_common_init_mlib(s);
#endif
s->mb_width = (s->width + 15) / 16; s->mb_width = (s->width + 15) / 16;
s->mb_height = (s->height + 15) / 16; s->mb_height = (s->height + 15) / 16;
......
...@@ -480,6 +480,9 @@ void MPV_common_init_mmx(MpegEncContext *s); ...@@ -480,6 +480,9 @@ void MPV_common_init_mmx(MpegEncContext *s);
#ifdef ARCH_ALPHA #ifdef ARCH_ALPHA
void MPV_common_init_axp(MpegEncContext *s); void MPV_common_init_axp(MpegEncContext *s);
#endif #endif
#ifdef HAVE_MLIB
void MPV_common_init_mlib(MpegEncContext *s);
#endif
extern void (*draw_edges)(UINT8 *buf, int wrap, int width, int height, int w); extern void (*draw_edges)(UINT8 *buf, int wrap, int width, int height, int w);
void ff_conceal_past_errors(MpegEncContext *s, int conceal_all); void ff_conceal_past_errors(MpegEncContext *s, int conceal_all);
void ff_copy_bits(PutBitContext *pb, UINT8 *src, int length); void ff_copy_bits(PutBitContext *pb, UINT8 *src, int length);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment