hi,
I'm studying how the JPEG codec register with android system.
The sw JPEG codec seems register with android system by following code:

    static SkTRegistry<SkImageDecoder*, SkStream*> gDReg(DFactory);
but I couldn't found how OMAP register with android system, I found the code
in omap android:
    SkImageDecoder_HWJPEG_Factory();
but doesn't found any body call this function.
do you known how the OMAP register jpeg codec with android system?
 and, how the generated libskiahw.so is link with android system?

Besides, I found the code in OMAP hw jpeg codec seems link to OpenMax:
    eError = TIOMX_GetHandle(&pOMXHandle, strTIJpegDec, (void *)this,
&JPEGCallBack);
    ....
Why OMAP hw jpeg codec link to OpenMAX? does it has any advantage? Could I
just replace the code in sw jpeg with some code calling hw directly?
Does any one who want to write a hw jpeg codec should follow the sample in
OMAP to write a correct one?

The OMAP hw jpeg codec is too complex for me, and I even not familiar with
OpenMAX..>_<

Thanks in andvance for your help.
On Tue, Dec 29, 2009 at 5:59 PM, liang ming-chuan <[email protected]>wrote:

> Thanks for your quickly response..^_^
>
>
> On Tue, Dec 29, 2009 at 4:37 PM, Jim Huang <[email protected]> wrote:
>
>> 2009/12/29 liang ming-chuan <[email protected]>:
>> > I would like to replace the android jpeg codec with our own hw codec,
>> > would anybody tell me where to start from?
>> > Thanks in advance for your help.
>> >
>>
>> hi Robert,
>>
>> Please check the wiki:
>>
>> https://gforge.ti.com/gf/project/omapandroid/wiki/?pagename=Package+and+Release+Notes
>>
>> Audio Decoder, Audio Encoder, Video Encoder, Audio/Video Decoder and
>> JPEG Decoder
>> Change list:
>>
>> /hardware/ti/omap3/libskiahw/Android.mk
>> /hardware/ti/omap3/libskiahw/SkImageDecoderTest?.cpp
>> /hardware/ti/omap3/libskiahw/SkImageDecoder?_libtijpeg.cpp
>> /hardware/ti/omap3/libskiahw/SkImageDecoder?_libtijpeg.h
>> /hardware/ti/omap3/libskiahw/SkImageEncoderTest?.cpp
>> /hardware/ti/omap3/libskiahw/SkImageEncoder?_libtijpeg.cpp
>> /hardware/ti/omap3/libskiahw/SkImageEncoder?_libtijpeg.h
>>
>> You can refer to the modifications from OMAPZoom Android.
>>
>> Sincerely,
>> Jim Huang (jserv)
>> http://0xlab.org/
>>
>> --
>> unsubscribe: 
>> [email protected]<android-porting%[email protected]>
>> website: http://groups.google.com/group/android-porting
>>
>
>
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to