Commit 857bcd8a authored by prasanth kamuju's avatar prasanth kamuju
Browse files

qcvideodec:Luma and chroma alignment

The output buffer have 2 plans called Luma and Chroma.
Those are 8Kb alignment and Gstramer expects in 4Kb alignment.
So the 2nd plan, Chroma offset has to be changed based on Luma
if the Luma offset is not  under 4Kb.

Ex: 800*480 video, In the Tile buffer, luma is
    ROUND_UP_128(800) * ROUND_UP_32(480)
    it will become 896 * 480 = 430080 it is 4Kb align but not 8Kb alig
    So Luma plan ends at 434176

    Chroma, ROUND_UP_128(800) * ROUND_UP_32(480/2)
            896 * 256   = 229376

    when the output buffer is converted to GST buffer,
    Chroma offset should be 434176, not 430080
parent ee1a8d9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment