/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/filterimpl/brightness/ |
H A D | cpu_brightness_algo.cpp | 138 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 D | cpu_contrast_algo.cpp | 127 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 D | format_helper.cpp | 26 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 D | render_environment.cpp | 323 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 D | effect_memory.cpp | 62 … FormatHelper::CalculateRowStride(memoryInfo.bufferInfo.width_, memoryInfo.bufferInfo.formatType_); in Alloc() 103 … return FormatHelper::CalculateSize(bufferInfo.width_, bufferInfo.height_, bufferInfo.formatType_); in CalculateTotalSize() 221 … FormatHelper::CalculateRowStride(memoryInfo.bufferInfo.width_, memoryInfo.bufferInfo.formatType_); in Alloc()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/utils/common/ |
H A D | memcpy_helper.cpp | 57 … 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 D | common_utils.cpp | 100 …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 D | format_helper.h | 27 class FormatHelper {
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/efilter/base/ |
H A D | efilter.cpp | 210 ….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 D | main.cpp | 37 static void FormatHelper() in FormatHelper() function 98 FormatHelper(); in QueryHelper()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/effect/pipeline/filters/sink/ |
H A D | image_sink_filter.cpp | 51 … .len_ = FormatHelper::CalculateDataRowCount(static_cast<uint32_t>(pixelMap->GetHeight()), in CopyDataToPixelMap()
|
/ohos5.0/foundation/multimedia/image_effect/frameworks/native/capi/ |
H A D | image_effect_filter.cpp | 202 …FormatHelper::CalculateDataRowCount(bufferInfo->height_, bufferInfo->formatType_) * bufferInfo->ro… in PushData()
|