FFmpeg
Loading...
Searching...
No Matches
libavcodec
bitpacked_dec.h
Go to the documentation of this file.
1
/*
2
* Unpack bit-packed streams to formats supported by FFmpeg
3
* Copyright (c) 2026 Devin Heitmueller <dheitmueller@ltnglobal.com>
4
*
5
* This file is part of FFmpeg.
6
*
7
* FFmpeg is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Lesser General Public
9
* License as published by the Free Software Foundation; either
10
* version 2.1 of the License, or (at your option) any later version.
11
*
12
* FFmpeg is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Lesser General Public License for more details.
16
*
17
* You should have received a copy of the GNU Lesser General Public
18
* License along with FFmpeg; if not, write to the Free Software
19
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef AVCODEC_BITPACKED_DEC_H
23
#define AVCODEC_BITPACKED_DEC_H
24
25
#include <stdint.h>
26
27
#include "
avcodec.h
"
28
29
struct
BitpackedContext
{
30
int (*
decode
)(
AVCodecContext
*avctx,
AVFrame
*
frame
,
31
const
AVPacket
*
pkt
);
32
33
/* width must be a positive multiple of 8; src contains width * 5 / 2 bytes. */
34
void (*
unpack_yuv422p10
)(
const
uint8_t *
src
,
35
uint16_t *y, uint16_t *
u
, uint16_t *v,
36
int
width
);
37
};
38
39
void
ff_bitpacked_init_aarch64
(
struct
BitpackedContext
*
s
);
40
void
ff_bitpacked_init_x86
(
struct
BitpackedContext
*
s
);
41
42
#endif
/* AVCODEC_BITPACKED_DEC_H */
avcodec.h
Libavcodec external API header.
ff_bitpacked_init_x86
void ff_bitpacked_init_x86(struct BitpackedContext *s)
Definition
bitpacked_init.c:41
ff_bitpacked_init_aarch64
void ff_bitpacked_init_aarch64(struct BitpackedContext *s)
Definition
bitpacked_init_aarch64.c:32
s
#define s(width, name)
Definition
cbs_vp9.c:198
pkt
static AVPacket * pkt
Definition
demux_decode.c:55
frame
static AVFrame * frame
Definition
demux_decode.c:54
u
#define u(width, name, range_min, range_max)
Definition
cbs_apv.c:68
AVCodecContext
main external API structure.
Definition
avcodec.h:443
AVFrame
This structure describes decoded (raw) audio or video data.
Definition
frame.h:479
AVPacket
This structure stores compressed data.
Definition
packet.h:587
BitpackedContext
Definition
bitpacked_dec.h:29
BitpackedContext::decode
int(* decode)(AVCodecContext *avctx, AVFrame *frame, const AVPacket *pkt)
Definition
bitpacked_dec.h:30
BitpackedContext::unpack_yuv422p10
void(* unpack_yuv422p10)(const uint8_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
Definition
bitpacked_dec.h:34
src
#define src
Definition
vp8dsp.c:248
width
#define width
Definition
dsp.h:99
Generated on Sun Oct 18 2026 19:20:51 for FFmpeg by
1.13.2