-
Notifications
You must be signed in to change notification settings - Fork 818
Expand file tree
/
Copy pathframesync.h
More file actions
50 lines (40 loc) · 1.63 KB
/
framesync.h
File metadata and controls
50 lines (40 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/**
*
* Copyright 2016-2023 Netflix, Inc.
*
* Licensed under the BSD+Patent License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://opensource.org/licenses/BSDplusPatent
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
#ifndef __VMAF_FRAME_SYNC_H__
#define __VMAF_FRAME_SYNC_H__
#include <pthread.h>
#ifdef HAVE_STDATOMIC_H
#include <stdatomic.h>
#else
#error "Meson target is missing stdatomic_depedency"
#endif
#include <stdint.h>
#include <stdlib.h>
#include "libvmaf/libvmaf.h"
typedef struct VmafFrameSyncContext VmafFrameSyncContext;
int vmaf_framesync_init(VmafFrameSyncContext **fs_ctx);
int vmaf_framesync_acquire_new_buf(VmafFrameSyncContext *fs_ctx, void **data,
unsigned data_sz, unsigned index);
int vmaf_framesync_submit_filled_data(VmafFrameSyncContext *fs_ctx, void *data,
unsigned index);
int vmaf_framesync_retrieve_filled_data(VmafFrameSyncContext *fs_ctx, void **data,
unsigned index);
int vmaf_framesync_release_buf(VmafFrameSyncContext *fs_ctx, void *data,
unsigned index);
int vmaf_framesync_destroy(VmafFrameSyncContext *fs_ctx);
#endif /* __VMAF_FRAME_SYNC_H__ */