mirror of https://github.com/mpv-player/mpv
whitespace-cleanup
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28023 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6f60722148
commit
45b0d94b60
|
@ -525,7 +525,7 @@ static void quartz_CreateWindow(uint32_t d_width, uint32_t d_height, WindowAttri
|
|||
{
|
||||
CFStringRef titleKey;
|
||||
CFStringRef windowTitle;
|
||||
OSStatus result;
|
||||
OSStatus result;
|
||||
|
||||
MenuItemIndex index;
|
||||
CFStringRef movMenuTitle;
|
||||
|
@ -690,7 +690,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
|||
|
||||
windowAttrs &= (~kWindowResizableAttribute);
|
||||
|
||||
if (theWindow == NULL)
|
||||
if (theWindow == NULL)
|
||||
{
|
||||
CGContextRef context;
|
||||
|
||||
|
@ -713,7 +713,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
|||
SetRect(&winRect, 0, 0, d_width, d_height);
|
||||
SetRect(&oldWinRect, 0, 0, d_width, d_height);
|
||||
SizeWindow (theWindow, d_width, d_height, 1);
|
||||
}
|
||||
}
|
||||
|
||||
switch (image_format)
|
||||
{
|
||||
|
@ -744,7 +744,7 @@ static int config(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_
|
|||
case IMGFMT_UYVY:
|
||||
case IMGFMT_YUY2:
|
||||
{
|
||||
get_image_done = 0;
|
||||
get_image_done = 0;
|
||||
|
||||
if (!EnterMoviesDone)
|
||||
{
|
||||
|
@ -1028,22 +1028,22 @@ static int draw_slice(uint8_t *src[], int stride[], int w,int h,int x,int y)
|
|||
{
|
||||
switch (image_format)
|
||||
{
|
||||
case IMGFMT_YV12:
|
||||
case IMGFMT_I420:
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoY.offset) + x + imgRect.right * y, src[0], w, h, imgRect.right, stride[0]);
|
||||
x=x/2;y=y/2;w=w/2;h=h/2;
|
||||
case IMGFMT_YV12:
|
||||
case IMGFMT_I420:
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoY.offset) + x + imgRect.right * y, src[0], w, h, imgRect.right, stride[0]);
|
||||
x=x/2;y=y/2;w=w/2;h=h/2;
|
||||
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCb.offset) + x + imgRect.right / 2 * y, src[1], w, h, imgRect.right / 2, stride[1]);
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCr.offset) + x + imgRect.right / 2 * y, src[2], w, h, imgRect.right / 2, stride[2]);
|
||||
return 0;
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCb.offset) + x + imgRect.right / 2 * y, src[1], w, h, imgRect.right / 2, stride[1]);
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCr.offset) + x + imgRect.right / 2 * y, src[2], w, h, imgRect.right / 2, stride[2]);
|
||||
return 0;
|
||||
|
||||
case IMGFMT_IYUV:
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoY.offset) + x + imgRect.right * y, src[0], w, h, imgRect.right, stride[0]);
|
||||
x=x/2;y=y/2;w=w/2;h=h/2;
|
||||
case IMGFMT_IYUV:
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoY.offset) + x + imgRect.right * y, src[0], w, h, imgRect.right, stride[0]);
|
||||
x=x/2;y=y/2;w=w/2;h=h/2;
|
||||
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCr.offset) + x + imgRect.right / 2 * y, src[1], w, h, imgRect.right / 2, stride[1]);
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCb.offset) + x + imgRect.right / 2 * y, src[2], w, h, imgRect.right / 2, stride[2]);
|
||||
return 0;
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCr.offset) + x + imgRect.right / 2 * y, src[1], w, h, imgRect.right / 2, stride[1]);
|
||||
memcpy_pic(((char*)P) + be2me_32(P->componentInfoCb.offset) + x + imgRect.right / 2 * y, src[2], w, h, imgRect.right / 2, stride[2]);
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
@ -1422,7 +1422,7 @@ void window_fullscreen()
|
|||
}
|
||||
|
||||
//save old window size
|
||||
if (!vo_quartz_fs)
|
||||
if (!vo_quartz_fs)
|
||||
{
|
||||
GetWindowPortBounds(theWindow, &oldWinRect);
|
||||
GetWindowBounds(theWindow, kWindowContentRgn, &oldWinBounds);
|
||||
|
|
Loading…
Reference in New Issue