Skip to content

Commit

Permalink
Merge branch 'release0.4.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
befovy committed Nov 28, 2019
2 parents ff0b935 + 77bd4a4 commit 02eb134
Show file tree
Hide file tree
Showing 12 changed files with 40 additions and 11 deletions.
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
tag next
--------------------------------
tag f0.4.4
--------------------------------
- desktop: add libyuv for YUV2RGB
- ijkplayer: iOS videotoolbox notify rotate msg
- fix: call start after preparAsync may cause pause state

tag f0.4.3
--------------------------------
- desktop: fix invalid audio channel number for portaudio
Expand Down
4 changes: 2 additions & 2 deletions android/ijkplayer/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true

VERSION_NAME=0.4.3
VERSION_CODE=000403
VERSION_NAME=0.4.4
VERSION_CODE=000404
GROUP=com.befovy.fijkplayer

# http://central.sonatype.org/pages/requirements.html
Expand Down
2 changes: 1 addition & 1 deletion desktop/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ target_include_directories(IjkPlayer PRIVATE ${IJKROOT_PATH}/ijkmedia)
target_include_directories(IjkPlayer PRIVATE ${IJK_FFMPAG_BUILD_DIR}/include)
target_include_directories(IjkPlayer PRIVATE "${IJK_DESKTOP_PTHREAD_BUILD_DIR}/../../include")

target_link_libraries(IjkPlayer ijksdl_static ijkplayer_static)
target_link_libraries(IjkPlayer ijksdl_static ijkplayer_static yuv)


if (WIN32)
Expand Down
1 change: 1 addition & 0 deletions ijkmedia/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ endif ()

if(IJK_DESKTOP_UNI)
add_subdirectory(portaudio)
add_subdirectory(ijkyuv)
endif()

add_subdirectory(ijksdl)
Expand Down
4 changes: 4 additions & 0 deletions ijkmedia/ijkplayer/ff_ffplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -3372,6 +3372,10 @@ static int read_thread(void *arg)
SDL_Delay(20);
}
}
if (is->pause_req && ffp->start_on_prepared) {
ffp->auto_resume = true;
}

if (ffp->auto_resume) {
ffp_notify_msg1(ffp, FFP_REQ_START);
ffp->auto_resume = 0;
Expand Down
1 change: 1 addition & 0 deletions ijkmedia/ijksdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ target_include_directories(${IJKSDL_LIB_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/

if(IJK_DESKTOP_UNI)
target_include_directories(${IJKSDL_LIB_NAME} PRIVATE "${IJKROOT_PATH}/ijkmedia/portaudio/include")
target_include_directories(${IJKSDL_LIB_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/../ijkyuv/include)
endif()

if (WIN32)
Expand Down
18 changes: 16 additions & 2 deletions ijkmedia/ijksdl/ffmpeg/abi_all/image_convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
*****************************************************************************/

#include "../ijksdl_image_convert.h"
#if defined(__ANDROID__)
#if defined(__ANDROID__) || defined(IJK_DESKTOP_UNI)
#include "libyuv.h"
#endif

int ijk_image_convert(int width, int height,
enum AVPixelFormat dst_format, uint8_t **dst_data, int *dst_linesize,
enum AVPixelFormat src_format, const uint8_t **src_data, const int *src_linesize)
{
#if defined(__ANDROID__)
#if defined(__ANDROID__) || defined(IJK_DESKTOP_UNI)
switch (src_format) {
case AV_PIX_FMT_YUV420P:
case AV_PIX_FMT_YUVJ420P: // FIXME: 9 not equal to AV_PIX_FMT_YUV420P, but a workaround
Expand All @@ -49,6 +49,20 @@ int ijk_image_convert(int width, int height,
src_data[2], src_linesize[2],
dst_data[0], dst_linesize[0],
width, height);
case AV_PIX_FMT_BGR32_1:
return I420ToARGB(
src_data[0], src_linesize[0],
src_data[1], src_linesize[1],
src_data[2], src_linesize[2],
dst_data[0], dst_linesize[0],
width, height);
case AV_PIX_FMT_RGB32_1:
return I420ToABGR(
src_data[0], src_linesize[0],
src_data[1], src_linesize[1],
src_data[2], src_linesize[2],
dst_data[0], dst_linesize[0],
width, height);
default:
break;
}
Expand Down
4 changes: 2 additions & 2 deletions ijkmedia/ijksdl/ffmpeg/ijksdl_vout_overlay_ffmpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,10 @@ static int func_fill_frame(SDL_VoutOverlay *overlay, const AVFrame *frame)
dst_format = AV_PIX_FMT_RGB565;
break;
case SDL_FCC_BGRA:
dst_format = AV_PIX_FMT_BGRA;
dst_format = AV_PIX_FMT_BGR32_1;
break;
case SDL_FCC_RGBA:
dst_format = AV_PIX_FMT_RGBA;
dst_format = AV_PIX_FMT_RGB32_1;
break;
default:
ALOGE("SDL_VoutFFmpeg_ConvertPicture: unexpected overlay format %s(%d)",
Expand Down
4 changes: 2 additions & 2 deletions ios/CocoaPodsPub/FIJKPlayer.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Pod::Spec.new do |spec|
#

spec.name = "FIJKPlayer"
spec.version = "0.4.3"
spec.version = "0.4.4"
spec.summary = "ijkplayer iOS video player SDK"

spec.author = { "befovy" => "befovy@gmail.com" }
Expand Down Expand Up @@ -75,7 +75,7 @@ Pod::Spec.new do |spec|
# Supports git, hg, bzr, svn and HTTP.
#

spec.source = { :http => "https://github.com/befovy/ijkplayer/releases/download/f0.4.3/IJKPlayer.tar.gz" }
spec.source = { :http => "https://github.com/befovy/ijkplayer/releases/download/f0.4.4/IJKPlayer.tar.gz" }
# ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― #
#
# CocoaPods is smart about how it includes source code. For source files
Expand Down
4 changes: 2 additions & 2 deletions ios/IJKMediaDemo/IJKMediaDemo/IJKMediaDemo-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.3</string>
<string>0.4.4</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>000403</string>
<string>000404</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>UIFileSharingEnabled</key>
Expand Down
1 change: 1 addition & 0 deletions ios/IJKMediaPlayer/IJKMediaPlayer/IJKFFMediaPlayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ typedef NS_ENUM(NSInteger, IJKMPEventType) {
IJKMPET_BUFFERING_START = 500,
IJKMPET_BUFFERING_END = 501,
IJKMPET_BUFFERING_UPDATE = 502,
IJKMPET_CURRENT_POSITION_UPDATE = 510,
IJKMPET_PLAYBACK_STATE_CHANGED = 700,
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ int videotoolbox_video_thread(void *arg)
Decoder *d = &is->viddec;
int ret = 0;

ffp_notify_msg2(ffp, FFP_MSG_VIDEO_ROTATION_CHANGED, ffp_get_video_rotate_degrees(ffp));

for (;;) {

if (is->abort_request || d->queue->abort_request) {
Expand Down

0 comments on commit 02eb134

Please sign in to comment.