Lines Matching refs:src

319                              CVPixelBufferRef pixbuf, const AVFrame *src)
323 AVRational avpar = src->sample_aspect_ratio;
396 CVPixelBufferRef pixbuf, const AVFrame *src)
398 CFStringRef loc = av_map_videotoolbox_chroma_loc_from_av(src->chroma_location);
511 CVPixelBufferRef pixbuf, const AVFrame *src)
516 colormatrix = av_map_videotoolbox_color_matrix_from_av(src->colorspace);
517 if (!colormatrix && src->colorspace != AVCOL_SPC_UNSPECIFIED)
518 av_log(log_ctx, AV_LOG_WARNING, "Color space %s is not supported.\n", av_color_space_name(src->colorspace));
520 colorpri = av_map_videotoolbox_color_primaries_from_av(src->color_primaries);
521 if (!colorpri && src->color_primaries != AVCOL_PRI_UNSPECIFIED)
522 av_log(log_ctx, AV_LOG_WARNING, "Color primaries %s is not supported.\n", av_color_primaries_name(src->color_primaries));
524 colortrc = av_map_videotoolbox_color_trc_from_av(src->color_trc);
525 if (!colortrc && src->color_trc != AVCOL_TRC_UNSPECIFIED)
526 av_log(log_ctx, AV_LOG_WARNING, "Color transfer function %s is not supported.\n", av_color_transfer_name(src->color_trc));
528 if (src->color_trc == AVCOL_TRC_GAMMA22)
530 else if (src->color_trc == AVCOL_TRC_GAMMA28)
568 CVPixelBufferRef pixbuf, const AVFrame *src)
571 ret = vt_pixbuf_set_par(log_ctx, pixbuf, src);
574 ret = vt_pixbuf_set_colorspace(log_ctx, pixbuf, src);
577 ret = vt_pixbuf_set_chromaloc(log_ctx, pixbuf, src);
584 CVPixelBufferRef pixbuf, const AVFrame *src)
586 return vt_pixbuf_set_attachments(log_ctx, pixbuf, src);
589 static int vt_map_frame(AVHWFramesContext *ctx, AVFrame *dst, const AVFrame *src,
592 CVPixelBufferRef pixbuf = (CVPixelBufferRef)src->data[3];
633 ret = ff_hwframe_map_create(src->hw_frames_ctx, dst, src, vt_unmap,
646 AVFrame *dst, const AVFrame *src)
659 err = vt_map_frame(hwfc, map, src, AV_HWFRAME_MAP_READ);
677 AVFrame *dst, const AVFrame *src)
682 if (src->width > hwfc->width || src->height > hwfc->height)
688 map->format = src->format;
694 map->width = src->width;
695 map->height = src->height;
697 err = av_frame_copy(map, src);
701 err = vt_pixbuf_set_attachments(hwfc, (CVPixelBufferRef)dst->data[3], src);
712 const AVFrame *src, int flags)
721 err = vt_map_frame(hwfc, dst, src, flags);
725 dst->width = src->width;
726 dst->height = src->height;
728 err = av_frame_copy_props(dst, src);