comparison utils.c @ 9032:caee3bed2145 libavcodec

ff_find_hwaccel()
author michael
date Tue, 24 Feb 2009 18:51:16 +0000
parents 62f346579c36
children 6faca73d75cc
comparison
equal deleted inserted replaced
9031:62f346579c36 9032:caee3bed2145
1138 1138
1139 AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel) 1139 AVHWAccel *av_hwaccel_next(AVHWAccel *hwaccel)
1140 { 1140 {
1141 return hwaccel ? hwaccel->next : first_hwaccel; 1141 return hwaccel ? hwaccel->next : first_hwaccel;
1142 } 1142 }
1143
1144 AVHWAccel *ff_find_hwaccel(enum CodecID codec_id, enum PixelFormat pix_fmt)
1145 {
1146 AVHWAccel *hwaccel=NULL;
1147
1148 while((hwaccel= av_hwaccel_next(hwaccel))){
1149 if ( hwaccel->id == codec_id
1150 && hwaccel->pix_fmt == pix_fmt)
1151 return hwaccel;
1152 }
1153 return NULL;
1154 }