• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

vpx/vp8.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
00003  *
00004  *  Use of this source code is governed by a BSD-style license 
00005  *  that can be found in the LICENSE file in the root of the source
00006  *  tree. An additional intellectual property rights grant can be found
00007  *  in the file PATENTS.  All contributing project authors may 
00008  *  be found in the AUTHORS file in the root of the source tree.
00009  */
00010 
00011 
00031 #ifndef VP8_H
00032 #define VP8_H
00033 #include "vpx/vpx_codec_impl_top.h"
00034 
00039 enum vp8_dec_control_id
00040 {
00041     VP8_SET_REFERENCE       = 1,    
00042     VP8_COPY_REFERENCE      = 2,    
00043     VP8_SET_POSTPROC        = 3,    
00044     VP8_COMMON_CTRL_ID_MAX
00045 };
00046 
00051 enum vp8_postproc_level
00052 {
00053     VP8_NOFILTERING    = 0,
00054     VP8_DEBLOCK        = 1,
00055     VP8_DEMACROBLOCK   = 2,
00056     VP8_ADDNOISE       = 4,
00057 };
00058 
00066 typedef struct vp8_postproc_cfg
00067 {
00068     int post_proc_flag;           
00069     int deblocking_level;        
00070     int noise_level;             
00071 } vp8_postproc_cfg_t;
00072 
00077 typedef enum vpx_ref_frame_type
00078 {
00079     VP8_LAST_FRAME = 1,
00080     VP8_GOLD_FRAME = 2,
00081     VP8_ALTR_FRAME = 4
00082 } vpx_ref_frame_type_t;
00083 
00089 typedef struct vpx_ref_frame
00090 {
00091     vpx_ref_frame_type_t  frame_type;   
00092     vpx_image_t           img;          
00093 } vpx_ref_frame_t;
00094 
00095 
00101 VPX_CTRL_USE_TYPE(VP8_SET_REFERENCE,           vpx_ref_frame_t *)
00102 VPX_CTRL_USE_TYPE(VP8_COPY_REFERENCE,          vpx_ref_frame_t *)
00103 VPX_CTRL_USE_TYPE(VP8_SET_POSTPROC,            vp8_postproc_cfg_t *)
00104 
00105 
00108 #if !defined(VPX_CODEC_DISABLE_COMPAT) || !VPX_CODEC_DISABLE_COMPAT
00109 /* The following definitions are provided for backward compatibility with
00110  * the VP8 1.0.x SDK. USE IN PRODUCTION CODE IS NOT RECOMMENDED.
00111  */
00112 
00113 DECLSPEC_DEPRECATED extern vpx_codec_iface_t vpx_codec_vp8_algo DEPRECATED;
00114 #endif
00115 
00116 #include "vpx/vpx_codec_impl_bottom.h"
00117 #endif

Generated on Sat Jul 9 2011 for WebM VP8 Codec SDK by  doxygen 1.7.1