2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
11 #ifndef CODEC_COMMON_INTERFACE_H
12 #define CODEC_COMMON_INTERFACE_H
16 #define dll_export __declspec( dllexport )
17 #define dll_import __declspec( dllimport )
19 // Playback ERROR Codes.
20 #define NO_DECODER_ERROR 0
21 #define REMOTE_DECODER_ERROR -1
23 #define DFR_BAD_DCT_COEFF -100
24 #define DFR_ZERO_LENGTH_FRAME -101
25 #define DFR_FRAME_SIZE_INVALID -102
26 #define DFR_OUTPUT_BUFFER_OVERFLOW -103
27 #define DFR_INVALID_FRAME_HEADER -104
28 #define FR_INVALID_MODE_TOKEN -110
29 #define ETR_ALLOCATION_ERROR -200
30 #define ETR_INVALID_ROOT_PTR -201
31 #define SYNCH_ERROR -400
32 #define BUFFER_UNDERFLOW_ERROR -500
33 #define PB_IB_OVERFLOW_ERROR -501
35 // External error triggers
36 #define PB_HEADER_CHECKSUM_ERROR -601
37 #define PB_DATA_CHECKSUM_ERROR -602
40 #define DDCT_EXPANSION_ERROR -700
41 #define DDCT_INVALID_TOKEN_ERROR -701
44 #define GEN_EXCEPTIONS -800
45 #define EX_UNQUAL_ERROR -801
47 // Unrecoverable error codes
48 #define FATAL_PLAYBACK_ERROR -1000
49 #define GEN_ERROR_CREATING_CDC -1001
50 #define GEN_THREAD_CREATION_ERROR -1002
51 #define DFR_CREATE_BMP_FAILED -1003
53 // YUV buffer configuration structure
64 unsigned char *y_buffer
;
65 unsigned char *u_buffer
;
66 unsigned char *v_buffer
;
74 C_SET_EXPERIMENTAL_MIN
,
75 C_SET_EXPERIMENTAL_MAX
= C_SET_EXPERIMENTAL_MIN
+ 255,
83 #ifndef VP50_COMP_INTERFACE
84 // Specialist test facilities.
85 // C_VCAP_PARAMS, // DO NOT USE FOR NOW WITH VFW CODEC
90 typedef unsigned long C_SET_VALUE
;