25 #include "libavutil/bswap.h"
26 #include "libavutil/common.h"
41 const uint32_t *
src = (
const uint32_t *)avpkt->
data;
46 if (avpkt->
size < 4 * aligned_width * avctx->
height) {
56 dst_line = pic->
data[0];
58 for (h = 0; h < avctx->
height; h++) {
59 uint16_t *dst = (uint16_t *)dst_line;
60 for (w = 0; w < avctx->
width; w++) {
70 g = (pixel >> 4) & 0xffc0;
71 r = (pixel >> 14) & 0xffc0;
74 g = (pixel >> 6) & 0xffc0;
75 r = (pixel >> 16) & 0xffc0;
77 *dst++ = r | (r >> 10);
78 *dst++ = g | (g >> 10);
79 *dst++ = b | (b >> 10);
81 src += aligned_width - avctx->
width;
90 #if CONFIG_R210_DECODER
101 #if CONFIG_R10K_DECODER
112 #if CONFIG_AVRP_DECODER
This structure describes decoded (raw) audio or video data.
void av_log(void *avcl, int level, const char *fmt,...) av_printf_format(3
Send the specified message to the log if the level is less than or equal to the current av_log_level...
enum AVPixelFormat pix_fmt
Pixel format, see AV_PIX_FMT_xxx.
int bits_per_raw_sample
Bits per sample/pixel of internal libavcodec pixel/sample format.
const char * name
Name of the codec implementation.
#define CODEC_CAP_DR1
Codec uses get_buffer() for allocating buffers and supports custom allocators.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Libavcodec external API header.
enum AVPictureType pict_type
Picture type of the frame.
int width
picture width / height.
main external API structure.
int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags)
Get a buffer for a frame.
int linesize[AV_NUM_DATA_POINTERS]
For video, size in bytes of each picture line.
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt)
common internal api header.
static av_cold int decode_init(AVCodecContext *avctx)
#define AVERROR_INVALIDDATA
int key_frame
1 -> keyframe, 0-> not
This structure stores compressed data.
uint8_t * data[AV_NUM_DATA_POINTERS]
pointer to the picture/channel planes.