00001
00008
00009
00010
00011
00012
00013 #ifndef CODEC_HEADER_H_H
00014 #define CODEC_HEADER_H_H
00015 #include <codec_type.h>
00016 #include <codec_error.h>
00017
00018 #define CODEC_DEBUG
00019
00020 #ifdef CODEC_DEBUG
00021 #ifdef ANDROID
00022 #include <android/log.h>
00023 #include <stdio.h>
00024 #include <stdarg.h>
00025 #include <string.h>
00026 #define LOG_TAG "amcodec"
00027 #define CODEC_PRINT(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__)
00028 #else
00029 #define CODEC_PRINT(f,s...) fprintf(stderr,f,##s)
00030 #endif
00031 #else
00032 #define CODEC_PRINT(f,s...)
00033 #endif
00034
00035 #define CODEC_VIDEO_ES_DEVICE "/dev/amstream_vbuf"
00036 #define CODEC_AUDIO_ES_DEVICE "/dev/amstream_abuf"
00037 #define CODEC_TS_DEVICE "/dev/amstream_mpts"
00038 #define CODEC_PS_DEVICE "/dev/amstream_mpps"
00039 #define CODEC_RM_DEVICE "/dev/amstream_rm"
00040 #define CODEC_CNTL_DEVICE "/dev/amvideo"
00041 #define CODEC_SUB_DEVICE "/dev/amstream_sub"
00042 #define CODEC_SUB_READ_DEVICE "/dev/amstream_sub_read"
00043
00044 CODEC_HANDLE codec_h_open(const char *port_addr, int flags);
00045 int codec_h_close(CODEC_HANDLE h);
00046 int codec_h_write(CODEC_HANDLE , void *, int);
00047 int codec_h_read(CODEC_HANDLE, void *, int);
00048 int codec_h_control(CODEC_HANDLE h, int cmd, unsigned long paramter);
00049
00050
00051
00052 #endif