FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
libavcodec
vaapi_encode_h26x.h
Go to the documentation of this file.
1
/*
2
* This file is part of FFmpeg.
3
*
4
* FFmpeg is free software; you can redistribute it and/or
5
* modify it under the terms of the GNU Lesser General Public
6
* License as published by the Free Software Foundation; either
7
* version 2.1 of the License, or (at your option) any later version.
8
*
9
* FFmpeg is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
* Lesser General Public License for more details.
13
*
14
* You should have received a copy of the GNU Lesser General Public
15
* License along with FFmpeg; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
#ifndef AVCODEC_VAAPI_ENCODE_H26X_H
20
#define AVCODEC_VAAPI_ENCODE_H26X_H
21
22
#include <stddef.h>
23
#include <stdint.h>
24
25
#include "
golomb.h
"
26
#include "
put_bits.h
"
27
28
29
// Debug code may be interested in the name of the syntax element being
30
// for tracing purposes. Here, it is just discarded.
31
32
#define write_u(pbc, width, value, name) put_bits(pbc, width, value)
33
#define write_ue(pbc, value, name) set_ue_golomb(pbc, value)
34
#define write_se(pbc, value, name) set_se_golomb(pbc, value)
35
36
#define u(width, ...) write_u(pbc, width, __VA_ARGS__)
37
#define ue(...) write_ue(pbc, __VA_ARGS__)
38
#define se(...) write_se(pbc, __VA_ARGS__)
39
40
41
// Copy from src to dst, applying emulation prevention.
42
int
ff_vaapi_encode_h26x_nal_unit_to_byte_stream
(
uint8_t
*dst,
size_t
*dst_len,
43
uint8_t
*
src
,
size_t
src_len);
44
45
#endif
/* AVCODEC_VAAPI_ENCODE_H26X_H */
src
#define src
Definition:
vp8dsp.c:254
uint8_t
uint8_t
Definition:
audio_convert.c:194
ff_vaapi_encode_h26x_nal_unit_to_byte_stream
int ff_vaapi_encode_h26x_nal_unit_to_byte_stream(uint8_t *dst, size_t *dst_len, uint8_t *src, size_t src_len)
Definition:
vaapi_encode_h26x.c:23
golomb.h
exp golomb vlc stuff
put_bits.h
bitstream writer API
Generated on Fri Jan 12 2018 01:45:48 for FFmpeg by
1.8.6