Skip to content

Commit

Permalink
Temporarily disable texture generation through NativeBuffer on the Ha…
Browse files Browse the repository at this point in the history
…rmonyOS platform. (#2463)
  • Loading branch information
kevingpqi123 committed Sep 6, 2024
1 parent 7cf08d1 commit f663a79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/platform/ohos/OHOSVideoDecoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ int64_t OHOSVideoDecoder::presentationTime() {

std::shared_ptr<tgfx::ImageBuffer> OHOSVideoDecoder::onRenderFrame() {
std::shared_ptr<tgfx::ImageBuffer> imageBuffer = nullptr;
if (codecCategory == HARDWARE) {
// TODO(kevingpqi): We temporarily disable texture generation through NativeBuffer, as enabling asynchronous hardware
// decoding will cause the jitter issue. We will re-enable it once HarmonyOS fixes this problem.
if (false && codecCategory == HARDWARE) {
OH_NativeBuffer* hardwareBuffer = OH_AVBuffer_GetNativeBuffer(codecBufferInfo.buffer);
imageBuffer = tgfx::ImageBuffer::MakeFrom(hardwareBuffer, videoFormat.colorSpace);
if (hardwareBuffer) {
Expand Down

0 comments on commit f663a79

Please sign in to comment.