linuxOS_D21X/source/artinchip/aic-mpp/include/frame_allocator.h

35 lines
665 B
C
Raw Normal View History

2024-11-29 08:13:19 +00:00
/*
2024-11-29 08:33:21 +00:00
* Copyright (C) 2020-2022 Artinchip Technology Co. Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
* author: qi.xu@artinchip.com
* Desc: frame allocator
*/
2024-11-29 08:13:19 +00:00
#ifndef FRAME_ALLOCATOR_H
#define FRAME_ALLOCATOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include "mpp_dec_type.h"
struct frame_allocator {
struct alloc_ops *ops;
};
struct alloc_ops {
int (*alloc_frame_buffer)(struct frame_allocator *p, struct mpp_frame *frame,
int width, int height, enum mpp_pixel_format format);
int (*free_frame_buffer)(struct frame_allocator *p, struct mpp_frame *frame);
int (*close_allocator)(struct frame_allocator *p);
};
#ifdef __cplusplus
}
#endif
#endif