-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
233 changed files
with
59,032 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 12 additions & 3 deletions
15
app/src/main/java/uk/openvk/android/legacy/utils/MediaPlayer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,32 @@ | ||
package uk.openvk.android.legacy.utils; | ||
|
||
import android.content.Context; | ||
import android.widget.Toast; | ||
|
||
/** | ||
* OPENVK LEGACY LICENSE NOTIFICATION | ||
* <p> | ||
* | ||
* This program is free software: you can redistribute it and/or modify it under the terms of | ||
* the GNU Affero General Public License as published by the Free Software Foundation, either | ||
* version 3 of the License, or (at your option) any later version. | ||
* This program 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 Affero General Public License for more details. | ||
* <p> | ||
* | ||
* You should have received a copy of the GNU Affero General Public License along with this | ||
* program. If not, see https://www.gnu.org/licenses/. | ||
* <p> | ||
* | ||
* Source code: https://github.com/openvk/mobile-android-legacy | ||
*/ | ||
|
||
public class MediaPlayer { | ||
static { | ||
System.loadLibrary("ovkmplayer"); | ||
} | ||
|
||
private static native String testString(); | ||
|
||
public MediaPlayer(Context ctx) { | ||
Toast.makeText(ctx, testString(), Toast.LENGTH_LONG).show(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Copyright © 2023 Dmitry Tretyakov (aka. Tinelix) | ||
# | ||
# This file as part of FFmpeg custom builder for Android. | ||
# | ||
# FFmpeg custom builder for Android 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 3 of the License, or (at your option) any later version. | ||
# This program 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 this | ||
# program. If not, see https://www.gnu.org/licenses/. | ||
# | ||
# Source code: https://github.com/tinelix/ffmpeg-android-builder | ||
|
||
LOCAL_PATH := $(call my-dir) | ||
|
||
#declare the prebuilt library | ||
|
||
include $(CLEAR_VARS) | ||
|
||
FFMPEG_VERSION := 4.0.4 | ||
|
||
LOCAL_MODULE := ffmpeg-prebuilt | ||
|
||
LOCAL_SRC_FILES := ../ffmpeg/android/armv7/libffmpeg-v${FFMPEG_VERSION}.so | ||
|
||
LOCAL_EXPORT_C_INCLUDES := ../ffmpeg/android/armv6/include | ||
|
||
LOCAL_EXPORT_LDLIBS := ../ffmpeg/android/armv7/libffmpeg-v${FFMPEG_VERSION}.so | ||
|
||
LOCAL_PRELINK_MODULE := true | ||
|
||
include $(PREBUILT_SHARED_LIBRARY) | ||
include $(CLEAR_VARS) | ||
|
||
LOCAL_ALLOW_UNDEFINED_SYMBOLS=false | ||
LOCAL_MODULE := ffmpeg-player | ||
LOCAL_SRC_FILES := ffmpeg-player.c | ||
LOCAL_C_INCLUDES := $(LOCAL_PATH)/../ffmpeg/android/armv7-a/include | ||
LOCAL_SHARED_LIBRARY := ffmpeg-prebuilt | ||
LOCAL_LDLIBS := -llog -ljnigraphics -lz -lm $(LOCAL_PATH)/../ffmpeg/android/armv7/libffmpeg-v${FFMPEG_VERSION}.so | ||
|
||
include $(BUILD_SHARED_LIBRARY) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Copyright © 2023 Dmitry Tretyakov (aka. Tinelix) | ||
# | ||
# This file as part of FFmpeg custom builder for Android. | ||
# | ||
# FFmpeg custom builder for Android 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 3 of the License, or (at your option) any later version. | ||
# This program 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 this | ||
# program. If not, see https://www.gnu.org/licenses/. | ||
# | ||
# Source code: https://github.com/tinelix/ffmpeg-android-builder | ||
|
||
APP_ABI := armeabi-v7a | ||
APP_PLATFORM := android-5 | ||
|
36 changes: 36 additions & 0 deletions
36
ndk-modules/ovk-mplayer/armv7/include/libavcodec/ac3_parser.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* AC-3 parser prototypes | ||
* Copyright (c) 2003 Fabrice Bellard | ||
* Copyright (c) 2003 Michael Niedermayer | ||
* | ||
* This file is part of FFmpeg. | ||
* | ||
* FFmpeg 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. | ||
* | ||
* FFmpeg 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 FFmpeg; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#ifndef AVCODEC_AC3_PARSER_H | ||
#define AVCODEC_AC3_PARSER_H | ||
|
||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
/** | ||
* Extract the bitstream ID and the frame size from AC-3 data. | ||
*/ | ||
int av_ac3_parse_header(const uint8_t *buf, size_t size, | ||
uint8_t *bitstream_id, uint16_t *frame_size); | ||
|
||
|
||
#endif /* AVCODEC_AC3_PARSER_H */ |
37 changes: 37 additions & 0 deletions
37
ndk-modules/ovk-mplayer/armv7/include/libavcodec/adts_parser.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* This file is part of FFmpeg. | ||
* | ||
* FFmpeg 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. | ||
* | ||
* FFmpeg 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 FFmpeg; if not, write to the Free Software | ||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||
*/ | ||
|
||
#ifndef AVCODEC_ADTS_PARSER_H | ||
#define AVCODEC_ADTS_PARSER_H | ||
|
||
#include <stddef.h> | ||
#include <stdint.h> | ||
|
||
#define AV_AAC_ADTS_HEADER_SIZE 7 | ||
|
||
/** | ||
* Extract the number of samples and frames from AAC data. | ||
* @param[in] buf pointer to AAC data buffer | ||
* @param[out] samples Pointer to where number of samples is written | ||
* @param[out] frames Pointer to where number of frames is written | ||
* @return Returns 0 on success, error code on failure. | ||
*/ | ||
int av_adts_header_parse(const uint8_t *buf, uint32_t *samples, | ||
uint8_t *frames); | ||
|
||
#endif /* AVCODEC_ADTS_PARSER_H */ |
Oops, something went wrong.