Home
last modified time | relevance | path

Searched refs:swsContext (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/convert/
H A Dffmpeg_convert.cpp116 auto swsContext = sws_getContext(scalePara_.srcWidth, scalePara_.srcHeight, scalePara_.srcFfFmt, in Init() local
119 FALSE_RETURN_V_MSG_E(swsContext != nullptr, Status::ERROR_UNKNOWN, "sws_getContext fail"); in Init()
120 swsCtx_ = std::shared_ptr<SwsContext>(swsContext, [](struct SwsContext *ptr) { in Init()
/ohos5.0/foundation/multimedia/av_codec/services/media_engine/plugins/ffmpeg_adapter/common/
H A Dffmpeg_convert.cpp196 auto swsContext = in Init() local
199 FALSE_RETURN_V_MSG_E(swsContext != nullptr, Status::ERROR_UNKNOWN, "sws_getContext fail"); in Init()
200 swsCtx_ = std::shared_ptr<SwsContext>(swsContext, [](struct SwsContext *ptr) { in Init()
/ohos5.0/foundation/multimedia/av_codec/services/engine/common/
H A Dcodec_utils.cpp288 auto swsContext = in Init() local
291 if (swsContext == nullptr) { in Init()
294 swsCtx_ = std::shared_ptr<SwsContext>(swsContext, [](struct SwsContext *ptr) { in Init()
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dpost_proc.cpp962 …SwsContext *swsContext = sws_getContext(srcWidth, srcHeight, pixelFormat, desiredSize.width, desir… in ScalePixelMapEx() local
964 if (swsContext == nullptr) { in ScalePixelMapEx()
972 … auto res = sws_scale(swsContext, srcPixels, srcRowStride, 0, srcHeight, dstPixels, dstRowStride); in ScalePixelMapEx()
974 sws_freeContext(swsContext); in ScalePixelMapEx()
H A Dimage_format_convert_utils.cpp155 …SwsContext *swsContext = sws_getContext(srcParam.width, srcParam.height, srcformat, destParam.widt… in SoftDecode() local
157 if (swsContext == nullptr) { in SoftDecode()
165 sws_freeContext(swsContext); in SoftDecode()
175 … auto ret = sws_scale(swsContext, srcFrame->data, srcFrame->linesize, SRCSLICEY, destParam.height, in SoftDecode()
179 sws_freeContext(swsContext); in SoftDecode()