On 13/07/16 01:47, Mark Thompson wrote: > +int av_hwframe_map(AVFrame *dst, const AVFrame *src, int flags) > +{ > + AVHWFramesContext *ctx; > + int ret; > + > + if (src->hw_frames_ctx) { > + ctx = (AVHWFramesContext*)src->hw_frames_ctx->data; > + > + if (ctx->internal->hw_type->map_from) { > + ret = ctx->internal->hw_type->map_from(ctx, dst, src, flags); > + if (ret != AVERROR(ENOSYS)) > + return ret; > + } > + } > + > + if (dst->hw_frames_ctx) { > + ctx = (AVHWFramesContext*)dst->hw_frames_ctx->data; > + > + if (ctx->internal->hw_type->map_to) { > + ret = ctx->internal->hw_type->map_to(ctx, dst, src, flags); > + if (ret != AVERROR(ENOSYS)) > + return ret; > + } > + } > +
Only one of the two has to be hw right? _______________________________________________ libav-devel mailing list libav-devel@libav.org https://lists.libav.org/mailman/listinfo/libav-devel