MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / naive

Function naive

dnn/test/naive/cvt_color.cpp:79–91  ·  view source on GitHub ↗

refer to libyuv https://github.com/lemenkov/libyuv/blob/7e936044d154b9fe159a67f9562e10b1ef1cb590/source/convert_argb.cc#L1079

Source from the content-addressed store, hash-verified

77//! refer to libyuv
78//! https://github.com/lemenkov/libyuv/blob/7e936044d154b9fe159a67f9562e10b1ef1cb590/source/convert_argb.cc#L1079
79void naive(
80 const uint8_t* src_y, int src_stride_y, const uint8_t* src_uv,
81 int src_stride_uv, uint8_t* dst_argb, int dst_stride_argb, int width,
82 int height) {
83 rep(y, height) {
84 naive_row(src_y, src_uv, dst_argb, width);
85 dst_argb += dst_stride_argb;
86 src_y += src_stride_y;
87 if (y & 1) {
88 src_uv += src_stride_uv;
89 }
90 }
91}
92
93//! check real yuv
94void run_check(Handle* handle, const size_t IH, const size_t IW) {

Callers 1

run_checkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected