/third_party/libsnd/src/ALAC/ |
H A D | alac_encoder.c | 55 static int32_t EncodeStereo (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ; 56 static int32_t EncodeStereoFast (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ; 57 static int32_t EncodeStereoEscape (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * input, uint32_t stride, uint32_t numSamples) ; 58 static int32_t EncodeMono (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ; 144 ---Then comes the AG-compressor bitstream--- 170 bitstream. Note that doing this also allows us to use matrixing on 32-bit inputs after one or more 222 EncodeStereo (ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * inputBuffer, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) in EncodeStereo() argument 225 BitBuffer startBits = *bitstream ; // squirrel away copy of current state in case we need to go back and do an escape packet in EncodeStereo() 403 // write bitstream header and coefs in EncodeStereo() 404 BitBufferWrite (bitstream, in EncodeStereo() 504 EncodeStereoFast(ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * inputBuffer, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) EncodeStereoFast() argument 686 EncodeStereoEscape(ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * inputBuffer, uint32_t stride, uint32_t numSamples) EncodeStereoEscape() argument 743 EncodeMono(ALAC_ENCODER *p, struct BitBuffer * bitstream, const int32_t * inputBuffer, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) EncodeMono() argument 965 BitBuffer bitstream ; alac_encode() local [all...] |
H A D | ALACEncoder.h | 58 int32_t EncodeStereo (struct BitBuffer * bitstream, void * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ; 59 int32_t EncodeStereoFast (struct BitBuffer * bitstream, void * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ; 60 int32_t EncodeStereoEscape (struct BitBuffer * bitstream, void * input, uint32_t stride, uint32_t numSamples) ; 61 int32_t EncodeMono (struct BitBuffer * bitstream, void * input, uint32_t stride, uint32_t channelIndex, uint32_t numSamples) ;
|
H A D | ag_dec.c | 268 int32_t dyn_decomp (AGParamRecPtr params, BitBuffer * bitstream, int32_t * pc, int32_t numSamples, int32_t maxSize, uint32_t * outNumBits) in dyn_decomp() argument 281 RequireAction ((bitstream != NULL) && (pc != NULL) && (outNumBits != NULL), return kALAC_ParamError ;) ; in dyn_decomp() 284 in = bitstream->cur ; in dyn_decomp() 285 startPos = bitstream->bitIndex ; in dyn_decomp() 286 maxPos = bitstream->byteSize * 8 ; in dyn_decomp() 354 BitBufferAdvance (bitstream, *outNumBits) ; in dyn_decomp() 355 RequireAction (bitstream->cur <= bitstream->end, status = kALAC_ParamError ;) ; in dyn_decomp()
|
H A D | aglib.h | 73 int32_t dyn_comp (AGParamRecPtr params, int32_t * pc, struct BitBuffer * bitstream, int32_t numSamples, int32_t bitSize, uint32_t * outNumBits) ; 74 int32_t dyn_decomp (AGParamRecPtr params, struct BitBuffer * bitstream, int32_t * pc, int32_t numSamples, int32_t maxSize, uint32_t * outNumBits) ;
|
H A D | ag_enc.c | 232 int32_t dyn_comp (AGParamRecPtr params, int32_t * pc, BitBuffer * bitstream, int32_t numSamples, int32_t bitSize, uint32_t * outNumBits) in dyn_comp() argument 253 out = bitstream->cur ; in dyn_comp() 254 startPos = bitstream->bitIndex ; in dyn_comp() 348 BitBufferAdvance (bitstream, *outNumBits) ; in dyn_comp()
|
/third_party/skia/third_party/externals/libwebp/imageio/ |
H A D | webpdec.c | 57 WebPBitstreamFeatures* bitstream) { in LoadWebP() 62 if (bitstream == NULL) { in LoadWebP() 63 bitstream = &local_features; in LoadWebP() 66 status = WebPGetFeatures(*data, *data_size, bitstream); in LoadWebP() 151 WebPBitstreamFeatures* const bitstream = &config.input; in ReadWebP() local 160 status = WebPGetFeatures(data, data_size, bitstream); in ReadWebP() 167 const int has_alpha = keep_alpha && bitstream->has_alpha; in ReadWebP() 169 pic->width = bitstream->width; in ReadWebP() 170 pic->height = bitstream->height; in ReadWebP() 172 stride = (uint64_t)bitstream in ReadWebP() 55 LoadWebP(const char* const in_file, const uint8_t** data, size_t* data_size, WebPBitstreamFeatures* bitstream) LoadWebP() argument [all...] |
/third_party/skia/third_party/externals/libwebp/src/mux/ |
H A D | muxedit.c | 125 // Outputs image data given a bitstream. The bitstream can either be a 127 // Also outputs 'is_lossless' to be true if the given bitstream is lossless. 128 static WebPMuxError GetImageData(const WebPData* const bitstream, in GetImageData() argument 132 if (bitstream->size < TAG_SIZE || in GetImageData() 133 memcmp(bitstream->bytes, "RIFF", TAG_SIZE)) { in GetImageData() 135 *image = *bitstream; in GetImageData() 139 WebPMux* const mux = WebPMuxCreate(bitstream, 0); in GetImageData() 213 // Extracts image & alpha data from the given bitstream and then sets wpi.alpha_ 216 const WebPData* const bitstream, in in SetAlphaAndImageChunks() 215 SetAlphaAndImageChunks( const WebPData* const bitstream, int copy_data, WebPMuxImage* const wpi) SetAlphaAndImageChunks() argument 233 WebPMuxSetImage(WebPMux* mux, const WebPData* bitstream, int copy_data) WebPMuxSetImage() argument [all...] |
H A D | muxread.c | 174 WebPMux* WebPMuxCreateInternal(const WebPData* bitstream, int copy_data, in WebPMuxCreateInternal() argument 192 if (bitstream == NULL) return NULL; in WebPMuxCreateInternal() 194 data = bitstream->bytes; in WebPMuxCreateInternal() 195 size = bitstream->size; in WebPMuxCreateInternal() 385 // Assemble a single image WebP bitstream from 'wpi'. 387 WebPData* const bitstream) { in SynthesizeBitstream() 417 bitstream->bytes = data; in SynthesizeBitstream() 418 bitstream->size = size; in SynthesizeBitstream() 452 return SynthesizeBitstream(wpi, &info->bitstream); in MuxGetImageInternal() 475 return SynthesizeBitstream(wpi, &frame->bitstream); in MuxGetFrameInternal() 386 SynthesizeBitstream(const WebPMuxImage* const wpi, WebPData* const bitstream) SynthesizeBitstream() argument [all...] |
/third_party/skia/third_party/externals/libwebp/examples/ |
H A D | dwebp.c | 187 WebPBitstreamFeatures* const bitstream = &config.input; in main() local 318 if (!LoadWebP(in_file, &data, &data_size, bitstream)) { in main() 325 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 327 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 337 output_buffer->colorspace = bitstream->has_alpha ? MODE_BGRA : MODE_BGR; in main() 340 output_buffer->colorspace = bitstream->has_alpha ? MODE_RGBA : MODE_RGB; in main() 344 output_buffer->colorspace = bitstream->has_alpha ? MODE_YUVA : MODE_YUV; in main() 399 bitstream->has_alpha ? " (with alpha)" : "", in main() 400 kFormatType[bitstream->format]); in main() 408 bitstream in main() [all...] |
H A D | webpmux.c | 235 frame.bitstream.bytes, frame.bitstream.size, &features); in DisplayInfo() 249 printf("%10d %11s\n", (int)frame.bitstream.size, in DisplayInfo() 254 WebPDataClear(&frame.bitstream); in DisplayInfo() 285 printf("Size of the image (with alpha): %d\n", (int)image.bitstream.size); in DisplayInfo() 287 WebPDataClear(&image.bitstream); in DisplayInfo() 391 WebPData bitstream; in CreateMux() local 393 if (!ExUtilReadFileToWebPData(filename, &bitstream)) return 0; in CreateMux() 394 *mux = WebPMuxCreate(&bitstream, 1); in CreateMux() 395 WebPDataClear(&bitstream); in CreateMux() [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv84_video_bsp.c | 102 { dec->bitstream, NOUVEAU_BO_RDWR | NOUVEAU_BO_GART }, in nv84_decoder_bsp() 191 memcpy(dec->bitstream->map, ¶ms, sizeof(params)); in nv84_decoder_bsp() 193 assert(total_bytes + num_bytes[i] < dec->bitstream->size / 2 - 0x700); in nv84_decoder_bsp() 194 memcpy(dec->bitstream->map + 0x700 + total_bytes, data[i], num_bytes[i]); in nv84_decoder_bsp() 197 memcpy(dec->bitstream->map + 0x700 + total_bytes, end, sizeof(end)); in nv84_decoder_bsp() 200 memcpy(dec->bitstream->map + 0x600, more_params, sizeof(more_params)); in nv84_decoder_bsp() 212 /* TODO: Use both halves of bitstream/vpring for alternating frames */ in nv84_decoder_bsp() 216 PUSH_DATA (push, dec->bitstream->offset >> 8); in nv84_decoder_bsp() 217 PUSH_DATA (push, (dec->bitstream->offset >> 8) + 7); in nv84_decoder_bsp() 218 PUSH_DATA (push, dec->bitstream in nv84_decoder_bsp() [all...] |
/third_party/skia/third_party/externals/libwebp/src/webp/ |
H A D | mux.h | 130 // bitstream - (in) the bitstream data in WebP RIFF format 136 static WEBP_INLINE WebPMux* WebPMuxCreate(const WebPData* bitstream, in WebPMuxCreate() argument 138 return WebPMuxCreateInternal(bitstream, copy_data, WEBP_MUX_ABI_VERSION); in WebPMuxCreate() 200 WebPData bitstream; // image data: can be a raw VP8/VP8L bitstream member 217 // bitstream - (in) can be a raw VP8/VP8L bitstream or a single-image 222 // WEBP_MUX_INVALID_ARGUMENT - if mux is NULL or bitstream is NULL. 226 WebPMux* mux, const WebPData* bitstream, in [all...] |
/third_party/mesa3d/src/gallium/frontends/omx/ |
H A D | vid_enc_common.c | 41 pipe_resource_reference(&i->bitstream, NULL); in enc_ReleaseTasks() 144 if (!task->bitstream) in vid_enc_BufferEncoded_common() 152 pipe_resource_reference(&outp->bitstream, task->bitstream); in vid_enc_BufferEncoded_common() 153 pipe_resource_reference(&task->bitstream, NULL); in vid_enc_BufferEncoded_common() 155 box.width = outp->bitstream->width0; in vid_enc_BufferEncoded_common() 156 box.height = outp->bitstream->height0; in vid_enc_BufferEncoded_common() 157 box.depth = outp->bitstream->depth0; in vid_enc_BufferEncoded_common() 159 output->pBuffer = priv->t_pipe->buffer_map(priv->t_pipe, outp->bitstream, 0, in vid_enc_BufferEncoded_common()
|
H A D | vid_enc_common.h | 59 struct pipe_resource *bitstream; member 71 struct pipe_resource *bitstream; member
|
/third_party/ffmpeg/libavcodec/ |
H A D | interplayacm.c | 41 uint8_t *bitstream; member 101 s->bitstream = av_calloc(s->max_framesize + AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*s->bitstream) + 1, sizeof(*s->bitstream)); in decode_init() 102 if (!s->block || !s->wrapbuf || !s->ampbuf || !s->bitstream) in decode_init() 572 memmove(s->bitstream, &s->bitstream[s->bitstream_index], s->bitstream_size); in decode_frame() 576 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], pkt->data, buf_size); in decode_frame() 577 buf = &s->bitstream[s->bitstream_index]; in decode_frame() 629 av_freep(&s->bitstream); in decode_close() [all...] |
H A D | nvdec_h264.c | 140 tmp = av_fast_realloc(ctx->bitstream, &ctx->bitstream_allocated, in nvdec_h264_decode_slice() 144 ctx->bitstream = tmp; in nvdec_h264_decode_slice() 152 AV_WB24(ctx->bitstream + ctx->bitstream_len, 1); in nvdec_h264_decode_slice() 153 memcpy(ctx->bitstream + ctx->bitstream_len + 3, buffer, size); in nvdec_h264_decode_slice()
|
H A D | shorten.c | 97 uint8_t *bitstream; member 534 /* allocate internal bitstream buffer */ in shorten_decode_frame() 538 tmp_ptr = av_fast_realloc(s->bitstream, &s->allocated_bitstream_size, in shorten_decode_frame() 542 av_log(avctx, AV_LOG_ERROR, "error allocating bitstream buffer\n"); in shorten_decode_frame() 546 s->bitstream = tmp_ptr; in shorten_decode_frame() 549 /* append current packet data to bitstream buffer */ in shorten_decode_frame() 555 memmove(s->bitstream, &s->bitstream[s->bitstream_index], in shorten_decode_frame() 560 memcpy(&s->bitstream[s->bitstream_index + s->bitstream_size], buf, in shorten_decode_frame() 562 buf = &s->bitstream[ in shorten_decode_frame() [all...] |
H A D | dxva2_hevc.c | 38 const uint8_t *bitstream; member 257 /* Create an annex B bitstream buffer with only slice NAL and finalize slice */ in commit_bitstream_and_slice_buffer() 292 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream"); in commit_bitstream_and_slice_buffer() 302 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer() 378 ctx_pic->bitstream = NULL; in dxva2_hevc_start_frame() 394 if (!ctx_pic->bitstream) in dxva2_hevc_decode_slice() 395 ctx_pic->bitstream = buffer; in dxva2_hevc_decode_slice() 398 position = buffer - ctx_pic->bitstream; in dxva2_hevc_decode_slice()
|
H A D | dxva2_vc1.c | 38 const uint8_t *bitstream; member 235 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream"); in commit_bitstream_and_slice_buffer() 259 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer() 328 ctx_pic->bitstream = NULL; in dxva2_vc1_start_frame() 353 if (!ctx_pic->bitstream) in dxva2_vc1_decode_slice() 354 ctx_pic->bitstream = buffer; in dxva2_vc1_decode_slice() 357 position = buffer - ctx_pic->bitstream; in dxva2_vc1_decode_slice()
|
H A D | dxva2_mpeg2.c | 38 const uint8_t *bitstream; member 197 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream"); in commit_bitstream_and_slice_buffer() 209 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer() 273 ctx_pic->bitstream = NULL; in dxva2_mpeg2_start_frame() 290 if (!ctx_pic->bitstream) in dxva2_mpeg2_decode_slice() 291 ctx_pic->bitstream = buffer; in dxva2_mpeg2_decode_slice() 294 position = buffer - ctx_pic->bitstream; in dxva2_mpeg2_decode_slice()
|
H A D | dxva2_vp9.c | 34 const uint8_t *bitstream; member 202 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream"); in commit_bitstream_and_slice_buffer() 206 memcpy(dxva_data, ctx_pic->bitstream, ctx_pic->slice.SliceBytesInBuffer); in commit_bitstream_and_slice_buffer() 271 ctx_pic->bitstream = NULL; in dxva2_vp9_start_frame() 283 if (!ctx_pic->bitstream) in dxva2_vp9_decode_slice() 284 ctx_pic->bitstream = buffer; in dxva2_vp9_decode_slice() 287 position = buffer - ctx_pic->bitstream; in dxva2_vp9_decode_slice()
|
H A D | dxva2_h264.c | 39 const uint8_t *bitstream; member 318 /* Create an annex B bitstream buffer with only slice NAL and finalize slice */ in commit_bitstream_and_slice_buffer() 361 av_log(avctx, AV_LOG_ERROR, "Failed to build bitstream"); in commit_bitstream_and_slice_buffer() 380 memcpy(current, &ctx_pic->bitstream[position], size); in commit_bitstream_and_slice_buffer() 463 ctx_pic->bitstream = NULL; in dxva2_h264_start_frame() 481 if (!ctx_pic->bitstream) in dxva2_h264_decode_slice() 482 ctx_pic->bitstream = buffer; in dxva2_h264_decode_slice() 485 position = buffer - ctx_pic->bitstream; in dxva2_h264_decode_slice()
|
H A D | imm4.c | 48 uint8_t *bitstream; member 368 av_fast_padded_malloc(&s->bitstream, &s->bitstream_size, in decode_frame() 370 if (!s->bitstream) in decode_frame() 373 s->bdsp.bswap_buf((uint32_t *)s->bitstream, in decode_frame() 377 if ((ret = init_get_bits8(gb, s->bitstream, FFALIGN(avpkt->size, 4))) < 0) in decode_frame() 529 av_freep(&s->bitstream); in decode_close()
|
H A D | nvdec.c | 267 av_freep(&ctx->bitstream); in ff_nvdec_decode_uninit() 648 pp->pBitstreamData = ctx->bitstream; in ff_nvdec_end_frame() 670 ctx->bitstream = NULL; in ff_nvdec_simple_end_frame() 686 if (!ctx->bitstream) in ff_nvdec_simple_decode_slice() 687 ctx->bitstream = (uint8_t*)buffer; in ff_nvdec_simple_decode_slice() 689 ctx->slice_offsets[ctx->nb_slices] = buffer - ctx->bitstream; in ff_nvdec_simple_decode_slice()
|
H A D | videotoolbox.c | 79 tmp = av_fast_realloc(vtctx->bitstream, in ff_videotoolbox_buffer_copy() 86 vtctx->bitstream = tmp; in ff_videotoolbox_buffer_copy() 87 memcpy(vtctx->bitstream, buffer, size); in ff_videotoolbox_buffer_copy() 435 tmp = av_fast_realloc(vtctx->bitstream, in videotoolbox_common_decode_slice() 441 vtctx->bitstream = tmp; in videotoolbox_common_decode_slice() 443 AV_WB32(vtctx->bitstream + vtctx->bitstream_size, size); in videotoolbox_common_decode_slice() 444 memcpy(vtctx->bitstream + vtctx->bitstream_size + 4, buffer, size); in videotoolbox_common_decode_slice() 502 av_freep(&vtctx->bitstream); in ff_videotoolbox_uninit() 717 vtctx->bitstream, in videotoolbox_session_decode_frame() 1018 if (!videotoolbox->session || !vtctx->bitstream || !vtct in ff_videotoolbox_common_end_frame() [all...] |