1 /*
2 * FLV Encoding specific code.
3 * This file is part of FFmpeg.
4 *
5 * FFmpeg is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * FFmpeg is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with FFmpeg; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 */
19
23
25 {
26 int format;
27
29
31 put_bits(&s->
pb, 5, (s->
h263_flv-1));
/* 0: h263 escape codes 1: 11-bit escape codes */
35 format = 2;
37 format = 3;
39 format = 4;
41 format = 5;
43 format = 6;
45 format = 0; /* use 1 byte width & height */
46 else
47 format = 1; /* use 2 bytes width & height */
49 if (format == 0) {
52 } else if (format == 1) {
55 }
57 put_bits(&s->
pb, 1, 1);
/* DeblockingFlag: on */
60
64 }else{
67 }
68 }
69
71 if(level < 64) { // 7-bit level
75
77 } else {
78 /* 11-bit level */
82
84 }
85 }
86
88
100 };