comparison libmpcodecs/vd_ffmpeg.c @ 24253:e0ed786a7fb9

warning fix: vd_ffmpeg.c: At top level: vd_ffmpeg.c:915: warning: 'get_format' defined but not used
author diego
date Tue, 28 Aug 2007 17:36:04 +0000
parents 09014500046f
children 575d7b1fdf82
comparison
equal deleted inserted replaced
24252:18d1e928771b 24253:e0ed786a7fb9
59 59
60 #include "m_option.h" 60 #include "m_option.h"
61 61
62 static int get_buffer(AVCodecContext *avctx, AVFrame *pic); 62 static int get_buffer(AVCodecContext *avctx, AVFrame *pic);
63 static void release_buffer(AVCodecContext *avctx, AVFrame *pic); 63 static void release_buffer(AVCodecContext *avctx, AVFrame *pic);
64 static enum PixelFormat get_format(struct AVCodecContext * avctx, 64
65 #ifdef HAVE_XVMC
66 static enum PixelFormat get_format(struct AVCodecContext * avctx,
65 const enum PixelFormat * pix_fmt); 67 const enum PixelFormat * pix_fmt);
66
67 #ifdef HAVE_XVMC
68 static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic); 68 static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic);
69 static void mc_release_buffer(AVCodecContext *avctx, AVFrame *pic); 69 static void mc_release_buffer(AVCodecContext *avctx, AVFrame *pic);
70 static void mc_render_slice(struct AVCodecContext *s, 70 static void mc_render_slice(struct AVCodecContext *s,
71 AVFrame *src, int offset[4], 71 AVFrame *src, int offset[4],
72 int y, int type, int height); 72 int y, int type, int height);
909 if(pic->repeat_pict == 1) mpi->fields |= MP_IMGFIELD_REPEAT_FIRST; 909 if(pic->repeat_pict == 1) mpi->fields |= MP_IMGFIELD_REPEAT_FIRST;
910 910
911 return mpi; 911 return mpi;
912 } 912 }
913 913
914 #ifdef HAVE_XVMC
914 static enum PixelFormat get_format(struct AVCodecContext * avctx, 915 static enum PixelFormat get_format(struct AVCodecContext * avctx,
915 const enum PixelFormat * fmt){ 916 const enum PixelFormat * fmt){
916 sh_video_t * sh = avctx->opaque; 917 sh_video_t * sh = avctx->opaque;
917 int i; 918 int i;
918 919
935 return fmt[i]; 936 return fmt[i];
936 } 937 }
937 return fmt[0]; 938 return fmt[0];
938 } 939 }
939 940
940 #ifdef HAVE_XVMC
941 static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic){ 941 static int mc_get_buffer(AVCodecContext *avctx, AVFrame *pic){
942 sh_video_t * sh = avctx->opaque; 942 sh_video_t * sh = avctx->opaque;
943 vd_ffmpeg_ctx *ctx = sh->context; 943 vd_ffmpeg_ctx *ctx = sh->context;
944 mp_image_t* mpi=NULL; 944 mp_image_t* mpi=NULL;
945 xvmc_render_state_t * render; 945 xvmc_render_state_t * render;