Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

VideoDecodeAcceleration framework stubs #1140

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/frameworks/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ add_subdirectory(StoreKit)
add_subdirectory(SyncServices)
add_subdirectory(SystemConfiguration)
add_subdirectory(VideoToolbox)
add_subdirectory(VideoDecodeAcceleration)
add_subdirectory(WebKit)
add_subdirectory(CFOpenDirectory)
add_subdirectory(UserNotifications)
16 changes: 16 additions & 0 deletions src/frameworks/VideoDecodeAcceleration/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
project(VideoDecodeAcceleration)

set(DYLIB_COMPAT_VERSION "1.0.0")
set(DYLIB_CURRENT_VERSION "1.0.0")

add_framework(VideoDecodeAcceleration
FAT
CURRENT_VERSION
VERSION "A"

SOURCES
src/VideoDecodeAcceleration.c

DEPENDENCIES
system
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/*
This file is part of Darling.

Copyright (C) 2019 Lubos Dolezel

Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Darling 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/


#ifndef _VideoDecodeAcceleration_H_
#define _VideoDecodeAcceleration_H_

void* VDADecoderCreate(void);
void* VDADecoderDecode(void);
void* VDADecoderDestroy(void);
void* VDADecoderFlush(void);
void* myVTOutputCallback(void);

#endif
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
This file is part of Darling.

Copyright (C) 2019 Lubos Dolezel

Darling is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

Darling 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 General Public License for more details.

You should have received a copy of the GNU General Public License
along with Darling. If not, see <http://www.gnu.org/licenses/>.
*/


#include <VideoDecodeAcceleration/VideoDecodeAcceleration.h>
#include <stdlib.h>
#include <stdio.h>

static int verbose = 0;

__attribute__((constructor))
static void initme(void) {
verbose = getenv("STUB_VERBOSE") != NULL;
}

void* VDADecoderCreate(void)
{
if (verbose) puts("STUB: VDADecoderCreate called");
return NULL;
}

void* VDADecoderDecode(void)
{
if (verbose) puts("STUB: VDADecoderDecode called");
return NULL;
}

void* VDADecoderDestroy(void)
{
if (verbose) puts("STUB: VDADecoderDestroy called");
return NULL;
}

void* VDADecoderFlush(void)
{
if (verbose) puts("STUB: VDADecoderFlush called");
return NULL;
}

void* myVTOutputCallback(void)
{
if (verbose) puts("STUB: myVTOutputCallback called");
return NULL;
}
1 change: 1 addition & 0 deletions src/frameworks/include/VideoDecodeAcceleration