Home
last modified time | relevance | path

Searched refs:stride (Results 1 - 14 of 14) sorted by relevance

/test/xts/hats/hdf/hdf_lite/display/
H A Dloadbmp_test.c115 uint8_t **outBuf, uint32_t *stride) in LoadPicToBuffer()
144 *stride = videoLogo->width * videoLogo->bpp; in LoadPicToBuffer()
146 if ((*stride % FOUR_BITS_PER_PIXEL) != 0) { in LoadPicToBuffer()
147 *stride = (*stride & 0xfffc) + FOUR_BITS_PER_PIXEL; in LoadPicToBuffer()
150 *outBuf = (uint8_t*)malloc(videoLogo->height * (*stride)); in LoadPicToBuffer()
157 byteNum = h * (*stride); in LoadPicToBuffer()
166 HDF_LOGE("%s: fread %u*%u error", __func__, h, *stride); in LoadPicToBuffer()
173 videoLogo->stride = videoLogo->width * FOUR_BITS_PER_PIXEL; in LoadPicToBuffer()
175 videoLogo->stride in LoadPicToBuffer()
114 LoadPicToBuffer(const int8_t *fileName, OsdLogo *videoLogo, OsdColorFmt enFmt, uint8_t **outBuf, uint32_t *stride) LoadPicToBuffer() argument
181 LoadRgbData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf) LoadRgbData() argument
204 LoadData(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf) LoadData() argument
227 Copy3BitsByFmt(OsdLogo *videoLogo, OsdColorFmt enFmt, uint32_t stride, uint8_t *origBuf) Copy3BitsByFmt() argument
251 Copy2BitsAnd4Bits(OsdLogo *videoLogo, uint32_t stride, uint8_t *origBuf) Copy2BitsAnd4Bits() argument
275 uint32_t stride; LoadBMPEx() local
[all...]
H A Dloadbmp_test.h51 uint16_t stride; /* esurface stride */ member
58 uint32_t stride; /* in */ member
H A Ddisplay_test.c94 esurface->stride = SAMPLE_IMAGE_WIDTH * bpp / BITS_PER_BYTE; in PicSourceSurfaceInit()
107 esurface->stride = g_displayTest.displayInfo.width * bpp / BITS_PER_BYTE; in DestSurfaceInit()
/test/xts/acts/multimedia/av_codec/vcodec/hwdecoder/src/
H A Dvideodec_ndk_sample.cpp112 int32_t stride = 0; in VdecFormatChanged() local
116 OH_AVFormat_GetIntValue(format, OH_MD_KEY_VIDEO_STRIDE, &stride); in VdecFormatChanged()
121 if (stride <= 0 || sliceHeight <= 0) { in VdecFormatChanged()
602 int32_t stride = 0; in CheckOutputDescription() local
608 OH_AVFormat_GetIntValue(newFormat, OH_MD_KEY_VIDEO_STRIDE, &stride); in CheckOutputDescription()
613 if (cropRight != expectCropRight || stride <= 0 || sliceHeight <= 0) { in CheckOutputDescription()
/test/testfwk/arkxtest/uitest/addon/
H A Dscreen_copy.cpp279 const auto stride = scaledPixels->GetRowStride(); in WaitAndConsumeFrames() local
283 memAddr += stride; in WaitAndConsumeFrames()
/test/ostest/wukong/common/src/
H A Dwukong_util.cpp55 auto stride = static_cast<uint32_t>(pixelMap->GetRowBytes()); in g_isBwScreen() local
61 auto pixel = *(data + (i * stride) + (j * 4)); in g_isBwScreen()
89 auto stride = static_cast<uint32_t>(pixelMap->GetRowBytes()); in TakeWuKongScreenCap() local
120 png_write_row(pngStruct, data + (i * stride)); in TakeWuKongScreenCap()
/test/xts/acts/multimedia/av_codec/vcodec/encoder/src/
H A Dvideoenc_api11_sample.cpp347 OH_AVFormat_GetIntValue(format, "stride", &inputStride); in GetStride()
525 int stride = sbuffer->GetStride(); in InputFuncSurface() local
526 if (dst == nullptr || stride < DEFAULT_WIDTH) { in InputFuncSurface()
527 cout << "invalid va or stride=" << stride << endl; in InputFuncSurface()
532 stride_ = stride; in InputFuncSurface()
H A Dvideoenc_ndk_sample.cpp313 OH_AVFormat_GetIntValue(format, "stride", &inputStride); in GetStride()
499 int stride = sbuffer->GetStride(); in InputFuncSurface() local
500 if (dst == nullptr || stride < DEFAULT_WIDTH) { in InputFuncSurface()
501 cout << "invalid va or stride=" << stride << endl; in InputFuncSurface()
506 stride_ = stride; in InputFuncSurface()
/test/xts/acts/graphic/nativewindow/entry/src/main/cpp/
H A Dnativewindow2.cpp291 int32_t stride; in testNativeWindowNativeWindowHandleOptSetGetStrideNormal() local
297 flag = OH_NativeWindow_NativeWindowHandleOpt(nativeWindow, GET_STRIDE, &stride); in testNativeWindowNativeWindowHandleOptSetGetStrideNormal()
302 if (arr[i] != stride) { in testNativeWindowNativeWindowHandleOptSetGetStrideNormal()
317 int32_t stride; in testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal() local
329 flag = OH_NativeWindow_NativeWindowHandleOpt(nativeWindow, GET_STRIDE, &stride); in testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal()
334 if (arr[i] == stride) { in testNativeWindowNativeWindowHandleOptSetGetStrideAbnormal()
398 int32_t stride; in testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal() local
410 flag = OH_NativeWindow_NativeWindowHandleOpt(nativeWindow, GET_STRIDE, &stride); in testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal()
415 if (arr[i] == stride) { in testNativeWindowNativeWindowHandleOptSetGetSwapIntervalAbnormal()
/test/xts/hats/hdf/display/composer/common/
H A Ddisplay_test_utils.cpp182 int32_t position = y * handle.stride / PIXEL_BYTES + x; in SetPixel()
/test/xts/acts/graphic/nativebuffer/entry/src/main/cpp/
H A Dnativebuffer.cpp325 .stride = 0, in OHNativeBufferAllocNormal()
331 .stride = 1, in OHNativeBufferAllocNormal()
337 .stride = 0x7FFFFFFF, in OHNativeBufferAllocNormal()
379 .stride = -100, in OHNativeBufferAllocAbormal()
/test/xts/acts/graphic/graphicnapitest/
H A DNativeImageTest.cpp347 int32_t stride = 0x8; in HWTEST_F() local
348 ret = NativeWindowHandleOpt(nativeWindow, code, stride); in HWTEST_F()
/test/xts/hats/hdf/display/buffer/moduletest/
H A Ddisplay_buffer_mt.cpp97 HDF_LOGD("stride =%{public}d", handle.stride); in DumpBufferHandle()
/test/xts/hats/hdf/display/buffer/moduletest_additional/
H A Ddisplay_buffer_mt.cpp88 HDF_LOGD("stride =%{public}d", handle.stride); in DumpBufferHandle()

Completed in 31 milliseconds