libvmaf
Loading...
Searching...
No Matches
picture.h
Go to the documentation of this file.
1
18
19#ifndef __VMAF_PICTURE_H__
20#define __VMAF_PICTURE_H__
21
22#include <stddef.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
35
36typedef struct VmafRef VmafRef;
37
38typedef struct VmafPicture {
40 unsigned bpc;
41 unsigned w[3], h[3];
42 ptrdiff_t stride[3];
43 void *data[3];
45 void *priv;
47
49 unsigned bpc, unsigned w, unsigned h);
50
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* __VMAF_PICTURE_H__ */
int vmaf_picture_unref(VmafPicture *pic)
int vmaf_picture_alloc(VmafPicture *pic, enum VmafPixelFormat pix_fmt, unsigned bpc, unsigned w, unsigned h)
VmafPixelFormat
Definition picture.h:28
@ VMAF_PIX_FMT_YUV420P
Definition picture.h:30
@ VMAF_PIX_FMT_YUV422P
Definition picture.h:31
@ VMAF_PIX_FMT_UNKNOWN
Definition picture.h:29
@ VMAF_PIX_FMT_YUV400P
Definition picture.h:33
@ VMAF_PIX_FMT_YUV444P
Definition picture.h:32
struct VmafRef VmafRef
Definition picture.h:36
Definition picture.h:38
enum VmafPixelFormat pix_fmt
Definition picture.h:39
unsigned bpc
Definition picture.h:40
unsigned w[3]
Definition picture.h:41
VmafRef * ref
Definition picture.h:44
unsigned h[3]
Definition picture.h:41
void * data[3]
Definition picture.h:43
ptrdiff_t stride[3]
Definition picture.h:42
void * priv
Definition picture.h:45