Home
last modified time | relevance | path

Searched refs:FormatHelper (Results 1 – 12 of 12) sorted by relevance

/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/
H A Dcpu_brightness_algo.cpp138 uint8_t r = FormatHelper::YuvToR(y, u, v); in OnApplyYUVNV21()
139 uint8_t g = FormatHelper::YuvToG(y, u, v); in OnApplyYUVNV21()
140 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV21()
144 dstNV21[y_index] = FormatHelper::RGBToY(r, g, b); in OnApplyYUVNV21()
145 dstNV21UV[nv_index] = FormatHelper::RGBToV(r, g, b); in OnApplyYUVNV21()
146 dstNV21UV[nv_index + 1] = FormatHelper::RGBToU(r, g, b); in OnApplyYUVNV21()
197 uint8_t r = FormatHelper::YuvToR(y, u, v); in OnApplyYUVNV12()
198 uint8_t g = FormatHelper::YuvToG(y, u, v); in OnApplyYUVNV12()
199 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV12()
204 dstNV12[y_index] = FormatHelper::RGBToY(r, g, b); in OnApplyYUVNV12()
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/contrast/
H A Dcpu_contrast_algo.cpp127 uint8_t r = FormatHelper::YuvToR(y, u, v); in OnApplyYUVNV21()
128 uint8_t g = FormatHelper::YuvToG(y, u, v); in OnApplyYUVNV21()
129 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV21()
133 dstNV21[y_index] = FormatHelper::RGBToY(r, g, b); in OnApplyYUVNV21()
134 dstNV21UV[nv_index] = FormatHelper::RGBToV(r, g, b); in OnApplyYUVNV21()
135 dstNV21UV[nv_index + 1] = FormatHelper::RGBToU(r, g, b); in OnApplyYUVNV21()
184 uint8_t r = FormatHelper::YuvToR(y, u, v); in OnApplyYUVNV12()
185 uint8_t g = FormatHelper::YuvToG(y, u, v); in OnApplyYUVNV12()
186 uint8_t b = FormatHelper::YuvToB(y, u, v); in OnApplyYUVNV12()
191 dstNV12[y_index] = FormatHelper::RGBToY(r, g, b); in OnApplyYUVNV12()
[all …]
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/format/
H A Dformat_helper.cpp26 uint32_t FormatHelper::CalculateDataRowCount(uint32_t height, IEffectFormat format) in CalculateDataRowCount()
40 uint32_t FormatHelper::CalculateRowStride(uint32_t width, IEffectFormat format) in CalculateRowStride()
54 uint32_t FormatHelper::CalculateSize(uint32_t width, uint32_t height, IEffectFormat format) in CalculateSize()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/render_environment/
H A Drender_environment.cpp323 uint8_t r = FormatHelper::YuvToR(y, u, v); in ConvertFromYUVToRGB()
324 uint8_t g = FormatHelper::YuvToG(y, u, v); in ConvertFromYUVToRGB()
325 uint8_t b = FormatHelper::YuvToB(y, u, v); in ConvertFromYUVToRGB()
352 srcNV12[y_index] = FormatHelper::RGBToY(r, g, b); in ConvertFromRGBToYUV()
354 srcNV12UV[nv_index] = FormatHelper::RGBToU(r, g, b); in ConvertFromRGBToYUV()
355 srcNV12UV[nv_index + 1] = FormatHelper::RGBToV(r, g, b); in ConvertFromRGBToYUV()
357 srcNV12UV[nv_index] = FormatHelper::RGBToV(r, g, b); in ConvertFromRGBToYUV()
358 srcNV12UV[nv_index + 1] = FormatHelper::RGBToU(r, g, b); in ConvertFromRGBToYUV()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/manager/memory_manager/
H A Deffect_memory.cpp62FormatHelper::CalculateRowStride(memoryInfo.bufferInfo.width_, memoryInfo.bufferInfo.formatType_); in Alloc()
103 … return FormatHelper::CalculateSize(bufferInfo.width_, bufferInfo.height_, bufferInfo.formatType_); in CalculateTotalSize()
221FormatHelper::CalculateRowStride(memoryInfo.bufferInfo.width_, memoryInfo.bufferInfo.formatType_); in Alloc()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/
H A Dmemcpy_helper.cpp57 … uint32_t srcRowCount = FormatHelper::CalculateDataRowCount(srcInfo.height_, srcInfo.formatType_); in CopyData()
58 … uint32_t dstRowCount = FormatHelper::CalculateDataRowCount(dstInfo.height_, dstInfo.formatType_); in CopyData()
H A Dcommon_utils.cpp100 …bufferInfo->len_ = FormatHelper::CalculateSize(bufferInfo->width_, bufferInfo->height_, formatType… in LockPixelMap()
611 memoryInfo.bufferInfo.len_ = FormatHelper::CalculateSize(buffer->bufferInfo_->width_, in ModifyPixelMapProperty()
/ohos5.0/foundation/multimedia/image_effect/interfaces/inner_api/native/utils/
H A Dformat_helper.h27 class FormatHelper {
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/base/
H A Defilter.cpp210 ….len_ = FormatHelper::CalculateSize(buffer->tex->Width(), buffer->tex->Height(), IEffectFormat::RG… in ConvertFromGPU2CPU()
288 .len_ = FormatHelper::CalculateSize( in PushData()
/ohos5.0/base/hiviewdfx/hilog/services/hilogtool/
H A Dmain.cpp37 static void FormatHelper() in FormatHelper() function
98 FormatHelper(); in QueryHelper()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/filters/sink/
H A Dimage_sink_filter.cpp51 … .len_ = FormatHelper::CalculateDataRowCount(static_cast<uint32_t>(pixelMap->GetHeight()), in CopyDataToPixelMap()
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/capi/
H A Dimage_effect_filter.cpp202FormatHelper::CalculateDataRowCount(bufferInfo->height_, bufferInfo->formatType_) * bufferInfo->ro… in PushData()