summaryrefslogtreecommitdiff
path: root/audio_codec/libraac/include/rv_backend.h (plain)
blob: 992306ad6de2730149226fd394624b421ea5c08b
1/* ***** BEGIN LICENSE BLOCK *****
2 * Source last modified: $Id: rv_backend.h,v 1.1.1.1.2.1 2005/05/04 18:20:57 hubbe Exp $
3 *
4 * REALNETWORKS CONFIDENTIAL--NOT FOR DISTRIBUTION IN SOURCE CODE FORM
5 * Portions Copyright (c) 1995-2005 RealNetworks, Inc.
6 * All Rights Reserved.
7 *
8 * The contents of this file, and the files included with this file,
9 * are subject to the current version of the Real Format Source Code
10 * Porting and Optimization License, available at
11 * https://helixcommunity.org/2005/license/realformatsource (unless
12 * RealNetworks otherwise expressly agrees in writing that you are
13 * subject to a different license). You may also obtain the license
14 * terms directly from RealNetworks. You may not use this file except
15 * in compliance with the Real Format Source Code Porting and
16 * Optimization License. There are no redistribution rights for the
17 * source code of this file. Please see the Real Format Source Code
18 * Porting and Optimization License for the rights, obligations and
19 * limitations governing use of the contents of the file.
20 *
21 * RealNetworks is the developer of the Original Code and owns the
22 * copyrights in the portions it created.
23 *
24 * This file, and the files included with this file, is distributed and
25 * made available on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND,
26 * EITHER EXPRESS OR IMPLIED, AND REALNETWORKS HEREBY DISCLAIMS ALL
27 * SUCH WARRANTIES, INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF
28 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT
29 * OR NON-INFRINGEMENT.
30 *
31 * Technology Compatibility Kit Test Suite(s) Location:
32 * https://rarvcode-tck.helixcommunity.org
33 *
34 * Contributor(s):
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38#ifndef RV_BACKEND_H__
39#define RV_BACKEND_H__
40
41/* Unified RealVideo decoder backend interface */
42
43#include "helix_types.h"
44#include "helix_result.h"
45#include "rv_format_info.h"
46#include "rv_backend_types.h"
47
48#ifdef __cplusplus
49extern "C" {
50#endif /* #ifdef __cplusplus */
51
52 /* rv decoder backend interface */
53
54 typedef HX_RESULT(*rv_backend_init_fp)(void *prv10Init,
55 void **global);
56 typedef HX_RESULT(*rv_backend_decode_fp)(UCHAR *pRV10Packets,
57 UCHAR *pDecodedFrameBuffer,
58 void *pInputParams,
59 void *pOutputParams,
60 void *global);
61 typedef HX_RESULT(*rv_backend_custom_message_fp)(UINT32 *msg_id,
62 void *global);
63 typedef HX_RESULT(*rv_backend_hive_message_fp)(UINT32 *msg,
64 void *global);
65 typedef HX_RESULT(*rv_backend_free_fp)(void* global);
66
67
68 /* The rv_backend struct contains the RealVideo decoder backend
69 * function pointers. */
70
71 typedef struct rv_backend_struct {
72 rv_backend_init_fp fpInit;
73 rv_backend_decode_fp fpDecode;
74 rv_backend_custom_message_fp fpCustomMessage;
75 rv_backend_hive_message_fp fpHiveMessage;
76 rv_backend_free_fp fpFree;
77 } rv_backend;
78
79
80#ifdef __cplusplus
81}
82#endif
83
84#endif /* RV_BACKEND_H__ */
85