mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
amc: Use new JNI utils almost everywhere
This commit is contained in:
parent
7fb0fafed2
commit
265538ac6e
2 changed files with 177 additions and 526 deletions
File diff suppressed because it is too large
Load diff
|
@ -26,6 +26,8 @@
|
|||
#include <gst/audio/audio.h>
|
||||
#include <jni.h>
|
||||
|
||||
#include "gstjniutils.h"
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef struct _GstAmcCodecInfo GstAmcCodecInfo;
|
||||
|
@ -33,7 +35,6 @@ typedef struct _GstAmcCodecType GstAmcCodecType;
|
|||
typedef struct _GstAmcCodec GstAmcCodec;
|
||||
typedef struct _GstAmcBufferInfo GstAmcBufferInfo;
|
||||
typedef struct _GstAmcFormat GstAmcFormat;
|
||||
typedef struct _GstAmcBuffer GstAmcBuffer;
|
||||
typedef struct _GstAmcColorFormatInfo GstAmcColorFormatInfo;
|
||||
|
||||
struct _GstAmcCodecType {
|
||||
|
@ -56,12 +57,6 @@ struct _GstAmcCodecInfo {
|
|||
gint n_supported_types;
|
||||
};
|
||||
|
||||
struct _GstAmcBuffer {
|
||||
jobject object; /* global reference */
|
||||
guint8 *data;
|
||||
gsize size;
|
||||
};
|
||||
|
||||
struct _GstAmcFormat {
|
||||
/* < private > */
|
||||
jobject object; /* global reference */
|
||||
|
@ -112,13 +107,13 @@ gchar * gst_amc_format_to_string (GstAmcFormat * format, GError **err);
|
|||
gboolean gst_amc_format_contains_key (GstAmcFormat *format, const gchar *key, GError **err);
|
||||
|
||||
gboolean gst_amc_format_get_float (GstAmcFormat *format, const gchar *key, gfloat *value, GError **err);
|
||||
void gst_amc_format_set_float (GstAmcFormat *format, const gchar *key, gfloat value, GError **err);
|
||||
gboolean gst_amc_format_set_float (GstAmcFormat *format, const gchar *key, gfloat value, GError **err);
|
||||
gboolean gst_amc_format_get_int (GstAmcFormat *format, const gchar *key, gint *value, GError **err);
|
||||
void gst_amc_format_set_int (GstAmcFormat *format, const gchar *key, gint value, GError **err);
|
||||
gboolean gst_amc_format_set_int (GstAmcFormat *format, const gchar *key, gint value, GError **err);
|
||||
gboolean gst_amc_format_get_string (GstAmcFormat *format, const gchar *key, gchar **value, GError **err);
|
||||
void gst_amc_format_set_string (GstAmcFormat *format, const gchar *key, const gchar *value, GError **err);
|
||||
gboolean gst_amc_format_set_string (GstAmcFormat *format, const gchar *key, const gchar *value, GError **err);
|
||||
gboolean gst_amc_format_get_buffer (GstAmcFormat *format, const gchar *key, guint8 **data, gsize *size, GError **err);
|
||||
void gst_amc_format_set_buffer (GstAmcFormat *format, const gchar *key, guint8 *data, gsize size, GError **err);
|
||||
gboolean gst_amc_format_set_buffer (GstAmcFormat *format, const gchar *key, guint8 *data, gsize size, GError **err);
|
||||
|
||||
GstVideoFormat gst_amc_color_format_to_video_format (const GstAmcCodecInfo * codec_info, const gchar * mime, gint color_format);
|
||||
gint gst_amc_video_format_to_color_format (const GstAmcCodecInfo * codec_info, const gchar * mime, GstVideoFormat video_format);
|
||||
|
|
Loading…
Reference in a new issue