This commit is contained in:
刘可亮
2024-09-30 17:06:01 +08:00
parent 2ce4d6bb89
commit 0ef85b55da
9363 changed files with 843557 additions and 428518 deletions

View File

@@ -0,0 +1,34 @@
/*
* Copyright (C) 2020-2024 ArtInChip Technology Co. Ltd
*
* SPDX-License-Identifier: Apache-2.0
*
* author: jun.ma@artinchip.com
* Desc: packet allocator
*/
#ifndef PACKET_ALLOCATOR_H
#define PACKET_ALLOCATOR_H
#ifdef __cplusplus
extern "C" {
#endif
#include "mpp_dec_type.h"
struct packet_allocator {
struct pkt_alloc_ops *ops;
};
struct pkt_alloc_ops {
int (*allocator_init)(struct packet_allocator *p);
int (*allocator_deinit)(struct packet_allocator *p);
int (*alloc)(struct packet_allocator *p,struct mpp_packet *packet);
int (*free)(struct packet_allocator *p,struct mpp_packet *packet);
};
#ifdef __cplusplus
}
#endif
#endif