FFmpeg
Functions
mediacodec_surface.c File Reference
#include <android/native_window.h>
#include <jni.h>
#include "libavutil/mem.h"
#include "ffjni.h"
#include "mediacodec_surface.h"

Go to the source code of this file.

Functions

FFANativeWindowff_mediacodec_surface_ref (void *surface, void *native_window, void *log_ctx)
 
int ff_mediacodec_surface_unref (FFANativeWindow *window, void *log_ctx)
 

Function Documentation

◆ ff_mediacodec_surface_ref()

FFANativeWindow* ff_mediacodec_surface_ref ( void *  surface,
void *  native_window,
void *  log_ctx 
)

Definition at line 30 of file mediacodec_surface.c.

Referenced by ff_mediacodec_dec_init(), and mediacodec_init().

◆ ff_mediacodec_surface_unref()

int ff_mediacodec_surface_unref ( FFANativeWindow window,
void *  log_ctx 
)

Definition at line 59 of file mediacodec_surface.c.

Referenced by ff_mediacodec_dec_unref(), and mediacodec_close().