equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #ifndef PARAMCONVERSION_H_ |
|
25 #define PARAMCONVERSION_H_ |
|
26 |
|
27 #include <e32cmn.h> |
|
28 |
|
29 struct OMX_PARAM_CONTENTURITYPE; |
|
30 |
|
31 class ParamConversion |
|
32 { |
|
33 public: |
|
34 /** |
|
35 * Converts a file name to a URI, then allocates and fills an |
|
36 * OMX_PARAM_CONTENTURITYPE structure for OpenMAX IL v1.0. In OpenMax IL |
|
37 * v1.0, this structure cannot contain URIs larger than 256 bytes |
|
38 * (including the null terminator). If the converted URI exceeds this |
|
39 * limit, this method leaves with KErrTooBig. |
|
40 */ |
|
41 static OMX_PARAM_CONTENTURITYPE* |
|
42 FilenameAsContentUriStructV1_0L(const TDesC& aFileName); |
|
43 |
|
44 /** |
|
45 * Converts a file name to a URI, then allocates and fills an |
|
46 * OMX_PARAM_CONTENTURITYPE structure for OpenMAX IL v1.1. In OpenMax IL |
|
47 * v1.1, this structure can contain URIs of arbitrary length. |
|
48 */ |
|
49 static OMX_PARAM_CONTENTURITYPE* |
|
50 FilenameAsContentUriStructV1_1L(const TDesC& aFileName); |
|
51 }; |
|
52 |
|
53 #endif /*PARAMCONVERSION_H_*/ |