Mercurial > libavcodec.hg
comparison amr.c @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | ef2149182f1c |
children | 0b546eab515d |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
299 return offset; | 299 return offset; |
300 } | 300 } |
301 | 301 |
302 | 302 |
303 static int amr_nb_encode_frame(AVCodecContext *avctx, | 303 static int amr_nb_encode_frame(AVCodecContext *avctx, |
304 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) | 304 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) |
305 { | 305 { |
306 short serial_data[250] = {0}; | 306 short serial_data[250] = {0}; |
307 | 307 |
308 AMRContext *s = avctx->priv_data; | 308 AMRContext *s = avctx->priv_data; |
309 int written; | 309 int written; |
438 | 438 |
439 return packet_size; | 439 return packet_size; |
440 } | 440 } |
441 | 441 |
442 static int amr_nb_encode_frame(AVCodecContext *avctx, | 442 static int amr_nb_encode_frame(AVCodecContext *avctx, |
443 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) | 443 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) |
444 { | 444 { |
445 AMRContext *s = (AMRContext*)avctx->priv_data; | 445 AMRContext *s = (AMRContext*)avctx->priv_data; |
446 int written; | 446 int written; |
447 | 447 |
448 written = Encoder_Interface_Encode(s->enstate, | 448 written = Encoder_Interface_Encode(s->enstate, |
582 s->frameCount++; | 582 s->frameCount++; |
583 return 0; | 583 return 0; |
584 } | 584 } |
585 | 585 |
586 static int amr_wb_encode_frame(AVCodecContext *avctx, | 586 static int amr_wb_encode_frame(AVCodecContext *avctx, |
587 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) | 587 unsigned char *frame/*out*/, int buf_size, void *data/*in*/) |
588 { | 588 { |
589 AMRWBContext *s = (AMRWBContext*) avctx->priv_data; | 589 AMRWBContext *s = (AMRWBContext*) avctx->priv_data; |
590 int size = E_IF_encode(s->state, s->mode, data, frame, s->allow_dtx); | 590 int size = E_IF_encode(s->state, s->mode, data, frame, s->allow_dtx); |
591 return size; | 591 return size; |
592 } | 592 } |