[vlc-commits] omx-dr: remove jni_SetAndroidSurfaceSize call
Thomas Guillem
git at videolan.org
Sat Nov 15 12:27:23 CET 2014
vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Nov 14 17:10:07 2014 +0100| [706e6bd26ffcb9b577a630a5ba8874b9babea5f6] | committer: Jean-Baptiste Kempf
omx-dr: remove jni_SetAndroidSurfaceSize call
It's now handled in android_window
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=706e6bd26ffcb9b577a630a5ba8874b9babea5f6
---
modules/codec/omxil/omxil.c | 13 +------------
modules/codec/omxil/omxil.h | 1 -
2 files changed, 1 insertion(+), 13 deletions(-)
diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 95e5d0a..95abfb2 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -72,7 +72,6 @@ extern int jni_attach_thread(JNIEnv **env, const char *thread_name);
extern void jni_detach_thread();
extern jobject jni_LockAndGetAndroidJavaSurface();
extern void jni_UnlockAndroidSurface();
-extern void jni_SetAndroidSurfaceSize(int width, int height, int visible_width, int visible_height, int sar_num, int sar_den);
extern bool jni_IsVideoPlayerActivityCreated();
#endif
@@ -2214,10 +2213,7 @@ static int HwBuffer_AllocateBuffers( decoder_t *p_dec, OmxPort *p_port )
}
p_port->p_hwbuf->anwpriv.setOrientation( p_port->p_hwbuf->window_priv,
i_angle );
- video_format_ApplyRotation( &p_port->p_hwbuf->fmt_out,
- &p_port->p_fmt->video );
- } else
- p_port->p_hwbuf->fmt_out = p_port->p_fmt->video;
+ }
if( p_port->p_hwbuf->anwpriv.setup( p_port->p_hwbuf->window_priv,
def->format.video.nFrameWidth,
@@ -2259,13 +2255,6 @@ static int HwBuffer_AllocateBuffers( decoder_t *p_dec, OmxPort *p_port )
goto error;
}
- jni_SetAndroidSurfaceSize( p_port->p_hwbuf->fmt_out.i_width,
- p_port->p_hwbuf->fmt_out.i_height,
- p_port->p_hwbuf->fmt_out.i_visible_width,
- p_port->p_hwbuf->fmt_out.i_visible_height,
- p_port->p_hwbuf->fmt_out.i_sar_num,
- p_port->p_hwbuf->fmt_out.i_sar_den );
-
p_port->p_hwbuf->i_buffers = p_port->definition.nBufferCountActual;
p_port->p_hwbuf->i_max_owned = p_port->p_hwbuf->i_buffers - min_undequeued;
diff --git a/modules/codec/omxil/omxil.h b/modules/codec/omxil/omxil.h
index 3f793b5..911f5f6 100644
--- a/modules/codec/omxil/omxil.h
+++ b/modules/codec/omxil/omxil.h
@@ -76,7 +76,6 @@ typedef struct HwBuffer
void *p_library;
void *window;
- video_format_t fmt_out;
#if defined(USE_IOMX)
native_window_api_t native_window;
native_window_priv_api_t anwpriv;
More information about the vlc-commits
mailing list