Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2772e1cf authored by Taehwan Kim's avatar Taehwan Kim Committed by Wonsik Kim
Browse files

codec2: fix to use color format for FetchGraphicBlock().



Bug: 227283773
Test: presubmit
Signed-off-by: default avatarTaehwan Kim <t_h.kim@samsung.com>
Change-Id: Ia758a173598c35f6ebc5c514592473d7a64d4e56
parent d8bef59f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1435,7 +1435,7 @@ void CCodec::configure(const sp<AMessage> &msg) {
                int64_t blockUsage =
                    usage.value | C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE;
                std::shared_ptr<C2GraphicBlock> block = FetchGraphicBlock(
                        width, height, pixelFormat, blockUsage, {comp->getName()});
                        width, height, componentColorFormat, blockUsage, {comp->getName()});
                sp<GraphicBlockBuffer> buffer;
                if (block) {
                    buffer = GraphicBlockBuffer::Allocate(