Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg: libjnivideo on gingerbread #2

Open
alexcohn opened this issue May 1, 2011 · 2 comments
Open

ffmpeg: libjnivideo on gingerbread #2

alexcohn opened this issue May 1, 2011 · 2 comments

Comments

@alexcohn
Copy link

alexcohn commented May 1, 2011

Hi,

I tried to run the ffpmeg app on Galaxy S with v. 2.3.3. Issue #2 was with libjnivideo - due to change of name of the native surface field in android/view/Surface class.

Follows my patch for surface.cpp, function getNativeSurface():

static Surface\* getNativeSurface(JNIEnv\* env, jobject jsurface) {  jclass clazz = env->FindClass("android/view/Surface");  jfieldID field_surface = env->GetFieldID(clazz, "mSurface", "I");  if(field_surface == NULL) { #ifdef ANDROID_VIEW_SURFACE_JNI_ID // using gingerbread version of <surfaceflinger/Surface.h>   env->ExceptionClear();   field_surface = env->GetFieldID(clazz, ANDROID_VIEW_SURFACE_JNI_ID, "I"); #endif  }  if(field_surface == NULL) {  return NULL;  }  return (Surface *) env->GetIntField(jsurface, field_surface); }
@ghost
Copy link

ghost commented Sep 23, 2011

hi, you should change the mSurface to mNativeSurface with under above 2.3.
BTW, how to compile with neon or vfp?

@havlenapetr
Copy link
Owner

yes I know, better way will be add ifdef for OS version, neon or vfp support zou must set in config.h of ffmpeg, but I think that better way is compile ffmpeg with theirs makefiles and than use this libffmpeg.so like prebuilt library in android's project

havlenapetr pushed a commit that referenced this issue Dec 7, 2011
This CL is #2 of multiple CL's to remove the zoom code
from webview and place it into webkit.ZoomManager. Each
commit is only part of the entire refactoring so there
are many ZoomManager.* variables still referenced from
WebView.

Change-Id: I21f6517dff46b65a277bc67120ffabe043098e5e
http://b/2671604
havlenapetr pushed a commit that referenced this issue Dec 7, 2011
Also improve history formatting
Here's a smaple of what it looks like:

Detailed Statistics (Recent history):  20  40s
-------------------------------------------------------------------------------------
  com.android.contacts                                        : 9/45%      11/27%
    [email protected]/com.google                            :   3/15%      4/11%
    [email protected]/com.google                            :   3/15%      3/9%
    [email protected]/com.google                             :   3/15%      2/6%
-------------------------------------------------------------------------------------
  gmail-ls                                                    : 6/30%      22/56%
-------------------------------------------------------------------------------------
  com.android.calendar                                        : 3/15%      5/14%
    [email protected]/com.google                            :   1/5%       4/12%
    [email protected]/com.google                            :   1/5%       0/0%
    [email protected]/com.google                             :   1/5%       0/0%
-------------------------------------------------------------------------------------
  com.google.android.apps.plus.content.EsGooglePhotoProvider  : 2/10%      0/1%
    [email protected]/com.google                            :   1/5%       0/1%
    [email protected]/com.google                            :   1/5%       0/0%
-------------------------------------------------------------------------------------

Recent Sync History
  #1  : 2011-09-23 15:18:35   SERVER    0.8s  [email protected]/com.google   gmail-ls
  #2  : 2011-09-23 15:17:56   SERVER    1.3s  00:38
  #3  : 2011-09-23 15:17:52   SERVER    4.6s  00:04
  #4  : 2011-09-23 15:17:45   SERVER    1.7s  00:06
  #5  : 2011-09-23 15:16:51    LOCAL    0.8s  [email protected]/com.google  com.android.contacts
  #6  : 2011-09-23 15:16:51    LOCAL    0.7s  [email protected]/com.google   com.android.contacts
  #7  : 2011-09-23 15:16:50    LOCAL    0.7s  [email protected]/com.google  com.android.contacts
  #8  : 2011-09-23 15:15:35    LOCAL    0.7s  [email protected]/com.google   com.android.contacts
  #9  : 2011-09-23 15:15:34    LOCAL    0.8s  [email protected]/com.google  com.android.contacts
  #10 : 2011-09-23 15:15:33    LOCAL    1.9s  [email protected]/com.google  com.android.contacts
  #11 : 2011-09-23 15:14:37    LOCAL    1.3s  [email protected]/com.google   com.android.contacts
  #12 : 2011-09-23 15:14:35    LOCAL    2.0s  [email protected]/com.google  com.android.contacts
  #13 : 2011-09-23 15:14:32    LOCAL    2.2s  [email protected]/com.google  com.android.contacts
  #14 : 2011-09-23 15:13:41   SERVER    1.3s  [email protected]/com.google   gmail-ls
  #15 : 2011-09-23 15:13:34    LOCAL    0.3s  [email protected]/com.google   com.android.calendar
  #16 : 2011-09-23 15:13:34    LOCAL    0.4s  [email protected]/com.google  com.android.calendar
  #17 : 2011-09-23 15:13:33   SERVER    0.1s  [email protected]/com.google  com.google.android.apps.plus.content.EsGooglePhotoProvider
  #18 : 2011-09-23 15:13:33   SERVER    0.5s  [email protected]/com.google  com.google.android.apps.plus.content.EsGooglePhotoProvider
  #19 : 2011-09-23 15:13:29    LOCAL    4.9s  [email protected]/com.google  com.android.calendar
  #20 : 2011-09-23 15:13:28   SERVER   13.1s  [email protected]/com.google   gmail-ls

Change-Id: Idc904e2e18a373b6d2d10af65b02683c11fd8d90
havlenapetr pushed a commit that referenced this issue Dec 7, 2011
After using the new format for a few days, I decided it's better to ahve the auth & acct
info on every row because we will sometimes grep the data and won't see it if the auth/acct
is ommited.

Also added the "time since last sync" to every row. This is also very useful.

Detailed Statistics (Recent history):  31 (# of times) 119s (sync time)
-------------------------------------------------------------------------------------
  subscribedfeeds                                             : 8/25%      17s/14%
    [email protected]/com.google                            :   5/16%      16s/13%
    [email protected]/com.google                            :   3/9%       1s/0%
-------------------------------------------------------------------------------------
  com.android.calendar                                        : 5/16%      10s/8%
    [email protected]/com.google                            :   3/9%       0s/0%
    [email protected]/com.google                            :   2/6%       9s/8%
-------------------------------------------------------------------------------------
  com.google.android.apps.books                               : 3/9%       26s/22%
-------------------------------------------------------------------------------------
  com.android.contacts                                        : 3/9%       14s/11%
    [email protected]/com.google                            :   2/6%       9s/7%
    [email protected]/com.google                            :   1/3%       5s/4%
-------------------------------------------------------------------------------------
  com.android.browser                                         : 3/9%       12s/10%
-------------------------------------------------------------------------------------
  com.google.android.music.MusicContent                       : 3/9%       7s/6%
-------------------------------------------------------------------------------------
  gmail-ls                                                    : 2/6%       12s/10%
-------------------------------------------------------------------------------------
  com.google.android.apps.plus.content.EsGooglePhotoProvider  : 2/6%       1s/0%
    [email protected]/com.google                            :   1/3%       1s/0%
    [email protected]/com.google                            :   1/3%       0s/0%
-------------------------------------------------------------------------------------
  com.google.android.apps.plus.content.EsProvider             : 1/3%       10s/9%
-------------------------------------------------------------------------------------
  com.google.android.gallery3d.GooglePhotoProvider            : 1/3%       5s/5%
-------------------------------------------------------------------------------------

Recent Sync History
  #1  : 2011-10-03 13:26:41   SERVER    0.0s            [email protected]/com.google  com.android.calendar
  #2  : 2011-10-03 13:26:40    LOCAL    1.8s            [email protected]/com.google  subscribedfeeds
  #3  : 2011-10-03 13:26:40    LOCAL    0.1s            [email protected]/com.google  subscribedfeeds
  #4  : 2011-10-03 13:26:37   SERVER    0.1s         4  [email protected]/com.google  com.android.calendar
  #5  : 2011-10-03 13:26:37    LOCAL    0.1s            [email protected]/com.google  com.google.android.apps.books
  #6  : 2011-10-03 13:26:30   SERVER    0.9s         7  [email protected]/com.google  com.google.android.apps.books
  #7  : 2011-10-03 13:26:25   SERVER    1.1s            [email protected]/com.google  gmail-ls
  #8  : 2011-10-03 13:26:13   SERVER   11.8s        11  [email protected]/com.google  gmail-ls
  #9  : 2011-10-03 13:26:08   SERVER    5.0s            [email protected]/com.google  com.android.contacts
  #10 : 2011-10-03 13:26:08   SERVER    0.7s        29  [email protected]/com.google  com.android.calendar
  #11 : 2011-10-03 13:26:07   SERVER    0.7s            [email protected]/com.google  com.android.browser
  #12 : 2011-10-03 13:26:04   SERVER    3.0s         2  [email protected]/com.google  com.android.browser
  #13 : 2011-10-03 13:26:04   SERVER   25.9s        25  [email protected]/com.google  com.google.android.apps.books

Change-Id: I8da004f469d136fd9a86310b262eba61197fd0e7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants