Skip to content

Commit

Permalink
NV12 & NV16 10bit franme types aded (#3451)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarab96 authored May 22, 2020
1 parent 54f14c8 commit 2d6bfe4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/xma/include/app/xmabuffers.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ typedef enum XmaFormatType
XMA_RGB888_FMT_TYPE, /**< 4 */
XMA_RGBP_FMT_TYPE, /**< 5 */
XMA_VCU_NV12_FMT_TYPE, /**< 6 */
XMA_VCU_NV16_FMT_TYPE,
XMA_VCU_NV12_10LE32_FMT_TYPE,
XMA_VCU_NV16_10LE32_FMT_TYPE,
} XmaFormatType;

/**
Expand Down
6 changes: 4 additions & 2 deletions src/xma/src/xmaapi/xmabuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ xma_frame_planes_get(XmaFrameProperties *frame_props)
{XMA_YUV444_FMT_TYPE, 3},
{XMA_RGB888_FMT_TYPE, 1},
{XMA_RGBP_FMT_TYPE, 3},
{XMA_VCU_NV12_FMT_TYPE,2}

{XMA_VCU_NV12_FMT_TYPE, 2},
{XMA_VCU_NV16_FMT_TYPE, 2},
{XMA_VCU_NV12_10LE32_FMT_TYPE, 2},
{XMA_VCU_NV16_10LE32_FMT_TYPE, 2},
};

return frame_format_desc[frame_props->format].num_planes;
Expand Down

0 comments on commit 2d6bfe4

Please sign in to comment.