Mercurial > libavcodec.hg
comparison vmdav.c @ 6517:48759bfbd073 libavcodec
Apply 'cold' attribute to init/uninit functions in libavcodec
author | zuxy |
---|---|
date | Fri, 21 Mar 2008 03:11:20 +0000 |
parents | 814c8bd77d91 |
children | 5b3acf9fd50a |
comparison
equal
deleted
inserted
replaced
6516:dbb902bb2347 | 6517:48759bfbd073 |
---|---|
320 break; | 320 break; |
321 } | 321 } |
322 } | 322 } |
323 } | 323 } |
324 | 324 |
325 static int vmdvideo_decode_init(AVCodecContext *avctx) | 325 static av_cold int vmdvideo_decode_init(AVCodecContext *avctx) |
326 { | 326 { |
327 VmdVideoContext *s = avctx->priv_data; | 327 VmdVideoContext *s = avctx->priv_data; |
328 int i; | 328 int i; |
329 unsigned int *palette32; | 329 unsigned int *palette32; |
330 int palette_index = 0; | 330 int palette_index = 0; |
396 | 396 |
397 /* report that the buffer was completely consumed */ | 397 /* report that the buffer was completely consumed */ |
398 return buf_size; | 398 return buf_size; |
399 } | 399 } |
400 | 400 |
401 static int vmdvideo_decode_end(AVCodecContext *avctx) | 401 static av_cold int vmdvideo_decode_end(AVCodecContext *avctx) |
402 { | 402 { |
403 VmdVideoContext *s = avctx->priv_data; | 403 VmdVideoContext *s = avctx->priv_data; |
404 | 404 |
405 if (s->prev_frame.data[0]) | 405 if (s->prev_frame.data[0]) |
406 avctx->release_buffer(avctx, &s->prev_frame); | 406 avctx->release_buffer(avctx, &s->prev_frame); |
436 0x4C0, 0x500, 0x540, 0x580, 0x5C0, 0x600, 0x640, 0x680, 0x6C0, 0x700, | 436 0x4C0, 0x500, 0x540, 0x580, 0x5C0, 0x600, 0x640, 0x680, 0x6C0, 0x700, |
437 0x740, 0x780, 0x7C0, 0x800, 0x900, 0xA00, 0xB00, 0xC00, 0xD00, 0xE00, | 437 0x740, 0x780, 0x7C0, 0x800, 0x900, 0xA00, 0xB00, 0xC00, 0xD00, 0xE00, |
438 0xF00, 0x1000, 0x1400, 0x1800, 0x1C00, 0x2000, 0x3000, 0x4000 | 438 0xF00, 0x1000, 0x1400, 0x1800, 0x1C00, 0x2000, 0x3000, 0x4000 |
439 }; | 439 }; |
440 | 440 |
441 static int vmdaudio_decode_init(AVCodecContext *avctx) | 441 static av_cold int vmdaudio_decode_init(AVCodecContext *avctx) |
442 { | 442 { |
443 VmdAudioContext *s = avctx->priv_data; | 443 VmdAudioContext *s = avctx->priv_data; |
444 | 444 |
445 s->avctx = avctx; | 445 s->avctx = avctx; |
446 s->channels = avctx->channels; | 446 s->channels = avctx->channels; |