1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- /*****************************************************************************
- * ijksdl_codec_android_mediaformat.h
- *****************************************************************************
- *
- * Copyright (c) 2014 Bilibili
- * copyright (c) 2014 Zhang Rui <bbcallen@gmail.com>
- *
- * This file is part of ijkPlayer.
- *
- * ijkPlayer is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2.1 of the License, or (at your option) any later version.
- *
- * ijkPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with ijkPlayer; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
- */
- #ifndef IJKSDL_ANDROID__ANDROID_CODEC_ANDROID_MEDIAFORMAT_H
- #define IJKSDL_ANDROID__ANDROID_CODEC_ANDROID_MEDIAFORMAT_H
- #include "../ijksdl_stdinc.h"
- #include <stdbool.h>
- #include <jni.h>
- #include <sys/types.h>
- #include "../ijksdl_mutex.h"
- #include "ijksdl_codec_android_mediadef.h"
- typedef struct SDL_AMediaFormat_Opaque SDL_AMediaFormat_Opaque;
- typedef struct SDL_AMediaFormat SDL_AMediaFormat;
- typedef struct SDL_AMediaFormat
- {
- SDL_mutex *mutex;
- SDL_AMediaFormat_Opaque *opaque;
- sdl_amedia_status_t (*func_delete)(SDL_AMediaFormat *aformat);
- bool (*func_getInt32)(SDL_AMediaFormat* aformat, const char* name, int32_t *out);
- void (*func_setInt32)(SDL_AMediaFormat* aformat, const char* name, int32_t value);
- void (*func_setBuffer)(SDL_AMediaFormat* aformat, const char* name, void* data, size_t size);
- } SDL_AMediaFormat;
- sdl_amedia_status_t SDL_AMediaFormat_delete(SDL_AMediaFormat* aformat);
- sdl_amedia_status_t SDL_AMediaFormat_deleteP(SDL_AMediaFormat** aformat);
- bool SDL_AMediaFormat_getInt32(SDL_AMediaFormat* aformat, const char* name, int32_t *out);
- void SDL_AMediaFormat_setInt32(SDL_AMediaFormat* aformat, const char* name, int32_t value);
- void SDL_AMediaFormat_setBuffer(SDL_AMediaFormat* aformat, const char* name, void* data, size_t size);
- #endif
|