Searched refs:swsContext (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/multimedia/media_foundation/engine/plugin/convert/ |
H A D | ffmpeg_convert.cpp | 116 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 D | ffmpeg_convert.cpp | 196 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 D | codec_utils.cpp | 288 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 D | post_proc.cpp | 962 …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 D | image_format_convert_utils.cpp | 155 …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()
|