Lines Matching refs:src

394 static int transfer_data_alloc(AVFrame *dst, const AVFrame *src, int flags)
396 AVHWFramesContext *ctx = (AVHWFramesContext*)src->hw_frames_ctx->data;
411 ret = av_hwframe_transfer_get_formats(src->hw_frames_ctx,
426 ret = av_hwframe_transfer_data(frame_tmp, src, flags);
430 frame_tmp->width = src->width;
431 frame_tmp->height = src->height;
440 int av_hwframe_transfer_data(AVFrame *dst, const AVFrame *src, int flags)
446 return transfer_data_alloc(dst, src, flags);
451 * function could be provided by either the src or dst, depending on
454 if (src->hw_frames_ctx && dst->hw_frames_ctx) {
456 (AVHWFramesContext*)src->hw_frames_ctx->data;
474 ret = src_ctx->internal->hw_type->transfer_data_from(src_ctx, dst, src);
476 ret = dst_ctx->internal->hw_type->transfer_data_to(dst_ctx, dst, src);
480 if (src->hw_frames_ctx) {
481 ctx = (AVHWFramesContext*)src->hw_frames_ctx->data;
483 ret = ctx->internal->hw_type->transfer_data_from(ctx, dst, src);
489 ret = ctx->internal->hw_type->transfer_data_to(ctx, dst, src);
735 AVFrame *dst, const AVFrame *src,
755 ret = av_frame_ref(hwmap->source, src);
786 int av_hwframe_map(AVFrame *dst, const AVFrame *src, int flags)
794 if (src->hw_frames_ctx && dst->hw_frames_ctx) {
795 src_frames = (AVHWFramesContext*)src->hw_frames_ctx->data;
799 src->format == dst_frames->sw_format &&
808 if (!src->buf[0]) {
813 hwmap = (HWMapDescriptor*)src->buf[0]->data;
819 if (src->hw_frames_ctx) {
820 src_frames = (AVHWFramesContext*)src->hw_frames_ctx->data;
822 if (src_frames->format == src->format &&
825 dst, src, flags);
839 dst, src, flags);
874 AVHWFramesContext *src = (AVHWFramesContext*)source_frame_ctx->data;
877 if (src->internal->source_frames) {
879 (AVHWFramesContext*)src->internal->source_frames->data;
887 av_buffer_ref(src->internal->source_frames);
905 dst->sw_format = src->sw_format;
906 dst->width = src->width;
907 dst->height = src->height;
922 if (src->internal->hw_type->frames_derive_from)
923 ret = src->internal->hw_type->frames_derive_from(dst, src, flags);
926 ret = dst->internal->hw_type->frames_derive_to(dst, src, flags);
942 int ff_hwframe_map_replace(AVFrame *dst, const AVFrame *src)
946 return av_frame_ref(hwmap->source, src);