~ubuntu-branches/debian/sid/ffmpeg/sid

« back to all changes in this revision

Viewing changes to libavcodec/fic.c

  • Committer: Package Import Robot
  • Author(s): Andreas Cadhalpun, Fabian Greffrath, Andreas Cadhalpun
  • Date: 2015-09-22 15:15:20 UTC
  • mfrom: (0.1.29)
  • Revision ID: package-import@ubuntu.com-20150922151520-hhmd3in9ykigjvs9
Tags: 7:2.8-1
[ Fabian Greffrath ]
* Pass the --dbg-package=ffmpeg-dbg parameter only to dh_strip.
* Add alternative Depends: libavcodec-ffmpeg-extra56 to libavcodec-dev and
  ffmpeg-dbg to allow for building and debugging with this library installed.

[ Andreas Cadhalpun ]
* Import new major upstream release 2.8.
* Remove the transitional lib*-ffmpeg-dev packages.
* Drop old Breaks on kodi-bin.
* Drop workaround for sparc, which is no Debian architecture anymore.
* Re-enable x265 on alpha, as it's available again.
* Disable unavailable frei0r, opencv and x264 on mips64el.
* Disable libopenjpeg (#787275) and libschroedinger (#787957) decoders.
  (Closes: #786670)
* Disable libdc1394 on sparc64, because it links against the broken due to
  #790560 libudev1.
* Enable libsnappy support.
* Add new symbols.
* Update debian/copyright.
* Update debian/tests/encdec_list.txt.
* Add hls-only-seek-if-there-is-an-offset.patch. (Closes: #798189)
* Add 'Breaks: libavutil-ffmpeg54 (>= 8:0)' to the libraries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 */
23
23
 
24
24
#include "libavutil/common.h"
 
25
#include "libavutil/opt.h"
25
26
#include "avcodec.h"
26
27
#include "internal.h"
27
28
#include "get_bits.h"
36
37
} FICThreadContext;
37
38
 
38
39
typedef struct FICContext {
 
40
    AVClass *class;
39
41
    AVCodecContext *avctx;
40
42
    AVFrame *frame;
41
43
    AVFrame *final_frame;
51
53
    int num_slices, slice_h;
52
54
 
53
55
    uint8_t cursor_buf[4096];
 
56
    int skip_cursor;
54
57
} FICContext;
55
58
 
56
59
static const uint8_t fic_qmat_hq[64] = {
263
266
    int msize;
264
267
    int tsize;
265
268
    int cur_x, cur_y;
266
 
    int skip_cursor = 0;
 
269
    int skip_cursor = ctx->skip_cursor;
267
270
    uint8_t *sdata;
268
271
 
269
272
    if ((ret = ff_reget_buffer(avctx, ctx->frame)) < 0)
452
455
    return 0;
453
456
}
454
457
 
 
458
static const AVOption options[] = {
 
459
{ "skip_cursor", "skip the cursor", offsetof(FICContext, skip_cursor), AV_OPT_TYPE_INT, {.i64 = 0 }, 0, 1, AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_VIDEO_PARAM },
 
460
{ NULL },
 
461
};
 
462
 
 
463
static const AVClass fic_decoder_class = {
 
464
    .class_name = "FIC encoder",
 
465
    .item_name  = av_default_item_name,
 
466
    .option     = options,
 
467
    .version    = LIBAVUTIL_VERSION_INT,
 
468
};
 
469
 
455
470
AVCodec ff_fic_decoder = {
456
471
    .name           = "fic",
457
472
    .long_name      = NULL_IF_CONFIG_SMALL("Mirillis FIC"),
461
476
    .init           = fic_decode_init,
462
477
    .decode         = fic_decode_frame,
463
478
    .close          = fic_decode_close,
464
 
    .capabilities   = CODEC_CAP_DR1 | CODEC_CAP_SLICE_THREADS,
 
479
    .capabilities   = AV_CODEC_CAP_DR1 | AV_CODEC_CAP_SLICE_THREADS,
 
480
    .priv_class     = &fic_decoder_class,
465
481
};