~ubuntu-branches/ubuntu/trusty/gst-libav1.0/trusty-proposed

« back to all changes in this revision

Viewing changes to gst-libs/ext/libav/libavcodec/smc.c

  • Committer: Package Import Robot
  • Author(s): Sebastian Dröge
  • Date: 2013-09-24 17:07:00 UTC
  • mfrom: (1.1.17) (7.1.9 experimental)
  • Revision ID: package-import@ubuntu.com-20130924170700-4dg62s3pwl0pdakz
Tags: 1.2.0-1
* New upstream stable release:
  + debian/control:
    - Build depend on GStreamer and gst-plugins-base >= 1.2.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
    SmcContext *s = avctx->priv_data;
415
415
 
416
416
    s->avctx = avctx;
417
 
    avctx->pix_fmt = PIX_FMT_PAL8;
 
417
    avctx->pix_fmt = AV_PIX_FMT_PAL8;
418
418
 
419
419
    s->frame.data[0] = NULL;
420
420
 
422
422
}
423
423
 
424
424
static int smc_decode_frame(AVCodecContext *avctx,
425
 
                             void *data, int *data_size,
 
425
                             void *data, int *got_frame,
426
426
                             AVPacket *avpkt)
427
427
{
428
428
    const uint8_t *buf = avpkt->data;
447
447
 
448
448
    smc_decode_stream(s);
449
449
 
450
 
    *data_size = sizeof(AVFrame);
 
450
    *got_frame      = 1;
451
451
    *(AVFrame*)data = s->frame;
452
452
 
453
453
    /* always report that the buffer was completely consumed */
467
467
AVCodec ff_smc_decoder = {
468
468
    .name           = "smc",
469
469
    .type           = AVMEDIA_TYPE_VIDEO,
470
 
    .id             = CODEC_ID_SMC,
 
470
    .id             = AV_CODEC_ID_SMC,
471
471
    .priv_data_size = sizeof(SmcContext),
472
472
    .init           = smc_decode_init,
473
473
    .close          = smc_decode_end,
474
474
    .decode         = smc_decode_frame,
475
475
    .capabilities   = CODEC_CAP_DR1,
476
 
    .long_name = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"),
 
476
    .long_name      = NULL_IF_CONFIG_SMALL("QuickTime Graphics (SMC)"),
477
477
};