Lines Matching defs:omx
156 omx_vdec *omx = reinterpret_cast<omx_vdec*>(input);
165 error_code = ioctl ( omx->drv_ctx.video_driver_fd,VDEC_IOCTL_GET_NEXT_MSG,
176 else if (omx->async_message_process(input,&vdec_msg) < 0)
187 omx_vdec* omx = reinterpret_cast<omx_vdec*>(input);
196 n = read(omx->m_pipe_in, &id, 1);
205 omx->process_event_cb(omx, id);
217 void post_message(omx_vdec *omx, unsigned char id)
220 DEBUG_PRINT_LOW("omx_vdec: post_message %d pipe out%d\n", id,omx->m_pipe_out);
221 ret_value = write(omx->m_pipe_out, &id, 1);
231 // omx cmd queue constructor
237 // omx cmd queue insert
261 // omx cmd queue pop
497 DEBUG_PRINT_HIGH("In OMX vdec Constructor");
565 DEBUG_PRINT_HIGH("In OMX vdec Destructor");
570 DEBUG_PRINT_HIGH("Waiting on OMX Msg Thread exit");
572 DEBUG_PRINT_HIGH("Waiting on OMX Async Thread exit");
583 DEBUG_PRINT_HIGH("Exit OMX vdec Destructor");
1176 if(!strncmp(role, "OMX.qcom.video.decoder.avc.smoothstreaming",OMX_MAX_STRINGNAME_SIZE)){
1179 role = "OMX.qcom.video.decoder.avc";
1181 if(!strncmp(role, "OMX.qcom.video.decoder.avc.smoothstreaming.secure",OMX_MAX_STRINGNAME_SIZE)){
1184 role = "OMX.qcom.video.decoder.avc.secure";
1187 if(!strncmp(role, "OMX.qcom.video.decoder.avc.secure",OMX_MAX_STRINGNAME_SIZE)){
1190 role = "OMX.qcom.video.decoder.avc";
1234 if(!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg4",\
1249 else if(!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg2",\
1263 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",\
1277 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",\
1295 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx4",\
1313 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",\
1332 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx4",\
1334 "OMX.qcom.video.decoder.divx", OMX_MAX_STRINGNAME_SIZE)))
1353 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",\
1366 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",\
1378 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",\
2246 Executes the OMX flush.
2288 Executes the OMX flush at OUTPUT PORT.
2330 DEBUG_PRINT_HIGH("\n OMX flush o/p Port complete PenBuf(%d)", pending_output_buffers);
2337 Executes the OMX flush at INPUT PORT.
2438 DEBUG_PRINT_HIGH("\n OMX flush i/p Port complete PenBuf(%d)", pending_input_buffers);
2499 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
2523 } else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE)))
2536 else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
2571 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
2596 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE)))
2609 else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
2627 else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
2660 OMX Get Parameter method implementation
2970 OMX Set Parameter method implementation.
2976 OMX Error None if successful.
3057 DEBUG_PRINT_HIGH("set_parameter: frame rate set by omx client : %d",
3219 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
3231 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
3243 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE))
3255 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
3268 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
3269 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
3272 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE))
3285 else if ( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
3286 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
3577 OMX Get Config Method implementation.
3583 OMX Error None if successful.
3700 OMX Set Config method implementation
3706 OMX Error None if successful.
3733 if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc"))
3792 else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4") ||
3793 !strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2"))
3800 else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1"))
3867 OMX GetExtensionIndex method implementaion. <TBD>
3873 OMX Error None if everything successful.
3885 else if (!strncmp(paramName, "OMX.QCOM.index.param.video.SyncFrameDecodingMode",sizeof("OMX.QCOM.index.param.video.SyncFrameDecodingMode") - 1)) {
3889 else if (!strncmp(paramName, "OMX.QCOM.index.param.IndexExtraData",sizeof("OMX.QCOM.index.param.IndexExtraData") - 1))
3895 else if(!strncmp(paramName,"OMX.google.android.index.enableAndroidNativeBuffers", sizeof("OMX.google.android.index.enableAndroidNativeBuffers") - 1)) {
3898 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer2", sizeof("OMX.google.android.index.enableAndroidNativeBuffer2") - 1)) {
3901 else if(!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer", sizeof("OMX.google.android.index.enableAndroidNativeBuffer") - 1)) {
3905 else if(!strncmp(paramName,"OMX.google.android.index.getAndroidNativeBufferUsage", sizeof("OMX.google.android.index.getAndroidNativeBufferUsage") - 1)) {
3942 OMX Component Tunnel Request method implementation. <TBD>
3948 OMX Error None if everything successful.
4198 OMX Use Buffer Heap allocation method implementation.
4204 OMX Error None , if everything successful.
4262 OMX Use Buffer method implementation.
4268 OMX Error None , if everything successful.
4776 OMX Error None if everything went well.
5121 OMX_ERRORTYPE eRet = OMX_ErrorNone; // OMX return type
5361 OMX Error None if everything went successful.
5479 OMX Error None if everything went successful.
5822 OMX Error None if everything successful.
5848 OMX Error None if everything successful.
5863 DEBUG_PRINT_ERROR("WARNING:Rxd DeInit,OMX not in LOADED state %d\n",\
5992 OMX Use EGL Image method implementation <TBD>.
6031 #else //with OMX test app
6070 OMX Component Role Enum method implementation.
6076 OMX Error None if everything is successful.
6084 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE))
6096 if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE))
6108 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE))
6122 else if((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
6123 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
6126 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE))
6140 else if(!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE))
6153 else if( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
6154 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
6646 omx_vdec* omx = NULL;
6658 omx = reinterpret_cast<omx_vdec*>(context);
6661 if (omx->m_debug_timestamp)
6664 !(omx->output_flush_progress) )
6667 omx->m_timestamp_list.pop_min_ts(expected_ts);
6683 omx->post_event (NULL,vdec_msg->status_code,\
6688 omx->post_event (NULL,vdec_msg->status_code,\
6693 omx->post_event (NULL,vdec_msg->status_code,\
6698 omx->post_event (NULL,vdec_msg->status_code,\
6703 omx->post_event (NULL,vdec_msg->status_code,\
6708 omx->post_event (NULL,vdec_msg->status_code,\
6712 omx->post_event (NULL,vdec_msg->status_code,\
6723 ((omxhdr - omx->m_inp_mem_ptr) > omx->drv_ctx.ip_buf.actualcount) )
6729 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6737 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
6751 if (omx->eCompressionFormat == OMX_VIDEO_CodingAVC)
6769 ((omxhdr - omx->m_out_mem_ptr) < omx->drv_ctx.op_buf.actualcount) &&
6771 - omx->drv_ctx.ptr_respbuffer) < omx->drv_ctx.op_buf.actualcount))
6782 if (omxhdr->nFilledLen && ((omx->rectangle.nLeft != vdec_msg->msgdata.output_frame.framesize.left)
6783 || (omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
6784 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
6785 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom)))
6788 omx->rectangle.nLeft, omx->rectangle.nTop,
6789 omx->rectangle.nWidth, omx->rectangle.nHeight);
6790 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
6791 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
6792 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
6793 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
6796 omx->rectangle.nLeft, omx->rectangle.nTop,
6797 omx->rectangle.nWidth, omx->rectangle.nHeight);
6798 omx->post_event (OMX_CORE_OUTPUT_PORT_INDEX, OMX_IndexConfigCommonOutputCrop,
6820 if (omx->output_use_buffer)
6828 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
6832 omx->post_event (NULL, vdec_msg->status_code,
6835 omx->post_event (NULL, vdec_msg->status_code,
6840 omx
6848 omx->m_port_def.nPortIndex = 1;
6849 eRet = omx->update_portdef(&(omx->m_port_def));
8196 // Map driver extradata to corresponding OMX type
8199 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
8212 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
8220 p_extra->eType = OMX_ExtraDataMax; // Invalid type to avoid expose this extradata to OMX client
8231 // otherwise can be overwritten by omx extradata.
8366 if (!(client_extradata & ~DRIVER_EXTRADATA_MASK)) // If no omx extradata is required remove space for terminator
8920 omx = NULL;
8927 omx = reinterpret_cast<omx_vdec*>(client);
8952 if (!omx){
8960 if (omx->drv_ctx.output_format != VDEC_YUV_FORMAT_TILE_4x2 &&
8966 status = c2d.open(omx->drv_ctx.video_resolution.frame_height,
8967 omx->drv_ctx.video_resolution.frame_width,
8975 if (!src_size || src_size > omx->drv_ctx.op_buf.buffer_size ||
8979 src_size,omx->drv_ctx.op_buf.buffer_size,destination_size);
8985 if (buffer_size_req < omx->drv_ctx.op_buf.buffer_size)
8986 buffer_size_req = omx->drv_ctx.op_buf.buffer_size;
8987 if (buffer_alignment_req < omx->drv_ctx.op_buf.alignment)
8988 buffer_alignment_req = omx->drv_ctx.op_buf.alignment;
8999 if (!omx){
9003 if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_TILE_4x2)
9036 if (!omx){
9041 return omx->m_out_mem_ptr;
9048 if (!omx){
9055 index = bufadd - omx->m_out_mem_ptr;
9056 if (index < omx->drv_ctx.op_buf.actualcount) {
9060 if (!omx->in_reconfig && !omx->output_flush_progress) {
9061 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
9079 if (!omx){
9087 if (index < omx->drv_ctx.op_buf.actualcount) {
9088 return &omx->m_out_mem_ptr[index];
9097 buffer_size = omx->drv_ctx.op_buf.buffer_size;
9103 if (buffer_size < omx->drv_ctx.op_buf.buffer_size)
9104 buffer_size = omx->drv_ctx.op_buf.buffer_size;
9105 if (buffer_alignment_req < omx->drv_ctx.op_buf.alignment)
9106 buffer_alignment_req = omx->drv_ctx.op_buf.alignment;
9114 return omx->free_output_buffer(bufhdr);
9115 if (enabled && omx->is_component_secure())
9122 if (index >= omx->drv_ctx.op_buf.actualcount){
9131 omx->free_ion_memory(&op_buf_ion_info[index]);
9141 return omx->free_output_buffer(&omx->m_out_mem_ptr[index]);
9149 eRet = omx->allocate_output_buffer(hComp,bufferHdr,port,appData,bytes);
9152 if (enabled && omx->is_component_secure()) {
9154 omx->is_component_secure());
9163 if (allocated_count >= omx->drv_ctx.op_buf.actualcount) {
9168 eRet = omx->allocate_output_buffer(hComp,&temp_bufferHdr,
9169 port,appData,omx->drv_ctx.op_buf.buffer_size);
9174 if ((temp_bufferHdr - omx->m_out_mem_ptr) >=
9175 omx->drv_ctx.op_buf.actualcount) {
9177 (temp_bufferHdr - omx->m_out_mem_ptr));
9181 op_buf_ion_info[i].ion_device_fd = omx->alloc_map_ion_memory(
9197 omx->free_ion_memory(&op_buf_ion_info[i]);
9234 if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_TILE_4x2)
9237 else if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12)