Android release: Eclair on TI SDP3430 board
Objective: To integrate the video encoding functionality(H.264 codec)
using proprietary mechanism instead of onboard DSP
Primary code changes: OMX component for video encoding and CameraHal
modified (see below for details)

Files in these directories are modified:
hardware/ti/omx/video/src/openmax_il/video_encode/inc/
hardware/ti/omx/video/src/openmax_il/video_encode/src/
hardware/ti/omap3/camera/

------------------------------------------------------------------------------------------------
Problem Description:
        Video camera preview starts. But fails on the author driver
PREPARE command.

Problem details:
        From the logs I can see that the preview starts. After that we
try to initialize the camcorder.
[VIDIOC_S_CTRL, VIDIOC_QUERYBUF ioctl's have passed by now, and the
driver ioctl's of VIDIOC_QBUF and VIDIOC_DQBUF are working fine now ]

OMX core gets loaded. After this AuthorDriver will report the below
commands and its status:
AUTHOR_INIT  PVMFSuccess
AUTHOR_SET_VIDEO_SOURCE  PVMFSuccess
AUTHOR_SET_OUTPUT_FORMAT  PVMFSuccess
AUTHOR_SET_VIDEO_ENCODER  PVMFSuccess   (H263 is set)

>From the log, now OMX_Core loads the OMX.TI.Video.encoder component
(which is what I have replaced)
Following the Set/Get parameter invocations happen from CameraHal, and
below are their results:
SetParameter:OMX_IndexParamStandardComponentRole     exit status = 0
GetParameter :OMX_IndexParamVideoInit   -do-
GetParameter:OMX_IndexParamPortDefinition  -do-
GetParameter:OMX_IndexParamPortDefinition   -do-
GetParameter:OMX_IndexParamVideoPortFormat   -do-

CameraService log shows the camera is now in preview mode, and the
preview frames are coming from the driver (can be seen in the LCD)

In the Author driver, I can see that some component has issued a
PREPARE command. CommandCompleted(const PVCmdResponse&aResponse) in
the Author driver is invoked, which reports that error is: -15. From
the Packet Video framework, this error code refers to
PVMFErrNoResources. This is the place where I am not getting the clear
flow and request for your
help.

Now, to debug I had some debug messages in below packet video files:
a) external/opencore/engines/2way/src/pv_2way_engine.cpp
b) external/opencore/nodes/pvomxencnode/src/pvmf_omx_enc_node.cpp

My debug messages arent coming from the PVMF. So I want to understand
the flow between the OMX, packet video and authordriver. That will
help me know, who has set the error value to PVMFErrNoResources and
invoked the AuthorDriver::CommandCompleted().

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

To unsubscribe from this group, send email to 
android-beginners+unsubscribegooglegroups.com or reply to this email with the 
words "REMOVE ME" as the subject.

Reply via email to