~ubuntu-branches/ubuntu/trusty/libdv/trusty

« back to all changes in this revision

Viewing changes to libdv/testbitstream.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Kobras
  • Date: 2004-07-19 12:19:44 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040719121944-17vuryc01yeyx8hf
Tags: 0.103-2
* debian/rules: Provide separate doc directory for libdv4-dev.
* debian/libdv4-dev.links: No longer symlink doc dir to the one
  from libdv4.
* debian/NEWS: Only install into libdv4-dev. Closes: #259694

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
 *  codec.
8
8
 *
9
9
 *  libdv is free software; you can redistribute it and/or modify it
10
 
 *  under the terms of the GNU General Public License as published by
11
 
 *  the Free Software Foundation; either version 2, or (at your
 
10
 *  under the terms of the GNU Lesser Public License as published by
 
11
 *  the Free Software Foundation; either version 2.1, or (at your
12
12
 *  option) any later version.
13
13
 *   
14
14
 *  libdv is distributed in the hope that it will be useful, but
15
15
 *  WITHOUT ANY WARRANTY; without even the implied warranty of
16
16
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
 
 *  General Public License for more details.
 
17
 *  Lesser Public License for more details.
18
18
 *   
19
 
 *  You should have received a copy of the GNU General Public License
20
 
 *  along with GNU Make; see the file COPYING.  If not, write to
 
19
 *  You should have received a copy of the GNU Lesser Public License
 
20
 *  along with libdv; see the file COPYING.  If not, write to
21
21
 *  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. 
22
22
 *
23
23
 *  The libdv homepage is http://libdv.sourceforge.net/.  
24
24
 */
25
25
 
26
 
#include <dv_types.h>
 
26
#include "dv_types.h"
27
27
 
28
28
#include <stdio.h>
29
29
#include <assert.h>
82
82
    };
83
83
    int i;
84
84
 
85
 
    bs = bitstream_init();
86
 
    bitstream_new_buffer(bs, buffer, sizeof(buffer)); 
 
85
    bs = _dv_bitstream_init();
 
86
    _dv_bitstream_new_buffer(bs, buffer, sizeof(buffer)); 
87
87
    
88
88
    for (i = 0; sizes[i] != 0; i++) {
89
89
        int n = bitstream_get(bs, sizes[i]);
102
102
    static uint32_t value;
103
103
    int passes, i;
104
104
    
105
 
    bs = bitstream_init();
 
105
    bs = _dv_bitstream_init();
106
106
 
107
107
    for (passes = 30000; passes; passes--) {
108
 
        bitstream_new_buffer(bs, buffer, sizeof(buffer)); 
 
108
        _dv_bitstream_new_buffer(bs, buffer, sizeof(buffer)); 
109
109
 
110
110
        for (i = 0; i < numbits; i += 11) {
111
111
            value = bitstream_show(bs, 4);