···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#import <Foundation/NSString.h>
2121+2222+NSString *const AVErrorDeviceKey = @"AVErrorDeviceKey";
2323+NSString *const AVErrorFileSizeKey = @"AVErrorFileSizeKey";
2424+NSString *const AVErrorMediaSubTypeKey = @"AVErrorMediaSubTypeKey";
2525+NSString *const AVErrorMediaTypeKey = @"AVErrorMediaTypeKey";
2626+NSString *const AVErrorTimeKey = @"AVErrorTimeKey";
2727+NSString *const AVErrorPIDKey = @"AVErrorPIDKey";
2828+NSString *const AVErrorRecordingSuccessfullyFinishedKey = @"AVErrorRecordingSuccessfullyFinishedKey";
2929+NSString *const AVErrorPresentationTimeStampKey = @"AVErrorPresentationTimeStampKey";
3030+NSString *const AVErrorPersistentTrackIDKey = @"AVErrorPersistentTrackIDKey";
3131+NSString *const AVErrorFileTypeKey = @"AVErrorFileTypeKey";
3232+NSString *const AVFoundationErrorDomain = @"AVFoundationErrorDomain";
+2-2
src/CoreMedia/CMakeLists.txt
···99 VERSION "A"
10101111 SOURCES
1212- src/CoreMedia.m
1212+ src/CoreMedia.c
1313+ src/CMTime.c
13141415 DEPENDENCIES
1516 system
1616- objc
1717 Foundation
1818)
+45
src/CoreMedia/include/CoreMedia/CMTime.h
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#ifndef _CMTIME_H_
2121+#define _CMTIME_H_
2222+2323+#include <stdint.h>
2424+2525+typedef int64_t CMTimeValue;
2626+typedef int32_t CMTimeScale;
2727+typedef int64_t CMTimeEpoch;
2828+typedef uint32_t CMTimeFlags;
2929+3030+typedef struct
3131+{
3232+ CMTimeValue value;
3333+ CMTimeScale timescale;
3434+ CMTimeFlags flags;
3535+ CMTimeEpoch epoch;
3636+}
3737+CMTime;
3838+3939+extern const CMTime kCMTimeInvalid;
4040+extern const CMTime kCMTimeIndefinite;
4141+extern const CMTime kCMTimePositiveInfinity;
4242+extern const CMTime kCMTimeNegativeInfinity;
4343+extern const CMTime kCMTimeZero;
4444+4545+#endif
···11+/*
22+ This file is part of Darling.
33+44+ Copyright (C) 2019 Lubos Dolezel
55+66+ Darling is free software: you can redistribute it and/or modify
77+ it under the terms of the GNU General Public License as published by
88+ the Free Software Foundation, either version 3 of the License, or
99+ (at your option) any later version.
1010+1111+ Darling is distributed in the hope that it will be useful,
1212+ but WITHOUT ANY WARRANTY; without even the implied warranty of
1313+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1414+ GNU General Public License for more details.
1515+1616+ You should have received a copy of the GNU General Public License
1717+ along with Darling. If not, see <http://www.gnu.org/licenses/>.
1818+*/
1919+2020+#include <CoreMedia/CMTime.h>
2121+2222+const CMTime kCMTimeInvalid;
2323+const CMTime kCMTimeIndefinite;
2424+const CMTime kCMTimePositiveInfinity;
2525+const CMTime kCMTimeNegativeInfinity;
2626+const CMTime kCMTimeZero;