how thumbnail works in Open Core

by waterblood » Wed, 11 Mar 2009 07:34:32 GMT


Sponsored Links
 Hi All,

   I have one question about thumbnail function in
opencore,pv_frame_metadata_utility.cpp.

Where parser and decoder node get to know whether it works in
thumbnail node? In opencore 2.0 release, the parser will pass down an
eos buffer to decoder node in last if it in thumbnail mode. That will
help codec to return the decoded video frame buffer. For some case,
the codec will not output video frame before receiving a few input
bitstreams. Especiallly ,in h264 codec spec, there is a reorder
options in it which make the codec may delay output the decoded frame
buffer to max 16 frames. But in opencore 2.1, the parser just seems
works as normal playing, and send out one frame bitstream, which is
not enough for decoder output one video frame.


--~--~---------~--~----~------------~-------~--~----~



how thumbnail works in Open Core

by rktb » Wed, 11 Mar 2009 13:30:28 GMT


 Are you trying to point out a difference between OpenCORE 2.0 and
OpenCORE 2.1? If so, can you please restate the difference?

Your understanding is right. The parser node will send down only frame
to the decoder node and then follow it up with an EOS.


-Ravi



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


how thumbnail works in Open Core

by waterblood » Thu, 12 Mar 2009 02:14:25 GMT


 Thanks for your reply. It seems there is no change between 2.0 and 2.1
in thumbnail. I can get thumbnail now.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Can't connect to SPP devic

Hi, I currently run android 1.5 on a HTC magic. I'm trying to
communicate from my phone to a bluetooth device that supports SPP. I
can't seem to be able to connect to the device. I have tryed two ways
to connect:
1- via the official 2.0 API using the backport-android to make it work
on android 1.5
2- via the unofficial bluetooth api 0.3

Both method give me an error around the same connection process.

With API 2.0, I can discover devices and pair with them. Then i create
a socket which seems to work, but when I use the .connect() method, I
get this error in CatLog:    IOException Unable to start Service
Discovery. This is related to doSdp() in public class
BluetoothSocket.

Searching the web, it seems this error is related to a wrong UUID ...
but I am using the SPP UUID properly.

So, I thought the problem could be backport android, so I tried with
the unofficial API from Gerdavax ( http://code.google.com/p/android-bluetooth/
)

To connect to a device with this API you first create a socket, then
you connect using the .openSocket( port number) method. The weird
thing is, if I try with a new port, it connects, if I try a second
time, it wont work, unless I change the port. I get a similar related
error of SDP.


Here is my code for API 2.0, but im pretty sure its ok.

public class RegulVoile extends Activity {

        private BluetoothAdapter adapteurGen= null;
    private BluetoothDevice moduleDistant = null;
    public String adressTrouver = null;
    private BluetoothSocket socketBt = null;
    private static final UUID MON_UUID =
UUID.fromString("00001101-0000-1000-8000-00805F9B34FB");
        /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        //final TextView modeText=
(TextView)this.findViewById(R.id.txt_state);
        //final TextView infoText=
(TextView)this.findViewById(R.id.txt_name);
        Button connectionBt =
(Button)this.findViewById(R.id.btn_connexion);

        adapteurGen = BluetoothAdapter.getDefaultAdapter();



        connectionBt.setOnClickListener(new OnClickListener(){
                public void onClick(View v){

                        //make SURE there is not a discovery going on.
                adapteurGen.cancelDiscovery();

                        moduleDistant = adapteurGen.getRemoteDevice("00:1D:
43:00:D1:0D");

                        try{

                                socketBt =
moduleDistant.createRfcommSocketToServiceRecord(MON_UUID);

                        } catch (IOException e) {

                        }



                //try the connect
                        try {

                                socketBt.connect();
                        } catch (IOException e) {
                            try {
                                e.printStackTrace();
                                socketBt.close();
                            } catch (IOException e2) {
                            }
                        }


                }
        });

    }

    @Override
        protected void onStop() {
        try {
                        socketBt.close();
                } catch (IOException e1) {

                        e1.printStackTrace();
                }
           super.onStop();
        }

        @Override
        protected void onDestroy() {
                try {
                        socketBt.close();
                } catch (IOException e1) {

                        e1.printStackTrace();
                }
           super.onDestroy();
        }
    }

-- 

2. How does battery charge when android device is powered off

Is there any documentation which says how does android device charge
when in powered off state? Which piece of sofware invokes this, or
this is completely hardware level. Basically when device is powered
off, I do not want charging leds to glow, so was thinking how to get
about it.

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. IPSec and Android

4. ScrollableSurfaceView and ScrollableGLSurfaceView

5. Stop an Activity (Urgent)

6. Trusted Platform Modul

7. Android's Antivirus/Firewall architectur