Permalink
Browse files

camera: OMX extention to pass work buffer

Add a new OMX extention to pass a work buffer to be
used during hardware encoding.

Change-Id: If8a85ce5c451f519ce9cf54e6db33c669320c34b
  • Loading branch information...
1 parent f7d5183 commit c1f5405d0a29f591e874f9b1b4f63c1c8e8e4685 Ajay Dudani committed with The Android Automerger Jul 10, 2013
Showing with 14 additions and 0 deletions.
  1. +14 −0 mm-image-codec/qomx_core/QOMX_JpegExtensions.h
@@ -55,6 +55,7 @@ typedef enum {
#define QOMX_IMAGE_EXT_BUFFER_OFFSET_NAME "OMX.QCOM.image.exttype.bufferOffset"
#define QOMX_IMAGE_EXT_MOBICAT_NAME "OMX.QCOM.image.exttype.mobicat"
#define QOMX_IMAGE_EXT_ENCODING_MODE_NAME "OMX.QCOM.image.encoding.mode"
+#define QOMX_IMAGE_EXT_WORK_BUFFER_NAME "OMX.QCOM.image.exttype.workbuffer"
/** QOMX_IMAGE_EXT_INDEXTYPE
* This enum is an extension of the OMX_INDEXTYPE enum and
@@ -79,6 +80,9 @@ typedef enum {
//Name: OMX.QCOM.image.encoding.approach
QOMX_IMAGE_EXT_ENCODING_MODE = 0x07F00004,
+ //Name: OMX.QCOM.image.exttype.workbuffer
+ QOMX_IMAGE_EXT_WORK_BUFFER = 0x07F00004,
+
} QOMX_IMAGE_EXT_INDEXTYPE;
/** QOMX_BUFFER_INFO
@@ -180,6 +184,16 @@ typedef struct {
OMX_U32 mobicatDataLength;
} QOMX_MOBICAT;
+/**qomx_workbuffer
+* Ion buffer to be used for the H/W encoder
+* @fd - FD of the buffer allocated
+* @vaddr - Buffer address
+**/
+typedef struct {
+ int fd;
+ uint8_t *vaddr;
+} QOMX_WORK_BUFFER;
+
/** QOMX_IMG_COLOR_FORMATTYPE
* This enum is an extension of the OMX_COLOR_FORMATTYPE enum.
* It specifies Qcom supported color formats.

0 comments on commit c1f5405

Please sign in to comment.