daala  0.0-281-ga767b96
Experimental Daala video codec API reference.
 All Data Structures Files Functions Variables Typedefs Macros Groups
daaladec.h
Go to the documentation of this file.
1 /*Daala video codec
2 Copyright (c) 2006-2013 Daala project contributors. All rights reserved.
3 
4 Redistribution and use in source and binary forms, with or without
5 modification, are permitted provided that the following conditions are met:
6 
7 - Redistributions of source code must retain the above copyright notice, this
8  list of conditions and the following disclaimer.
9 
10 - Redistributions in binary form must reproduce the above copyright notice,
11  this list of conditions and the following disclaimer in the documentation
12  and/or other materials provided with the distribution.
13 
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
15 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
18 FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.*/
24 
27 #if !defined(_daala_daaladec_H)
28 # define _daala_daaladec_H (1)
29 # include "codec.h"
30 
31 # if defined(__cplusplus)
32 extern "C" {
33 # endif
34 # if OD_GNUC_PREREQ(4, 0)
35 # pragma GCC visibility push(default)
36 # endif
37 
61 
103  daala_comment *dc, daala_setup_info **ds, const ogg_packet *op);
104 
111 extern daala_dec_ctx *daala_decode_alloc(const daala_info *info,
112  const daala_setup_info *setup);
118 extern void daala_setup_free(daala_setup_info *setup);
127 extern int daala_decode_ctl(daala_dec_ctx *dec,
128  int req, void *buf, size_t buf_sz);
131 extern void daala_decode_free(daala_dec_ctx *dec);
136 extern int daala_decode_packet_in(daala_dec_ctx *dec, od_img *img,
137  const ogg_packet *op);
150 
151 # if OD_GNUC_PREREQ(4, 0)
152 # pragma GCC visibility pop
153 # endif
154 # if defined(__cplusplus)
155 }
156 # endif
157 
158 #endif
The comment information.
Definition: codec.h:225
Representation of an image or video frame.
Definition: codec.h:162
void daala_setup_free(daala_setup_info *setup)
Releases all storage used for the decoder setup information.
The shared libdaala C API.
int daala_decode_packet_in(daala_dec_ctx *dec, od_img *img, const ogg_packet *op)
Retrieves decoded video data frames.
int daala_decode_header_in(daala_info *info, daala_comment *dc, daala_setup_info **ds, const ogg_packet *op)
Parses the header packets from an Ogg Daala stream.
void daala_decode_free(daala_dec_ctx *dec)
Frees an allocated decoder instance.
struct daala_dec_ctx daala_dec_ctx
The decoder context.
Definition: daaladec.h:45
struct daala_setup_info daala_setup_info
Setup information.
Definition: daaladec.h:51
daala_dec_ctx * daala_decode_alloc(const daala_info *info, const daala_setup_info *setup)
Allocates a decoder instance.
Configuration parameters for a codec instance.
Definition: codec.h:180
int daala_decode_ctl(daala_dec_ctx *dec, int req, void *buf, size_t buf_sz)
Decoder control function.