Home
last modified time | relevance | path

Searched refs:DecoderBuffer (Results 1 – 25 of 82) sorted by relevance

1234

/external/chromium_org/media/base/
Ddecoder_buffer.cc12 DecoderBuffer::DecoderBuffer(int size) in DecoderBuffer() function in media::DecoderBuffer
18 DecoderBuffer::DecoderBuffer(const uint8* data, int size, in DecoderBuffer() function in media::DecoderBuffer
34 DecoderBuffer::~DecoderBuffer() {} in ~DecoderBuffer()
36 void DecoderBuffer::Initialize() { in Initialize()
49 scoped_refptr<DecoderBuffer> DecoderBuffer::CopyFrom(const uint8* data, in CopyFrom()
53 return make_scoped_refptr(new DecoderBuffer(data, data_size, NULL, 0)); in CopyFrom()
57 scoped_refptr<DecoderBuffer> DecoderBuffer::CopyFrom(const uint8* data, in CopyFrom()
64 return make_scoped_refptr(new DecoderBuffer(data, data_size, in CopyFrom()
69 scoped_refptr<DecoderBuffer> DecoderBuffer::CreateEOSBuffer() { in CreateEOSBuffer()
70 return make_scoped_refptr(new DecoderBuffer(NULL, 0, NULL, 0)); in CreateEOSBuffer()
[all …]
Ddecoder_buffer_unittest.cc12 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(0)); in TEST()
18 scoped_refptr<DecoderBuffer> buffer3(new DecoderBuffer(kTestSize)); in TEST()
24 scoped_refptr<DecoderBuffer> buffer(DecoderBuffer::CreateEOSBuffer()); in TEST()
31 scoped_refptr<DecoderBuffer> buffer2(DecoderBuffer::CopyFrom( in TEST()
38 scoped_refptr<DecoderBuffer> buffer3(DecoderBuffer::CopyFrom( in TEST()
55 scoped_refptr<DecoderBuffer> buffer2(DecoderBuffer::CopyFrom( in TEST()
60 for(int i = 0; i < DecoderBuffer::kPaddingSize; i++) in TEST()
69 DecoderBuffer::kPaddingSize); in TEST()
70 for(int i = 0; i < DecoderBuffer::kPaddingSize; i++) in TEST()
74 buffer2->data()) & (DecoderBuffer::kAlignmentSize - 1)); in TEST()
[all …]
Ddecoder_buffer.h30 class MEDIA_EXPORT DecoderBuffer
31 : public base::RefCountedThreadSafe<DecoderBuffer> {
44 explicit DecoderBuffer(int size);
48 static scoped_refptr<DecoderBuffer> CopyFrom(const uint8* data, int size);
53 static scoped_refptr<DecoderBuffer> CopyFrom(const uint8* data, int size,
61 static scoped_refptr<DecoderBuffer> CreateEOSBuffer();
137 friend class base::RefCountedThreadSafe<DecoderBuffer>;
142 DecoderBuffer(const uint8* data, int size,
144 virtual ~DecoderBuffer();
160 DISALLOW_COPY_AND_ASSIGN(DecoderBuffer);
Ddecoder_buffer_queue.h16 class DecoderBuffer; variable
34 void Push(const scoped_refptr<DecoderBuffer>& buffer);
39 scoped_refptr<DecoderBuffer> Pop();
55 typedef std::deque<scoped_refptr<DecoderBuffer> > Queue;
Ddecryptor.h19 class DecoderBuffer; variable
73 const scoped_refptr<DecoderBuffer>&)> DecryptCB;
82 const scoped_refptr<DecoderBuffer>& encrypted,
136 const scoped_refptr<DecoderBuffer>& encrypted,
139 const scoped_refptr<DecoderBuffer>& encrypted,
Dtest_data_util.cc24 scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name) { in ReadTestDataFile()
38 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(file_size)); in ReadTestDataFile()
Ddecoder_buffer_queue.cc19 void DecoderBufferQueue::Push(const scoped_refptr<DecoderBuffer>& buffer) { in Push()
48 scoped_refptr<DecoderBuffer> DecoderBufferQueue::Pop() { in Pop()
49 scoped_refptr<DecoderBuffer> buffer = queue_.front(); in Pop()
Dtest_helpers.h24 class DecoderBuffer; variable
137 scoped_refptr<DecoderBuffer> CreateFakeVideoBufferForTest(
143 bool VerifyFakeVideoBufferForTest(const scoped_refptr<DecoderBuffer>& buffer,
Dtest_data_util.h17 class DecoderBuffer; variable
28 scoped_refptr<DecoderBuffer> ReadTestDataFile(const std::string& name);
Dfake_text_track_stream.cc58 scoped_refptr<DecoderBuffer> buffer; in SatisfyPendingRead()
59 buffer = DecoderBuffer::CopyFrom(data_buf, data_len, sd_buf, sd_len); in SatisfyPendingRead()
74 base::ResetAndReturn(&read_cb_).Run(kOk, DecoderBuffer::CreateEOSBuffer()); in SendEosNotification()
/external/chromium_org/media/cdm/
Daes_decryptor_unittest.cc176 static scoped_refptr<DecoderBuffer> CreateEncryptedBuffer( in CreateEncryptedBuffer()
184 scoped_refptr<DecoderBuffer> encrypted_buffer(new DecoderBuffer(padded_size)); in CreateEncryptedBuffer()
271 const scoped_refptr<DecoderBuffer>&));
281 void DecryptAndExpect(const scoped_refptr<DecoderBuffer>& encrypted, in DecryptAndExpect()
284 scoped_refptr<DecoderBuffer> decrypted; in DecryptAndExpect()
383 scoped_refptr<DecoderBuffer> encrypted_buffer = CreateEncryptedBuffer( in TEST_F()
391 scoped_refptr<DecoderBuffer> encrypted_buffer = CreateEncryptedBuffer( in TEST_F()
398 scoped_refptr<DecoderBuffer> encrypted_buffer = CreateEncryptedBuffer( in TEST_F()
406 scoped_refptr<DecoderBuffer> encrypted_buffer = CreateEncryptedBuffer( in TEST_F()
412 scoped_refptr<DecoderBuffer> encrypted_buffer = CreateEncryptedBuffer( in TEST_F()
[all …]
Daes_decryptor.cc125 static scoped_refptr<DecoderBuffer> DecryptData(const DecoderBuffer& input, in DecryptData()
163 return DecoderBuffer::CopyFrom( in DecryptData()
189 return DecoderBuffer::CopyFrom(reinterpret_cast<const uint8*>(sample), in DecryptData()
213 scoped_refptr<DecoderBuffer> output = DecoderBuffer::CopyFrom( in DecryptData()
329 const scoped_refptr<DecoderBuffer>& encrypted, in Decrypt()
333 scoped_refptr<DecoderBuffer> decrypted; in Decrypt()
337 decrypted = DecoderBuffer::CopyFrom(encrypted->data() + data_offset, in Decrypt()
379 const scoped_refptr<DecoderBuffer>& encrypted, in DecryptAndDecodeAudio()
385 const scoped_refptr<DecoderBuffer>& encrypted, in DecryptAndDecodeVideo()
/external/chromium_org/media/filters/
Ddecrypting_demuxer_stream_unittest.cc33 static scoped_refptr<DecoderBuffer> CreateFakeEncryptedStreamBuffer( in CreateFakeEncryptedStreamBuffer()
35 scoped_refptr<DecoderBuffer> buffer(new DecoderBuffer(kFakeBufferSize)); in CreateFakeEncryptedStreamBuffer()
86 decrypted_buffer_(new DecoderBuffer(kFakeBufferSize)) { in DecryptingDemuxerStreamTest()
135 const scoped_refptr<DecoderBuffer>& decrypted_buffer) { in ReadAndExpectBufferReadyWith()
155 scoped_refptr<DecoderBuffer> decrypted_buffer; in EnterClearReadingState()
208 scoped_refptr<DecoderBuffer>())); in EnterWaitingForKeyState()
221 scoped_refptr<DecoderBuffer> buffer = in SatisfyPendingDemuxerReadCB()
249 const scoped_refptr<DecoderBuffer>&));
265 scoped_refptr<DecoderBuffer> clear_buffer_;
266 scoped_refptr<DecoderBuffer> encrypted_buffer_;
[all …]
Dffmpeg_video_decoder.h26 class DecoderBuffer; variable
39 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
59 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& buffer);
60 bool FFmpegDecode(const scoped_refptr<DecoderBuffer>& buffer,
Ddecrypting_demuxer_stream.h23 class DecoderBuffer; variable
79 const scoped_refptr<DecoderBuffer>& buffer);
85 const scoped_refptr<DecoderBuffer>& decrypted_buffer);
123 scoped_refptr<media::DecoderBuffer> pending_buffer_to_decrypt_;
Dffmpeg_video_decoder_unittest.cc56 end_of_stream_buffer_ = DecoderBuffer::CreateEOSBuffer(); in FFmpegVideoDecoderTest()
116 typedef std::vector<scoped_refptr<DecoderBuffer> > InputBuffers;
128 scoped_refptr<DecoderBuffer> buffer; in DecodeMultipleFrames()
164 void DecodeSingleFrame(const scoped_refptr<DecoderBuffer>& buffer, in DecodeSingleFrame()
190 scoped_refptr<DecoderBuffer> buffer = ReadTestDataFile(test_file_name); in DecodeIFrameThenTestFile()
214 void Decode(const scoped_refptr<DecoderBuffer>& buffer, in Decode()
235 scoped_refptr<DecoderBuffer> end_of_stream_buffer_;
236 scoped_refptr<DecoderBuffer> i_frame_buffer_;
237 scoped_refptr<DecoderBuffer> corrupt_i_frame_buffer_;
370 scoped_refptr<DecoderBuffer> zero_byte_buffer = new DecoderBuffer(0); in TEST_F()
Dffmpeg_audio_decoder_unittest.cc40 scoped_refptr<DecoderBuffer> buffer = in FFmpegAudioDecoderTest()
54 encoded_audio_.push_back(DecoderBuffer::CreateEOSBuffer()); in FFmpegAudioDecoderTest()
79 scoped_refptr<DecoderBuffer> buffer(encoded_audio_.front()); in ReadPacket()
114 scoped_refptr<DecoderBuffer> vorbis_extradata_;
116 std::deque<scoped_refptr<DecoderBuffer> > encoded_audio_;
Dgpu_video_decoder.h28 class DecoderBuffer; variable
46 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
87 BufferPair(SHMBuffer* s, const scoped_refptr<DecoderBuffer>& b);
90 scoped_refptr<DecoderBuffer> buffer;
110 const BitstreamBuffer& bitstream_buffer, const DecoderBuffer& buffer);
Dvpx_video_decoder.h38 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
59 void DecodeBuffer(const scoped_refptr<DecoderBuffer>& buffer);
60 bool VpxDecode(const scoped_refptr<DecoderBuffer>& buffer,
Ddecrypting_video_decoder.h20 class DecoderBuffer; variable
37 virtual void Decode(const scoped_refptr<DecoderBuffer>& buffer,
99 scoped_refptr<media::DecoderBuffer> pending_buffer_to_decode_;
Dopus_audio_decoder.h25 class DecoderBuffer; variable
48 const scoped_refptr<DecoderBuffer>& input);
54 bool Decode(const scoped_refptr<DecoderBuffer>& input,
Dffmpeg_audio_decoder.h28 class DecoderBuffer; variable
58 const scoped_refptr<DecoderBuffer>& input);
63 void RunDecodeLoop(const scoped_refptr<DecoderBuffer>& input,
Ddecrypting_audio_decoder.h24 class DecoderBuffer; variable
84 const scoped_refptr<DecoderBuffer>& buffer);
128 scoped_refptr<media::DecoderBuffer> pending_buffer_to_decode_;
/external/chromium_org/content/renderer/pepper/
Dcontent_decryptor_delegate.h24 class DecoderBuffer; variable
61 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
76 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
79 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
122 const scoped_refptr<media::DecoderBuffer>& encrypted_buffer,
/external/chromium_org/media/cdm/ppapi/
Dclear_key_cdm.cc76 static scoped_refptr<media::DecoderBuffer> CopyDecoderBufferFrom( in CopyDecoderBufferFrom()
80 return media::DecoderBuffer::CreateEOSBuffer(); in CopyDecoderBufferFrom()
84 scoped_refptr<media::DecoderBuffer> output_buffer = in CopyDecoderBufferFrom()
85 media::DecoderBuffer::CopyFrom(input_buffer.data, input_buffer.data_size); in CopyDecoderBufferFrom()
333 scoped_refptr<media::DecoderBuffer>* buffer_copy, in CopyDecryptResults()
335 const scoped_refptr<media::DecoderBuffer>& buffer) { in CopyDecryptResults()
346 scoped_refptr<media::DecoderBuffer> buffer; in Decrypt()
452 scoped_refptr<media::DecoderBuffer> buffer; in DecryptAndDecodeFrame()
475 scoped_refptr<media::DecoderBuffer> buffer; in DecryptAndDecodeSamples()
526 scoped_refptr<media::DecoderBuffer>* decrypted_buffer) { in DecryptToMediaDecoderBuffer()
[all …]

1234