[FFmpeg-cvslog] r17568 - trunk/libavcodec/utils.c
michael
subversion
Tue Feb 24 19:51:16 CET 2009
Author: michael
Date: Tue Feb 24 19:51:16 2009
New Revision: 17568
Log:
ff_find_hwaccel()
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Tue Feb 24 19:47:36 2009 (r17567)
+++ trunk/libavcodec/utils.c Tue Feb 24 19:51:16 2009 (r17568)
@@ -1140,3 +1140,15 @@ AVHWAccel *av_hwaccel_next(AVHWAccel *hw
{
return hwaccel ? hwaccel->next : first_hwaccel;
}
+
+AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt)
+{
+ AVHWAccel *hwaccel=NULL;
+
+ while((hwaccel= av_hwaccel_next(hwaccel))){
+ if ( hwaccel->id == codec_id
+ && hwaccel->pix_fmt == pix_fmt)
+ return hwaccel;
+ }
+ return NULL;
+}
More information about the ffmpeg-cvslog
mailing list