Skip to content

Commit

Permalink
release sdk 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
xindawndev committed Jun 20, 2017
1 parent 3838125 commit 536df15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions VideoSource.cpp
Expand Up @@ -1116,8 +1116,8 @@ void VideoSource::start_airplay()
SDL_EventState(SDL_USEREVENT, SDL_IGNORE);


screen_w = 1280;// this->codecCtx->width;
screen_h = 720;// this->codecCtx->height;
screen_w = 1920;// this->codecCtx->width;
screen_h = 1080;// this->codecCtx->height;
screen = SDL_SetVideoMode(screen_w, screen_h, 0, 0x115);

bmp = SDL_CreateYUVOverlay(screen_w, screen_h, SDL_YV12_OVERLAY, screen);
Expand All @@ -1127,11 +1127,11 @@ void VideoSource::start_airplay()



SDL_LockYUVOverlay(bmp);
memcpy(bmp->pixels[0], Home_xml, bmp->w*bmp->h);
memcpy(bmp->pixels[2], Home_xml + bmp->w*bmp->h, (bmp->w * bmp->h) >> 2);
memcpy(bmp->pixels[1], Home_xml + bmp->w*bmp->h + ((bmp->w * bmp->h) >> 2), (bmp->w*bmp->h) >> 2);
SDL_UnlockYUVOverlay(bmp);
//SDL_LockYUVOverlay(bmp);
//memcpy(bmp->pixels[0], Home_xml, bmp->w*bmp->h);
//memcpy(bmp->pixels[2], Home_xml + bmp->w*bmp->h, (bmp->w * bmp->h) >> 2);
//memcpy(bmp->pixels[1], Home_xml + bmp->w*bmp->h + ((bmp->w * bmp->h) >> 2), (bmp->w*bmp->h) >> 2);
//SDL_UnlockYUVOverlay(bmp);
rect.x = 0;
rect.y = 0;
rect.w = screen_w;
Expand Down Expand Up @@ -1167,7 +1167,7 @@ void VideoSource::start_airplay()
ao.AirPlayMirroring_Process = AirPlayOutputFunctions::mirroring_process;
ao.AirPlayMirroring_Stop = AirPlayOutputFunctions::mirroring_stop;

XinDawn_StartMediaServer("test", 1280, 720, &ao);
XinDawn_StartMediaServer("XinDawn", 1920, 1080, &ao);


}
Expand Down
Binary file modified libmediaserver.so
Binary file not shown.
Binary file modified sdk/lib/libmediaserver.so
Binary file not shown.

0 comments on commit 536df15

Please sign in to comment.