Codec Engine Application Programming Interface (API)
ce-w08
Main Page
Modules
Data Structures
Files
Related Pages
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
packages
ti
sdo
ce
video1
videnc1.h
Go to the documentation of this file.
1
/*
2
* Copyright 2013 by Texas Instruments Incorporated.
3
*
4
*/
5
6
/*
7
* Copyright (c) 2013, Texas Instruments Incorporated
8
* All rights reserved.
9
*
10
* Redistribution and use in source and binary forms, with or without
11
* modification, are permitted provided that the following conditions
12
* are met:
13
*
14
* * Redistributions of source code must retain the above copyright
15
* notice, this list of conditions and the following disclaimer.
16
*
17
* * Redistributions in binary form must reproduce the above copyright
18
* notice, this list of conditions and the following disclaimer in the
19
* documentation and/or other materials provided with the distribution.
20
*
21
* * Neither the name of Texas Instruments Incorporated nor the names of
22
* its contributors may be used to endorse or promote products derived
23
* from this software without specific prior written permission.
24
*
25
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
26
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
27
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
28
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
29
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
30
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
31
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
32
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
33
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
34
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
35
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36
*
37
*/
38
/*
39
* ======== videnc1.h ========
40
*/
57
#ifndef ti_sdo_ce_video1_VIDENC1_
58
#define ti_sdo_ce_video1_VIDENC1_
59
60
#ifdef __cplusplus
61
extern
"C"
{
62
#endif
63
64
#include <
ti/xdais/dm/xdm.h
>
65
#include <
ti/xdais/dm/ividenc1.h
>
66
67
#include <
ti/sdo/ce/Engine.h
>
68
#include <
ti/sdo/ce/visa.h
>
69
#include <ti/sdo/ce/skel.h>
70
73
74
#define VIDENC1_EOK IVIDENC1_EOK
75
#define VIDENC1_EFAIL IVIDENC1_EFAIL
78
#define VIDENC1_EUNSUPPORTED IVIDENC1_EUNSUPPORTED
79
80
#define VIDENC1_ETIMEOUT VISA_ETIMEOUT
81
#define VIDENC1_FOREVER VISA_FOREVER
86
#define VIDENC1_VISATYPE "ti.sdo.ce.video1.IVIDENC1"
87
94
#define VIDENC1_STUBSNAME "VIDENC1_STUBS"
95
96
100
typedef
VISA_Handle
VIDENC1_Handle
;
101
102
/* The following are just wrapper typedefs */
103
105
typedef
struct
IVIDENC1_Params
VIDENC1_Params
;
106
108
typedef
IVIDENC1_InArgs
VIDENC1_InArgs
;
109
111
typedef
IVIDENC1_OutArgs
VIDENC1_OutArgs
;
112
114
typedef
IVIDENC1_Cmd
VIDENC1_Cmd
;
115
117
typedef
IVIDENC1_DynamicParams
VIDENC1_DynamicParams
;
118
120
typedef
IVIDENC1_Status
VIDENC1_Status
;
121
128
extern
SKEL_Fxns VIDENC1_SKEL;
129
133
extern
IVIDENC1_Fxns
VIDENC1_STUBS;
134
142
typedef
struct
IVIDENC1_CodecClassConfig
{
143
Bool
manageInBufsCache
[
XDM_MAX_IO_BUFFERS
];
144
Bool
manageOutBufsCache
[
XDM_MAX_IO_BUFFERS
];
145
}
IVIDENC1_CodecClassConfig
;
146
147
/*
148
* ======== VIDENC1_control ========
149
*/
180
extern
Int32
VIDENC1_control
(VIDENC1_Handle handle, VIDENC1_Cmd
id
,
181
VIDENC1_DynamicParams *params, VIDENC1_Status *status);
182
183
184
/*
185
* ======== VIDENC1_create ========
186
*/
215
extern
VIDENC1_Handle
VIDENC1_create
(
Engine_Handle
e, String name,
216
VIDENC1_Params
*params);
217
218
219
/*
220
* ======== VIDENC1_delete ========
221
*/
239
extern
Void
VIDENC1_delete
(VIDENC1_Handle handle);
240
241
242
/*
243
* ======== VIDENC1_process ========
244
*/
290
extern
Int32
VIDENC1_process
(VIDENC1_Handle handle,
IVIDEO1_BufDescIn
*inBufs,
291
XDM_BufDesc
*outBufs, VIDENC1_InArgs *inArgs, VIDENC1_OutArgs *outArgs);
292
293
294
/*
295
* ======== VIDENC1_processAsync ========
296
*/
335
extern
XDAS_Int32
VIDENC1_processAsync
(VIDENC1_Handle handle,
336
IVIDEO1_BufDescIn
*inBufs,
XDM_BufDesc
*outBufs,
337
IVIDENC1_InArgs
*inArgs,
IVIDENC1_OutArgs
*outArgs);
338
339
340
/*
341
* ======== VIDENC1_processWait ========
342
*/
385
extern
XDAS_Int32
VIDENC1_processWait
(VIDENC1_Handle handle,
386
IVIDEO1_BufDescIn
*inBufs,
XDM_BufDesc
*outBufs,
387
IVIDENC1_InArgs
*inArgs,
IVIDENC1_OutArgs
*outArgs, UInt timeout);
388
389
392
#ifdef __cplusplus
393
}
394
#endif
395
396
#endif
397
/*
398
* @(#) ti.sdo.ce.video1; 1, 0, 2,3; 6-13-2013 00:20:24; /db/atree/library/trees/ce/ce-w08/src/ xlibrary
399
400
*/
401
Copyright 2013, Texas Instruments Incorporated