Hi.

On Mon, 9 Jan 2017 01:50:40 -0800 (PST) Milos Ladni
<milosladicor...@gmail.com> wrote:
>  Hello Manuel,
> I just added  hw JPEG decoder in my apps.
> Now i can do simultaneous h264 encoding, jpeg encoding and jpeg
> decoding with just ~20% CPU and 25 fps.

Great.

> How app works:
> Take frame from camera tv-in CVBS 720x576, show it on display by
> sunxi display engine in smaller resolution 542x359
> position x30y121 (use display scaler mode), encode raw frame to jpeg 
> (VGA-QVGA) /tmp/jpegTestXXX.jpg, after that decode
> the same frame from previous encoded jpeg /tmp/jpegTestXXX.jpg to
> raw, show decodec frame on display (right up position 200x150
> x580y121), encode raw frame from camera to h264 /tmp/tvin.h264 and
> mux it to mkv container /tmp/tvin.mkv.

That is something complicated that you are making, but if this is what
you want then okay. (You know, you are encoding and then decode to
display, is funny and is also a good test to see all is working.)

> 
> Do you know for any simple PoC example for h264 decoder? 

There isn't any. Sorry.
The h264 decoder work was added directly in the form of vdpau backend,
so a poc never existed.

> I would like to add all four operation jpeg-h264 encoder-decoder to
> my example app.
> I know for vdpau but i think that it's a little more complicated. I
> need simple PoC h264 decoder app.

With this codecs, things get more complex and is more easy to just try
to use an existent media api with already media application support,
than have to write everything for scratch.

For you case, as you are doing everything as low-level and wants to do
simultaneous tasks, it will not be so simples as to just implement what
is need for using vdpau as the api. You will need to make changes to
libvdpau-sunxi to the point of reimplementing a new h264 decoder.

You have to consider if the result wanted is worth the trouble.

-- 
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to