cda_app.h

来自「AMLOGIC DPF source code」· C头文件 代码 · 共 77 行

H
77
字号
#ifndef __CDA_APP_H
#define __CDA_APP_H

#include "includes.h"
#include "aw_windows.h"

#define CDA_PCM 0x00
#define CDA_DTS 0x01

typedef enum {
    CDA_INIT, 
    CDA_PLAY,
    CDA_STOP, 
    CDA_QUIT,
    CDA_PAUSE,
    CDA_SEAMLESS_FF,
    CDA_SEAMLESS_FB,
} cda_status_e;

typedef struct {
    int targetfd_a;
    unsigned char audio_started;
    OS_EVENT *audio_msgq;
    
    int audio_dec_fd;
    int audio_stream_buffer_size;
    int audio_type;		

    /* FF FB */			
    int                         fskip_time;	
    int                         fplay_time;		
    int                         play_time;
    int                         fnext_cmd_time;
    /* current status */
    cda_status_e          stat;      
    int                         played_level;       /* 0 for end of files,  1 for still have data */              		 
} cda_play_t;

typedef struct {
    unsigned char* buf;
    int len;
    int left;
} cda_buffer_t;

typedef struct{
    int type;  // 0 - default, 1- user setting
    void *src; // if default, src is a array, if user setting,  src is a file path
    int size;
}cda_para_t;

typedef struct {
    PAPPTASKARG        app;            /* application handle */
    cda_play_t              play;           /* playback control and running info */
    cda_buffer_t           abuffer;         
    AVSysEvent_t         internal_cmd_handle;
    EventSubscriber_t   *listener;      /* event loop listener */
    AVResource_t         file_resource;
    cda_para_t             *param;     
} cda_t;

typedef struct {
    char start_track[256];
    int start_time;		
} CDA_POINT_PLAY_INFO;

typedef struct {
    char start_track[256];
    int start_time;
    int end_time;		
} CDA_AB_PLAY_INFO;


void CDATaskProcess(void *opt);
void CDAAppGetInfo(void* pInfo);

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?