~siretart/libav/merge.raring.libav-0.8.6

« back to all changes in this revision

Viewing changes to libavcodec/h261enc.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:30:00 UTC
  • mfrom: (1.4.1)
  • mto: (1.3.11 sid) (26.1.1 quantal-security)
  • mto: This revision was merged to the branch mainline in revision 15.
  • Revision ID: package-import@ubuntu.com-20120112223000-s1reiy1e28hnix42
Tags: upstream-0.8~beta2
ImportĀ upstreamĀ versionĀ 0.8~beta2

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    H261Context * h = (H261Context *) s;
54
54
    int format, temp_ref;
55
55
 
56
 
    align_put_bits(&s->pb);
 
56
    avpriv_align_put_bits(&s->pb);
57
57
 
58
58
    /* Update the pointer to last GOB */
59
59
    s->ptr_lastgob = put_bits_ptr(&s->pb);
251
251
 
252
252
 
253
253
/**
254
 
 * encodes a 8x8 block.
 
254
 * Encode an 8x8 block.
255
255
 * @param block the 8x8 block
256
256
 * @param n block index (0-3 are luma, 4-5 are chroma)
257
257
 */
322
322
}
323
323
 
324
324
AVCodec ff_h261_encoder = {
325
 
    "h261",
326
 
    AVMEDIA_TYPE_VIDEO,
327
 
    CODEC_ID_H261,
328
 
    sizeof(H261Context),
329
 
    MPV_encode_init,
330
 
    MPV_encode_picture,
331
 
    MPV_encode_end,
 
325
    .name           = "h261",
 
326
    .type           = AVMEDIA_TYPE_VIDEO,
 
327
    .id             = CODEC_ID_H261,
 
328
    .priv_data_size = sizeof(H261Context),
 
329
    .init           = MPV_encode_init,
 
330
    .encode         = MPV_encode_picture,
 
331
    .close          = MPV_encode_end,
332
332
    .pix_fmts= (const enum PixelFormat[]){PIX_FMT_YUV420P, PIX_FMT_NONE},
333
333
    .long_name= NULL_IF_CONFIG_SMALL("H.261"),
334
334
};