summaryrefslogtreecommitdiff
path: root/audio_codec/libraac/rm_packet.c (plain)
blob: 0a7630bf14432afc79dd961b21796119fff79113
1/* ***** BEGIN LICENSE BLOCK *****
2 * Source last modified: $Id: rm_packet.c,v 1.1.1.1.2.1 2005/05/04 18:21:24 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#include "../include/helix_types.h"
39#include "../include/rm_packet.h"
40
41UINT32 rm_packet_get_timestamp(rm_packet* packet)
42{
43 UINT32 ulRet = 0;
44
45 if (packet) {
46 ulRet = packet->ulTime;
47 }
48
49 return ulRet;
50}
51
52UINT32 rm_packet_get_stream_number(rm_packet* packet)
53{
54 UINT32 ulRet = 0;
55
56 if (packet) {
57 ulRet = packet->usStream;
58 }
59
60 return ulRet;
61}
62
63UINT32 rm_packet_get_asm_flags(rm_packet* packet)
64{
65 UINT32 ulRet = 0;
66
67 if (packet) {
68 ulRet = packet->usASMFlags;
69 }
70
71 return ulRet;
72}
73
74UINT32 rm_packet_get_asm_rule_number(rm_packet* packet)
75{
76 UINT32 ulRet = 0;
77
78 if (packet) {
79 ulRet = packet->ucASMRule;
80 }
81
82 return ulRet;
83}
84
85UINT32 rm_packet_get_data_length(rm_packet* packet)
86{
87 UINT32 ulRet = 0;
88
89 if (packet) {
90 ulRet = packet->usDataLen;
91 }
92
93 return ulRet;
94}
95
96BYTE* rm_packet_get_data(rm_packet* packet)
97{
98 BYTE* pRet = HXNULL;
99
100 if (packet) {
101 pRet = packet->pData;
102 }
103
104 return pRet;
105}
106
107HXBOOL rm_packet_is_lost(rm_packet* packet)
108{
109 HXBOOL bRet = FALSE;
110
111 if (packet) {
112 bRet = (packet->ucLost ? TRUE : FALSE);
113 }
114
115 return bRet;
116}
117
118