26 #include <chromaprint.h> 
   28 #define CPR_VERSION_INT AV_VERSION_INT(CHROMAPRINT_VERSION_MAJOR, \ 
   29                                        CHROMAPRINT_VERSION_MINOR, \ 
   30                                        CHROMAPRINT_VERSION_PATCH) 
   43 #if CPR_VERSION_INT >= AV_VERSION_INT(1, 4, 0) 
   44     ChromaprintContext *
ctx;
 
   46     ChromaprintContext 
ctx;
 
   54         chromaprint_free(cpr->
ctx);
 
   74 #if CPR_VERSION_INT >= AV_VERSION_INT(0, 7, 0) 
   81                                 "version 0.7.0 or later.\n");
 
  127     if (!chromaprint_finish(cpr->
ctx)) {
 
  132     if (!chromaprint_get_raw_fingerprint(cpr->
ctx, &fp, &size)) {
 
  143         if (!chromaprint_encode_fingerprint(fp, size, cpr->
algorithm, &enc_fp, &enc_size,
 
  155         chromaprint_dealloc(fp);
 
  157         chromaprint_dealloc(enc_fp);
 
  162 #define OFFSET(x) offsetof(ChromaprintMuxContext, x) 
  163 #define FLAGS AV_OPT_FLAG_ENCODING_PARAM 
  165     { 
"silence_threshold", 
"threshold for detecting silence", 
OFFSET(silence_threshold), 
AV_OPT_TYPE_INT, { .i64 = -1 }, -1, 32767, 
FLAGS },
 
  166     { 
"algorithm", 
"version of the fingerprint algorithm", 
OFFSET(algorithm), 
AV_OPT_TYPE_INT, { .i64 = CHROMAPRINT_ALGORITHM_DEFAULT }, CHROMAPRINT_ALGORITHM_TEST1, INT_MAX, 
FLAGS },
 
  182     .
name              = 
"chromaprint",
 
#define LIBAVUTIL_VERSION_INT
const char * av_default_item_name(void *ptr)
Return the context name. 
AVOutputFormat ff_chromaprint_muxer
const char * class_name
The name of the class; usually it is the same name as the context structure type to which the AVClass...
static int write_header(AVFormatContext *s)
static int write_packet(AVFormatContext *s, AVPacket *pkt)
AVStream ** streams
A list of all streams in the file. 
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered. 
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
unsigned int nb_streams
Number of elements in AVFormatContext.streams. 
AVIOContext * pb
I/O context. 
static void cleanup(ChromaprintMuxContext *cpr)
static const AVClass chromaprint_class
Describe the class of an AVClass context structure. 
static int write_trailer(AVFormatContext *s)
int sample_rate
Audio only. 
common internal api header. 
void * priv_data
Format private data. 
FingerprintFormat fp_format
static const AVOption options[]
AVCodecParameters * codecpar
Codec parameters associated with this stream. 
This structure stores compressed data.