FFmpeg
Loading...
Searching...
No Matches
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
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
41
42#endif /* AVCODEC_BITPACKED_DEC_H */
Libavcodec external API header.
void ff_bitpacked_init_x86(struct BitpackedContext *s)
void ff_bitpacked_init_aarch64(struct BitpackedContext *s)
#define s(width, name)
Definition cbs_vp9.c:198
static AVPacket * pkt
static AVFrame * frame
#define u(width, name, range_min, range_max)
Definition cbs_apv.c:68
main external API structure.
Definition avcodec.h:443
This structure describes decoded (raw) audio or video data.
Definition frame.h:479
This structure stores compressed data.
Definition packet.h:587
int(* decode)(AVCodecContext *avctx, AVFrame *frame, const AVPacket *pkt)
void(* unpack_yuv422p10)(const uint8_t *src, uint16_t *y, uint16_t *u, uint16_t *v, int width)
#define src
Definition vp8dsp.c:248
#define width
Definition dsp.h:99