Home | History | Annotate | Download | only in src

Lines Matching refs:omx

139     omx_vdec *omx = reinterpret_cast<omx_vdec*>(input);
141 pfd.fd = omx->drv_ctx.video_driver_fd;
158 v4l2_buf.length = omx->drv_ctx.num_planes;
174 if (omx->async_message_process(input,&vdec_msg) < 0) {
190 if (omx->async_message_process(input,&vdec_msg) < 0) {
203 if (omx->async_message_process(input,&vdec_msg) < 0) {
212 if (omx->async_message_process(input,&vdec_msg) < 0) {
219 if (omx->async_message_process(input,&vdec_msg) < 0) {
231 if (omx->async_message_process(input,&vdec_msg) < 0) {
238 omx->buf_ref_remove(ptr[0], ptr[1]);
247 v4l2_buf.length = omx->drv_ctx.num_planes;
259 if (omx->async_message_process(input,&vdec_msg) < 0) {
276 omx_vdec* omx = reinterpret_cast<omx_vdec*>(input);
284 n = read(omx->m_pipe_in, &id, 1);
291 omx->process_event_cb(omx, id);
302 void post_message(omx_vdec *omx, unsigned char id)
305 DEBUG_PRINT_LOW("omx_vdec: post_message %d pipe out%d\n", id,omx->m_pipe_out);
306 ret_value = write(omx->m_pipe_out, &id, 1);
316 // omx cmd queue constructor
322 // omx cmd queue insert
342 // omx cmd queue pop
563 DEBUG_PRINT_HIGH("In OMX vdec Constructor");
713 DEBUG_PRINT_HIGH("In OMX vdec Destructor");
718 DEBUG_PRINT_HIGH("Waiting on OMX Msg Thread exit");
721 DEBUG_PRINT_HIGH("Waiting on OMX Async Thread exit");
739 DEBUG_PRINT_HIGH("Exit OMX vdec Destructor");
1258 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",
1321 if (!strncmp(role, "OMX.qcom.video.decoder.avc.smoothstreaming",OMX_MAX_STRINGNAME_SIZE)) {
1324 role = "OMX.qcom.video.decoder.avc";
1326 if (!strncmp(role, "OMX.qcom.video.decoder.avc.smoothstreaming.secure",OMX_MAX_STRINGNAME_SIZE)) {
1329 role = "OMX.qcom.video.decoder.avc.secure";
1340 if (!strncmp(role, "OMX.qcom.video.decoder.avc.secure",OMX_MAX_STRINGNAME_SIZE)) {
1344 role = (OMX_STRING)"OMX.qcom.video.decoder.avc";
1389 if (!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg4",\
1403 } else if (!strncmp(drv_ctx.kind,"OMX.qcom.video.decoder.mpeg2",\
1416 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",\
1428 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",\
1443 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx4",\
1459 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",\
1476 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",\
1488 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",\
1499 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",\
1510 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vp8", \
1685 if (strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vp8", \
2275 Executes the OMX flush.
2321 Executes the OMX flush at OUTPUT PORT.
2357 DEBUG_PRINT_HIGH("\n OMX flush o/p Port complete PenBuf(%d)", pending_output_buffers);
2364 Executes the OMX flush at INPUT PORT.
2451 DEBUG_PRINT_HIGH("\n OMX flush i/p Port complete PenBuf(%d)", pending_input_buffers);
2507 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))) {
2531 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE)) {
2542 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vp8",OMX_MAX_STRINGNAME_SIZE)) {
2544 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE)) {
2571 OMX Get Parameter method implementation
2827 OMX Set Parameter method implementation.
2833 OMX Error None if successful.
2900 DEBUG_PRINT_HIGH("set_parameter: frame rate set by omx client : %lu",
3070 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE)) {
3077 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE)) {
3084 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE)) {
3091 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE)) {
3098 } else if ((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
3099 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
3107 } else if ( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
3108 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
3116 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vp8",OMX_MAX_STRINGNAME_SIZE)) {
3413 OMX Get Config Method implementation.
3419 OMX Error None if successful.
3496 OMX Set Config method implementation
3502 OMX Error None if successful.
3521 if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc")) {
3575 } else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4") ||
3576 !strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2")) {
3581 } else if (!strcmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1")) {
3660 DEBUG_PRINT_HIGH("set_config: frame rate set by omx client : %d",
3719 OMX GetExtensionIndex method implementaion. <TBD>
3725 OMX Error None if everything successful.
3735 } else if (!strncmp(paramName, "OMX.QCOM.index.param.video.SyncFrameDecodingMode",sizeof("OMX.QCOM.index.param.video.SyncFrameDecodingMode") - 1)) {
3737 } else if (!strncmp(paramName, "OMX.QCOM.index.param.IndexExtraData",sizeof("OMX.QCOM.index.param.IndexExtraData") - 1)) {
3741 else if (!strncmp(paramName,"OMX.google.android.index.enableAndroidNativeBuffers", sizeof("OMX.google.android.index.enableAndroidNativeBuffers") - 1)) {
3743 } else if (!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer2", sizeof("OMX.google.android.index.enableAndroidNativeBuffer2") - 1)) {
3745 } else if (!strncmp(paramName,"OMX.google.android.index.useAndroidNativeBuffer", sizeof("OMX.google.android.index.enableAndroidNativeBuffer") - 1)) {
3748 } else if (!strncmp(paramName,"OMX.google.android.index.getAndroidNativeBufferUsage", sizeof("OMX.google.android.index.getAndroidNativeBufferUsage") - 1)) {
3752 else if (!strncmp(paramName, "OMX.google.android.index.storeMetaDataInBuffers", sizeof("OMX.google.android.index.storeMetaDataInBuffers") - 1)) {
3788 OMX Component Tunnel Request method implementation. <TBD>
3794 OMX Error None if everything successful.
4135 OMX Use Buffer Heap allocation method implementation.
4141 OMX Error None , if everything successful.
4194 OMX Use Buffer method implementation.
4200 OMX Error None , if everything successful.
4646 OMX Error None if everything went well.
4971 OMX_ERRORTYPE eRet = OMX_ErrorNone; // OMX return type
5182 OMX Error None if everything went successful.
5279 OMX Error None if everything went successful.
5728 OMX Error None if everything successful.
5754 OMX Error None if everything successful.
5768 DEBUG_PRINT_ERROR("WARNING:Rxd DeInit,OMX not in LOADED state %d\n",\
5862 OMX Use EGL Image method implementation <TBD>.
5901 #else //with OMX test app
5939 OMX Component Role Enum method implementation.
5945 OMX Error None if everything is successful.
5953 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg4",OMX_MAX_STRINGNAME_SIZE)) {
5961 if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.mpeg2",OMX_MAX_STRINGNAME_SIZE)) {
5968 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.h263",OMX_MAX_STRINGNAME_SIZE)) {
5978 else if ((!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx",OMX_MAX_STRINGNAME_SIZE)) ||
5979 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.divx311",OMX_MAX_STRINGNAME_SIZE))
5990 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.avc",OMX_MAX_STRINGNAME_SIZE)) {
5998 } else if ( (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vc1",OMX_MAX_STRINGNAME_SIZE)) ||
5999 (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.wmv",OMX_MAX_STRINGNAME_SIZE))
6008 } else if (!strncmp(drv_ctx.kind, "OMX.qcom.video.decoder.vp8",OMX_MAX_STRINGNAME_SIZE)) {
6487 omx_vdec* omx = NULL;
6499 omx = reinterpret_cast<omx_vdec*>(context);
6504 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6509 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6514 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6519 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6524 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6529 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6533 omx->post_event ((unsigned)NULL, vdec_msg->status_code,\
6543 omxhdr=omx->m_inp_mem_ptr+v4l2_buf_ptr->index;
6545 ((omxhdr - omx->m_inp_mem_ptr) > omx->drv_ctx.ip_buf.actualcount) ) {
6551 omx->omx_report_error ();
6556 omx->post_event ((unsigned int)omxhdr,vdec_msg->status_code,
6564 omx->post_event ((unsigned int)timestamp, vdec_msg->status_code,
6574 omxhdr=omx->m_out_mem_ptr+v4l2_buf_ptr->index;
6580 ((omxhdr - omx->m_out_mem_ptr) < omx->drv_ctx.op_buf.actualcount) &&
6582 - omx->drv_ctx.ptr_respbuffer) < omx->drv_ctx.op_buf.actualcount)) {
6583 if (omx->dynamic_buf_mode && vdec_msg->msgdata.output_frame.len) {
6613 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
6616 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd);
6619 if (omx->dynamic_buf_mode && !(v4l2_buf_ptr->flags & V4L2_QCOM_BUF_FLAG_READONLY)) {
6620 omx->buf_ref_remove(omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].pmem_fd, omxhdr->nOffset);
6625 omx->post_event ((unsigned)NULL,(unsigned int)omxhdr,
6633 omx->drv_ctx.ptr_outputbuffer[v4l2_buf_ptr->index].bufferaddr;
6636 (omxhdr->nFilledLen != omx->prev_n_filled_len)) {
6637 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
6638 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
6640 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
6641 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
6645 if (omxhdr->nFilledLen && (((unsigned)omx->rectangle.nLeft !=
6647 || ((unsigned)omx->rectangle.nTop != vdec_msg->msgdata.output_frame.framesize.top)
6648 || (omx->rectangle.nWidth != vdec_msg->msgdata.output_frame.framesize.right)
6649 || (omx->rectangle.nHeight != vdec_msg->msgdata.output_frame.framesize.bottom))) {
6650 if ((vdec_msg->msgdata.output_frame.framesize.bottom != omx->drv_ctx.video_resolution.frame_height) ||
6651 (vdec_msg->msgdata.output_frame.framesize.right != omx->drv_ctx.video_resolution.frame_width)) {
6652 omx->drv_ctx.video_resolution.frame_height = vdec_msg->msgdata.output_frame.framesize.bottom;
6653 omx->drv_ctx.video_resolution.frame_width = vdec_msg->msgdata.output_frame.framesize.right;
6655 omx
6656 omx->drv_ctx.video_resolution.frame_height, vdec_msg->msgdata.output_frame.framesize.bottom);
6659 omx->rectangle.nWidth, vdec_msg->msgdata.output_frame.framesize.right,
6660 omx->rectangle.nHeight, vdec_msg->msgdata.output_frame.framesize.bottom);
6661 omx->rectangle.nLeft = vdec_msg->msgdata.output_frame.framesize.left;
6662 omx->rectangle.nTop = vdec_msg->msgdata.output_frame.framesize.top;
6663 omx->rectangle.nWidth = vdec_msg->msgdata.output_frame.framesize.right;
6664 omx->rectangle.nHeight = vdec_msg->msgdata.output_frame.framesize.bottom;
6668 if (omx->is_video_session_supported()) {
6669 omx->post_event (NULL, vdec_msg->status_code,
6672 if (!omx->client_buffers.update_buffer_req()) {
6675 omx->post_event (OMX_CORE_OUTPUT_PORT_INDEX, OMX_IndexConfigCommonOutputCrop,
6680 omx->prev_n_filled_len = omxhdr->nFilledLen;
6696 if (omx->output_use_buffer)
6703 omx->post_event ((unsigned int)omxhdr, vdec_msg->status_code,
6706 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6709 omx->post_event ((unsigned int)NULL, vdec_msg->status_code,
6714 omx->post_event (OMX_CORE_OUTPUT_PORT_INDEX, OMX_IndexParamPortDefinition,
8547 omx = NULL;
8554 omx = reinterpret_cast<omx_vdec*>(client);
8583 if (!omx) {
8591 pthread_mutex_lock(&omx->c_lock);
8592 if (omx->drv_ctx.output_format != VDEC_YUV_FORMAT_NV12 &&
8599 status = c2d.open(omx->drv_ctx.video_resolution.frame_height,
8600 omx->drv_ctx.video_resolution.frame_width,
8608 if (!src_size || src_size > omx->drv_ctx.op_buf.buffer_size ||
8612 src_size,omx->drv_ctx.op_buf.buffer_size,destination_size);
8618 if (buffer_size_req < omx->drv_ctx.op_buf.buffer_size)
8619 buffer_size_req = omx->drv_ctx.op_buf.buffer_size;
8620 if (buffer_alignment_req < omx->drv_ctx.op_buf.alignment)
8621 buffer_alignment_req = omx->drv_ctx.op_buf.alignment;
8625 pthread_mutex_unlock(&omx->c_lock);
8634 if (!omx) {
8638 pthread_mutex_lock(&omx->c_lock);
8639 if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12)
8667 pthread_mutex_unlock(&omx->c_lock);
8673 if (!omx) {
8678 return omx->m_out_mem_ptr;
8685 if (!omx) {
8693 index = bufadd - omx->m_out_mem_ptr;
8694 if (index < omx->drv_ctx.op_buf.actualcount) {
8698 if (!omx->in_reconfig && !omx->output_flush_progress && bufadd->nFilledLen) {
8699 pthread_mutex_lock(&omx->c_lock);
8700 status = c2d.convert(omx->drv_ctx.ptr_outputbuffer[index].pmem_fd,
8701 omx->m_out_mem_ptr->pBuffer, bufadd->pBuffer, pmem_fd[index],
8703 pthread_mutex_unlock(&omx->c_lock);
8721 if (!omx) {
8729 if (index < omx->drv_ctx.op_buf.actualcount) {
8730 return &omx->m_out_mem_ptr[index];
8739 pthread_mutex_lock(&omx->c_lock);
8741 buffer_size = omx->drv_ctx.op_buf.buffer_size;
8749 if (buffer_size < omx->drv_ctx.op_buf.buffer_size)
8750 buffer_size = omx->drv_ctx.op_buf.buffer_size;
8751 if (buffer_alignment_req < omx->drv_ctx.op_buf.alignment)
8752 buffer_alignment_req = omx->drv_ctx.op_buf.alignment;
8754 pthread_mutex_unlock(&omx->c_lock);
8763 return omx->free_output_buffer(bufhdr);
8764 if (enabled && omx->is_component_secure())
8771 if (index >= omx->drv_ctx.op_buf.actualcount) {
8781 omx->free_ion_memory(&op_buf_ion_info[index]);
8789 pthread_mutex_lock(&omx->c_lock);
8792 pthread_mutex_unlock(&omx->c_lock);
8794 return omx->free_output_buffer(&omx->m_out_mem_ptr[index]);
8802 eRet = omx->allocate_output_buffer(hComp,bufferHdr,port,appData,bytes);
8805 if (enabled && omx->is_component_secure()) {
8807 omx->is_component_secure());
8816 if (allocated_count >= omx->drv_ctx.op_buf.actualcount) {
8821 eRet = omx->allocate_output_buffer(hComp,&temp_bufferHdr,
8822 port,appData,omx->drv_ctx.op_buf.buffer_size);
8827 if ((temp_bufferHdr - omx->m_out_mem_ptr) >=
8828 omx->drv_ctx.op_buf.actualcount) {
8830 (temp_bufferHdr - omx->m_out_mem_ptr));
8835 op_buf_ion_info[i].ion_device_fd = omx->alloc_map_ion_memory(
8850 omx->free_ion_memory(&op_buf_ion_info[i]);
8888 if (omx->drv_ctx.output_format == VDEC_YUV_FORMAT_NV12)